@apolitical/component-library 1.3.2 → 1.4.0-beta.1

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.
Files changed (39) hide show
  1. package/communities/community-details/community-details.d.ts +2 -2
  2. package/communities/join-button/join-button.d.ts +2 -2
  3. package/context/index.d.ts +1 -0
  4. package/context/intl/index.d.ts +1 -0
  5. package/context/intl/intl.provider.d.ts +8 -0
  6. package/context/user/index.d.ts +2 -2
  7. package/context/user/user.context.d.ts +1 -2
  8. package/context/user/user.provider.d.ts +2 -2
  9. package/discussion/form/form.d.ts +2 -2
  10. package/discussion/likes/likes.d.ts +7 -2
  11. package/discussion/post/post.d.ts +2 -2
  12. package/form/components/email-helper-text-box/email-helper-text-box.d.ts +2 -2
  13. package/form/components/password-rules/password-rules.d.ts +1 -1
  14. package/form/components/rating/rating.d.ts +2 -2
  15. package/form/types/search-form/search-form.d.ts +2 -2
  16. package/helpers/index.d.ts +0 -2
  17. package/index.d.ts +3 -1
  18. package/index.js +55 -144
  19. package/index.mjs +10882 -23638
  20. package/layout/page-layout/components/cookie-banner/cookie-banner.d.ts +2 -6
  21. package/layout/page-layout/components/footer/footer.d.ts +2 -6
  22. package/layout/page-layout/components/header/header.d.ts +2 -6
  23. package/loaders/loading-block/loading-block.d.ts +1 -1
  24. package/loaders/progress-bar/progress-bar.d.ts +1 -1
  25. package/modals/index.d.ts +1 -0
  26. package/navigation/filters/filters.d.ts +2 -2
  27. package/navigation/load-more/load-more.d.ts +2 -2
  28. package/navigation/logo/logo.d.ts +2 -2
  29. package/navigation/tags/tags.d.ts +2 -2
  30. package/package.json +1 -1
  31. package/style.css +1 -1
  32. package/testing/index.d.ts +1 -0
  33. package/text/collapsible-section/collapsible-section.d.ts +2 -2
  34. package/text/hide-show-text-box/hide-show-text-box.d.ts +2 -2
  35. package/text/markdown-text/components/details/details.d.ts +2 -2
  36. package/text/markdown-text/components/iframe/iframe.d.ts +2 -2
  37. package/user/contributors/contributors.d.ts +6 -2
  38. package/user/member/member.d.ts +2 -2
  39. package/helpers/intl-wrapper.d.ts +0 -6
package/index.js CHANGED
@@ -1,64 +1,64 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("react"),P=require("react/jsx-runtime"),Sh=require("react-dom");function UR(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 Be=UR(Q);var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mi(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 a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var jE={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react"),C=require("react/jsx-runtime");function dg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Oe=dg(G);var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var wd={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var s=typeof o;if(s==="string"||s==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&n.push(i)}}else if(s==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(jE);var HR=jE.exports;const we=wr(HR),GR=({element:e="span",showOnFocus:t=!0,children:r,...n})=>Q.createElement(e,{...n,className:we("hidden",{"show-on-focus":t})},r),Dt=Q.memo(GR),WR=({element:e="span",children:t=null,...r})=>Q.createElement(e,{...r,"aria-hidden":!0},t),Rh=Q.memo(WR),vs=(e,t)=>{const r=Q.useRef(!1);Q.useEffect(()=>{r.current?e():r.current=!0},t)};/*!
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(wd);var hg=wd.exports;const se=jt(hg),pg=({element:e="span",showOnFocus:t=!0,children:n,...r})=>G.createElement(e,{...r,className:se("hidden",{"show-on-focus":t})},n),it=G.memo(pg),mg=({element:e="span",children:t=null,...n})=>G.createElement(e,{...n,"aria-hidden":!0},t),Eu=G.memo(mg),Io=(e,t)=>{const n=G.useRef(!1);G.useEffect(()=>{n.current?e():n.current=!0},t)};/*!
6
6
  * cookie
7
7
  * Copyright(c) 2012-2014 Roman Shtylman
8
8
  * Copyright(c) 2015 Douglas Christopher Wilson
9
9
  * MIT Licensed
10
- */var UE=zR,Nm=YR,VR=Object.prototype.toString,Oi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function zR(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},a=n.decode||KR,o=0;o<e.length;){var s=e.indexOf("=",o);if(s===-1)break;var i=e.indexOf(";",o);if(i===-1)i=e.length;else if(i<s){o=e.lastIndexOf(";",s-1)+1;continue}var l=e.slice(o,s).trim();if(r[l]===void 0){var u=e.slice(s+1,i).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),r[l]=JR(u,a)}o=i+1}return r}function YR(e,t,r){var n=r||{},a=n.encode||XR;if(typeof a!="function")throw new TypeError("option encode is invalid");if(!Oi.test(e))throw new TypeError("argument name is invalid");var o=a(t);if(o&&!Oi.test(o))throw new TypeError("argument val is invalid");var s=e+"="+o;if(n.maxAge!=null){var i=n.maxAge-0;if(isNaN(i)||!isFinite(i))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(i)}if(n.domain){if(!Oi.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!Oi.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){var l=n.expires;if(!QR(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+l.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.priority){var u=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(u){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var c=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function KR(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function XR(e){return encodeURIComponent(e)}function QR(e){return VR.call(e)==="[object Date]"||e instanceof Date}function JR(e,t){try{return t(e)}catch{return e}}function ZR(){return typeof document=="object"&&typeof document.cookie=="string"}function eC(e){return typeof e=="string"?UE(e):typeof e=="object"&&e!==null?e:{}}function Kc(e,t={}){const r=tC(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function tC(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class HE{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const a=this.cookies;this.cookies=UE(document.cookie),this._checkChanges(a)};const n=typeof document>"u"?"":document.cookie;this.cookies=eC(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=ZR()}_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:Kc(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Kc(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Kc(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const a=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:a}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Nm(t,a,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=Nm(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 GE=Be.createContext(new HE),{Provider:rC,Consumer:s5}=GE,nC=GE;class aC extends Be.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new HE(void 0,t.defaultSetOptions)}render(){return Be.createElement(rC,{value:this.cookies},this.props.children)}}var fp={exports:{}},De={};/** @license React v16.13.1
10
+ */var Sd=yg,nc=vg,gg=Object.prototype.toString,eo=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function yg(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=r.decode||Eg,i=0;i<e.length;){var s=e.indexOf("=",i);if(s===-1)break;var a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<s){i=e.lastIndexOf(";",s-1)+1;continue}var l=e.slice(i,s).trim();if(n[l]===void 0){var f=e.slice(s+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),n[l]=wg(f,o)}i=a+1}return n}function vg(e,t,n){var r=n||{},o=r.encode||_g;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!eo.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!eo.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!eo.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!eo.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var l=r.expires;if(!bg(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+l.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.priority){var f=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(f){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var u=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Eg(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function _g(e){return encodeURIComponent(e)}function bg(e){return gg.call(e)==="[object Date]"||e instanceof Date}function wg(e,t){try{return t(e)}catch{return e}}function Sg(){return typeof document=="object"&&typeof document.cookie=="string"}function Tg(e){return typeof e=="string"?Sd(e):typeof e=="object"&&e!==null?e:{}}function ia(e,t={}){const n=Og(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Og(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Td{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=Sd(document.cookie),this._checkChanges(o)};const r=typeof document>"u"?"":document.cookie;this.cookies=Tg(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Sg()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:ia(t[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),ia(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=ia(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const o=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=nc(t,o,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign({},n),{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=nc(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}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 n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const Od=Oe.createContext(new Td),{Provider:xg,Consumer:wx}=Od,Ag=Od;class Cg extends Oe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new Td(void 0,t.defaultSetOptions)}render(){return Oe.createElement(xg,{value:this.cookies},this.props.children)}}var Hs={exports:{}},Ae={};/** @license React v16.13.1
11
11
  * react-is.production.min.js
12
12
  *
13
13
  * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Mm;function oC(){if(Mm)return De;Mm=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,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function T(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case l:case u:case n:case o:case a:case d:return S;default:switch(S=S&&S.$$typeof,S){case i:case c:case h:case f:case s:return S;default:return O}}case r:return O}}}function R(S){return T(S)===u}return De.AsyncMode=l,De.ConcurrentMode=u,De.ContextConsumer=i,De.ContextProvider=s,De.Element=t,De.ForwardRef=c,De.Fragment=n,De.Lazy=h,De.Memo=f,De.Portal=r,De.Profiler=o,De.StrictMode=a,De.Suspense=d,De.isAsyncMode=function(S){return R(S)||T(S)===l},De.isConcurrentMode=R,De.isContextConsumer=function(S){return T(S)===i},De.isContextProvider=function(S){return T(S)===s},De.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},De.isForwardRef=function(S){return T(S)===c},De.isFragment=function(S){return T(S)===n},De.isLazy=function(S){return T(S)===h},De.isMemo=function(S){return T(S)===f},De.isPortal=function(S){return T(S)===r},De.isProfiler=function(S){return T(S)===o},De.isStrictMode=function(S){return T(S)===a},De.isSuspense=function(S){return T(S)===d},De.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===u||S===o||S===a||S===d||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===f||S.$$typeof===s||S.$$typeof===i||S.$$typeof===c||S.$$typeof===w||S.$$typeof===E||S.$$typeof===y||S.$$typeof===m)},De.typeOf=T,De}var qe={};/** @license React v16.13.1
17
+ */var ic;function Rg(){if(ic)return Ae;ic=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,c=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,T=e?Symbol.for("react.responder"):60118,E=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 l:case f:case r:case i:case o:case h:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case p:case c:case s:return w;default:return N}}case n:return N}}}function A(w){return b(w)===f}return Ae.AsyncMode=l,Ae.ConcurrentMode=f,Ae.ContextConsumer=a,Ae.ContextProvider=s,Ae.Element=t,Ae.ForwardRef=u,Ae.Fragment=r,Ae.Lazy=p,Ae.Memo=c,Ae.Portal=n,Ae.Profiler=i,Ae.StrictMode=o,Ae.Suspense=h,Ae.isAsyncMode=function(w){return A(w)||b(w)===l},Ae.isConcurrentMode=A,Ae.isContextConsumer=function(w){return b(w)===a},Ae.isContextProvider=function(w){return b(w)===s},Ae.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ae.isForwardRef=function(w){return b(w)===u},Ae.isFragment=function(w){return b(w)===r},Ae.isLazy=function(w){return b(w)===p},Ae.isMemo=function(w){return b(w)===c},Ae.isPortal=function(w){return b(w)===n},Ae.isProfiler=function(w){return b(w)===i},Ae.isStrictMode=function(w){return b(w)===o},Ae.isSuspense=function(w){return b(w)===h},Ae.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===f||w===i||w===o||w===h||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===c||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===_||w.$$typeof===T||w.$$typeof===E||w.$$typeof===m)},Ae.typeOf=b,Ae}var Ce={};/** @license React v16.13.1
18
18
  * react-is.development.js
19
19
  *
20
20
  * Copyright (c) Facebook, Inc. and its affiliates.
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */var $m;function iC(){return $m||($m=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,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function T(le){return typeof le=="string"||typeof le=="function"||le===n||le===u||le===o||le===a||le===d||le===p||typeof le=="object"&&le!==null&&(le.$$typeof===h||le.$$typeof===f||le.$$typeof===s||le.$$typeof===i||le.$$typeof===c||le.$$typeof===w||le.$$typeof===E||le.$$typeof===y||le.$$typeof===m)}function R(le){if(typeof le=="object"&&le!==null){var Ge=le.$$typeof;switch(Ge){case t:var $e=le.type;switch($e){case l:case u:case n:case o:case a:case d:return $e;default:var gt=$e&&$e.$$typeof;switch(gt){case i:case c:case h:case f:case s:return gt;default:return Ge}}case r:return Ge}}}var S=l,O=u,N=i,M=s,H=t,G=c,W=n,U=h,j=f,Z=r,ee=o,L=a,K=d,re=!1;function ge(le){return re||(re=!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.")),ne(le)||R(le)===l}function ne(le){return R(le)===u}function oe(le){return R(le)===i}function ve(le){return R(le)===s}function Ee(le){return typeof le=="object"&&le!==null&&le.$$typeof===t}function ze(le){return R(le)===c}function te(le){return R(le)===n}function ue(le){return R(le)===h}function Me(le){return R(le)===f}function xe(le){return R(le)===r}function ft(le){return R(le)===o}function pt(le){return R(le)===a}function fe(le){return R(le)===d}qe.AsyncMode=S,qe.ConcurrentMode=O,qe.ContextConsumer=N,qe.ContextProvider=M,qe.Element=H,qe.ForwardRef=G,qe.Fragment=W,qe.Lazy=U,qe.Memo=j,qe.Portal=Z,qe.Profiler=ee,qe.StrictMode=L,qe.Suspense=K,qe.isAsyncMode=ge,qe.isConcurrentMode=ne,qe.isContextConsumer=oe,qe.isContextProvider=ve,qe.isElement=Ee,qe.isForwardRef=ze,qe.isFragment=te,qe.isLazy=ue,qe.isMemo=Me,qe.isPortal=xe,qe.isProfiler=ft,qe.isStrictMode=pt,qe.isSuspense=fe,qe.isValidElementType=T,qe.typeOf=R}()),qe}process.env.NODE_ENV==="production"?fp.exports=oC():fp.exports=iC();var sC=fp.exports,WE=sC,lC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VE={};VE[WE.ForwardRef]=lC;VE[WE.Memo]=uC;function cC(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function zE(e){const t=Q.useContext(nC);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=Q.useState(()=>t.getAll());cC()&&Q.useLayoutEffect(()=>{function i(){const l=t.getAll({doNotUpdate:!0});fC(e||null,l,r)&&n(l)}return t.addChangeListener(i),()=>{t.removeChangeListener(i)}},[t,r]);const a=Q.useMemo(()=>t.set.bind(t),[t]),o=Q.useMemo(()=>t.remove.bind(t),[t]),s=Q.useMemo(()=>t.update.bind(t),[t]);return[r,a,o,s]}function fC(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var YE={exports:{}},Xc={exports:{}},Pi={},Ai={exports:{}},Qc,km;function KE(){return km||(km=1,Qc=function(t,r){return function(){for(var a=new Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];return t.apply(r,a)}}),Qc}var Jc,Lm;function Pt(){if(Lm)return Jc;Lm=1;var e=KE(),t=Object.prototype.toString,r=function(L){return function(K){var re=t.call(K);return L[re]||(L[re]=re.slice(8,-1).toLowerCase())}}(Object.create(null));function n(L){return L=L.toLowerCase(),function(re){return r(re)===L}}function a(L){return Array.isArray(L)}function o(L){return typeof L>"u"}function s(L){return L!==null&&!o(L)&&L.constructor!==null&&!o(L.constructor)&&typeof L.constructor.isBuffer=="function"&&L.constructor.isBuffer(L)}var i=n("ArrayBuffer");function l(L){var K;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?K=ArrayBuffer.isView(L):K=L&&L.buffer&&i(L.buffer),K}function u(L){return typeof L=="string"}function c(L){return typeof L=="number"}function d(L){return L!==null&&typeof L=="object"}function p(L){if(r(L)!=="object")return!1;var K=Object.getPrototypeOf(L);return K===null||K===Object.prototype}var f=n("Date"),h=n("File"),m=n("Blob"),w=n("FileList");function E(L){return t.call(L)==="[object Function]"}function y(L){return d(L)&&E(L.pipe)}function T(L){var K="[object FormData]";return L&&(typeof FormData=="function"&&L instanceof FormData||t.call(L)===K||E(L.toString)&&L.toString()===K)}var R=n("URLSearchParams");function S(L){return L.trim?L.trim():L.replace(/^\s+|\s+$/g,"")}function O(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function N(L,K){if(!(L===null||typeof L>"u"))if(typeof L!="object"&&(L=[L]),a(L))for(var re=0,ge=L.length;re<ge;re++)K.call(null,L[re],re,L);else for(var ne in L)Object.prototype.hasOwnProperty.call(L,ne)&&K.call(null,L[ne],ne,L)}function M(){var L={};function K(ne,oe){p(L[oe])&&p(ne)?L[oe]=M(L[oe],ne):p(ne)?L[oe]=M({},ne):a(ne)?L[oe]=ne.slice():L[oe]=ne}for(var re=0,ge=arguments.length;re<ge;re++)N(arguments[re],K);return L}function H(L,K,re){return N(K,function(ne,oe){re&&typeof ne=="function"?L[oe]=e(ne,re):L[oe]=ne}),L}function G(L){return L.charCodeAt(0)===65279&&(L=L.slice(1)),L}function W(L,K,re,ge){L.prototype=Object.create(K.prototype,ge),L.prototype.constructor=L,re&&Object.assign(L.prototype,re)}function U(L,K,re){var ge,ne,oe,ve={};K=K||{};do{for(ge=Object.getOwnPropertyNames(L),ne=ge.length;ne-- >0;)oe=ge[ne],ve[oe]||(K[oe]=L[oe],ve[oe]=!0);L=Object.getPrototypeOf(L)}while(L&&(!re||re(L,K))&&L!==Object.prototype);return K}function j(L,K,re){L=String(L),(re===void 0||re>L.length)&&(re=L.length),re-=K.length;var ge=L.indexOf(K,re);return ge!==-1&&ge===re}function Z(L){if(!L)return null;var K=L.length;if(o(K))return null;for(var re=new Array(K);K-- >0;)re[K]=L[K];return re}var ee=function(L){return function(K){return L&&K instanceof L}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return Jc={isArray:a,isArrayBuffer:i,isBuffer:s,isFormData:T,isArrayBufferView:l,isString:u,isNumber:c,isObject:d,isPlainObject:p,isUndefined:o,isDate:f,isFile:h,isBlob:m,isFunction:E,isStream:y,isURLSearchParams:R,isStandardBrowserEnv:O,forEach:N,merge:M,extend:H,trim:S,stripBOM:G,inherits:W,toFlatObject:U,kindOf:r,kindOfTest:n,endsWith:j,toArray:Z,isTypedArray:ee,isFileList:w},Jc}var Zc,Bm;function XE(){if(Bm)return Zc;Bm=1;var e=Pt();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 Zc=function(n,a,o){if(!a)return n;var s;if(o)s=o(a);else if(e.isURLSearchParams(a))s=a.toString();else{var i=[];e.forEach(a,function(c,d){c===null||typeof c>"u"||(e.isArray(c)?d=d+"[]":c=[c],e.forEach(c,function(f){e.isDate(f)?f=f.toISOString():e.isObject(f)&&(f=JSON.stringify(f)),i.push(t(d)+"="+t(f))}))}),s=i.join("&")}if(s){var l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n},Zc}var ef,Dm;function dC(){if(Dm)return ef;Dm=1;var e=Pt();function t(){this.handlers=[]}return t.prototype.use=function(n,a,o){return this.handlers.push({fulfilled:n,rejected:a,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)})},ef=t,ef}var tf,qm;function pC(){if(qm)return tf;qm=1;var e=Pt();return tf=function(r,n){e.forEach(r,function(o,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(r[n]=o,delete r[s])})},tf}var rf,Fm;function io(){if(Fm)return rf;Fm=1;var e=Pt();function t(a,o,s,i,l){Error.call(this),this.message=a,this.name="AxiosError",o&&(this.code=o),s&&(this.config=s),i&&(this.request=i),l&&(this.response=l)}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(a){n[a]={value:a}}),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(a,o,s,i,l,u){var c=Object.create(r);return e.toFlatObject(a,c,function(p){return p!==Error.prototype}),t.call(c,a.message,o,s,i,l),c.name=a.name,u&&Object.assign(c,u),c},rf=t,rf}var nf,jm;function QE(){return jm||(jm=1,nf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),nf}var af,Um;function JE(){if(Um)return af;Um=1;var e=Pt();function t(r,n){n=n||new FormData;var a=[];function o(i){return i===null?"":e.isDate(i)?i.toISOString():e.isArrayBuffer(i)||e.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function s(i,l){if(e.isPlainObject(i)||e.isArray(i)){if(a.indexOf(i)!==-1)throw Error("Circular reference detected in "+l);a.push(i),e.forEach(i,function(c,d){if(!e.isUndefined(c)){var p=l?l+"."+d:d,f;if(c&&!l&&typeof c=="object"){if(e.endsWith(d,"{}"))c=JSON.stringify(c);else if(e.endsWith(d,"[]")&&(f=e.toArray(c))){f.forEach(function(h){!e.isUndefined(h)&&n.append(p,o(h))});return}}s(c,p)}}),a.pop()}else n.append(l,o(i))}return s(r),n}return af=t,af}var of,Hm;function hC(){if(Hm)return of;Hm=1;var e=io();return of=function(r,n,a){var o=a.config.validateStatus;!a.status||!o||o(a.status)?r(a):n(new e("Request failed with status code "+a.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))},of}var sf,Gm;function mC(){if(Gm)return sf;Gm=1;var e=Pt();return sf=e.isStandardBrowserEnv()?function(){return{write:function(n,a,o,s,i,l){var u=[];u.push(n+"="+encodeURIComponent(a)),e.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),e.isString(s)&&u.push("path="+s),e.isString(i)&&u.push("domain="+i),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),sf}var lf,Wm;function yC(){return Wm||(Wm=1,lf=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),lf}var uf,Vm;function vC(){return Vm||(Vm=1,uf=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),uf}var cf,zm;function ZE(){if(zm)return cf;zm=1;var e=yC(),t=vC();return cf=function(n,a){return n&&!e(a)?t(n,a):a},cf}var ff,Ym;function gC(){if(Ym)return ff;Ym=1;var e=Pt(),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 ff=function(n){var a={},o,s,i;return n&&e.forEach(n.split(`
25
- `),function(u){if(i=u.indexOf(":"),o=e.trim(u.substr(0,i)).toLowerCase(),s=e.trim(u.substr(i+1)),o){if(a[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?a[o]=(a[o]?a[o]:[]).concat([s]):a[o]=a[o]?a[o]+", "+s:s}}),a},ff}var df,Km;function bC(){if(Km)return df;Km=1;var e=Pt();return df=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),a;function o(s){var i=s;return r&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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 a=o(window.location.href),function(i){var l=e.isString(i)?o(i):i;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}(),df}var pf,Xm;function zs(){if(Xm)return pf;Xm=1;var e=io(),t=Pt();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),pf=r,pf}var hf,Qm;function EC(){return Qm||(Qm=1,hf=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),hf}var mf,Jm;function Zm(){if(Jm)return mf;Jm=1;var e=Pt(),t=hC(),r=mC(),n=XE(),a=ZE(),o=gC(),s=bC(),i=QE(),l=io(),u=zs(),c=EC();return mf=function(p){return new Promise(function(h,m){var w=p.data,E=p.headers,y=p.responseType,T;function R(){p.cancelToken&&p.cancelToken.unsubscribe(T),p.signal&&p.signal.removeEventListener("abort",T)}e.isFormData(w)&&e.isStandardBrowserEnv()&&delete E["Content-Type"];var S=new XMLHttpRequest;if(p.auth){var O=p.auth.username||"",N=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";E.Authorization="Basic "+btoa(O+":"+N)}var M=a(p.baseURL,p.url);S.open(p.method.toUpperCase(),n(M,p.params,p.paramsSerializer),!0),S.timeout=p.timeout;function H(){if(S){var U="getAllResponseHeaders"in S?o(S.getAllResponseHeaders()):null,j=!y||y==="text"||y==="json"?S.responseText:S.response,Z={data:j,status:S.status,statusText:S.statusText,headers:U,config:p,request:S};t(function(L){h(L),R()},function(L){m(L),R()},Z),S=null}}if("onloadend"in S?S.onloadend=H:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(H)},S.onabort=function(){S&&(m(new l("Request aborted",l.ECONNABORTED,p,S)),S=null)},S.onerror=function(){m(new l("Network Error",l.ERR_NETWORK,p,S,S)),S=null},S.ontimeout=function(){var j=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",Z=p.transitional||i;p.timeoutErrorMessage&&(j=p.timeoutErrorMessage),m(new l(j,Z.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,p,S)),S=null},e.isStandardBrowserEnv()){var G=(p.withCredentials||s(M))&&p.xsrfCookieName?r.read(p.xsrfCookieName):void 0;G&&(E[p.xsrfHeaderName]=G)}"setRequestHeader"in S&&e.forEach(E,function(j,Z){typeof w>"u"&&Z.toLowerCase()==="content-type"?delete E[Z]:S.setRequestHeader(Z,j)}),e.isUndefined(p.withCredentials)||(S.withCredentials=!!p.withCredentials),y&&y!=="json"&&(S.responseType=p.responseType),typeof p.onDownloadProgress=="function"&&S.addEventListener("progress",p.onDownloadProgress),typeof p.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(T=function(U){S&&(m(!U||U&&U.type?new u:U),S.abort(),S=null)},p.cancelToken&&p.cancelToken.subscribe(T),p.signal&&(p.signal.aborted?T():p.signal.addEventListener("abort",T))),w||(w=null);var W=c(M);if(W&&["http","https","file"].indexOf(W)===-1){m(new l("Unsupported protocol "+W+":",l.ERR_BAD_REQUEST,p));return}S.send(w)})},mf}var yf,ey;function _C(){return ey||(ey=1,yf=null),yf}var vf,ty;function Ch(){if(ty)return vf;ty=1;var e=Pt(),t=pC(),r=io(),n=QE(),a=JE(),o={"Content-Type":"application/x-www-form-urlencoded"};function s(c,d){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=d)}function i(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=Zm()),c}function l(c,d,p){if(e.isString(c))try{return(d||JSON.parse)(c),e.trim(c)}catch(f){if(f.name!=="SyntaxError")throw f}return(p||JSON.stringify)(c)}var u={transitional:n,adapter:i(),transformRequest:[function(d,p){if(t(p,"Accept"),t(p,"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 s(p,"application/x-www-form-urlencoded;charset=utf-8"),d.toString();var f=e.isObject(d),h=p&&p["Content-Type"],m;if((m=e.isFileList(d))||f&&h==="multipart/form-data"){var w=this.env&&this.env.FormData;return a(m?{"files[]":d}:d,w&&new w)}else if(f||h==="application/json")return s(p,"application/json"),l(d);return d}],transformResponse:[function(d){var p=this.transitional||u.transitional,f=p&&p.silentJSONParsing,h=p&&p.forcedJSONParsing,m=!f&&this.responseType==="json";if(m||h&&e.isString(d)&&d.length)try{return JSON.parse(d)}catch(w){if(m)throw w.name==="SyntaxError"?r.from(w,r.ERR_BAD_RESPONSE,this,null,this.response):w}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_C()},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(d){u.headers[d]={}}),e.forEach(["post","put","patch"],function(d){u.headers[d]=e.merge(o)}),vf=u,vf}var gf,ry;function wC(){if(ry)return gf;ry=1;var e=Pt(),t=Ch();return gf=function(n,a,o){var s=this||t;return e.forEach(o,function(l){n=l.call(s,n,a)}),n},gf}var bf,ny;function e_(){return ny||(ny=1,bf=function(t){return!!(t&&t.__CANCEL__)}),bf}var Ef,ay;function TC(){if(ay)return Ef;ay=1;var e=Pt(),t=wC(),r=e_(),n=Ch(),a=zs();function o(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new a}return Ef=function(i){o(i),i.headers=i.headers||{},i.data=t.call(i,i.data,i.headers,i.transformRequest),i.headers=e.merge(i.headers.common||{},i.headers[i.method]||{},i.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete i.headers[c]});var l=i.adapter||n.adapter;return l(i).then(function(c){return o(i),c.data=t.call(i,c.data,c.headers,i.transformResponse),c},function(c){return r(c)||(o(i),c&&c.response&&(c.response.data=t.call(i,c.response.data,c.response.headers,i.transformResponse))),Promise.reject(c)})},Ef}var _f,oy;function t_(){if(oy)return _f;oy=1;var e=Pt();return _f=function(r,n){n=n||{};var a={};function o(d,p){return e.isPlainObject(d)&&e.isPlainObject(p)?e.merge(d,p):e.isPlainObject(p)?e.merge({},p):e.isArray(p)?p.slice():p}function s(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 i(d){if(!e.isUndefined(n[d]))return o(void 0,n[d])}function l(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 u(d){if(d in n)return o(r[d],n[d]);if(d in r)return o(void 0,r[d])}var c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(p){var f=c[p]||s,h=f(p);e.isUndefined(h)&&f!==u||(a[p]=h)}),a},_f}var wf,iy;function r_(){return iy||(iy=1,wf={version:"0.27.2"}),wf}var Tf,sy;function SC(){if(sy)return Tf;sy=1;var e=r_().version,t=io(),r={};["object","boolean","number","function","string","symbol"].forEach(function(o,s){r[o]=function(l){return typeof l===o||"a"+(s<1?"n ":" ")+o}});var n={};r.transitional=function(s,i,l){function u(c,d){return"[Axios v"+e+"] Transitional option '"+c+"'"+d+(l?". "+l:"")}return function(c,d,p){if(s===!1)throw new t(u(d," has been removed"+(i?" in "+i:"")),t.ERR_DEPRECATED);return i&&!n[d]&&(n[d]=!0,console.warn(u(d," has been deprecated since v"+i+" and will be removed in the near future"))),s?s(c,d,p):!0}};function a(o,s,i){if(typeof o!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var l=Object.keys(o),u=l.length;u-- >0;){var c=l[u],d=s[c];if(d){var p=o[c],f=p===void 0||d(p,c,o);if(f!==!0)throw new t("option "+c+" must be "+f,t.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return Tf={assertOptions:a,validators:r},Tf}var Sf,ly;function RC(){if(ly)return Sf;ly=1;var e=Pt(),t=XE(),r=dC(),n=TC(),a=t_(),o=ZE(),s=SC(),i=s.validators;function l(u){this.defaults=u,this.interceptors={request:new r,response:new r}}return l.prototype.request=function(c,d){typeof c=="string"?(d=d||{},d.url=c):d=c||{},d=a(this.defaults,d),d.method?d.method=d.method.toLowerCase():this.defaults.method?d.method=this.defaults.method.toLowerCase():d.method="get";var p=d.transitional;p!==void 0&&s.assertOptions(p,{silentJSONParsing:i.transitional(i.boolean),forcedJSONParsing:i.transitional(i.boolean),clarifyTimeoutError:i.transitional(i.boolean)},!1);var f=[],h=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(d)===!1||(h=h&&O.synchronous,f.unshift(O.fulfilled,O.rejected))});var m=[];this.interceptors.response.forEach(function(O){m.push(O.fulfilled,O.rejected)});var w;if(!h){var E=[n,void 0];for(Array.prototype.unshift.apply(E,f),E=E.concat(m),w=Promise.resolve(d);E.length;)w=w.then(E.shift(),E.shift());return w}for(var y=d;f.length;){var T=f.shift(),R=f.shift();try{y=T(y)}catch(S){R(S);break}}try{w=n(y)}catch(S){return Promise.reject(S)}for(;m.length;)w=w.then(m.shift(),m.shift());return w},l.prototype.getUri=function(c){c=a(this.defaults,c);var d=o(c.baseURL,c.url);return t(d,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){l.prototype[c]=function(d,p){return this.request(a(p||{},{method:c,url:d,data:(p||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function d(p){return function(h,m,w){return this.request(a(w||{},{method:c,headers:p?{"Content-Type":"multipart/form-data"}:{},url:h,data:m}))}}l.prototype[c]=d(),l.prototype[c+"Form"]=d(!0)}),Sf=l,Sf}var Rf,uy;function CC(){if(uy)return Rf;uy=1;var e=zs();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(s){n=s});var a=this;this.promise.then(function(o){if(a._listeners){var s,i=a._listeners.length;for(s=0;s<i;s++)a._listeners[s](o);a._listeners=null}}),this.promise.then=function(o){var s,i=new Promise(function(l){a.subscribe(l),s=l}).then(o);return i.cancel=function(){a.unsubscribe(s)},i},r(function(s){a.reason||(a.reason=new e(s),n(a.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 a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}},t.source=function(){var n,a=new t(function(s){n=s});return{token:a,cancel:n}},Rf=t,Rf}var Cf,cy;function xC(){return cy||(cy=1,Cf=function(t){return function(n){return t.apply(null,n)}}),Cf}var xf,fy;function OC(){if(fy)return xf;fy=1;var e=Pt();return xf=function(r){return e.isObject(r)&&r.isAxiosError===!0},xf}var dy;function PC(){if(dy)return Ai.exports;dy=1;var e=Pt(),t=KE(),r=RC(),n=t_(),a=Ch();function o(i){var l=new r(i),u=t(r.prototype.request,l);return e.extend(u,r.prototype,l),e.extend(u,l),u.create=function(d){return o(n(i,d))},u}var s=o(a);return s.Axios=r,s.CanceledError=zs(),s.CancelToken=CC(),s.isCancel=e_(),s.VERSION=r_().version,s.toFormData=JE(),s.AxiosError=io(),s.Cancel=s.CanceledError,s.all=function(l){return Promise.all(l)},s.spread=xC(),s.isAxiosError=OC(),Ai.exports=s,Ai.exports.default=s,Ai.exports}var Of,py;function n_(){return py||(py=1,Of=PC()),Of}var AC=Function.prototype.toString,Pf=Object.create,IC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,hy=Object.getOwnPropertyNames,xh=Object.getOwnPropertySymbols,MC=Object.getPrototypeOf,a_=Object.prototype,$C=a_.hasOwnProperty,kC=a_.propertyIsEnumerable,o_=typeof xh=="function",LC=typeof WeakMap=="function",BC=function(){if(LC)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}}(),i_=function(e,t){var r=e.__proto__||MC(e);if(!r)return Pf(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:Pf(r);if(~AC.call(n).indexOf("[native code]"))try{return new n}catch{}return Pf(r)},DC=function(e,t,r,n){var a=i_(e,t);n.set(e,a);for(var o in e)$C.call(e,o)&&(a[o]=r(e[o],n));if(o_)for(var s=xh(e),i=0,l=s.length,u=void 0;i<l;++i)u=s[i],kC.call(e,u)&&(a[u]=r(e[u],n));return a},my=function(e,t,r,n){var a=i_(e,t);n.set(e,a);for(var o=o_?hy(e).concat(xh(e)):hy(e),s=0,i=o.length,l=void 0,u=void 0;s<i;++s)if(l=o[s],l!=="callee"&&l!=="caller")if(u=NC(e,l),u){!u.get&&!u.set&&(u.value=r(e[l],n));try{IC(a,l,u)}catch{a[l]=u.value}}else a[l]=r(e[l],n);return a},qC=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},FC=Array.isArray,jC=Object.getPrototypeOf,UC=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 Fn(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||UC,a=r?my:DC,o=function(s,i){if(!s||typeof s!="object")return s;if(i.has(s))return i.get(s);var l=s.__proto__||jC(s),u=l&&l.constructor;if(!u||u===n.Object)return a(s,n,o,i);var c;if(FC(s)){if(r)return my(s,n,o,i);c=new u,i.set(s,c);for(var d=0,p=s.length;d<p;++d)c[d]=o(s[d],i);return c}if(s instanceof n.Date)return new u(s.getTime());if(s instanceof n.RegExp)return c=new u(s.source,s.flags||qC(s)),c.lastIndex=s.lastIndex,c;if(n.Map&&s instanceof n.Map)return c=new u,i.set(s,c),s.forEach(function(f,h){c.set(h,o(f,i))}),c;if(n.Set&&s instanceof n.Set)return c=new u,i.set(s,c),s.forEach(function(f){c.add(o(f,i))}),c;if(n.Blob&&s instanceof n.Blob)return s.slice(0,s.size,s.type);if(n.Buffer&&n.Buffer.isBuffer(s))return c=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(s.length):new u(s.length),i.set(s,c),s.copy(c),c;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(s))return c=new u(s.buffer.slice(0)),i.set(s,c),c;if(s instanceof n.ArrayBuffer)return c=s.slice(0),i.set(s,c),c}return typeof s.then=="function"||s instanceof Error||n.WeakMap&&s instanceof n.WeakMap||n.WeakSet&&s instanceof n.WeakSet?s:a(s,n,o,i)};return o(e,BC())}Fn.default=Fn;Fn.strict=function(t,r){return Fn(t,{isStrict:!0,realm:r?r.realm:void 0})};var Ys=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 a=42;t[r]=a;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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==a||s.enumerable!==!0)return!1}return!0},yy=typeof Symbol<"u"&&Symbol,HC=Ys,Oh=function(){return typeof yy!="function"||typeof Symbol!="function"||typeof yy("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:HC()},vy={foo:{}},GC=Object,WC=function(){return{__proto__:vy}.foo===vy.foo&&!({__proto__:null}instanceof GC)},VC="Function.prototype.bind called on incompatible ",Af=Array.prototype.slice,zC=Object.prototype.toString,YC="[object Function]",KC=function(t){var r=this;if(typeof r!="function"||zC.call(r)!==YC)throw new TypeError(VC+r);for(var n=Af.call(arguments,1),a,o=function(){if(this instanceof a){var c=r.apply(this,n.concat(Af.call(arguments)));return Object(c)===c?c:this}else return r.apply(t,n.concat(Af.call(arguments)))},s=Math.max(0,r.length-n.length),i=[],l=0;l<s;l++)i.push("$"+l);if(a=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,a.prototype=new u,u.prototype=null}return a},XC=KC,Ph=Function.prototype.bind||XC,QC=Ph,s_=QC.call(Function.call,Object.prototype.hasOwnProperty),Pe,Za=SyntaxError,l_=Function,Qa=TypeError,If=function(e){try{return l_('"use strict"; return ('+e+").constructor;")()}catch{}},va=Object.getOwnPropertyDescriptor;if(va)try{va({},"")}catch{va=null}var Nf=function(){throw new Qa},JC=va?function(){try{return arguments.callee,Nf}catch{try{return va(arguments,"callee").get}catch{return Nf}}}():Nf,Fa=Oh(),ZC=WC(),Rt=Object.getPrototypeOf||(ZC?function(e){return e.__proto__}:null),za={},ex=typeof Uint8Array>"u"||!Rt?Pe:Rt(Uint8Array),ga={"%AggregateError%":typeof AggregateError>"u"?Pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Pe:ArrayBuffer,"%ArrayIteratorPrototype%":Fa&&Rt?Rt([][Symbol.iterator]()):Pe,"%AsyncFromSyncIteratorPrototype%":Pe,"%AsyncFunction%":za,"%AsyncGenerator%":za,"%AsyncGeneratorFunction%":za,"%AsyncIteratorPrototype%":za,"%Atomics%":typeof Atomics>"u"?Pe:Atomics,"%BigInt%":typeof BigInt>"u"?Pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Pe:FinalizationRegistry,"%Function%":l_,"%GeneratorFunction%":za,"%Int8Array%":typeof Int8Array>"u"?Pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Fa&&Rt?Rt(Rt([][Symbol.iterator]())):Pe,"%JSON%":typeof JSON=="object"?JSON:Pe,"%Map%":typeof Map>"u"?Pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Fa||!Rt?Pe:Rt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Pe:Promise,"%Proxy%":typeof Proxy>"u"?Pe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Fa||!Rt?Pe:Rt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Fa&&Rt?Rt(""[Symbol.iterator]()):Pe,"%Symbol%":Fa?Symbol:Pe,"%SyntaxError%":Za,"%ThrowTypeError%":JC,"%TypedArray%":ex,"%TypeError%":Qa,"%Uint8Array%":typeof Uint8Array>"u"?Pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Pe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Pe:WeakSet};if(Rt)try{null.error}catch(e){var tx=Rt(Rt(e));ga["%Error.prototype%"]=tx}var rx=function e(t){var r;if(t==="%AsyncFunction%")r=If("async function () {}");else if(t==="%GeneratorFunction%")r=If("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=If("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Rt&&(r=Rt(a.prototype))}return ga[t]=r,r},gy={"%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"]},yi=Ph,gs=s_,nx=yi.call(Function.call,Array.prototype.concat),ax=yi.call(Function.apply,Array.prototype.splice),by=yi.call(Function.call,String.prototype.replace),bs=yi.call(Function.call,String.prototype.slice),ox=yi.call(Function.call,RegExp.prototype.exec),ix=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sx=/\\(\\)?/g,lx=function(t){var r=bs(t,0,1),n=bs(t,-1);if(r==="%"&&n!=="%")throw new Za("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Za("invalid intrinsic syntax, expected opening `%`");var a=[];return by(t,ix,function(o,s,i,l){a[a.length]=i?by(l,sx,"$1"):s||o}),a},ux=function(t,r){var n=t,a;if(gs(gy,n)&&(a=gy[n],n="%"+a[0]+"%"),gs(ga,n)){var o=ga[n];if(o===za&&(o=rx(n)),typeof o>"u"&&!r)throw new Qa("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Za("intrinsic "+t+" does not exist!")},Tr=function(t,r){if(typeof t!="string"||t.length===0)throw new Qa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Qa('"allowMissing" argument must be a boolean');if(ox(/^%?[^%]*%?$/,t)===null)throw new Za("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=lx(t),a=n.length>0?n[0]:"",o=ux("%"+a+"%",r),s=o.name,i=o.value,l=!1,u=o.alias;u&&(a=u[0],ax(n,nx([0,1],u)));for(var c=1,d=!0;c<n.length;c+=1){var p=n[c],f=bs(p,0,1),h=bs(p,-1);if((f==='"'||f==="'"||f==="`"||h==='"'||h==="'"||h==="`")&&f!==h)throw new Za("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(l=!0),a+="."+p,s="%"+a+"%",gs(ga,s))i=ga[s];else if(i!=null){if(!(p in i)){if(!r)throw new Qa("base intrinsic for "+t+" exists, but the property is not available.");return}if(va&&c+1>=n.length){var m=va(i,p);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?i=m.get:i=i[p]}else d=gs(i,p),i=i[p];d&&!l&&(ga[s]=i)}}return i},u_={exports:{}};(function(e){var t=Ph,r=Tr,n=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(a,n),s=r("%Object.getOwnPropertyDescriptor%",!0),i=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}e.exports=function(d){var p=o(t,a,arguments);if(s&&i){var f=s(p,"length");f.configurable&&i(p,"length",{value:1+l(0,d.length-(arguments.length-1))})}return p};var u=function(){return o(t,n,arguments)};i?i(e.exports,"apply",{value:u}):e.exports.apply=u})(u_);var so=u_.exports,c_=Tr,f_=so,cx=f_(c_("String.prototype.indexOf")),or=function(t,r){var n=c_(t,!!r);return typeof n=="function"&&cx(t,".prototype.")>-1?f_(n):n};const fx={},dx=Object.freeze(Object.defineProperty({__proto__:null,default:fx},Symbol.toStringTag,{value:"Module"})),px=mi(dx);var Ah=typeof Map=="function"&&Map.prototype,Mf=Object.getOwnPropertyDescriptor&&Ah?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Es=Ah&&Mf&&typeof Mf.get=="function"?Mf.get:null,Ey=Ah&&Map.prototype.forEach,Ih=typeof Set=="function"&&Set.prototype,$f=Object.getOwnPropertyDescriptor&&Ih?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_s=Ih&&$f&&typeof $f.get=="function"?$f.get:null,_y=Ih&&Set.prototype.forEach,hx=typeof WeakMap=="function"&&WeakMap.prototype,Qo=hx?WeakMap.prototype.has:null,mx=typeof WeakSet=="function"&&WeakSet.prototype,Jo=mx?WeakSet.prototype.has:null,yx=typeof WeakRef=="function"&&WeakRef.prototype,wy=yx?WeakRef.prototype.deref:null,vx=Boolean.prototype.valueOf,gx=Object.prototype.toString,bx=Function.prototype.toString,Ex=String.prototype.match,Nh=String.prototype.slice,Nn=String.prototype.replace,_x=String.prototype.toUpperCase,Ty=String.prototype.toLowerCase,d_=RegExp.prototype.test,Sy=Array.prototype.concat,Lr=Array.prototype.join,wx=Array.prototype.slice,Ry=Math.floor,dp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,kf=Object.getOwnPropertySymbols,pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,eo=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$t=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===eo||"symbol")?Symbol.toStringTag:null,p_=Object.prototype.propertyIsEnumerable,Cy=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function xy(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||d_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Ry(-e):Ry(e);if(n!==e){var a=String(n),o=Nh.call(t,a.length+1);return Nn.call(a,r,"$&_")+"."+Nn.call(Nn.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Nn.call(t,r,"$&_")}var hp=px,Oy=hp.custom,Py=m_(Oy)?Oy:null,Tx=function e(t,r,n,a){var o=r||{};if(xn(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xn(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 s=xn(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xn(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(xn(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=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 v_(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return i?xy(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return i?xy(t,u):u}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return mp(t)?"[Array]":"[Object]";var d=jx(o,n);if(typeof a>"u")a=[];else if(y_(a,t)>=0)return"[Circular]";function p(j,Z,ee){if(Z&&(a=wx.call(a),a.push(Z)),ee){var L={depth:o.depth};return xn(o,"quoteStyle")&&(L.quoteStyle=o.quoteStyle),e(j,L,n+1,a)}return e(j,o,n+1,a)}if(typeof t=="function"&&!Ay(t)){var f=Nx(t),h=Ii(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(h.length>0?" { "+Lr.call(h,", ")+" }":"")}if(m_(t)){var m=eo?Nn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):pp.call(t);return typeof t=="object"&&!eo?wo(m):m}if(Dx(t)){for(var w="<"+Ty.call(String(t.nodeName)),E=t.attributes||[],y=0;y<E.length;y++)w+=" "+E[y].name+"="+h_(Sx(E[y].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+Ty.call(String(t.nodeName))+">",w}if(mp(t)){if(t.length===0)return"[]";var T=Ii(t,p);return d&&!Fx(T)?"["+yp(T,d)+"]":"[ "+Lr.call(T,", ")+" ]"}if(Cx(t)){var R=Ii(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!p_.call(t,"cause")?"{ ["+String(t)+"] "+Lr.call(Sy.call("[cause]: "+p(t.cause),R),", ")+" }":R.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Lr.call(R,", ")+" }"}if(typeof t=="object"&&s){if(Py&&typeof t[Py]=="function"&&hp)return hp(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Mx(t)){var S=[];return Ey&&Ey.call(t,function(j,Z){S.push(p(Z,t,!0)+" => "+p(j,t))}),Iy("Map",Es.call(t),S,d)}if(Lx(t)){var O=[];return _y&&_y.call(t,function(j){O.push(p(j,t))}),Iy("Set",_s.call(t),O,d)}if($x(t))return Lf("WeakMap");if(Bx(t))return Lf("WeakSet");if(kx(t))return Lf("WeakRef");if(Ox(t))return wo(p(Number(t)));if(Ax(t))return wo(p(dp.call(t)));if(Px(t))return wo(vx.call(t));if(xx(t))return wo(p(String(t)));if(!Rx(t)&&!Ay(t)){var N=Ii(t,p),M=Cy?Cy(t)===Object.prototype:t instanceof Object||t.constructor===Object,H=t instanceof Object?"":"null prototype",G=!M&&$t&&Object(t)===t&&$t in t?Nh.call(Hn(t),8,-1):H?"Object":"",W=M||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=W+(G||H?"["+Lr.call(Sy.call([],G||[],H||[]),": ")+"] ":"");return N.length===0?U+"{}":d?U+"{"+yp(N,d)+"}":U+"{ "+Lr.call(N,", ")+" }"}return String(t)};function h_(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Sx(e){return Nn.call(String(e),/"/g,"&quot;")}function mp(e){return Hn(e)==="[object Array]"&&(!$t||!(typeof e=="object"&&$t in e))}function Rx(e){return Hn(e)==="[object Date]"&&(!$t||!(typeof e=="object"&&$t in e))}function Ay(e){return Hn(e)==="[object RegExp]"&&(!$t||!(typeof e=="object"&&$t in e))}function Cx(e){return Hn(e)==="[object Error]"&&(!$t||!(typeof e=="object"&&$t in e))}function xx(e){return Hn(e)==="[object String]"&&(!$t||!(typeof e=="object"&&$t in e))}function Ox(e){return Hn(e)==="[object Number]"&&(!$t||!(typeof e=="object"&&$t in e))}function Px(e){return Hn(e)==="[object Boolean]"&&(!$t||!(typeof e=="object"&&$t in e))}function m_(e){if(eo)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!pp)return!1;try{return pp.call(e),!0}catch{}return!1}function Ax(e){if(!e||typeof e!="object"||!dp)return!1;try{return dp.call(e),!0}catch{}return!1}var Ix=Object.prototype.hasOwnProperty||function(e){return e in this};function xn(e,t){return Ix.call(e,t)}function Hn(e){return gx.call(e)}function Nx(e){if(e.name)return e.name;var t=Ex.call(bx.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function y_(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 Mx(e){if(!Es||!e||typeof e!="object")return!1;try{Es.call(e);try{_s.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function $x(e){if(!Qo||!e||typeof e!="object")return!1;try{Qo.call(e,Qo);try{Jo.call(e,Jo)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function kx(e){if(!wy||!e||typeof e!="object")return!1;try{return wy.call(e),!0}catch{}return!1}function Lx(e){if(!_s||!e||typeof e!="object")return!1;try{_s.call(e);try{Es.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Bx(e){if(!Jo||!e||typeof e!="object")return!1;try{Jo.call(e,Jo);try{Qo.call(e,Qo)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Dx(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function v_(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return v_(Nh.call(e,0,t.maxStringLength),t)+n}var a=Nn.call(Nn.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,qx);return h_(a,"single",t)}function qx(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":"")+_x.call(t.toString(16))}function wo(e){return"Object("+e+")"}function Lf(e){return e+" { ? }"}function Iy(e,t,r,n){var a=n?yp(r,n):Lr.call(r,", ");return e+" ("+t+") {"+a+"}"}function Fx(e){for(var t=0;t<e.length;t++)if(y_(e[t],`
26
- `)>=0)return!1;return!0}function jx(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Lr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Lr.call(Array(t+1),r)}}function yp(e,t){if(e.length===0)return"";var r=`
27
- `+t.prev+t.base;return r+Lr.call(e,","+r)+`
28
- `+t.prev}function Ii(e,t){var r=mp(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=xn(e,a)?t(e[a],e):""}var o=typeof kf=="function"?kf(e):[],s;if(eo){s={};for(var i=0;i<o.length;i++)s["$"+o[i]]=o[i]}for(var l in e)xn(e,l)&&(r&&String(Number(l))===l&&l<e.length||eo&&s["$"+l]instanceof Symbol||(d_.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof kf=="function")for(var u=0;u<o.length;u++)p_.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}var Mh=Tr,lo=or,Ux=Tx,Hx=Mh("%TypeError%"),Ni=Mh("%WeakMap%",!0),Mi=Mh("%Map%",!0),Gx=lo("WeakMap.prototype.get",!0),Wx=lo("WeakMap.prototype.set",!0),Vx=lo("WeakMap.prototype.has",!0),zx=lo("Map.prototype.get",!0),Yx=lo("Map.prototype.set",!0),Kx=lo("Map.prototype.has",!0),$h=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},Xx=function(e,t){var r=$h(e,t);return r&&r.value},Qx=function(e,t,r){var n=$h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Jx=function(e,t){return!!$h(e,t)},kh=function(){var t,r,n,a={assert:function(o){if(!a.has(o))throw new Hx("Side channel does not contain "+Ux(o))},get:function(o){if(Ni&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Gx(t,o)}else if(Mi){if(r)return zx(r,o)}else if(n)return Xx(n,o)},has:function(o){if(Ni&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Vx(t,o)}else if(Mi){if(r)return Kx(r,o)}else if(n)return Jx(n,o);return!1},set:function(o,s){Ni&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Ni),Wx(t,o,s)):Mi?(r||(r=new Mi),Yx(r,o,s)):(n||(n={key:{},next:null}),Qx(n,o,s))}};return a},Zx=String.prototype.replace,eO=/%20/g,Bf={RFC1738:"RFC1738",RFC3986:"RFC3986"},Lh={default:Bf.RFC3986,formatters:{RFC1738:function(e){return Zx.call(e,eO,"+")},RFC3986:function(e){return String(e)}},RFC1738:Bf.RFC1738,RFC3986:Bf.RFC3986},tO=Lh,Df=Object.prototype.hasOwnProperty,ha=Array.isArray,Mr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),rO=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(ha(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);r.obj[r.prop]=a}}},g_=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(n[a]=t[a]);return n},nO=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(ha(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Df.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var a=t;return ha(t)&&!ha(r)&&(a=g_(t,n)),ha(t)&&ha(r)?(r.forEach(function(o,s){if(Df.call(t,s)){var i=t[s];i&&typeof i=="object"&&o&&typeof o=="object"?t[s]=e(i,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var i=r[s];return Df.call(o,s)?o[s]=e(o[s],i,n):o[s]=i,o},a)},aO=function(t,r){return Object.keys(r).reduce(function(n,a){return n[a]=r[a],n},t)},oO=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}},iO=function(t,r,n,a,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var i="",l=0;l<s.length;++l){var u=s.charCodeAt(l);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===tO.RFC1738&&(u===40||u===41)){i+=s.charAt(l);continue}if(u<128){i=i+Mr[u];continue}if(u<2048){i=i+(Mr[192|u>>6]+Mr[128|u&63]);continue}if(u<55296||u>=57344){i=i+(Mr[224|u>>12]+Mr[128|u>>6&63]+Mr[128|u&63]);continue}l+=1,u=65536+((u&1023)<<10|s.charCodeAt(l)&1023),i+=Mr[240|u>>18]+Mr[128|u>>12&63]+Mr[128|u>>6&63]+Mr[128|u&63]}return i},sO=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a<r.length;++a)for(var o=r[a],s=o.obj[o.prop],i=Object.keys(s),l=0;l<i.length;++l){var u=i[l],c=s[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:u}),n.push(c))}return rO(r),t},lO=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},uO=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},cO=function(t,r){return[].concat(t,r)},fO=function(t,r){if(ha(t)){for(var n=[],a=0;a<t.length;a+=1)n.push(r(t[a]));return n}return r(t)},b_={arrayToObject:g_,assign:aO,combine:cO,compact:sO,decode:oO,encode:iO,isBuffer:uO,isRegExp:lO,maybeMap:fO,merge:nO},E_=kh,os=b_,Zo=Lh,dO=Object.prototype.hasOwnProperty,Ny={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},nn=Array.isArray,pO=Array.prototype.push,__=function(e,t){pO.apply(e,nn(t)?t:[t])},hO=Date.prototype.toISOString,My=Zo.default,Nt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:os.encode,encodeValuesOnly:!1,format:My,formatter:Zo.formatters[My],indices:!1,serializeDate:function(t){return hO.call(t)},skipNulls:!1,strictNullHandling:!1},mO=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},qf={},yO=function e(t,r,n,a,o,s,i,l,u,c,d,p,f,h,m,w){for(var E=t,y=w,T=0,R=!1;(y=y.get(qf))!==void 0&&!R;){var S=y.get(t);if(T+=1,typeof S<"u"){if(S===T)throw new RangeError("Cyclic object value");R=!0}typeof y.get(qf)>"u"&&(T=0)}if(typeof l=="function"?E=l(r,E):E instanceof Date?E=d(E):n==="comma"&&nn(E)&&(E=os.maybeMap(E,function(L){return L instanceof Date?d(L):L})),E===null){if(o)return i&&!h?i(r,Nt.encoder,m,"key",p):r;E=""}if(mO(E)||os.isBuffer(E)){if(i){var O=h?r:i(r,Nt.encoder,m,"key",p);return[f(O)+"="+f(i(E,Nt.encoder,m,"value",p))]}return[f(r)+"="+f(String(E))]}var N=[];if(typeof E>"u")return N;var M;if(n==="comma"&&nn(E))h&&i&&(E=os.maybeMap(E,i)),M=[{value:E.length>0?E.join(",")||null:void 0}];else if(nn(l))M=l;else{var H=Object.keys(E);M=u?H.sort(u):H}for(var G=a&&nn(E)&&E.length===1?r+"[]":r,W=0;W<M.length;++W){var U=M[W],j=typeof U=="object"&&typeof U.value<"u"?U.value:E[U];if(!(s&&j===null)){var Z=nn(E)?typeof n=="function"?n(G,U):G:G+(c?"."+U:"["+U+"]");w.set(t,T);var ee=E_();ee.set(qf,w),__(N,e(j,Z,n,a,o,s,n==="comma"&&h&&nn(E)?null:i,l,u,c,d,p,f,h,m,ee))}}return N},vO=function(t){if(!t)return Nt;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||Nt.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=Zo.default;if(typeof t.format<"u"){if(!dO.call(Zo.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var a=Zo.formatters[n],o=Nt.filter;return(typeof t.filter=="function"||nn(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Nt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Nt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Nt.charsetSentinel,delimiter:typeof t.delimiter>"u"?Nt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Nt.encode,encoder:typeof t.encoder=="function"?t.encoder:Nt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Nt.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Nt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Nt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Nt.strictNullHandling}},gO=function(e,t){var r=e,n=vO(t),a,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):nn(n.filter)&&(o=n.filter,a=o);var s=[];if(typeof r!="object"||r===null)return"";var i;t&&t.arrayFormat in Ny?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var l=Ny[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=l==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var c=E_(),d=0;d<a.length;++d){var p=a[d];n.skipNulls&&r[p]===null||__(s,yO(r[p],p,l,u,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,c))}var f=s.join(n.delimiter),h=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""},to=b_,vp=Object.prototype.hasOwnProperty,bO=Array.isArray,St={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:to.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},EO=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},w_=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},_O="utf8=%26%2310003%3B",wO="utf8=%E2%9C%93",TO=function(t,r){var n={__proto__:null},a=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=a.split(r.delimiter,o),i=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===wO?u="utf-8":s[l]===_O&&(u="iso-8859-1"),i=l,l=s.length);for(l=0;l<s.length;++l)if(l!==i){var c=s[l],d=c.indexOf("]="),p=d===-1?c.indexOf("="):d+1,f,h;p===-1?(f=r.decoder(c,St.decoder,u,"key"),h=r.strictNullHandling?null:""):(f=r.decoder(c.slice(0,p),St.decoder,u,"key"),h=to.maybeMap(w_(c.slice(p+1),r),function(m){return r.decoder(m,St.decoder,u,"value")})),h&&r.interpretNumericEntities&&u==="iso-8859-1"&&(h=EO(h)),c.indexOf("[]=")>-1&&(h=bO(h)?[h]:h),vp.call(n,f)?n[f]=to.combine(n[f],h):n[f]=h}return n},SO=function(e,t,r,n){for(var a=n?t:w_(t,r),o=e.length-1;o>=0;--o){var s,i=e[o];if(i==="[]"&&r.parseArrays)s=[].concat(a);else{s=r.plainObjects?Object.create(null):{};var l=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,u=parseInt(l,10);!r.parseArrays&&l===""?s={0:a}:!isNaN(u)&&i!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(s=[],s[u]=a):l!=="__proto__"&&(s[l]=a)}a=s}return a},RO=function(t,r,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&vp.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&(l=i.exec(o))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&vp.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),SO(c,r,n,a)}},CO=function(t){if(!t)return St;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"?St.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?St.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:St.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:St.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:St.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:St.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:St.comma,decoder:typeof t.decoder=="function"?t.decoder:St.decoder,delimiter:typeof t.delimiter=="string"||to.isRegExp(t.delimiter)?t.delimiter:St.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:St.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:St.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:St.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:St.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:St.strictNullHandling}},xO=function(e,t){var r=CO(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?TO(e,r):e,a=r.plainObjects?Object.create(null):{},o=Object.keys(n),s=0;s<o.length;++s){var i=o[s],l=RO(i,n[i],r,typeof e=="string");a=to.merge(a,l,r)}return r.allowSparse===!0?a:to.compact(a)},OO=gO,PO=xO,AO=Lh,IO={formats:AO,parse:PO,stringify:OO};const NO=wr(IO);var MO="[object String]",$O=Object.prototype,kO=$O.toString,LO=Array.isArray;function BO(e){return!!e&&typeof e=="object"}function DO(e){return typeof e=="string"||!LO(e)&&BO(e)&&kO.call(e)==MO}var qO=DO;const $y=wr(qO);var Bh={exports:{}};class T_ extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const FO=({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 a=0,o=0;function s(){const c=Date.now();return c-a>t?(o=1,a=c,0):(o<e?o++:(a+=t,o=1),a-c)}const i=[];function l(){const c=Date.now();if(i.length<e)return i.push(c),0;const d=i.shift()+t;return c>=d?(i.push(c),0):(i.push(d),d-c)}const u=r?l:s;return c=>{const d=function(...p){if(!d.isEnabled)return(async()=>c.apply(this,p))();let f;return new Promise((h,m)=>{f=setTimeout(()=>{h(c.apply(this,p)),n.delete(f)},u()),n.set(f,m)})};return d.abort=()=>{for(const p of n.keys())clearTimeout(p),n.get(p)(new T_);n.clear(),i.splice(0,i.length)},d.isEnabled=!0,d}};Bh.exports=FO;Bh.exports.AbortError=T_;var jO=Bh.exports;const UO=wr(jO);var HO="[object Object]";function GO(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function WO(e,t){return function(r){return e(t(r))}}var VO=Function.prototype,S_=Object.prototype,R_=VO.toString,zO=S_.hasOwnProperty,YO=R_.call(Object),KO=S_.toString,XO=WO(Object.getPrototypeOf,Object);function QO(e){return!!e&&typeof e=="object"}function JO(e){if(!QO(e)||KO.call(e)!=HO||GO(e))return!1;var t=XO(e);if(t===null)return!0;var r=zO.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&R_.call(r)==YO}var ZO=JO;const $i=wr(ZO);function eP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,s,i=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return i}}function ky(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ya(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ky(Object(r),!0).forEach(function(n){tP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ky(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gp(e){"@babel/helpers - typeof";return gp=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},gp(e)}function bp(){bp=function(a,o){return new r(a,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function r(a,o,s){var i=new RegExp(a,o);return t.set(i,s||t.get(a)),ws(i,r.prototype)}function n(a,o){var s=t.get(o);return Object.keys(s).reduce(function(i,l){var u=s[l];if(typeof u=="number")i[l]=a[u];else{for(var c=0;a[u[c]]===void 0&&c+1<u.length;)c++;i[l]=a[u[c]]}return i},Object.create(null))}return rP(r,RegExp),r.prototype.exec=function(a){var o=e.exec.call(this,a);if(o){o.groups=n(o,this);var s=o.indices;s&&(s.groups=n(s,this))}return o},r.prototype[Symbol.replace]=function(a,o){if(typeof o=="string"){var s=t.get(this);return e[Symbol.replace].call(this,a,o.replace(/\$<([^>]+)>/g,function(l,u){var c=s[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var i=this;return e[Symbol.replace].call(this,a,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(n(l,i)),o.apply(this,l)})}return e[Symbol.replace].call(this,a,o)},bp.apply(this,arguments)}function tP(e,t,r){return t=lP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rP(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&&ws(e,t)}function ws(e,t){return ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ws(e,t)}function nP(e,t){return aP(e)||eP(e,t)||C_(e,t)||oP()}function aP(e){if(Array.isArray(e))return e}function C_(e,t){if(e){if(typeof e=="string")return Ly(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 Ly(e,t)}}function Ly(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 oP(){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 iP(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C_(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}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,s=!1,i;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(s)throw i}}}}function sP(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 lP(e){var t=sP(e,"string");return typeof t=="symbol"?t:String(t)}function uP(){return typeof process<"u"&&!process.browser}function cP(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function fP(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function dP(){return window}function Ep(){}var _p=bp(/(\d+)(%)/,{value:1});function Ff(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(_p.test(e)){var n,a=(n=e.match(_p))===null||n===void 0?void 0:n.groups;if(a&&a.value){var o=parseInt(a.value)/100;r=Math.round(t*o)}}return Math.min(30,Math.max(1,r))}function By(e,t){return t("info","Throttle request to ".concat(e,"/s")),UO({limit:e,interval:1e3,strict:!1})}var pP=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?Ep:r,a=$y(t)?Ff(t):Ff("auto",t),o=By(a,n),s=!1,i=e.interceptors.request.use(function(u){return o(function(){return u})()},function(u){return Promise.reject(u)}),l=e.interceptors.response.use(function(u){if(!s&&$y(t)&&(t==="auto"||_p.test(t))&&u.headers&&u.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(u.headers["x-contentful-ratelimit-second-limit"]),d=Ff(t,c);d!==a&&(i&&e.interceptors.request.eject(i),a=d,o=By(d,n),i=e.interceptors.request.use(function(p){return o(function(){return p})()},function(p){return Promise.reject(p)})),s=!0}return u},function(u){return Promise.reject(u)});return function(){e.interceptors.request.eject(i),e.interceptors.response.eject(l)}},hP=function(t){return new Promise(function(r){setTimeout(r,t)})},mP=function(t){return Math.pow(Math.SQRT2,t)};function yP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,a=n===void 0?Ep:n,o=r.requestLogger,s=o===void 0?Ep:o;e.interceptors.request.use(function(i){return s(i),i},function(i){return s(i),Promise.reject(i)}),e.interceptors.response.use(function(i){return a(i),i},function(i){var l=i.response,u=i.config;if(a(i),!u||!e.defaults.retryOnError)return Promise.reject(i);var c=u.attempts||1;if(c>t)return i.attempts=u.attempts,Promise.reject(i);var d=null,p=mP(c);return l?l.status>=500&&l.status<600?d="Server ".concat(l.status):l.status===429&&(d="Rate limit",l.headers&&i.response.headers["x-contentful-ratelimit-reset"]&&(p=l.headers["x-contentful-ratelimit-reset"])):d="Connection",d?(p=Math.floor(p*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(d," error occurred. Waiting for ").concat(p," ms before retrying...")),u.attempts=c+1,delete u.httpAgent,delete u.httpsAgent,hP(p).then(function(){return e(u)})):Promise.reject(i)})}function vP(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=Ya(Ya({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var gP=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function x_(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,w){if(m==="error"&&w){var E=[w.name,w.message].filter(function(y){return y}).join(" - ");console.error("[error] ".concat(E)),console.error(w);return}console.log("[".concat(m,"] ").concat(w))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},n=Ya(Ya({},r),t);if(!n.accessToken){var a=new TypeError("Expected parameter accessToken");throw n.logHandler("error",a),a}var o=n.insecure?"http":"https",s=n.space?"".concat(n.space,"/"):"",i=n.defaultHostname,l=n.insecure?80:443;if(n.host&&gP.test(n.host)){var u=n.host.split(":");if(u.length===2){var c=nP(u,2);i=c[0],l=c[1]}else i=u[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(o,"://").concat(i,":").concat(l).concat(n.basePath,"/spaces/").concat(s);!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken);var p={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:NO.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(p);return f.httpClientParams=t,f.cloneWithNewParams=function(h){return x_(e,Ya(Ya({},Fn(t)),h))},n.onBeforeRequest&&f.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&vP(f,n.accessToken),n.throttle&&pP(f,n.throttle),yP(f,n.retryLimit),n.onError&&f.interceptors.response.use(function(h){return h},n.onError),f}function bP(e){var t=e.query,r={};return delete t.resolveLinks,r.params=Fn(t),r}function EP(e,t){if(!(t in e)){var r=new Error;throw r.name="PropertyMissing",r.message="Required property ".concat(t,` missing from:
24
+ */var oc;function Pg(){return oc||(oc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,c=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,T=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function b(te){return typeof te=="string"||typeof te=="function"||te===r||te===f||te===i||te===o||te===h||te===d||typeof te=="object"&&te!==null&&(te.$$typeof===p||te.$$typeof===c||te.$$typeof===s||te.$$typeof===a||te.$$typeof===u||te.$$typeof===_||te.$$typeof===T||te.$$typeof===E||te.$$typeof===m)}function A(te){if(typeof te=="object"&&te!==null){var ze=te.$$typeof;switch(ze){case t:var De=te.type;switch(De){case l:case f:case r:case i:case o:case h:return De;default:var bt=De&&De.$$typeof;switch(bt){case a:case u:case p:case c:case s:return bt;default:return ze}}case n:return ze}}}var w=l,N=f,F=a,M=s,W=t,q=u,V=r,j=p,Y=c,oe=n,K=i,k=o,z=h,J=!1;function de(te){return J||(J=!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.")),X(te)||A(te)===l}function X(te){return A(te)===f}function ee(te){return A(te)===a}function ue(te){return A(te)===s}function ce(te){return typeof te=="object"&&te!==null&&te.$$typeof===t}function Ve(te){return A(te)===u}function Q(te){return A(te)===r}function re(te){return A(te)===p}function Pe(te){return A(te)===c}function xe(te){return A(te)===n}function at(te){return A(te)===i}function ct(te){return A(te)===o}function _t(te){return A(te)===h}Ce.AsyncMode=w,Ce.ConcurrentMode=N,Ce.ContextConsumer=F,Ce.ContextProvider=M,Ce.Element=W,Ce.ForwardRef=q,Ce.Fragment=V,Ce.Lazy=j,Ce.Memo=Y,Ce.Portal=oe,Ce.Profiler=K,Ce.StrictMode=k,Ce.Suspense=z,Ce.isAsyncMode=de,Ce.isConcurrentMode=X,Ce.isContextConsumer=ee,Ce.isContextProvider=ue,Ce.isElement=ce,Ce.isForwardRef=Ve,Ce.isFragment=Q,Ce.isLazy=re,Ce.isMemo=Pe,Ce.isPortal=xe,Ce.isProfiler=at,Ce.isStrictMode=ct,Ce.isSuspense=_t,Ce.isValidElementType=b,Ce.typeOf=A}()),Ce}process.env.NODE_ENV==="production"?Hs.exports=Rg():Hs.exports=Pg();var Ig=Hs.exports,xd=Ig,Ng={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ad={};Ad[xd.ForwardRef]=Ng;Ad[xd.Memo]=Lg;function kg(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Cd(e){const t=G.useContext(Ag);if(!t)throw new Error("Missing <CookiesProvider>");const[n,r]=G.useState(()=>t.getAll());kg()&&G.useLayoutEffect(()=>{function a(){const l=t.getAll({doNotUpdate:!0});Bg(e||null,l,n)&&r(l)}return t.addChangeListener(a),()=>{t.removeChangeListener(a)}},[t,n]);const o=G.useMemo(()=>t.set.bind(t),[t]),i=G.useMemo(()=>t.remove.bind(t),[t]),s=G.useMemo(()=>t.update.bind(t),[t]);return[n,o,i,s]}function Bg(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}var Rd={exports:{}},oa={exports:{}},to={},ro={exports:{}},aa,ac;function Pd(){return ac||(ac=1,aa=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}}),aa}var sa,sc;function Xe(){if(sc)return sa;sc=1;var e=Pd(),t=Object.prototype.toString,n=function(k){return function(z){var J=t.call(z);return k[J]||(k[J]=J.slice(8,-1).toLowerCase())}}(Object.create(null));function r(k){return k=k.toLowerCase(),function(J){return n(J)===k}}function o(k){return Array.isArray(k)}function i(k){return typeof k>"u"}function s(k){return k!==null&&!i(k)&&k.constructor!==null&&!i(k.constructor)&&typeof k.constructor.isBuffer=="function"&&k.constructor.isBuffer(k)}var a=r("ArrayBuffer");function l(k){var z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView(k):z=k&&k.buffer&&a(k.buffer),z}function f(k){return typeof k=="string"}function u(k){return typeof k=="number"}function h(k){return k!==null&&typeof k=="object"}function d(k){if(n(k)!=="object")return!1;var z=Object.getPrototypeOf(k);return z===null||z===Object.prototype}var c=r("Date"),p=r("File"),m=r("Blob"),_=r("FileList");function T(k){return t.call(k)==="[object Function]"}function E(k){return h(k)&&T(k.pipe)}function b(k){var z="[object FormData]";return k&&(typeof FormData=="function"&&k instanceof FormData||t.call(k)===z||T(k.toString)&&k.toString()===z)}var A=r("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 F(k,z){if(!(k===null||typeof k>"u"))if(typeof k!="object"&&(k=[k]),o(k))for(var J=0,de=k.length;J<de;J++)z.call(null,k[J],J,k);else for(var X in k)Object.prototype.hasOwnProperty.call(k,X)&&z.call(null,k[X],X,k)}function M(){var k={};function z(X,ee){d(k[ee])&&d(X)?k[ee]=M(k[ee],X):d(X)?k[ee]=M({},X):o(X)?k[ee]=X.slice():k[ee]=X}for(var J=0,de=arguments.length;J<de;J++)F(arguments[J],z);return k}function W(k,z,J){return F(z,function(X,ee){J&&typeof X=="function"?k[ee]=e(X,J):k[ee]=X}),k}function q(k){return k.charCodeAt(0)===65279&&(k=k.slice(1)),k}function V(k,z,J,de){k.prototype=Object.create(z.prototype,de),k.prototype.constructor=k,J&&Object.assign(k.prototype,J)}function j(k,z,J){var de,X,ee,ue={};z=z||{};do{for(de=Object.getOwnPropertyNames(k),X=de.length;X-- >0;)ee=de[X],ue[ee]||(z[ee]=k[ee],ue[ee]=!0);k=Object.getPrototypeOf(k)}while(k&&(!J||J(k,z))&&k!==Object.prototype);return z}function Y(k,z,J){k=String(k),(J===void 0||J>k.length)&&(J=k.length),J-=z.length;var de=k.indexOf(z,J);return de!==-1&&de===J}function oe(k){if(!k)return null;var z=k.length;if(i(z))return null;for(var J=new Array(z);z-- >0;)J[z]=k[z];return J}var K=function(k){return function(z){return k&&z instanceof k}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return sa={isArray:o,isArrayBuffer:a,isBuffer:s,isFormData:b,isArrayBufferView:l,isString:f,isNumber:u,isObject:h,isPlainObject:d,isUndefined:i,isDate:c,isFile:p,isBlob:m,isFunction:T,isStream:E,isURLSearchParams:A,isStandardBrowserEnv:N,forEach:F,merge:M,extend:W,trim:w,stripBOM:q,inherits:V,toFlatObject:j,kindOf:n,kindOfTest:r,endsWith:Y,toArray:oe,isTypedArray:K,isFileList:_},sa}var ua,uc;function Id(){if(uc)return ua;uc=1;var e=Xe();function t(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return ua=function(r,o,i){if(!o)return r;var s;if(i)s=i(o);else if(e.isURLSearchParams(o))s=o.toString();else{var a=[];e.forEach(o,function(u,h){u===null||typeof u>"u"||(e.isArray(u)?h=h+"[]":u=[u],e.forEach(u,function(c){e.isDate(c)?c=c.toISOString():e.isObject(c)&&(c=JSON.stringify(c)),a.push(t(h)+"="+t(c))}))}),s=a.join("&")}if(s){var l=r.indexOf("#");l!==-1&&(r=r.slice(0,l)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r},ua}var ca,cc;function Mg(){if(cc)return ca;cc=1;var e=Xe();function t(){this.handlers=[]}return t.prototype.use=function(r,o,i){return this.handlers.push({fulfilled:r,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},t.prototype.forEach=function(r){e.forEach(this.handlers,function(i){i!==null&&r(i)})},ca=t,ca}var la,lc;function Fg(){if(lc)return la;lc=1;var e=Xe();return la=function(n,r){e.forEach(n,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(n[r]=i,delete n[s])})},la}var fa,fc;function Pn(){if(fc)return fa;fc=1;var e=Xe();function t(o,i,s,a,l){Error.call(this),this.message=o,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),l&&(this.response=l)}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 n=t.prototype,r={};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(o){r[o]={value:o}}),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:!0}),t.from=function(o,i,s,a,l,f){var u=Object.create(n);return e.toFlatObject(o,u,function(d){return d!==Error.prototype}),t.call(u,o.message,i,s,a,l),u.name=o.name,f&&Object.assign(u,f),u},fa=t,fa}var da,dc;function Nd(){return dc||(dc=1,da={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),da}var ha,hc;function Ld(){if(hc)return ha;hc=1;var e=Xe();function t(n,r){r=r||new FormData;var o=[];function i(a){return a===null?"":e.isDate(a)?a.toISOString():e.isArrayBuffer(a)||e.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function s(a,l){if(e.isPlainObject(a)||e.isArray(a)){if(o.indexOf(a)!==-1)throw Error("Circular reference detected in "+l);o.push(a),e.forEach(a,function(u,h){if(!e.isUndefined(u)){var d=l?l+"."+h:h,c;if(u&&!l&&typeof u=="object"){if(e.endsWith(h,"{}"))u=JSON.stringify(u);else if(e.endsWith(h,"[]")&&(c=e.toArray(u))){c.forEach(function(p){!e.isUndefined(p)&&r.append(d,i(p))});return}}s(u,d)}}),o.pop()}else r.append(l,i(a))}return s(n),r}return ha=t,ha}var pa,pc;function Ug(){if(pc)return pa;pc=1;var e=Pn();return pa=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(new e("Request failed with status code "+o.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))},pa}var ma,mc;function Dg(){if(mc)return ma;mc=1;var e=Xe();return ma=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,s,a,l){var f=[];f.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(s)&&f.push("path="+s),e.isString(a)&&f.push("domain="+a),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ma}var ga,gc;function $g(){return gc||(gc=1,ga=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),ga}var ya,yc;function jg(){return yc||(yc=1,ya=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),ya}var va,vc;function kd(){if(vc)return va;vc=1;var e=$g(),t=jg();return va=function(r,o){return r&&!e(o)?t(r,o):o},va}var Ea,Ec;function Hg(){if(Ec)return Ea;Ec=1;var e=Xe(),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 Ea=function(r){var o={},i,s,a;return r&&e.forEach(r.split(`
25
+ `),function(f){if(a=f.indexOf(":"),i=e.trim(f.substr(0,a)).toLowerCase(),s=e.trim(f.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},Ea}var _a,_c;function qg(){if(_c)return _a;_c=1;var e=Xe();return _a=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(s){var a=s;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(a){var l=e.isString(a)?i(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),_a}var ba,bc;function Go(){if(bc)return ba;bc=1;var e=Pn(),t=Xe();function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),ba=n,ba}var wa,wc;function Gg(){return wc||(wc=1,wa=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),wa}var Sa,Sc;function Tc(){if(Sc)return Sa;Sc=1;var e=Xe(),t=Ug(),n=Dg(),r=Id(),o=kd(),i=Hg(),s=qg(),a=Nd(),l=Pn(),f=Go(),u=Gg();return Sa=function(d){return new Promise(function(p,m){var _=d.data,T=d.headers,E=d.responseType,b;function A(){d.cancelToken&&d.cancelToken.unsubscribe(b),d.signal&&d.signal.removeEventListener("abort",b)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete T["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var N=d.auth.username||"",F=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";T.Authorization="Basic "+btoa(N+":"+F)}var M=o(d.baseURL,d.url);w.open(d.method.toUpperCase(),r(M,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function W(){if(w){var j="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,Y=!E||E==="text"||E==="json"?w.responseText:w.response,oe={data:Y,status:w.status,statusText:w.statusText,headers:j,config:d,request:w};t(function(k){p(k),A()},function(k){m(k),A()},oe),w=null}}if("onloadend"in w?w.onloadend=W:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(W)},w.onabort=function(){w&&(m(new l("Request aborted",l.ECONNABORTED,d,w)),w=null)},w.onerror=function(){m(new l("Network Error",l.ERR_NETWORK,d,w,w)),w=null},w.ontimeout=function(){var Y=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",oe=d.transitional||a;d.timeoutErrorMessage&&(Y=d.timeoutErrorMessage),m(new l(Y,oe.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,w)),w=null},e.isStandardBrowserEnv()){var q=(d.withCredentials||s(M))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;q&&(T[d.xsrfHeaderName]=q)}"setRequestHeader"in w&&e.forEach(T,function(Y,oe){typeof _>"u"&&oe.toLowerCase()==="content-type"?delete T[oe]:w.setRequestHeader(oe,Y)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),E&&E!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(b=function(j){w&&(m(!j||j&&j.type?new f:j),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(b),d.signal&&(d.signal.aborted?b():d.signal.addEventListener("abort",b))),_||(_=null);var V=u(M);if(V&&["http","https","file"].indexOf(V)===-1){m(new l("Unsupported protocol "+V+":",l.ERR_BAD_REQUEST,d));return}w.send(_)})},Sa}var Ta,Oc;function Wg(){return Oc||(Oc=1,Ta=null),Ta}var Oa,xc;function _u(){if(xc)return Oa;xc=1;var e=Xe(),t=Fg(),n=Pn(),r=Nd(),o=Ld(),i={"Content-Type":"application/x-www-form-urlencoded"};function s(u,h){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=h)}function a(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=Tc()),u}function l(u,h,d){if(e.isString(u))try{return(h||JSON.parse)(u),e.trim(u)}catch(c){if(c.name!=="SyntaxError")throw c}return(d||JSON.stringify)(u)}var f={transitional:r,adapter:a(),transformRequest:[function(h,d){if(t(d,"Accept"),t(d,"Content-Type"),e.isFormData(h)||e.isArrayBuffer(h)||e.isBuffer(h)||e.isStream(h)||e.isFile(h)||e.isBlob(h))return h;if(e.isArrayBufferView(h))return h.buffer;if(e.isURLSearchParams(h))return s(d,"application/x-www-form-urlencoded;charset=utf-8"),h.toString();var c=e.isObject(h),p=d&&d["Content-Type"],m;if((m=e.isFileList(h))||c&&p==="multipart/form-data"){var _=this.env&&this.env.FormData;return o(m?{"files[]":h}:h,_&&new _)}else if(c||p==="application/json")return s(d,"application/json"),l(h);return h}],transformResponse:[function(h){var d=this.transitional||f.transitional,c=d&&d.silentJSONParsing,p=d&&d.forcedJSONParsing,m=!c&&this.responseType==="json";if(m||p&&e.isString(h)&&h.length)try{return JSON.parse(h)}catch(_){if(m)throw _.name==="SyntaxError"?n.from(_,n.ERR_BAD_RESPONSE,this,null,this.response):_}return h}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wg()},validateStatus:function(h){return h>=200&&h<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(h){f.headers[h]={}}),e.forEach(["post","put","patch"],function(h){f.headers[h]=e.merge(i)}),Oa=f,Oa}var xa,Ac;function Vg(){if(Ac)return xa;Ac=1;var e=Xe(),t=_u();return xa=function(r,o,i){var s=this||t;return e.forEach(i,function(l){r=l.call(s,r,o)}),r},xa}var Aa,Cc;function Bd(){return Cc||(Cc=1,Aa=function(t){return!!(t&&t.__CANCEL__)}),Aa}var Ca,Rc;function zg(){if(Rc)return Ca;Rc=1;var e=Xe(),t=Vg(),n=Bd(),r=_u(),o=Go();function i(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new o}return Ca=function(a){i(a),a.headers=a.headers||{},a.data=t.call(a,a.data,a.headers,a.transformRequest),a.headers=e.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(u){delete a.headers[u]});var l=a.adapter||r.adapter;return l(a).then(function(u){return i(a),u.data=t.call(a,u.data,u.headers,a.transformResponse),u},function(u){return n(u)||(i(a),u&&u.response&&(u.response.data=t.call(a,u.response.data,u.response.headers,a.transformResponse))),Promise.reject(u)})},Ca}var Ra,Pc;function Md(){if(Pc)return Ra;Pc=1;var e=Xe();return Ra=function(n,r){r=r||{};var o={};function i(h,d){return e.isPlainObject(h)&&e.isPlainObject(d)?e.merge(h,d):e.isPlainObject(d)?e.merge({},d):e.isArray(d)?d.slice():d}function s(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(n[h],r[h])}function a(h){if(!e.isUndefined(r[h]))return i(void 0,r[h])}function l(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(void 0,r[h])}function f(h){if(h in r)return i(n[h],r[h]);if(h in n)return i(void 0,n[h])}var u={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f};return e.forEach(Object.keys(n).concat(Object.keys(r)),function(d){var c=u[d]||s,p=c(d);e.isUndefined(p)&&c!==f||(o[d]=p)}),o},Ra}var Pa,Ic;function Fd(){return Ic||(Ic=1,Pa={version:"0.27.2"}),Pa}var Ia,Nc;function Yg(){if(Nc)return Ia;Nc=1;var e=Fd().version,t=Pn(),n={};["object","boolean","number","function","string","symbol"].forEach(function(i,s){n[i]=function(l){return typeof l===i||"a"+(s<1?"n ":" ")+i}});var r={};n.transitional=function(s,a,l){function f(u,h){return"[Axios v"+e+"] Transitional option '"+u+"'"+h+(l?". "+l:"")}return function(u,h,d){if(s===!1)throw new t(f(h," has been removed"+(a?" in "+a:"")),t.ERR_DEPRECATED);return a&&!r[h]&&(r[h]=!0,console.warn(f(h," has been deprecated since v"+a+" and will be removed in the near future"))),s?s(u,h,d):!0}};function o(i,s,a){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var l=Object.keys(i),f=l.length;f-- >0;){var u=l[f],h=s[u];if(h){var d=i[u],c=d===void 0||h(d,u,i);if(c!==!0)throw new t("option "+u+" must be "+c,t.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t("Unknown option "+u,t.ERR_BAD_OPTION)}}return Ia={assertOptions:o,validators:n},Ia}var Na,Lc;function Kg(){if(Lc)return Na;Lc=1;var e=Xe(),t=Id(),n=Mg(),r=zg(),o=Md(),i=kd(),s=Yg(),a=s.validators;function l(f){this.defaults=f,this.interceptors={request:new n,response:new n}}return l.prototype.request=function(u,h){typeof u=="string"?(h=h||{},h.url=u):h=u||{},h=o(this.defaults,h),h.method?h.method=h.method.toLowerCase():this.defaults.method?h.method=this.defaults.method.toLowerCase():h.method="get";var d=h.transitional;d!==void 0&&s.assertOptions(d,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var c=[],p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(h)===!1||(p=p&&N.synchronous,c.unshift(N.fulfilled,N.rejected))});var m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});var _;if(!p){var T=[r,void 0];for(Array.prototype.unshift.apply(T,c),T=T.concat(m),_=Promise.resolve(h);T.length;)_=_.then(T.shift(),T.shift());return _}for(var E=h;c.length;){var b=c.shift(),A=c.shift();try{E=b(E)}catch(w){A(w);break}}try{_=r(E)}catch(w){return Promise.reject(w)}for(;m.length;)_=_.then(m.shift(),m.shift());return _},l.prototype.getUri=function(u){u=o(this.defaults,u);var h=i(u.baseURL,u.url);return t(h,u.params,u.paramsSerializer)},e.forEach(["delete","get","head","options"],function(u){l.prototype[u]=function(h,d){return this.request(o(d||{},{method:u,url:h,data:(d||{}).data}))}}),e.forEach(["post","put","patch"],function(u){function h(d){return function(p,m,_){return this.request(o(_||{},{method:u,headers:d?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}l.prototype[u]=h(),l.prototype[u+"Form"]=h(!0)}),Na=l,Na}var La,kc;function Qg(){if(kc)return La;kc=1;var e=Go();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var o=this;this.promise.then(function(i){if(o._listeners){var s,a=o._listeners.length;for(s=0;s<a;s++)o._listeners[s](i);o._listeners=null}}),this.promise.then=function(i){var s,a=new Promise(function(l){o.subscribe(l),s=l}).then(i);return a.cancel=function(){o.unsubscribe(s)},a},n(function(s){o.reason||(o.reason=new e(s),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(s){r=s});return{token:o,cancel:r}},La=t,La}var ka,Bc;function Xg(){return Bc||(Bc=1,ka=function(t){return function(r){return t.apply(null,r)}}),ka}var Ba,Mc;function Jg(){if(Mc)return Ba;Mc=1;var e=Xe();return Ba=function(n){return e.isObject(n)&&n.isAxiosError===!0},Ba}var Fc;function Zg(){if(Fc)return ro.exports;Fc=1;var e=Xe(),t=Pd(),n=Kg(),r=Md(),o=_u();function i(a){var l=new n(a),f=t(n.prototype.request,l);return e.extend(f,n.prototype,l),e.extend(f,l),f.create=function(h){return i(r(a,h))},f}var s=i(o);return s.Axios=n,s.CanceledError=Go(),s.CancelToken=Qg(),s.isCancel=Bd(),s.VERSION=Fd().version,s.toFormData=Ld(),s.AxiosError=Pn(),s.Cancel=s.CanceledError,s.all=function(l){return Promise.all(l)},s.spread=Xg(),s.isAxiosError=Jg(),ro.exports=s,ro.exports.default=s,ro.exports}var Ma,Uc;function Ud(){return Uc||(Uc=1,Ma=Zg()),Ma}var ey=Function.prototype.toString,Fa=Object.create,ty=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,Dc=Object.getOwnPropertyNames,bu=Object.getOwnPropertySymbols,ny=Object.getPrototypeOf,Dd=Object.prototype,iy=Dd.hasOwnProperty,oy=Dd.propertyIsEnumerable,$d=typeof bu=="function",ay=typeof WeakMap=="function",sy=function(){if(ay)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(n){return!!~this._keys.indexOf(n)},t.prototype.get=function(n){return this._values[this._keys.indexOf(n)]},t.prototype.set=function(n,r){this._keys.push(n),this._values.push(r)},t}();return function(){return new e}}(),jd=function(e,t){var n=e.__proto__||ny(e);if(!n)return Fa(null);var r=n.constructor;if(r===t.Object)return n===t.Object.prototype?{}:Fa(n);if(~ey.call(r).indexOf("[native code]"))try{return new r}catch{}return Fa(n)},uy=function(e,t,n,r){var o=jd(e,t);r.set(e,o);for(var i in e)iy.call(e,i)&&(o[i]=n(e[i],r));if($d)for(var s=bu(e),a=0,l=s.length,f=void 0;a<l;++a)f=s[a],oy.call(e,f)&&(o[f]=n(e[f],r));return o},$c=function(e,t,n,r){var o=jd(e,t);r.set(e,o);for(var i=$d?Dc(e).concat(bu(e)):Dc(e),s=0,a=i.length,l=void 0,f=void 0;s<a;++s)if(l=i[s],l!=="callee"&&l!=="caller")if(f=ry(e,l),f){!f.get&&!f.set&&(f.value=n(e[l],r));try{ty(o,l,f)}catch{o[l]=f.value}}else o[l]=n(e[l],r);return o},cy=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},ly=Array.isArray,fy=Object.getPrototypeOf,dy=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 yr(e,t){var n=!!(t&&t.isStrict),r=t&&t.realm||dy,o=n?$c:uy,i=function(s,a){if(!s||typeof s!="object")return s;if(a.has(s))return a.get(s);var l=s.__proto__||fy(s),f=l&&l.constructor;if(!f||f===r.Object)return o(s,r,i,a);var u;if(ly(s)){if(n)return $c(s,r,i,a);u=new f,a.set(s,u);for(var h=0,d=s.length;h<d;++h)u[h]=i(s[h],a);return u}if(s instanceof r.Date)return new f(s.getTime());if(s instanceof r.RegExp)return u=new f(s.source,s.flags||cy(s)),u.lastIndex=s.lastIndex,u;if(r.Map&&s instanceof r.Map)return u=new f,a.set(s,u),s.forEach(function(c,p){u.set(p,i(c,a))}),u;if(r.Set&&s instanceof r.Set)return u=new f,a.set(s,u),s.forEach(function(c){u.add(i(c,a))}),u;if(r.Blob&&s instanceof r.Blob)return s.slice(0,s.size,s.type);if(r.Buffer&&r.Buffer.isBuffer(s))return u=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(s.length):new f(s.length),a.set(s,u),s.copy(u),u;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(s))return u=new f(s.buffer.slice(0)),a.set(s,u),u;if(s instanceof r.ArrayBuffer)return u=s.slice(0),a.set(s,u),u}return typeof s.then=="function"||s instanceof Error||r.WeakMap&&s instanceof r.WeakMap||r.WeakSet&&s instanceof r.WeakSet?s:o(s,r,i,a)};return i(e,sy())}yr.default=yr;yr.strict=function(t,n){return yr(t,{isStrict:!0,realm:n?n.realm:void 0})};var hy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},jc=typeof Symbol<"u"&&Symbol,py=hy,my=function(){return typeof jc!="function"||typeof Symbol!="function"||typeof jc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:py()},Hc={foo:{}},gy=Object,yy=function(){return{__proto__:Hc}.foo===Hc.foo&&!({__proto__:null}instanceof gy)},vy="Function.prototype.bind called on incompatible ",Ua=Array.prototype.slice,Ey=Object.prototype.toString,_y="[object Function]",by=function(t){var n=this;if(typeof n!="function"||Ey.call(n)!==_y)throw new TypeError(vy+n);for(var r=Ua.call(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,r.concat(Ua.call(arguments)));return Object(u)===u?u:this}else return n.apply(t,r.concat(Ua.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l<s;l++)a.push("$"+l);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var f=function(){};f.prototype=n.prototype,o.prototype=new f,f.prototype=null}return o},wy=by,wu=Function.prototype.bind||wy,Sy=wu,Ty=Sy.call(Function.call,Object.prototype.hasOwnProperty),ge,On=SyntaxError,Hd=Function,Tn=TypeError,Da=function(e){try{return Hd('"use strict"; return ('+e+").constructor;")()}catch{}},Kr=Object.getOwnPropertyDescriptor;if(Kr)try{Kr({},"")}catch{Kr=null}var $a=function(){throw new Tn},Oy=Kr?function(){try{return arguments.callee,$a}catch{try{return Kr(arguments,"callee").get}catch{return $a}}}():$a,vn=my(),xy=yy(),We=Object.getPrototypeOf||(xy?function(e){return e.__proto__}:null),bn={},Ay=typeof Uint8Array>"u"||!We?ge:We(Uint8Array),Qr={"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":vn&&We?We([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":bn,"%AsyncGenerator%":bn,"%AsyncGeneratorFunction%":bn,"%AsyncIteratorPrototype%":bn,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":Hd,"%GeneratorFunction%":bn,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vn&&We?We(We([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vn||!We?ge:We(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vn||!We?ge:We(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vn&&We?We(""[Symbol.iterator]()):ge,"%Symbol%":vn?Symbol:ge,"%SyntaxError%":On,"%ThrowTypeError%":Oy,"%TypedArray%":Ay,"%TypeError%":Tn,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(We)try{null.error}catch(e){var Cy=We(We(e));Qr["%Error.prototype%"]=Cy}var Ry=function e(t){var n;if(t==="%AsyncFunction%")n=Da("async function () {}");else if(t==="%GeneratorFunction%")n=Da("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Da("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&We&&(n=We(o.prototype))}return Qr[t]=n,n},qc={"%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"]},Vi=wu,No=Ty,Py=Vi.call(Function.call,Array.prototype.concat),Iy=Vi.call(Function.apply,Array.prototype.splice),Gc=Vi.call(Function.call,String.prototype.replace),Lo=Vi.call(Function.call,String.prototype.slice),Ny=Vi.call(Function.call,RegExp.prototype.exec),Ly=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ky=/\\(\\)?/g,By=function(t){var n=Lo(t,0,1),r=Lo(t,-1);if(n==="%"&&r!=="%")throw new On("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new On("invalid intrinsic syntax, expected opening `%`");var o=[];return Gc(t,Ly,function(i,s,a,l){o[o.length]=a?Gc(l,ky,"$1"):s||i}),o},My=function(t,n){var r=t,o;if(No(qc,r)&&(o=qc[r],r="%"+o[0]+"%"),No(Qr,r)){var i=Qr[r];if(i===bn&&(i=Ry(r)),typeof i>"u"&&!n)throw new Tn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new On("intrinsic "+t+" does not exist!")},Su=function(t,n){if(typeof t!="string"||t.length===0)throw new Tn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Tn('"allowMissing" argument must be a boolean');if(Ny(/^%?[^%]*%?$/,t)===null)throw new On("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=By(t),o=r.length>0?r[0]:"",i=My("%"+o+"%",n),s=i.name,a=i.value,l=!1,f=i.alias;f&&(o=f[0],Iy(r,Py([0,1],f)));for(var u=1,h=!0;u<r.length;u+=1){var d=r[u],c=Lo(d,0,1),p=Lo(d,-1);if((c==='"'||c==="'"||c==="`"||p==='"'||p==="'"||p==="`")&&c!==p)throw new On("property names with quotes must have matching quotes");if((d==="constructor"||!h)&&(l=!0),o+="."+d,s="%"+o+"%",No(Qr,s))a=Qr[s];else if(a!=null){if(!(d in a)){if(!n)throw new Tn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Kr&&u+1>=r.length){var m=Kr(a,d);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else h=No(a,d),a=a[d];h&&!l&&(Qr[s]=a)}}return a},qd={exports:{}};(function(e){var t=wu,n=Su,r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(o,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var d=i(t,o,arguments);if(s&&a){var c=s(d,"length");c.configurable&&a(d,"length",{value:1+l(0,h.length-(arguments.length-1))})}return d};var f=function(){return i(t,r,arguments)};a?a(e.exports,"apply",{value:f}):e.exports.apply=f})(qd);var Fy=qd.exports,Gd=Su,Wd=Fy,Uy=Wd(Gd("String.prototype.indexOf")),Dy=function(t,n){var r=Gd(t,!!n);return typeof r=="function"&&Uy(t,".prototype.")>-1?Wd(r):r};const $y={},jy=Object.freeze(Object.defineProperty({__proto__:null,default:$y},Symbol.toStringTag,{value:"Module"})),Hy=Wi(jy);var Tu=typeof Map=="function"&&Map.prototype,ja=Object.getOwnPropertyDescriptor&&Tu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ko=Tu&&ja&&typeof ja.get=="function"?ja.get:null,Wc=Tu&&Map.prototype.forEach,Ou=typeof Set=="function"&&Set.prototype,Ha=Object.getOwnPropertyDescriptor&&Ou?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Bo=Ou&&Ha&&typeof Ha.get=="function"?Ha.get:null,Vc=Ou&&Set.prototype.forEach,qy=typeof WeakMap=="function"&&WeakMap.prototype,Fi=qy?WeakMap.prototype.has:null,Gy=typeof WeakSet=="function"&&WeakSet.prototype,Ui=Gy?WeakSet.prototype.has:null,Wy=typeof WeakRef=="function"&&WeakRef.prototype,zc=Wy?WeakRef.prototype.deref:null,Vy=Boolean.prototype.valueOf,zy=Object.prototype.toString,Yy=Function.prototype.toString,Ky=String.prototype.match,xu=String.prototype.slice,gr=String.prototype.replace,Qy=String.prototype.toUpperCase,Yc=String.prototype.toLowerCase,Vd=RegExp.prototype.test,Kc=Array.prototype.concat,Ut=Array.prototype.join,Xy=Array.prototype.slice,Qc=Math.floor,qs=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qa=Object.getOwnPropertySymbols,Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,xn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",et=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===xn||"symbol")?Symbol.toStringTag:null,zd=Object.prototype.propertyIsEnumerable,Xc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Jc(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Vd.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Qc(-e):Qc(e);if(r!==e){var o=String(r),i=xu.call(t,o.length+1);return gr.call(o,n,"$&_")+"."+gr.call(gr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gr.call(t,n,"$&_")}var Ws=Hy,Zc=Ws.custom,el=Kd(Zc)?Zc:null,Jy=function e(t,n,r,o){var i=n||{};if(mr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(mr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=mr(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(mr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(mr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.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 Xd(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?Jc(t,l):l}if(typeof t=="bigint"){var f=String(t)+"n";return a?Jc(t,f):f}var u=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof t=="object")return Vs(t)?"[Array]":"[Object]";var h=gv(i,r);if(typeof o>"u")o=[];else if(Qd(o,t)>=0)return"[Circular]";function d(Y,oe,K){if(oe&&(o=Xy.call(o),o.push(oe)),K){var k={depth:i.depth};return mr(i,"quoteStyle")&&(k.quoteStyle=i.quoteStyle),e(Y,k,r+1,o)}return e(Y,i,r+1,o)}if(typeof t=="function"&&!tl(t)){var c=sv(t),p=no(t,d);return"[Function"+(c?": "+c:" (anonymous)")+"]"+(p.length>0?" { "+Ut.call(p,", ")+" }":"")}if(Kd(t)){var m=xn?gr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gs.call(t);return typeof t=="object"&&!xn?fi(m):m}if(hv(t)){for(var _="<"+Yc.call(String(t.nodeName)),T=t.attributes||[],E=0;E<T.length;E++)_+=" "+T[E].name+"="+Yd(Zy(T[E].value),"double",i);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+Yc.call(String(t.nodeName))+">",_}if(Vs(t)){if(t.length===0)return"[]";var b=no(t,d);return h&&!mv(b)?"["+zs(b,h)+"]":"[ "+Ut.call(b,", ")+" ]"}if(tv(t)){var A=no(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!zd.call(t,"cause")?"{ ["+String(t)+"] "+Ut.call(Kc.call("[cause]: "+d(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ut.call(A,", ")+" }"}if(typeof t=="object"&&s){if(el&&typeof t[el]=="function"&&Ws)return Ws(t,{depth:u-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(uv(t)){var w=[];return Wc&&Wc.call(t,function(Y,oe){w.push(d(oe,t,!0)+" => "+d(Y,t))}),rl("Map",ko.call(t),w,h)}if(fv(t)){var N=[];return Vc&&Vc.call(t,function(Y){N.push(d(Y,t))}),rl("Set",Bo.call(t),N,h)}if(cv(t))return Ga("WeakMap");if(dv(t))return Ga("WeakSet");if(lv(t))return Ga("WeakRef");if(nv(t))return fi(d(Number(t)));if(ov(t))return fi(d(qs.call(t)));if(iv(t))return fi(Vy.call(t));if(rv(t))return fi(d(String(t)));if(!ev(t)&&!tl(t)){var F=no(t,d),M=Xc?Xc(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",q=!M&&et&&Object(t)===t&&et in t?xu.call(Er(t),8,-1):W?"Object":"",V=M||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=V+(q||W?"["+Ut.call(Kc.call([],q||[],W||[]),": ")+"] ":"");return F.length===0?j+"{}":h?j+"{"+zs(F,h)+"}":j+"{ "+Ut.call(F,", ")+" }"}return String(t)};function Yd(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Zy(e){return gr.call(String(e),/"/g,"&quot;")}function Vs(e){return Er(e)==="[object Array]"&&(!et||!(typeof e=="object"&&et in e))}function ev(e){return Er(e)==="[object Date]"&&(!et||!(typeof e=="object"&&et in e))}function tl(e){return Er(e)==="[object RegExp]"&&(!et||!(typeof e=="object"&&et in e))}function tv(e){return Er(e)==="[object Error]"&&(!et||!(typeof e=="object"&&et in e))}function rv(e){return Er(e)==="[object String]"&&(!et||!(typeof e=="object"&&et in e))}function nv(e){return Er(e)==="[object Number]"&&(!et||!(typeof e=="object"&&et in e))}function iv(e){return Er(e)==="[object Boolean]"&&(!et||!(typeof e=="object"&&et in e))}function Kd(e){if(xn)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Gs)return!1;try{return Gs.call(e),!0}catch{}return!1}function ov(e){if(!e||typeof e!="object"||!qs)return!1;try{return qs.call(e),!0}catch{}return!1}var av=Object.prototype.hasOwnProperty||function(e){return e in this};function mr(e,t){return av.call(e,t)}function Er(e){return zy.call(e)}function sv(e){if(e.name)return e.name;var t=Ky.call(Yy.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Qd(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function uv(e){if(!ko||!e||typeof e!="object")return!1;try{ko.call(e);try{Bo.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cv(e){if(!Fi||!e||typeof e!="object")return!1;try{Fi.call(e,Fi);try{Ui.call(e,Ui)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function lv(e){if(!zc||!e||typeof e!="object")return!1;try{return zc.call(e),!0}catch{}return!1}function fv(e){if(!Bo||!e||typeof e!="object")return!1;try{Bo.call(e);try{ko.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function dv(e){if(!Ui||!e||typeof e!="object")return!1;try{Ui.call(e,Ui);try{Fi.call(e,Fi)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function hv(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Xd(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Xd(xu.call(e,0,t.maxStringLength),t)+r}var o=gr.call(gr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,pv);return Yd(o,"single",t)}function pv(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Qy.call(t.toString(16))}function fi(e){return"Object("+e+")"}function Ga(e){return e+" { ? }"}function rl(e,t,n,r){var o=r?zs(n,r):Ut.call(n,", ");return e+" ("+t+") {"+o+"}"}function mv(e){for(var t=0;t<e.length;t++)if(Qd(e[t],`
26
+ `)>=0)return!1;return!0}function gv(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ut.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ut.call(Array(t+1),n)}}function zs(e,t){if(e.length===0)return"";var n=`
27
+ `+t.prev+t.base;return n+Ut.call(e,","+n)+`
28
+ `+t.prev}function no(e,t){var n=Vs(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=mr(e,o)?t(e[o],e):""}var i=typeof qa=="function"?qa(e):[],s;if(xn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var l in e)mr(e,l)&&(n&&String(Number(l))===l&&l<e.length||xn&&s["$"+l]instanceof Symbol||(Vd.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof qa=="function")for(var f=0;f<i.length;f++)zd.call(e,i[f])&&r.push("["+t(i[f])+"]: "+t(e[i[f]],e));return r}var Au=Su,In=Dy,yv=Jy,vv=Au("%TypeError%"),io=Au("%WeakMap%",!0),oo=Au("%Map%",!0),Ev=In("WeakMap.prototype.get",!0),_v=In("WeakMap.prototype.set",!0),bv=In("WeakMap.prototype.has",!0),wv=In("Map.prototype.get",!0),Sv=In("Map.prototype.set",!0),Tv=In("Map.prototype.has",!0),Cu=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Ov=function(e,t){var n=Cu(e,t);return n&&n.value},xv=function(e,t,n){var r=Cu(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Av=function(e,t){return!!Cu(e,t)},Cv=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new vv("Side channel does not contain "+yv(i))},get:function(i){if(io&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Ev(t,i)}else if(oo){if(n)return wv(n,i)}else if(r)return Ov(r,i)},has:function(i){if(io&&i&&(typeof i=="object"||typeof i=="function")){if(t)return bv(t,i)}else if(oo){if(n)return Tv(n,i)}else if(r)return Av(r,i);return!1},set:function(i,s){io&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new io),_v(t,i,s)):oo?(n||(n=new oo),Sv(n,i,s)):(r||(r={key:{},next:null}),xv(r,i,s))}};return o},Rv=String.prototype.replace,Pv=/%20/g,Wa={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ru={default:Wa.RFC3986,formatters:{RFC1738:function(e){return Rv.call(e,Pv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Wa.RFC1738,RFC3986:Wa.RFC3986},Iv=Ru,Va=Object.prototype.hasOwnProperty,Vr=Array.isArray,Bt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Nv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Vr(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},Jd=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},Lv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Vr(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Va.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Vr(t)&&!Vr(n)&&(o=Jd(t,r)),Vr(t)&&Vr(n)?(n.forEach(function(i,s){if(Va.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,r):t.push(i)}else t[s]=i}),t):Object.keys(n).reduce(function(i,s){var a=n[s];return Va.call(i,s)?i[s]=e(i[s],a,r):i[s]=a,i},o)},kv=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},Bv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Mv=function(t,n,r,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var f=s.charCodeAt(l);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===Iv.RFC1738&&(f===40||f===41)){a+=s.charAt(l);continue}if(f<128){a=a+Bt[f];continue}if(f<2048){a=a+(Bt[192|f>>6]+Bt[128|f&63]);continue}if(f<55296||f>=57344){a=a+(Bt[224|f>>12]+Bt[128|f>>6&63]+Bt[128|f&63]);continue}l+=1,f=65536+((f&1023)<<10|s.charCodeAt(l)&1023),a+=Bt[240|f>>18]+Bt[128|f>>12&63]+Bt[128|f>>6&63]+Bt[128|f&63]}return a},Fv=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var f=a[l],u=s[f];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:s,prop:f}),r.push(u))}return Nv(n),t},Uv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Dv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},$v=function(t,n){return[].concat(t,n)},jv=function(t,n){if(Vr(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},Zd={arrayToObject:Jd,assign:kv,combine:$v,compact:Fv,decode:Bv,encode:Mv,isBuffer:Dv,isRegExp:Uv,maybeMap:jv,merge:Lv},eh=Cv,Co=Zd,Di=Ru,Hv=Object.prototype.hasOwnProperty,nl={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},tr=Array.isArray,qv=Array.prototype.push,th=function(e,t){qv.apply(e,tr(t)?t:[t])},Gv=Date.prototype.toISOString,il=Di.default,Ze={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Co.encode,encodeValuesOnly:!1,format:il,formatter:Di.formatters[il],indices:!1,serializeDate:function(t){return Gv.call(t)},skipNulls:!1,strictNullHandling:!1},Wv=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},za={},Vv=function e(t,n,r,o,i,s,a,l,f,u,h,d,c,p,m,_){for(var T=t,E=_,b=0,A=!1;(E=E.get(za))!==void 0&&!A;){var w=E.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");A=!0}typeof E.get(za)>"u"&&(b=0)}if(typeof l=="function"?T=l(n,T):T instanceof Date?T=h(T):r==="comma"&&tr(T)&&(T=Co.maybeMap(T,function(k){return k instanceof Date?h(k):k})),T===null){if(i)return a&&!p?a(n,Ze.encoder,m,"key",d):n;T=""}if(Wv(T)||Co.isBuffer(T)){if(a){var N=p?n:a(n,Ze.encoder,m,"key",d);return[c(N)+"="+c(a(T,Ze.encoder,m,"value",d))]}return[c(n)+"="+c(String(T))]}var F=[];if(typeof T>"u")return F;var M;if(r==="comma"&&tr(T))p&&a&&(T=Co.maybeMap(T,a)),M=[{value:T.length>0?T.join(",")||null:void 0}];else if(tr(l))M=l;else{var W=Object.keys(T);M=f?W.sort(f):W}for(var q=o&&tr(T)&&T.length===1?n+"[]":n,V=0;V<M.length;++V){var j=M[V],Y=typeof j=="object"&&typeof j.value<"u"?j.value:T[j];if(!(s&&Y===null)){var oe=tr(T)?typeof r=="function"?r(q,j):q:q+(u?"."+j:"["+j+"]");_.set(t,b);var K=eh();K.set(za,_),th(F,e(Y,oe,r,o,i,s,r==="comma"&&p&&tr(T)?null:a,l,f,u,h,d,c,p,m,K))}}return F},zv=function(t){if(!t)return Ze;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Ze.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 r=Di.default;if(typeof t.format<"u"){if(!Hv.call(Di.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=Di.formatters[r],i=Ze.filter;return(typeof t.filter=="function"||tr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ze.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Ze.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ze.charsetSentinel,delimiter:typeof t.delimiter>"u"?Ze.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ze.encode,encoder:typeof t.encoder=="function"?t.encoder:Ze.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ze.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ze.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ze.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ze.strictNullHandling}},Yv=function(e,t){var n=e,r=zv(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):tr(r.filter)&&(i=r.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in nl?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=nl[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=l==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var u=eh(),h=0;h<o.length;++h){var d=o[h];r.skipNulls&&n[d]===null||th(s,Vv(n[d],d,l,f,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var c=s.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),c.length>0?p+c:""},An=Zd,Ys=Object.prototype.hasOwnProperty,Kv=Array.isArray,Ge={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:An.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Qv=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},rh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Xv="utf8=%26%2310003%3B",Jv="utf8=%E2%9C%93",Zv=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),a=-1,l,f=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===Jv?f="utf-8":s[l]===Xv&&(f="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var u=s[l],h=u.indexOf("]="),d=h===-1?u.indexOf("="):h+1,c,p;d===-1?(c=n.decoder(u,Ge.decoder,f,"key"),p=n.strictNullHandling?null:""):(c=n.decoder(u.slice(0,d),Ge.decoder,f,"key"),p=An.maybeMap(rh(u.slice(d+1),n),function(m){return n.decoder(m,Ge.decoder,f,"value")})),p&&n.interpretNumericEntities&&f==="iso-8859-1"&&(p=Qv(p)),u.indexOf("[]=")>-1&&(p=Kv(p)?[p]:p),Ys.call(r,c)?r[c]=An.combine(r[c],p):r[c]=p}return r},e0=function(e,t,n,r){for(var o=r?t:rh(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(l,10);!n.parseArrays&&l===""?s={0:o}:!isNaN(f)&&a!==l&&String(f)===l&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(s=[],s[f]=o):l!=="__proto__"&&(s[l]=o)}o=s}return o},t0=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(i),f=l?i.slice(0,l.index):i,u=[];if(f){if(!r.plainObjects&&Ys.call(Object.prototype,f)&&!r.allowPrototypes)return;u.push(f)}for(var h=0;r.depth>0&&(l=a.exec(i))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&Ys.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+i.slice(l.index)+"]"),e0(u,n,r,o)}},r0=function(t){if(!t)return Ge;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 n=typeof t.charset>"u"?Ge.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ge.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ge.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ge.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ge.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ge.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ge.comma,decoder:typeof t.decoder=="function"?t.decoder:Ge.decoder,delimiter:typeof t.delimiter=="string"||An.isRegExp(t.delimiter)?t.delimiter:Ge.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ge.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ge.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ge.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ge.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ge.strictNullHandling}},n0=function(e,t){var n=r0(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Zv(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var a=i[s],l=t0(a,r[a],n,typeof e=="string");o=An.merge(o,l,n)}return n.allowSparse===!0?o:An.compact(o)},i0=Yv,o0=n0,a0=Ru,s0={formats:a0,parse:o0,stringify:i0};const u0=jt(s0);var c0="[object String]",l0=Object.prototype,f0=l0.toString,d0=Array.isArray;function h0(e){return!!e&&typeof e=="object"}function p0(e){return typeof e=="string"||!d0(e)&&h0(e)&&f0.call(e)==c0}var m0=p0;const ol=jt(m0);var Pu={exports:{}};class nh extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const g0=({limit:e,interval:t,strict:n})=>{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 r=new Map;let o=0,i=0;function s(){const u=Date.now();return u-o>t?(i=1,o=u,0):(i<e?i++:(o+=t,i=1),o-u)}const a=[];function l(){const u=Date.now();if(a.length<e)return a.push(u),0;const h=a.shift()+t;return u>=h?(a.push(u),0):(a.push(h),h-u)}const f=n?l:s;return u=>{const h=function(...d){if(!h.isEnabled)return(async()=>u.apply(this,d))();let c;return new Promise((p,m)=>{c=setTimeout(()=>{p(u.apply(this,d)),r.delete(c)},f()),r.set(c,m)})};return h.abort=()=>{for(const d of r.keys())clearTimeout(d),r.get(d)(new nh);r.clear(),a.splice(0,a.length)},h.isEnabled=!0,h}};Pu.exports=g0;Pu.exports.AbortError=nh;var y0=Pu.exports;const v0=jt(y0);var E0="[object Object]";function _0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function b0(e,t){return function(n){return e(t(n))}}var w0=Function.prototype,ih=Object.prototype,oh=w0.toString,S0=ih.hasOwnProperty,T0=oh.call(Object),O0=ih.toString,x0=b0(Object.getPrototypeOf,Object);function A0(e){return!!e&&typeof e=="object"}function C0(e){if(!A0(e)||O0.call(e)!=E0||_0(e))return!1;var t=x0(e);if(t===null)return!0;var n=S0.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&oh.call(n)==T0}var R0=C0;const ao=jt(R0);function P0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],l=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(u){f=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw o}}return a}}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?al(Object(n),!0).forEach(function(r){I0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ks(e){"@babel/helpers - typeof";return Ks=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},Ks(e)}function Qs(){Qs=function(o,i){return new n(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(o,i,s){var a=new RegExp(o,i);return t.set(a,s||t.get(o)),Mo(a,n.prototype)}function r(o,i){var s=t.get(i);return Object.keys(s).reduce(function(a,l){var f=s[l];if(typeof f=="number")a[l]=o[f];else{for(var u=0;o[f[u]]===void 0&&u+1<f.length;)u++;a[l]=o[f[u]]}return a},Object.create(null))}return N0(n,RegExp),n.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=r(i,this);var s=i.indices;s&&(s.groups=r(s,this))}return i},n.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var s=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(l,f){var u=s[f];return"$"+(Array.isArray(u)?u.join("$"):u)}))}if(typeof i=="function"){var a=this;return e[Symbol.replace].call(this,o,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,a)),i.apply(this,l)})}return e[Symbol.replace].call(this,o,i)},Qs.apply(this,arguments)}function I0(e,t,n){return t=U0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N0(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&&Mo(e,t)}function Mo(e,t){return Mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Mo(e,t)}function L0(e,t){return k0(e)||P0(e,t)||ah(e,t)||B0()}function k0(e){if(Array.isArray(e))return e}function ah(e,t){if(e){if(typeof e=="string")return sl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sl(e,t)}}function sl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B0(){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 M0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ah(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}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 i=!0,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function F0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U0(e){var t=F0(e,"string");return typeof t=="symbol"?t:String(t)}function D0(){return typeof process<"u"&&!process.browser}function $0(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function j0(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function H0(){return window}function Xs(){}var Js=Qs(/(\d+)(%)/,{value:1});function Ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,n=t;if(Js.test(e)){var r,o=(r=e.match(Js))===null||r===void 0?void 0:r.groups;if(o&&o.value){var i=parseInt(o.value)/100;n=Math.round(t*i)}}return Math.min(30,Math.max(1,n))}function ul(e,t){return t("info","Throttle request to ".concat(e,"/s")),v0({limit:e,interval:1e3,strict:!1})}var q0=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",n=e.defaults.logHandler,r=n===void 0?Xs:n,o=ol(t)?Ya(t):Ya("auto",t),i=ul(o,r),s=!1,a=e.interceptors.request.use(function(f){return i(function(){return f})()},function(f){return Promise.reject(f)}),l=e.interceptors.response.use(function(f){if(!s&&ol(t)&&(t==="auto"||Js.test(t))&&f.headers&&f.headers["x-contentful-ratelimit-second-limit"]){var u=parseInt(f.headers["x-contentful-ratelimit-second-limit"]),h=Ya(t,u);h!==o&&(a&&e.interceptors.request.eject(a),o=h,i=ul(h,r),a=e.interceptors.request.use(function(d){return i(function(){return d})()},function(d){return Promise.reject(d)})),s=!0}return f},function(f){return Promise.reject(f)});return function(){e.interceptors.request.eject(a),e.interceptors.response.eject(l)}},G0=function(t){return new Promise(function(n){setTimeout(n,t)})},W0=function(t){return Math.pow(Math.SQRT2,t)};function V0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=r===void 0?Xs:r,i=n.requestLogger,s=i===void 0?Xs:i;e.interceptors.request.use(function(a){return s(a),a},function(a){return s(a),Promise.reject(a)}),e.interceptors.response.use(function(a){return o(a),a},function(a){var l=a.response,f=a.config;if(o(a),!f||!e.defaults.retryOnError)return Promise.reject(a);var u=f.attempts||1;if(u>t)return a.attempts=f.attempts,Promise.reject(a);var h=null,d=W0(u);return l?l.status>=500&&l.status<600?h="Server ".concat(l.status):l.status===429&&(h="Rate limit",l.headers&&a.response.headers["x-contentful-ratelimit-reset"]&&(d=l.headers["x-contentful-ratelimit-reset"])):h="Connection",h?(d=Math.floor(d*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(h," error occurred. Waiting for ").concat(d," ms before retrying...")),f.attempts=u+1,delete f.httpAgent,delete f.httpsAgent,G0(d).then(function(){return e(f)})):Promise.reject(a)})}function z0(e,t){e.interceptors.request.use(function(n){return t().then(function(r){return n.headers=wn(wn({},n.headers),{},{Authorization:"Bearer ".concat(r)}),n})})}var Y0=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function sh(e,t){var n={insecure:!1,retryOnError:!0,logHandler:function(m,_){if(m==="error"&&_){var T=[_.name,_.message].filter(function(E){return E}).join(" - ");console.error("[error] ".concat(T)),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},r=wn(wn({},n),t);if(!r.accessToken){var o=new TypeError("Expected parameter accessToken");throw r.logHandler("error",o),o}var i=r.insecure?"http":"https",s=r.space?"".concat(r.space,"/"):"",a=r.defaultHostname,l=r.insecure?80:443;if(r.host&&Y0.test(r.host)){var f=r.host.split(":");if(f.length===2){var u=L0(f,2);a=u[0],l=u[1]}else a=f[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var h=t.baseURL||"".concat(i,"://").concat(a,":").concat(l).concat(r.basePath,"/spaces/").concat(s);!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken);var d={baseURL:h,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:u0.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},c=e.create(d);return c.httpClientParams=t,c.cloneWithNewParams=function(p){return sh(e,wn(wn({},yr(t)),p))},r.onBeforeRequest&&c.interceptors.request.use(r.onBeforeRequest),typeof r.accessToken=="function"&&z0(c,r.accessToken),r.throttle&&q0(c,r.throttle),V0(c,r.retryLimit),r.onError&&c.interceptors.response.use(function(p){return p},r.onError),c}function K0(e){var t=e.query,n={};return delete t.resolveLinks,n.params=yr(t),n}function Q0(e,t){if(!(t in e)){var n=new Error;throw n.name="PropertyMissing",n.message="Required property ".concat(t,` missing from:
31
31
 
32
32
  `).concat(JSON.stringify(e),`
33
33
 
34
- `),r}return!0}function O_(e){var t=Object.getOwnPropertyNames(e),r=iP(t),n;try{for(r.s();!(n=r.n()).done;){var a=n.value,o=e[a];o&&gp(o)==="object"&&O_(o)}}catch(s){r.e(s)}finally{r.f()}return Object.freeze(e)}function _P(e){return O_(e.sys||{}),e}function Dy(){var e=dP();if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],a=["Win32","Win64","Windows","WinCE"],o=["iPhone","iPad","iPod"];return n.indexOf(r)!==-1?"macOS":o.indexOf(r)!==-1?"iOS":a.indexOf(r)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function wP(){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 TP(e,t,r,n){var a=[];t&&a.push("app ".concat(t)),r&&a.push("integration ".concat(r)),n&&a.push("feature "+n),a.push("sdk ".concat(e));var o=null;try{cP()?(o=Dy(),a.push("platform ReactNative")):uP()?(o=wP(),a.push("platform node.js/".concat(fP()))):(o=Dy(),a.push("platform browser"))}catch{o=null}return o&&a.push("os ".concat(o)),"".concat(a.filter(function(s){return s!==""}).join("; "),";")}function SP(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Fn(this)}})}function RP(e){var t=e.config,r=e.response,n;if(t&&t.headers&&t.headers.Authorization){var a="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(a)}if(!$i(r)||!$i(t))throw e;var o=r==null?void 0:r.data,s={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};$i(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&$i(o)&&("requestId"in o&&(s.requestId=o.requestId||"UNKNOWN"),"message"in o&&(s.message=o.message||""),"details"in o&&(s.details=o.details||{}),"sys"in o&&"id"in o.sys&&(n=o.sys.id));var i=new Error;i.name=n&&n!=="Unknown"?n:"".concat(r==null?void 0:r.status," ").concat(r==null?void 0:r.statusText);try{i.message=JSON.stringify(s,null," ")}catch{var l;i.message=(l=s==null?void 0:s.message)!==null&&l!==void 0?l:""}throw i}const CP=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:x_,createRequestConfig:bP,enforceObjPath:EP,errorHandler:RP,freezeSys:_P,getUserAgentHeader:TP,toPlainObject:SP},Symbol.toStringTag,{value:"Module"})),qr=mi(CP);var ki={},To={},Li={},qy;function xP(){if(qy)return Li;qy=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.wrapSpace=t;var e=qr;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return Li}var So={},jf={exports:{}},Fy;function uo(){return Fy||(Fy=1,function(e,t){(function(r,n){e.exports=n()})(be,function(){var r=Function.prototype.toString,n=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,u=Object.prototype,c=u.hasOwnProperty,d=u.propertyIsEnumerable,p=typeof i=="function",f=typeof WeakMap=="function",h=function(){if(f)return function(){return new WeakMap};var N=function(){function M(){this._keys=[],this._values=[]}return M.prototype.has=function(H){return!!~this._keys.indexOf(H)},M.prototype.get=function(H){return this._values[this._keys.indexOf(H)]},M.prototype.set=function(H,G){this._keys.push(H),this._values.push(G)},M}();return function(){return new N}}(),m=function(N,M){var H=N.__proto__||l(N);if(!H)return n(null);var G=H.constructor;if(G===M.Object)return H===M.Object.prototype?{}:n(H);if(~r.call(G).indexOf("[native code]"))try{return new G}catch{}return n(H)},w=function(N,M,H,G){var W=m(N,M);G.set(N,W);for(var U in N)c.call(N,U)&&(W[U]=H(N[U],G));if(p)for(var j=i(N),Z=0,ee=j.length,L=void 0;Z<ee;++Z)L=j[Z],d.call(N,L)&&(W[L]=H(N[L],G));return W},E=function(N,M,H,G){var W=m(N,M);G.set(N,W);for(var U=p?s(N).concat(i(N)):s(N),j=0,Z=U.length,ee=void 0,L=void 0;j<Z;++j)if(ee=U[j],ee!=="callee"&&ee!=="caller")if(L=o(N,ee),L){!L.get&&!L.set&&(L.value=H(N[ee],G));try{a(W,ee,L)}catch{W[ee]=L.value}}else W[ee]=H(N[ee],G);return W},y=function(N){var M="";return N.global&&(M+="g"),N.ignoreCase&&(M+="i"),N.multiline&&(M+="m"),N.unicode&&(M+="u"),N.sticky&&(M+="y"),M},T=Array.isArray,R=Object.getPrototypeOf,S=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof be<"u"?be:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function O(N,M){var H=!!(M&&M.isStrict),G=M&&M.realm||S,W=H?E:w,U=function(j,Z){if(!j||typeof j!="object")return j;if(Z.has(j))return Z.get(j);var ee=j.__proto__||R(j),L=ee&&ee.constructor;if(!L||L===G.Object)return W(j,G,U,Z);var K;if(T(j)){if(H)return E(j,G,U,Z);K=new L,Z.set(j,K);for(var re=0,ge=j.length;re<ge;++re)K[re]=U(j[re],Z);return K}if(j instanceof G.Date)return new L(j.getTime());if(j instanceof G.RegExp)return K=new L(j.source,j.flags||y(j)),K.lastIndex=j.lastIndex,K;if(G.Map&&j instanceof G.Map)return K=new L,Z.set(j,K),j.forEach(function(ne,oe){K.set(oe,U(ne,Z))}),K;if(G.Set&&j instanceof G.Set)return K=new L,Z.set(j,K),j.forEach(function(ne){K.add(U(ne,Z))}),K;if(G.Blob&&j instanceof G.Blob)return j.slice(0,j.size,j.type);if(G.Buffer&&G.Buffer.isBuffer(j))return K=G.Buffer.allocUnsafe?G.Buffer.allocUnsafe(j.length):new L(j.length),Z.set(j,K),j.copy(K),K;if(G.ArrayBuffer){if(G.ArrayBuffer.isView(j))return K=new L(j.buffer.slice(0)),Z.set(j,K),K;if(j instanceof G.ArrayBuffer)return K=j.slice(0),Z.set(j,K),K}return typeof j.then=="function"||j instanceof Error||G.WeakMap&&j instanceof G.WeakMap||G.WeakSet&&j instanceof G.WeakSet?j:W(j,G,U,Z)};return U(N,h())}return O.default=O,O.strict=function(M,H){return O(M,{isStrict:!0,realm:H?H.realm:void 0})},O})}(jf)),jf.exports}var Bi={},Di={exports:{}},jy;function OP(){return jy||(jy=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(a,o,s,i){return JSON.stringify(a,n(o,i),s)}function n(a,o){var s=[],i=[];return o==null&&(o=function(l,u){return s[0]===u?"[Circular ~]":"[Circular ~."+i.slice(0,s.indexOf(u)).join(".")+"]"}),function(l,u){if(s.length>0){var c=s.indexOf(this);~c?s.splice(c+1):s.push(this),~c?i.splice(c,1/0,l):i.push(l),~s.indexOf(u)&&(u=o.call(this,l,u))}else s.push(u);return a==null?u:a.call(this,l,u)}}}(Di,Di.exports)),Di.exports}var Uy;function P_(){if(Uy)return Bi;Uy=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=r;var e=t(OP());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 a=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,a,o,(s,i)=>({sys:{type:"Link",linkType:"Entry",id:i.sys.id,circular:!0}}))}})}return Bi}var PP=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},AP=function(){function e(t,r){var n=[],a=!0,o=!1,s=void 0;try{for(var i=t[Symbol.iterator](),l;!(a=(l=i.next()).done)&&(n.push(l.value),!(r&&n.length===r));a=!0);}catch(u){o=!0,s=u}finally{try{!a&&i.return&&i.return()}finally{if(o)throw s}}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 Ro(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 ni={},IP=function(t){return t&&t.sys&&t.sys.type==="Link"},NP=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},MP=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]},Hy=function(t,r){var n=r.entryId,a=r.linkType,o=r.spaceId,s=r.environmentId;return o&&s?t.get(o+"!"+s+"!"+a+"!"+n):t.get(a+"!"+n)},$P=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),a=AP(n,4);a[0];var o=a[1],s=a[2],i=s===void 0?"master":s,l=a[3];return{spaceId:o,environmentId:i,entryId:l}}},kP=function(t,r){var n=r.sys,a=n.type,o=n.linkType;if(a==="ResourceLink"){var s=r.sys.urn,i=$P(s),l=i.spaceId,u=i.environmentId,c=i.entryId,d=o.split(":")[1];return Hy(t,{linkType:d,entryId:c,spaceId:l,environmentId:u})||ni}var p=r.sys.id;return Hy(t,{linkType:o,entryId:p})||ni},LP=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==ni});for(var r in t)t[r]===ni&&delete t[r];return t},BP=function e(t,r,n,a){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":PP(t))==="object"){for(var o in t)t.hasOwnProperty(o)&&(t[o]=e(t[o],r,n,a));a&&(t=LP(t))}return t},DP=function(t,r,n){var a=kP(t,r);return a===ni?n?a:r:a},qP=function(t,r){if(!Array.isArray(r))return t;var n=Object.keys(t).filter(function(a){return r.indexOf(a)!==-1});return n.reduce(function(a,o){return a[o]=t[o],a},{})},FP=function(t,r){if(r=r||{},!t.items)return[];var n=Fn(t),a=Object.keys(n.includes||{}).reduce(function(i,l){return[].concat(Ro(i),Ro(t.includes[l]))},[]),o=[].concat(Ro(n.items),Ro(a)).filter(function(i){return!!i.sys}),s=new Map(o.reduce(function(i,l){var u=MP(l.sys).map(function(c){return[c,l]});return i.push.apply(i,Ro(u)),i},[]));return o.forEach(function(i){var l=qP(i,r.itemEntryPoints);Object.assign(i,BP(l,function(u){return IP(u)||NP(u)},function(u){return DP(s,u,r.removeUnresolved)},r.removeUnresolved))}),n.items};const jP=Object.freeze(Object.defineProperty({__proto__:null,default:FP},Symbol.toStringTag,{value:"Module"})),A_=mi(jP);var Gy;function UP(){if(Gy)return So;Gy=1,Object.defineProperty(So,"__esModule",{value:!0}),So.wrapEntry=o,So.wrapEntryCollection=s;var e=a(uo()),t=qr,r=a(P_()),n=a(A_);function a(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function s(i,l){let{resolveLinks:u,removeUnresolved:c}=l;const d=(0,r.default)((0,t.toPlainObject)((0,e.default)(i)));return u&&(d.items=(0,n.default)(d,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(d)}return So}var Co={},Wy;function HP(){if(Wy)return Co;Wy=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.wrapAsset=n,Co.wrapAssetCollection=a;var e=r(uo()),t=qr;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 a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Co}var qi={},Vy;function GP(){if(Vy)return qi;Vy=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.wrapAssetKey=n;var e=r(uo()),t=qr;function r(a){return a&&a.__esModule?a:{default:a}}function n(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}return qi}var xo={},zy;function WP(){if(zy)return xo;zy=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.wrapContentType=n,xo.wrapContentTypeCollection=a;var e=r(uo()),t=qr;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 a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return xo}var Oo={},Yy;function VP(){if(Yy)return Oo;Yy=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.wrapLocale=n,Oo.wrapLocaleCollection=a;var e=r(uo()),t=qr;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 a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Oo}var Po={},Ky;function zP(){if(Ky)return Po;Ky=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.wrapTag=n,Po.wrapTagCollection=a;var e=r(uo()),t=qr;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 a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Po}var Xy;function YP(){if(Xy)return To;Xy=1,Object.defineProperty(To,"__esModule",{value:!0}),To.default=void 0;var e=l(xP()),t=l(UP()),r=l(HP()),n=l(GP()),a=l(WP()),o=l(VP()),s=l(zP());function i(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,p=new WeakMap;return(i=function(f){return f?p:d})(c)}function l(c,d){if(!d&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var p=i(d);if(p&&p.has(c))return p.get(c);var f={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var w=h?Object.getOwnPropertyDescriptor(c,m):null;w&&(w.get||w.set)?Object.defineProperty(f,m,w):f[m]=c[m]}return f.default=c,p&&p.set(c,f),f}var u={space:e,entry:t,asset:r,assetKey:n,contentType:a,locale:o,tag:s};return To.default=u,To}var Fi={},Qy;function KP(){if(Qy)return Fi;Qy=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=i;var e=qr,t=n(A_),r=n(P_());function n(d){return d&&d.__esModule?d:{default:d}}function a(d,p){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(d);p&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,h)}return f}function o(d){for(var p=1;p<arguments.length;p++){var f=arguments[p]!=null?arguments[p]:{};p%2?a(Object(f),!0).forEach(function(h){s(d,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):a(Object(f)).forEach(function(h){Object.defineProperty(d,h,Object.getOwnPropertyDescriptor(f,h))})}return d}function s(d,p,f){return p in d?Object.defineProperty(d,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[p]=f,d}async function i(d,p){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!p||!p.initial&&!p.nextSyncToken&&!p.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(p&&p.content_type&&!p.type)p.type="Entry";else if(p&&p.content_type&&p.type&&p.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const h={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:w,paginate:E}=o(o({},h),f),T=await u(d,[],p,{paginate:E});m&&(T.items=(0,t.default)(T,{removeUnresolved:w,itemEntryPoints:["fields"]}));const R=l(T.items);return T.nextSyncToken&&(R.nextSyncToken=T.nextSyncToken),T.nextPageToken&&(R.nextPageToken=T.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(R)))}function l(d){const p=f=>(h,m)=>(m.sys.type===f&&h.push((0,e.toPlainObject)(m)),h);return{entries:d.reduce(p("Entry"),[]),assets:d.reduce(p("Asset"),[]),deletedEntries:d.reduce(p("DeletedEntry"),[]),deletedAssets:d.reduce(p("DeletedAsset"),[])}}async function u(d,p,f,h){let{paginate:m}=h;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 E=(await d.get("sync",(0,e.createRequestConfig)({query:f}))).data||{};return p=p.concat(E.items||[]),E.nextPageUrl?m?(delete f.initial,f.sync_token=c(E.nextPageUrl),u(d,p,f,{paginate:m})):{items:p,nextPageToken:c(E.nextPageUrl)}:E.nextSyncUrl?{items:p,nextSyncToken:c(E.nextSyncUrl)}:{items:[]}}function c(d){const p=d.split("?");return p.length>0?p[1].replace("sync_token=",""):""}return Fi}var ji={},Jy;function XP(){if(Jy)return ji;Jy=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=n;function e(a,o){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);o&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,i)}return s}function t(a){for(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{};o%2?e(Object(s),!0).forEach(function(i){r(a,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(s,i))})}return a}function r(a,o,s){return o in a?Object.defineProperty(a,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[o]=s,a}function n(a){if(!a.select)return a;const o=Array.isArray(a.select)?a.select:a.select.split(","),s=new Set(o);return s.has("sys")?a:(s.add("sys.id"),s.add("sys.type"),t(t({},a),{},{select:[...s].join(",")}))}return ji}var ja={},Zy;function QP(){if(Zy)return ja;Zy=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.ValidationError=void 0,ja.default=t;class e extends Error{constructor(n,a){super(`Invalid "${n}" provided, `+a),this.name="ValidationError"}}ja.ValidationError=e;function t(r,n,a){if(a=a||{},typeof n!="number")throw new e(r,`only numeric values are allowed for timestamps, provided type was "${typeof n}"`);if(a.maximum&&n>a.maximum)throw new e(r,`value (${n}) cannot be further in the future than expected maximum (${a.maximum})`);if(a.now&&n<a.now)throw new e(r,`value (${n}) cannot be in the past, current time was ${a.now}`)}return ja}var ev;function JP(){if(ev)return ki;ev=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=c;var e=qr,t=o(YP()),r=o(KP()),n=o(XP()),a=o(QP());function o(d){return d&&d.__esModule?d:{default:d}}function s(d,p){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(d);p&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,h)}return f}function i(d){for(var p=1;p<arguments.length;p++){var f=arguments[p]!=null?arguments[p]:{};p%2?s(Object(f),!0).forEach(function(h){l(d,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):s(Object(f)).forEach(function(h){Object.defineProperty(d,h,Object.getOwnPropertyDescriptor(f,h))})}return d}function l(d,p,f){return p in d?Object.defineProperty(d,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[p]=f,d}const u=48*60*60;function c(d){let{http:p,getGlobalOptions:f}=d;const{wrapSpace:h}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:w}=t.default.contentType,{wrapEntry:E,wrapEntryCollection:y}=t.default.entry,{wrapAsset:T,wrapAssetCollection:R}=t.default.asset,{wrapTag:S,wrapTagCollection:O}=t.default.tag,{wrapAssetKey:N}=t.default.assetKey,{wrapLocaleCollection:M}=t.default.locale,H=te=>{const ue=new Error("The resource could not be found.");return ue.sys={type:"Error",id:"NotFound"},ue.details={type:"Entry",id:te,environment:f().environment,space:f().space},ue};async function G(){ze(p);try{const te=await p.get("/");return h(te.data)}catch(te){(0,e.errorHandler)(te)}}async function W(te){Ee(p);try{const ue=await p.get(`content_types/${te}`);return m(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function U(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(p);try{const ue=await p.get("content_types",(0,e.createRequestConfig)({query:te}));return w(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function j(te){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!te)throw H(te);try{const Me=await this.getEntries(i({"sys.id":te},ue));if(Me.items.length>0)return E(Me.items[0]);throw H(te)}catch(Me){(0,e.errorHandler)(Me)}}async function Z(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(p);const{resolveLinks:ue,removeUnresolved:Me}=f(te);te=(0,n.default)(te);try{const xe=await p.get("entries",(0,e.createRequestConfig)({query:te}));return y(xe.data,{resolveLinks:ue,removeUnresolved:Me})}catch(xe){(0,e.errorHandler)(xe)}}async function ee(te){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee(p),ue=(0,n.default)(ue);try{const Me=await p.get(`assets/${te}`,(0,e.createRequestConfig)({query:ue}));return T(Me.data)}catch(Me){(0,e.errorHandler)(Me)}}async function L(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(p),te=(0,n.default)(te);try{const ue=await p.get("assets",(0,e.createRequestConfig)({query:te}));return R(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function K(te){Ee(p);try{const ue=await p.get(`tags/${te}`);return S(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function re(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(p),te=(0,n.default)(te);try{const ue=await p.get("tags",(0,e.createRequestConfig)({query:te}));return O(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function ge(te){Ee(p);try{const ue=Math.floor(Date.now()/1e3),Me=ue+u;(0,a.default)("expiresAt",te,{maximum:Me,now:ue});const xe={expiresAt:te},ft=await p.post("asset_keys",xe);return N(ft.data)}catch(ue){(0,e.errorHandler)(ue)}}async function ne(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ee(p);try{const ue=await p.get("locales",(0,e.createRequestConfig)({query:te}));return M(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function oe(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Me,removeUnresolved:xe}=f(te);return Ee(p),(0,r.default)(p,te,i({resolveLinks:Me,removeUnresolved:xe},ue))}function ve(te){const{resolveLinks:ue,removeUnresolved:Me}=f({});return y(te,{resolveLinks:ue,removeUnresolved:Me})}function Ee(te){te.defaults.baseURL=f().environmentBaseUrl}function ze(te){te.defaults.baseURL=f().spaceBaseUrl}return{getSpace:G,getContentType:W,getContentTypes:U,getEntry:j,getEntries:Z,getAsset:ee,getAssets:L,getTag:K,getTags:re,createAssetKey:ge,getLocales:ne,parseEntries:ve,sync:oe}}return ki}var Ui={},tv;function ZP(){if(tv)return Ui;tv=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return Ui}var rv;function eA(){if(rv)return Pi;rv=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.createClient=l;var e=a(n_()),t=qr,r=a(JP()),n=a(ZP());function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c){var d=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);c&&(p=p.filter(function(f){return Object.getOwnPropertyDescriptor(u,f).enumerable})),d.push.apply(d,p)}return d}function s(u){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?o(Object(d),!0).forEach(function(p){i(u,p,d[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):o(Object(d)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(d,p))})}return u}function i(u,c,d){return c in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d,u}function l(u){if(!u.accessToken)throw new TypeError("Expected parameter accessToken");if(!u.space)throw new TypeError("Expected parameter space");const d=s(s({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),u),p=(0,t.getUserAgentHeader)("contentful.js/9.1.34",d.application,d.integration);d.headers=s(s({},d.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":p});const f=(0,t.createHttpClient)(e.default,d),h=(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=h().environmentBaseUrl,(0,r.default)({http:f,getGlobalOptions:h})}return Pi}var Uf={},Hf,nv;function tA(){return nv||(nv=1,Hf=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Hf}var Gf,av;function rA(){if(av)return Gf;av=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,i){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;i=i||1;var l=s.slice(0,i),u=s.slice(i);return Array.prototype.concat.call([],n(l),n(u))}function a(s){try{return decodeURIComponent(s)}catch{for(var i=s.match(t)||[],l=1;l<i.length;l++)s=n(i,l).join(""),i=s.match(t)||[];return s}}function o(s){for(var i={"%FE%FF":"��","%FF%FE":"��"},l=r.exec(s);l;){try{i[l[0]]=decodeURIComponent(l[0])}catch{var u=a(l[0]);u!==l[0]&&(i[l[0]]=u)}l=r.exec(s)}i["%C2"]="�";for(var c=Object.keys(i),d=0;d<c.length;d++){var p=c[d];s=s.replace(new RegExp(p,"g"),i[p])}return s}return Gf=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return o(s)}},Gf}var Wf,ov;function nA(){return ov||(ov=1,Wf=(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)]}),Wf}var Vf,iv;function aA(){return iv||(iv=1,Vf=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;o<n.length;o++){var s=n[o],i=e[s];(a?t.indexOf(s)!==-1:t(s,i,e))&&(r[s]=i)}return r}),Vf}var sv;function oA(){return sv||(sv=1,function(e){const t=tA(),r=rA(),n=nA(),a=aA(),o=y=>y==null,s=Symbol("encodeFragmentIdentifier");function i(y){switch(y.arrayFormat){case"index":return T=>(R,S)=>{const O=R.length;return S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?R:S===null?[...R,[c(T,y),"[",O,"]"].join("")]:[...R,[c(T,y),"[",c(O,y),"]=",c(S,y)].join("")]};case"bracket":return T=>(R,S)=>S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?R:S===null?[...R,[c(T,y),"[]"].join("")]:[...R,[c(T,y),"[]=",c(S,y)].join("")];case"colon-list-separator":return T=>(R,S)=>S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?R:S===null?[...R,[c(T,y),":list="].join("")]:[...R,[c(T,y),":list=",c(S,y)].join("")];case"comma":case"separator":case"bracket-separator":{const T=y.arrayFormat==="bracket-separator"?"[]=":"=";return R=>(S,O)=>O===void 0||y.skipNull&&O===null||y.skipEmptyString&&O===""?S:(O=O===null?"":O,S.length===0?[[c(R,y),T,c(O,y)].join("")]:[[S,c(O,y)].join(y.arrayFormatSeparator)])}default:return T=>(R,S)=>S===void 0||y.skipNull&&S===null||y.skipEmptyString&&S===""?R:S===null?[...R,c(T,y)]:[...R,[c(T,y),"=",c(S,y)].join("")]}}function l(y){let T;switch(y.arrayFormat){case"index":return(R,S,O)=>{if(T=/\[(\d*)\]$/.exec(R),R=R.replace(/\[\d*\]$/,""),!T){O[R]=S;return}O[R]===void 0&&(O[R]={}),O[R][T[1]]=S};case"bracket":return(R,S,O)=>{if(T=/(\[\])$/.exec(R),R=R.replace(/\[\]$/,""),!T){O[R]=S;return}if(O[R]===void 0){O[R]=[S];return}O[R]=[].concat(O[R],S)};case"colon-list-separator":return(R,S,O)=>{if(T=/(:list)$/.exec(R),R=R.replace(/:list$/,""),!T){O[R]=S;return}if(O[R]===void 0){O[R]=[S];return}O[R]=[].concat(O[R],S)};case"comma":case"separator":return(R,S,O)=>{const N=typeof S=="string"&&S.includes(y.arrayFormatSeparator),M=typeof S=="string"&&!N&&d(S,y).includes(y.arrayFormatSeparator);S=M?d(S,y):S;const H=N||M?S.split(y.arrayFormatSeparator).map(G=>d(G,y)):S===null?S:d(S,y);O[R]=H};case"bracket-separator":return(R,S,O)=>{const N=/(\[\])$/.test(R);if(R=R.replace(/\[\]$/,""),!N){O[R]=S&&d(S,y);return}const M=S===null?[]:S.split(y.arrayFormatSeparator).map(H=>d(H,y));if(O[R]===void 0){O[R]=M;return}O[R]=[].concat(O[R],M)};default:return(R,S,O)=>{if(O[R]===void 0){O[R]=S;return}O[R]=[].concat(O[R],S)}}}function u(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(y,T){return T.encode?T.strict?t(y):encodeURIComponent(y):y}function d(y,T){return T.decode?r(y):y}function p(y){return Array.isArray(y)?y.sort():typeof y=="object"?p(Object.keys(y)).sort((T,R)=>Number(T)-Number(R)).map(T=>y[T]):y}function f(y){const T=y.indexOf("#");return T!==-1&&(y=y.slice(0,T)),y}function h(y){let T="";const R=y.indexOf("#");return R!==-1&&(T=y.slice(R)),T}function m(y){y=f(y);const T=y.indexOf("?");return T===-1?"":y.slice(T+1)}function w(y,T){return T.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):T.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function E(y,T){T=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},T),u(T.arrayFormatSeparator);const R=l(T),S=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return S;for(const O of y.split("&")){if(O==="")continue;let[N,M]=n(T.decode?O.replace(/\+/g," "):O,"=");M=M===void 0?null:["comma","separator","bracket-separator"].includes(T.arrayFormat)?M:d(M,T),R(d(N,T),M,S)}for(const O of Object.keys(S)){const N=S[O];if(typeof N=="object"&&N!==null)for(const M of Object.keys(N))N[M]=w(N[M],T);else S[O]=w(N,T)}return T.sort===!1?S:(T.sort===!0?Object.keys(S).sort():Object.keys(S).sort(T.sort)).reduce((O,N)=>{const M=S[N];return M&&typeof M=="object"&&!Array.isArray(M)?O[N]=p(M):O[N]=M,O},Object.create(null))}e.extract=m,e.parse=E,e.stringify=(y,T)=>{if(!y)return"";T=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},T),u(T.arrayFormatSeparator);const R=M=>T.skipNull&&o(y[M])||T.skipEmptyString&&y[M]==="",S=i(T),O={};for(const M of Object.keys(y))R(M)||(O[M]=y[M]);const N=Object.keys(O);return T.sort!==!1&&N.sort(T.sort),N.map(M=>{const H=y[M];return H===void 0?"":H===null?c(M,T):Array.isArray(H)?H.length===0&&T.arrayFormat==="bracket-separator"?c(M,T)+"[]":H.reduce(S(M),[]).join("&"):c(M,T)+"="+c(H,T)}).filter(M=>M.length>0).join("&")},e.parseUrl=(y,T)=>{T=Object.assign({decode:!0},T);const[R,S]=n(y,"#");return Object.assign({url:R.split("?")[0]||"",query:E(m(y),T)},T&&T.parseFragmentIdentifier&&S?{fragmentIdentifier:d(S,T)}:{})},e.stringifyUrl=(y,T)=>{T=Object.assign({encode:!0,strict:!0,[s]:!0},T);const R=f(y.url).split("?")[0]||"",S=e.extract(y.url),O=e.parse(S,{sort:!1}),N=Object.assign(O,y.query);let M=e.stringify(N,T);M&&(M=`?${M}`);let H=h(y.url);return y.fragmentIdentifier&&(H=`#${T[s]?c(y.fragmentIdentifier,T):y.fragmentIdentifier}`),`${R}${M}${H}`},e.pick=(y,T,R)=>{R=Object.assign({parseFragmentIdentifier:!0,[s]:!1},R);const{url:S,query:O,fragmentIdentifier:N}=e.parseUrl(y,R);return e.stringifyUrl({url:S,query:a(O,T),fragmentIdentifier:N},R)},e.exclude=(y,T,R)=>{const S=Array.isArray(T)?O=>!T.includes(O):(O,N)=>!T(O,N);return e.pick(y,S,R)}}(Uf)),Uf}var lv;function iA(){return lv||(lv=1,function(e,t){(function(r,n){e.exports=n(eA(),oA())})(be,function(r,n){return function(){var a={897:function(l){l.exports=r},48:function(l){l.exports=n}},o={};function s(l){var u=o[l];if(u!==void 0)return u.exports;var c=o[l]={exports:{}};return a[l](c,c.exports,s),c.exports}s.d=function(l,u){for(var c in u)s.o(u,c)&&!s.o(l,c)&&Object.defineProperty(l,c,{enumerable:!0,get:u[c]})},s.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var i={};return function(){s.r(i),s.d(i,{getEntries:function(){return Z},getEntry:function(){return j},setContext:function(){return m}});var l=s(897),u=s(48),c={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:p,HOSTS:f}}=c;let h={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:f.CDN,space:p};const m=({apiKey:ee,environment:L,isPreview:K=!1,location:re,previewKey:ge,space:ne=null})=>{h.apiKey=ee,h.previewKey=ge,h.environment=(oe=>{if(!oe)throw new Error("Cannot map environment: Environment not defined");if(!d[oe])throw new Error(`Cannot map environment: No mapping found for environment ${oe}`);return d[oe]})(L),h.isPreview=K||(oe=>{let ve=!1;if(oe&&oe.search){const Ee=(0,u.parse)(oe.search);ve=Ee.isPreview&&Ee.isPreview==="true"}return ve})(re),h.space=ne||p},w=(ee=!1)=>{const{apiKey:L,environment:K,isPreview:re,previewKey:ge,space:ne}=h;return re===!0||ee===!0?{accessToken:ge,environment:K,host:f.PREVIEW,space:ne}:{accessToken:L,environment:K,host:f.CDN,space:ne}},E=ee=>typeof ee=="object"&&ee!==null,y=ee=>Array.isArray(ee)&&ee.length,T=ee=>{if(!E(ee))throw new Error("Cannot flatten fields");const{fields:L,sys:K}=ee;if(!L)throw new Error("Cannot flatten fields");let re={...L};if(E(K)){const{contentType:ge,createdAt:ne,updatedAt:oe}=K;ge&&Object.assign(re,{contentType:ge.sys.id}),ne&&Object.assign(re,{createdAt:ne}),oe&&Object.assign(re,{updatedAt:oe})}return re},{CONTENTFUL:{LOCALES:R}}=c,S=(ee,L)=>E(ee)&&((K,re)=>Object.prototype.hasOwnProperty.call(K,re))(ee,L),O=(ee,L)=>{const K=(re=>R.SUPPORTED.includes(re)?re:R.DEFAULT)(L);return S(ee,K)?ee[K]:S(ee,R.DEFAULT)?ee[R.DEFAULT]:ee},N=ee=>E(ee)&&ee.sys&&ee.sys.type==="Asset",M=(ee,L,K)=>{const{title:re,file:ge}=T(ee);if(!ge)throw new Error("Cannot flatten asset");const{contentType:ne,fileName:oe,url:ve,details:Ee}=O(ge,L);if(!ve)throw new Error("Cannot flatten asset");return K?{description:re||oe,height:Ee&&Ee.image&&Ee.image.height,type:ne,url:ve,width:Ee&&Ee.image&&Ee.image.width}:ve},H=ee=>E(ee)&&ee.sys&&ee.sys.type==="Entry",G=(ee,L,K)=>{const re={},ge=((ne,oe)=>{const ve={};for(const[Ee,ze]of Object.entries(ne))ve[Ee]=O(ze,oe);return ve})(T(ee),L);for(const[ne,oe]of Object.entries(ge))N(oe)?re[ne]=M(oe,L,K):H(oe)?re[ne]=G(oe,L,K):y(oe)?re[ne]=oe.map(ve=>N(ve)?M(ve,L,K):H(ve)?G(ve,L,K):ve):re[ne]=oe;return re},W=({items:ee})=>{if(!y(ee))throw new Error("Cannot read items");return ee},U=async(ee,L)=>{const K=w(L);return await(await(0,l.createClient)(K)).getEntries(ee)},j=async(ee={},L={},K=!1)=>((re,{flatten:ge=!0,locale:ne="en",assetDetails:oe=!1})=>{const ve=W(re);return ge?G(ve[0],ne,oe):ve[0]})(await U(ee,K),{...ee,...L}),Z=async(ee={},L={},K=!1)=>((re,{flatten:ge=!0,locale:ne="en",assetDetails:oe=!1})=>{const ve=W(re);return ge?((Ee,ze,te)=>Ee.map(ue=>G(ue,ze,te)))(ve,ne,oe):ve})(await U(ee,K),{...ee,...L})}(),i}()})}(Xc)),Xc.exports}var zf={exports:{}},Yf={exports:{}},Kf={exports:{}},Xf={exports:{}},uv;function Dh(){return uv||(uv=1,function(e,t){(function(r,n){e.exports=n()})(be,function(){function r(m){return!isNaN(parseFloat(m))&&isFinite(m)}function n(m){return m.charAt(0).toUpperCase()+m.substring(1)}function a(m){return function(){return this[m]}}var o=["isConstructor","isEval","isNative","isToplevel"],s=["columnNumber","lineNumber"],i=["fileName","functionName","source"],l=["args"],u=["evalOrigin"],c=o.concat(s,i,l,u);function d(m){if(m)for(var w=0;w<c.length;w++)m[c[w]]!==void 0&&this["set"+n(c[w])](m[c[w]])}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()||"",w=this.getLineNumber()||"",E=this.getColumnNumber()||"",y=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+w+":"+E+")":"[eval]:"+w+":"+E:y?y+" ("+m+":"+w+":"+E+")":m+":"+w+":"+E}},d.fromString=function(w){var E=w.indexOf("("),y=w.lastIndexOf(")"),T=w.substring(0,E),R=w.substring(E+1,y).split(","),S=w.substring(y+1);if(S.indexOf("@")===0)var O=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(S,""),N=O[1],M=O[2],H=O[3];return new d({functionName:T,args:R||void 0,fileName:N,lineNumber:M||void 0,columnNumber:H||void 0})};for(var p=0;p<o.length;p++)d.prototype["get"+n(o[p])]=a(o[p]),d.prototype["set"+n(o[p])]=function(m){return function(w){this[m]=!!w}}(o[p]);for(var f=0;f<s.length;f++)d.prototype["get"+n(s[f])]=a(s[f]),d.prototype["set"+n(s[f])]=function(m){return function(w){if(!r(w))throw new TypeError(m+" must be a Number");this[m]=Number(w)}}(s[f]);for(var h=0;h<i.length;h++)d.prototype["get"+n(i[h])]=a(i[h]),d.prototype["set"+n(i[h])]=function(m){return function(w){this[m]=String(w)}}(i[h]);return d})}(Xf)),Xf.exports}var cv;function sA(){return cv||(cv=1,function(e,t){(function(r,n){e.exports=n(Dh())})(be,function(n){var a=/(^|@)\S+:\d+/,o=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/;return{parse:function(l){if(typeof l.stacktrace<"u"||typeof l["opera#sourceloc"]<"u")return this.parseOpera(l);if(l.stack&&l.stack.match(o))return this.parseV8OrIE(l);if(l.stack)return this.parseFFOrSafari(l);throw new Error("Cannot parse given Error object")},extractLocation:function(l){if(l.indexOf(":")===-1)return[l];var u=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=u.exec(l.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(l){var u=l.stack.split(`
35
- `).filter(function(c){return!!c.match(o)},this);return u.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),p=d.match(/ (\(.+\)$)/);d=p?d.replace(p[0],""):d;var f=this.extractLocation(p?p[1]:d),h=p&&d||void 0,m=["eval","<anonymous>"].indexOf(f[0])>-1?void 0:f[0];return new n({functionName:h,fileName:m,lineNumber:f[1],columnNumber:f[2],source:c})},this)},parseFFOrSafari:function(l){var u=l.stack.split(`
36
- `).filter(function(c){return!c.match(s)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new n({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,p=c.match(d),f=p&&p[1]?p[1]:void 0,h=this.extractLocation(c.replace(d,""));return new n({functionName:f,fileName:h[0],lineNumber:h[1],columnNumber:h[2],source:c})},this)},parseOpera:function(l){return!l.stacktrace||l.message.indexOf(`
34
+ `),n}return!0}function uh(e){var t=Object.getOwnPropertyNames(e),n=M0(t),r;try{for(n.s();!(r=n.n()).done;){var o=r.value,i=e[o];i&&Ks(i)==="object"&&uh(i)}}catch(s){n.e(s)}finally{n.f()}return Object.freeze(e)}function X0(e){return uh(e.sys||{}),e}function cl(){var e=H0();if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":i.indexOf(n)!==-1?"iOS":o.indexOf(n)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function J0(){var e=process.platform||"linux",t=process.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}function Z0(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var i=null;try{$0()?(i=cl(),o.push("platform ReactNative")):D0()?(i=J0(),o.push("platform node.js/".concat(j0()))):(i=cl(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(s){return s!==""}).join("; "),";")}function eE(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return yr(this)}})}function tE(e){var t=e.config,n=e.response,r;if(t&&t.headers&&t.headers.Authorization){var o="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(o)}if(!ao(n)||!ao(t))throw e;var i=n==null?void 0:n.data,s={status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText,message:"",details:{}};ao(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&ao(i)&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),"sys"in i&&"id"in i.sys&&(r=i.sys.id));var a=new Error;a.name=r&&r!=="Unknown"?r:"".concat(n==null?void 0:n.status," ").concat(n==null?void 0:n.statusText);try{a.message=JSON.stringify(s,null," ")}catch{var l;a.message=(l=s==null?void 0:s.message)!==null&&l!==void 0?l:""}throw a}const rE=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:sh,createRequestConfig:K0,enforceObjPath:Q0,errorHandler:tE,freezeSys:X0,getUserAgentHeader:Z0,toPlainObject:eE},Symbol.toStringTag,{value:"Module"})),Ht=Wi(rE);var so={},di={},uo={},ll;function nE(){if(ll)return uo;ll=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.wrapSpace=t;var e=Ht;function t(n){return(0,e.freezeSys)((0,e.toPlainObject)(n))}return uo}var hi={},Ka={exports:{}},fl;function Nn(){return fl||(fl=1,function(e,t){(function(n,r){e.exports=r()})(ae,function(){var n=Function.prototype.toString,r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,f=Object.prototype,u=f.hasOwnProperty,h=f.propertyIsEnumerable,d=typeof a=="function",c=typeof WeakMap=="function",p=function(){if(c)return function(){return new WeakMap};var F=function(){function M(){this._keys=[],this._values=[]}return M.prototype.has=function(W){return!!~this._keys.indexOf(W)},M.prototype.get=function(W){return this._values[this._keys.indexOf(W)]},M.prototype.set=function(W,q){this._keys.push(W),this._values.push(q)},M}();return function(){return new F}}(),m=function(F,M){var W=F.__proto__||l(F);if(!W)return r(null);var q=W.constructor;if(q===M.Object)return W===M.Object.prototype?{}:r(W);if(~n.call(q).indexOf("[native code]"))try{return new q}catch{}return r(W)},_=function(F,M,W,q){var V=m(F,M);q.set(F,V);for(var j in F)u.call(F,j)&&(V[j]=W(F[j],q));if(d)for(var Y=a(F),oe=0,K=Y.length,k=void 0;oe<K;++oe)k=Y[oe],h.call(F,k)&&(V[k]=W(F[k],q));return V},T=function(F,M,W,q){var V=m(F,M);q.set(F,V);for(var j=d?s(F).concat(a(F)):s(F),Y=0,oe=j.length,K=void 0,k=void 0;Y<oe;++Y)if(K=j[Y],K!=="callee"&&K!=="caller")if(k=i(F,K),k){!k.get&&!k.set&&(k.value=W(F[K],q));try{o(V,K,k)}catch{V[K]=k.value}}else V[K]=W(F[K],q);return V},E=function(F){var M="";return F.global&&(M+="g"),F.ignoreCase&&(M+="i"),F.multiline&&(M+="m"),F.unicode&&(M+="u"),F.sticky&&(M+="y"),M},b=Array.isArray,A=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ae<"u"?ae:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function N(F,M){var W=!!(M&&M.isStrict),q=M&&M.realm||w,V=W?T:_,j=function(Y,oe){if(!Y||typeof Y!="object")return Y;if(oe.has(Y))return oe.get(Y);var K=Y.__proto__||A(Y),k=K&&K.constructor;if(!k||k===q.Object)return V(Y,q,j,oe);var z;if(b(Y)){if(W)return T(Y,q,j,oe);z=new k,oe.set(Y,z);for(var J=0,de=Y.length;J<de;++J)z[J]=j(Y[J],oe);return z}if(Y instanceof q.Date)return new k(Y.getTime());if(Y instanceof q.RegExp)return z=new k(Y.source,Y.flags||E(Y)),z.lastIndex=Y.lastIndex,z;if(q.Map&&Y instanceof q.Map)return z=new k,oe.set(Y,z),Y.forEach(function(X,ee){z.set(ee,j(X,oe))}),z;if(q.Set&&Y instanceof q.Set)return z=new k,oe.set(Y,z),Y.forEach(function(X){z.add(j(X,oe))}),z;if(q.Blob&&Y instanceof q.Blob)return Y.slice(0,Y.size,Y.type);if(q.Buffer&&q.Buffer.isBuffer(Y))return z=q.Buffer.allocUnsafe?q.Buffer.allocUnsafe(Y.length):new k(Y.length),oe.set(Y,z),Y.copy(z),z;if(q.ArrayBuffer){if(q.ArrayBuffer.isView(Y))return z=new k(Y.buffer.slice(0)),oe.set(Y,z),z;if(Y instanceof q.ArrayBuffer)return z=Y.slice(0),oe.set(Y,z),z}return typeof Y.then=="function"||Y instanceof Error||q.WeakMap&&Y instanceof q.WeakMap||q.WeakSet&&Y instanceof q.WeakSet?Y:V(Y,q,j,oe)};return j(F,p())}return N.default=N,N.strict=function(M,W){return N(M,{isStrict:!0,realm:W?W.realm:void 0})},N})}(Ka)),Ka.exports}var co={},lo={exports:{}},dl;function iE(){return dl||(dl=1,function(e,t){t=e.exports=n,t.getSerialize=r;function n(o,i,s,a){return JSON.stringify(o,r(i,a),s)}function r(o,i){var s=[],a=[];return i==null&&(i=function(l,f){return s[0]===f?"[Circular ~]":"[Circular ~."+a.slice(0,s.indexOf(f)).join(".")+"]"}),function(l,f){if(s.length>0){var u=s.indexOf(this);~u?s.splice(u+1):s.push(this),~u?a.splice(u,1/0,l):a.push(l),~s.indexOf(f)&&(f=i.call(this,l,f))}else s.push(f);return o==null?f:o.call(this,l,f)}}}(lo,lo.exports)),lo.exports}var hl;function ch(){if(hl)return co;hl=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=n;var e=t(iE());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){return Object.defineProperty(r,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,o,i,(s,a)=>({sys:{type:"Link",linkType:"Entry",id:a.sys.id,circular:!0}}))}})}return co}var oE=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},aE=function(){function e(t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var a=t[Symbol.iterator](),l;!(o=(l=a.next()).done)&&(r.push(l.value),!(n&&r.length===n));o=!0);}catch(f){i=!0,s=f}finally{try{!o&&a.return&&a.return()}finally{if(i)throw s}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function pi(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var ji={},sE=function(t){return t&&t.sys&&t.sys.type==="Link"},uE=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},cE=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]},pl=function(t,n){var r=n.entryId,o=n.linkType,i=n.spaceId,s=n.environmentId;return i&&s?t.get(i+"!"+s+"!"+o+"!"+r):t.get(o+"!"+r)},lE=function(t){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(t)){var r=t.match(n),o=aE(r,4);o[0];var i=o[1],s=o[2],a=s===void 0?"master":s,l=o[3];return{spaceId:i,environmentId:a,entryId:l}}},fE=function(t,n){var r=n.sys,o=r.type,i=r.linkType;if(o==="ResourceLink"){var s=n.sys.urn,a=lE(s),l=a.spaceId,f=a.environmentId,u=a.entryId,h=i.split(":")[1];return pl(t,{linkType:h,entryId:u,spaceId:l,environmentId:f})||ji}var d=n.sys.id;return pl(t,{linkType:i,entryId:d})||ji},dE=function(t){if(Array.isArray(t))return t.filter(function(r){return r!==ji});for(var n in t)t[n]===ji&&delete t[n];return t},hE=function e(t,n,r,o){if(n(t))return r(t);if(t&&(typeof t>"u"?"undefined":oE(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],n,r,o));o&&(t=dE(t))}return t},pE=function(t,n,r){var o=fE(t,n);return o===ji?r?o:n:o},mE=function(t,n){if(!Array.isArray(n))return t;var r=Object.keys(t).filter(function(o){return n.indexOf(o)!==-1});return r.reduce(function(o,i){return o[i]=t[i],o},{})},gE=function(t,n){if(n=n||{},!t.items)return[];var r=yr(t),o=Object.keys(r.includes||{}).reduce(function(a,l){return[].concat(pi(a),pi(t.includes[l]))},[]),i=[].concat(pi(r.items),pi(o)).filter(function(a){return!!a.sys}),s=new Map(i.reduce(function(a,l){var f=cE(l.sys).map(function(u){return[u,l]});return a.push.apply(a,pi(f)),a},[]));return i.forEach(function(a){var l=mE(a,n.itemEntryPoints);Object.assign(a,hE(l,function(f){return sE(f)||uE(f)},function(f){return pE(s,f,n.removeUnresolved)},n.removeUnresolved))}),r.items};const yE=Object.freeze(Object.defineProperty({__proto__:null,default:gE},Symbol.toStringTag,{value:"Module"})),lh=Wi(yE);var ml;function vE(){if(ml)return hi;ml=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.wrapEntry=i,hi.wrapEntryCollection=s;var e=o(Nn()),t=Ht,n=o(ch()),r=o(lh);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}function s(a,l){let{resolveLinks:f,removeUnresolved:u}=l;const h=(0,n.default)((0,t.toPlainObject)((0,e.default)(a)));return f&&(h.items=(0,r.default)(h,{removeUnresolved:u,itemEntryPoints:["fields"]})),(0,t.freezeSys)(h)}return hi}var mi={},gl;function EE(){if(gl)return mi;gl=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.wrapAsset=r,mi.wrapAssetCollection=o;var e=n(Nn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return mi}var fo={},yl;function _E(){if(yl)return fo;yl=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.wrapAssetKey=r;var e=n(Nn()),t=Ht;function n(o){return o&&o.__esModule?o:{default:o}}function r(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return fo}var gi={},vl;function bE(){if(vl)return gi;vl=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.wrapContentType=r,gi.wrapContentTypeCollection=o;var e=n(Nn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return gi}var yi={},El;function wE(){if(El)return yi;El=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.wrapLocale=r,yi.wrapLocaleCollection=o;var e=n(Nn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return yi}var vi={},_l;function SE(){if(_l)return vi;_l=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.wrapTag=r,vi.wrapTagCollection=o;var e=n(Nn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return vi}var bl;function TE(){if(bl)return di;bl=1,Object.defineProperty(di,"__esModule",{value:!0}),di.default=void 0;var e=l(nE()),t=l(vE()),n=l(EE()),r=l(_E()),o=l(bE()),i=l(wE()),s=l(SE());function a(u){if(typeof WeakMap!="function")return null;var h=new WeakMap,d=new WeakMap;return(a=function(c){return c?d:h})(u)}function l(u,h){if(!h&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var d=a(h);if(d&&d.has(u))return d.get(u);var c={},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(c,m,_):c[m]=u[m]}return c.default=u,d&&d.set(u,c),c}var f={space:e,entry:t,asset:n,assetKey:r,contentType:o,locale:i,tag:s};return di.default=f,di}var ho={},wl;function OE(){if(wl)return ho;wl=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=a;var e=Ht,t=r(lh),n=r(ch());function r(h){return h&&h.__esModule?h:{default:h}}function o(h,d){var c=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),c.push.apply(c,p)}return c}function i(h){for(var d=1;d<arguments.length;d++){var c=arguments[d]!=null?arguments[d]:{};d%2?o(Object(c),!0).forEach(function(p){s(h,p,c[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(c)):o(Object(c)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(c,p))})}return h}function s(h,d,c){return d in h?Object.defineProperty(h,d,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[d]=c,h}async function a(h,d){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!d||!d.initial&&!d.nextSyncToken&&!d.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(d&&d.content_type&&!d.type)d.type="Entry";else if(d&&d.content_type&&d.type&&d.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:T}=i(i({},p),c),b=await f(h,[],d,{paginate:T});m&&(b.items=(0,t.default)(b,{removeUnresolved:_,itemEntryPoints:["fields"]}));const A=l(b.items);return b.nextSyncToken&&(A.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(A.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,n.default)((0,e.toPlainObject)(A)))}function l(h){const d=c=>(p,m)=>(m.sys.type===c&&p.push((0,e.toPlainObject)(m)),p);return{entries:h.reduce(d("Entry"),[]),assets:h.reduce(d("Asset"),[]),deletedEntries:h.reduce(d("DeletedEntry"),[]),deletedAssets:h.reduce(d("DeletedAsset"),[])}}async function f(h,d,c,p){let{paginate:m}=p;c.nextSyncToken&&(c.sync_token=c.nextSyncToken,delete c.nextSyncToken),c.nextPageToken&&(c.sync_token=c.nextPageToken,delete c.nextPageToken),c.sync_token&&(delete c.initial,delete c.type,delete c.content_type,delete c.limit);const T=(await h.get("sync",(0,e.createRequestConfig)({query:c}))).data||{};return d=d.concat(T.items||[]),T.nextPageUrl?m?(delete c.initial,c.sync_token=u(T.nextPageUrl),f(h,d,c,{paginate:m})):{items:d,nextPageToken:u(T.nextPageUrl)}:T.nextSyncUrl?{items:d,nextSyncToken:u(T.nextSyncUrl)}:{items:[]}}function u(h){const d=h.split("?");return d.length>0?d[1].replace("sync_token=",""):""}return ho}var po={},Sl;function xE(){if(Sl)return po;Sl=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=r;function e(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);i&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),s.push.apply(s,a)}return s}function t(o){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?e(Object(s),!0).forEach(function(a){n(o,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(a){Object.defineProperty(o,a,Object.getOwnPropertyDescriptor(s,a))})}return o}function n(o,i,s){return i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function r(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),s=new Set(i);return s.has("sys")?o:(s.add("sys.id"),s.add("sys.type"),t(t({},o),{},{select:[...s].join(",")}))}return po}var En={},Tl;function AE(){if(Tl)return En;Tl=1,Object.defineProperty(En,"__esModule",{value:!0}),En.ValidationError=void 0,En.default=t;class e extends Error{constructor(r,o){super(`Invalid "${r}" provided, `+o),this.name="ValidationError"}}En.ValidationError=e;function t(n,r,o){if(o=o||{},typeof r!="number")throw new e(n,`only numeric values are allowed for timestamps, provided type was "${typeof r}"`);if(o.maximum&&r>o.maximum)throw new e(n,`value (${r}) cannot be further in the future than expected maximum (${o.maximum})`);if(o.now&&r<o.now)throw new e(n,`value (${r}) cannot be in the past, current time was ${o.now}`)}return En}var Ol;function CE(){if(Ol)return so;Ol=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=u;var e=Ht,t=i(TE()),n=i(OE()),r=i(xE()),o=i(AE());function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var c=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),c.push.apply(c,p)}return c}function a(h){for(var d=1;d<arguments.length;d++){var c=arguments[d]!=null?arguments[d]:{};d%2?s(Object(c),!0).forEach(function(p){l(h,p,c[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(c)):s(Object(c)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(c,p))})}return h}function l(h,d,c){return d in h?Object.defineProperty(h,d,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[d]=c,h}const f=48*60*60;function u(h){let{http:d,getGlobalOptions:c}=h;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:_}=t.default.contentType,{wrapEntry:T,wrapEntryCollection:E}=t.default.entry,{wrapAsset:b,wrapAssetCollection:A}=t.default.asset,{wrapTag:w,wrapTagCollection:N}=t.default.tag,{wrapAssetKey:F}=t.default.assetKey,{wrapLocaleCollection:M}=t.default.locale,W=Q=>{const re=new Error("The resource could not be found.");return re.sys={type:"Error",id:"NotFound"},re.details={type:"Entry",id:Q,environment:c().environment,space:c().space},re};async function q(){Ve(d);try{const Q=await d.get("/");return p(Q.data)}catch(Q){(0,e.errorHandler)(Q)}}async function V(Q){ce(d);try{const re=await d.get(`content_types/${Q}`);return m(re.data)}catch(re){(0,e.errorHandler)(re)}}async function j(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d);try{const re=await d.get("content_types",(0,e.createRequestConfig)({query:Q}));return _(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Y(Q){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Q)throw W(Q);try{const Pe=await this.getEntries(a({"sys.id":Q},re));if(Pe.items.length>0)return T(Pe.items[0]);throw W(Q)}catch(Pe){(0,e.errorHandler)(Pe)}}async function oe(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d);const{resolveLinks:re,removeUnresolved:Pe}=c(Q);Q=(0,r.default)(Q);try{const xe=await d.get("entries",(0,e.createRequestConfig)({query:Q}));return E(xe.data,{resolveLinks:re,removeUnresolved:Pe})}catch(xe){(0,e.errorHandler)(xe)}}async function K(Q){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce(d),re=(0,r.default)(re);try{const Pe=await d.get(`assets/${Q}`,(0,e.createRequestConfig)({query:re}));return b(Pe.data)}catch(Pe){(0,e.errorHandler)(Pe)}}async function k(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d),Q=(0,r.default)(Q);try{const re=await d.get("assets",(0,e.createRequestConfig)({query:Q}));return A(re.data)}catch(re){(0,e.errorHandler)(re)}}async function z(Q){ce(d);try{const re=await d.get(`tags/${Q}`);return w(re.data)}catch(re){(0,e.errorHandler)(re)}}async function J(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d),Q=(0,r.default)(Q);try{const re=await d.get("tags",(0,e.createRequestConfig)({query:Q}));return N(re.data)}catch(re){(0,e.errorHandler)(re)}}async function de(Q){ce(d);try{const re=Math.floor(Date.now()/1e3),Pe=re+f;(0,o.default)("expiresAt",Q,{maximum:Pe,now:re});const xe={expiresAt:Q},at=await d.post("asset_keys",xe);return F(at.data)}catch(re){(0,e.errorHandler)(re)}}async function X(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d);try{const re=await d.get("locales",(0,e.createRequestConfig)({query:Q}));return M(re.data)}catch(re){(0,e.errorHandler)(re)}}async function ee(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Pe,removeUnresolved:xe}=c(Q);return ce(d),(0,n.default)(d,Q,a({resolveLinks:Pe,removeUnresolved:xe},re))}function ue(Q){const{resolveLinks:re,removeUnresolved:Pe}=c({});return E(Q,{resolveLinks:re,removeUnresolved:Pe})}function ce(Q){Q.defaults.baseURL=c().environmentBaseUrl}function Ve(Q){Q.defaults.baseURL=c().spaceBaseUrl}return{getSpace:q,getContentType:V,getContentTypes:j,getEntry:Y,getEntries:oe,getAsset:K,getAssets:k,getTag:z,getTags:J,createAssetKey:de,getLocales:X,parseEntries:ue,sync:ee}}return so}var mo={},xl;function RE(){if(xl)return mo;xl=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.default=e;function e(t){return function(r){return Object.assign({},t,r)}}return mo}var Al;function PE(){if(Al)return to;Al=1,Object.defineProperty(to,"__esModule",{value:!0}),to.createClient=l;var e=o(Ud()),t=Ht,n=o(CE()),r=o(RE());function o(f){return f&&f.__esModule?f:{default:f}}function i(f,u){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);u&&(d=d.filter(function(c){return Object.getOwnPropertyDescriptor(f,c).enumerable})),h.push.apply(h,d)}return h}function s(f){for(var u=1;u<arguments.length;u++){var h=arguments[u]!=null?arguments[u]:{};u%2?i(Object(h),!0).forEach(function(d){a(f,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(d){Object.defineProperty(f,d,Object.getOwnPropertyDescriptor(h,d))})}return f}function a(f,u,h){return u in f?Object.defineProperty(f,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[u]=h,f}function l(f){if(!f.accessToken)throw new TypeError("Expected parameter accessToken");if(!f.space)throw new TypeError("Expected parameter space");const h=s(s({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),f),d=(0,t.getUserAgentHeader)("contentful.js/9.1.34",h.application,h.integration);h.headers=s(s({},h.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":d});const c=(0,t.createHttpClient)(e.default,h),p=(0,r.default)({resolveLinks:h.resolveLinks,environment:h.environment,removeUnresolved:h.removeUnresolved,spaceBaseUrl:c.defaults.baseURL,environmentBaseUrl:`${c.defaults.baseURL}environments/${h.environment}`});return c.defaults.baseURL=p().environmentBaseUrl,(0,n.default)({http:c,getGlobalOptions:p})}return to}var Qa={},Xa,Cl;function IE(){return Cl||(Cl=1,Xa=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Xa}var Ja,Rl;function NE(){if(Rl)return Ja;Rl=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function r(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var l=s.slice(0,a),f=s.slice(a);return Array.prototype.concat.call([],r(l),r(f))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],l=1;l<a.length;l++)s=r(a,l).join(""),a=s.match(t)||[];return s}}function i(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},l=n.exec(s);l;){try{a[l[0]]=decodeURIComponent(l[0])}catch{var f=o(l[0]);f!==l[0]&&(a[l[0]]=f)}l=n.exec(s)}a["%C2"]="�";for(var u=Object.keys(a),h=0;h<u.length;h++){var d=u[h];s=s.replace(new RegExp(d,"g"),a[d])}return s}return Ja=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return i(s)}},Ja}var Za,Pl;function LE(){return Pl||(Pl=1,Za=(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 n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}),Za}var es,Il;function kE(){return Il||(Il=1,es=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var s=r[i],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(n[s]=a)}return n}),es}var Nl;function BE(){return Nl||(Nl=1,function(e){const t=IE(),n=NE(),r=LE(),o=kE(),i=E=>E==null,s=Symbol("encodeFragmentIdentifier");function a(E){switch(E.arrayFormat){case"index":return b=>(A,w)=>{const N=A.length;return w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?A:w===null?[...A,[u(b,E),"[",N,"]"].join("")]:[...A,[u(b,E),"[",u(N,E),"]=",u(w,E)].join("")]};case"bracket":return b=>(A,w)=>w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?A:w===null?[...A,[u(b,E),"[]"].join("")]:[...A,[u(b,E),"[]=",u(w,E)].join("")];case"colon-list-separator":return b=>(A,w)=>w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?A:w===null?[...A,[u(b,E),":list="].join("")]:[...A,[u(b,E),":list=",u(w,E)].join("")];case"comma":case"separator":case"bracket-separator":{const b=E.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(w,N)=>N===void 0||E.skipNull&&N===null||E.skipEmptyString&&N===""?w:(N=N===null?"":N,w.length===0?[[u(A,E),b,u(N,E)].join("")]:[[w,u(N,E)].join(E.arrayFormatSeparator)])}default:return b=>(A,w)=>w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?A:w===null?[...A,u(b,E)]:[...A,[u(b,E),"=",u(w,E)].join("")]}}function l(E){let b;switch(E.arrayFormat){case"index":return(A,w,N)=>{if(b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!b){N[A]=w;return}N[A]===void 0&&(N[A]={}),N[A][b[1]]=w};case"bracket":return(A,w,N)=>{if(b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"colon-list-separator":return(A,w,N)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"comma":case"separator":return(A,w,N)=>{const F=typeof w=="string"&&w.includes(E.arrayFormatSeparator),M=typeof w=="string"&&!F&&h(w,E).includes(E.arrayFormatSeparator);w=M?h(w,E):w;const W=F||M?w.split(E.arrayFormatSeparator).map(q=>h(q,E)):w===null?w:h(w,E);N[A]=W};case"bracket-separator":return(A,w,N)=>{const F=/(\[\])$/.test(A);if(A=A.replace(/\[\]$/,""),!F){N[A]=w&&h(w,E);return}const M=w===null?[]:w.split(E.arrayFormatSeparator).map(W=>h(W,E));if(N[A]===void 0){N[A]=M;return}N[A]=[].concat(N[A],M)};default:return(A,w,N)=>{if(N[A]===void 0){N[A]=w;return}N[A]=[].concat(N[A],w)}}}function f(E){if(typeof E!="string"||E.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(E,b){return b.encode?b.strict?t(E):encodeURIComponent(E):E}function h(E,b){return b.decode?n(E):E}function d(E){return Array.isArray(E)?E.sort():typeof E=="object"?d(Object.keys(E)).sort((b,A)=>Number(b)-Number(A)).map(b=>E[b]):E}function c(E){const b=E.indexOf("#");return b!==-1&&(E=E.slice(0,b)),E}function p(E){let b="";const A=E.indexOf("#");return A!==-1&&(b=E.slice(A)),b}function m(E){E=c(E);const b=E.indexOf("?");return b===-1?"":E.slice(b+1)}function _(E,b){return b.parseNumbers&&!Number.isNaN(Number(E))&&typeof E=="string"&&E.trim()!==""?E=Number(E):b.parseBooleans&&E!==null&&(E.toLowerCase()==="true"||E.toLowerCase()==="false")&&(E=E.toLowerCase()==="true"),E}function T(E,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),f(b.arrayFormatSeparator);const A=l(b),w=Object.create(null);if(typeof E!="string"||(E=E.trim().replace(/^[?#&]/,""),!E))return w;for(const N of E.split("&")){if(N==="")continue;let[F,M]=r(b.decode?N.replace(/\+/g," "):N,"=");M=M===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?M:h(M,b),A(h(F,b),M,w)}for(const N of Object.keys(w)){const F=w[N];if(typeof F=="object"&&F!==null)for(const M of Object.keys(F))F[M]=_(F[M],b);else w[N]=_(F,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((N,F)=>{const M=w[F];return M&&typeof M=="object"&&!Array.isArray(M)?N[F]=d(M):N[F]=M,N},Object.create(null))}e.extract=m,e.parse=T,e.stringify=(E,b)=>{if(!E)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),f(b.arrayFormatSeparator);const A=M=>b.skipNull&&i(E[M])||b.skipEmptyString&&E[M]==="",w=a(b),N={};for(const M of Object.keys(E))A(M)||(N[M]=E[M]);const F=Object.keys(N);return b.sort!==!1&&F.sort(b.sort),F.map(M=>{const W=E[M];return W===void 0?"":W===null?u(M,b):Array.isArray(W)?W.length===0&&b.arrayFormat==="bracket-separator"?u(M,b)+"[]":W.reduce(w(M),[]).join("&"):u(M,b)+"="+u(W,b)}).filter(M=>M.length>0).join("&")},e.parseUrl=(E,b)=>{b=Object.assign({decode:!0},b);const[A,w]=r(E,"#");return Object.assign({url:A.split("?")[0]||"",query:T(m(E),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:h(w,b)}:{})},e.stringifyUrl=(E,b)=>{b=Object.assign({encode:!0,strict:!0,[s]:!0},b);const A=c(E.url).split("?")[0]||"",w=e.extract(E.url),N=e.parse(w,{sort:!1}),F=Object.assign(N,E.query);let M=e.stringify(F,b);M&&(M=`?${M}`);let W=p(E.url);return E.fragmentIdentifier&&(W=`#${b[s]?u(E.fragmentIdentifier,b):E.fragmentIdentifier}`),`${A}${M}${W}`},e.pick=(E,b,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:w,query:N,fragmentIdentifier:F}=e.parseUrl(E,A);return e.stringifyUrl({url:w,query:o(N,b),fragmentIdentifier:F},A)},e.exclude=(E,b,A)=>{const w=Array.isArray(b)?N=>!b.includes(N):(N,F)=>!b(N,F);return e.pick(E,w,A)}}(Qa)),Qa}var Ll;function ME(){return Ll||(Ll=1,function(e,t){(function(n,r){e.exports=r(PE(),BE())})(ae,function(n,r){return function(){var o={897:function(l){l.exports=n},48:function(l){l.exports=r}},i={};function s(l){var f=i[l];if(f!==void 0)return f.exports;var u=i[l]={exports:{}};return o[l](u,u.exports,s),u.exports}s.d=function(l,f){for(var u in f)s.o(f,u)&&!s.o(l,u)&&Object.defineProperty(l,u,{enumerable:!0,get:f[u]})},s.o=function(l,f){return Object.prototype.hasOwnProperty.call(l,f)},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var a={};return function(){s.r(a),s.d(a,{getEntries:function(){return oe},getEntry:function(){return Y},setContext:function(){return m}});var l=s(897),f=s(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:h,SPACE:d,HOSTS:c}}=u;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:c.CDN,space:d};const m=({apiKey:K,environment:k,isPreview:z=!1,location:J,previewKey:de,space:X=null})=>{p.apiKey=K,p.previewKey=de,p.environment=(ee=>{if(!ee)throw new Error("Cannot map environment: Environment not defined");if(!h[ee])throw new Error(`Cannot map environment: No mapping found for environment ${ee}`);return h[ee]})(k),p.isPreview=z||(ee=>{let ue=!1;if(ee&&ee.search){const ce=(0,f.parse)(ee.search);ue=ce.isPreview&&ce.isPreview==="true"}return ue})(J),p.space=X||d},_=(K=!1)=>{const{apiKey:k,environment:z,isPreview:J,previewKey:de,space:X}=p;return J===!0||K===!0?{accessToken:de,environment:z,host:c.PREVIEW,space:X}:{accessToken:k,environment:z,host:c.CDN,space:X}},T=K=>typeof K=="object"&&K!==null,E=K=>Array.isArray(K)&&K.length,b=K=>{if(!T(K))throw new Error("Cannot flatten fields");const{fields:k,sys:z}=K;if(!k)throw new Error("Cannot flatten fields");let J={...k};if(T(z)){const{contentType:de,createdAt:X,updatedAt:ee}=z;de&&Object.assign(J,{contentType:de.sys.id}),X&&Object.assign(J,{createdAt:X}),ee&&Object.assign(J,{updatedAt:ee})}return J},{CONTENTFUL:{LOCALES:A}}=u,w=(K,k)=>T(K)&&((z,J)=>Object.prototype.hasOwnProperty.call(z,J))(K,k),N=(K,k)=>{const z=(J=>A.SUPPORTED.includes(J)?J:A.DEFAULT)(k);return w(K,z)?K[z]:w(K,A.DEFAULT)?K[A.DEFAULT]:K},F=K=>T(K)&&K.sys&&K.sys.type==="Asset",M=(K,k,z)=>{const{title:J,file:de}=b(K);if(!de)throw new Error("Cannot flatten asset");const{contentType:X,fileName:ee,url:ue,details:ce}=N(de,k);if(!ue)throw new Error("Cannot flatten asset");return z?{description:J||ee,height:ce&&ce.image&&ce.image.height,type:X,url:ue,width:ce&&ce.image&&ce.image.width}:ue},W=K=>T(K)&&K.sys&&K.sys.type==="Entry",q=(K,k,z)=>{const J={},de=((X,ee)=>{const ue={};for(const[ce,Ve]of Object.entries(X))ue[ce]=N(Ve,ee);return ue})(b(K),k);for(const[X,ee]of Object.entries(de))F(ee)?J[X]=M(ee,k,z):W(ee)?J[X]=q(ee,k,z):E(ee)?J[X]=ee.map(ue=>F(ue)?M(ue,k,z):W(ue)?q(ue,k,z):ue):J[X]=ee;return J},V=({items:K})=>{if(!E(K))throw new Error("Cannot read items");return K},j=async(K,k)=>{const z=_(k);return await(await(0,l.createClient)(z)).getEntries(K)},Y=async(K={},k={},z=!1)=>((J,{flatten:de=!0,locale:X="en",assetDetails:ee=!1})=>{const ue=V(J);return de?q(ue[0],X,ee):ue[0]})(await j(K,z),{...K,...k}),oe=async(K={},k={},z=!1)=>((J,{flatten:de=!0,locale:X="en",assetDetails:ee=!1})=>{const ue=V(J);return de?((ce,Ve,Q)=>ce.map(re=>q(re,Ve,Q)))(ue,X,ee):ue})(await j(K,z),{...K,...k})}(),a}()})}(oa)),oa.exports}var ts={exports:{}},rs={exports:{}},ns={exports:{}},is={exports:{}},kl;function Iu(){return kl||(kl=1,function(e,t){(function(n,r){e.exports=r()})(ae,function(){function n(m){return!isNaN(parseFloat(m))&&isFinite(m)}function r(m){return m.charAt(0).toUpperCase()+m.substring(1)}function o(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],s=["columnNumber","lineNumber"],a=["fileName","functionName","source"],l=["args"],f=["evalOrigin"],u=i.concat(s,a,l,f);function h(m){if(m)for(var _=0;_<u.length;_++)m[u[_]]!==void 0&&this["set"+r(u[_])](m[u[_]])}h.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 h)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new h(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",_=this.getLineNumber()||"",T=this.getColumnNumber()||"",E=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+_+":"+T+")":"[eval]:"+_+":"+T:E?E+" ("+m+":"+_+":"+T+")":m+":"+_+":"+T}},h.fromString=function(_){var T=_.indexOf("("),E=_.lastIndexOf(")"),b=_.substring(0,T),A=_.substring(T+1,E).split(","),w=_.substring(E+1);if(w.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),F=N[1],M=N[2],W=N[3];return new h({functionName:b,args:A||void 0,fileName:F,lineNumber:M||void 0,columnNumber:W||void 0})};for(var d=0;d<i.length;d++)h.prototype["get"+r(i[d])]=o(i[d]),h.prototype["set"+r(i[d])]=function(m){return function(_){this[m]=!!_}}(i[d]);for(var c=0;c<s.length;c++)h.prototype["get"+r(s[c])]=o(s[c]),h.prototype["set"+r(s[c])]=function(m){return function(_){if(!n(_))throw new TypeError(m+" must be a Number");this[m]=Number(_)}}(s[c]);for(var p=0;p<a.length;p++)h.prototype["get"+r(a[p])]=o(a[p]),h.prototype["set"+r(a[p])]=function(m){return function(_){this[m]=String(_)}}(a[p]);return h})}(is)),is.exports}var Bl;function FE(){return Bl||(Bl=1,function(e,t){(function(n,r){e.exports=r(Iu())})(ae,function(r){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/;return{parse:function(l){if(typeof l.stacktrace<"u"||typeof l["opera#sourceloc"]<"u")return this.parseOpera(l);if(l.stack&&l.stack.match(i))return this.parseV8OrIE(l);if(l.stack)return this.parseFFOrSafari(l);throw new Error("Cannot parse given Error object")},extractLocation:function(l){if(l.indexOf(":")===-1)return[l];var f=/(.+?)(?::(\d+))?(?::(\d+))?$/,u=f.exec(l.replace(/[()]/g,""));return[u[1],u[2]||void 0,u[3]||void 0]},parseV8OrIE:function(l){var f=l.stack.split(`
35
+ `).filter(function(u){return!!u.match(i)},this);return f.map(function(u){u.indexOf("(eval ")>-1&&(u=u.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var h=u.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),d=h.match(/ (\(.+\)$)/);h=d?h.replace(d[0],""):h;var c=this.extractLocation(d?d[1]:h),p=d&&h||void 0,m=["eval","<anonymous>"].indexOf(c[0])>-1?void 0:c[0];return new r({functionName:p,fileName:m,lineNumber:c[1],columnNumber:c[2],source:u})},this)},parseFFOrSafari:function(l){var f=l.stack.split(`
36
+ `).filter(function(u){return!u.match(s)},this);return f.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 r({functionName:u});var h=/((.*".+"[^@]*)?[^@]*)(?:@)/,d=u.match(h),c=d&&d[1]?d[1]:void 0,p=this.extractLocation(u.replace(h,""));return new r({functionName:c,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:u})},this)},parseOpera:function(l){return!l.stacktrace||l.message.indexOf(`
37
37
  `)>-1&&l.message.split(`
38
38
  `).length>l.stacktrace.split(`
39
- `).length?this.parseOpera9(l):l.stack?this.parseOpera11(l):this.parseOpera10(l)},parseOpera9:function(l){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=l.message.split(`
40
- `),d=[],p=2,f=c.length;p<f;p+=2){var h=u.exec(c[p]);h&&d.push(new n({fileName:h[2],lineNumber:h[1],source:c[p]}))}return d},parseOpera10:function(l){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=l.stacktrace.split(`
41
- `),d=[],p=0,f=c.length;p<f;p+=2){var h=u.exec(c[p]);h&&d.push(new n({functionName:h[3]||void 0,fileName:h[2],lineNumber:h[1],source:c[p]}))}return d},parseOpera11:function(l){var u=l.stack.split(`
42
- `).filter(function(c){return!!c.match(a)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),p=this.extractLocation(d.pop()),f=d.shift()||"",h=f.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;f.match(/\(([^)]*)\)/)&&(m=f.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var w=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new n({functionName:h,args:w,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)}}})}(Kf)),Kf.exports}var Qf={exports:{}},fv;function lA(){return fv||(fv=1,function(e,t){(function(r,n){e.exports=n(Dh())})(be,function(r){return{backtrace:function(a){var o=[],s=10;typeof a=="object"&&typeof a.maxStackSize=="number"&&(s=a.maxStackSize);for(var i=arguments.callee;i&&o.length<s&&i.arguments;){for(var l=new Array(i.arguments.length),u=0;u<l.length;++u)l[u]=i.arguments[u];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?o.push(new r({functionName:RegExp.$1||void 0,args:l})):o.push(new r({args:l}));try{i=i.caller}catch{break}}return o}}})}(Qf)),Qf.exports}var Jf={exports:{}},Ao={},Zf={},dv;function I_(){return dv||(dv=1,function(e){function t(y,T,R){if(T in y)return y[T];if(arguments.length===3)return R;throw new Error('"'+T+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function a(y){var T=y.match(r);return T?{scheme:T[1],auth:T[2],host:T[3],port:T[4],path:T[5]}:null}e.urlParse=a;function o(y){var T="";return y.scheme&&(T+=y.scheme+":"),T+="//",y.auth&&(T+=y.auth+"@"),y.host&&(T+=y.host),y.port&&(T+=":"+y.port),y.path&&(T+=y.path),T}e.urlGenerate=o;function s(y){var T=y,R=a(y);if(R){if(!R.path)return y;T=R.path}for(var S=e.isAbsolute(T),O=T.split(/\/+/),N,M=0,H=O.length-1;H>=0;H--)N=O[H],N==="."?O.splice(H,1):N===".."?M++:M>0&&(N===""?(O.splice(H+1,M),M=0):(O.splice(H,2),M--));return T=O.join("/"),T===""&&(T=S?"/":"."),R?(R.path=T,o(R)):T}e.normalize=s;function i(y,T){y===""&&(y="."),T===""&&(T=".");var R=a(T),S=a(y);if(S&&(y=S.path||"/"),R&&!R.scheme)return S&&(R.scheme=S.scheme),o(R);if(R||T.match(n))return T;if(S&&!S.host&&!S.path)return S.host=T,o(S);var O=T.charAt(0)==="/"?T:s(y.replace(/\/+$/,"")+"/"+T);return S?(S.path=O,o(S)):O}e.join=i,e.isAbsolute=function(y){return y.charAt(0)==="/"||!!y.match(r)};function l(y,T){y===""&&(y="."),y=y.replace(/\/$/,"");for(var R=0;T.indexOf(y+"/")!==0;){var S=y.lastIndexOf("/");if(S<0||(y=y.slice(0,S),y.match(/^([^\/]+:\/)?\/*$/)))return T;++R}return Array(R+1).join("../")+T.substr(y.length+1)}e.relative=l;var u=function(){var y=Object.create(null);return!("__proto__"in y)}();function c(y){return y}function d(y){return f(y)?"$"+y:y}e.toSetString=u?c:d;function p(y){return f(y)?y.slice(1):y}e.fromSetString=u?c:p;function f(y){if(!y)return!1;var T=y.length;if(T<9||y.charCodeAt(T-1)!==95||y.charCodeAt(T-2)!==95||y.charCodeAt(T-3)!==111||y.charCodeAt(T-4)!==116||y.charCodeAt(T-5)!==111||y.charCodeAt(T-6)!==114||y.charCodeAt(T-7)!==112||y.charCodeAt(T-8)!==95||y.charCodeAt(T-9)!==95)return!1;for(var R=T-10;R>=0;R--)if(y.charCodeAt(R)!==36)return!1;return!0}function h(y,T,R){var S=y.source-T.source;return S!==0||(S=y.originalLine-T.originalLine,S!==0)||(S=y.originalColumn-T.originalColumn,S!==0||R)||(S=y.generatedColumn-T.generatedColumn,S!==0)||(S=y.generatedLine-T.generatedLine,S!==0)?S:y.name-T.name}e.compareByOriginalPositions=h;function m(y,T,R){var S=y.generatedLine-T.generatedLine;return S!==0||(S=y.generatedColumn-T.generatedColumn,S!==0||R)||(S=y.source-T.source,S!==0)||(S=y.originalLine-T.originalLine,S!==0)||(S=y.originalColumn-T.originalColumn,S!==0)?S:y.name-T.name}e.compareByGeneratedPositionsDeflated=m;function w(y,T){return y===T?0:y>T?1:-1}function E(y,T){var R=y.generatedLine-T.generatedLine;return R!==0||(R=y.generatedColumn-T.generatedColumn,R!==0)||(R=w(y.source,T.source),R!==0)||(R=y.originalLine-T.originalLine,R!==0)||(R=y.originalColumn-T.originalColumn,R!==0)?R:w(y.name,T.name)}e.compareByGeneratedPositionsInflated=E}(Zf)),Zf}var ed={},pv;function uA(){return pv||(pv=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,a,o,s,i){var l=Math.floor((n-r)/2)+r,u=s(a,o[l],!0);return u===0?l:u>0?n-l>1?t(l,n,a,o,s,i):i==e.LEAST_UPPER_BOUND?n<o.length?n:-1:l:l-r>1?t(r,l,a,o,s,i):i==e.LEAST_UPPER_BOUND?l:r<0?-1:r}e.search=function(n,a,o,s){if(a.length===0)return-1;var i=t(-1,a.length,n,a,o,s||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&o(a[i],a[i-1],!0)===0;)--i;return i}}(ed)),ed}var td={},hv;function cA(){if(hv)return td;hv=1;var e=I_(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(a,o){for(var s=new r,i=0,l=a.length;i<l;i++)s.add(a[i],o);return s},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,o){var s=e.toSetString(a),i=t.call(this._set,s),l=this._array.length;(!i||o)&&this._array.push(a),i||(this._set[s]=l)},r.prototype.has=function(a){var o=e.toSetString(a);return t.call(this._set,o)},r.prototype.indexOf=function(a){var o=e.toSetString(a);if(t.call(this._set,o))return this._set[o];throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},td.ArraySet=r,td}var Hi={},Gi={},mv;function fA(){if(mv)return Gi;mv=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Gi.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Gi.decode=function(t){var r=65,n=90,a=97,o=122,s=48,i=57,l=43,u=47,c=26,d=52;return r<=t&&t<=n?t-r:a<=t&&t<=o?t-a+c:s<=t&&t<=i?t-s+d:t==l?62:t==u?63:-1},Gi}var yv;function dA(){if(yv)return Hi;yv=1;var e=fA(),t=5,r=1<<t,n=r-1,a=r;function o(i){return i<0?(-i<<1)+1:(i<<1)+0}function s(i){var l=(i&1)===1,u=i>>1;return l?-u:u}return Hi.encode=function(l){var u="",c,d=o(l);do c=d&n,d>>>=t,d>0&&(c|=a),u+=e.encode(c);while(d>0);return u},Hi.decode=function(l,u,c){var d=l.length,p=0,f=0,h,m;do{if(u>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(l.charCodeAt(u++)),m===-1)throw new Error("Invalid base64 digit: "+l.charAt(u-1));h=!!(m&a),m&=n,p=p+(m<<f),f+=t}while(h);c.value=s(p),c.rest=u},Hi}var rd={},vv;function pA(){if(vv)return rd;vv=1;function e(n,a,o){var s=n[a];n[a]=n[o],n[o]=s}function t(n,a){return Math.round(n+Math.random()*(a-n))}function r(n,a,o,s){if(o<s){var i=t(o,s),l=o-1;e(n,i,s);for(var u=n[s],c=o;c<s;c++)a(n[c],u)<=0&&(l+=1,e(n,l,c));e(n,l+1,c);var d=l+1;r(n,a,o,d-1),r(n,a,d+1,s)}}return rd.quickSort=function(n,a){r(n,a,0,n.length-1)},rd}var gv;function hA(){if(gv)return Ao;gv=1;var e=I_(),t=uA(),r=cA().ArraySet,n=dA(),a=pA().quickSort;function o(u){var c=u;return typeof u=="string"&&(c=JSON.parse(u.replace(/^\)\]\}'/,""))),c.sections!=null?new l(c):new s(c)}o.fromSourceMap=function(u){return s.fromSourceMap(u)},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(c,d){var p=c.charAt(d);return p===";"||p===","},o.prototype._parseMappings=function(c,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(c,d,p){var f=d||null,h=p||o.GENERATED_ORDER,m;switch(h){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 w=this.sourceRoot;m.map(function(E){var y=E.source===null?null:this._sources.at(E.source);return y!=null&&w!=null&&(y=e.join(w,y)),{source:y,generatedLine:E.generatedLine,generatedColumn:E.generatedColumn,originalLine:E.originalLine,originalColumn:E.originalColumn,name:E.name===null?null:this._names.at(E.name)}},this).forEach(c,f)},o.prototype.allGeneratedPositionsFor=function(c){var d=e.getArg(c,"line"),p={source:e.getArg(c,"source"),originalLine:d,originalColumn:e.getArg(c,"column",0)};if(this.sourceRoot!=null&&(p.source=e.relative(this.sourceRoot,p.source)),!this._sources.has(p.source))return[];p.source=this._sources.indexOf(p.source);var f=[],h=this._findMapping(p,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(h>=0){var m=this._originalMappings[h];if(c.column===void 0)for(var w=m.originalLine;m&&m.originalLine===w;)f.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++h];else for(var E=m.originalColumn;m&&m.originalLine===d&&m.originalColumn==E;)f.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++h]}return f},Ao.SourceMapConsumer=o;function s(u){var c=u;typeof u=="string"&&(c=JSON.parse(u.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),p=e.getArg(c,"sources"),f=e.getArg(c,"names",[]),h=e.getArg(c,"sourceRoot",null),m=e.getArg(c,"sourcesContent",null),w=e.getArg(c,"mappings"),E=e.getArg(c,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);p=p.map(String).map(e.normalize).map(function(y){return h&&e.isAbsolute(h)&&e.isAbsolute(y)?e.relative(h,y):y}),this._names=r.fromArray(f.map(String),!0),this._sources=r.fromArray(p,!0),this.sourceRoot=h,this.sourcesContent=m,this._mappings=w,this.file=E}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.fromSourceMap=function(c){var d=Object.create(s.prototype),p=d._names=r.fromArray(c._names.toArray(),!0),f=d._sources=r.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file;for(var h=c._mappings.toArray().slice(),m=d.__generatedMappings=[],w=d.__originalMappings=[],E=0,y=h.length;E<y;E++){var T=h[E],R=new i;R.generatedLine=T.generatedLine,R.generatedColumn=T.generatedColumn,T.source&&(R.source=f.indexOf(T.source),R.originalLine=T.originalLine,R.originalColumn=T.originalColumn,T.name&&(R.name=p.indexOf(T.name)),w.push(R)),m.push(R)}return a(d.__originalMappings,e.compareByOriginalPositions),d},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(u){return this.sourceRoot!=null?e.join(this.sourceRoot,u):u},this)}});function i(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(c,d){for(var p=1,f=0,h=0,m=0,w=0,E=0,y=c.length,T=0,R={},S={},O=[],N=[],M,H,G,W,U;T<y;)if(c.charAt(T)===";")p++,T++,f=0;else if(c.charAt(T)===",")T++;else{for(M=new i,M.generatedLine=p,W=T;W<y&&!this._charIsMappingSeparator(c,W);W++);if(H=c.slice(T,W),G=R[H],G)T+=H.length;else{for(G=[];T<W;)n.decode(c,T,S),U=S.value,T=S.rest,G.push(U);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");R[H]=G}M.generatedColumn=f+G[0],f=M.generatedColumn,G.length>1&&(M.source=w+G[1],w+=G[1],M.originalLine=h+G[2],h=M.originalLine,M.originalLine+=1,M.originalColumn=m+G[3],m=M.originalColumn,G.length>4&&(M.name=E+G[4],E+=G[4])),N.push(M),typeof M.originalLine=="number"&&O.push(M)}a(N,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=N,a(O,e.compareByOriginalPositions),this.__originalMappings=O},s.prototype._findMapping=function(c,d,p,f,h,m){if(c[p]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[p]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,d,h,m)},s.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var d=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var p=this._generatedMappings[c+1];if(d.generatedLine===p.generatedLine){d.lastGeneratedColumn=p.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},p=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(p>=0){var f=this._generatedMappings[p];if(f.generatedLine===d.generatedLine){var h=e.getArg(f,"source",null);h!==null&&(h=this._sources.at(h),this.sourceRoot!=null&&(h=e.join(this.sourceRoot,h)));var m=e.getArg(f,"name",null);return m!==null&&(m=this._names.at(m)),{source:h,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},s.prototype.sourceContentFor=function(c,d){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var f=c.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!p.path||p.path=="/")&&this._sources.has("/"+c))return this.sourcesContent[this._sources.indexOf("/"+c)]}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){var d=e.getArg(c,"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 p={source:d,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(p,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(f>=0){var h=this._originalMappings[f];if(h.source===p.source)return{line:e.getArg(h,"generatedLine",null),column:e.getArg(h,"generatedColumn",null),lastColumn:e.getArg(h,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Ao.BasicSourceMapConsumer=s;function l(u){var c=u;typeof u=="string"&&(c=JSON.parse(u.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),p=e.getArg(c,"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=p.map(function(h){if(h.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(h,"offset"),w=e.getArg(m,"line"),E=e.getArg(m,"column");if(w<f.line||w===f.line&&E<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=m,{generatedOffset:{generatedLine:w+1,generatedColumn:E+1},consumer:new o(e.getArg(h,"map"))}})}return l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var d=0;d<this._sections[c].consumer.sources.length;d++)u.push(this._sections[c].consumer.sources[d]);return u}}),l.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},p=t.search(d,this._sections,function(h,m){var w=h.generatedLine-m.generatedOffset.generatedLine;return w||h.generatedColumn-m.generatedOffset.generatedColumn}),f=this._sections[p];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:c.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(c,d){for(var p=0;p<this._sections.length;p++){var f=this._sections[p],h=f.consumer.sourceContentFor(c,!0);if(h)return h}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(c){for(var d=0;d<this._sections.length;d++){var p=this._sections[d];if(p.consumer.sources.indexOf(e.getArg(c,"source"))!==-1){var f=p.consumer.generatedPositionFor(c);if(f){var h={line:f.line+(p.generatedOffset.generatedLine-1),column:f.column+(p.generatedOffset.generatedLine===f.line?p.generatedOffset.generatedColumn-1:0)};return h}}}return{line:null,column:null}},l.prototype._parseMappings=function(c,d){this.__generatedMappings=[],this.__originalMappings=[];for(var p=0;p<this._sections.length;p++)for(var f=this._sections[p],h=f.consumer._generatedMappings,m=0;m<h.length;m++){var w=h[m],E=f.consumer._sources.at(w.source);f.consumer.sourceRoot!==null&&(E=e.join(f.consumer.sourceRoot,E)),this._sources.add(E),E=this._sources.indexOf(E);var y=f.consumer._names.at(w.name);this._names.add(y),y=this._names.indexOf(y);var T={source:E,generatedLine:w.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:w.generatedColumn+(f.generatedOffset.generatedLine===w.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:w.originalLine,originalColumn:w.originalColumn,name:y};this.__generatedMappings.push(T),typeof T.originalLine=="number"&&this.__originalMappings.push(T)}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions)},Ao.IndexedSourceMapConsumer=l,Ao}var bv;function mA(){return bv||(bv=1,function(e,t){(function(r,n){e.exports=n(hA(),Dh())})(be,function(r,n){function a(p){return new Promise(function(f,h){var m=new XMLHttpRequest;m.open("get",p),m.onerror=h,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||p.substr(0,7)==="file://"&&m.responseText?f(m.responseText):h(new Error("HTTP status: "+m.status+" retrieving "+p)))},m.send()})}function o(p){if(typeof window<"u"&&window.atob)return window.atob(p);throw new Error("You must supply a polyfill for window.atob in this environment")}function s(p){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(p);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function i(p,f){for(var h=[/['"]?([$_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=p.split(`
43
- `),w="",E=Math.min(f,20),y=0;y<E;++y){var T=m[f-y-1],R=T.indexOf("//");if(R>=0&&(T=T.substr(0,R)),T){w=T+w;for(var S=h.length,O=0;O<S;O++){var N=h[O].exec(w);if(N&&N[1])return N[1]}}}}function l(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function u(p){if(typeof p!="object")throw new TypeError("Given StackFrame is not an object");if(typeof p.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof p.lineNumber!="number"||p.lineNumber%1!==0||p.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof p.columnNumber!="number"||p.columnNumber%1!==0||p.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function c(p){for(var f=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,h,m;m=f.exec(p);)h=m[1];if(h)return h;throw new Error("sourceMappingURL not found")}function d(p,f,h){return new Promise(function(m,w){var E=f.originalPositionFor({line:p.lineNumber,column:p.columnNumber});if(E.source){var y=f.sourceContentFor(E.source);y&&(h[E.source]=y),m(new n({functionName:E.name||p.functionName,args:p.args,fileName:E.source,lineNumber:E.line,columnNumber:E.column}))}else w(new Error("Could not get original source for given stackframe and source map"))})}return function p(f){if(!(this instanceof p))return new p(f);f=f||{},this.sourceCache=f.sourceCache||{},this.sourceMapConsumerCache=f.sourceMapConsumerCache||{},this.ajax=f.ajax||a,this._atob=f.atob||o,this._get=function(m){return new Promise((function(w,E){var y=m.substr(0,5)==="data:";if(this.sourceCache[m])w(this.sourceCache[m]);else if(f.offline&&!y)E(new Error("Cannot make network requests in offline mode"));else if(y){var T=/^data:application\/json;([\w=:"-]+;)*base64,/,R=m.match(T);if(R){var S=R[0].length,O=m.substr(S),N=this._atob(O);this.sourceCache[m]=N,w(N)}else E(new Error("The encoding of the inline sourcemap is not supported"))}else{var M=this.ajax(m,{method:"get"});this.sourceCache[m]=M,M.then(w,E)}}).bind(this))},this._getSourceMapConsumer=function(m,w){return new Promise((function(E){if(this.sourceMapConsumerCache[m])E(this.sourceMapConsumerCache[m]);else{var y=new Promise((function(T,R){return this._get(m).then(function(S){typeof S=="string"&&(S=s(S.replace(/^\)\]\}'/,""))),typeof S.sourceRoot>"u"&&(S.sourceRoot=w),T(new r.SourceMapConsumer(S))}).catch(R)}).bind(this));this.sourceMapConsumerCache[m]=y,E(y)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(w,E){this.getMappedLocation(m).then((function(y){function T(){w(y)}this.findFunctionName(y).then(w,T).catch(T)}).bind(this),E)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(w,E){u(m),this._get(m.fileName).then(function(T){var R=m.lineNumber,S=m.columnNumber,O=i(T,R);w(O?new n({functionName:O,args:m.args,fileName:m.fileName,lineNumber:R,columnNumber:S}):m)},E).catch(E)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(w,E){l(),u(m);var y=this.sourceCache,T=m.fileName;this._get(T).then((function(R){var S=c(R),O=S.substr(0,5)==="data:",N=T.substring(0,T.lastIndexOf("/")+1);return S[0]!=="/"&&!O&&!/^https?:\/\/|^\/\//i.test(S)&&(S=N+S),this._getSourceMapConsumer(S,N).then(function(M){return d(m,M,y).then(w).catch(function(){w(m)})})}).bind(this),E).catch(E)}).bind(this))}}})}(Jf)),Jf.exports}var Ev;function yA(){return Ev||(Ev=1,function(e,t){(function(r,n){e.exports=n(sA(),lA(),mA())})(be,function(n,a,o){var s={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:{}},i=function(){try{throw new Error}catch(p){return p}};function l(d,p){var f={};return[d,p].forEach(function(h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m]);return f}),f}function u(d){return d.stack||d["opera#sourceloc"]}function c(d,p){return typeof p=="function"?d.filter(p):d}return{get:function(p){var f=i();return u(f)?this.fromError(f,p):this.generateArtificially(p)},getSync:function(p){p=l(s,p);var f=i(),h=u(f)?n.parse(f):a.backtrace(p);return c(h,p.filter)},fromError:function(p,f){f=l(s,f);var h=new o(f);return new Promise((function(m){var w=c(n.parse(p),f.filter);m(Promise.all(w.map(function(E){return new Promise(function(y){function T(){y(E)}h.pinpoint(E).then(y,T).catch(T)})})))}).bind(this))},generateArtificially:function(p){p=l(s,p);var f=a.backtrace(p);return typeof p.filter=="function"&&(f=f.filter(p.filter)),Promise.resolve(f)},instrument:function(p,f,h,m){if(typeof p!="function")throw new Error("Cannot instrument non-function object");if(typeof p.__stacktraceOriginalFn=="function")return p;var w=(function(){try{return this.get().then(f,h).catch(h),p.apply(m||this,arguments)}catch(y){throw u(y)&&this.fromError(y).then(f,h).catch(h),y}}).bind(this);return w.__stacktraceOriginalFn=p,w},deinstrument:function(p){if(typeof p!="function")throw new Error("Cannot de-instrument non-function object");return typeof p.__stacktraceOriginalFn=="function"?p.__stacktraceOriginalFn:p},report:function(p,f,h,m){return new Promise(function(w,E){var y=new XMLHttpRequest;if(y.onerror=E,y.onreadystatechange=function(){y.readyState===4&&(y.status>=200&&y.status<400?w(y.responseText):E(new Error("POST to "+f+" failed with status: "+y.status)))},y.open("post",f),y.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var T=m.headers;for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&y.setRequestHeader(R,T[R])}var S={stack:p};h!=null&&(S.message=h),y.send(JSON.stringify(S))})}}})}(Yf)),Yf.exports}var nd,_v;function vA(){if(_v)return nd;_v=1;var e=yA(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",r=function(){};r.prototype.start=function(s){if(!s.key&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!s.projectId&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=s.customReportingFunction,this.apiKey=s.key,this.projectId=s.projectId,this.targetUrl=s.targetUrl,this.context=s.context||{},this.serviceContext={service:s.service||"web"},s.version&&(this.serviceContext.version=s.version),this.reportUncaughtExceptions=s.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=s.reportUnhandledPromiseRejections!==!1,this.disabled=!!s.disabled,n(this)};function n(s){var i=function(){};if(s.reportUncaughtExceptions){var l=window.onerror||i;window.onerror=function(c,d,p,f,h){return h&&s.report(h).catch(i),l(c,d,p,f,h),!0}}if(s.reportUnhandledPromiseRejections){var u=window.onunhandledrejection||i;window.onunhandledrejection=function(c){return c&&s.report(c.reason).catch(i),u(c.reason),!0}}}r.prototype.report=function(s,i){if(this.disabled)return Promise.resolve(null);if(!s)return Promise.reject(new Error("no error to report"));i=i||{};var l={};l.serviceContext=this.serviceContext,l.context=this.context,l.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var u=0;if(typeof s=="string"||s instanceof String){try{throw new Error(s)}catch(p){s=p}u=i.skipLocalFrames||1}var c=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,d=this.customReportingFunction;return a(s,u).then(function(p){return l.message=p,d?d(l):o(c,l)})};function a(s,i){return e.fromError(s).then(function(l){for(var u=[s.toString()],c=i;c<l.length;c++)u.push([" at ",l[c].getFunctionName()||"<anonymous>"," (",l[c].getFileName(),":",l[c].getLineNumber(),":",l[c].getColumnNumber(),")"].join(""));return u.join(`
39
+ `).length?this.parseOpera9(l):l.stack?this.parseOpera11(l):this.parseOpera10(l)},parseOpera9:function(l){for(var f=/Line (\d+).*script (?:in )?(\S+)/i,u=l.message.split(`
40
+ `),h=[],d=2,c=u.length;d<c;d+=2){var p=f.exec(u[d]);p&&h.push(new r({fileName:p[2],lineNumber:p[1],source:u[d]}))}return h},parseOpera10:function(l){for(var f=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,u=l.stacktrace.split(`
41
+ `),h=[],d=0,c=u.length;d<c;d+=2){var p=f.exec(u[d]);p&&h.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:u[d]}))}return h},parseOpera11:function(l){var f=l.stack.split(`
42
+ `).filter(function(u){return!!u.match(o)&&!u.match(/^Error created at/)},this);return f.map(function(u){var h=u.split("@"),d=this.extractLocation(h.pop()),c=h.shift()||"",p=c.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;c.match(/\(([^)]*)\)/)&&(m=c.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var _=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new r({functionName:p,args:_,fileName:d[0],lineNumber:d[1],columnNumber:d[2],source:u})},this)}}})}(ns)),ns.exports}var os={exports:{}},Ml;function UE(){return Ml||(Ml=1,function(e,t){(function(n,r){e.exports=r(Iu())})(ae,function(n){return{backtrace:function(o){var i=[],s=10;typeof o=="object"&&typeof o.maxStackSize=="number"&&(s=o.maxStackSize);for(var a=arguments.callee;a&&i.length<s&&a.arguments;){for(var l=new Array(a.arguments.length),f=0;f<l.length;++f)l[f]=a.arguments[f];/function(?:\s+([\w$]+))+\s*\(/.test(a.toString())?i.push(new n({functionName:RegExp.$1||void 0,args:l})):i.push(new n({args:l}));try{a=a.caller}catch{break}}return i}}})}(os)),os.exports}var as={exports:{}},Ei={},ss={},Fl;function fh(){return Fl||(Fl=1,function(e){function t(E,b,A){if(b in E)return E[b];if(arguments.length===3)return A;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function o(E){var b=E.match(n);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=o;function i(E){var b="";return E.scheme&&(b+=E.scheme+":"),b+="//",E.auth&&(b+=E.auth+"@"),E.host&&(b+=E.host),E.port&&(b+=":"+E.port),E.path&&(b+=E.path),b}e.urlGenerate=i;function s(E){var b=E,A=o(E);if(A){if(!A.path)return E;b=A.path}for(var w=e.isAbsolute(b),N=b.split(/\/+/),F,M=0,W=N.length-1;W>=0;W--)F=N[W],F==="."?N.splice(W,1):F===".."?M++:M>0&&(F===""?(N.splice(W+1,M),M=0):(N.splice(W,2),M--));return b=N.join("/"),b===""&&(b=w?"/":"."),A?(A.path=b,i(A)):b}e.normalize=s;function a(E,b){E===""&&(E="."),b===""&&(b=".");var A=o(b),w=o(E);if(w&&(E=w.path||"/"),A&&!A.scheme)return w&&(A.scheme=w.scheme),i(A);if(A||b.match(r))return b;if(w&&!w.host&&!w.path)return w.host=b,i(w);var N=b.charAt(0)==="/"?b:s(E.replace(/\/+$/,"")+"/"+b);return w?(w.path=N,i(w)):N}e.join=a,e.isAbsolute=function(E){return E.charAt(0)==="/"||!!E.match(n)};function l(E,b){E===""&&(E="."),E=E.replace(/\/$/,"");for(var A=0;b.indexOf(E+"/")!==0;){var w=E.lastIndexOf("/");if(w<0||(E=E.slice(0,w),E.match(/^([^\/]+:\/)?\/*$/)))return b;++A}return Array(A+1).join("../")+b.substr(E.length+1)}e.relative=l;var f=function(){var E=Object.create(null);return!("__proto__"in E)}();function u(E){return E}function h(E){return c(E)?"$"+E:E}e.toSetString=f?u:h;function d(E){return c(E)?E.slice(1):E}e.fromSetString=f?u:d;function c(E){if(!E)return!1;var b=E.length;if(b<9||E.charCodeAt(b-1)!==95||E.charCodeAt(b-2)!==95||E.charCodeAt(b-3)!==111||E.charCodeAt(b-4)!==116||E.charCodeAt(b-5)!==111||E.charCodeAt(b-6)!==114||E.charCodeAt(b-7)!==112||E.charCodeAt(b-8)!==95||E.charCodeAt(b-9)!==95)return!1;for(var A=b-10;A>=0;A--)if(E.charCodeAt(A)!==36)return!1;return!0}function p(E,b,A){var w=E.source-b.source;return w!==0||(w=E.originalLine-b.originalLine,w!==0)||(w=E.originalColumn-b.originalColumn,w!==0||A)||(w=E.generatedColumn-b.generatedColumn,w!==0)||(w=E.generatedLine-b.generatedLine,w!==0)?w:E.name-b.name}e.compareByOriginalPositions=p;function m(E,b,A){var w=E.generatedLine-b.generatedLine;return w!==0||(w=E.generatedColumn-b.generatedColumn,w!==0||A)||(w=E.source-b.source,w!==0)||(w=E.originalLine-b.originalLine,w!==0)||(w=E.originalColumn-b.originalColumn,w!==0)?w:E.name-b.name}e.compareByGeneratedPositionsDeflated=m;function _(E,b){return E===b?0:E>b?1:-1}function T(E,b){var A=E.generatedLine-b.generatedLine;return A!==0||(A=E.generatedColumn-b.generatedColumn,A!==0)||(A=_(E.source,b.source),A!==0)||(A=E.originalLine-b.originalLine,A!==0)||(A=E.originalColumn-b.originalColumn,A!==0)?A:_(E.name,b.name)}e.compareByGeneratedPositionsInflated=T}(ss)),ss}var us={},Ul;function DE(){return Ul||(Ul=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,i,s,a){var l=Math.floor((r-n)/2)+n,f=s(o,i[l],!0);return f===0?l:f>0?r-l>1?t(l,r,o,i,s,a):a==e.LEAST_UPPER_BOUND?r<i.length?r:-1:l:l-n>1?t(n,l,o,i,s,a):a==e.LEAST_UPPER_BOUND?l:n<0?-1:n}e.search=function(r,o,i,s){if(o.length===0)return-1;var a=t(-1,o.length,r,o,i,s||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&i(o[a],o[a-1],!0)===0;)--a;return a}}(us)),us}var cs={},Dl;function $E(){if(Dl)return cs;Dl=1;var e=fh(),t=Object.prototype.hasOwnProperty;function n(){this._array=[],this._set=Object.create(null)}return n.fromArray=function(o,i){for(var s=new n,a=0,l=o.length;a<l;a++)s.add(o[a],i);return s},n.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(o,i){var s=e.toSetString(o),a=t.call(this._set,s),l=this._array.length;(!a||i)&&this._array.push(o),a||(this._set[s]=l)},n.prototype.has=function(o){var i=e.toSetString(o);return t.call(this._set,i)},n.prototype.indexOf=function(o){var i=e.toSetString(o);if(t.call(this._set,i))return this._set[i];throw new Error('"'+o+'" is not in the set.')},n.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},n.prototype.toArray=function(){return this._array.slice()},cs.ArraySet=n,cs}var go={},yo={},$l;function jE(){if($l)return yo;$l=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return yo.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},yo.decode=function(t){var n=65,r=90,o=97,i=122,s=48,a=57,l=43,f=47,u=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=i?t-o+u:s<=t&&t<=a?t-s+h:t==l?62:t==f?63:-1},yo}var jl;function HE(){if(jl)return go;jl=1;var e=jE(),t=5,n=1<<t,r=n-1,o=n;function i(a){return a<0?(-a<<1)+1:(a<<1)+0}function s(a){var l=(a&1)===1,f=a>>1;return l?-f:f}return go.encode=function(l){var f="",u,h=i(l);do u=h&r,h>>>=t,h>0&&(u|=o),f+=e.encode(u);while(h>0);return f},go.decode=function(l,f,u){var h=l.length,d=0,c=0,p,m;do{if(f>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(l.charCodeAt(f++)),m===-1)throw new Error("Invalid base64 digit: "+l.charAt(f-1));p=!!(m&o),m&=r,d=d+(m<<c),c+=t}while(p);u.value=s(d),u.rest=f},go}var ls={},Hl;function qE(){if(Hl)return ls;Hl=1;function e(r,o,i){var s=r[o];r[o]=r[i],r[i]=s}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,i,s){if(i<s){var a=t(i,s),l=i-1;e(r,a,s);for(var f=r[s],u=i;u<s;u++)o(r[u],f)<=0&&(l+=1,e(r,l,u));e(r,l+1,u);var h=l+1;n(r,o,i,h-1),n(r,o,h+1,s)}}return ls.quickSort=function(r,o){n(r,o,0,r.length-1)},ls}var ql;function GE(){if(ql)return Ei;ql=1;var e=fh(),t=DE(),n=$E().ArraySet,r=HE(),o=qE().quickSort;function i(f){var u=f;return typeof f=="string"&&(u=JSON.parse(f.replace(/^\)\]\}'/,""))),u.sections!=null?new l(u):new s(u)}i.fromSourceMap=function(f){return s.fromSourceMap(f)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,h){var d=u.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(u,h){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,h,d){var c=h||null,p=d||i.GENERATED_ORDER,m;switch(p){case i.GENERATED_ORDER:m=this._generatedMappings;break;case i.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;m.map(function(T){var E=T.source===null?null:this._sources.at(T.source);return E!=null&&_!=null&&(E=e.join(_,E)),{source:E,generatedLine:T.generatedLine,generatedColumn:T.generatedColumn,originalLine:T.originalLine,originalColumn:T.originalColumn,name:T.name===null?null:this._names.at(T.name)}},this).forEach(u,c)},i.prototype.allGeneratedPositionsFor=function(u){var h=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:h,originalColumn:e.getArg(u,"column",0)};if(this.sourceRoot!=null&&(d.source=e.relative(this.sourceRoot,d.source)),!this._sources.has(d.source))return[];d.source=this._sources.indexOf(d.source);var c=[],p=this._findMapping(d,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===_;)c.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 T=m.originalColumn;m&&m.originalLine===h&&m.originalColumn==T;)c.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return c},Ei.SourceMapConsumer=i;function s(f){var u=f;typeof f=="string"&&(u=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(u,"version"),d=e.getArg(u,"sources"),c=e.getArg(u,"names",[]),p=e.getArg(u,"sourceRoot",null),m=e.getArg(u,"sourcesContent",null),_=e.getArg(u,"mappings"),T=e.getArg(u,"file",null);if(h!=this._version)throw new Error("Unsupported version: "+h);d=d.map(String).map(e.normalize).map(function(E){return p&&e.isAbsolute(p)&&e.isAbsolute(E)?e.relative(p,E):E}),this._names=n.fromArray(c.map(String),!0),this._sources=n.fromArray(d,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=_,this.file=T}s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.fromSourceMap=function(u){var h=Object.create(s.prototype),d=h._names=n.fromArray(u._names.toArray(),!0),c=h._sources=n.fromArray(u._sources.toArray(),!0);h.sourceRoot=u._sourceRoot,h.sourcesContent=u._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=u._file;for(var p=u._mappings.toArray().slice(),m=h.__generatedMappings=[],_=h.__originalMappings=[],T=0,E=p.length;T<E;T++){var b=p[T],A=new a;A.generatedLine=b.generatedLine,A.generatedColumn=b.generatedColumn,b.source&&(A.source=c.indexOf(b.source),A.originalLine=b.originalLine,A.originalColumn=b.originalColumn,b.name&&(A.name=d.indexOf(b.name)),_.push(A)),m.push(A)}return o(h.__originalMappings,e.compareByOriginalPositions),h},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(f){return this.sourceRoot!=null?e.join(this.sourceRoot,f):f},this)}});function a(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(u,h){for(var d=1,c=0,p=0,m=0,_=0,T=0,E=u.length,b=0,A={},w={},N=[],F=[],M,W,q,V,j;b<E;)if(u.charAt(b)===";")d++,b++,c=0;else if(u.charAt(b)===",")b++;else{for(M=new a,M.generatedLine=d,V=b;V<E&&!this._charIsMappingSeparator(u,V);V++);if(W=u.slice(b,V),q=A[W],q)b+=W.length;else{for(q=[];b<V;)r.decode(u,b,w),j=w.value,b=w.rest,q.push(j);if(q.length===2)throw new Error("Found a source, but no line and column");if(q.length===3)throw new Error("Found a source and line, but no column");A[W]=q}M.generatedColumn=c+q[0],c=M.generatedColumn,q.length>1&&(M.source=_+q[1],_+=q[1],M.originalLine=p+q[2],p=M.originalLine,M.originalLine+=1,M.originalColumn=m+q[3],m=M.originalColumn,q.length>4&&(M.name=T+q[4],T+=q[4])),F.push(M),typeof M.originalLine=="number"&&N.push(M)}o(F,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=F,o(N,e.compareByOriginalPositions),this.__originalMappings=N},s.prototype._findMapping=function(u,h,d,c,p,m){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[c]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[c]);return t.search(u,h,p,m)},s.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var h=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var c=this._generatedMappings[d];if(c.generatedLine===h.generatedLine){var p=e.getArg(c,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(c,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(c,"originalLine",null),column:e.getArg(c,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},s.prototype.sourceContentFor=function(u,h){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 d;if(this.sourceRoot!=null&&(d=e.urlParse(this.sourceRoot))){var c=u.replace(/^file:\/\//,"");if(d.scheme=="file"&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!d.path||d.path=="/")&&this._sources.has("/"+u))return this.sourcesContent[this._sources.indexOf("/"+u)]}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){var h=e.getArg(u,"source");if(this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h)),!this._sources.has(h))return{line:null,column:null,lastColumn:null};h=this._sources.indexOf(h);var d={source:h,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},c=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(c>=0){var p=this._originalMappings[c];if(p.source===d.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}},Ei.BasicSourceMapConsumer=s;function l(f){var u=f;typeof f=="string"&&(u=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(u,"version"),d=e.getArg(u,"sections");if(h!=this._version)throw new Error("Unsupported version: "+h);this._sources=new n,this._names=new n;var c={line:-1,column:0};this._sections=d.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"),T=e.getArg(m,"column");if(_<c.line||_===c.line&&T<c.column)throw new Error("Section offsets must be ordered and non-overlapping.");return c=m,{generatedOffset:{generatedLine:_+1,generatedColumn:T+1},consumer:new i(e.getArg(p,"map"))}})}return l.prototype=Object.create(i.prototype),l.prototype.constructor=i,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var f=[],u=0;u<this._sections.length;u++)for(var h=0;h<this._sections[u].consumer.sources.length;h++)f.push(this._sections[u].consumer.sources[h]);return f}}),l.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(h,this._sections,function(p,m){var _=p.generatedLine-m.generatedOffset.generatedLine;return _||p.generatedColumn-m.generatedOffset.generatedColumn}),c=this._sections[d];return c?c.consumer.originalPositionFor({line:h.generatedLine-(c.generatedOffset.generatedLine-1),column:h.generatedColumn-(c.generatedOffset.generatedLine===h.generatedLine?c.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(u,h){for(var d=0;d<this._sections.length;d++){var c=this._sections[d],p=c.consumer.sourceContentFor(u,!0);if(p)return p}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(u){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer.sources.indexOf(e.getArg(u,"source"))!==-1){var c=d.consumer.generatedPositionFor(u);if(c){var p={line:c.line+(d.generatedOffset.generatedLine-1),column:c.column+(d.generatedOffset.generatedLine===c.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},l.prototype._parseMappings=function(u,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var c=this._sections[d],p=c.consumer._generatedMappings,m=0;m<p.length;m++){var _=p[m],T=c.consumer._sources.at(_.source);c.consumer.sourceRoot!==null&&(T=e.join(c.consumer.sourceRoot,T)),this._sources.add(T),T=this._sources.indexOf(T);var E=c.consumer._names.at(_.name);this._names.add(E),E=this._names.indexOf(E);var b={source:T,generatedLine:_.generatedLine+(c.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(c.generatedOffset.generatedLine===_.generatedLine?c.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:E};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Ei.IndexedSourceMapConsumer=l,Ei}var Gl;function WE(){return Gl||(Gl=1,function(e,t){(function(n,r){e.exports=r(GE(),Iu())})(ae,function(n,r){function o(d){return new Promise(function(c,p){var m=new XMLHttpRequest;m.open("get",d),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||d.substr(0,7)==="file://"&&m.responseText?c(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+d)))},m.send()})}function i(d){if(typeof window<"u"&&window.atob)return window.atob(d);throw new Error("You must supply a polyfill for window.atob in this environment")}function s(d){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(d);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function a(d,c){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=d.split(`
43
+ `),_="",T=Math.min(c,20),E=0;E<T;++E){var b=m[c-E-1],A=b.indexOf("//");if(A>=0&&(b=b.substr(0,A)),b){_=b+_;for(var w=p.length,N=0;N<w;N++){var F=p[N].exec(_);if(F&&F[1])return F[1]}}}}function l(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function f(d){if(typeof d!="object")throw new TypeError("Given StackFrame is not an object");if(typeof d.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof d.lineNumber!="number"||d.lineNumber%1!==0||d.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof d.columnNumber!="number"||d.columnNumber%1!==0||d.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function u(d){for(var c=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=c.exec(d);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function h(d,c,p){return new Promise(function(m,_){var T=c.originalPositionFor({line:d.lineNumber,column:d.columnNumber});if(T.source){var E=c.sourceContentFor(T.source);E&&(p[T.source]=E),m(new r({functionName:T.name||d.functionName,args:d.args,fileName:T.source,lineNumber:T.line,columnNumber:T.column}))}else _(new Error("Could not get original source for given stackframe and source map"))})}return function d(c){if(!(this instanceof d))return new d(c);c=c||{},this.sourceCache=c.sourceCache||{},this.sourceMapConsumerCache=c.sourceMapConsumerCache||{},this.ajax=c.ajax||o,this._atob=c.atob||i,this._get=function(m){return new Promise((function(_,T){var E=m.substr(0,5)==="data:";if(this.sourceCache[m])_(this.sourceCache[m]);else if(c.offline&&!E)T(new Error("Cannot make network requests in offline mode"));else if(E){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,A=m.match(b);if(A){var w=A[0].length,N=m.substr(w),F=this._atob(N);this.sourceCache[m]=F,_(F)}else T(new Error("The encoding of the inline sourcemap is not supported"))}else{var M=this.ajax(m,{method:"get"});this.sourceCache[m]=M,M.then(_,T)}}).bind(this))},this._getSourceMapConsumer=function(m,_){return new Promise((function(T){if(this.sourceMapConsumerCache[m])T(this.sourceMapConsumerCache[m]);else{var E=new Promise((function(b,A){return this._get(m).then(function(w){typeof w=="string"&&(w=s(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=_),b(new n.SourceMapConsumer(w))}).catch(A)}).bind(this));this.sourceMapConsumerCache[m]=E,T(E)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(_,T){this.getMappedLocation(m).then((function(E){function b(){_(E)}this.findFunctionName(E).then(_,b).catch(b)}).bind(this),T)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(_,T){f(m),this._get(m.fileName).then(function(b){var A=m.lineNumber,w=m.columnNumber,N=a(b,A);_(N?new r({functionName:N,args:m.args,fileName:m.fileName,lineNumber:A,columnNumber:w}):m)},T).catch(T)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(_,T){l(),f(m);var E=this.sourceCache,b=m.fileName;this._get(b).then((function(A){var w=u(A),N=w.substr(0,5)==="data:",F=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!N&&!/^https?:\/\/|^\/\//i.test(w)&&(w=F+w),this._getSourceMapConsumer(w,F).then(function(M){return h(m,M,E).then(_).catch(function(){_(m)})})}).bind(this),T).catch(T)}).bind(this))}}})}(as)),as.exports}var Wl;function VE(){return Wl||(Wl=1,function(e,t){(function(n,r){e.exports=r(FE(),UE(),WE())})(ae,function(r,o,i){var s={filter:function(h){return(h.functionName||"").indexOf("StackTrace$$")===-1&&(h.functionName||"").indexOf("ErrorStackParser$$")===-1&&(h.functionName||"").indexOf("StackTraceGPS$$")===-1&&(h.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},a=function(){try{throw new Error}catch(d){return d}};function l(h,d){var c={};return[h,d].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(c[m]=p[m]);return c}),c}function f(h){return h.stack||h["opera#sourceloc"]}function u(h,d){return typeof d=="function"?h.filter(d):h}return{get:function(d){var c=a();return f(c)?this.fromError(c,d):this.generateArtificially(d)},getSync:function(d){d=l(s,d);var c=a(),p=f(c)?r.parse(c):o.backtrace(d);return u(p,d.filter)},fromError:function(d,c){c=l(s,c);var p=new i(c);return new Promise((function(m){var _=u(r.parse(d),c.filter);m(Promise.all(_.map(function(T){return new Promise(function(E){function b(){E(T)}p.pinpoint(T).then(E,b).catch(b)})})))}).bind(this))},generateArtificially:function(d){d=l(s,d);var c=o.backtrace(d);return typeof d.filter=="function"&&(c=c.filter(d.filter)),Promise.resolve(c)},instrument:function(d,c,p,m){if(typeof d!="function")throw new Error("Cannot instrument non-function object");if(typeof d.__stacktraceOriginalFn=="function")return d;var _=(function(){try{return this.get().then(c,p).catch(p),d.apply(m||this,arguments)}catch(E){throw f(E)&&this.fromError(E).then(c,p).catch(p),E}}).bind(this);return _.__stacktraceOriginalFn=d,_},deinstrument:function(d){if(typeof d!="function")throw new Error("Cannot de-instrument non-function object");return typeof d.__stacktraceOriginalFn=="function"?d.__stacktraceOriginalFn:d},report:function(d,c,p,m){return new Promise(function(_,T){var E=new XMLHttpRequest;if(E.onerror=T,E.onreadystatechange=function(){E.readyState===4&&(E.status>=200&&E.status<400?_(E.responseText):T(new Error("POST to "+c+" failed with status: "+E.status)))},E.open("post",c),E.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&E.setRequestHeader(A,b[A])}var w={stack:d};p!=null&&(w.message=p),E.send(JSON.stringify(w))})}}})}(rs)),rs.exports}var fs,Vl;function zE(){if(Vl)return fs;Vl=1;var e=VE(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",n=function(){};n.prototype.start=function(s){if(!s.key&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!s.projectId&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=s.customReportingFunction,this.apiKey=s.key,this.projectId=s.projectId,this.targetUrl=s.targetUrl,this.context=s.context||{},this.serviceContext={service:s.service||"web"},s.version&&(this.serviceContext.version=s.version),this.reportUncaughtExceptions=s.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=s.reportUnhandledPromiseRejections!==!1,this.disabled=!!s.disabled,r(this)};function r(s){var a=function(){};if(s.reportUncaughtExceptions){var l=window.onerror||a;window.onerror=function(u,h,d,c,p){return p&&s.report(p).catch(a),l(u,h,d,c,p),!0}}if(s.reportUnhandledPromiseRejections){var f=window.onunhandledrejection||a;window.onunhandledrejection=function(u){return u&&s.report(u.reason).catch(a),f(u.reason),!0}}}n.prototype.report=function(s,a){if(this.disabled)return Promise.resolve(null);if(!s)return Promise.reject(new Error("no error to report"));a=a||{};var l={};l.serviceContext=this.serviceContext,l.context=this.context,l.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var f=0;if(typeof s=="string"||s instanceof String){try{throw new Error(s)}catch(d){s=d}f=a.skipLocalFrames||1}var u=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,h=this.customReportingFunction;return o(s,f).then(function(d){return l.message=d,h?h(l):i(u,l)})};function o(s,a){return e.fromError(s).then(function(l){for(var f=[s.toString()],u=a;u<l.length;u++)f.push([" at ",l[u].getFunctionName()||"<anonymous>"," (",l[u].getFileName(),":",l[u].getLineNumber(),":",l[u].getColumnNumber(),")"].join(""));return f.join(`
44
44
  `)},function(l){return["Error extracting stack trace: ",l,`
45
45
  `,s.toString(),`
46
- `," (",s.file,":",s.line,":",s.column,")"].join("")})}function o(s,i){var l=new XMLHttpRequest;return l.open("POST",s,!0),l.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(u,c){l.onreadystatechange=function(){if(l.readyState===4){var d=l.status;if(d>=200&&d<300)u({message:i.message});else if(d===429)c({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var p=d?d+" http response":"network error";c(new Error(p+" on stackdriver report"))}}},l.send(JSON.stringify(i))})}return r.prototype.setUser=function(s){this.context.user=s},nd=r,nd}var wv;function gA(){return wv||(wv=1,function(e,t){(function(r,n){e.exports=n(vA())})(be,function(r){return function(){var n={542:function(i){i.exports=r}},a={};function o(i){var l=a[i];if(l!==void 0)return l.exports;var u=a[i]={exports:{}};return n[i](u,u.exports,o),u.exports}o.n=function(i){var l=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(l,{a:l}),l},o.d=function(i,l){for(var u in l)o.o(l,u)&&!o.o(i,u)&&Object.defineProperty(i,u,{enumerable:!0,get:l[u]})},o.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var s={};return function(){o.r(s),o.d(s,{reportError:function(){return p},setContext:function(){return d}});var i=o(542),l=o.n(i);const{GCP:{PROJECT_ID:u}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let c={key:null,environment:null,projectId:u};const d=({apiKey:f,environment:h,projectId:m,serviceName:w})=>{if(!f)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(c.key=f,!h)throw new Error("Cannot set context: Environment not defined");c.environment=h,c.projectId=m||u,w&&(c.service=`${w}:${c.environment}`)},p=async(f,h)=>{try{const m=new(l());m.start(c),typeof h=="string"&&m.setUser(h),await m.report(f)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),s}()})}(zf)),zf.exports}var ad={exports:{}},Wi={},Tv;function bA(){if(Tv)return Wi;Tv=1,Object.defineProperty(Wi,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return Wi.default=e,Wi}var od,Sv;function EA(){if(Sv)return od;Sv=1;var e=bA(),t=r(e);function r(a){return a&&a.__esModule?a:{default:a}}var n={tags:function(o){var s=o.id,i=o.events,l=o.dataLayer,u=o.dataLayerName,c=o.preview,d=o.auth,p="&gtm_auth="+d,f="&gtm_preview="+c;s||(0,t.default)("GTM Id is required");var h=`
47
- <iframe src="https://www.googletagmanager.com/ns.html?id=`+s+p+f+`&gtm_cookies_win=x"
46
+ `," (",s.file,":",s.line,":",s.column,")"].join("")})}function i(s,a){var l=new XMLHttpRequest;return l.open("POST",s,!0),l.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(f,u){l.onreadystatechange=function(){if(l.readyState===4){var h=l.status;if(h>=200&&h<300)f({message:a.message});else if(h===429)u({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var d=h?h+" http response":"network error";u(new Error(d+" on stackdriver report"))}}},l.send(JSON.stringify(a))})}return n.prototype.setUser=function(s){this.context.user=s},fs=n,fs}var zl;function YE(){return zl||(zl=1,function(e,t){(function(n,r){e.exports=r(zE())})(ae,function(n){return function(){var r={542:function(a){a.exports=n}},o={};function i(a){var l=o[a];if(l!==void 0)return l.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,{a:l}),l},i.d=function(a,l){for(var f in l)i.o(l,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:l[f]})},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{reportError:function(){return d},setContext:function(){return h}});var a=i(542),l=i.n(a);const{GCP:{PROJECT_ID:f}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let u={key:null,environment:null,projectId:f};const h=({apiKey:c,environment:p,projectId:m,serviceName:_})=>{if(!c)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(u.key=c,!p)throw new Error("Cannot set context: Environment not defined");u.environment=p,u.projectId=m||f,_&&(u.service=`${_}:${u.environment}`)},d=async(c,p)=>{try{const m=new(l());m.start(u),typeof p=="string"&&m.setUser(p),await m.report(c)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),s}()})}(ts)),ts.exports}var ds={exports:{}},vo={},Yl;function KE(){if(Yl)return vo;Yl=1,Object.defineProperty(vo,"__esModule",{value:!0});var e=function(n){console.warn("[react-gtm]",n)};return vo.default=e,vo}var hs,Kl;function QE(){if(Kl)return hs;Kl=1;var e=KE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={tags:function(i){var s=i.id,a=i.events,l=i.dataLayer,f=i.dataLayerName,u=i.preview,h=i.auth,d="&gtm_auth="+h,c="&gtm_preview="+u;s||(0,t.default)("GTM Id is required");var p=`
47
+ <iframe src="https://www.googletagmanager.com/ns.html?id=`+s+d+c+`&gtm_cookies_win=x"
48
48
  height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
49
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(i).slice(1,-1)+`});
50
+ w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(a).slice(1,-1)+`});
51
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+'`+p+f+`&gtm_cookies_win=x';
52
+ j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+d+c+`&gtm_cookies_win=x';
53
53
  f.parentNode.insertBefore(j,f);
54
- })(window,document,'script','`+u+"','"+s+"');",w=this.dataLayer(l,u);return{iframe:h,script:m,dataLayerVar:w}},dataLayer:function(o,s){return`
54
+ })(window,document,'script','`+f+"','"+s+"');",_=this.dataLayer(l,f);return{iframe:p,script:m,dataLayerVar:_}},dataLayer:function(i,s){return`
55
55
  window.`+s+" = window."+s+` || [];
56
- window.`+s+".push("+JSON.stringify(o)+")"}};return od=n,od}var id,Rv;function _A(){if(Rv)return id;Rv=1;var e=EA(),t=r(e);function r(a){return a&&a.__esModule?a:{default:a}}var n={dataScript:function(o){var s=document.createElement("script");return s.innerHTML=o,s},gtm:function(o){var s=t.default.tags(o),i=function(){var d=document.createElement("noscript");return d.innerHTML=s.iframe,d},l=function(){var d=document.createElement("script");return d.innerHTML=s.script,d},u=this.dataScript(s.dataLayerVar);return{noScript:i,script:l,dataScript:u}},initialize:function(o){var s=o.gtmId,i=o.events,l=i===void 0?{}:i,u=o.dataLayer,c=o.dataLayerName,d=c===void 0?"dataLayer":c,p=o.auth,f=p===void 0?"":p,h=o.preview,m=h===void 0?"":h,w=this.gtm({id:s,events:l,dataLayer:u||void 0,dataLayerName:d,auth:f,preview:m});u&&document.head.appendChild(w.dataScript),document.head.insertBefore(w.script(),document.head.childNodes[0]),document.body.insertBefore(w.noScript(),document.body.childNodes[0])},dataLayer:function(o){var s=o.dataLayer,i=o.dataLayerName,l=i===void 0?"dataLayer":i;if(window[l])return window[l].push(s);var u=t.default.dataLayer(s,l),c=this.dataScript(u);document.head.insertBefore(c,document.head.childNodes[0])}};return id=n,id}var sd,Cv;function wA(){if(Cv)return sd;Cv=1;var e=_A(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return sd=t.default,sd}var xv;function TA(){return xv||(xv=1,function(e,t){(function(r,n){e.exports=n(wA())})(be,function(r){return function(){var n={273:function(i){i.exports=r}},a={};function o(i){var l=a[i];if(l!==void 0)return l.exports;var u=a[i]={exports:{}};return n[i](u,u.exports,o),u.exports}o.n=function(i){var l=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(l,{a:l}),l},o.d=function(i,l){for(var u in l)o.o(l,u)&&!o.o(i,u)&&Object.defineProperty(i,u,{enumerable:!0,get:l[u]})},o.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var s={};return function(){o.r(s),o.d(s,{setContext:function(){return c},setupGTM:function(){return p}});var i=o(273),l=o.n(i);let u=null;const c=({configs:f,environment:h})=>{if(!h)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[h])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:f,environment:h})}`);u=f[h]},d=()=>u,p=()=>{const f=d();l().initialize({gtmId:f.id})}}(),s}()})}(ad)),ad.exports}var N_=202,M_=502,$_=400,k_=409,L_=100,B_=201,D_=417,SA=424,q_=403,F_=504,j_=410,U_=505,H_=418,G_=419,W_=507,V_=500,z_=411,Y_=423,K_=420,X_=405,Q_=301,J_=302,Z_=207,e0=300,t0=511,r0=204,n0=203,a0=406,o0=404,i0=501,s0=304,l0=200,u0=206,c0=402,f0=308,d0=412,p0=428,h0=102,m0=407,y0=431,v0=408,g0=413,b0=414,E0=416,_0=205,w0=303,T0=503,S0=101,R0=307,C0=429,x0=401,O0=422,P0=415,A0=305;const RA={ACCEPTED:N_,BAD_GATEWAY:M_,BAD_REQUEST:$_,CONFLICT:k_,CONTINUE:L_,CREATED:B_,EXPECTATION_FAILED:D_,FORBIDDEN:q_,GATEWAY_TIMEOUT:F_,GONE:j_,HTTP_VERSION_NOT_SUPPORTED:U_,IM_A_TEAPOT:H_,INSUFFICIENT_SPACE_ON_RESOURCE:G_,INSUFFICIENT_STORAGE:W_,INTERNAL_SERVER_ERROR:V_,LENGTH_REQUIRED:z_,LOCKED:Y_,METHOD_FAILURE:K_,METHOD_NOT_ALLOWED:X_,MOVED_PERMANENTLY:Q_,MOVED_TEMPORARILY:J_,MULTI_STATUS:Z_,MULTIPLE_CHOICES:e0,NETWORK_AUTHENTICATION_REQUIRED:t0,NO_CONTENT:r0,NON_AUTHORITATIVE_INFORMATION:n0,NOT_ACCEPTABLE:a0,NOT_FOUND:o0,NOT_IMPLEMENTED:i0,NOT_MODIFIED:s0,OK:l0,PARTIAL_CONTENT:u0,PAYMENT_REQUIRED:c0,PERMANENT_REDIRECT:f0,PRECONDITION_FAILED:d0,PRECONDITION_REQUIRED:p0,PROCESSING:h0,PROXY_AUTHENTICATION_REQUIRED:m0,REQUEST_HEADER_FIELDS_TOO_LARGE:y0,REQUEST_TIMEOUT:v0,REQUEST_TOO_LONG:g0,REQUEST_URI_TOO_LONG:b0,REQUESTED_RANGE_NOT_SATISFIABLE:E0,RESET_CONTENT:_0,SEE_OTHER:w0,SERVICE_UNAVAILABLE:T0,SWITCHING_PROTOCOLS:S0,TEMPORARY_REDIRECT:R0,TOO_MANY_REQUESTS:C0,UNAUTHORIZED:x0,UNPROCESSABLE_ENTITY:O0,UNSUPPORTED_MEDIA_TYPE:P0,USE_PROXY:A0};var CA={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"},xA={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 I0(e){var t=CA[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function N0(e){var t=xA[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var M0=I0,wp;(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"})(wp||(wp={}));var Tp;(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"})(Tp||(Tp={}));var Ts=globalThis&&globalThis.__assign||function(){return Ts=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ts.apply(this,arguments)};const OA=Ts(Ts({},RA),{getStatusCode:N0,getStatusText:M0}),PA=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:N_,BAD_GATEWAY:M_,BAD_REQUEST:$_,CONFLICT:k_,CONTINUE:L_,CREATED:B_,EXPECTATION_FAILED:D_,FAILED_DEPENDENCY:SA,FORBIDDEN:q_,GATEWAY_TIMEOUT:F_,GONE:j_,HTTP_VERSION_NOT_SUPPORTED:U_,IM_A_TEAPOT:H_,INSUFFICIENT_SPACE_ON_RESOURCE:G_,INSUFFICIENT_STORAGE:W_,INTERNAL_SERVER_ERROR:V_,LENGTH_REQUIRED:z_,LOCKED:Y_,METHOD_FAILURE:K_,METHOD_NOT_ALLOWED:X_,MOVED_PERMANENTLY:Q_,MOVED_TEMPORARILY:J_,MULTIPLE_CHOICES:e0,MULTI_STATUS:Z_,NETWORK_AUTHENTICATION_REQUIRED:t0,NON_AUTHORITATIVE_INFORMATION:n0,NOT_ACCEPTABLE:a0,NOT_FOUND:o0,NOT_IMPLEMENTED:i0,NOT_MODIFIED:s0,NO_CONTENT:r0,OK:l0,PARTIAL_CONTENT:u0,PAYMENT_REQUIRED:c0,PERMANENT_REDIRECT:f0,PRECONDITION_FAILED:d0,PRECONDITION_REQUIRED:p0,PROCESSING:h0,PROXY_AUTHENTICATION_REQUIRED:m0,REQUESTED_RANGE_NOT_SATISFIABLE:E0,REQUEST_HEADER_FIELDS_TOO_LARGE:y0,REQUEST_TIMEOUT:v0,REQUEST_TOO_LONG:g0,REQUEST_URI_TOO_LONG:b0,RESET_CONTENT:_0,get ReasonPhrases(){return Tp},SEE_OTHER:w0,SERVICE_UNAVAILABLE:T0,SWITCHING_PROTOCOLS:S0,get StatusCodes(){return wp},TEMPORARY_REDIRECT:R0,TOO_MANY_REQUESTS:C0,UNAUTHORIZED:x0,UNPROCESSABLE_ENTITY:O0,UNSUPPORTED_MEDIA_TYPE:P0,USE_PROXY:A0,default:OA,getReasonPhrase:I0,getStatusCode:N0,getStatusText:M0},Symbol.toStringTag,{value:"Module"})),AA=mi(PA);var Vi={exports:{}},Io={},ld={},No={},Mo={},oa={},$o={},ud={},ia={},Jr={},Ov;function qh(){if(Ov)return Jr;Ov=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.ERROR_PACKET=Jr.PACKET_TYPES_REVERSE=Jr.PACKET_TYPES=void 0;const e=Object.create(null);Jr.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);Jr.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return Jr.ERROR_PACKET=r,Jr}var Pv;function IA(){if(Pv)return ia;Pv=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.encodePacket=ia.encodePacketToBinary=void 0;const e=qh(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",r=typeof ArrayBuffer=="function",n=u=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(u):u&&u.buffer instanceof ArrayBuffer,a=({type:u,data:c},d,p)=>t&&c instanceof Blob?d?p(c):o(c,p):r&&(c instanceof ArrayBuffer||n(c))?d?p(c):o(new Blob([c]),p):p(e.PACKET_TYPES[u]+(c||""));ia.encodePacket=a;const o=(u,c)=>{const d=new FileReader;return d.onload=function(){const p=d.result.split(",")[1];c("b"+(p||""))},d.readAsDataURL(u)};function s(u){return u instanceof Uint8Array?u:u instanceof ArrayBuffer?new Uint8Array(u):new Uint8Array(u.buffer,u.byteOffset,u.byteLength)}let i;function l(u,c){if(t&&u.data instanceof Blob)return u.data.arrayBuffer().then(s).then(c);if(r&&(u.data instanceof ArrayBuffer||n(u.data)))return c(s(u.data));a(u,!1,d=>{i||(i=new TextEncoder),c(i.encode(d))})}return ia.encodePacketToBinary=l,ia}var ko={},sa={},Av;function NA(){if(Av)return sa;Av=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.decode=sa.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a<e.length;a++)t[e.charCodeAt(a)]=a;const r=a=>{let o=new Uint8Array(a),s,i=o.length,l="";for(s=0;s<i;s+=3)l+=e[o[s]>>2],l+=e[(o[s]&3)<<4|o[s+1]>>4],l+=e[(o[s+1]&15)<<2|o[s+2]>>6],l+=e[o[s+2]&63];return i%3===2?l=l.substring(0,l.length-1)+"=":i%3===1&&(l=l.substring(0,l.length-2)+"=="),l};sa.encode=r;const n=a=>{let o=a.length*.75,s=a.length,i,l=0,u,c,d,p;a[a.length-1]==="="&&(o--,a[a.length-2]==="="&&o--);const f=new ArrayBuffer(o),h=new Uint8Array(f);for(i=0;i<s;i+=4)u=t[a.charCodeAt(i)],c=t[a.charCodeAt(i+1)],d=t[a.charCodeAt(i+2)],p=t[a.charCodeAt(i+3)],h[l++]=u<<2|c>>4,h[l++]=(c&15)<<4|d>>2,h[l++]=(d&3)<<6|p&63;return f};return sa.decode=n,sa}var Iv;function MA(){if(Iv)return ko;Iv=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.decodePacket=void 0;const e=qh(),t=NA(),r=typeof ArrayBuffer=="function",n=(s,i)=>{if(typeof s!="string")return{type:"message",data:o(s,i)};const l=s.charAt(0);return l==="b"?{type:"message",data:a(s.substring(1),i)}:e.PACKET_TYPES_REVERSE[l]?s.length>1?{type:e.PACKET_TYPES_REVERSE[l],data:s.substring(1)}:{type:e.PACKET_TYPES_REVERSE[l]}:e.ERROR_PACKET};ko.decodePacket=n;const a=(s,i)=>{if(r){const l=(0,t.decode)(s);return o(l,i)}else return{base64:!0,data:s}},o=(s,i)=>{switch(i){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};return ko}var Nv;function vi(){return Nv||(Nv=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=IA();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=MA();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=qh(),a=String.fromCharCode(30),o=(p,f)=>{const h=p.length,m=new Array(h);let w=0;p.forEach((E,y)=>{(0,t.encodePacket)(E,!1,T=>{m[y]=T,++w===h&&f(m.join(a))})})};e.encodePayload=o;const s=(p,f)=>{const h=p.split(a),m=[];for(let w=0;w<h.length;w++){const E=(0,r.decodePacket)(h[w],f);if(m.push(E),E.type==="error")break}return m};e.decodePayload=s;function i(){return new TransformStream({transform(p,f){(0,t.encodePacketToBinary)(p,h=>{const m=h.length;let w;if(m<126)w=new Uint8Array(1),new DataView(w.buffer).setUint8(0,m);else if(m<65536){w=new Uint8Array(3);const E=new DataView(w.buffer);E.setUint8(0,126),E.setUint16(1,m)}else{w=new Uint8Array(9);const E=new DataView(w.buffer);E.setUint8(0,127),E.setBigUint64(1,BigInt(m))}p.data&&typeof p.data!="string"&&(w[0]|=128),f.enqueue(w),f.enqueue(h)})}})}e.createPacketEncoderStream=i;let l;function u(p){return p.reduce((f,h)=>f+h.length,0)}function c(p,f){if(p[0].length===f)return p.shift();const h=new Uint8Array(f);let m=0;for(let w=0;w<f;w++)h[w]=p[0][m++],m===p[0].length&&(p.shift(),m=0);return p.length&&m<p[0].length&&(p[0]=p[0].slice(m)),h}function d(p,f){l||(l=new TextDecoder);const h=[];let m=0,w=-1,E=!1;return new TransformStream({transform(y,T){for(h.push(y);;){if(m===0){if(u(h)<1)break;const R=c(h,1);E=(R[0]&128)===128,w=R[0]&127,w<126?m=3:w===126?m=1:m=2}else if(m===1){if(u(h)<2)break;const R=c(h,2);w=new DataView(R.buffer,R.byteOffset,R.length).getUint16(0),m=3}else if(m===2){if(u(h)<8)break;const R=c(h,8),S=new DataView(R.buffer,R.byteOffset,R.length),O=S.getUint32(0);if(O>Math.pow(2,53-32)-1){T.enqueue(n.ERROR_PACKET);break}w=O*Math.pow(2,32)+S.getUint32(4),m=3}else{if(u(h)<w)break;const R=c(h,w);T.enqueue((0,r.decodePacket)(E?R:l.decode(R),f)),m=0}if(w===0||w>p){T.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=d,e.protocol=4}(ud)),ud}function qt(e){if(e)return $A(e)}function $A(e){for(var t in qt.prototype)e[t]=qt.prototype[t];return e}qt.prototype.on=qt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};qt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};qt.prototype.off=qt.prototype.removeListener=qt.prototype.removeAllListeners=qt.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,a=0;a<r.length;a++)if(n=r[a],n===t||n.fn===t){r.splice(a,1);break}return r.length===0&&delete this._callbacks["$"+e],this};qt.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,a=r.length;n<a;++n)r[n].apply(this,t)}return this};qt.prototype.emitReserved=qt.prototype.emit;qt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};qt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const kA=Object.freeze(Object.defineProperty({__proto__:null,Emitter:qt},Symbol.toStringTag,{value:"Module"})),co=mi(kA);var Zr={},Lo={},Mv;function Ks(){return Mv||(Mv=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.globalThisShim=void 0,Lo.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),Lo}var $v;function gi(){if($v)return Zr;$v=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.byteLength=Zr.installTimerFunctions=Zr.pick=void 0;const e=Ks();function t(l,...u){return u.reduce((c,d)=>(l.hasOwnProperty(d)&&(c[d]=l[d]),c),{})}Zr.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function a(l,u){u.useNativeTimers?(l.setTimeoutFn=r.bind(e.globalThisShim),l.clearTimeoutFn=n.bind(e.globalThisShim)):(l.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),l.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Zr.installTimerFunctions=a;const o=1.33;function s(l){return typeof l=="string"?i(l):Math.ceil((l.byteLength||l.size)*o)}Zr.byteLength=s;function i(l){let u=0,c=0;for(let d=0,p=l.length;d<p;d++)u=l.charCodeAt(d),u<128?c+=1:u<2048?c+=2:u<55296||u>=57344?c+=3:(d++,c+=4);return c}return Zr}var zi={exports:{}},cd,kv;function LA(){if(kv)return cd;kv=1;var e=1e3,t=e*60,r=t*60,n=r*24,a=n*7,o=n*365.25;cd=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return s(c);if(p==="number"&&isFinite(c))return d.long?l(c):i(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.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(c);if(d){var p=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"weeks":case"week":case"w":return p*a;case"days":case"day":case"d":return p*n;case"hours":case"hour":case"hrs":case"hr":case"h":return p*r;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function i(c){var d=Math.abs(c);return d>=n?Math.round(c/n)+"d":d>=r?Math.round(c/r)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=n?u(c,d,n,"day"):d>=r?u(c,d,r,"hour"):d>=t?u(c,d,t,"minute"):d>=e?u(c,d,e,"second"):c+" ms"}function u(c,d,p,f){var h=d>=p*1.5;return Math.round(c/p)+" "+f+(h?"s":"")}return cd}var fd,Lv;function BA(){if(Lv)return fd;Lv=1;function e(t){n.debug=n,n.default=n,n.coerce=u,n.disable=s,n.enable=o,n.enabled=i,n.humanize=LA(),n.destroy=c,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function r(d){let p=0;for(let f=0;f<d.length;f++)p=(p<<5)-p+d.charCodeAt(f),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=r;function n(d){let p,f=null,h,m;function w(...E){if(!w.enabled)return;const y=w,T=Number(new Date),R=T-(p||T);y.diff=R,y.prev=p,y.curr=T,p=T,E[0]=n.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let S=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(N,M)=>{if(N==="%%")return"%";S++;const H=n.formatters[M];if(typeof H=="function"){const G=E[S];N=H.call(y,G),E.splice(S,1),S--}return N}),n.formatArgs.call(y,E),(y.log||n.log).apply(y,E)}return w.namespace=d,w.useColors=n.useColors(),w.color=n.selectColor(d),w.extend=a,w.destroy=n.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(h!==n.namespaces&&(h=n.namespaces,m=n.enabled(d)),m),set:E=>{f=E}}),typeof n.init=="function"&&n.init(w),w}function a(d,p){const f=n(this.namespace+(typeof p>"u"?":":p)+d);return f.log=this.log,f}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let p;const f=(typeof d=="string"?d:"").split(/[\s,]+/),h=f.length;for(p=0;p<h;p++)f[p]&&(d=f[p].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")))}function s(){const d=[...n.names.map(l),...n.skips.map(l).map(p=>"-"+p)].join(",");return n.enable(""),d}function i(d){if(d[d.length-1]==="*")return!0;let p,f;for(p=0,f=n.skips.length;p<f;p++)if(n.skips[p].test(d))return!1;for(p=0,f=n.names.length;p<f;p++)if(n.names[p].test(d))return!0;return!1}function l(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function u(d){return d instanceof Error?d.stack||d.message:d}function c(){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 fd=e,fd}var Bv;function Fr(){return Bv||(Bv=1,function(e,t){t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!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(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;l.splice(1,0,u,"color: inherit");let c=0,d=0;l[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(c++,p==="%c"&&(d=c))}),l.splice(d,0,u)}t.log=console.debug||console.log||(()=>{});function a(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function o(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}e.exports=BA()(t);const{formatters:i}=e.exports;i.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(zi,zi.exports)),zi.exports}var la={},Dv;function $0(){if(Dv)return la;Dv=1,Object.defineProperty(la,"__esModule",{value:!0}),la.decode=la.encode=void 0;function e(r){let n="";for(let a in r)r.hasOwnProperty(a)&&(n.length&&(n+="&"),n+=encodeURIComponent(a)+"="+encodeURIComponent(r[a]));return n}la.encode=e;function t(r){let n={},a=r.split("&");for(let o=0,s=a.length;o<s;o++){let i=a[o].split("=");n[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return n}return la.decode=t,la}var qv;function Xs(){if(qv)return $o;qv=1;var e=be&&be.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty($o,"__esModule",{value:!0}),$o.Transport=void 0;const t=vi(),r=co,n=gi(),a=e(Fr()),o=$0(),s=(0,a.default)("engine.io-client:transport");class i extends Error{constructor(c,d,p){super(c),this.description=d,this.context=p,this.type="TransportError"}}class l extends r.Emitter{constructor(c){super(),this.writable=!1,(0,n.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,d,p){return super.emitReserved("error",new i(c,d,p)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(c){this.readyState==="open"?this.write(c):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const d=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(d)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,d={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(d)}_hostname(){const c=this.opts.hostname;return c.indexOf(":")===-1?c:"["+c+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(c){const d=(0,o.encode)(c);return d.length?"?"+d:""}}return $o.Transport=l,$o}var en={},Fv;function k0(){if(Fv)return en;Fv=1,Object.defineProperty(en,"__esModule",{value:!0}),en.yeast=en.decode=en.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,a=0,o;function s(u){let c="";do c=e[u%t]+c,u=Math.floor(u/t);while(u>0);return c}en.encode=s;function i(u){let c=0;for(a=0;a<u.length;a++)c=c*t+r[u.charAt(a)];return c}en.decode=i;function l(){const u=s(+new Date);return u!==o?(n=0,o=u):u+"."+s(n++)}for(en.yeast=l;a<t;a++)r[e[a]]=a;return en}var ua={},Bo={},jv;function DA(){if(jv)return Bo;jv=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return Bo.hasCORS=e,Bo}var Uv;function qA(){if(Uv)return ua;Uv=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.createCookieJar=ua.XHR=void 0;const e=DA(),t=Ks();function r(a){const o=a.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{}}ua.XHR=r;function n(){}return ua.createCookieJar=n,ua}var Hv;function FA(){if(Hv)return oa;Hv=1;var e=be&&be.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(oa,"__esModule",{value:!0}),oa.Request=oa.Polling=void 0;const t=Xs(),r=e(Fr()),n=k0(),a=vi(),o=qA(),s=co,i=gi(),l=Ks(),u=(0,r.default)("engine.io-client:polling");function c(){}const d=function(){return new o.XHR({xdomain:!1}).responseType!=null}();class p extends t.Transport{constructor(w){if(super(w),this.polling=!1,typeof location<"u"){const y=location.protocol==="https:";let T=location.port;T||(T=y?"443":"80"),this.xd=typeof location<"u"&&w.hostname!==location.hostname||T!==w.port}const E=w&&w.forceBase64;this.supportsBinary=d&&!E,this.opts.withCredentials&&(this.cookieJar=(0,o.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(w){this.readyState="pausing";const E=()=>{u("paused"),this.readyState="paused",w()};if(this.polling||!this.writable){let y=0;this.polling&&(u("we are currently polling - waiting to pause"),y++,this.once("pollComplete",function(){u("pre-pause polling complete"),--y||E()})),this.writable||(u("we are currently writing - waiting to pause"),y++,this.once("drain",function(){u("pre-pause writing complete"),--y||E()}))}else E()}poll(){u("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(w){u("polling got data %s",w);const E=y=>{if(this.readyState==="opening"&&y.type==="open"&&this.onOpen(),y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(y)};(0,a.decodePayload)(w,this.socket.binaryType).forEach(E),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():u('ignoring poll - transport state "%s"',this.readyState))}doClose(){const w=()=>{u("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(u("transport open - closing"),w()):(u("transport not open - deferring close"),this.once("open",w))}write(w){this.writable=!1,(0,a.encodePayload)(w,E=>{this.doWrite(E,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const w=this.opts.secure?"https":"http",E=this.query||{};return this.opts.timestampRequests!==!1&&(E[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!E.sid&&(E.b64=1),this.createUri(w,E)}request(w={}){return Object.assign(w,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new f(this.uri(),w)}doWrite(w,E){const y=this.request({method:"POST",data:w});y.on("success",E),y.on("error",(T,R)=>{this.onError("xhr post error",T,R)})}doPoll(){u("xhr poll");const w=this.request();w.on("data",this.onData.bind(this)),w.on("error",(E,y)=>{this.onError("xhr poll error",E,y)}),this.pollXhr=w}}oa.Polling=p;class f extends s.Emitter{constructor(w,E){super(),(0,i.installTimerFunctions)(this,E),this.opts=E,this.method=E.method||"GET",this.uri=w,this.data=E.data!==void 0?E.data:null,this.create()}create(){var w;const E=(0,i.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");E.xdomain=!!this.opts.xd;const y=this.xhr=new o.XHR(E);try{u("xhr open %s: %s",this.method,this.uri),y.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){y.setDisableHeaderCheck&&y.setDisableHeaderCheck(!0);for(let T in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(T)&&y.setRequestHeader(T,this.opts.extraHeaders[T])}}catch{}if(this.method==="POST")try{y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{y.setRequestHeader("Accept","*/*")}catch{}(w=this.opts.cookieJar)===null||w===void 0||w.addCookies(y),"withCredentials"in y&&(y.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(y.timeout=this.opts.requestTimeout),y.onreadystatechange=()=>{var T;y.readyState===3&&((T=this.opts.cookieJar)===null||T===void 0||T.parseCookies(y)),y.readyState===4&&(y.status===200||y.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof y.status=="number"?y.status:0)},0))},u("xhr data %s",this.data),y.send(this.data)}catch(T){this.setTimeoutFn(()=>{this.onError(T)},0);return}typeof document<"u"&&(this.index=f.requestsCount++,f.requests[this.index]=this)}onError(w){this.emitReserved("error",w,this.xhr),this.cleanup(!0)}cleanup(w){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,w)try{this.xhr.abort()}catch{}typeof document<"u"&&delete f.requests[this.index],this.xhr=null}}onLoad(){const w=this.xhr.responseText;w!==null&&(this.emitReserved("data",w),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(oa.Request=f,f.requestsCount=0,f.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",h);else if(typeof addEventListener=="function"){const m="onpagehide"in l.globalThisShim?"pagehide":"unload";addEventListener(m,h,!1)}}function h(){for(let m in f.requests)f.requests.hasOwnProperty(m)&&f.requests[m].abort()}return oa}var Do={},mr={},Gv;function Qs(){if(Gv)return mr;Gv=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.defaultBinaryType=mr.usingBrowserWebSocket=mr.WebSocket=mr.nextTick=void 0;const e=Ks();return mr.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),mr.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,mr.usingBrowserWebSocket=!0,mr.defaultBinaryType="arraybuffer",mr}var Wv;function jA(){if(Wv)return Do;Wv=1;var e=be&&be.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Do,"__esModule",{value:!0}),Do.WS=void 0;const t=Xs(),r=k0(),n=gi(),a=Qs(),o=e(Fr()),s=vi(),i=(0,o.default)("engine.io-client:websocket"),l=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class u extends t.Transport{constructor(d){super(d),this.supportsBinary=!d.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const d=this.uri(),p=this.opts.protocols,f=l?{}:(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=a.usingBrowserWebSocket&&!l?p?new a.WebSocket(d,p):new a.WebSocket(d):new a.WebSocket(d,p,f)}catch(h){return this.emitReserved("error",h)}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 p=0;p<d.length;p++){const f=d[p],h=p===d.length-1;(0,s.encodePacket)(f,this.supportsBinary,m=>{const w={};a.usingBrowserWebSocket||(f.options&&(w.compress=f.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(w.compress=!1));try{a.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,w)}catch{i("websocket closed before onclose event")}h&&(0,a.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",p=this.query||{};return this.opts.timestampRequests&&(p[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(p.b64=1),this.createUri(d,p)}check(){return!!a.WebSocket}}return Do.WS=u,Do}var qo={},Vv;function UA(){if(Vv)return qo;Vv=1;var e=be&&be.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(qo,"__esModule",{value:!0}),qo.WT=void 0;const t=Xs(),r=Qs(),n=vi(),o=(0,e(Fr()).default)("engine.io-client:webtransport");class s 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(l=>{o("transport closed due to %s",l),this.onError("webtransport error",l)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(l=>{const u=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=l.readable.pipeThrough(u).getReader(),d=(0,n.createPacketEncoderStream)();d.readable.pipeTo(l.writable),this.writer=d.writable.getWriter();const p=()=>{c.read().then(({done:h,value:m})=>{if(h){o("session is closed");return}o("received chunk: %o",m),this.onPacket(m),p()}).catch(h=>{o("an error occurred while reading: %s",h)})};p();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(l){this.writable=!1;for(let u=0;u<l.length;u++){const c=l[u],d=u===l.length-1;this.writer.write(c).then(()=>{d&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this.transport)===null||l===void 0||l.close()}}return qo.WT=s,qo}var zv;function L0(){if(zv)return Mo;zv=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.transports=void 0;const e=FA(),t=jA(),r=UA();return Mo.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},Mo}var Fo={},Yv;function B0(){if(Yv)return Fo;Yv=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.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 s=o,i=o.indexOf("["),l=o.indexOf("]");i!=-1&&l!=-1&&(o=o.substring(0,i)+o.substring(i,l).replace(/:/g,";")+o.substring(l,o.length));let u=e.exec(o||""),c={},d=14;for(;d--;)c[t[d]]=u[d]||"";return i!=-1&&l!=-1&&(c.source=s,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=n(c,c.path),c.queryKey=a(c,c.query),c}Fo.parse=r;function n(o,s){const i=/\/{2,9}/g,l=s.replace(i,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&l.splice(0,1),s.slice(-1)=="/"&&l.splice(l.length-1,1),l}function a(o,s){const i={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,c){u&&(i[u]=c)}),i}return Fo}var Kv;function HA(){if(Kv)return No;Kv=1;var e=be&&be.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(No,"__esModule",{value:!0}),No.Socket=void 0;const t=L0(),r=gi(),n=$0(),a=B0(),o=e(Fr()),s=co,i=vi(),l=Qs(),u=(0,o.default)("engine.io-client:socket");class c extends s.Emitter{constructor(p,f={}){super(),this.binaryType=l.defaultBinaryType,this.writeBuffer=[],p&&typeof p=="object"&&(f=p,p=null),p?(p=(0,a.parse)(p),f.hostname=p.host,f.secure=p.protocol==="https"||p.protocol==="wss",f.port=p.port,p.query&&(f.query=p.query)):f.host&&(f.hostname=(0,a.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(p){u('creating transport "%s"',p);const f=Object.assign({},this.opts.query);f.EIO=i.protocol,f.transport=p,this.id&&(f.sid=this.id);const h=Object.assign({},this.opts,{query:f,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[p]);return u("options: %j",h),new t.transports[p](h)}open(){let p;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)p="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else p=this.transports[0];this.readyState="opening";try{p=this.createTransport(p)}catch(f){u("error while creating transport: %s",f),this.transports.shift(),this.open();return}p.open(),this.setTransport(p)}setTransport(p){u("setting transport %s",p.name),this.transport&&(u("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=p,p.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(p){u('probing transport "%s"',p);let f=this.createTransport(p),h=!1;c.priorWebsocketSuccess=!1;const m=()=>{h||(u('probe transport "%s" opened',p),f.send([{type:"ping",data:"probe"}]),f.once("packet",O=>{if(!h)if(O.type==="pong"&&O.data==="probe"){if(u('probe transport "%s" pong',p),this.upgrading=!0,this.emitReserved("upgrading",f),!f)return;c.priorWebsocketSuccess=f.name==="websocket",u('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{h||this.readyState!=="closed"&&(u("changing transport and sending upgrade packet"),S(),this.setTransport(f),f.send([{type:"upgrade"}]),this.emitReserved("upgrade",f),f=null,this.upgrading=!1,this.flush())})}else{u('probe transport "%s" failed',p);const N=new Error("probe error");N.transport=f.name,this.emitReserved("upgradeError",N)}}))};function w(){h||(h=!0,S(),f.close(),f=null)}const E=O=>{const N=new Error("probe error: "+O);N.transport=f.name,w(),u('probe transport "%s" failed because of error: %s',p,O),this.emitReserved("upgradeError",N)};function y(){E("transport closed")}function T(){E("socket closed")}function R(O){f&&O.name!==f.name&&(u('"%s" works - aborting "%s"',O.name,f.name),w())}const S=()=>{f.removeListener("open",m),f.removeListener("error",E),f.removeListener("close",y),this.off("close",T),this.off("upgrading",R)};f.once("open",m),f.once("error",E),f.once("close",y),this.once("close",T),this.once("upgrading",R),this.upgrades.indexOf("webtransport")!==-1&&p!=="webtransport"?this.setTimeoutFn(()=>{h||f.open()},200):f.open()}onOpen(){if(u("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){u("starting upgrade probes");let p=0;const f=this.upgrades.length;for(;p<f;p++)this.probe(this.upgrades[p])}}onPacket(p){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(u('socket receive: type "%s", data "%s"',p.type,p.data),this.emitReserved("packet",p),this.emitReserved("heartbeat"),this.resetPingTimeout(),p.type){case"open":this.onHandshake(JSON.parse(p.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const f=new Error("server error");f.code=p.data,this.onError(f);break;case"message":this.emitReserved("data",p.data),this.emitReserved("message",p.data);break}else u('packet received with socket readyState "%s"',this.readyState)}onHandshake(p){this.emitReserved("handshake",p),this.id=p.sid,this.transport.query.sid=p.sid,this.upgrades=this.filterUpgrades(p.upgrades),this.pingInterval=p.pingInterval,this.pingTimeout=p.pingTimeout,this.maxPayload=p.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 p=this.getWritablePackets();u("flushing %d packets in socket",p.length),this.transport.send(p),this.prevBufferLen=p.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let f=1;for(let h=0;h<this.writeBuffer.length;h++){const m=this.writeBuffer[h].data;if(m&&(f+=(0,r.byteLength)(m)),h>0&&f>this.maxPayload)return u("only send %d out of %d packets",h,this.writeBuffer.length),this.writeBuffer.slice(0,h);f+=2}return u("payload size is %d (max: %d)",f,this.maxPayload),this.writeBuffer}write(p,f,h){return this.sendPacket("message",p,f,h),this}send(p,f,h){return this.sendPacket("message",p,f,h),this}sendPacket(p,f,h,m){if(typeof f=="function"&&(m=f,f=void 0),typeof h=="function"&&(m=h,h=null),this.readyState==="closing"||this.readyState==="closed")return;h=h||{},h.compress=h.compress!==!1;const w={type:p,data:f,options:h};this.emitReserved("packetCreate",w),this.writeBuffer.push(w),m&&this.once("flush",m),this.flush()}close(){const p=()=>{this.onClose("forced close"),u("socket closing - telling transport to close"),this.transport.close()},f=()=>{this.off("upgrade",f),this.off("upgradeError",f),p()},h=()=>{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?h():p()}):this.upgrading?h():p()),this}onError(p){u("socket error %j",p),c.priorWebsocketSuccess=!1,this.emitReserved("error",p),this.onClose("transport error",p)}onClose(p,f){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(u('socket close with reason: "%s"',p),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",p,f),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(p){const f=[];let h=0;const m=p.length;for(;h<m;h++)~this.transports.indexOf(p[h])&&f.push(p[h]);return f}}return No.Socket=c,c.protocol=i.protocol,No}var Xv;function D0(){return Xv||(Xv=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=HA();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=Xs();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=L0();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var a=gi();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return a.installTimerFunctions}});var o=B0();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return o.parse}});var s=Qs();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return s.nextTick}})}(ld)),ld}var Qv;function GA(){if(Qv)return Io;Qv=1;var e=be&&be.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Io,"__esModule",{value:!0}),Io.url=void 0;const t=D0(),n=e(Fr()).default("socket.io-client:url");function a(o,s="",i){let l=o;i=i||typeof location<"u"&&location,o==null&&(o=i.protocol+"//"+i.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=i.protocol+o:o=i.host+o),/^(https?|wss?):\/\//.test(o)||(n("protocol-less url %s",o),typeof i<"u"?o=i.protocol+"//"+o:o="https://"+o),n("parse %s",o),l=t.parse(o)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+s,l.href=l.protocol+"://"+c+(i&&i.port===l.port?"":":"+l.port),l}return Io.url=a,Io}var jo={},Uo={},dd={},ca={},fa={},Jv;function q0(){if(Jv)return fa;Jv=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.hasBinary=fa.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i.buffer instanceof ArrayBuffer,r=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob<"u"&&r.call(Blob)==="[object BlobConstructor]",a=typeof File=="function"||typeof File<"u"&&r.call(File)==="[object FileConstructor]";function o(i){return e&&(i instanceof ArrayBuffer||t(i))||n&&i instanceof Blob||a&&i instanceof File}fa.isBinary=o;function s(i,l){if(!i||typeof i!="object")return!1;if(Array.isArray(i)){for(let u=0,c=i.length;u<c;u++)if(s(i[u]))return!0;return!1}if(o(i))return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return s(i.toJSON(),!0);for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&s(i[u]))return!0;return!1}return fa.hasBinary=s,fa}var Zv;function WA(){if(Zv)return ca;Zv=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.reconstructPacket=ca.deconstructPacket=void 0;const e=q0();function t(o){const s=[],i=o.data,l=o;return l.data=r(i,s),l.attachments=s.length,{packet:l,buffers:s}}ca.deconstructPacket=t;function r(o,s){if(!o)return o;if((0,e.isBinary)(o)){const i={_placeholder:!0,num:s.length};return s.push(o),i}else if(Array.isArray(o)){const i=new Array(o.length);for(let l=0;l<o.length;l++)i[l]=r(o[l],s);return i}else if(typeof o=="object"&&!(o instanceof Date)){const i={};for(const l in o)Object.prototype.hasOwnProperty.call(o,l)&&(i[l]=r(o[l],s));return i}return o}function n(o,s){return o.data=a(o.data,s),delete o.attachments,o}ca.reconstructPacket=n;function a(o,s){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<s.length)return s[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let i=0;i<o.length;i++)o[i]=a(o[i],s);else if(typeof o=="object")for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(o[i]=a(o[i],s));return o}return ca}var eg;function Fh(){return eg||(eg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=co,r=WA(),n=q0(),o=(0,Fr().default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var i;(function(p){p[p.CONNECT=0]="CONNECT",p[p.DISCONNECT=1]="DISCONNECT",p[p.EVENT=2]="EVENT",p[p.ACK=3]="ACK",p[p.CONNECT_ERROR=4]="CONNECT_ERROR",p[p.BINARY_EVENT=5]="BINARY_EVENT",p[p.BINARY_ACK=6]="BINARY_ACK"})(i=e.PacketType||(e.PacketType={}));class l{constructor(f){this.replacer=f}encode(f){return o("encoding packet %j",f),(f.type===i.EVENT||f.type===i.ACK)&&(0,n.hasBinary)(f)?this.encodeAsBinary({type:f.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:f.nsp,data:f.data,id:f.id}):[this.encodeAsString(f)]}encodeAsString(f){let h=""+f.type;return(f.type===i.BINARY_EVENT||f.type===i.BINARY_ACK)&&(h+=f.attachments+"-"),f.nsp&&f.nsp!=="/"&&(h+=f.nsp+","),f.id!=null&&(h+=f.id),f.data!=null&&(h+=JSON.stringify(f.data,this.replacer)),o("encoded %j as %s",f,h),h}encodeAsBinary(f){const h=(0,r.deconstructPacket)(f),m=this.encodeAsString(h.packet),w=h.buffers;return w.unshift(m),w}}e.Encoder=l;function u(p){return Object.prototype.toString.call(p)==="[object Object]"}class c extends t.Emitter{constructor(f){super(),this.reviver=f}add(f){let h;if(typeof f=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=this.decodeString(f);const m=h.type===i.BINARY_EVENT;m||h.type===i.BINARY_ACK?(h.type=m?i.EVENT:i.ACK,this.reconstructor=new d(h),h.attachments===0&&super.emitReserved("decoded",h)):super.emitReserved("decoded",h)}else if((0,n.isBinary)(f)||f.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(f),h&&(this.reconstructor=null,super.emitReserved("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+f)}decodeString(f){let h=0;const m={type:Number(f.charAt(0))};if(i[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===i.BINARY_EVENT||m.type===i.BINARY_ACK){const E=h+1;for(;f.charAt(++h)!=="-"&&h!=f.length;);const y=f.substring(E,h);if(y!=Number(y)||f.charAt(h)!=="-")throw new Error("Illegal attachments");m.attachments=Number(y)}if(f.charAt(h+1)==="/"){const E=h+1;for(;++h&&!(f.charAt(h)===","||h===f.length););m.nsp=f.substring(E,h)}else m.nsp="/";const w=f.charAt(h+1);if(w!==""&&Number(w)==w){const E=h+1;for(;++h;){const y=f.charAt(h);if(y==null||Number(y)!=y){--h;break}if(h===f.length)break}m.id=Number(f.substring(E,h+1))}if(f.charAt(++h)){const E=this.tryParse(f.substr(h));if(c.isPayloadValid(m.type,E))m.data=E;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,h){switch(f){case i.CONNECT:return u(h);case i.DISCONNECT:return h===void 0;case i.CONNECT_ERROR:return typeof h=="string"||u(h);case i.EVENT:case i.BINARY_EVENT:return Array.isArray(h)&&(typeof h[0]=="number"||typeof h[0]=="string"&&s.indexOf(h[0])===-1);case i.ACK:case i.BINARY_ACK:return Array.isArray(h)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;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 h=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(dd)),dd}var Ho={},tg;function F0(){if(tg)return Ho;tg=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return Ho.on=e,Ho}var rg;function j0(){if(rg)return Uo;rg=1;var e=be&&be.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.Socket=void 0;const t=Fh(),r=F0(),n=co,o=e(Fr()).default("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class i extends n.Emitter{constructor(u,c,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=u,this.nsp=c,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 u=this.io;this.subs=[r.on(u,"open",this.onopen.bind(this)),r.on(u,"packet",this.onpacket.bind(this)),r.on(u,"error",this.onerror.bind(this)),r.on(u,"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(...u){return u.unshift("message"),this.emit.apply(this,u),this}emit(u,...c){if(s.hasOwnProperty(u))throw new Error('"'+u.toString()+'" is a reserved event name');if(c.unshift(u),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const d={type:t.PacketType.EVENT,data:c};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const h=this.ids++;o("emitting packet with ack id %d",h);const m=c.pop();this._registerAckCallback(h,m),d.id=h}const p=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!p||!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(u,c){var d;const p=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(p===void 0){this.acks[u]=c;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[u];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===u&&(o("removing packet with ack id %d from the buffer",u),this.sendBuffer.splice(h,1));o("event with ack id %d has timed out after %d ms",u,p),c.call(this,new Error("operation has timed out"))},p);this.acks[u]=(...h)=>{this.io.clearTimeoutFn(f),c.apply(this,[null,...h])}}emitWithAck(u,...c){const d=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((p,f)=>{c.push((h,m)=>d?h?f(h):p(m):p(h)),this.emit(u,...c)})}_addToQueue(u){let c;typeof u[u.length-1]=="function"&&(c=u.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:u,flags:Object.assign({fromQueue:!0},this.flags)};u.push((p,...f)=>d!==this._queue[0]?void 0:(p!==null?d.tryCount>this._opts.retries&&(o("packet [%d] is discarded after %d tries",d.id,d.tryCount),this._queue.shift(),c&&c(p)):(o("packet [%d] was successfully sent",d.id),this._queue.shift(),c&&c(null,...f)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(u=!1){if(o("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!u){o("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,o("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(u){u.nsp=this.nsp,this.io._packet(u)}onopen(){o("transport is open - connecting"),typeof this.auth=="function"?this.auth(u=>{this._sendConnectPacket(u)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(u){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},u):u})}onerror(u){this.connected||this.emitReserved("connect_error",u)}onclose(u,c){o("close (%s)",u),this.connected=!1,delete this.id,this.emitReserved("disconnect",u,c)}onpacket(u){if(u.nsp===this.nsp)switch(u.type){case t.PacketType.CONNECT:u.data&&u.data.sid?this.onconnect(u.data.sid,u.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(u);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(u);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const d=new Error(u.data.message);d.data=u.data.data,this.emitReserved("connect_error",d);break}}onevent(u){const c=u.data||[];o("emitting event %j",c),u.id!=null&&(o("attaching ack callback to event"),c.push(this.ack(u.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(u){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const d of c)d.apply(this,u)}super.emit.apply(this,u),this._pid&&u.length&&typeof u[u.length-1]=="string"&&(this._lastOffset=u[u.length-1])}ack(u){const c=this;let d=!1;return function(...p){d||(d=!0,o("sending ack %j",p),c.packet({type:t.PacketType.ACK,id:u,data:p}))}}onack(u){const c=this.acks[u.id];typeof c=="function"?(o("calling ack %s with %j",u.id,u.data),c.apply(this,u.data),delete this.acks[u.id]):o("bad ack %s",u.id)}onconnect(u,c){o("socket connected with id %s",u),this.id=u,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(u=>this.emitEvent(u)),this.receiveBuffer=[],this.sendBuffer.forEach(u=>{this.notifyOutgoingListeners(u),this.packet(u)}),this.sendBuffer=[]}ondisconnect(){o("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(u=>u()),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(u){return this.flags.compress=u,this}get volatile(){return this.flags.volatile=!0,this}timeout(u){return this.flags.timeout=u,this}onAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(u),this}prependAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(u),this}offAny(u){if(!this._anyListeners)return this;if(u){const c=this._anyListeners;for(let d=0;d<c.length;d++)if(u===c[d])return c.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(u),this}prependAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(u),this}offAnyOutgoing(u){if(!this._anyOutgoingListeners)return this;if(u){const c=this._anyOutgoingListeners;for(let d=0;d<c.length;d++)if(u===c[d])return c.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(u){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const d of c)d.apply(this,u.data)}}}return Uo.Socket=i,Uo}var Go={},ng;function VA(){if(ng)return Go;ng=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.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 Go.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},Go}var ag;function zA(){if(ag)return jo;ag=1;var e=be&&be.__createBinding||(Object.create?function(f,h,m,w){w===void 0&&(w=m),Object.defineProperty(f,w,{enumerable:!0,get:function(){return h[m]}})}:function(f,h,m,w){w===void 0&&(w=m),f[w]=h[m]}),t=be&&be.__setModuleDefault||(Object.create?function(f,h){Object.defineProperty(f,"default",{enumerable:!0,value:h})}:function(f,h){f.default=h}),r=be&&be.__importStar||function(f){if(f&&f.__esModule)return f;var h={};if(f!=null)for(var m in f)m!=="default"&&Object.prototype.hasOwnProperty.call(f,m)&&e(h,f,m);return t(h,f),h},n=be&&be.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(jo,"__esModule",{value:!0}),jo.Manager=void 0;const a=D0(),o=j0(),s=r(Fh()),i=F0(),l=VA(),u=co,d=n(Fr()).default("socket.io-client:manager");class p extends u.Emitter{constructor(h,m){var w;super(),this.nsps={},this.subs=[],h&&typeof h=="object"&&(m=h,h=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,a.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((w=m.randomizationFactor)!==null&&w!==void 0?w:.5),this.backoff=new l.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=h;const E=m.parser||s;this.encoder=new E.Encoder,this.decoder=new E.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(h){return arguments.length?(this._reconnection=!!h,this):this._reconnection}reconnectionAttempts(h){return h===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=h,this)}reconnectionDelay(h){var m;return h===void 0?this._reconnectionDelay:(this._reconnectionDelay=h,(m=this.backoff)===null||m===void 0||m.setMin(h),this)}randomizationFactor(h){var m;return h===void 0?this._randomizationFactor:(this._randomizationFactor=h,(m=this.backoff)===null||m===void 0||m.setJitter(h),this)}reconnectionDelayMax(h){var m;return h===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=h,(m=this.backoff)===null||m===void 0||m.setMax(h),this)}timeout(h){return arguments.length?(this._timeout=h,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(h){if(d("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const m=this.engine,w=this;this._readyState="opening",this.skipReconnect=!1;const E=i.on(m,"open",function(){w.onopen(),h&&h()}),y=R=>{d("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",R),h?h(R):this.maybeReconnectOnOpen()},T=i.on(m,"error",y);if(this._timeout!==!1){const R=this._timeout;d("connect attempt will timeout after %d",R);const S=this.setTimeoutFn(()=>{d("connect attempt timed out after %d",R),E(),y(new Error("timeout")),m.close()},R);this.opts.autoUnref&&S.unref(),this.subs.push(()=>{this.clearTimeoutFn(S)})}return this.subs.push(E),this.subs.push(T),this}connect(h){return this.open(h)}onopen(){d("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const h=this.engine;this.subs.push(i.on(h,"ping",this.onping.bind(this)),i.on(h,"data",this.ondata.bind(this)),i.on(h,"error",this.onerror.bind(this)),i.on(h,"close",this.onclose.bind(this)),i.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(h){try{this.decoder.add(h)}catch(m){this.onclose("parse error",m)}}ondecoded(h){a.nextTick(()=>{this.emitReserved("packet",h)},this.setTimeoutFn)}onerror(h){d("error",h),this.emitReserved("error",h)}socket(h,m){let w=this.nsps[h];return w?this._autoConnect&&!w.active&&w.connect():(w=new o.Socket(this,h,m),this.nsps[h]=w),w}_destroy(h){const m=Object.keys(this.nsps);for(const w of m)if(this.nsps[w].active){d("socket %s is still active, skipping close",w);return}this._close()}_packet(h){d("writing packet %j",h);const m=this.encoder.encode(h);for(let w=0;w<m.length;w++)this.engine.write(m[w],h.options)}cleanup(){d("cleanup"),this.subs.forEach(h=>h()),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(h,m){d("closed due to %s",h),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",h,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const h=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 w=this.setTimeoutFn(()=>{h.skipReconnect||(d("attempting reconnect"),this.emitReserved("reconnect_attempt",h.backoff.attempts),!h.skipReconnect&&h.open(E=>{E?(d("reconnect attempt error"),h._reconnecting=!1,h.reconnect(),this.emitReserved("reconnect_error",E)):(d("reconnect success"),h.onreconnect())}))},m);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}}onreconnect(){const h=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",h)}}return jo.Manager=p,jo}var og;function YA(){return og||(og=1,function(e,t){var r=be&&be.__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=GA(),a=zA();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return a.Manager}});const o=j0();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}});const i=r(Fr()).default("socket.io-client"),l={};function u(d,p){typeof d=="object"&&(p=d,d=void 0),p=p||{};const f=n.url(d,p.path||"/socket.io"),h=f.source,m=f.id,w=f.path,E=l[m]&&w in l[m].nsps,y=p.forceNew||p["force new connection"]||p.multiplex===!1||E;let T;return y?(i("ignoring socket cache for %s",h),T=new a.Manager(h,p)):(l[m]||(i("new io instance for %s",h),l[m]=new a.Manager(h,p)),T=l[m]),f.query&&!p.query&&(p.query=f.queryKey),T.socket(f.path,p)}t.io=u,t.connect=u,t.default=u,Object.assign(u,{Manager:a.Manager,Socket:o.Socket,io:u,connect:u});var c=Fh();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=u}(Vi,Vi.exports)),Vi.exports}var pd={},Wo={},ig;function KA(){if(ig)return Wo;ig=1,Wo.byteLength=i,Wo.toByteArray=u,Wo.fromByteArray=p;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,o=n.length;a<o;++a)e[a]=n[a],t[n.charCodeAt(a)]=a;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function s(f){var h=f.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=f.indexOf("=");m===-1&&(m=h);var w=m===h?0:4-m%4;return[m,w]}function i(f){var h=s(f),m=h[0],w=h[1];return(m+w)*3/4-w}function l(f,h,m){return(h+m)*3/4-m}function u(f){var h,m=s(f),w=m[0],E=m[1],y=new r(l(f,w,E)),T=0,R=E>0?w-4:w,S;for(S=0;S<R;S+=4)h=t[f.charCodeAt(S)]<<18|t[f.charCodeAt(S+1)]<<12|t[f.charCodeAt(S+2)]<<6|t[f.charCodeAt(S+3)],y[T++]=h>>16&255,y[T++]=h>>8&255,y[T++]=h&255;return E===2&&(h=t[f.charCodeAt(S)]<<2|t[f.charCodeAt(S+1)]>>4,y[T++]=h&255),E===1&&(h=t[f.charCodeAt(S)]<<10|t[f.charCodeAt(S+1)]<<4|t[f.charCodeAt(S+2)]>>2,y[T++]=h>>8&255,y[T++]=h&255),y}function c(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function d(f,h,m){for(var w,E=[],y=h;y<m;y+=3)w=(f[y]<<16&16711680)+(f[y+1]<<8&65280)+(f[y+2]&255),E.push(c(w));return E.join("")}function p(f){for(var h,m=f.length,w=m%3,E=[],y=16383,T=0,R=m-w;T<R;T+=y)E.push(d(f,T,T+y>R?R:T+y));return w===1?(h=f[m-1],E.push(e[h>>2]+e[h<<4&63]+"==")):w===2&&(h=(f[m-2]<<8)+f[m-1],E.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),E.join("")}return Wo}var Yi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var sg;function XA(){return sg||(sg=1,Yi.read=function(e,t,r,n,a){var o,s,i=a*8-n-1,l=(1<<i)-1,u=l>>1,c=-7,d=r?a-1:0,p=r?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-c)-1,f>>=-c,c+=i;c>0;o=o*256+e[t+d],d+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=s*256+e[t+d],d+=p,c-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(f?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(f?-1:1)*s*Math.pow(2,o-n)},Yi.write=function(e,t,r,n,a,o){var s,i,l,u=o*8-a-1,c=(1<<u)-1,d=c>>1,p=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,h=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(i=0,s=c):s+d>=1?(i=(t*l-1)*Math.pow(2,a),s=s+d):(i=t*Math.pow(2,d-1)*Math.pow(2,a),s=0));a>=8;e[r+f]=i&255,f+=h,i/=256,a-=8);for(s=s<<a|i,u+=a;u>0;e[r+f]=s&255,f+=h,s/=256,u-=8);e[r+f-h]|=m*128}),Yi}/*!
56
+ window.`+s+".push("+JSON.stringify(i)+")"}};return hs=r,hs}var ps,Ql;function XE(){if(Ql)return ps;Ql=1;var e=QE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={dataScript:function(i){var s=document.createElement("script");return s.innerHTML=i,s},gtm:function(i){var s=t.default.tags(i),a=function(){var h=document.createElement("noscript");return h.innerHTML=s.iframe,h},l=function(){var h=document.createElement("script");return h.innerHTML=s.script,h},f=this.dataScript(s.dataLayerVar);return{noScript:a,script:l,dataScript:f}},initialize:function(i){var s=i.gtmId,a=i.events,l=a===void 0?{}:a,f=i.dataLayer,u=i.dataLayerName,h=u===void 0?"dataLayer":u,d=i.auth,c=d===void 0?"":d,p=i.preview,m=p===void 0?"":p,_=this.gtm({id:s,events:l,dataLayer:f||void 0,dataLayerName:h,auth:c,preview:m});f&&document.head.appendChild(_.dataScript),document.head.insertBefore(_.script(),document.head.childNodes[0]),document.body.insertBefore(_.noScript(),document.body.childNodes[0])},dataLayer:function(i){var s=i.dataLayer,a=i.dataLayerName,l=a===void 0?"dataLayer":a;if(window[l])return window[l].push(s);var f=t.default.dataLayer(s,l),u=this.dataScript(f);document.head.insertBefore(u,document.head.childNodes[0])}};return ps=r,ps}var ms,Xl;function JE(){if(Xl)return ms;Xl=1;var e=XE(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return ms=t.default,ms}var Jl;function ZE(){return Jl||(Jl=1,function(e,t){(function(n,r){e.exports=r(JE())})(ae,function(n){return function(){var r={273:function(a){a.exports=n}},o={};function i(a){var l=o[a];if(l!==void 0)return l.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,{a:l}),l},i.d=function(a,l){for(var f in l)i.o(l,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:l[f]})},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{setContext:function(){return u},setupGTM:function(){return d}});var a=i(273),l=i.n(a);let f=null;const u=({configs:c,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!c)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!c[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:c,environment:p})}`);f=c[p]},h=()=>f,d=()=>{const c=h();l().initialize({gtmId:c.id})}}(),s}()})}(ds)),ds.exports}var dh=202,hh=502,ph=400,mh=409,gh=100,yh=201,vh=417,e_=424,Eh=403,_h=504,bh=410,wh=505,Sh=418,Th=419,Oh=507,xh=500,Ah=411,Ch=423,Rh=420,Ph=405,Ih=301,Nh=302,Lh=207,kh=300,Bh=511,Mh=204,Fh=203,Uh=406,Dh=404,$h=501,jh=304,Hh=200,qh=206,Gh=402,Wh=308,Vh=412,zh=428,Yh=102,Kh=407,Qh=431,Xh=408,Jh=413,Zh=414,ep=416,tp=205,rp=303,np=503,ip=101,op=307,ap=429,sp=401,up=422,cp=415,lp=305;const t_={ACCEPTED:dh,BAD_GATEWAY:hh,BAD_REQUEST:ph,CONFLICT:mh,CONTINUE:gh,CREATED:yh,EXPECTATION_FAILED:vh,FORBIDDEN:Eh,GATEWAY_TIMEOUT:_h,GONE:bh,HTTP_VERSION_NOT_SUPPORTED:wh,IM_A_TEAPOT:Sh,INSUFFICIENT_SPACE_ON_RESOURCE:Th,INSUFFICIENT_STORAGE:Oh,INTERNAL_SERVER_ERROR:xh,LENGTH_REQUIRED:Ah,LOCKED:Ch,METHOD_FAILURE:Rh,METHOD_NOT_ALLOWED:Ph,MOVED_PERMANENTLY:Ih,MOVED_TEMPORARILY:Nh,MULTI_STATUS:Lh,MULTIPLE_CHOICES:kh,NETWORK_AUTHENTICATION_REQUIRED:Bh,NO_CONTENT:Mh,NON_AUTHORITATIVE_INFORMATION:Fh,NOT_ACCEPTABLE:Uh,NOT_FOUND:Dh,NOT_IMPLEMENTED:$h,NOT_MODIFIED:jh,OK:Hh,PARTIAL_CONTENT:qh,PAYMENT_REQUIRED:Gh,PERMANENT_REDIRECT:Wh,PRECONDITION_FAILED:Vh,PRECONDITION_REQUIRED:zh,PROCESSING:Yh,PROXY_AUTHENTICATION_REQUIRED:Kh,REQUEST_HEADER_FIELDS_TOO_LARGE:Qh,REQUEST_TIMEOUT:Xh,REQUEST_TOO_LONG:Jh,REQUEST_URI_TOO_LONG:Zh,REQUESTED_RANGE_NOT_SATISFIABLE:ep,RESET_CONTENT:tp,SEE_OTHER:rp,SERVICE_UNAVAILABLE:np,SWITCHING_PROTOCOLS:ip,TEMPORARY_REDIRECT:op,TOO_MANY_REQUESTS:ap,UNAUTHORIZED:sp,UNPROCESSABLE_ENTITY:up,UNSUPPORTED_MEDIA_TYPE:cp,USE_PROXY:lp};var r_={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"},n_={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 fp(e){var t=r_[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function dp(e){var t=n_[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var hp=fp,Zs;(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"})(Zs||(Zs={}));var eu;(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"})(eu||(eu={}));var Fo=globalThis&&globalThis.__assign||function(){return Fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fo.apply(this,arguments)};const i_=Fo(Fo({},t_),{getStatusCode:dp,getStatusText:hp}),o_=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:dh,BAD_GATEWAY:hh,BAD_REQUEST:ph,CONFLICT:mh,CONTINUE:gh,CREATED:yh,EXPECTATION_FAILED:vh,FAILED_DEPENDENCY:e_,FORBIDDEN:Eh,GATEWAY_TIMEOUT:_h,GONE:bh,HTTP_VERSION_NOT_SUPPORTED:wh,IM_A_TEAPOT:Sh,INSUFFICIENT_SPACE_ON_RESOURCE:Th,INSUFFICIENT_STORAGE:Oh,INTERNAL_SERVER_ERROR:xh,LENGTH_REQUIRED:Ah,LOCKED:Ch,METHOD_FAILURE:Rh,METHOD_NOT_ALLOWED:Ph,MOVED_PERMANENTLY:Ih,MOVED_TEMPORARILY:Nh,MULTIPLE_CHOICES:kh,MULTI_STATUS:Lh,NETWORK_AUTHENTICATION_REQUIRED:Bh,NON_AUTHORITATIVE_INFORMATION:Fh,NOT_ACCEPTABLE:Uh,NOT_FOUND:Dh,NOT_IMPLEMENTED:$h,NOT_MODIFIED:jh,NO_CONTENT:Mh,OK:Hh,PARTIAL_CONTENT:qh,PAYMENT_REQUIRED:Gh,PERMANENT_REDIRECT:Wh,PRECONDITION_FAILED:Vh,PRECONDITION_REQUIRED:zh,PROCESSING:Yh,PROXY_AUTHENTICATION_REQUIRED:Kh,REQUESTED_RANGE_NOT_SATISFIABLE:ep,REQUEST_HEADER_FIELDS_TOO_LARGE:Qh,REQUEST_TIMEOUT:Xh,REQUEST_TOO_LONG:Jh,REQUEST_URI_TOO_LONG:Zh,RESET_CONTENT:tp,get ReasonPhrases(){return eu},SEE_OTHER:rp,SERVICE_UNAVAILABLE:np,SWITCHING_PROTOCOLS:ip,get StatusCodes(){return Zs},TEMPORARY_REDIRECT:op,TOO_MANY_REQUESTS:ap,UNAUTHORIZED:sp,UNPROCESSABLE_ENTITY:up,UNSUPPORTED_MEDIA_TYPE:cp,USE_PROXY:lp,default:i_,getReasonPhrase:fp,getStatusCode:dp,getStatusText:hp},Symbol.toStringTag,{value:"Module"})),a_=Wi(o_);var Eo={exports:{}},_i={},gs={},bi={},wi={},Ur={},Si={},ys={},Dr={},Xt={},Zl;function Nu(){if(Zl)return Xt;Zl=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.ERROR_PACKET=Xt.PACKET_TYPES_REVERSE=Xt.PACKET_TYPES=void 0;const e=Object.create(null);Xt.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);Xt.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(r=>{t[e[r]]=r});const n={type:"error",data:"parser error"};return Xt.ERROR_PACKET=n,Xt}var ef;function s_(){if(ef)return Dr;ef=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.encodePacket=Dr.encodePacketToBinary=void 0;const e=Nu(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",n=typeof ArrayBuffer=="function",r=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,o=({type:f,data:u},h,d)=>t&&u instanceof Blob?h?d(u):i(u,d):n&&(u instanceof ArrayBuffer||r(u))?h?d(u):i(new Blob([u]),d):d(e.PACKET_TYPES[f]+(u||""));Dr.encodePacket=o;const i=(f,u)=>{const h=new FileReader;return h.onload=function(){const d=h.result.split(",")[1];u("b"+(d||""))},h.readAsDataURL(f)};function s(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let a;function l(f,u){if(t&&f.data instanceof Blob)return f.data.arrayBuffer().then(s).then(u);if(n&&(f.data instanceof ArrayBuffer||r(f.data)))return u(s(f.data));o(f,!1,h=>{a||(a=new TextEncoder),u(a.encode(h))})}return Dr.encodePacketToBinary=l,Dr}var Ti={},$r={},tf;function u_(){if(tf)return $r;tf=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.decode=$r.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const n=o=>{let i=new Uint8Array(o),s,a=i.length,l="";for(s=0;s<a;s+=3)l+=e[i[s]>>2],l+=e[(i[s]&3)<<4|i[s+1]>>4],l+=e[(i[s+1]&15)<<2|i[s+2]>>6],l+=e[i[s+2]&63];return a%3===2?l=l.substring(0,l.length-1)+"=":a%3===1&&(l=l.substring(0,l.length-2)+"=="),l};$r.encode=n;const r=o=>{let i=o.length*.75,s=o.length,a,l=0,f,u,h,d;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const c=new ArrayBuffer(i),p=new Uint8Array(c);for(a=0;a<s;a+=4)f=t[o.charCodeAt(a)],u=t[o.charCodeAt(a+1)],h=t[o.charCodeAt(a+2)],d=t[o.charCodeAt(a+3)],p[l++]=f<<2|u>>4,p[l++]=(u&15)<<4|h>>2,p[l++]=(h&3)<<6|d&63;return c};return $r.decode=r,$r}var rf;function c_(){if(rf)return Ti;rf=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.decodePacket=void 0;const e=Nu(),t=u_(),n=typeof ArrayBuffer=="function",r=(s,a)=>{if(typeof s!="string")return{type:"message",data:i(s,a)};const l=s.charAt(0);return l==="b"?{type:"message",data:o(s.substring(1),a)}:e.PACKET_TYPES_REVERSE[l]?s.length>1?{type:e.PACKET_TYPES_REVERSE[l],data:s.substring(1)}:{type:e.PACKET_TYPES_REVERSE[l]}:e.ERROR_PACKET};Ti.decodePacket=r;const o=(s,a)=>{if(n){const l=(0,t.decode)(s);return i(l,a)}else return{base64:!0,data:s}},i=(s,a)=>{switch(a){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};return Ti}var nf;function zi(){return nf||(nf=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=s_();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=c_();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const r=Nu(),o=String.fromCharCode(30),i=(d,c)=>{const p=d.length,m=new Array(p);let _=0;d.forEach((T,E)=>{(0,t.encodePacket)(T,!1,b=>{m[E]=b,++_===p&&c(m.join(o))})})};e.encodePayload=i;const s=(d,c)=>{const p=d.split(o),m=[];for(let _=0;_<p.length;_++){const T=(0,n.decodePacket)(p[_],c);if(m.push(T),T.type==="error")break}return m};e.decodePayload=s;function a(){return new TransformStream({transform(d,c){(0,t.encodePacketToBinary)(d,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 T=new DataView(_.buffer);T.setUint8(0,126),T.setUint16(1,m)}else{_=new Uint8Array(9);const T=new DataView(_.buffer);T.setUint8(0,127),T.setBigUint64(1,BigInt(m))}d.data&&typeof d.data!="string"&&(_[0]|=128),c.enqueue(_),c.enqueue(p)})}})}e.createPacketEncoderStream=a;let l;function f(d){return d.reduce((c,p)=>c+p.length,0)}function u(d,c){if(d[0].length===c)return d.shift();const p=new Uint8Array(c);let m=0;for(let _=0;_<c;_++)p[_]=d[0][m++],m===d[0].length&&(d.shift(),m=0);return d.length&&m<d[0].length&&(d[0]=d[0].slice(m)),p}function h(d,c){l||(l=new TextDecoder);const p=[];let m=0,_=-1,T=!1;return new TransformStream({transform(E,b){for(p.push(E);;){if(m===0){if(f(p)<1)break;const A=u(p,1);T=(A[0]&128)===128,_=A[0]&127,_<126?m=3:_===126?m=1:m=2}else if(m===1){if(f(p)<2)break;const A=u(p,2);_=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),m=3}else if(m===2){if(f(p)<8)break;const A=u(p,8),w=new DataView(A.buffer,A.byteOffset,A.length),N=w.getUint32(0);if(N>Math.pow(2,53-32)-1){b.enqueue(r.ERROR_PACKET);break}_=N*Math.pow(2,32)+w.getUint32(4),m=3}else{if(f(p)<_)break;const A=u(p,_);b.enqueue((0,n.decodePacket)(T?A:l.decode(A),c)),m=0}if(_===0||_>d){b.enqueue(r.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=h,e.protocol=4}(ys)),ys}function ot(e){if(e)return l_(e)}function l_(e){for(var t in ot.prototype)e[t]=ot.prototype[t];return e}ot.prototype.on=ot.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ot.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ot.prototype.off=ot.prototype.removeListener=ot.prototype.removeAllListeners=ot.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ot.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};ot.prototype.emitReserved=ot.prototype.emit;ot.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ot.prototype.hasListeners=function(e){return!!this.listeners(e).length};const f_=Object.freeze(Object.defineProperty({__proto__:null,Emitter:ot},Symbol.toStringTag,{value:"Module"})),Ln=Wi(f_);var Jt={},Oi={},of;function Wo(){return of||(of=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.globalThisShim=void 0,Oi.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),Oi}var af;function Yi(){if(af)return Jt;af=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.byteLength=Jt.installTimerFunctions=Jt.pick=void 0;const e=Wo();function t(l,...f){return f.reduce((u,h)=>(l.hasOwnProperty(h)&&(u[h]=l[h]),u),{})}Jt.pick=t;const n=e.globalThisShim.setTimeout,r=e.globalThisShim.clearTimeout;function o(l,f){f.useNativeTimers?(l.setTimeoutFn=n.bind(e.globalThisShim),l.clearTimeoutFn=r.bind(e.globalThisShim)):(l.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),l.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Jt.installTimerFunctions=o;const i=1.33;function s(l){return typeof l=="string"?a(l):Math.ceil((l.byteLength||l.size)*i)}Jt.byteLength=s;function a(l){let f=0,u=0;for(let h=0,d=l.length;h<d;h++)f=l.charCodeAt(h),f<128?u+=1:f<2048?u+=2:f<55296||f>=57344?u+=3:(h++,u+=4);return u}return Jt}var _o={exports:{}},vs,sf;function d_(){if(sf)return vs;sf=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;vs=function(u,h){h=h||{};var d=typeof u;if(d==="string"&&u.length>0)return s(u);if(d==="number"&&isFinite(u))return h.long?l(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function s(u){if(u=String(u),!(u.length>100)){var h=/^(-?(?:\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(h){var d=parseFloat(h[1]),c=(h[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(u){var h=Math.abs(u);return h>=r?Math.round(u/r)+"d":h>=n?Math.round(u/n)+"h":h>=t?Math.round(u/t)+"m":h>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var h=Math.abs(u);return h>=r?f(u,h,r,"day"):h>=n?f(u,h,n,"hour"):h>=t?f(u,h,t,"minute"):h>=e?f(u,h,e,"second"):u+" ms"}function f(u,h,d,c){var p=h>=d*1.5;return Math.round(u/d)+" "+c+(p?"s":"")}return vs}var Es,uf;function h_(){if(uf)return Es;uf=1;function e(t){r.debug=r,r.default=r,r.coerce=f,r.disable=s,r.enable=i,r.enabled=a,r.humanize=d_(),r.destroy=u,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function n(h){let d=0;for(let c=0;c<h.length;c++)d=(d<<5)-d+h.charCodeAt(c),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=n;function r(h){let d,c=null,p,m;function _(...T){if(!_.enabled)return;const E=_,b=Number(new Date),A=b-(d||b);E.diff=A,E.prev=d,E.curr=b,d=b,T[0]=r.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let w=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(F,M)=>{if(F==="%%")return"%";w++;const W=r.formatters[M];if(typeof W=="function"){const q=T[w];F=W.call(E,q),T.splice(w,1),w--}return F}),r.formatArgs.call(E,T),(E.log||r.log).apply(E,T)}return _.namespace=h,_.useColors=r.useColors(),_.color=r.selectColor(h),_.extend=o,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>c!==null?c:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(h)),m),set:T=>{c=T}}),typeof r.init=="function"&&r.init(_),_}function o(h,d){const c=r(this.namespace+(typeof d>"u"?":":d)+h);return c.log=this.log,c}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let d;const c=(typeof h=="string"?h:"").split(/[\s,]+/),p=c.length;for(d=0;d<p;d++)c[d]&&(h=c[d].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function s(){const h=[...r.names.map(l),...r.skips.map(l).map(d=>"-"+d)].join(",");return r.enable(""),h}function a(h){if(h[h.length-1]==="*")return!0;let d,c;for(d=0,c=r.skips.length;d<c;d++)if(r.skips[d].test(h))return!1;for(d=0,c=r.names.length;d<c;d++)if(r.names[d].test(h))return!0;return!1}function l(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}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 r.enable(r.load()),r}return Es=e,Es}var cf;function qt(){return cf||(cf=1,function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=s(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!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 n(){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 r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;l.splice(1,0,f,"color: inherit");let u=0,h=0;l[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(u++,d==="%c"&&(h=u))}),l.splice(h,0,f)}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function i(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}e.exports=h_()(t);const{formatters:a}=e.exports;a.j=function(l){try{return JSON.stringify(l)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}(_o,_o.exports)),_o.exports}var jr={},lf;function pp(){if(lf)return jr;lf=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.decode=jr.encode=void 0;function e(n){let r="";for(let o in n)n.hasOwnProperty(o)&&(r.length&&(r+="&"),r+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return r}jr.encode=e;function t(n){let r={},o=n.split("&");for(let i=0,s=o.length;i<s;i++){let a=o[i].split("=");r[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return r}return jr.decode=t,jr}var ff;function Vo(){if(ff)return Si;ff=1;var e=ae&&ae.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.Transport=void 0;const t=zi(),n=Ln,r=Yi(),o=e(qt()),i=pp(),s=(0,o.default)("engine.io-client:transport");class a extends Error{constructor(u,h,d){super(u),this.description=h,this.context=d,this.type="TransportError"}}class l extends n.Emitter{constructor(u){super(),this.writable=!1,(0,r.installTimerFunctions)(this,u),this.opts=u,this.query=u.query,this.socket=u.socket}onError(u,h,d){return super.emitReserved("error",new a(u,h,d)),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):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(u){const h=(0,t.decodePacket)(u,this.socket.binaryType);this.onPacket(h)}onPacket(u){super.emitReserved("packet",u)}onClose(u){this.readyState="closed",super.emitReserved("close",u)}pause(u){}createUri(u,h={}){return u+"://"+this._hostname()+this._port()+this.opts.path+this._query(h)}_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 h=(0,i.encode)(u);return h.length?"?"+h:""}}return Si.Transport=l,Si}var Zt={},df;function mp(){if(df)return Zt;df=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.yeast=Zt.decode=Zt.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={};let r=0,o=0,i;function s(f){let u="";do u=e[f%t]+u,f=Math.floor(f/t);while(f>0);return u}Zt.encode=s;function a(f){let u=0;for(o=0;o<f.length;o++)u=u*t+n[f.charAt(o)];return u}Zt.decode=a;function l(){const f=s(+new Date);return f!==i?(r=0,i=f):f+"."+s(r++)}for(Zt.yeast=l;o<t;o++)n[e[o]]=o;return Zt}var Hr={},xi={},hf;function p_(){if(hf)return xi;hf=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return xi.hasCORS=e,xi}var pf;function m_(){if(pf)return Hr;pf=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.createCookieJar=Hr.XHR=void 0;const e=p_(),t=Wo();function n(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e.hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Hr.XHR=n;function r(){}return Hr.createCookieJar=r,Hr}var mf;function g_(){if(mf)return Ur;mf=1;var e=ae&&ae.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.Request=Ur.Polling=void 0;const t=Vo(),n=e(qt()),r=mp(),o=zi(),i=m_(),s=Ln,a=Yi(),l=Wo(),f=(0,n.default)("engine.io-client:polling");function u(){}const h=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class d extends t.Transport{constructor(_){if(super(_),this.polling=!1,typeof location<"u"){const E=location.protocol==="https:";let b=location.port;b||(b=E?"443":"80"),this.xd=typeof location<"u"&&_.hostname!==location.hostname||b!==_.port}const T=_&&_.forceBase64;this.supportsBinary=h&&!T,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(_){this.readyState="pausing";const T=()=>{f("paused"),this.readyState="paused",_()};if(this.polling||!this.writable){let E=0;this.polling&&(f("we are currently polling - waiting to pause"),E++,this.once("pollComplete",function(){f("pre-pause polling complete"),--E||T()})),this.writable||(f("we are currently writing - waiting to pause"),E++,this.once("drain",function(){f("pre-pause writing complete"),--E||T()}))}else T()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(_){f("polling got data %s",_);const T=E=>{if(this.readyState==="opening"&&E.type==="open"&&this.onOpen(),E.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(E)};(0,o.decodePayload)(_,this.socket.binaryType).forEach(T),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const _=()=>{f("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(f("transport open - closing"),_()):(f("transport not open - deferring close"),this.once("open",_))}write(_){this.writable=!1,(0,o.encodePayload)(_,T=>{this.doWrite(T,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const _=this.opts.secure?"https":"http",T=this.query||{};return this.opts.timestampRequests!==!1&&(T[this.opts.timestampParam]=(0,r.yeast)()),!this.supportsBinary&&!T.sid&&(T.b64=1),this.createUri(_,T)}request(_={}){return Object.assign(_,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new c(this.uri(),_)}doWrite(_,T){const E=this.request({method:"POST",data:_});E.on("success",T),E.on("error",(b,A)=>{this.onError("xhr post error",b,A)})}doPoll(){f("xhr poll");const _=this.request();_.on("data",this.onData.bind(this)),_.on("error",(T,E)=>{this.onError("xhr poll error",T,E)}),this.pollXhr=_}}Ur.Polling=d;class c extends s.Emitter{constructor(_,T){super(),(0,a.installTimerFunctions)(this,T),this.opts=T,this.method=T.method||"GET",this.uri=_,this.data=T.data!==void 0?T.data:null,this.create()}create(){var _;const T=(0,a.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");T.xdomain=!!this.opts.xd;const E=this.xhr=new i.XHR(T);try{f("xhr open %s: %s",this.method,this.uri),E.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){E.setDisableHeaderCheck&&E.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&E.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{E.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{E.setRequestHeader("Accept","*/*")}catch{}(_=this.opts.cookieJar)===null||_===void 0||_.addCookies(E),"withCredentials"in E&&(E.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(E.timeout=this.opts.requestTimeout),E.onreadystatechange=()=>{var b;E.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(E)),E.readyState===4&&(E.status===200||E.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof E.status=="number"?E.status:0)},0))},f("xhr data %s",this.data),E.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=c.requestsCount++,c.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 c.requests[this.index],this.xhr=null}}onLoad(){const _=this.xhr.responseText;_!==null&&(this.emitReserved("data",_),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Ur.Request=c,c.requestsCount=0,c.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in l.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in c.requests)c.requests.hasOwnProperty(m)&&c.requests[m].abort()}return Ur}var Ai={},Ct={},gf;function zo(){if(gf)return Ct;gf=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.defaultBinaryType=Ct.usingBrowserWebSocket=Ct.WebSocket=Ct.nextTick=void 0;const e=Wo();return Ct.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Ct.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Ct.usingBrowserWebSocket=!0,Ct.defaultBinaryType="arraybuffer",Ct}var yf;function y_(){if(yf)return Ai;yf=1;var e=ae&&ae.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.WS=void 0;const t=Vo(),n=mp(),r=Yi(),o=zo(),i=e(qt()),s=zi(),a=(0,i.default)("engine.io-client:websocket"),l=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class f extends t.Transport{constructor(h){super(h),this.supportsBinary=!h.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const h=this.uri(),d=this.opts.protocols,c=l?{}:(0,r.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=o.usingBrowserWebSocket&&!l?d?new o.WebSocket(h,d):new o.WebSocket(h):new o.WebSocket(h,d,c)}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=h=>this.onClose({description:"websocket connection closed",context:h}),this.ws.onmessage=h=>this.onData(h.data),this.ws.onerror=h=>this.onError("websocket error",h)}write(h){this.writable=!1;for(let d=0;d<h.length;d++){const c=h[d],p=d===h.length-1;(0,s.encodePacket)(c,this.supportsBinary,m=>{const _={};o.usingBrowserWebSocket||(c.options&&(_.compress=c.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(_.compress=!1));try{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,_)}catch{a("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const h=this.opts.secure?"wss":"ws",d=this.query||{};return this.opts.timestampRequests&&(d[this.opts.timestampParam]=(0,n.yeast)()),this.supportsBinary||(d.b64=1),this.createUri(h,d)}check(){return!!o.WebSocket}}return Ai.WS=f,Ai}var Ci={},vf;function v_(){if(vf)return Ci;vf=1;var e=ae&&ae.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.WT=void 0;const t=Vo(),n=zo(),r=zi(),i=(0,e(qt()).default)("engine.io-client:webtransport");class s 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(()=>{i("transport closed gracefully"),this.onClose()}).catch(l=>{i("transport closed due to %s",l),this.onError("webtransport error",l)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(l=>{const f=(0,r.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=l.readable.pipeThrough(f).getReader(),h=(0,r.createPacketEncoderStream)();h.readable.pipeTo(l.writable),this.writer=h.writable.getWriter();const d=()=>{u.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),d()}).catch(p=>{i("an error occurred while reading: %s",p)})};d();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this.writer.write(c).then(()=>this.onOpen())})}))}write(l){this.writable=!1;for(let f=0;f<l.length;f++){const u=l[f],h=f===l.length-1;this.writer.write(u).then(()=>{h&&(0,n.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this.transport)===null||l===void 0||l.close()}}return Ci.WT=s,Ci}var Ef;function gp(){if(Ef)return wi;Ef=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.transports=void 0;const e=g_(),t=y_(),n=v_();return wi.transports={websocket:t.WS,webtransport:n.WT,polling:e.Polling},wi}var Ri={},_f;function yp(){if(_f)return Ri;_f=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.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 n(i){const s=i,a=i.indexOf("["),l=i.indexOf("]");a!=-1&&l!=-1&&(i=i.substring(0,a)+i.substring(a,l).replace(/:/g,";")+i.substring(l,i.length));let f=e.exec(i||""),u={},h=14;for(;h--;)u[t[h]]=f[h]||"";return a!=-1&&l!=-1&&(u.source=s,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=r(u,u.path),u.queryKey=o(u,u.query),u}Ri.parse=n;function r(i,s){const a=/\/{2,9}/g,l=s.replace(a,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&l.splice(0,1),s.slice(-1)=="/"&&l.splice(l.length-1,1),l}function o(i,s){const a={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,f,u){f&&(a[f]=u)}),a}return Ri}var bf;function E_(){if(bf)return bi;bf=1;var e=ae&&ae.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(bi,"__esModule",{value:!0}),bi.Socket=void 0;const t=gp(),n=Yi(),r=pp(),o=yp(),i=e(qt()),s=Ln,a=zi(),l=zo(),f=(0,i.default)("engine.io-client:socket");class u extends s.Emitter{constructor(d,c={}){super(),this.binaryType=l.defaultBinaryType,this.writeBuffer=[],d&&typeof d=="object"&&(c=d,d=null),d?(d=(0,o.parse)(d),c.hostname=d.host,c.secure=d.protocol==="https"||d.protocol==="wss",c.port=d.port,d.query&&(c.query=d.query)):c.host&&(c.hostname=(0,o.parse)(c.host).host),(0,n.installTimerFunctions)(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=c.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},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,r.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(d){f('creating transport "%s"',d);const c=Object.assign({},this.opts.query);c.EIO=a.protocol,c.transport=d,this.id&&(c.sid=this.id);const p=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[d]);return f("options: %j",p),new t.transports[d](p)}open(){let d;if(this.opts.rememberUpgrade&&u.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else d=this.transports[0];this.readyState="opening";try{d=this.createTransport(d)}catch(c){f("error while creating transport: %s",c),this.transports.shift(),this.open();return}d.open(),this.setTransport(d)}setTransport(d){f("setting transport %s",d.name),this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",c=>this.onClose("transport close",c))}probe(d){f('probing transport "%s"',d);let c=this.createTransport(d),p=!1;u.priorWebsocketSuccess=!1;const m=()=>{p||(f('probe transport "%s" opened',d),c.send([{type:"ping",data:"probe"}]),c.once("packet",N=>{if(!p)if(N.type==="pong"&&N.data==="probe"){if(f('probe transport "%s" pong',d),this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;u.priorWebsocketSuccess=c.name==="websocket",f('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),w(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{f('probe transport "%s" failed',d);const F=new Error("probe error");F.transport=c.name,this.emitReserved("upgradeError",F)}}))};function _(){p||(p=!0,w(),c.close(),c=null)}const T=N=>{const F=new Error("probe error: "+N);F.transport=c.name,_(),f('probe transport "%s" failed because of error: %s',d,N),this.emitReserved("upgradeError",F)};function E(){T("transport closed")}function b(){T("socket closed")}function A(N){c&&N.name!==c.name&&(f('"%s" works - aborting "%s"',N.name,c.name),_())}const w=()=>{c.removeListener("open",m),c.removeListener("error",T),c.removeListener("close",E),this.off("close",b),this.off("upgrading",A)};c.once("open",m),c.once("error",T),c.once("close",E),this.once("close",b),this.once("upgrading",A),this.upgrades.indexOf("webtransport")!==-1&&d!=="webtransport"?this.setTimeoutFn(()=>{p||c.open()},200):c.open()}onOpen(){if(f("socket open"),this.readyState="open",u.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){f("starting upgrade probes");let d=0;const c=this.upgrades.length;for(;d<c;d++)this.probe(this.upgrades[d])}}onPacket(d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',d.type,d.data),this.emitReserved("packet",d),this.emitReserved("heartbeat"),this.resetPingTimeout(),d.type){case"open":this.onHandshake(JSON.parse(d.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const c=new Error("server error");c.code=d.data,this.onError(c);break;case"message":this.emitReserved("data",d.data),this.emitReserved("message",d.data);break}else f('packet received with socket readyState "%s"',this.readyState)}onHandshake(d){this.emitReserved("handshake",d),this.id=d.sid,this.transport.query.sid=d.sid,this.upgrades=this.filterUpgrades(d.upgrades),this.pingInterval=d.pingInterval,this.pingTimeout=d.pingTimeout,this.maxPayload=d.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 d=this.getWritablePackets();f("flushing %d packets in socket",d.length),this.transport.send(d),this.prevBufferLen=d.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(c+=(0,n.byteLength)(m)),p>0&&c>this.maxPayload)return f("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);c+=2}return f("payload size is %d (max: %d)",c,this.maxPayload),this.writeBuffer}write(d,c,p){return this.sendPacket("message",d,c,p),this}send(d,c,p){return this.sendPacket("message",d,c,p),this}sendPacket(d,c,p,m){if(typeof c=="function"&&(m=c,c=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:d,data:c,options:p};this.emitReserved("packetCreate",_),this.writeBuffer.push(_),m&&this.once("flush",m),this.flush()}close(){const d=()=>{this.onClose("forced close"),f("socket closing - telling transport to close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),d()},p=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():d()}):this.upgrading?p():d()),this}onError(d){f("socket error %j",d),u.priorWebsocketSuccess=!1,this.emitReserved("error",d),this.onClose("transport error",d)}onClose(d,c){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(f('socket close with reason: "%s"',d),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",d,c),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(d){const c=[];let p=0;const m=d.length;for(;p<m;p++)~this.transports.indexOf(d[p])&&c.push(d[p]);return c}}return bi.Socket=u,u.protocol=a.protocol,bi}var wf;function vp(){return wf||(wf=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=E_();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var n=Vo();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return n.Transport}});var r=gp();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var o=Yi();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=yp();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var s=zo();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return s.nextTick}})}(gs)),gs}var Sf;function __(){if(Sf)return _i;Sf=1;var e=ae&&ae.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_i,"__esModule",{value:!0}),_i.url=void 0;const t=vp(),r=e(qt()).default("socket.io-client:url");function o(i,s="",a){let l=i;a=a||typeof location<"u"&&location,i==null&&(i=a.protocol+"//"+a.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=a.protocol+i:i=a.host+i),/^(https?|wss?):\/\//.test(i)||(r("protocol-less url %s",i),typeof a<"u"?i=a.protocol+"//"+i:i="https://"+i),r("parse %s",i),l=t.parse(i)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const u=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+u+":"+l.port+s,l.href=l.protocol+"://"+u+(a&&a.port===l.port?"":":"+l.port),l}return _i.url=o,_i}var Pi={},Ii={},_s={},qr={},Gr={},Tf;function Ep(){if(Tf)return Gr;Tf=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.hasBinary=Gr.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,n=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob<"u"&&n.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File<"u"&&n.call(File)==="[object FileConstructor]";function i(a){return e&&(a instanceof ArrayBuffer||t(a))||r&&a instanceof Blob||o&&a instanceof File}Gr.isBinary=i;function s(a,l){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let f=0,u=a.length;f<u;f++)if(s(a[f]))return!0;return!1}if(i(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return s(a.toJSON(),!0);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&s(a[f]))return!0;return!1}return Gr.hasBinary=s,Gr}var Of;function b_(){if(Of)return qr;Of=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.reconstructPacket=qr.deconstructPacket=void 0;const e=Ep();function t(i){const s=[],a=i.data,l=i;return l.data=n(a,s),l.attachments=s.length,{packet:l,buffers:s}}qr.deconstructPacket=t;function n(i,s){if(!i)return i;if((0,e.isBinary)(i)){const a={_placeholder:!0,num:s.length};return s.push(i),a}else if(Array.isArray(i)){const a=new Array(i.length);for(let l=0;l<i.length;l++)a[l]=n(i[l],s);return a}else if(typeof i=="object"&&!(i instanceof Date)){const a={};for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=n(i[l],s));return a}return i}function r(i,s){return i.data=o(i.data,s),delete i.attachments,i}qr.reconstructPacket=r;function o(i,s){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<s.length)return s[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let a=0;a<i.length;a++)i[a]=o(i[a],s);else if(typeof i=="object")for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a]=o(i[a],s));return i}return qr}var xf;function Lu(){return xf||(xf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=Ln,n=b_(),r=Ep(),i=(0,qt().default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var a;(function(d){d[d.CONNECT=0]="CONNECT",d[d.DISCONNECT=1]="DISCONNECT",d[d.EVENT=2]="EVENT",d[d.ACK=3]="ACK",d[d.CONNECT_ERROR=4]="CONNECT_ERROR",d[d.BINARY_EVENT=5]="BINARY_EVENT",d[d.BINARY_ACK=6]="BINARY_ACK"})(a=e.PacketType||(e.PacketType={}));class l{constructor(c){this.replacer=c}encode(c){return i("encoding packet %j",c),(c.type===a.EVENT||c.type===a.ACK)&&(0,r.hasBinary)(c)?this.encodeAsBinary({type:c.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:c.nsp,data:c.data,id:c.id}):[this.encodeAsString(c)]}encodeAsString(c){let p=""+c.type;return(c.type===a.BINARY_EVENT||c.type===a.BINARY_ACK)&&(p+=c.attachments+"-"),c.nsp&&c.nsp!=="/"&&(p+=c.nsp+","),c.id!=null&&(p+=c.id),c.data!=null&&(p+=JSON.stringify(c.data,this.replacer)),i("encoded %j as %s",c,p),p}encodeAsBinary(c){const p=(0,n.deconstructPacket)(c),m=this.encodeAsString(p.packet),_=p.buffers;return _.unshift(m),_}}e.Encoder=l;function f(d){return Object.prototype.toString.call(d)==="[object Object]"}class u extends t.Emitter{constructor(c){super(),this.reviver=c}add(c){let p;if(typeof c=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(c);const m=p.type===a.BINARY_EVENT;m||p.type===a.BINARY_ACK?(p.type=m?a.EVENT:a.ACK,this.reconstructor=new h(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,r.isBinary)(c)||c.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(c),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: "+c)}decodeString(c){let p=0;const m={type:Number(c.charAt(0))};if(a[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===a.BINARY_EVENT||m.type===a.BINARY_ACK){const T=p+1;for(;c.charAt(++p)!=="-"&&p!=c.length;);const E=c.substring(T,p);if(E!=Number(E)||c.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(E)}if(c.charAt(p+1)==="/"){const T=p+1;for(;++p&&!(c.charAt(p)===","||p===c.length););m.nsp=c.substring(T,p)}else m.nsp="/";const _=c.charAt(p+1);if(_!==""&&Number(_)==_){const T=p+1;for(;++p;){const E=c.charAt(p);if(E==null||Number(E)!=E){--p;break}if(p===c.length)break}m.id=Number(c.substring(T,p+1))}if(c.charAt(++p)){const T=this.tryParse(c.substr(p));if(u.isPayloadValid(m.type,T))m.data=T;else throw new Error("invalid payload")}return i("decoded %s as %j",c,m),m}tryParse(c){try{return JSON.parse(c,this.reviver)}catch{return!1}}static isPayloadValid(c,p){switch(c){case a.CONNECT:return f(p);case a.DISCONNECT:return p===void 0;case a.CONNECT_ERROR:return typeof p=="string"||f(p);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&s.indexOf(p[0])===-1);case a.ACK:case a.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=u;class h{constructor(c){this.packet=c,this.buffers=[],this.reconPack=c}takeBinaryData(c){if(this.buffers.push(c),this.buffers.length===this.reconPack.attachments){const p=(0,n.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(_s)),_s}var Ni={},Af;function _p(){if(Af)return Ni;Af=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.on=void 0;function e(t,n,r){return t.on(n,r),function(){t.off(n,r)}}return Ni.on=e,Ni}var Cf;function bp(){if(Cf)return Ii;Cf=1;var e=ae&&ae.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.Socket=void 0;const t=Lu(),n=_p(),r=Ln,i=e(qt()).default("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends r.Emitter{constructor(f,u,h){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=f,this.nsp=u,h&&h.auth&&(this.auth=h.auth),this._opts=Object.assign({},h),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const f=this.io;this.subs=[n.on(f,"open",this.onopen.bind(this)),n.on(f,"packet",this.onpacket.bind(this)),n.on(f,"error",this.onerror.bind(this)),n.on(f,"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(...f){return f.unshift("message"),this.emit.apply(this,f),this}emit(f,...u){if(s.hasOwnProperty(f))throw new Error('"'+f.toString()+'" is a reserved event name');if(u.unshift(f),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const h={type:t.PacketType.EVENT,data:u};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof u[u.length-1]=="function"){const p=this.ids++;i("emitting packet with ack id %d",p);const m=u.pop();this._registerAckCallback(p,m),h.id=p}const d=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!d||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h),this.flags={},this}_registerAckCallback(f,u){var h;const d=(h=this.flags.timeout)!==null&&h!==void 0?h:this._opts.ackTimeout;if(d===void 0){this.acks[f]=u;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[f];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===f&&(i("removing packet with ack id %d from the buffer",f),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",f,d),u.call(this,new Error("operation has timed out"))},d);this.acks[f]=(...p)=>{this.io.clearTimeoutFn(c),u.apply(this,[null,...p])}}emitWithAck(f,...u){const h=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((d,c)=>{u.push((p,m)=>h?p?c(p):d(m):d(p)),this.emit(f,...u)})}_addToQueue(f){let u;typeof f[f.length-1]=="function"&&(u=f.pop());const h={id:this._queueSeq++,tryCount:0,pending:!1,args:f,flags:Object.assign({fromQueue:!0},this.flags)};f.push((d,...c)=>h!==this._queue[0]?void 0:(d!==null?h.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",h.id,h.tryCount),this._queue.shift(),u&&u(d)):(i("packet [%d] was successfully sent",h.id),this._queue.shift(),u&&u(null,...c)),h.pending=!1,this._drainQueue())),this._queue.push(h),this._drainQueue()}_drainQueue(f=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const u=this._queue[0];if(u.pending&&!f){i("packet [%d] has already been sent and is waiting for an ack",u.id);return}u.pending=!0,u.tryCount++,i("sending packet [%d] (try n°%d)",u.id,u.tryCount),this.flags=u.flags,this.emit.apply(this,u.args)}packet(f){f.nsp=this.nsp,this.io._packet(f)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(f=>{this._sendConnectPacket(f)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(f){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},f):f})}onerror(f){this.connected||this.emitReserved("connect_error",f)}onclose(f,u){i("close (%s)",f),this.connected=!1,delete this.id,this.emitReserved("disconnect",f,u)}onpacket(f){if(f.nsp===this.nsp)switch(f.type){case t.PacketType.CONNECT:f.data&&f.data.sid?this.onconnect(f.data.sid,f.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(f);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(f);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const h=new Error(f.data.message);h.data=f.data.data,this.emitReserved("connect_error",h);break}}onevent(f){const u=f.data||[];i("emitting event %j",u),f.id!=null&&(i("attaching ack callback to event"),u.push(this.ack(f.id))),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(f){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const h of u)h.apply(this,f)}super.emit.apply(this,f),this._pid&&f.length&&typeof f[f.length-1]=="string"&&(this._lastOffset=f[f.length-1])}ack(f){const u=this;let h=!1;return function(...d){h||(h=!0,i("sending ack %j",d),u.packet({type:t.PacketType.ACK,id:f,data:d}))}}onack(f){const u=this.acks[f.id];typeof u=="function"?(i("calling ack %s with %j",f.id,f.data),u.apply(this,f.data),delete this.acks[f.id]):i("bad ack %s",f.id)}onconnect(f,u){i("socket connected with id %s",f),this.id=f,this.recovered=u&&this._pid===u,this._pid=u,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(f=>this.emitEvent(f)),this.receiveBuffer=[],this.sendBuffer.forEach(f=>{this.notifyOutgoingListeners(f),this.packet(f)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(f=>f()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("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(f){return this.flags.compress=f,this}get volatile(){return this.flags.volatile=!0,this}timeout(f){return this.flags.timeout=f,this}onAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(f),this}prependAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(f),this}offAny(f){if(!this._anyListeners)return this;if(f){const u=this._anyListeners;for(let h=0;h<u.length;h++)if(f===u[h])return u.splice(h,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(f),this}prependAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(f),this}offAnyOutgoing(f){if(!this._anyOutgoingListeners)return this;if(f){const u=this._anyOutgoingListeners;for(let h=0;h<u.length;h++)if(f===u[h])return u.splice(h,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(f){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const h of u)h.apply(this,f.data)}}}return Ii.Socket=a,Ii}var Li={},Rf;function w_(){if(Rf)return Li;Rf=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.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 Li.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+r:t-r}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},Li}var Pf;function S_(){if(Pf)return Pi;Pf=1;var e=ae&&ae.__createBinding||(Object.create?function(c,p,m,_){_===void 0&&(_=m),Object.defineProperty(c,_,{enumerable:!0,get:function(){return p[m]}})}:function(c,p,m,_){_===void 0&&(_=m),c[_]=p[m]}),t=ae&&ae.__setModuleDefault||(Object.create?function(c,p){Object.defineProperty(c,"default",{enumerable:!0,value:p})}:function(c,p){c.default=p}),n=ae&&ae.__importStar||function(c){if(c&&c.__esModule)return c;var p={};if(c!=null)for(var m in c)m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)&&e(p,c,m);return t(p,c),p},r=ae&&ae.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.Manager=void 0;const o=vp(),i=bp(),s=n(Lu()),a=_p(),l=w_(),f=Ln,h=r(qt()).default("socket.io-client:manager");class d extends f.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,o.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 l.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 T=m.parser||s;this.encoder=new T.Encoder,this.decoder=new T.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(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new o.Socket(this.uri,this.opts);const m=this.engine,_=this;this._readyState="opening",this.skipReconnect=!1;const T=a.on(m,"open",function(){_.onopen(),p&&p()}),E=A=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",A),p?p(A):this.maybeReconnectOnOpen()},b=a.on(m,"error",E);if(this._timeout!==!1){const A=this._timeout;h("connect attempt will timeout after %d",A);const w=this.setTimeoutFn(()=>{h("connect attempt timed out after %d",A),T(),E(new Error("timeout")),m.close()},A);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(T),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(a.on(p,"ping",this.onping.bind(this)),a.on(p,"data",this.ondata.bind(this)),a.on(p,"error",this.onerror.bind(this)),a.on(p,"close",this.onclose.bind(this)),a.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){o.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){h("error",p),this.emitReserved("error",p)}socket(p,m){let _=this.nsps[p];return _?this._autoConnect&&!_.active&&_.connect():(_=new i.Socket(this,p,m),this.nsps[p]=_),_}_destroy(p){const m=Object.keys(this.nsps);for(const _ of m)if(this.nsps[_].active){h("socket %s is still active, skipping close",_);return}this._close()}_packet(p){h("writing packet %j",p);const m=this.encoder.encode(p);for(let _=0;_<m.length;_++)this.engine.write(m[_],p.options)}cleanup(){h("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){h("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)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();h("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const _=this.setTimeoutFn(()=>{p.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(T=>{T?(h("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",T)):(h("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 Pi.Manager=d,Pi}var If;function T_(){return If||(If=1,function(e,t){var n=ae&&ae.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=__(),o=S_();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=bp();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const a=n(qt()).default("socket.io-client"),l={};function f(h,d){typeof h=="object"&&(d=h,h=void 0),d=d||{};const c=r.url(h,d.path||"/socket.io"),p=c.source,m=c.id,_=c.path,T=l[m]&&_ in l[m].nsps,E=d.forceNew||d["force new connection"]||d.multiplex===!1||T;let b;return E?(a("ignoring socket cache for %s",p),b=new o.Manager(p,d)):(l[m]||(a("new io instance for %s",p),l[m]=new o.Manager(p,d)),b=l[m]),c.query&&!d.query&&(d.query=c.queryKey),b.socket(c.path,d)}t.io=f,t.connect=f,t.default=f,Object.assign(f,{Manager:o.Manager,Socket:i.Socket,io:f,connect:f});var u=Lu();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=f}(Eo,Eo.exports)),Eo.exports}var bs={},ki={},Nf;function O_(){if(Nf)return ki;Nf=1,ki.byteLength=a,ki.toByteArray=f,ki.fromByteArray=d;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function s(c){var p=c.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=c.indexOf("=");m===-1&&(m=p);var _=m===p?0:4-m%4;return[m,_]}function a(c){var p=s(c),m=p[0],_=p[1];return(m+_)*3/4-_}function l(c,p,m){return(p+m)*3/4-m}function f(c){var p,m=s(c),_=m[0],T=m[1],E=new n(l(c,_,T)),b=0,A=T>0?_-4:_,w;for(w=0;w<A;w+=4)p=t[c.charCodeAt(w)]<<18|t[c.charCodeAt(w+1)]<<12|t[c.charCodeAt(w+2)]<<6|t[c.charCodeAt(w+3)],E[b++]=p>>16&255,E[b++]=p>>8&255,E[b++]=p&255;return T===2&&(p=t[c.charCodeAt(w)]<<2|t[c.charCodeAt(w+1)]>>4,E[b++]=p&255),T===1&&(p=t[c.charCodeAt(w)]<<10|t[c.charCodeAt(w+1)]<<4|t[c.charCodeAt(w+2)]>>2,E[b++]=p>>8&255,E[b++]=p&255),E}function u(c){return e[c>>18&63]+e[c>>12&63]+e[c>>6&63]+e[c&63]}function h(c,p,m){for(var _,T=[],E=p;E<m;E+=3)_=(c[E]<<16&16711680)+(c[E+1]<<8&65280)+(c[E+2]&255),T.push(u(_));return T.join("")}function d(c){for(var p,m=c.length,_=m%3,T=[],E=16383,b=0,A=m-_;b<A;b+=E)T.push(h(c,b,b+E>A?A:b+E));return _===1?(p=c[m-1],T.push(e[p>>2]+e[p<<4&63]+"==")):_===2&&(p=(c[m-2]<<8)+c[m-1],T.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),T.join("")}return ki}var bo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Lf;function x_(){return Lf||(Lf=1,bo.read=function(e,t,n,r,o){var i,s,a=o*8-r-1,l=(1<<a)-1,f=l>>1,u=-7,h=n?o-1:0,d=n?-1:1,c=e[t+h];for(h+=d,i=c&(1<<-u)-1,c>>=-u,u+=a;u>0;i=i*256+e[t+h],h+=d,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=s*256+e[t+h],h+=d,u-=8);if(i===0)i=1-f;else{if(i===l)return s?NaN:(c?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-f}return(c?-1:1)*s*Math.pow(2,i-r)},bo.write=function(e,t,n,r,o,i){var s,a,l,f=i*8-o-1,u=(1<<f)-1,h=u>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*l-1)*Math.pow(2,o),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[n+c]=a&255,c+=p,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[n+c]=s&255,c+=p,s/=256,f-=8);e[n+c-p]|=m*128}),bo}/*!
57
57
  * The buffer module from node.js, for the browser.
58
58
  *
59
59
  * @author Feross Aboukhadijeh <https://feross.org>
60
60
  * @license MIT
61
- */var lg;function QA(){return lg||(lg=1,function(e){const t=KA(),r=XA(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,i.TYPED_ARRAY_SUPPORT=o(),!i.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 C=new Uint8Array(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,Uint8Array.prototype),Object.setPrototypeOf(C,v),C.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function s(C){if(C>a)throw new RangeError('The value "'+C+'" is invalid for option "size"');const v=new Uint8Array(C);return Object.setPrototypeOf(v,i.prototype),v}function i(C,v,b){if(typeof C=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(C)}return l(C,v,b)}i.poolSize=8192;function l(C,v,b){if(typeof C=="string")return p(C,v);if(ArrayBuffer.isView(C))return h(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(Ze(C,ArrayBuffer)||C&&Ze(C.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ze(C,SharedArrayBuffer)||C&&Ze(C.buffer,SharedArrayBuffer)))return m(C,v,b);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _=C.valueOf&&C.valueOf();if(_!=null&&_!==C)return i.from(_,v,b);const A=w(C);if(A)return A;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return i.from(C[Symbol.toPrimitive]("string"),v,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}i.from=function(C,v,b){return l(C,v,b)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function u(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function c(C,v,b){return u(C),C<=0?s(C):v!==void 0?typeof b=="string"?s(C).fill(v,b):s(C).fill(v):s(C)}i.alloc=function(C,v,b){return c(C,v,b)};function d(C){return u(C),s(C<0?0:E(C)|0)}i.allocUnsafe=function(C){return d(C)},i.allocUnsafeSlow=function(C){return d(C)};function p(C,v){if((typeof v!="string"||v==="")&&(v="utf8"),!i.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const b=T(C,v)|0;let _=s(b);const A=_.write(C,v);return A!==b&&(_=_.slice(0,A)),_}function f(C){const v=C.length<0?0:E(C.length)|0,b=s(v);for(let _=0;_<v;_+=1)b[_]=C[_]&255;return b}function h(C){if(Ze(C,Uint8Array)){const v=new Uint8Array(C);return m(v.buffer,v.byteOffset,v.byteLength)}return f(C)}function m(C,v,b){if(v<0||C.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<v+(b||0))throw new RangeError('"length" is outside of buffer bounds');let _;return v===void 0&&b===void 0?_=new Uint8Array(C):b===void 0?_=new Uint8Array(C,v):_=new Uint8Array(C,v,b),Object.setPrototypeOf(_,i.prototype),_}function w(C){if(i.isBuffer(C)){const v=E(C.length)|0,b=s(v);return b.length===0||C.copy(b,0,0,v),b}if(C.length!==void 0)return typeof C.length!="number"||It(C.length)?s(0):f(C);if(C.type==="Buffer"&&Array.isArray(C.data))return f(C.data)}function E(C){if(C>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return C|0}function y(C){return+C!=C&&(C=0),i.alloc(+C)}i.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==i.prototype},i.compare=function(v,b){if(Ze(v,Uint8Array)&&(v=i.from(v,v.offset,v.byteLength)),Ze(b,Uint8Array)&&(b=i.from(b,b.offset,b.byteLength)),!i.isBuffer(v)||!i.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===b)return 0;let _=v.length,A=b.length;for(let I=0,F=Math.min(_,A);I<F;++I)if(v[I]!==b[I]){_=v[I],A=b[I];break}return _<A?-1:A<_?1:0},i.isEncoding=function(v){switch(String(v).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}},i.concat=function(v,b){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return i.alloc(0);let _;if(b===void 0)for(b=0,_=0;_<v.length;++_)b+=v[_].length;const A=i.allocUnsafe(b);let I=0;for(_=0;_<v.length;++_){let F=v[_];if(Ze(F,Uint8Array))I+F.length>A.length?(i.isBuffer(F)||(F=i.from(F)),F.copy(A,I)):Uint8Array.prototype.set.call(A,F,I);else if(i.isBuffer(F))F.copy(A,I);else throw new TypeError('"list" argument must be an Array of Buffers');I+=F.length}return A};function T(C,v){if(i.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||Ze(C,ArrayBuffer))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const b=C.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&b===0)return 0;let A=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return bt(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return At(C).length;default:if(A)return _?-1:bt(C).length;v=(""+v).toLowerCase(),A=!0}}i.byteLength=T;function R(C,v,b){let _=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,v>>>=0,b<=v))return"";for(C||(C="utf8");;)switch(C){case"hex":return ge(this,v,b);case"utf8":case"utf-8":return Z(this,v,b);case"ascii":return K(this,v,b);case"latin1":case"binary":return re(this,v,b);case"base64":return j(this,v,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,v,b);default:if(_)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),_=!0}}i.prototype._isBuffer=!0;function S(C,v,b){const _=C[v];C[v]=C[b],C[b]=_}i.prototype.swap16=function(){const v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<v;b+=2)S(this,b,b+1);return this},i.prototype.swap32=function(){const v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<v;b+=4)S(this,b,b+3),S(this,b+1,b+2);return this},i.prototype.swap64=function(){const v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<v;b+=8)S(this,b,b+7),S(this,b+1,b+6),S(this,b+2,b+5),S(this,b+3,b+4);return this},i.prototype.toString=function(){const v=this.length;return v===0?"":arguments.length===0?Z(this,0,v):R.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(v){if(!i.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:i.compare(this,v)===0},i.prototype.inspect=function(){let v="";const b=e.INSPECT_MAX_BYTES;return v=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(v+=" ... "),"<Buffer "+v+">"},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(v,b,_,A,I){if(Ze(v,Uint8Array)&&(v=i.from(v,v.offset,v.byteLength)),!i.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(b===void 0&&(b=0),_===void 0&&(_=v?v.length:0),A===void 0&&(A=0),I===void 0&&(I=this.length),b<0||_>v.length||A<0||I>this.length)throw new RangeError("out of range index");if(A>=I&&b>=_)return 0;if(A>=I)return-1;if(b>=_)return 1;if(b>>>=0,_>>>=0,A>>>=0,I>>>=0,this===v)return 0;let F=I-A,ie=_-b;const de=Math.min(F,ie),ce=this.slice(A,I),he=v.slice(b,_);for(let _e=0;_e<de;++_e)if(ce[_e]!==he[_e]){F=ce[_e],ie=he[_e];break}return F<ie?-1:ie<F?1:0};function O(C,v,b,_,A){if(C.length===0)return-1;if(typeof b=="string"?(_=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,It(b)&&(b=A?0:C.length-1),b<0&&(b=C.length+b),b>=C.length){if(A)return-1;b=C.length-1}else if(b<0)if(A)b=0;else return-1;if(typeof v=="string"&&(v=i.from(v,_)),i.isBuffer(v))return v.length===0?-1:N(C,v,b,_,A);if(typeof v=="number")return v=v&255,typeof Uint8Array.prototype.indexOf=="function"?A?Uint8Array.prototype.indexOf.call(C,v,b):Uint8Array.prototype.lastIndexOf.call(C,v,b):N(C,[v],b,_,A);throw new TypeError("val must be string, number or Buffer")}function N(C,v,b,_,A){let I=1,F=C.length,ie=v.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(C.length<2||v.length<2)return-1;I=2,F/=2,ie/=2,b/=2}function de(he,_e){return I===1?he[_e]:he.readUInt16BE(_e*I)}let ce;if(A){let he=-1;for(ce=b;ce<F;ce++)if(de(C,ce)===de(v,he===-1?0:ce-he)){if(he===-1&&(he=ce),ce-he+1===ie)return he*I}else he!==-1&&(ce-=ce-he),he=-1}else for(b+ie>F&&(b=F-ie),ce=b;ce>=0;ce--){let he=!0;for(let _e=0;_e<ie;_e++)if(de(C,ce+_e)!==de(v,_e)){he=!1;break}if(he)return ce}return-1}i.prototype.includes=function(v,b,_){return this.indexOf(v,b,_)!==-1},i.prototype.indexOf=function(v,b,_){return O(this,v,b,_,!0)},i.prototype.lastIndexOf=function(v,b,_){return O(this,v,b,_,!1)};function M(C,v,b,_){b=Number(b)||0;const A=C.length-b;_?(_=Number(_),_>A&&(_=A)):_=A;const I=v.length;_>I/2&&(_=I/2);let F;for(F=0;F<_;++F){const ie=parseInt(v.substr(F*2,2),16);if(It(ie))return F;C[b+F]=ie}return F}function H(C,v,b,_){return Ct(bt(v,C.length-b),C,b,_)}function G(C,v,b,_){return Ct(tt(v),C,b,_)}function W(C,v,b,_){return Ct(At(v),C,b,_)}function U(C,v,b,_){return Ct(Ft(v,C.length-b),C,b,_)}i.prototype.write=function(v,b,_,A){if(b===void 0)A="utf8",_=this.length,b=0;else if(_===void 0&&typeof b=="string")A=b,_=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(_)?(_=_>>>0,A===void 0&&(A="utf8")):(A=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const I=this.length-b;if((_===void 0||_>I)&&(_=I),v.length>0&&(_<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");let F=!1;for(;;)switch(A){case"hex":return M(this,v,b,_);case"utf8":case"utf-8":return H(this,v,b,_);case"ascii":case"latin1":case"binary":return G(this,v,b,_);case"base64":return W(this,v,b,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,v,b,_);default:if(F)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),F=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(C,v,b){return v===0&&b===C.length?t.fromByteArray(C):t.fromByteArray(C.slice(v,b))}function Z(C,v,b){b=Math.min(C.length,b);const _=[];let A=v;for(;A<b;){const I=C[A];let F=null,ie=I>239?4:I>223?3:I>191?2:1;if(A+ie<=b){let de,ce,he,_e;switch(ie){case 1:I<128&&(F=I);break;case 2:de=C[A+1],(de&192)===128&&(_e=(I&31)<<6|de&63,_e>127&&(F=_e));break;case 3:de=C[A+1],ce=C[A+2],(de&192)===128&&(ce&192)===128&&(_e=(I&15)<<12|(de&63)<<6|ce&63,_e>2047&&(_e<55296||_e>57343)&&(F=_e));break;case 4:de=C[A+1],ce=C[A+2],he=C[A+3],(de&192)===128&&(ce&192)===128&&(he&192)===128&&(_e=(I&15)<<18|(de&63)<<12|(ce&63)<<6|he&63,_e>65535&&_e<1114112&&(F=_e))}}F===null?(F=65533,ie=1):F>65535&&(F-=65536,_.push(F>>>10&1023|55296),F=56320|F&1023),_.push(F),A+=ie}return L(_)}const ee=4096;function L(C){const v=C.length;if(v<=ee)return String.fromCharCode.apply(String,C);let b="",_=0;for(;_<v;)b+=String.fromCharCode.apply(String,C.slice(_,_+=ee));return b}function K(C,v,b){let _="";b=Math.min(C.length,b);for(let A=v;A<b;++A)_+=String.fromCharCode(C[A]&127);return _}function re(C,v,b){let _="";b=Math.min(C.length,b);for(let A=v;A<b;++A)_+=String.fromCharCode(C[A]);return _}function ge(C,v,b){const _=C.length;(!v||v<0)&&(v=0),(!b||b<0||b>_)&&(b=_);let A="";for(let I=v;I<b;++I)A+=dt[C[I]];return A}function ne(C,v,b){const _=C.slice(v,b);let A="";for(let I=0;I<_.length-1;I+=2)A+=String.fromCharCode(_[I]+_[I+1]*256);return A}i.prototype.slice=function(v,b){const _=this.length;v=~~v,b=b===void 0?_:~~b,v<0?(v+=_,v<0&&(v=0)):v>_&&(v=_),b<0?(b+=_,b<0&&(b=0)):b>_&&(b=_),b<v&&(b=v);const A=this.subarray(v,b);return Object.setPrototypeOf(A,i.prototype),A};function oe(C,v,b){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+v>b)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(v,b,_){v=v>>>0,b=b>>>0,_||oe(v,b,this.length);let A=this[v],I=1,F=0;for(;++F<b&&(I*=256);)A+=this[v+F]*I;return A},i.prototype.readUintBE=i.prototype.readUIntBE=function(v,b,_){v=v>>>0,b=b>>>0,_||oe(v,b,this.length);let A=this[v+--b],I=1;for(;b>0&&(I*=256);)A+=this[v+--b]*I;return A},i.prototype.readUint8=i.prototype.readUInt8=function(v,b){return v=v>>>0,b||oe(v,1,this.length),this[v]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(v,b){return v=v>>>0,b||oe(v,2,this.length),this[v]|this[v+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(v,b){return v=v>>>0,b||oe(v,2,this.length),this[v]<<8|this[v+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(v,b){return v=v>>>0,b||oe(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(v,b){return v=v>>>0,b||oe(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},i.prototype.readBigUInt64LE=it(function(v){v=v>>>0,Ge(v,"offset");const b=this[v],_=this[v+7];(b===void 0||_===void 0)&&$e(v,this.length-8);const A=b+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24,I=this[++v]+this[++v]*2**8+this[++v]*2**16+_*2**24;return BigInt(A)+(BigInt(I)<<BigInt(32))}),i.prototype.readBigUInt64BE=it(function(v){v=v>>>0,Ge(v,"offset");const b=this[v],_=this[v+7];(b===void 0||_===void 0)&&$e(v,this.length-8);const A=b*2**24+this[++v]*2**16+this[++v]*2**8+this[++v],I=this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+_;return(BigInt(A)<<BigInt(32))+BigInt(I)}),i.prototype.readIntLE=function(v,b,_){v=v>>>0,b=b>>>0,_||oe(v,b,this.length);let A=this[v],I=1,F=0;for(;++F<b&&(I*=256);)A+=this[v+F]*I;return I*=128,A>=I&&(A-=Math.pow(2,8*b)),A},i.prototype.readIntBE=function(v,b,_){v=v>>>0,b=b>>>0,_||oe(v,b,this.length);let A=b,I=1,F=this[v+--A];for(;A>0&&(I*=256);)F+=this[v+--A]*I;return I*=128,F>=I&&(F-=Math.pow(2,8*b)),F},i.prototype.readInt8=function(v,b){return v=v>>>0,b||oe(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},i.prototype.readInt16LE=function(v,b){v=v>>>0,b||oe(v,2,this.length);const _=this[v]|this[v+1]<<8;return _&32768?_|4294901760:_},i.prototype.readInt16BE=function(v,b){v=v>>>0,b||oe(v,2,this.length);const _=this[v+1]|this[v]<<8;return _&32768?_|4294901760:_},i.prototype.readInt32LE=function(v,b){return v=v>>>0,b||oe(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},i.prototype.readInt32BE=function(v,b){return v=v>>>0,b||oe(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},i.prototype.readBigInt64LE=it(function(v){v=v>>>0,Ge(v,"offset");const b=this[v],_=this[v+7];(b===void 0||_===void 0)&&$e(v,this.length-8);const A=this[v+4]+this[v+5]*2**8+this[v+6]*2**16+(_<<24);return(BigInt(A)<<BigInt(32))+BigInt(b+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24)}),i.prototype.readBigInt64BE=it(function(v){v=v>>>0,Ge(v,"offset");const b=this[v],_=this[v+7];(b===void 0||_===void 0)&&$e(v,this.length-8);const A=(b<<24)+this[++v]*2**16+this[++v]*2**8+this[++v];return(BigInt(A)<<BigInt(32))+BigInt(this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+_)}),i.prototype.readFloatLE=function(v,b){return v=v>>>0,b||oe(v,4,this.length),r.read(this,v,!0,23,4)},i.prototype.readFloatBE=function(v,b){return v=v>>>0,b||oe(v,4,this.length),r.read(this,v,!1,23,4)},i.prototype.readDoubleLE=function(v,b){return v=v>>>0,b||oe(v,8,this.length),r.read(this,v,!0,52,8)},i.prototype.readDoubleBE=function(v,b){return v=v>>>0,b||oe(v,8,this.length),r.read(this,v,!1,52,8)};function ve(C,v,b,_,A,I){if(!i.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>A||v<I)throw new RangeError('"value" argument is out of bounds');if(b+_>C.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(v,b,_,A){if(v=+v,b=b>>>0,_=_>>>0,!A){const ie=Math.pow(2,8*_)-1;ve(this,v,b,_,ie,0)}let I=1,F=0;for(this[b]=v&255;++F<_&&(I*=256);)this[b+F]=v/I&255;return b+_},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(v,b,_,A){if(v=+v,b=b>>>0,_=_>>>0,!A){const ie=Math.pow(2,8*_)-1;ve(this,v,b,_,ie,0)}let I=_-1,F=1;for(this[b+I]=v&255;--I>=0&&(F*=256);)this[b+I]=v/F&255;return b+_},i.prototype.writeUint8=i.prototype.writeUInt8=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,1,255,0),this[b]=v&255,b+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,2,65535,0),this[b]=v&255,this[b+1]=v>>>8,b+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,2,65535,0),this[b]=v>>>8,this[b+1]=v&255,b+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,4,4294967295,0),this[b+3]=v>>>24,this[b+2]=v>>>16,this[b+1]=v>>>8,this[b]=v&255,b+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,4,4294967295,0),this[b]=v>>>24,this[b+1]=v>>>16,this[b+2]=v>>>8,this[b+3]=v&255,b+4};function Ee(C,v,b,_,A){le(v,_,A,C,b,7);let I=Number(v&BigInt(4294967295));C[b++]=I,I=I>>8,C[b++]=I,I=I>>8,C[b++]=I,I=I>>8,C[b++]=I;let F=Number(v>>BigInt(32)&BigInt(4294967295));return C[b++]=F,F=F>>8,C[b++]=F,F=F>>8,C[b++]=F,F=F>>8,C[b++]=F,b}function ze(C,v,b,_,A){le(v,_,A,C,b,7);let I=Number(v&BigInt(4294967295));C[b+7]=I,I=I>>8,C[b+6]=I,I=I>>8,C[b+5]=I,I=I>>8,C[b+4]=I;let F=Number(v>>BigInt(32)&BigInt(4294967295));return C[b+3]=F,F=F>>8,C[b+2]=F,F=F>>8,C[b+1]=F,F=F>>8,C[b]=F,b+8}i.prototype.writeBigUInt64LE=it(function(v,b=0){return Ee(this,v,b,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=it(function(v,b=0){return ze(this,v,b,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(v,b,_,A){if(v=+v,b=b>>>0,!A){const de=Math.pow(2,8*_-1);ve(this,v,b,_,de-1,-de)}let I=0,F=1,ie=0;for(this[b]=v&255;++I<_&&(F*=256);)v<0&&ie===0&&this[b+I-1]!==0&&(ie=1),this[b+I]=(v/F>>0)-ie&255;return b+_},i.prototype.writeIntBE=function(v,b,_,A){if(v=+v,b=b>>>0,!A){const de=Math.pow(2,8*_-1);ve(this,v,b,_,de-1,-de)}let I=_-1,F=1,ie=0;for(this[b+I]=v&255;--I>=0&&(F*=256);)v<0&&ie===0&&this[b+I+1]!==0&&(ie=1),this[b+I]=(v/F>>0)-ie&255;return b+_},i.prototype.writeInt8=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,1,127,-128),v<0&&(v=255+v+1),this[b]=v&255,b+1},i.prototype.writeInt16LE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,2,32767,-32768),this[b]=v&255,this[b+1]=v>>>8,b+2},i.prototype.writeInt16BE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,2,32767,-32768),this[b]=v>>>8,this[b+1]=v&255,b+2},i.prototype.writeInt32LE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,4,2147483647,-2147483648),this[b]=v&255,this[b+1]=v>>>8,this[b+2]=v>>>16,this[b+3]=v>>>24,b+4},i.prototype.writeInt32BE=function(v,b,_){return v=+v,b=b>>>0,_||ve(this,v,b,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[b]=v>>>24,this[b+1]=v>>>16,this[b+2]=v>>>8,this[b+3]=v&255,b+4},i.prototype.writeBigInt64LE=it(function(v,b=0){return Ee(this,v,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=it(function(v,b=0){return ze(this,v,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(C,v,b,_,A,I){if(b+_>C.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function ue(C,v,b,_,A){return v=+v,b=b>>>0,A||te(C,v,b,4),r.write(C,v,b,_,23,4),b+4}i.prototype.writeFloatLE=function(v,b,_){return ue(this,v,b,!0,_)},i.prototype.writeFloatBE=function(v,b,_){return ue(this,v,b,!1,_)};function Me(C,v,b,_,A){return v=+v,b=b>>>0,A||te(C,v,b,8),r.write(C,v,b,_,52,8),b+8}i.prototype.writeDoubleLE=function(v,b,_){return Me(this,v,b,!0,_)},i.prototype.writeDoubleBE=function(v,b,_){return Me(this,v,b,!1,_)},i.prototype.copy=function(v,b,_,A){if(!i.isBuffer(v))throw new TypeError("argument should be a Buffer");if(_||(_=0),!A&&A!==0&&(A=this.length),b>=v.length&&(b=v.length),b||(b=0),A>0&&A<_&&(A=_),A===_||v.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),v.length-b<A-_&&(A=v.length-b+_);const I=A-_;return this===v&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,_,A):Uint8Array.prototype.set.call(v,this.subarray(_,A),b),I},i.prototype.fill=function(v,b,_,A){if(typeof v=="string"){if(typeof b=="string"?(A=b,b=0,_=this.length):typeof _=="string"&&(A=_,_=this.length),A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!i.isEncoding(A))throw new TypeError("Unknown encoding: "+A);if(v.length===1){const F=v.charCodeAt(0);(A==="utf8"&&F<128||A==="latin1")&&(v=F)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(b<0||this.length<b||this.length<_)throw new RangeError("Out of range index");if(_<=b)return this;b=b>>>0,_=_===void 0?this.length:_>>>0,v||(v=0);let I;if(typeof v=="number")for(I=b;I<_;++I)this[I]=v;else{const F=i.isBuffer(v)?v:i.from(v,A),ie=F.length;if(ie===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(I=0;I<_-b;++I)this[I+b]=F[I%ie]}return this};const xe={};function ft(C,v,b){xe[C]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(A){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:A,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}ft("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ft("ERR_INVALID_ARG_TYPE",function(C,v){return`The "${C}" argument must be of type number. Received type ${typeof v}`},TypeError),ft("ERR_OUT_OF_RANGE",function(C,v,b){let _=`The value of "${C}" is out of range.`,A=b;return Number.isInteger(b)&&Math.abs(b)>2**32?A=pt(String(b)):typeof b=="bigint"&&(A=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(A=pt(A)),A+="n"),_+=` It must be ${v}. Received ${A}`,_},RangeError);function pt(C){let v="",b=C.length;const _=C[0]==="-"?1:0;for(;b>=_+4;b-=3)v=`_${C.slice(b-3,b)}${v}`;return`${C.slice(0,b)}${v}`}function fe(C,v,b){Ge(v,"offset"),(C[v]===void 0||C[v+b]===void 0)&&$e(v,C.length-(b+1))}function le(C,v,b,_,A,I){if(C>b||C<v){const F=typeof v=="bigint"?"n":"";let ie;throw I>3?v===0||v===BigInt(0)?ie=`>= 0${F} and < 2${F} ** ${(I+1)*8}${F}`:ie=`>= -(2${F} ** ${(I+1)*8-1}${F}) and < 2 ** ${(I+1)*8-1}${F}`:ie=`>= ${v}${F} and <= ${b}${F}`,new xe.ERR_OUT_OF_RANGE("value",ie,C)}fe(_,A,I)}function Ge(C,v){if(typeof C!="number")throw new xe.ERR_INVALID_ARG_TYPE(v,"number",C)}function $e(C,v,b){throw Math.floor(C)!==C?(Ge(C,b),new xe.ERR_OUT_OF_RANGE(b||"offset","an integer",C)):v<0?new xe.ERR_BUFFER_OUT_OF_BOUNDS:new xe.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${v}`,C)}const gt=/[^+/0-9A-Za-z-_]/g;function ht(C){if(C=C.split("=")[0],C=C.trim().replace(gt,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function bt(C,v){v=v||1/0;let b;const _=C.length;let A=null;const I=[];for(let F=0;F<_;++F){if(b=C.charCodeAt(F),b>55295&&b<57344){if(!A){if(b>56319){(v-=3)>-1&&I.push(239,191,189);continue}else if(F+1===_){(v-=3)>-1&&I.push(239,191,189);continue}A=b;continue}if(b<56320){(v-=3)>-1&&I.push(239,191,189),A=b;continue}b=(A-55296<<10|b-56320)+65536}else A&&(v-=3)>-1&&I.push(239,191,189);if(A=null,b<128){if((v-=1)<0)break;I.push(b)}else if(b<2048){if((v-=2)<0)break;I.push(b>>6|192,b&63|128)}else if(b<65536){if((v-=3)<0)break;I.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((v-=4)<0)break;I.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return I}function tt(C){const v=[];for(let b=0;b<C.length;++b)v.push(C.charCodeAt(b)&255);return v}function Ft(C,v){let b,_,A;const I=[];for(let F=0;F<C.length&&!((v-=2)<0);++F)b=C.charCodeAt(F),_=b>>8,A=b%256,I.push(A),I.push(_);return I}function At(C){return t.toByteArray(ht(C))}function Ct(C,v,b,_){let A;for(A=0;A<_&&!(A+b>=v.length||A>=C.length);++A)v[A+b]=C[A];return A}function Ze(C,v){return C instanceof v||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===v.name}function It(C){return C!==C}const dt=function(){const C="0123456789abcdef",v=new Array(256);for(let b=0;b<16;++b){const _=b*16;for(let A=0;A<16;++A)v[_+A]=C[b]+C[A]}return v}();function it(C){return typeof BigInt>"u"?Wt:C}function Wt(){throw new Error("BigInt not supported")}}(pd)),pd}(function(e,t){(function(r,n){e.exports=n(iA(),gA(),TA(),n_(),AA,YA(),QA())})(be,function(r,n,a,o,s,i,l){return function(){var u={809:function(f){f.exports=r},30:function(f){f.exports=n},36:function(f){f.exports=a},300:function(f){f.exports=o},408:function(f){f.exports=l},25:function(f){f.exports=s},130:function(f){f.exports=i}},c={};function d(f){var h=c[f];if(h!==void 0)return h.exports;var m=c[f]={exports:{}};return u[f](m,m.exports,d),m.exports}d.n=function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return d.d(h,{a:h}),h},d.d=function(f,h){for(var m in h)d.o(h,m)&&!d.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:h[m]})},d.o=function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},d.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var p={};return function(){d.r(p),d.d(p,{assets:function(){return L},auth:function(){return oe},buildAnswer:function(){return BR},buildCarouselCard:function(){return LR},buildQuestion:function(){return lt},carouselCards:function(){return qa},contentInteraction:function(){return it},decodeBase64:function(){return qR},default:function(){return FR},editorialPages:function(){return z},features:function(){return b},getEntries:function(){return f.getEntries},getEntry:function(){return f.getEntry},management:function(){return Hr},payments:function(){return Rr},people:function(){return Pr},peopleEngagement:function(){return bn},qaQuestions:function(){return Ot},reportError:function(){return h.reportError},search:function(){return Ba}});var f=d(809),h=d(30),m=d(36),w={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:E,LOCALHOST:y,STAGING:T,STAGING_SPLITTER:R},ENVIRONMENTS:{PRODUCTION:S,LOCAL:O}}}=w,{HUBSPOT:{ENVIRONMENTS_MAPPING:N,EMAIL_IDS:M}}=w;let H={emailIds:{}};var G=d(300),W=d.n(G);const U=async B=>{try{const{message:q,response:D,request:V}=B;let se=q;return D?se+=` - The request was made and the server responded with ${JSON.stringify({status:D.status,data:D.data})}`:V&&(se+=" - The request was made but no response was received"),console.warn(se),await(0,h.reportError)(new Error(se)),se}catch(q){return console.warn(`Cannot handle error: ${q.message}`),q.message}},{APIS:{ASSETS_API:{BASE_URL:j,ENDPOINTS:{USERS:Z,CERTIFICATES:ee}}}}=w;var L={certificates:{create:async(B,q)=>{let D=[];try{const{data:V}=await W().post(`${j}${Z}/${B}${ee}`,q);V&&(D=V)}catch(V){await U(V)}return D}}};const{APIS:{AUTH_API:{BASE_URL:K,ENDPOINTS:{USER_PASSWORD:re,USERS:ge}}},USERS:{MYSELF:ne}}=w;var oe={userPassword:{update:async B=>{let q=null;try{q=await W().put(`${K}${ge}/${ne}${re}`,B)}catch(D){q={message:(((D||{}).response||{}).data||{}).message},await U(D)}return q}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:ve,ENDPOINTS:{ANSWERS:Ee,QUESTIONS:ze,LIKES:te}}}}=w,ue=`${ve}${ze}`;var Me={create:async({questionSlug:B},q)=>{try{await W().post(`${ue}/${encodeURIComponent(B)}${Ee}`,q)}catch(D){const V=await U(D);throw new Error(V)}},remove:async({questionSlug:B,answerSlug:q})=>{try{await W().delete(`${ue}/${encodeURIComponent(B)}${Ee}/${encodeURIComponent(q)}`)}catch(D){const V=await U(D);throw new Error(V)}},update:async({questionSlug:B,answerSlug:q},D)=>{try{return await W().put(`${ue}/${encodeURIComponent(B)}${Ee}/${encodeURIComponent(q)}`,D)}catch(V){const se=await U(V);throw new Error(se)}},like:async({questionSlug:B,answerSlug:q},D)=>{try{return await W().post(`${ue}/${encodeURIComponent(B)}${Ee}/${encodeURIComponent(q)}${te}`,D)}catch(V){const se=await U(V);throw new Error(se)}},unlike:async({questionSlug:B,answerSlug:q})=>{try{return await W().delete(`${ue}/${encodeURIComponent(B)}${Ee}/${encodeURIComponent(q)}${te}`)}catch(D){const V=await U(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:xe,ENDPOINTS:{QUESTIONS:ft}}}}=w,pt=`${xe}${ft}`;var fe={create:async B=>{try{return await W().post(pt,B)}catch(q){const D=await U(q);throw new Error(D)}},remove:async({questionSlug:B})=>{try{await W().delete(`${pt}/${encodeURIComponent(B)}`)}catch(q){const D=await U(q);throw new Error(D)}},update:async({questionSlug:B},q)=>{try{return await W().put(`${pt}/${encodeURIComponent(B)}`,q)}catch(D){const V=await U(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:le,ENDPOINTS:{REPLIES:Ge,ANSWERS:$e,QUESTIONS:gt,LIKES:ht}}}}=w,bt=`${le}${gt}`,tt=({questionSlug:B,answerSlug:q,replySlug:D},V=!1)=>{let se=`${bt}/${encodeURIComponent(B)}${$e}/${encodeURIComponent(q)}${Ge}`;return D&&(se=`${se}/${encodeURIComponent(D)}`,V&&(se=`${se}${ht}`)),se};var Ft={create:async({questionSlug:B,answerSlug:q},D)=>{try{return await W().post(tt({questionSlug:B,answerSlug:q}),D)}catch(V){const se=await U(V);throw new Error(se)}},update:async({questionSlug:B,answerSlug:q,replySlug:D},V)=>{try{return await W().put(tt({questionSlug:B,answerSlug:q,replySlug:D}),V)}catch(se){const Le=await U(se);throw new Error(Le)}},remove:async({questionSlug:B,answerSlug:q,replySlug:D})=>{try{await W().delete(tt({questionSlug:B,answerSlug:q,replySlug:D}))}catch(V){const se=await U(V);throw new Error(se)}},like:async({questionSlug:B,answerSlug:q,replySlug:D},V)=>{try{await W().post(tt({questionSlug:B,answerSlug:q,replySlug:D},!0),V)}catch(se){const Le=await U(se);throw new Error(Le)}},unlike:async({questionSlug:B,answerSlug:q,replySlug:D})=>{try{await W().delete(tt({questionSlug:B,answerSlug:q,replySlug:D},!0))}catch(V){const se=await U(V);throw new Error(se)}},getReplyUrl:tt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:At,ENDPOINTS:{QUESTIONS:Ct,ANSWERS:Ze,LIKES:It}}}}=w,dt=`${At}${Ct}`;var it={answers:Me,questions:fe,replies:Ft,likes:{create:async(B,q)=>{try{return await W().post(`${dt}/${encodeURIComponent(B)}${Ze}/${encodeURIComponent(q)}${It}`)}catch(D){const V=await U(D);throw new Error(V)}},remove:async(B,q)=>{try{return await W().delete(`${dt}/${encodeURIComponent(B)}${Ze}/${encodeURIComponent(q)}${It}`)}catch(D){const V=await U(D);throw new Error(V)}}}};const{APIS:{FEATURES_API:{BASE_URL:Wt,ENDPOINTS:{FLAGS:C}}}}=w,v=`${Wt}${C}`;var b={flags:{read:async B=>{let q=null;try{const{data:D}=await W().get(`${v}/${encodeURIComponent(B)}`);D!=null&&D.name&&(D!=null&&D.featureState)&&(q=D)}catch(D){await U(D)}return q}}};const{APIS:{MANAGEMENT_API:{BASE_URL:_,ENDPOINTS:{ACCOUNTS:A}}}}=w;var I={create:async B=>{try{await W().post(`${_}${A}`,B)}catch(q){throw await U(q),q}},read:async B=>{let q=null;try{({data:q}=await W().get(`${_}${A}/${encodeURIComponent(B)}`))}catch(D){await U(D)}return q},update:async(B,q)=>{try{await W().put(`${_}${A}/${encodeURIComponent(B)}`,q)}catch(D){throw await U(D),D}}};const{APIS:{MANAGEMENT_API:{BASE_URL:F,ENDPOINTS:{BULK_ENROLMENTS:ie}}}}=w;var de={create:async B=>{try{await W().post(`${F}${ie}`,B)}catch(q){throw await U(q),q}}};const{APIS:{MANAGEMENT_API:{BASE_URL:ce,ENDPOINTS:{EVENT_REGISTRATIONS:he}}}}=w;var _e={create:async B=>{try{await W().post(`${ce}${he}`,B)}catch(q){const D=await U(q);throw new Error(D)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Xe,ENDPOINTS:{LOGINS:Jt,LOGIN_PASSWORDLESS:Ur}}}}=w,jt=`${Xe}${Jt}`;var Hr={accounts:I,bulkEnrolments:de,eventRegistrations:_e,passwordless:{update:async B=>{try{await W().put(`${jt}/${encodeURIComponent(B)}${Ur}`)}catch(q){throw await U(q),q}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Vt,ENDPOINTS:{PRODUCTS:Sr}}}}=w,Zt=`${Vt}${Sr}`;var Rr={products:{list:async B=>{let q=[],D=B?{params:B}:{params:{}};try{const{data:V}=await W().get(Zt,D);V&&V.length&&(q=V)}catch(V){await U(V)}return q}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:er,ENDPOINTS:{BULK_ENROLMENTS:Gr}}}}=w;var zt={list:async B=>{let q=[];try{const{data:D}=await W().get(`${er}${Gr}`,{params:B});D&&D.length&&(q=D)}catch(D){await U(D)}return q}},dn=d(25);const{OK:Vn,MULTIPLE_CHOICES:zn,NOT_FOUND:pn,FORBIDDEN:Cr}=dn.StatusCodes,rt=B=>B>=Vn&&B<zn||B===Cr||B===pn,{APIS:{PEOPLE_API:{BASE_URL_V2:Wr,ENDPOINTS:{USERS:Vr}}}}=w,ur=async B=>{let q=null;try{const{data:D}=await W().get(`${Wr}${Vr}/${encodeURIComponent(B)}`,{validateStatus:rt});D&&D.id&&(q=D)}catch(D){await U(D)}return q},zr=async B=>{let q=[];try{if(B&&B.length<2)throw new Error("users list method requires at least two ids");const D=B.map(se=>`ids=${encodeURIComponent(se)}`).join("&"),V=await W().get(`${Wr}${Vr}?${D}`,{validateStatus:rt});V&&V.length&&(q=V)}catch(D){await U(D)}return q};var Yn={read:ur,update:async(B,q)=>{let D=!1;try{const{data:V}=await W().put(`${Wr}${Vr}/${encodeURIComponent(B)}`,q);D=!(!V||!V.id)}catch(V){await U(V)}return D},list:zr};const{APIS:{PEOPLE_API:{BASE_URL_V2:st,ENDPOINTS:{USERS:Kn,USER_LIKES:Xn}}},USERS:{MYSELF:Qn}}=w,Jn=`${st}${Kn}/${Qn}${Xn}`,Yr=async B=>{let q=[],D=B?{params:B}:{params:{}};try{const{data:V}=await W().get(Jn,D);V&&V.length&&(q=V)}catch(V){await U(V)}return q};var mt={list:Yr},Zn={authors:{readQuestionAuthors:async(B,q,D)=>{try{if(B.author=await ur(B.authorId),B.answers&&B.answers.length&&!D.ignoreAnswersAuthors){B.answers.sort((se,Le)=>new Date(Le.updatedAt)-new Date(se.updatedAt)),B.totalAnswers=B.answers.length;let V=B.answers;if(D.limit&&D.pageNumber){const se=D.limit*(D.pageNumber-1);V=B.answers.slice(se,se+D.limit)}for(let se of V){se.author=se.authorId&&await ur(se.authorId)||{};const[Le]=q?await Yr({contentType:w.CONTENTFUL.ANSWERS.TYPE,contentSlug:se.slug}):[null];se.userLiked=!!Le}B.answers=V}else B.answers||(B.answers=[]);return B}catch(V){throw await U(V),new Error(`Cannot read authors for question: ${V.message}`)}},readAuthors:async(B=[])=>{let q=[];try{if(Array.isArray(B)===!1)throw new Error("authorIds is not an array!");if(B&&B.length===1){const D=await ur(B[0]);D&&q.push(D)}else if(B&&B.length>1){const D=await zr(B);D&&D.length>0&&(q=D)}}catch(D){throw await U(D),new Error(`Cannot read authors: ${D.message}`)}return q}}};const{APIS:{PEOPLE_API:{BASE_URL:ea,ENDPOINTS:{REGISTRATIONS:ta}}}}=w;var ra={list:async B=>{let q=[];try{const{data:D}=await W().get(`${ea}${ta}`,{params:B});D&&D.length&&(q=D)}catch(D){await U(D)}return q}};const{APIS:{PEOPLE_API:{BASE_URL_V2:$,ENDPOINTS:{USERS:Y,USER_COURSES:X}}},USERS:{MYSELF:J}}=w,pe=`${$}${Y}/${J}${X}`;var Se={create:async B=>{try{await W().post(pe,B)}catch(q){await U(q)}},list:async B=>{let q=[],D=B?{params:B}:{params:{}};try{const{data:V}=await W().get(pe,D);V&&V.length&&(q=V)}catch(V){await U(V)}return q},update:async(B,q)=>{try{await W().put(`${pe}/${B}`,q)}catch(D){await U(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Fe,ENDPOINTS:{USERS:Et,USER_EVENTS:_t}}},USERS:{MYSELF:yt}}=w,nt=`${Fe}${Et}/${yt}${_t}`;var tr={list:async B=>{let q=[],D=B?{params:B}:{params:{}};try{const{data:V}=await W().get(nt,D);V&&V.length&&(q=V)}catch(V){await U(V)}return q}};const{APIS:{PEOPLE_API:{BASE_URL_V2:xr,ENDPOINTS:{USERS:cr,USER_LESSONS:Kr}}},USERS:{MYSELF:Xr}}=w,hn=`${xr}${cr}/${Xr}${Kr}`;var mn={create:async B=>{let q=null;try{q=await W().post(hn,B)}catch(D){await U(D)}return q},list:async B=>{let q=[],D=B?{params:B}:{params:{}};try{const{data:V}=await W().get(hn,D);V&&V.length&&(q=V)}catch(V){await U(V)}return q}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Ut,ENDPOINTS:{USERS:yn,USER_PRODUCTS:Or}}},USERS:{MYSELF:vn}}=w,fr=`${Ut}${yn}/${vn}${Or}`;var Ht={create:async B=>{let q=null;try{q=await W().post(fr,B)}catch(D){await U(D)}return q},list:async B=>{let q=[],D=B?{params:B}:{params:{}};try{const{data:V}=await W().get(fr,D);V&&V.length&&(q=V)}catch(V){await U(V)}return q},update:async(B,q)=>{try{await W().put(`${fr}/${B}`,q)}catch(D){await U(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Gt,ENDPOINTS:{USERS:dr,USER_RATINGS:pr}}},USERS:{MYSELF:yo}}=w,Yt=`${Gt}${dr}/${yo}${pr}`;var Pr={bulkEnrolments:zt,handlers:Zn,registrations:ra,users:Yn,userCourses:Se,userEvents:tr,userLessons:mn,userLikes:mt,userProducts:Ht,userRatings:{create:async B=>{let q=null;try{const{data:D}=await W().post(Yt,B);D!=null&&D.id&&(q=D)}catch(D){await U(D)}return q},update:async(B,q)=>{try{await W().put(`${Yt}/${B}`,q)}catch(D){await U(D)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:vo,ENDPOINTS:{ENQUIRY_EMAILS:go}}}}=w;var bo={create:async B=>{let q=null;try{const{data:D}=await W().post(`${vo}${go}`,B);D&&(q=D)}catch(D){await U(D)}return q}},Ma={forms:{sendEnquiryEmails:async B=>{let q=null;try{const{emailIds:D}=H;q=await bn.emails.create({...D,...B})}catch(D){await U(D)}return q}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:xt,ENDPOINTS:{USERS:$a,USER_PROPERTIES:ka}}},USERS:{MYSELF:gn}}=w;var bn={emails:bo,handlers:Ma,userProperties:{update:async(B,q)=>{try{await W().put(`${xt}${$a}/${gn}${ka}/${B}`,q)}catch(D){await U(D)}}}},En=d(130);const{APIS:{SEARCH_API:{BASE_URL:Eo,ENDPOINTS:{SEARCH:La}}}}=w,na=`${Eo}${La}`;var Ba={ask:async B=>{try{let q=null;const{data:D}=await W().get(na,{params:{question:B}});return D!=null&&D.answer&&(D!=null&&D.references)&&(D!=null&&D.version)&&(q=D),q}catch(q){const D=await U(q);throw new Error(D)}},stream:(B,q,D)=>{const V=(0,En.io)(void 0,{path:"/api/search-api/web-sockets"});function se(){V.emit("search",{question:B})}function Le(ot){D(ot),Ye(),V.disconnect()}function Ye(){V.off("connect",se),V.off("update",q),V.off("result",Le)}return V.on("connect",se),V.on("update",q),V.on("result",Le),Ye}};const{CONTENTFUL:rr}=w,{CARD_TYPES:aa}=rr.CAROUSELS;var qa={read:async(B,q)=>{try{if(!q||!q.sys||!q.sys.id)throw new Error("Invalid link to card");if(!B||!aa[B])throw new Error("Unsupported card content type");const{INCLUDE:D,SELECT:V}=aa[B];return await(0,f.getEntry)({content_type:B,"sys.id":q.sys.id,include:D,select:V},{assetDetails:!0})}catch(D){throw await U(D),new Error(`Cannot read carousel card: ${D.message}`)}}};const{CONTENTFUL:_o}=w,{INCLUDE:g,SELECT:x,TYPE:k}=_o.EDITORIAL_PAGES;var z={read:async B=>{try{return await(0,f.getEntry)({content_type:k,"fields.slug":B,include:g,select:x})}catch(q){throw await U(q),new Error(`Cannot read editorial page: ${q.message}`)}}};const{CONTENTFUL:Te}=w,{TYPE:ye,ORDER:Ce,SELECT:Oe,SKIP:at,LIMIT:ke,INCLUDE:wt}=Te.QUESTIONS;var Ot={read:async B=>{try{return await(0,f.getEntry)({content_type:ye,"fields.slug":B,include:2,select:Oe})}catch(q){throw await U(q),new Error(`Cannot read question: ${q.message}`)}},list:async(B={})=>{try{return await(0,f.getEntries)({content_type:ye,include:wt,limit:ke,order:Ce,select:Oe,skip:at,...B})}catch(q){throw await U(q),new Error(`Cannot list questions: ${q.message}`)}}},lt=async(B,q,D={ignoreAnswersAuthors:!1})=>{try{let V={};return V=await Ot.read(B),V=await Pr.handlers.authors.readQuestionAuthors(V,q,D),V}catch(V){throw await U(V),new Error(`Cannot build question: ${V.message}`)}};const{ARTICLES:{TYPE:Tt},COURSES:{TYPE:vt},EVENTS:{TYPE:Ar},LISTS:{TYPE:hr},QUESTIONS:{TYPE:Qr},LEARNING_HUB:{TYPE:Ci}}=w.CONTENTFUL,Ir=B=>B&&B.url?(Object.assign(B,{aspect:"responsiveCard",query:"q=90&fit=fill"}),B):null,_n={[Tt]:async B=>{const{authorIds:q,authorTag:D,image:V,publishedDate:se,readingTime:Le,slug:Ye,title:ot}=B,Kt=await Pr.handlers.authors.readAuthors(q),Nr=Kt&&Kt.length?Kt:D?[D]:null;return{banner:Ir(V),contributors:Nr,publishedDate:se,readingTime:Le,slug:Ye,title:ot}},[vt]:async(B,q)=>{const{banner:D,freeCourse:V,partnershipDetails:se,slug:Le,title:Ye,registered:ot}=B,Kt={banner:Ir(D),slug:Le,title:Ye,pill:V?"free":"premium",registered:!!ot};if(se){const{partners:Nr}=se;Kt.partner=Nr&&Nr.length&&se.partners[0]}if(ot===void 0&&q){const[Nr]=await Pr.userProducts.list({courseSlug:Le,isEnrolled:!0,scope:"active"});Kt.registered=!!Nr}return Kt},[Ar]:async(B,q)=>{const{bannerImage:D,defaultStartDate:V,isEventOngoing:se,slug:Le,speakers:Ye,title:ot,registered:Kt}=B,Nr=new Date(V),jR=!!Nr&&Nr<new Date;if(Ye&&Ye.length)for(const xi of Ye)xi.image=(Yc=xi.image)&&Yc.url?`${Yc.url}?w=100&h=100&fit=thumb&f=center`:null;var Yc;const Im={banner:Ir(D),dateHasPassed:jR,title:ot,slug:Le,isOngoingEvent:se,contributors:Ye,startDate:Nr,registered:!!Kt};if(Kt===void 0&&q){const[xi]=await Pr.userEvents.list({eventSlug:Le});Im.registered=!!xi}return Im},[hr]:async B=>{const{hero:q,slug:D,title:V}=B;return{banner:Ir(q),slug:D,title:V}},[Qr]:async B=>{const{answers:q,authorId:D,createdAt:V,slug:se,title:Le}=B;let Ye=null;if(D){const ot=await Pr.users.read(D);ot&&(Ye=ot)}return{answers:q&&q.length?q.length:0,contributors:Ye?[Ye]:[],createdAt:V,slug:se,title:Le}},[Ci]:B=>{const{bannerSection:q,customLabel:D,slug:V,title:se}=B;return{banner:Ir(q.image),slug:V,title:se,customLabel:D}},people:B=>{const{id:q,name:D,jobTitle:V,location:se,image:Le}=B;return{profile:Le,slug:q,title:D,text:V,secondaryText:se}}};var LR=async({contentType:B,...q}={},D)=>{try{if(!_n[B])throw new Error("Content type not supported");if(typeof _n[B]!="function")throw new Error("No builder function for content type");return B!=="people"&&q.sys&&q.sys.type&&q.sys.type==="Link"&&(q=await qa.read(B,q)),{contentType:B,...await _n[B](q,D)}}catch(V){throw await U(V),new Error(`Cannot build carousel card: ${V.message}`)}},BR=async(B,q,D={})=>{try{if(!B.replies||B.replies.length===0)return B.replies=[],B;B.replies.sort((se,Le)=>new Date(se.createdAt)-new Date(Le.createdAt)),B.totalReplies=B.totalReplies||B.replies.length;let V=B.replies;if(D.limit&&D.pageNumber){const se=D.limit*(D.pageNumber-1);V=B.replies.slice(se,se+D.limit)}for(const se of V){if(se.authorId===B.authorId){se.author=B.author,se.userLiked=!1;continue}se.author=se.authorId&&await ur(se.authorId)||{};const[Le]=q?await Yr({contentType:w.CONTENTFUL.REPLIES.TYPE,contentSlug:se.slug}):[null];se.userLiked=!!Le}return B.replies=V,B}catch(V){throw await U(V),new Error(`Cannot build replies for answer: ${V.message}`)}},DR=d(408);const qR=B=>B&&DR.Buffer.from(B,"base64").toString("ascii");function FR({contentContext:B=null,errorsContext:q=null,gtmContext:D=null,origin:V}){try{const se=(Le=>{let Ye=null;Le?Ye=Le:typeof window<"u"&&(Ye=window.origin||window.location.origin),Ye||new Error("Cannot select environment: Website not defined");let ot=null;const Kt=Ye.match(T);return Kt?ot=Kt[1].split(R)[0]:Ye===E?ot=S:Ye.includes(y)&&(ot=O),ot||new Error(`Cannot select environment: No rule for website ${Ye}`),ot})(V);return B&&(0,f.setContext)(Object.assign({},B,{environment:se})),q&&(0,h.setContext)(Object.assign({},q,{environment:se})),D&&((0,m.setContext)(Object.assign({},D,{environment:se})),(0,m.setupGTM)()),(({environment:Le})=>{const Ye=(ot=>{if(!ot)throw new Error("Cannot map environment: Environment not defined");if(!N[ot])throw new Error(`Cannot map environment: No mapping found for environment ${ot}`);return N[ot]})(Le);H.emailIds=M[Ye]})(Object.assign({},{environment:se})),se}catch(se){console.warn(`Cannot load SDK: ${se.message}`)}}}(),p}()})})(YE);var JA=YE.exports;const Vo={Off:"off",On:"on",Cookie:"cookie"},ZA=e=>{const[t]=zE(),[r,n]=Q.useState(null),[a,o]=Q.useState(!1),[s,i]=Q.useState(Vo.Off);return Q.useEffect(()=>{e&&JA.features.flags.read(e).then(l=>{i(l.featureState),n(null)}).catch(l=>{i(Vo.Off),n(l)})},[e]),Q.useEffect(()=>{switch(s){case Vo.Off:o(!1);break;case Vo.On:o(!0);break;case Vo.Cookie:o(!!t[`feature-${e}`]);break;default:o(!1)}},[s,t]),{isFeatureActive:a,error:r}};function e1(e,t,r){var n=this,a=Q.useRef(null),o=Q.useRef(0),s=Q.useRef(null),i=Q.useRef([]),l=Q.useRef(),u=Q.useRef(),c=Q.useRef(e),d=Q.useRef(!0);Q.useEffect(function(){c.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,m="maxWait"in r,w=m?Math.max(+r.maxWait||0,t):null;Q.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var E=Q.useMemo(function(){var y=function(M){var H=i.current,G=l.current;return i.current=l.current=null,o.current=M,u.current=c.current.apply(G,H)},T=function(M,H){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(M):setTimeout(M,H)},R=function(M){if(!d.current)return!1;var H=M-a.current;return!a.current||H>=t||H<0||m&&M-o.current>=w},S=function(M){return s.current=null,h&&i.current?y(M):(i.current=l.current=null,u.current)},O=function M(){var H=Date.now();if(R(H))return S(H);if(d.current){var G=t-(H-a.current),W=m?Math.min(G,w-(H-o.current)):G;T(M,W)}},N=function(){var M=Date.now(),H=R(M);if(i.current=[].slice.call(arguments),l.current=n,a.current=M,H){if(!s.current&&d.current)return o.current=a.current,T(O,t),f?y(a.current):u.current;if(m)return T(O,t),y(a.current)}return s.current||T(O,t),u.current};return N.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,i.current=a.current=l.current=s.current=null},N.isPending=function(){return!!s.current},N.flush=function(){return s.current?S(Date.now()):u.current},N},[f,m,t,w,h,p]);return E}function U0(e,t,r){var n=r===void 0?{}:r,a=n.leading,o=n.trailing;return e1(e,t,{maxWait:t,leading:a===void 0||a,trailing:o===void 0||o})}let hd;const bi=(e=!0,t=!1)=>{if(!e)return;const[r,n]=Q.useState(0)||[!1,()=>{}];Q.useEffect(()=>(o(),window.addEventListener("resize",s),()=>{clearTimeout(hd),s.flush(),window.removeEventListener("resize",s)}),[]);const a=()=>window.innerWidth,o=()=>{n(a())},s=U0(()=>{a()!==r&&(t&&(clearTimeout(hd),document.body.classList.add("is-resizing"),hd=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},H0=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[a,o]=Q.useState({current:0,past:0})||[!1,()=>{}],[s,i]=Q.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];Q.useEffect(()=>(l(),window.addEventListener("scroll",u),()=>{u.flush(),window.removeEventListener("scroll",u)}),[]);const l=()=>{const c=window.scrollY,d=a.current,p=c-d,f=p>0?"down":"up";if(o({current:c,past:d}),f==="down"){c>=e+t.down&&!s.scrollDown&&(!s.scrollUp||p>t.up)&&(r(),i({scrollUp:!1,scrollDown:!0}));return}Math.abs(p)>=t.up&&!s.scrollUp&&(n(),i({scrollUp:!0,scrollDown:!1}))},u=U0(()=>{l()},250);return a};var Ss={exports:{}};Ss.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",s="[object Array]",i="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object GeneratorFunction]",p="[object Map]",f="[object Number]",h="[object Object]",m="[object Promise]",w="[object RegExp]",E="[object Set]",y="[object String]",T="[object Symbol]",R="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",M="[object Float64Array]",H="[object Int8Array]",G="[object Int16Array]",W="[object Int32Array]",U="[object Uint8Array]",j="[object Uint8ClampedArray]",Z="[object Uint16Array]",ee="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,re=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,ne={};ne[o]=ne[s]=ne[S]=ne[O]=ne[i]=ne[l]=ne[N]=ne[M]=ne[H]=ne[G]=ne[W]=ne[p]=ne[f]=ne[h]=ne[w]=ne[E]=ne[y]=ne[T]=ne[U]=ne[j]=ne[Z]=ne[ee]=!0,ne[u]=ne[c]=ne[R]=!1;var oe=typeof be=="object"&&be&&be.Object===Object&&be,ve=typeof self=="object"&&self&&self.Object===Object&&self,Ee=oe||ve||Function("return this")(),ze=t&&!t.nodeType&&t,te=ze&&!0&&e&&!e.nodeType&&e,ue=te&&te.exports===ze;function Me(g,x){return g.set(x[0],x[1]),g}function xe(g,x){return g.add(x),g}function ft(g,x){for(var k=-1,z=g?g.length:0;++k<z&&x(g[k],k,g)!==!1;);return g}function pt(g,x){for(var k=-1,z=x.length,Te=g.length;++k<z;)g[Te+k]=x[k];return g}function fe(g,x,k,z){var Te=-1,ye=g?g.length:0;for(z&&ye&&(k=g[++Te]);++Te<ye;)k=x(k,g[Te],Te,g);return k}function le(g,x){for(var k=-1,z=Array(g);++k<g;)z[k]=x(k);return z}function Ge(g,x){return g==null?void 0:g[x]}function $e(g){var x=!1;if(g!=null&&typeof g.toString!="function")try{x=!!(g+"")}catch{}return x}function gt(g){var x=-1,k=Array(g.size);return g.forEach(function(z,Te){k[++x]=[Te,z]}),k}function ht(g,x){return function(k){return g(x(k))}}function bt(g){var x=-1,k=Array(g.size);return g.forEach(function(z){k[++x]=z}),k}var tt=Array.prototype,Ft=Function.prototype,At=Object.prototype,Ct=Ee["__core-js_shared__"],Ze=function(){var g=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),It=Ft.toString,dt=At.hasOwnProperty,it=At.toString,Wt=RegExp("^"+It.call(dt).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=ue?Ee.Buffer:void 0,v=Ee.Symbol,b=Ee.Uint8Array,_=ht(Object.getPrototypeOf,Object),A=Object.create,I=At.propertyIsEnumerable,F=tt.splice,ie=Object.getOwnPropertySymbols,de=C?C.isBuffer:void 0,ce=ht(Object.keys,Object),he=Gt(Ee,"DataView"),_e=Gt(Ee,"Map"),Xe=Gt(Ee,"Promise"),Jt=Gt(Ee,"Set"),Ur=Gt(Ee,"WeakMap"),jt=Gt(Object,"create"),Hr=xt(he),Vt=xt(_e),Sr=xt(Xe),Zt=xt(Jt),Rr=xt(Ur),er=v?v.prototype:void 0,Gr=er?er.valueOf:void 0;function zt(g){var x=-1,k=g?g.length:0;for(this.clear();++x<k;){var z=g[x];this.set(z[0],z[1])}}function dn(){this.__data__=jt?jt(null):{}}function Vn(g){return this.has(g)&&delete this.__data__[g]}function zn(g){var x=this.__data__;if(jt){var k=x[g];return k===n?void 0:k}return dt.call(x,g)?x[g]:void 0}function pn(g){var x=this.__data__;return jt?x[g]!==void 0:dt.call(x,g)}function Cr(g,x){var k=this.__data__;return k[g]=jt&&x===void 0?n:x,this}zt.prototype.clear=dn,zt.prototype.delete=Vn,zt.prototype.get=zn,zt.prototype.has=pn,zt.prototype.set=Cr;function rt(g){var x=-1,k=g?g.length:0;for(this.clear();++x<k;){var z=g[x];this.set(z[0],z[1])}}function Wr(){this.__data__=[]}function Vr(g){var x=this.__data__,k=J(x,g);if(k<0)return!1;var z=x.length-1;return k==z?x.pop():F.call(x,k,1),!0}function ur(g){var x=this.__data__,k=J(x,g);return k<0?void 0:x[k][1]}function zr(g){return J(this.__data__,g)>-1}function Yn(g,x){var k=this.__data__,z=J(k,g);return z<0?k.push([g,x]):k[z][1]=x,this}rt.prototype.clear=Wr,rt.prototype.delete=Vr,rt.prototype.get=ur,rt.prototype.has=zr,rt.prototype.set=Yn;function st(g){var x=-1,k=g?g.length:0;for(this.clear();++x<k;){var z=g[x];this.set(z[0],z[1])}}function Kn(){this.__data__={hash:new zt,map:new(_e||rt),string:new zt}}function Xn(g){return Ht(this,g).delete(g)}function Qn(g){return Ht(this,g).get(g)}function Jn(g){return Ht(this,g).has(g)}function Yr(g,x){return Ht(this,g).set(g,x),this}st.prototype.clear=Kn,st.prototype.delete=Xn,st.prototype.get=Qn,st.prototype.has=Jn,st.prototype.set=Yr;function mt(g){this.__data__=new rt(g)}function Zn(){this.__data__=new rt}function ea(g){return this.__data__.delete(g)}function ta(g){return this.__data__.get(g)}function ra(g){return this.__data__.has(g)}function $(g,x){var k=this.__data__;if(k instanceof rt){var z=k.__data__;if(!_e||z.length<r-1)return z.push([g,x]),this;k=this.__data__=new st(z)}return k.set(g,x),this}mt.prototype.clear=Zn,mt.prototype.delete=ea,mt.prototype.get=ta,mt.prototype.has=ra,mt.prototype.set=$;function Y(g,x){var k=bn(g)||gn(g)?le(g.length,String):[],z=k.length,Te=!!z;for(var ye in g)(x||dt.call(g,ye))&&!(Te&&(ye=="length"||vo(ye,z)))&&k.push(ye);return k}function X(g,x,k){var z=g[x];(!(dt.call(g,x)&&ka(z,k))||k===void 0&&!(x in g))&&(g[x]=k)}function J(g,x){for(var k=g.length;k--;)if(ka(g[k][0],x))return k;return-1}function pe(g,x){return g&&Or(x,Da(x),g)}function Se(g,x,k,z,Te,ye,Ce){var Oe;if(z&&(Oe=ye?z(g,Te,ye,Ce):z(g)),Oe!==void 0)return Oe;if(!rr(g))return g;var at=bn(g);if(at){if(Oe=yo(g),!x)return yn(g,Oe)}else{var ke=pr(g),wt=ke==c||ke==d;if(La(g))return tr(g,x);if(ke==h||ke==o||wt&&!ye){if($e(g))return ye?g:{};if(Oe=Yt(wt?{}:g),!x)return vn(g,pe(Oe,g))}else{if(!ne[ke])return ye?g:{};Oe=Pr(g,ke,Se,x)}}Ce||(Ce=new mt);var Ot=Ce.get(g);if(Ot)return Ot;if(Ce.set(g,Oe),!at)var lt=k?fr(g):Da(g);return ft(lt||g,function(Tt,vt){lt&&(vt=Tt,Tt=g[vt]),X(Oe,vt,Se(Tt,x,k,z,vt,g,Ce))}),Oe}function Fe(g){return rr(g)?A(g):{}}function Et(g,x,k){var z=x(g);return bn(g)?z:pt(z,k(g))}function _t(g){return it.call(g)}function yt(g){if(!rr(g)||bo(g))return!1;var x=na(g)||$e(g)?Wt:re;return x.test(xt(g))}function nt(g){if(!Ma(g))return ce(g);var x=[];for(var k in Object(g))dt.call(g,k)&&k!="constructor"&&x.push(k);return x}function tr(g,x){if(x)return g.slice();var k=new g.constructor(g.length);return g.copy(k),k}function xr(g){var x=new g.constructor(g.byteLength);return new b(x).set(new b(g)),x}function cr(g,x){var k=x?xr(g.buffer):g.buffer;return new g.constructor(k,g.byteOffset,g.byteLength)}function Kr(g,x,k){var z=x?k(gt(g),!0):gt(g);return fe(z,Me,new g.constructor)}function Xr(g){var x=new g.constructor(g.source,K.exec(g));return x.lastIndex=g.lastIndex,x}function hn(g,x,k){var z=x?k(bt(g),!0):bt(g);return fe(z,xe,new g.constructor)}function mn(g){return Gr?Object(Gr.call(g)):{}}function Ut(g,x){var k=x?xr(g.buffer):g.buffer;return new g.constructor(k,g.byteOffset,g.length)}function yn(g,x){var k=-1,z=g.length;for(x||(x=Array(z));++k<z;)x[k]=g[k];return x}function Or(g,x,k,z){k||(k={});for(var Te=-1,ye=x.length;++Te<ye;){var Ce=x[Te],Oe=z?z(k[Ce],g[Ce],Ce,k,g):void 0;X(k,Ce,Oe===void 0?g[Ce]:Oe)}return k}function vn(g,x){return Or(g,dr(g),x)}function fr(g){return Et(g,Da,dr)}function Ht(g,x){var k=g.__data__;return go(x)?k[typeof x=="string"?"string":"hash"]:k.map}function Gt(g,x){var k=Ge(g,x);return yt(k)?k:void 0}var dr=ie?ht(ie,Object):qa,pr=_t;(he&&pr(new he(new ArrayBuffer(1)))!=O||_e&&pr(new _e)!=p||Xe&&pr(Xe.resolve())!=m||Jt&&pr(new Jt)!=E||Ur&&pr(new Ur)!=R)&&(pr=function(g){var x=it.call(g),k=x==h?g.constructor:void 0,z=k?xt(k):void 0;if(z)switch(z){case Hr:return O;case Vt:return p;case Sr:return m;case Zt:return E;case Rr:return R}return x});function yo(g){var x=g.length,k=g.constructor(x);return x&&typeof g[0]=="string"&&dt.call(g,"index")&&(k.index=g.index,k.input=g.input),k}function Yt(g){return typeof g.constructor=="function"&&!Ma(g)?Fe(_(g)):{}}function Pr(g,x,k,z){var Te=g.constructor;switch(x){case S:return xr(g);case i:case l:return new Te(+g);case O:return cr(g,z);case N:case M:case H:case G:case W:case U:case j:case Z:case ee:return Ut(g,z);case p:return Kr(g,z,k);case f:case y:return new Te(g);case w:return Xr(g);case E:return hn(g,z,k);case T:return mn(g)}}function vo(g,x){return x=x??a,!!x&&(typeof g=="number"||ge.test(g))&&g>-1&&g%1==0&&g<x}function go(g){var x=typeof g;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?g!=="__proto__":g===null}function bo(g){return!!Ze&&Ze in g}function Ma(g){var x=g&&g.constructor,k=typeof x=="function"&&x.prototype||At;return g===k}function xt(g){if(g!=null){try{return It.call(g)}catch{}try{return g+""}catch{}}return""}function $a(g){return Se(g,!0,!0)}function ka(g,x){return g===x||g!==g&&x!==x}function gn(g){return Eo(g)&&dt.call(g,"callee")&&(!I.call(g,"callee")||it.call(g)==o)}var bn=Array.isArray;function En(g){return g!=null&&Ba(g.length)&&!na(g)}function Eo(g){return aa(g)&&En(g)}var La=de||_o;function na(g){var x=rr(g)?it.call(g):"";return x==c||x==d}function Ba(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=a}function rr(g){var x=typeof g;return!!g&&(x=="object"||x=="function")}function aa(g){return!!g&&typeof g=="object"}function Da(g){return En(g)?Y(g):nt(g)}function qa(){return[]}function _o(){return!1}e.exports=$a})(Ss,Ss.exports);var t1=Ss.exports;const r1=wr(t1);var n1="Expected a function",G0="__lodash_hash_undefined__",W0=1/0,a1=9007199254740991,o1="[object Function]",i1="[object GeneratorFunction]",s1="[object Symbol]",l1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u1=/^\w*$/,c1=/^\./,f1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d1=/[\\^$.*+?()[\]{}|]/g,p1=/\\(\\)?/g,h1=/^\[object .+?Constructor\]$/,m1=/^(?:0|[1-9]\d*)$/,y1=typeof be=="object"&&be&&be.Object===Object&&be,v1=typeof self=="object"&&self&&self.Object===Object&&self,jh=y1||v1||Function("return this")();function g1(e,t){return e==null?void 0:e[t]}function b1(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var E1=Array.prototype,_1=Function.prototype,V0=Object.prototype,md=jh["__core-js_shared__"],ug=function(){var e=/[^.]+$/.exec(md&&md.keys&&md.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),z0=_1.toString,Js=V0.hasOwnProperty,Y0=V0.toString,w1=RegExp("^"+z0.call(Js).replace(d1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cg=jh.Symbol,T1=E1.splice,S1=K0(jh,"Map"),ai=K0(Object,"create"),fg=cg?cg.prototype:void 0,dg=fg?fg.toString:void 0;function Ea(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 R1(){this.__data__=ai?ai(null):{}}function C1(e){return this.has(e)&&delete this.__data__[e]}function x1(e){var t=this.__data__;if(ai){var r=t[e];return r===G0?void 0:r}return Js.call(t,e)?t[e]:void 0}function O1(e){var t=this.__data__;return ai?t[e]!==void 0:Js.call(t,e)}function P1(e,t){var r=this.__data__;return r[e]=ai&&t===void 0?G0:t,this}Ea.prototype.clear=R1;Ea.prototype.delete=C1;Ea.prototype.get=x1;Ea.prototype.has=O1;Ea.prototype.set=P1;function fo(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 A1(){this.__data__=[]}function I1(e){var t=this.__data__,r=Zs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():T1.call(t,r,1),!0}function N1(e){var t=this.__data__,r=Zs(t,e);return r<0?void 0:t[r][1]}function M1(e){return Zs(this.__data__,e)>-1}function $1(e,t){var r=this.__data__,n=Zs(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}fo.prototype.clear=A1;fo.prototype.delete=I1;fo.prototype.get=N1;fo.prototype.has=M1;fo.prototype.set=$1;function Sa(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 k1(){this.__data__={hash:new Ea,map:new(S1||fo),string:new Ea}}function L1(e){return el(this,e).delete(e)}function B1(e){return el(this,e).get(e)}function D1(e){return el(this,e).has(e)}function q1(e,t){return el(this,e).set(e,t),this}Sa.prototype.clear=k1;Sa.prototype.delete=L1;Sa.prototype.get=B1;Sa.prototype.has=D1;Sa.prototype.set=q1;function F1(e,t,r){var n=e[t];(!(Js.call(e,t)&&X0(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Zs(e,t){for(var r=e.length;r--;)if(X0(e[r][0],t))return r;return-1}function j1(e){if(!Rs(e)||Y1(e))return!1;var t=J1(e)||b1(e)?w1:h1;return t.test(Q1(e))}function U1(e,t,r,n){if(!Rs(e))return e;t=V1(t,e)?[t]:G1(t);for(var a=-1,o=t.length,s=o-1,i=e;i!=null&&++a<o;){var l=X1(t[a]),u=r;if(a!=s){var c=i[l];u=n?n(c,l,i):void 0,u===void 0&&(u=Rs(c)?c:W1(t[a+1])?[]:{})}F1(i,l,u),i=i[l]}return e}function H1(e){if(typeof e=="string")return e;if(Hh(e))return dg?dg.call(e):"";var t=e+"";return t=="0"&&1/e==-W0?"-0":t}function G1(e){return Q0(e)?e:K1(e)}function el(e,t){var r=e.__data__;return z1(t)?r[typeof t=="string"?"string":"hash"]:r.map}function K0(e,t){var r=g1(e,t);return j1(r)?r:void 0}function W1(e,t){return t=t??a1,!!t&&(typeof e=="number"||m1.test(e))&&e>-1&&e%1==0&&e<t}function V1(e,t){if(Q0(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Hh(e)?!0:u1.test(e)||!l1.test(e)||t!=null&&e in Object(t)}function z1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Y1(e){return!!ug&&ug in e}var K1=Uh(function(e){e=eI(e);var t=[];return c1.test(e)&&t.push(""),e.replace(f1,function(r,n,a,o){t.push(a?o.replace(p1,"$1"):n||r)}),t});function X1(e){if(typeof e=="string"||Hh(e))return e;var t=e+"";return t=="0"&&1/e==-W0?"-0":t}function Q1(e){if(e!=null){try{return z0.call(e)}catch{}try{return e+""}catch{}}return""}function Uh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(n1);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s),s};return r.cache=new(Uh.Cache||Sa),r}Uh.Cache=Sa;function X0(e,t){return e===t||e!==e&&t!==t}var Q0=Array.isArray;function J1(e){var t=Rs(e)?Y0.call(e):"";return t==o1||t==i1}function Rs(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Z1(e){return!!e&&typeof e=="object"}function Hh(e){return typeof e=="symbol"||Z1(e)&&Y0.call(e)==s1}function eI(e){return e==null?"":H1(e)}function tI(e,t,r){return e==null?e:U1(e,t,r)}var rI=tI;const nI=wr(rI),aI=(e,t)=>{Array.isArray(t)||(t=[t]);const r=r1(e);return t.forEach(({type:n,value:a})=>{nI(r,n,a)}),r},J0=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},Z0=(e,t,r)=>{let n=r.mobile;for(const a in t){const o=parseInt(String(t[a]));if(e>=o)n=r[o];else if(e<o)break}return n},pg=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),oI=e=>{let o;try{o=new Date().getTime()-new Date(e).getTime()}catch{return""}const s=o/36e5,i=Math.floor(o/864e5);if(i<1)return s<1?{path:"now"}:{path:"hours",number:Math.floor(s)};if(i<7)return{path:"days",number:i};const l=Math.floor(i/7);return l<=52?{path:"weeks",number:l}:{path:"years",number:Math.floor(i/365)}},iI=e=>new Promise(t=>setTimeout(t,e)),Gh={apolitical:"Apolitical",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 (coming soon)",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_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_delete:"Delete",discussion_delete_deleting:"Deleting...",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_action_answer:"answer",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_answer_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_answer_likes_like:"Like this answer",discussion_answer_likes_unlike:"Unlike answer",discussion_reply_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_reply_likes_like:"Like this reply",discussion_reply_likes_unlike:"Unlike reply",discussion_thread_reply_button:"Reply",discussion_thread_report_subject:"Report a post on Apolitical",discussion_thread_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
61
+ */var kf;function A_(){return kf||(kf=1,function(e){const t=O_(),n=x_(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=E,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.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 i(){try{const S=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(S,g),S.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(S){if(S>o)throw new RangeError('The value "'+S+'" is invalid for option "size"');const g=new Uint8Array(S);return Object.setPrototypeOf(g,a.prototype),g}function a(S,g,v){if(typeof S=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(S)}return l(S,g,v)}a.poolSize=8192;function l(S,g,v){if(typeof S=="string")return d(S,g);if(ArrayBuffer.isView(S))return p(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if($e(S,ArrayBuffer)||S&&$e(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($e(S,SharedArrayBuffer)||S&&$e(S.buffer,SharedArrayBuffer)))return m(S,g,v);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const x=S.valueOf&&S.valueOf();if(x!=null&&x!==S)return a.from(x,g,v);const P=_(S);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return a.from(S[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}a.from=function(S,g,v){return l(S,g,v)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function u(S,g,v){return f(S),S<=0?s(S):g!==void 0?typeof v=="string"?s(S).fill(g,v):s(S).fill(g):s(S)}a.alloc=function(S,g,v){return u(S,g,v)};function h(S){return f(S),s(S<0?0:T(S)|0)}a.allocUnsafe=function(S){return h(S)},a.allocUnsafeSlow=function(S){return h(S)};function d(S,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const v=b(S,g)|0;let x=s(v);const P=x.write(S,g);return P!==v&&(x=x.slice(0,P)),x}function c(S){const g=S.length<0?0:T(S.length)|0,v=s(g);for(let x=0;x<g;x+=1)v[x]=S[x]&255;return v}function p(S){if($e(S,Uint8Array)){const g=new Uint8Array(S);return m(g.buffer,g.byteOffset,g.byteLength)}return c(S)}function m(S,g,v){if(g<0||S.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<g+(v||0))throw new RangeError('"length" is outside of buffer bounds');let x;return g===void 0&&v===void 0?x=new Uint8Array(S):v===void 0?x=new Uint8Array(S,g):x=new Uint8Array(S,g,v),Object.setPrototypeOf(x,a.prototype),x}function _(S){if(a.isBuffer(S)){const g=T(S.length)|0,v=s(g);return v.length===0||S.copy(v,0,0,g),v}if(S.length!==void 0)return typeof S.length!="number"||St(S.length)?s(0):c(S);if(S.type==="Buffer"&&Array.isArray(S.data))return c(S.data)}function T(S){if(S>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return S|0}function E(S){return+S!=S&&(S=0),a.alloc(+S)}a.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==a.prototype},a.compare=function(g,v){if($e(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),$e(v,Uint8Array)&&(v=a.from(v,v.offset,v.byteLength)),!a.isBuffer(g)||!a.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let x=g.length,P=v.length;for(let U=0,H=Math.min(x,P);U<H;++U)if(g[U]!==v[U]){x=g[U],P=v[U];break}return x<P?-1:P<x?1:0},a.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}},a.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return a.alloc(0);let x;if(v===void 0)for(v=0,x=0;x<g.length;++x)v+=g[x].length;const P=a.allocUnsafe(v);let U=0;for(x=0;x<g.length;++x){let H=g[x];if($e(H,Uint8Array))U+H.length>P.length?(a.isBuffer(H)||(H=a.from(H)),H.copy(P,U)):Uint8Array.prototype.set.call(P,H,U);else if(a.isBuffer(H))H.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=H.length}return P};function b(S,g){if(a.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||$e(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const v=S.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&v===0)return 0;let P=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return Rt(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return wt(S).length;default:if(P)return x?-1:Rt(S).length;g=(""+g).toLowerCase(),P=!0}}a.byteLength=b;function A(S,g,v){let x=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(S||(S="utf8");;)switch(S){case"hex":return de(this,g,v);case"utf8":case"utf-8":return oe(this,g,v);case"ascii":return z(this,g,v);case"latin1":case"binary":return J(this,g,v);case"base64":return Y(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,g,v);default:if(x)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),x=!0}}a.prototype._isBuffer=!0;function w(S,g,v){const x=S[g];S[g]=S[v],S[v]=x}a.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 v=0;v<g;v+=2)w(this,v,v+1);return this},a.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 v=0;v<g;v+=4)w(this,v,v+3),w(this,v+1,v+2);return this},a.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 v=0;v<g;v+=8)w(this,v,v+7),w(this,v+1,v+6),w(this,v+2,v+5),w(this,v+3,v+4);return this},a.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?oe(this,0,g):A.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(g){if(!a.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:a.compare(this,g)===0},a.prototype.inspect=function(){let g="";const v=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(g,v,x,P,U){if($e(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),x===void 0&&(x=g?g.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),v<0||x>g.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&v>=x)return 0;if(P>=U)return-1;if(v>=x)return 1;if(v>>>=0,x>>>=0,P>>>=0,U>>>=0,this===g)return 0;let H=U-P,le=x-v;const be=Math.min(H,le),we=this.slice(P,U),Se=g.slice(v,x);for(let he=0;he<be;++he)if(we[he]!==Se[he]){H=we[he],le=Se[he];break}return H<le?-1:le<H?1:0};function N(S,g,v,x,P){if(S.length===0)return-1;if(typeof v=="string"?(x=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,St(v)&&(v=P?0:S.length-1),v<0&&(v=S.length+v),v>=S.length){if(P)return-1;v=S.length-1}else if(v<0)if(P)v=0;else return-1;if(typeof g=="string"&&(g=a.from(g,x)),a.isBuffer(g))return g.length===0?-1:F(S,g,v,x,P);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(S,g,v):Uint8Array.prototype.lastIndexOf.call(S,g,v):F(S,[g],v,x,P);throw new TypeError("val must be string, number or Buffer")}function F(S,g,v,x,P){let U=1,H=S.length,le=g.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(S.length<2||g.length<2)return-1;U=2,H/=2,le/=2,v/=2}function be(Se,he){return U===1?Se[he]:Se.readUInt16BE(he*U)}let we;if(P){let Se=-1;for(we=v;we<H;we++)if(be(S,we)===be(g,Se===-1?0:we-Se)){if(Se===-1&&(Se=we),we-Se+1===le)return Se*U}else Se!==-1&&(we-=we-Se),Se=-1}else for(v+le>H&&(v=H-le),we=v;we>=0;we--){let Se=!0;for(let he=0;he<le;he++)if(be(S,we+he)!==be(g,he)){Se=!1;break}if(Se)return we}return-1}a.prototype.includes=function(g,v,x){return this.indexOf(g,v,x)!==-1},a.prototype.indexOf=function(g,v,x){return N(this,g,v,x,!0)},a.prototype.lastIndexOf=function(g,v,x){return N(this,g,v,x,!1)};function M(S,g,v,x){v=Number(v)||0;const P=S.length-v;x?(x=Number(x),x>P&&(x=P)):x=P;const U=g.length;x>U/2&&(x=U/2);let H;for(H=0;H<x;++H){const le=parseInt(g.substr(H*2,2),16);if(St(le))return H;S[v+H]=le}return H}function W(S,g,v,x){return gt(Rt(g,S.length-v),S,v,x)}function q(S,g,v,x){return gt(mt(g),S,v,x)}function V(S,g,v,x){return gt(wt(g),S,v,x)}function j(S,g,v,x){return gt(br(g,S.length-v),S,v,x)}a.prototype.write=function(g,v,x,P){if(v===void 0)P="utf8",x=this.length,v=0;else if(x===void 0&&typeof v=="string")P=v,x=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(x)?(x=x>>>0,P===void 0&&(P="utf8")):(P=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-v;if((x===void 0||x>U)&&(x=U),g.length>0&&(x<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let H=!1;for(;;)switch(P){case"hex":return M(this,g,v,x);case"utf8":case"utf-8":return W(this,g,v,x);case"ascii":case"latin1":case"binary":return q(this,g,v,x);case"base64":return V(this,g,v,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,g,v,x);default:if(H)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),H=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(S,g,v){return g===0&&v===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(g,v))}function oe(S,g,v){v=Math.min(S.length,v);const x=[];let P=g;for(;P<v;){const U=S[P];let H=null,le=U>239?4:U>223?3:U>191?2:1;if(P+le<=v){let be,we,Se,he;switch(le){case 1:U<128&&(H=U);break;case 2:be=S[P+1],(be&192)===128&&(he=(U&31)<<6|be&63,he>127&&(H=he));break;case 3:be=S[P+1],we=S[P+2],(be&192)===128&&(we&192)===128&&(he=(U&15)<<12|(be&63)<<6|we&63,he>2047&&(he<55296||he>57343)&&(H=he));break;case 4:be=S[P+1],we=S[P+2],Se=S[P+3],(be&192)===128&&(we&192)===128&&(Se&192)===128&&(he=(U&15)<<18|(be&63)<<12|(we&63)<<6|Se&63,he>65535&&he<1114112&&(H=he))}}H===null?(H=65533,le=1):H>65535&&(H-=65536,x.push(H>>>10&1023|55296),H=56320|H&1023),x.push(H),P+=le}return k(x)}const K=4096;function k(S){const g=S.length;if(g<=K)return String.fromCharCode.apply(String,S);let v="",x=0;for(;x<g;)v+=String.fromCharCode.apply(String,S.slice(x,x+=K));return v}function z(S,g,v){let x="";v=Math.min(S.length,v);for(let P=g;P<v;++P)x+=String.fromCharCode(S[P]&127);return x}function J(S,g,v){let x="";v=Math.min(S.length,v);for(let P=g;P<v;++P)x+=String.fromCharCode(S[P]);return x}function de(S,g,v){const x=S.length;(!g||g<0)&&(g=0),(!v||v<0||v>x)&&(v=x);let P="";for(let U=g;U<v;++U)P+=tt[S[U]];return P}function X(S,g,v){const x=S.slice(g,v);let P="";for(let U=0;U<x.length-1;U+=2)P+=String.fromCharCode(x[U]+x[U+1]*256);return P}a.prototype.slice=function(g,v){const x=this.length;g=~~g,v=v===void 0?x:~~v,g<0?(g+=x,g<0&&(g=0)):g>x&&(g=x),v<0?(v+=x,v<0&&(v=0)):v>x&&(v=x),v<g&&(v=g);const P=this.subarray(g,v);return Object.setPrototypeOf(P,a.prototype),P};function ee(S,g,v){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+g>v)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(g,v,x){g=g>>>0,v=v>>>0,x||ee(g,v,this.length);let P=this[g],U=1,H=0;for(;++H<v&&(U*=256);)P+=this[g+H]*U;return P},a.prototype.readUintBE=a.prototype.readUIntBE=function(g,v,x){g=g>>>0,v=v>>>0,x||ee(g,v,this.length);let P=this[g+--v],U=1;for(;v>0&&(U*=256);)P+=this[g+--v]*U;return P},a.prototype.readUint8=a.prototype.readUInt8=function(g,v){return g=g>>>0,v||ee(g,1,this.length),this[g]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||ee(g,2,this.length),this[g]|this[g+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||ee(g,2,this.length),this[g]<<8|this[g+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||ee(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||ee(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},a.prototype.readBigUInt64LE=Ye(function(g){g=g>>>0,ze(g,"offset");const v=this[g],x=this[g+7];(v===void 0||x===void 0)&&De(g,this.length-8);const P=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,U=this[++g]+this[++g]*2**8+this[++g]*2**16+x*2**24;return BigInt(P)+(BigInt(U)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ye(function(g){g=g>>>0,ze(g,"offset");const v=this[g],x=this[g+7];(v===void 0||x===void 0)&&De(g,this.length-8);const P=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],U=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+x;return(BigInt(P)<<BigInt(32))+BigInt(U)}),a.prototype.readIntLE=function(g,v,x){g=g>>>0,v=v>>>0,x||ee(g,v,this.length);let P=this[g],U=1,H=0;for(;++H<v&&(U*=256);)P+=this[g+H]*U;return U*=128,P>=U&&(P-=Math.pow(2,8*v)),P},a.prototype.readIntBE=function(g,v,x){g=g>>>0,v=v>>>0,x||ee(g,v,this.length);let P=v,U=1,H=this[g+--P];for(;P>0&&(U*=256);)H+=this[g+--P]*U;return U*=128,H>=U&&(H-=Math.pow(2,8*v)),H},a.prototype.readInt8=function(g,v){return g=g>>>0,v||ee(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},a.prototype.readInt16LE=function(g,v){g=g>>>0,v||ee(g,2,this.length);const x=this[g]|this[g+1]<<8;return x&32768?x|4294901760:x},a.prototype.readInt16BE=function(g,v){g=g>>>0,v||ee(g,2,this.length);const x=this[g+1]|this[g]<<8;return x&32768?x|4294901760:x},a.prototype.readInt32LE=function(g,v){return g=g>>>0,v||ee(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},a.prototype.readInt32BE=function(g,v){return g=g>>>0,v||ee(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},a.prototype.readBigInt64LE=Ye(function(g){g=g>>>0,ze(g,"offset");const v=this[g],x=this[g+7];(v===void 0||x===void 0)&&De(g,this.length-8);const P=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(x<<24);return(BigInt(P)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),a.prototype.readBigInt64BE=Ye(function(g){g=g>>>0,ze(g,"offset");const v=this[g],x=this[g+7];(v===void 0||x===void 0)&&De(g,this.length-8);const P=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(P)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+x)}),a.prototype.readFloatLE=function(g,v){return g=g>>>0,v||ee(g,4,this.length),n.read(this,g,!0,23,4)},a.prototype.readFloatBE=function(g,v){return g=g>>>0,v||ee(g,4,this.length),n.read(this,g,!1,23,4)},a.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||ee(g,8,this.length),n.read(this,g,!0,52,8)},a.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||ee(g,8,this.length),n.read(this,g,!1,52,8)};function ue(S,g,v,x,P,U){if(!a.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>P||g<U)throw new RangeError('"value" argument is out of bounds');if(v+x>S.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(g,v,x,P){if(g=+g,v=v>>>0,x=x>>>0,!P){const le=Math.pow(2,8*x)-1;ue(this,g,v,x,le,0)}let U=1,H=0;for(this[v]=g&255;++H<x&&(U*=256);)this[v+H]=g/U&255;return v+x},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(g,v,x,P){if(g=+g,v=v>>>0,x=x>>>0,!P){const le=Math.pow(2,8*x)-1;ue(this,g,v,x,le,0)}let U=x-1,H=1;for(this[v+U]=g&255;--U>=0&&(H*=256);)this[v+U]=g/H&255;return v+x},a.prototype.writeUint8=a.prototype.writeUInt8=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,1,255,0),this[v]=g&255,v+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function ce(S,g,v,x,P){te(g,x,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U;let H=Number(g>>BigInt(32)&BigInt(4294967295));return S[v++]=H,H=H>>8,S[v++]=H,H=H>>8,S[v++]=H,H=H>>8,S[v++]=H,v}function Ve(S,g,v,x,P){te(g,x,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v+7]=U,U=U>>8,S[v+6]=U,U=U>>8,S[v+5]=U,U=U>>8,S[v+4]=U;let H=Number(g>>BigInt(32)&BigInt(4294967295));return S[v+3]=H,H=H>>8,S[v+2]=H,H=H>>8,S[v+1]=H,H=H>>8,S[v]=H,v+8}a.prototype.writeBigUInt64LE=Ye(function(g,v=0){return ce(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ye(function(g,v=0){return Ve(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(g,v,x,P){if(g=+g,v=v>>>0,!P){const be=Math.pow(2,8*x-1);ue(this,g,v,x,be-1,-be)}let U=0,H=1,le=0;for(this[v]=g&255;++U<x&&(H*=256);)g<0&&le===0&&this[v+U-1]!==0&&(le=1),this[v+U]=(g/H>>0)-le&255;return v+x},a.prototype.writeIntBE=function(g,v,x,P){if(g=+g,v=v>>>0,!P){const be=Math.pow(2,8*x-1);ue(this,g,v,x,be-1,-be)}let U=x-1,H=1,le=0;for(this[v+U]=g&255;--U>=0&&(H*=256);)g<0&&le===0&&this[v+U+1]!==0&&(le=1),this[v+U]=(g/H>>0)-le&255;return v+x},a.prototype.writeInt8=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},a.prototype.writeInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},a.prototype.writeInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||ue(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},a.prototype.writeBigInt64LE=Ye(function(g,v=0){return ce(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ye(function(g,v=0){return Ve(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(S,g,v,x,P,U){if(v+x>S.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function re(S,g,v,x,P){return g=+g,v=v>>>0,P||Q(S,g,v,4),n.write(S,g,v,x,23,4),v+4}a.prototype.writeFloatLE=function(g,v,x){return re(this,g,v,!0,x)},a.prototype.writeFloatBE=function(g,v,x){return re(this,g,v,!1,x)};function Pe(S,g,v,x,P){return g=+g,v=v>>>0,P||Q(S,g,v,8),n.write(S,g,v,x,52,8),v+8}a.prototype.writeDoubleLE=function(g,v,x){return Pe(this,g,v,!0,x)},a.prototype.writeDoubleBE=function(g,v,x){return Pe(this,g,v,!1,x)},a.prototype.copy=function(g,v,x,P){if(!a.isBuffer(g))throw new TypeError("argument should be a Buffer");if(x||(x=0),!P&&P!==0&&(P=this.length),v>=g.length&&(v=g.length),v||(v=0),P>0&&P<x&&(P=x),P===x||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(x<0||x>=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),g.length-v<P-x&&(P=g.length-v+x);const U=P-x;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,x,P):Uint8Array.prototype.set.call(g,this.subarray(x,P),v),U},a.prototype.fill=function(g,v,x,P){if(typeof g=="string"){if(typeof v=="string"?(P=v,v=0,x=this.length):typeof x=="string"&&(P=x,x=this.length),P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!a.isEncoding(P))throw new TypeError("Unknown encoding: "+P);if(g.length===1){const H=g.charCodeAt(0);(P==="utf8"&&H<128||P==="latin1")&&(g=H)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<x)throw new RangeError("Out of range index");if(x<=v)return this;v=v>>>0,x=x===void 0?this.length:x>>>0,g||(g=0);let U;if(typeof g=="number")for(U=v;U<x;++U)this[U]=g;else{const H=a.isBuffer(g)?g:a.from(g,P),le=H.length;if(le===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(U=0;U<x-v;++U)this[U+v]=H[U%le]}return this};const xe={};function at(S,g,v){xe[S]=class extends v{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(P){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:P,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(S,g){return`The "${S}" argument must be of type number. Received type ${typeof g}`},TypeError),at("ERR_OUT_OF_RANGE",function(S,g,v){let x=`The value of "${S}" is out of range.`,P=v;return Number.isInteger(v)&&Math.abs(v)>2**32?P=ct(String(v)):typeof v=="bigint"&&(P=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(P=ct(P)),P+="n"),x+=` It must be ${g}. Received ${P}`,x},RangeError);function ct(S){let g="",v=S.length;const x=S[0]==="-"?1:0;for(;v>=x+4;v-=3)g=`_${S.slice(v-3,v)}${g}`;return`${S.slice(0,v)}${g}`}function _t(S,g,v){ze(g,"offset"),(S[g]===void 0||S[g+v]===void 0)&&De(g,S.length-(v+1))}function te(S,g,v,x,P,U){if(S>v||S<g){const H=typeof g=="bigint"?"n":"";let le;throw U>3?g===0||g===BigInt(0)?le=`>= 0${H} and < 2${H} ** ${(U+1)*8}${H}`:le=`>= -(2${H} ** ${(U+1)*8-1}${H}) and < 2 ** ${(U+1)*8-1}${H}`:le=`>= ${g}${H} and <= ${v}${H}`,new xe.ERR_OUT_OF_RANGE("value",le,S)}_t(x,P,U)}function ze(S,g){if(typeof S!="number")throw new xe.ERR_INVALID_ARG_TYPE(g,"number",S)}function De(S,g,v){throw Math.floor(S)!==S?(ze(S,v),new xe.ERR_OUT_OF_RANGE(v||"offset","an integer",S)):g<0?new xe.ERR_BUFFER_OUT_OF_BOUNDS:new xe.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,S)}const bt=/[^+/0-9A-Za-z-_]/g;function Gt(S){if(S=S.split("=")[0],S=S.trim().replace(bt,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function Rt(S,g){g=g||1/0;let v;const x=S.length;let P=null;const U=[];for(let H=0;H<x;++H){if(v=S.charCodeAt(H),v>55295&&v<57344){if(!P){if(v>56319){(g-=3)>-1&&U.push(239,191,189);continue}else if(H+1===x){(g-=3)>-1&&U.push(239,191,189);continue}P=v;continue}if(v<56320){(g-=3)>-1&&U.push(239,191,189),P=v;continue}v=(P-55296<<10|v-56320)+65536}else P&&(g-=3)>-1&&U.push(239,191,189);if(P=null,v<128){if((g-=1)<0)break;U.push(v)}else if(v<2048){if((g-=2)<0)break;U.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;U.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;U.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return U}function mt(S){const g=[];for(let v=0;v<S.length;++v)g.push(S.charCodeAt(v)&255);return g}function br(S,g){let v,x,P;const U=[];for(let H=0;H<S.length&&!((g-=2)<0);++H)v=S.charCodeAt(H),x=v>>8,P=v%256,U.push(P),U.push(x);return U}function wt(S){return t.toByteArray(Gt(S))}function gt(S,g,v,x){let P;for(P=0;P<x&&!(P+v>=g.length||P>=S.length);++P)g[P+v]=S[P];return P}function $e(S,g){return S instanceof g||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===g.name}function St(S){return S!==S}const tt=function(){const S="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const x=v*16;for(let P=0;P<16;++P)g[x+P]=S[v]+S[P]}return g}();function Ye(S){return typeof BigInt>"u"?wr:S}function wr(){throw new Error("BigInt not supported")}}(bs)),bs}(function(e,t){(function(n,r){e.exports=r(ME(),YE(),ZE(),Ud(),a_,T_(),A_())})(ae,function(n,r,o,i,s,a,l){return function(){var f={809:function(c){c.exports=n},30:function(c){c.exports=r},36:function(c){c.exports=o},300:function(c){c.exports=i},408:function(c){c.exports=l},25:function(c){c.exports=s},130:function(c){c.exports=a}},u={};function h(c){var p=u[c];if(p!==void 0)return p.exports;var m=u[c]={exports:{}};return f[c](m,m.exports,h),m.exports}h.n=function(c){var p=c&&c.__esModule?function(){return c.default}:function(){return c};return h.d(p,{a:p}),p},h.d=function(c,p){for(var m in p)h.o(p,m)&&!h.o(c,m)&&Object.defineProperty(c,m,{enumerable:!0,get:p[m]})},h.o=function(c,p){return Object.prototype.hasOwnProperty.call(c,p)},h.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var d={};return function(){h.r(d),h.d(d,{assets:function(){return k},auth:function(){return ee},buildAnswer:function(){return sg},buildCarouselCard:function(){return ag},buildQuestion:function(){return Me},carouselCards:function(){return yn},contentInteraction:function(){return Ye},decodeBase64:function(){return cg},default:function(){return lg},editorialPages:function(){return $},features:function(){return v},getEntries:function(){return c.getEntries},getEntry:function(){return c.getEntry},management:function(){return Tr},payments:function(){return Ar},people:function(){return It},peopleEngagement:function(){return cr},qaQuestions:function(){return Qe},reportError:function(){return p.reportError},search:function(){return mn}});var c=h(809),p=h(30),m=h(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:T,LOCALHOST:E,STAGING:b,STAGING_SPLITTER:A},ENVIRONMENTS:{PRODUCTION:w,LOCAL:N}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:F,EMAIL_IDS:M}}=_;let W={emailIds:{}};var q=h(300),V=h.n(q);const j=async I=>{try{const{message:B,response:L,request:D}=I;let Z=B;return L?Z+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:D&&(Z+=" - The request was made but no response was received"),console.warn(Z),await(0,p.reportError)(new Error(Z)),Z}catch(B){return console.warn(`Cannot handle error: ${B.message}`),B.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:oe,CERTIFICATES:K}}}}=_;var k={certificates:{create:async(I,B)=>{let L=[];try{const{data:D}=await V().post(`${Y}${oe}/${I}${K}`,B);D&&(L=D)}catch(D){await j(D)}return L}}};const{APIS:{AUTH_API:{BASE_URL:z,ENDPOINTS:{USER_PASSWORD:J,USERS:de}}},USERS:{MYSELF:X}}=_;var ee={userPassword:{update:async I=>{let B=null;try{B=await V().put(`${z}${de}/${X}${J}`,I)}catch(L){B={message:(((L||{}).response||{}).data||{}).message},await j(L)}return B}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:ue,ENDPOINTS:{ANSWERS:ce,QUESTIONS:Ve,LIKES:Q}}}}=_,re=`${ue}${Ve}`;var Pe={create:async({questionSlug:I},B)=>{try{await V().post(`${re}/${encodeURIComponent(I)}${ce}`,B)}catch(L){const D=await j(L);throw new Error(D)}},remove:async({questionSlug:I,answerSlug:B})=>{try{await V().delete(`${re}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(B)}`)}catch(L){const D=await j(L);throw new Error(D)}},update:async({questionSlug:I,answerSlug:B},L)=>{try{return await V().put(`${re}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(B)}`,L)}catch(D){const Z=await j(D);throw new Error(Z)}},like:async({questionSlug:I,answerSlug:B},L)=>{try{return await V().post(`${re}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(B)}${Q}`,L)}catch(D){const Z=await j(D);throw new Error(Z)}},unlike:async({questionSlug:I,answerSlug:B})=>{try{return await V().delete(`${re}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(B)}${Q}`)}catch(L){const D=await j(L);throw new Error(D)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:xe,ENDPOINTS:{QUESTIONS:at}}}}=_,ct=`${xe}${at}`;var _t={create:async I=>{try{return await V().post(ct,I)}catch(B){const L=await j(B);throw new Error(L)}},remove:async({questionSlug:I})=>{try{await V().delete(`${ct}/${encodeURIComponent(I)}`)}catch(B){const L=await j(B);throw new Error(L)}},update:async({questionSlug:I},B)=>{try{return await V().put(`${ct}/${encodeURIComponent(I)}`,B)}catch(L){const D=await j(L);throw new Error(D)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:te,ENDPOINTS:{REPLIES:ze,ANSWERS:De,QUESTIONS:bt,LIKES:Gt}}}}=_,Rt=`${te}${bt}`,mt=({questionSlug:I,answerSlug:B,replySlug:L},D=!1)=>{let Z=`${Rt}/${encodeURIComponent(I)}${De}/${encodeURIComponent(B)}${ze}`;return L&&(Z=`${Z}/${encodeURIComponent(L)}`,D&&(Z=`${Z}${Gt}`)),Z};var br={create:async({questionSlug:I,answerSlug:B},L)=>{try{return await V().post(mt({questionSlug:I,answerSlug:B}),L)}catch(D){const Z=await j(D);throw new Error(Z)}},update:async({questionSlug:I,answerSlug:B,replySlug:L},D)=>{try{return await V().put(mt({questionSlug:I,answerSlug:B,replySlug:L}),D)}catch(Z){const Te=await j(Z);throw new Error(Te)}},remove:async({questionSlug:I,answerSlug:B,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:B,replySlug:L}))}catch(D){const Z=await j(D);throw new Error(Z)}},like:async({questionSlug:I,answerSlug:B,replySlug:L},D)=>{try{await V().post(mt({questionSlug:I,answerSlug:B,replySlug:L},!0),D)}catch(Z){const Te=await j(Z);throw new Error(Te)}},unlike:async({questionSlug:I,answerSlug:B,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:B,replySlug:L},!0))}catch(D){const Z=await j(D);throw new Error(Z)}},getReplyUrl:mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:wt,ENDPOINTS:{QUESTIONS:gt,ANSWERS:$e,LIKES:St}}}}=_,tt=`${wt}${gt}`;var Ye={answers:Pe,questions:_t,replies:br,likes:{create:async(I,B)=>{try{return await V().post(`${tt}/${encodeURIComponent(I)}${$e}/${encodeURIComponent(B)}${St}`)}catch(L){const D=await j(L);throw new Error(D)}},remove:async(I,B)=>{try{return await V().delete(`${tt}/${encodeURIComponent(I)}${$e}/${encodeURIComponent(B)}${St}`)}catch(L){const D=await j(L);throw new Error(D)}}}};const{APIS:{FEATURES_API:{BASE_URL:wr,ENDPOINTS:{FLAGS:S}}}}=_,g=`${wr}${S}`;var v={flags:{read:async I=>{let B=null;try{const{data:L}=await V().get(`${g}/${encodeURIComponent(I)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(B=L)}catch(L){await j(L)}return B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:x,ENDPOINTS:{ACCOUNTS:P}}}}=_;var U={create:async I=>{try{await V().post(`${x}${P}`,I)}catch(B){throw await j(B),B}},read:async I=>{let B=null;try{({data:B}=await V().get(`${x}${P}/${encodeURIComponent(I)}`))}catch(L){await j(L)}return B},update:async(I,B)=>{try{await V().put(`${x}${P}/${encodeURIComponent(I)}`,B)}catch(L){throw await j(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:H,ENDPOINTS:{BULK_ENROLMENTS:le}}}}=_;var be={create:async I=>{try{await V().post(`${H}${le}`,I)}catch(B){throw await j(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:we,ENDPOINTS:{EVENT_REGISTRATIONS:Se}}}}=_;var he={create:async I=>{try{await V().post(`${we}${Se}`,I)}catch(B){const L=await j(B);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:lt,ENDPOINTS:{LOGINS:ir,LOGIN_PASSWORDLESS:Sr}}}}=_,Wt=`${lt}${ir}`;var Tr={accounts:U,bulkEnrolments:be,eventRegistrations:he,passwordless:{update:async I=>{try{await V().put(`${Wt}/${encodeURIComponent(I)}${Sr}`)}catch(B){throw await j(B),B}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Vt,ENDPOINTS:{PRODUCTS:Or}}}}=_,xr=`${Vt}${Or}`;var Ar={products:{list:async I=>{let B=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(xr,L);D&&D.length&&(B=D)}catch(D){await j(D)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Pt,ENDPOINTS:{BULK_ENROLMENTS:nn}}}}=_;var Tt={list:async I=>{let B=[];try{const{data:L}=await V().get(`${Pt}${nn}`,{params:I});L&&L.length&&(B=L)}catch(L){await j(L)}return B}},Fn=h(25);const{OK:Un,MULTIPLE_CHOICES:Dn,NOT_FOUND:on,FORBIDDEN:Cr}=Fn.StatusCodes,Fe=I=>I>=Un&&I<Dn||I===Cr||I===on,{APIS:{PEOPLE_API:{BASE_URL_V2:Rr,ENDPOINTS:{USERS:Pr}}}}=_,zt=async I=>{let B=null;try{const{data:L}=await V().get(`${Rr}${Pr}/${encodeURIComponent(I)}`,{validateStatus:Fe});L&&L.id&&(B=L)}catch(L){await j(L)}return B},an=async I=>{let B=[];try{if(I&&I.length<2)throw new Error("users list method requires at least two ids");const L=I.map(Z=>`ids=${encodeURIComponent(Z)}`).join("&"),D=await V().get(`${Rr}${Pr}?${L}`,{validateStatus:Fe});D&&D.length&&(B=D)}catch(L){await j(L)}return B};var $n={read:zt,update:async(I,B)=>{let L=!1;try{const{data:D}=await V().put(`${Rr}${Pr}/${encodeURIComponent(I)}`,B);L=!(!D||!D.id)}catch(D){await j(D)}return L},list:an};const{APIS:{PEOPLE_API:{BASE_URL_V2:je,ENDPOINTS:{USERS:jn,USER_LIKES:Hn}}},USERS:{MYSELF:qn}}=_,Gn=`${je}${jn}/${qn}${Hn}`,Ir=async I=>{let B=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(Gn,L);D&&D.length&&(B=D)}catch(D){await j(D)}return B};var Je={list:Ir},Wn={authors:{readQuestionAuthors:async(I,B,L)=>{try{if(I.author=await zt(I.authorId),I.answers&&I.answers.length&&!L.ignoreAnswersAuthors){I.answers.sort((Z,Te)=>new Date(Te.updatedAt)-new Date(Z.updatedAt)),I.totalAnswers=I.answers.length;let D=I.answers;if(L.limit&&L.pageNumber){const Z=L.limit*(L.pageNumber-1);D=I.answers.slice(Z,Z+L.limit)}for(let Z of D){Z.author=Z.authorId&&await zt(Z.authorId)||{};const[Te]=B?await Ir({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:Z.slug}):[null];Z.userLiked=!!Te}I.answers=D}else I.answers||(I.answers=[]);return I}catch(D){throw await j(D),new Error(`Cannot read authors for question: ${D.message}`)}},readAuthors:async(I=[])=>{let B=[];try{if(Array.isArray(I)===!1)throw new Error("authorIds is not an array!");if(I&&I.length===1){const L=await zt(I[0]);L&&B.push(L)}else if(I&&I.length>1){const L=await an(I);L&&L.length>0&&(B=L)}}catch(L){throw await j(L),new Error(`Cannot read authors: ${L.message}`)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL:Vn,ENDPOINTS:{REGISTRATIONS:zn}}}}=_;var Yn={list:async I=>{let B=[];try{const{data:L}=await V().get(`${Vn}${zn}`,{params:I});L&&L.length&&(B=L)}catch(L){await j(L)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Kn,ENDPOINTS:{USERS:or,USER_COURSES:sn}}},USERS:{MYSELF:ar}}=_,st=`${Kn}${or}/${ar}${sn}`;var Nr={create:async I=>{try{await V().post(st,I)}catch(B){await j(B)}},list:async I=>{let B=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(st,L);D&&D.length&&(B=D)}catch(D){await j(D)}return B},update:async(I,B)=>{try{await V().put(`${st}/${I}`,B)}catch(L){await j(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Qn,ENDPOINTS:{USERS:Xn,USER_EVENTS:Jn}}},USERS:{MYSELF:Zn}}=_,ei=`${Qn}${Xn}/${Zn}${Jn}`;var sr={list:async I=>{let B=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(ei,L);D&&D.length&&(B=D)}catch(D){await j(D)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Lr,ENDPOINTS:{USERS:Yt,USER_LESSONS:un}}},USERS:{MYSELF:cn}}=_,ln=`${Lr}${Yt}/${cn}${un}`;var ti={create:async I=>{let B=null;try{B=await V().post(ln,I)}catch(L){await j(L)}return B},list:async I=>{let B=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(ln,L);D&&D.length&&(B=D)}catch(D){await j(D)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ri,ENDPOINTS:{USERS:ni,USER_PRODUCTS:kr}}},USERS:{MYSELF:ii}}=_,Br=`${ri}${ni}/${ii}${kr}`;var Kt={create:async I=>{let B=null;try{B=await V().post(Br,I)}catch(L){await j(L)}return B},list:async I=>{let B=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(Br,L);D&&D.length&&(B=D)}catch(D){await j(D)}return B},update:async(I,B)=>{try{await V().put(`${Br}/${I}`,B)}catch(L){await j(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ft,ENDPOINTS:{USERS:Ot,USER_RATINGS:xt}}},USERS:{MYSELF:oi}}=_,dt=`${ft}${Ot}/${oi}${xt}`;var It={bulkEnrolments:Tt,handlers:Wn,registrations:Yn,users:$n,userCourses:Nr,userEvents:sr,userLessons:ti,userLikes:Je,userProducts:Kt,userRatings:{create:async I=>{let B=null;try{const{data:L}=await V().post(dt,I);L!=null&&L.id&&(B=L)}catch(L){await j(L)}return B},update:async(I,B)=>{try{await V().put(`${dt}/${I}`,B)}catch(L){await j(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ai,ENDPOINTS:{ENQUIRY_EMAILS:si}}}}=_;var ui={create:async I=>{let B=null;try{const{data:L}=await V().post(`${ai}${si}`,I);L&&(B=L)}catch(L){await j(L)}return B}},fn={forms:{sendEnquiryEmails:async I=>{let B=null;try{const{emailIds:L}=W;B=await cr.emails.create({...L,...I})}catch(L){await j(L)}return B}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Ke,ENDPOINTS:{USERS:dn,USER_PROPERTIES:hn}}},USERS:{MYSELF:ur}}=_;var cr={emails:ui,handlers:fn,userProperties:{update:async(I,B)=>{try{await V().put(`${Ke}${dn}/${ur}${hn}/${I}`,B)}catch(L){await j(L)}}}},lr=h(130);const{APIS:{SEARCH_API:{BASE_URL:ci,ENDPOINTS:{SEARCH:pn}}}}=_,Mr=`${ci}${pn}`;var mn={ask:async I=>{try{let B=null;const{data:L}=await V().get(Mr,{params:{question:I}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(B=L),B}catch(B){const L=await j(B);throw new Error(L)}},stream:(I,B,L)=>{const D=(0,lr.io)(void 0,{path:"/api/search-api/web-sockets"});function Z(){D.emit("search",{question:I})}function Te(Be){L(Be),Ne(),D.disconnect()}function Ne(){D.off("connect",Z),D.off("update",B),D.off("result",Te)}return D.on("connect",Z),D.on("update",B),D.on("result",Te),Ne}};const{CONTENTFUL:yt}=_,{CARD_TYPES:Fr}=yt.CAROUSELS;var yn={read:async(I,B)=>{try{if(!B||!B.sys||!B.sys.id)throw new Error("Invalid link to card");if(!I||!Fr[I])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:D}=Fr[I];return await(0,c.getEntry)({content_type:I,"sys.id":B.sys.id,include:L,select:D},{assetDetails:!0})}catch(L){throw await j(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:li}=_,{INCLUDE:y,SELECT:O,TYPE:R}=li.EDITORIAL_PAGES;var $={read:async I=>{try{return await(0,c.getEntry)({content_type:R,"fields.slug":I,include:y,select:O})}catch(B){throw await j(B),new Error(`Cannot read editorial page: ${B.message}`)}}};const{CONTENTFUL:fe}=_,{TYPE:ie,ORDER:pe,SELECT:me,SKIP:ke,LIMIT:_e,INCLUDE:He}=fe.QUESTIONS;var Qe={read:async I=>{try{return await(0,c.getEntry)({content_type:ie,"fields.slug":I,include:2,select:me})}catch(B){throw await j(B),new Error(`Cannot read question: ${B.message}`)}},list:async(I={})=>{try{return await(0,c.getEntries)({content_type:ie,include:He,limit:_e,order:pe,select:me,skip:ke,...I})}catch(B){throw await j(B),new Error(`Cannot list questions: ${B.message}`)}}},Me=async(I,B,L={ignoreAnswersAuthors:!1})=>{try{let D={};return D=await Qe.read(I),D=await It.handlers.authors.readQuestionAuthors(D,B,L),D}catch(D){throw await j(D),new Error(`Cannot build question: ${D.message}`)}};const{ARTICLES:{TYPE:qe},COURSES:{TYPE:Ue},EVENTS:{TYPE:Nt},LISTS:{TYPE:At},QUESTIONS:{TYPE:Qt},LEARNING_HUB:{TYPE:Ji}}=_.CONTENTFUL,Lt=I=>I&&I.url?(Object.assign(I,{aspect:"responsiveCard",query:"q=90&fit=fill"}),I):null,fr={[qe]:async I=>{const{authorIds:B,authorTag:L,image:D,publishedDate:Z,readingTime:Te,slug:Ne,title:Be}=I,ht=await It.handlers.authors.readAuthors(B),kt=ht&&ht.length?ht:L?[L]:null;return{banner:Lt(D),contributors:kt,publishedDate:Z,readingTime:Te,slug:Ne,title:Be}},[Ue]:async(I,B)=>{const{banner:L,freeCourse:D,partnershipDetails:Z,slug:Te,title:Ne,registered:Be}=I,ht={banner:Lt(L),slug:Te,title:Ne,pill:D?"free":"premium",registered:!!Be};if(Z){const{partners:kt}=Z;ht.partner=kt&&kt.length&&Z.partners[0]}if(Be===void 0&&B){const[kt]=await It.userProducts.list({courseSlug:Te,isEnrolled:!0,scope:"active"});ht.registered=!!kt}return ht},[Nt]:async(I,B)=>{const{bannerImage:L,defaultStartDate:D,isEventOngoing:Z,slug:Te,speakers:Ne,title:Be,registered:ht}=I,kt=new Date(D),fg=!!kt&&kt<new Date;if(Ne&&Ne.length)for(const Zi of Ne)Zi.image=(na=Zi.image)&&na.url?`${na.url}?w=100&h=100&fit=thumb&f=center`:null;var na;const rc={banner:Lt(L),dateHasPassed:fg,title:Be,slug:Te,isOngoingEvent:Z,contributors:Ne,startDate:kt,registered:!!ht};if(ht===void 0&&B){const[Zi]=await It.userEvents.list({eventSlug:Te});rc.registered=!!Zi}return rc},[At]:async I=>{const{hero:B,slug:L,title:D}=I;return{banner:Lt(B),slug:L,title:D}},[Qt]:async I=>{const{answers:B,authorId:L,createdAt:D,slug:Z,title:Te}=I;let Ne=null;if(L){const Be=await It.users.read(L);Be&&(Ne=Be)}return{answers:B&&B.length?B.length:0,contributors:Ne?[Ne]:[],createdAt:D,slug:Z,title:Te}},[Ji]:I=>{const{bannerSection:B,customLabel:L,slug:D,title:Z}=I;return{banner:Lt(B.image),slug:D,title:Z,customLabel:L}},people:I=>{const{id:B,name:L,jobTitle:D,location:Z,image:Te}=I;return{profile:Te,slug:B,title:L,text:D,secondaryText:Z}}};var ag=async({contentType:I,...B}={},L)=>{try{if(!fr[I])throw new Error("Content type not supported");if(typeof fr[I]!="function")throw new Error("No builder function for content type");return I!=="people"&&B.sys&&B.sys.type&&B.sys.type==="Link"&&(B=await yn.read(I,B)),{contentType:I,...await fr[I](B,L)}}catch(D){throw await j(D),new Error(`Cannot build carousel card: ${D.message}`)}},sg=async(I,B,L={})=>{try{if(!I.replies||I.replies.length===0)return I.replies=[],I;I.replies.sort((Z,Te)=>new Date(Z.createdAt)-new Date(Te.createdAt)),I.totalReplies=I.totalReplies||I.replies.length;let D=I.replies;if(L.limit&&L.pageNumber){const Z=L.limit*(L.pageNumber-1);D=I.replies.slice(Z,Z+L.limit)}for(const Z of D){if(Z.authorId===I.authorId){Z.author=I.author,Z.userLiked=!1;continue}Z.author=Z.authorId&&await zt(Z.authorId)||{};const[Te]=B?await Ir({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:Z.slug}):[null];Z.userLiked=!!Te}return I.replies=D,I}catch(D){throw await j(D),new Error(`Cannot build replies for answer: ${D.message}`)}},ug=h(408);const cg=I=>I&&ug.Buffer.from(I,"base64").toString("ascii");function lg({contentContext:I=null,errorsContext:B=null,gtmContext:L=null,origin:D}){try{const Z=(Te=>{let Ne=null;Te?Ne=Te:typeof window<"u"&&(Ne=window.origin||window.location.origin),Ne||new Error("Cannot select environment: Website not defined");let Be=null;const ht=Ne.match(b);return ht?Be=ht[1].split(A)[0]:Ne===T?Be=w:Ne.includes(E)&&(Be=N),Be||new Error(`Cannot select environment: No rule for website ${Ne}`),Be})(D);return I&&(0,c.setContext)(Object.assign({},I,{environment:Z})),B&&(0,p.setContext)(Object.assign({},B,{environment:Z})),L&&((0,m.setContext)(Object.assign({},L,{environment:Z})),(0,m.setupGTM)()),(({environment:Te})=>{const Ne=(Be=>{if(!Be)throw new Error("Cannot map environment: Environment not defined");if(!F[Be])throw new Error(`Cannot map environment: No mapping found for environment ${Be}`);return F[Be]})(Te);W.emailIds=M[Ne]})(Object.assign({},{environment:Z})),Z}catch(Z){console.warn(`Cannot load SDK: ${Z.message}`)}}}(),d}()})})(Rd);var C_=Rd.exports;const Bi={Off:"off",On:"on",Cookie:"cookie"},R_=e=>{const[t]=Cd(),[n,r]=G.useState(null),[o,i]=G.useState(!1),[s,a]=G.useState(Bi.Off);return G.useEffect(()=>{e&&C_.features.flags.read(e).then(l=>{a(l.featureState),r(null)}).catch(l=>{a(Bi.Off),r(l)})},[e]),G.useEffect(()=>{switch(s){case Bi.Off:i(!1);break;case Bi.On:i(!0);break;case Bi.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[s,t]),{isFeatureActive:o,error:n}};function P_(e,t,n){var r=this,o=G.useRef(null),i=G.useRef(0),s=G.useRef(null),a=G.useRef([]),l=G.useRef(),f=G.useRef(),u=G.useRef(e),h=G.useRef(!0);G.useEffect(function(){u.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var c=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,m="maxWait"in n,_=m?Math.max(+n.maxWait||0,t):null;G.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var T=G.useMemo(function(){var E=function(M){var W=a.current,q=l.current;return a.current=l.current=null,i.current=M,f.current=u.current.apply(q,W)},b=function(M,W){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(M):setTimeout(M,W)},A=function(M){if(!h.current)return!1;var W=M-o.current;return!o.current||W>=t||W<0||m&&M-i.current>=_},w=function(M){return s.current=null,p&&a.current?E(M):(a.current=l.current=null,f.current)},N=function M(){var W=Date.now();if(A(W))return w(W);if(h.current){var q=t-(W-o.current),V=m?Math.min(q,_-(W-i.current)):q;b(M,V)}},F=function(){var M=Date.now(),W=A(M);if(a.current=[].slice.call(arguments),l.current=r,o.current=M,W){if(!s.current&&h.current)return i.current=o.current,b(N,t),c?E(o.current):f.current;if(m)return b(N,t),E(o.current)}return s.current||b(N,t),f.current};return F.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=l.current=s.current=null},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?w(Date.now()):f.current},F},[c,m,t,_,p,d]);return T}function wp(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return P_(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let ws;const Ki=(e=!0,t=!1)=>{if(!e)return;const[n,r]=G.useState(0)||[!1,()=>{}];G.useEffect(()=>(i(),window.addEventListener("resize",s),()=>{clearTimeout(ws),s.flush(),window.removeEventListener("resize",s)}),[]);const o=()=>window.innerWidth,i=()=>{r(o())},s=wp(()=>{o()!==n&&(t&&(clearTimeout(ws),document.body.classList.add("is-resizing"),ws=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return n},Sp=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[o,i]=G.useState({current:0,past:0})||[!1,()=>{}],[s,a]=G.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];G.useEffect(()=>(l(),window.addEventListener("scroll",f),()=>{f.flush(),window.removeEventListener("scroll",f)}),[]);const l=()=>{const u=window.scrollY,h=o.current,d=u-h,c=d>0?"down":"up";if(i({current:u,past:h}),c==="down"){u>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(n(),a({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(r(),a({scrollUp:!0,scrollDown:!1}))},f=wp(()=>{l()},250);return o};var Uo={exports:{}};Uo.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",f="[object Error]",u="[object Function]",h="[object GeneratorFunction]",d="[object Map]",c="[object Number]",p="[object Object]",m="[object Promise]",_="[object RegExp]",T="[object Set]",E="[object String]",b="[object Symbol]",A="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",F="[object Float32Array]",M="[object Float64Array]",W="[object Int8Array]",q="[object Int16Array]",V="[object Int32Array]",j="[object Uint8Array]",Y="[object Uint8ClampedArray]",oe="[object Uint16Array]",K="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,J=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,X={};X[i]=X[s]=X[w]=X[N]=X[a]=X[l]=X[F]=X[M]=X[W]=X[q]=X[V]=X[d]=X[c]=X[p]=X[_]=X[T]=X[E]=X[b]=X[j]=X[Y]=X[oe]=X[K]=!0,X[f]=X[u]=X[A]=!1;var ee=typeof ae=="object"&&ae&&ae.Object===Object&&ae,ue=typeof self=="object"&&self&&self.Object===Object&&self,ce=ee||ue||Function("return this")(),Ve=t&&!t.nodeType&&t,Q=Ve&&!0&&e&&!e.nodeType&&e,re=Q&&Q.exports===Ve;function Pe(y,O){return y.set(O[0],O[1]),y}function xe(y,O){return y.add(O),y}function at(y,O){for(var R=-1,$=y?y.length:0;++R<$&&O(y[R],R,y)!==!1;);return y}function ct(y,O){for(var R=-1,$=O.length,fe=y.length;++R<$;)y[fe+R]=O[R];return y}function _t(y,O,R,$){var fe=-1,ie=y?y.length:0;for($&&ie&&(R=y[++fe]);++fe<ie;)R=O(R,y[fe],fe,y);return R}function te(y,O){for(var R=-1,$=Array(y);++R<y;)$[R]=O(R);return $}function ze(y,O){return y==null?void 0:y[O]}function De(y){var O=!1;if(y!=null&&typeof y.toString!="function")try{O=!!(y+"")}catch{}return O}function bt(y){var O=-1,R=Array(y.size);return y.forEach(function($,fe){R[++O]=[fe,$]}),R}function Gt(y,O){return function(R){return y(O(R))}}function Rt(y){var O=-1,R=Array(y.size);return y.forEach(function($){R[++O]=$}),R}var mt=Array.prototype,br=Function.prototype,wt=Object.prototype,gt=ce["__core-js_shared__"],$e=function(){var y=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),St=br.toString,tt=wt.hasOwnProperty,Ye=wt.toString,wr=RegExp("^"+St.call(tt).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=re?ce.Buffer:void 0,g=ce.Symbol,v=ce.Uint8Array,x=Gt(Object.getPrototypeOf,Object),P=Object.create,U=wt.propertyIsEnumerable,H=mt.splice,le=Object.getOwnPropertySymbols,be=S?S.isBuffer:void 0,we=Gt(Object.keys,Object),Se=ft(ce,"DataView"),he=ft(ce,"Map"),lt=ft(ce,"Promise"),ir=ft(ce,"Set"),Sr=ft(ce,"WeakMap"),Wt=ft(Object,"create"),Tr=Ke(Se),Vt=Ke(he),Or=Ke(lt),xr=Ke(ir),Ar=Ke(Sr),Pt=g?g.prototype:void 0,nn=Pt?Pt.valueOf:void 0;function Tt(y){var O=-1,R=y?y.length:0;for(this.clear();++O<R;){var $=y[O];this.set($[0],$[1])}}function Fn(){this.__data__=Wt?Wt(null):{}}function Un(y){return this.has(y)&&delete this.__data__[y]}function Dn(y){var O=this.__data__;if(Wt){var R=O[y];return R===r?void 0:R}return tt.call(O,y)?O[y]:void 0}function on(y){var O=this.__data__;return Wt?O[y]!==void 0:tt.call(O,y)}function Cr(y,O){var R=this.__data__;return R[y]=Wt&&O===void 0?r:O,this}Tt.prototype.clear=Fn,Tt.prototype.delete=Un,Tt.prototype.get=Dn,Tt.prototype.has=on,Tt.prototype.set=Cr;function Fe(y){var O=-1,R=y?y.length:0;for(this.clear();++O<R;){var $=y[O];this.set($[0],$[1])}}function Rr(){this.__data__=[]}function Pr(y){var O=this.__data__,R=ar(O,y);if(R<0)return!1;var $=O.length-1;return R==$?O.pop():H.call(O,R,1),!0}function zt(y){var O=this.__data__,R=ar(O,y);return R<0?void 0:O[R][1]}function an(y){return ar(this.__data__,y)>-1}function $n(y,O){var R=this.__data__,$=ar(R,y);return $<0?R.push([y,O]):R[$][1]=O,this}Fe.prototype.clear=Rr,Fe.prototype.delete=Pr,Fe.prototype.get=zt,Fe.prototype.has=an,Fe.prototype.set=$n;function je(y){var O=-1,R=y?y.length:0;for(this.clear();++O<R;){var $=y[O];this.set($[0],$[1])}}function jn(){this.__data__={hash:new Tt,map:new(he||Fe),string:new Tt}}function Hn(y){return Kt(this,y).delete(y)}function qn(y){return Kt(this,y).get(y)}function Gn(y){return Kt(this,y).has(y)}function Ir(y,O){return Kt(this,y).set(y,O),this}je.prototype.clear=jn,je.prototype.delete=Hn,je.prototype.get=qn,je.prototype.has=Gn,je.prototype.set=Ir;function Je(y){this.__data__=new Fe(y)}function Wn(){this.__data__=new Fe}function Vn(y){return this.__data__.delete(y)}function zn(y){return this.__data__.get(y)}function Yn(y){return this.__data__.has(y)}function Kn(y,O){var R=this.__data__;if(R instanceof Fe){var $=R.__data__;if(!he||$.length<n-1)return $.push([y,O]),this;R=this.__data__=new je($)}return R.set(y,O),this}Je.prototype.clear=Wn,Je.prototype.delete=Vn,Je.prototype.get=zn,Je.prototype.has=Yn,Je.prototype.set=Kn;function or(y,O){var R=cr(y)||ur(y)?te(y.length,String):[],$=R.length,fe=!!$;for(var ie in y)(O||tt.call(y,ie))&&!(fe&&(ie=="length"||ai(ie,$)))&&R.push(ie);return R}function sn(y,O,R){var $=y[O];(!(tt.call(y,O)&&hn($,R))||R===void 0&&!(O in y))&&(y[O]=R)}function ar(y,O){for(var R=y.length;R--;)if(hn(y[R][0],O))return R;return-1}function st(y,O){return y&&kr(O,gn(O),y)}function Nr(y,O,R,$,fe,ie,pe){var me;if($&&(me=ie?$(y,fe,ie,pe):$(y)),me!==void 0)return me;if(!yt(y))return y;var ke=cr(y);if(ke){if(me=oi(y),!O)return ni(y,me)}else{var _e=xt(y),He=_e==u||_e==h;if(pn(y))return sr(y,O);if(_e==p||_e==i||He&&!ie){if(De(y))return ie?y:{};if(me=dt(He?{}:y),!O)return ii(y,st(me,y))}else{if(!X[_e])return ie?y:{};me=It(y,_e,Nr,O)}}pe||(pe=new Je);var Qe=pe.get(y);if(Qe)return Qe;if(pe.set(y,me),!ke)var Me=R?Br(y):gn(y);return at(Me||y,function(qe,Ue){Me&&(Ue=qe,qe=y[Ue]),sn(me,Ue,Nr(qe,O,R,$,Ue,y,pe))}),me}function Qn(y){return yt(y)?P(y):{}}function Xn(y,O,R){var $=O(y);return cr(y)?$:ct($,R(y))}function Jn(y){return Ye.call(y)}function Zn(y){if(!yt(y)||ui(y))return!1;var O=Mr(y)||De(y)?wr:J;return O.test(Ke(y))}function ei(y){if(!fn(y))return we(y);var O=[];for(var R in Object(y))tt.call(y,R)&&R!="constructor"&&O.push(R);return O}function sr(y,O){if(O)return y.slice();var R=new y.constructor(y.length);return y.copy(R),R}function Lr(y){var O=new y.constructor(y.byteLength);return new v(O).set(new v(y)),O}function Yt(y,O){var R=O?Lr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.byteLength)}function un(y,O,R){var $=O?R(bt(y),!0):bt(y);return _t($,Pe,new y.constructor)}function cn(y){var O=new y.constructor(y.source,z.exec(y));return O.lastIndex=y.lastIndex,O}function ln(y,O,R){var $=O?R(Rt(y),!0):Rt(y);return _t($,xe,new y.constructor)}function ti(y){return nn?Object(nn.call(y)):{}}function ri(y,O){var R=O?Lr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.length)}function ni(y,O){var R=-1,$=y.length;for(O||(O=Array($));++R<$;)O[R]=y[R];return O}function kr(y,O,R,$){R||(R={});for(var fe=-1,ie=O.length;++fe<ie;){var pe=O[fe],me=$?$(R[pe],y[pe],pe,R,y):void 0;sn(R,pe,me===void 0?y[pe]:me)}return R}function ii(y,O){return kr(y,Ot(y),O)}function Br(y){return Xn(y,gn,Ot)}function Kt(y,O){var R=y.__data__;return si(O)?R[typeof O=="string"?"string":"hash"]:R.map}function ft(y,O){var R=ze(y,O);return Zn(R)?R:void 0}var Ot=le?Gt(le,Object):yn,xt=Jn;(Se&&xt(new Se(new ArrayBuffer(1)))!=N||he&&xt(new he)!=d||lt&&xt(lt.resolve())!=m||ir&&xt(new ir)!=T||Sr&&xt(new Sr)!=A)&&(xt=function(y){var O=Ye.call(y),R=O==p?y.constructor:void 0,$=R?Ke(R):void 0;if($)switch($){case Tr:return N;case Vt:return d;case Or:return m;case xr:return T;case Ar:return A}return O});function oi(y){var O=y.length,R=y.constructor(O);return O&&typeof y[0]=="string"&&tt.call(y,"index")&&(R.index=y.index,R.input=y.input),R}function dt(y){return typeof y.constructor=="function"&&!fn(y)?Qn(x(y)):{}}function It(y,O,R,$){var fe=y.constructor;switch(O){case w:return Lr(y);case a:case l:return new fe(+y);case N:return Yt(y,$);case F:case M:case W:case q:case V:case j:case Y:case oe:case K:return ri(y,$);case d:return un(y,$,R);case c:case E:return new fe(y);case _:return cn(y);case T:return ln(y,$,R);case b:return ti(y)}}function ai(y,O){return O=O??o,!!O&&(typeof y=="number"||de.test(y))&&y>-1&&y%1==0&&y<O}function si(y){var O=typeof y;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?y!=="__proto__":y===null}function ui(y){return!!$e&&$e in y}function fn(y){var O=y&&y.constructor,R=typeof O=="function"&&O.prototype||wt;return y===R}function Ke(y){if(y!=null){try{return St.call(y)}catch{}try{return y+""}catch{}}return""}function dn(y){return Nr(y,!0,!0)}function hn(y,O){return y===O||y!==y&&O!==O}function ur(y){return ci(y)&&tt.call(y,"callee")&&(!U.call(y,"callee")||Ye.call(y)==i)}var cr=Array.isArray;function lr(y){return y!=null&&mn(y.length)&&!Mr(y)}function ci(y){return Fr(y)&&lr(y)}var pn=be||li;function Mr(y){var O=yt(y)?Ye.call(y):"";return O==u||O==h}function mn(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function yt(y){var O=typeof y;return!!y&&(O=="object"||O=="function")}function Fr(y){return!!y&&typeof y=="object"}function gn(y){return lr(y)?or(y):ei(y)}function yn(){return[]}function li(){return!1}e.exports=dn})(Uo,Uo.exports);var I_=Uo.exports;const N_=jt(I_);var L_="Expected a function",Tp="__lodash_hash_undefined__",Op=1/0,k_=9007199254740991,B_="[object Function]",M_="[object GeneratorFunction]",F_="[object Symbol]",U_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D_=/^\w*$/,$_=/^\./,j_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H_=/[\\^$.*+?()[\]{}|]/g,q_=/\\(\\)?/g,G_=/^\[object .+?Constructor\]$/,W_=/^(?:0|[1-9]\d*)$/,V_=typeof ae=="object"&&ae&&ae.Object===Object&&ae,z_=typeof self=="object"&&self&&self.Object===Object&&self,ku=V_||z_||Function("return this")();function Y_(e,t){return e==null?void 0:e[t]}function K_(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Q_=Array.prototype,X_=Function.prototype,xp=Object.prototype,Ss=ku["__core-js_shared__"],Bf=function(){var e=/[^.]+$/.exec(Ss&&Ss.keys&&Ss.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ap=X_.toString,Yo=xp.hasOwnProperty,Cp=xp.toString,J_=RegExp("^"+Ap.call(Yo).replace(H_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mf=ku.Symbol,Z_=Q_.splice,eb=Rp(ku,"Map"),Hi=Rp(Object,"create"),Ff=Mf?Mf.prototype:void 0,Uf=Ff?Ff.toString:void 0;function Xr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function tb(){this.__data__=Hi?Hi(null):{}}function rb(e){return this.has(e)&&delete this.__data__[e]}function nb(e){var t=this.__data__;if(Hi){var n=t[e];return n===Tp?void 0:n}return Yo.call(t,e)?t[e]:void 0}function ib(e){var t=this.__data__;return Hi?t[e]!==void 0:Yo.call(t,e)}function ob(e,t){var n=this.__data__;return n[e]=Hi&&t===void 0?Tp:t,this}Xr.prototype.clear=tb;Xr.prototype.delete=rb;Xr.prototype.get=nb;Xr.prototype.has=ib;Xr.prototype.set=ob;function kn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ab(){this.__data__=[]}function sb(e){var t=this.__data__,n=Ko(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Z_.call(t,n,1),!0}function ub(e){var t=this.__data__,n=Ko(t,e);return n<0?void 0:t[n][1]}function cb(e){return Ko(this.__data__,e)>-1}function lb(e,t){var n=this.__data__,r=Ko(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}kn.prototype.clear=ab;kn.prototype.delete=sb;kn.prototype.get=ub;kn.prototype.has=cb;kn.prototype.set=lb;function en(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function fb(){this.__data__={hash:new Xr,map:new(eb||kn),string:new Xr}}function db(e){return Qo(this,e).delete(e)}function hb(e){return Qo(this,e).get(e)}function pb(e){return Qo(this,e).has(e)}function mb(e,t){return Qo(this,e).set(e,t),this}en.prototype.clear=fb;en.prototype.delete=db;en.prototype.get=hb;en.prototype.has=pb;en.prototype.set=mb;function gb(e,t,n){var r=e[t];(!(Yo.call(e,t)&&Pp(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Ko(e,t){for(var n=e.length;n--;)if(Pp(e[n][0],t))return n;return-1}function yb(e){if(!Do(e)||Tb(e))return!1;var t=Cb(e)||K_(e)?J_:G_;return t.test(Ab(e))}function vb(e,t,n,r){if(!Do(e))return e;t=wb(t,e)?[t]:_b(t);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var l=xb(t[o]),f=n;if(o!=s){var u=a[l];f=r?r(u,l,a):void 0,f===void 0&&(f=Do(u)?u:bb(t[o+1])?[]:{})}gb(a,l,f),a=a[l]}return e}function Eb(e){if(typeof e=="string")return e;if(Mu(e))return Uf?Uf.call(e):"";var t=e+"";return t=="0"&&1/e==-Op?"-0":t}function _b(e){return Ip(e)?e:Ob(e)}function Qo(e,t){var n=e.__data__;return Sb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Rp(e,t){var n=Y_(e,t);return yb(n)?n:void 0}function bb(e,t){return t=t??k_,!!t&&(typeof e=="number"||W_.test(e))&&e>-1&&e%1==0&&e<t}function wb(e,t){if(Ip(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Mu(e)?!0:D_.test(e)||!U_.test(e)||t!=null&&e in Object(t)}function Sb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Tb(e){return!!Bf&&Bf in e}var Ob=Bu(function(e){e=Pb(e);var t=[];return $_.test(e)&&t.push(""),e.replace(j_,function(n,r,o,i){t.push(o?i.replace(q_,"$1"):r||n)}),t});function xb(e){if(typeof e=="string"||Mu(e))return e;var t=e+"";return t=="0"&&1/e==-Op?"-0":t}function Ab(e){if(e!=null){try{return Ap.call(e)}catch{}try{return e+""}catch{}}return""}function Bu(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(L_);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Bu.Cache||en),n}Bu.Cache=en;function Pp(e,t){return e===t||e!==e&&t!==t}var Ip=Array.isArray;function Cb(e){var t=Do(e)?Cp.call(e):"";return t==B_||t==M_}function Do(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Rb(e){return!!e&&typeof e=="object"}function Mu(e){return typeof e=="symbol"||Rb(e)&&Cp.call(e)==F_}function Pb(e){return e==null?"":Eb(e)}function Ib(e,t,n){return e==null?e:vb(e,t,n)}var Nb=Ib;const Lb=jt(Nb),kb=(e,t)=>{Array.isArray(t)||(t=[t]);const n=N_(e);return t.forEach(({type:r,value:o})=>{Lb(n,r,o)}),n},Np=e=>{const t=[];return e.forEach(n=>{const r=parseInt(n);isNaN(r)||t.push(r)}),t.sort((n,r)=>n-r)},Lp=(e,t,n)=>{let r=n.mobile;for(const o in t){const i=parseInt(String(t[o]));if(e>=i)r=n[i];else if(e<i)break}return r},Df=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Bb=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const s=i/36e5,a=Math.floor(i/864e5);if(a<1)return s<1?{path:"now"}:{path:"hours",number:Math.floor(s)};if(a<7)return{path:"days",number:a};const l=Math.floor(a/7);return l<=52?{path:"weeks",number:l}:{path:"years",number:Math.floor(a/365)}},Mb=e=>new Promise(t=>setTimeout(t,e)),Fu={apolitical:"Apolitical",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 (coming soon)",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_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_delete:"Delete",discussion_delete_deleting:"Deleting...",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_action_answer:"answer",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_answer_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_answer_likes_like:"Like this answer",discussion_answer_likes_unlike:"Unlike answer",discussion_reply_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_reply_likes_like:"Like this reply",discussion_reply_likes_unlike:"Unlike reply",discussion_thread_reply_button:"Reply",discussion_thread_report_subject:"Report a post on Apolitical",discussion_thread_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
62
62
 
63
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
64
 
@@ -66,129 +66,40 @@ Thank you for helping to protect the Apolitical community from abusive content.`
66
66
 
67
67
  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.
68
68
 
69
- Thank you for helping to protect the Apolitical community from abusive content.`,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_member:"Member",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",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"},sI={collapsibleSection_summary:"En savoir plus"},lI=Object.freeze(Object.defineProperty({__proto__:null,en:Gh,fr:sI},Symbol.toStringTag,{value:"Module"})),wn=(e,t,r,n,a={})=>{let o="";return`${t}_${r}`in Gh?o=e({id:`${t}_${r}`},a):o=e({id:t},{[n]:r,...a}),o};var Sp=function(e,t){return Sp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Sp(e,t)};function ir(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var me=function(){return me=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},me.apply(this,arguments)};function ro(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Br(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;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 ew(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Ae;(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"})(Ae||(Ae={}));var Ke;(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"})(Ke||(Ke={}));var no;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(no||(no={}));function hg(e){return e.type===Ke.literal}function uI(e){return e.type===Ke.argument}function tw(e){return e.type===Ke.number}function rw(e){return e.type===Ke.date}function nw(e){return e.type===Ke.time}function aw(e){return e.type===Ke.select}function ow(e){return e.type===Ke.plural}function cI(e){return e.type===Ke.pound}function iw(e){return e.type===Ke.tag}function sw(e){return!!(e&&typeof e=="object"&&e.type===no.number)}function Rp(e){return!!(e&&typeof e=="object"&&e.type===no.dateTime)}var lw=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,fI=/(?:[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 dI(e){var t={};return e.replace(fI,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 pI=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hI(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(pI).filter(function(p){return p.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var i=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:i,options:l})}return r}function mI(e){return e.replace(/^(.*?)-/,"")}var mg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,uw=/^(@+)?(\+|#+)?[rs]?$/g,yI=/(\*)(0+)|(#+)(0+)|(0+)/g,cw=/^(0+)$/;function yg(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(uw,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function fw(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 vI(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)),!cw.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function vg(e){var t={},r=fw(e);return r||t}function gI(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.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=mI(a.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=me(me(me({},t),{notation:"scientific"}),a.options.reduce(function(l,u){return me(me({},l),vg(u))},{}));continue;case"engineering":t=me(me(me({},t),{notation:"engineering"}),a.options.reduce(function(l,u){return me(me({},l),vg(u))},{}));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(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(yI,function(l,u,c,d,p,f){if(u)t.minimumIntegerDigits=c.length;else{if(d&&p)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(cw.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(mg.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(mg,function(l,u,c,d,p,f){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&f?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=a.options[0];o==="w"?t=me(me({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=me(me({},t),yg(o)));continue}if(uw.test(a.stem)){t=me(me({},t),yg(a.stem));continue}var s=fw(a.stem);s&&(t=me(me({},t),s));var i=vI(a.stem);i&&(t=me(me({},t),i))}return t}var Ki={"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 bI(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var s=1+(o&1),i=o<2?1:3+(o>>1),l="a",u=EI(t);for((u=="H"||u=="k")&&(i=0);i-- >0;)r+=l;for(;s-- >0;)r=u+r}else a==="J"?r+="H":r+=a}return r}function EI(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 a=Ki[n||""]||Ki[r||""]||Ki["".concat(r,"-001")]||Ki["001"];return a[0]}var yd,_I=new RegExp("^".concat(lw.source,"*")),wI=new RegExp("".concat(lw.source,"*$"));function Ne(e,t){return{start:e,end:t}}var TI=!!String.prototype.startsWith,SI=!!String.fromCodePoint,RI=!!Object.fromEntries,CI=!!String.prototype.codePointAt,xI=!!String.prototype.trimStart,OI=!!String.prototype.trimEnd,PI=!!Number.isSafeInteger,AI=PI?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Cp=!0;try{var II=pw("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Cp=((yd=II.exec("a"))===null||yd===void 0?void 0:yd[0])==="a"}catch{Cp=!1}var gg=TI?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},xp=SI?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,s;a>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},bg=RI?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],s=o[0],i=o[1];r[s]=i}return r},dw=CI?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},NI=xI?function(t){return t.trimStart()}:function(t){return t.replace(_I,"")},MI=OI?function(t){return t.trimEnd()}:function(t){return t.replace(wI,"")};function pw(e,t){return new RegExp(e,t)}var Op;if(Cp){var Eg=pw("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Op=function(t,r){var n;Eg.lastIndex=r;var a=Eg.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else Op=function(t,r){for(var n=[];;){var a=dw(t,r);if(a===void 0||hw(a)||BI(a))break;n.push(a),r+=a>=65536?2:1}return xp.apply(void 0,n)};var $I=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 a=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;a.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var i=this.clonePosition();this.bump(),a.push({type:Ke.pound,location:Ne(i,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Ae.UNMATCHED_CLOSING_TAG,Ne(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Pp(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ke.literal,value:"<".concat(a,"/>"),location:Ne(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,i=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Pp(this.char()))return this.error(Ae.INVALID_TAG,Ne(i,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return a!==u?this.error(Ae.UNMATCHED_CLOSING_TAG,Ne(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ke.tag,value:a,children:s,location:Ne(n,this.clonePosition())},err:null}:this.error(Ae.INVALID_TAG,Ne(i,this.clonePosition())))}else return this.error(Ae.UNCLOSED_TAG,Ne(n,this.clonePosition()))}else return this.error(Ae.INVALID_TAG,Ne(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&LI(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){a+=s;continue}var i=this.tryParseLeftAngleBracket();if(i){a+=i;continue}break}var l=Ne(n,this.clonePosition());return{val:{type:Ke.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!kI(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 xp.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(),xp(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ne(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Ae.EMPTY_ARGUMENT,Ne(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Ae.MALFORMED_ARGUMENT,Ne(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ne(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ke.argument,value:a,location:Ne(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ne(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(Ae.MALFORMED_ARGUMENT,Ne(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Op(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),s=Ne(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,s=this.clonePosition(),i=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(i){case"":return this.error(Ae.EXPECT_ARGUMENT_TYPE,Ne(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=MI(d.val);if(p.length===0)return this.error(Ae.EXPECT_ARGUMENT_STYLE,Ne(this.clonePosition(),this.clonePosition()));var f=Ne(c,this.clonePosition());u={style:p,styleLocation:f}}var h=this.tryParseArgumentClose(a);if(h.err)return h;var m=Ne(a,this.clonePosition());if(u&&gg(u==null?void 0:u.style,"::",0)){var w=NI(u.style.slice(2));if(i==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:Ke.number,value:n,location:m,style:d.val},err:null}}else{if(w.length===0)return this.error(Ae.EXPECT_DATE_TIME_SKELETON,m);var E=w;this.locale&&(E=bI(w,this.locale));var p={type:no.dateTime,pattern:E,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?dI(E):{}},y=i==="date"?Ke.date:Ke.time;return{val:{type:y,value:n,location:m,style:p},err:null}}}return{val:{type:i==="number"?Ke.number:i==="date"?Ke.date:Ke.time,value:n,location:m,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ae.EXPECT_SELECT_ARGUMENT_OPTIONS,Ne(T,me({},T)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),S=0;if(i!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(Ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ne(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),R=this.parseIdentifierIfPossible(),S=d.val}var O=this.tryParsePluralOrSelectOptions(t,i,r,R);if(O.err)return O;var h=this.tryParseArgumentClose(a);if(h.err)return h;var N=Ne(a,this.clonePosition());return i==="select"?{val:{type:Ke.select,value:n,options:bg(O.val),location:N},err:null}:{val:{type:Ke.plural,value:n,options:bg(O.val),offset:S,pluralType:i==="plural"?"cardinal":"ordinal",location:N},err:null}}default:return this.error(Ae.INVALID_ARGUMENT_TYPE,Ne(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Ae.EXPECT_ARGUMENT_CLOSING_BRACE,Ne(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 a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ae.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ne(a,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=hI(t)}catch{return this.error(Ae.INVALID_NUMBER_SKELETON,r)}return{val:{type:no.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?gI(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,s=!1,i=[],l=new Set,u=a.value,c=a.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ae.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=Ne(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?Ae.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ae.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ne(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,r,n);if(h.err)return h;var m=this.tryParseArgumentClose(f);if(m.err)return m;i.push([u,{value:h.val,location:Ne(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return i.length===0?this.error(r==="select"?Ae.EXPECT_SELECT_ARGUMENT_SELECTOR:Ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ne(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Ae.MISSING_OTHER_CLAUSE,Ne(this.clonePosition(),this.clonePosition())):{val:i,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var i=this.char();if(i>=48&&i<=57)o=!0,s=s*10+(i-48),this.bump();else break}var l=Ne(a,this.clonePosition());return o?(s*=n,AI(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},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=dw(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(gg(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()&&hw(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 Pp(e){return e>=97&&e<=122||e>=65&&e<=90}function kI(e){return Pp(e)||e===47}function LI(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 hw(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function BI(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 Ap(e){e.forEach(function(t){if(delete t.location,aw(t)||ow(t))for(var r in t.options)delete t.options[r].location,Ap(t.options[r].value);else tw(t)&&sw(t.style)||(rw(t)||nw(t))&&Rp(t.style)?delete t.style.location:iw(t)&&Ap(t.children)})}function DI(e,t){t===void 0&&(t={}),t=me({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new $I(e,t).parse();if(r.err){var n=SyntaxError(Ae[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ap(r.val),r.val}function $r(e,t){var r=t&&t.cache?t.cache:GI,n=t&&t.serializer?t.serializer:HI,a=t&&t.strategy?t.strategy:FI;return a(e,{cache:r,serializer:n})}function qI(e){return e==null||typeof e=="number"||typeof e=="boolean"}function mw(e,t,r,n){var a=qI(n)?n:r(n),o=t.get(a);return typeof o>"u"&&(o=e.call(this,n),t.set(a,o)),o}function yw(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,n),t.set(a,o)),o}function Wh(e,t,r,n,a){return r.bind(t,e,n,a)}function FI(e,t){var r=e.length===1?mw:yw;return Wh(e,this,r,t.cache.create(),t.serializer)}function jI(e,t){return Wh(e,this,yw,t.cache.create(),t.serializer)}function UI(e,t){return Wh(e,this,mw,t.cache.create(),t.serializer)}var HI=function(){return JSON.stringify(arguments)};function Vh(){this.cache=Object.create(null)}Vh.prototype.get=function(e){return this.cache[e]};Vh.prototype.set=function(e,t){this.cache[e]=t};var GI={create:function(){return new Vh}},kr={variadic:jI,monadic:UI},Dr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Dr||(Dr={}));var Gn=function(e){ir(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),_g=function(e){ir(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Dr.INVALID_VALUE,o)||this}return t}(Gn),WI=function(e){ir(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Dr.INVALID_VALUE,a)||this}return t}(Gn),VI=function(e){ir(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,'"'),Dr.MISSING_VALUE,n)||this}return t}(Gn),Bt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Bt||(Bt={}));function zI(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Bt.literal||r.type!==Bt.literal?t.push(r):n.value+=r.value,t},[])}function vw(e){return typeof e=="function"}function is(e,t,r,n,a,o,s){if(e.length===1&&hg(e[0]))return[{type:Bt.literal,value:e[0].value}];for(var i=[],l=0,u=e;l<u.length;l++){var c=u[l];if(hg(c)){i.push({type:Bt.literal,value:c.value});continue}if(cI(c)){typeof o=="number"&&i.push({type:Bt.literal,value:r.getNumberFormat(t).format(o)});continue}var d=c.value;if(!(a&&d in a))throw new VI(d,s);var p=a[d];if(uI(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),i.push({type:typeof p=="string"?Bt.literal:Bt.object,value:p});continue}if(rw(c)){var f=typeof c.style=="string"?n.date[c.style]:Rp(c.style)?c.style.parsedOptions:void 0;i.push({type:Bt.literal,value:r.getDateTimeFormat(t,f).format(p)});continue}if(nw(c)){var f=typeof c.style=="string"?n.time[c.style]:Rp(c.style)?c.style.parsedOptions:n.time.medium;i.push({type:Bt.literal,value:r.getDateTimeFormat(t,f).format(p)});continue}if(tw(c)){var f=typeof c.style=="string"?n.number[c.style]:sw(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(p=p*(f.scale||1)),i.push({type:Bt.literal,value:r.getNumberFormat(t,f).format(p)});continue}if(iw(c)){var h=c.children,m=c.value,w=a[m];if(!vw(w))throw new WI(m,"function",s);var E=is(h,t,r,n,a,o),y=w(E.map(function(S){return S.value}));Array.isArray(y)||(y=[y]),i.push.apply(i,y.map(function(S){return{type:typeof S=="string"?Bt.literal:Bt.object,value:S}}))}if(aw(c)){var T=c.options[p]||c.options.other;if(!T)throw new _g(c.value,p,Object.keys(c.options),s);i.push.apply(i,is(T.value,t,r,n,a));continue}if(ow(c)){var T=c.options["=".concat(p)];if(!T){if(!Intl.PluralRules)throw new Gn(`Intl.PluralRules is not available in this environment.
69
+ Thank you for helping to protect the Apolitical community from abusive content.`,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_member:"Member",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",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"},Fb={collapsibleSection_summary:"En savoir plus"},Ub=Object.freeze(Object.defineProperty({__proto__:null,en:Fu,fr:Fb},Symbol.toStringTag,{value:"Module"})),dr=(e,t,n,r,o={})=>{let i="";return`${t}_${n}`in Fu?i=e({id:`${t}_${n}`},o):i=e({id:t},{[r]:n,...o}),i},Db=(e,t)=>G.Children.map(e,n=>G.cloneElement(n,{...t})),$b=e=>e.replace(/\s+/g,"").length>0,ut=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:o=!1,element:i="button",onClick:s=!1,className:a="",disabled:l=!1,screenreaderText:f=!1,children:u=!1,...h})=>{const c=Ki(typeof t=="object");if(typeof t=="object"&&typeof c=="number"){const _=Object.assign({},t),T=Np(Object.keys(_));t=Lp(c,T,_)}const p=[];typeof t=="string"&&p.push(t),r&&(p.push("icon"),typeof r=="object"?(p.push(r.icon),r.position?p.push(r.position):p.push("left"),r.hover&&p.push(`hover_${r.hover}`),r.animate&&(p.push("animate"),typeof r.animate=="string"&&p.push(r.animate))):(p.push(r),!r.includes("right")&&!r.includes("left")&&p.push("left"))),n.muted&&p.push("muted"),n.fullWidth&&p.push("full-width");const m={...h,className:se(e,a,p,{"no-text":!u,disabled:l,button:o}),onClick:_=>{(!o||o[0]==="#")&&s&&(_.preventDefault(),_.stopPropagation()),s&&s(_)},disabled:typeof l=="object"&&"isClickable"in l?!l.isClickable:l};return o&&(i="a",m.href=o),G.createElement(i,m,u||(f?C.jsx(it,{showOnFocus:!1,children:f}):null))},Xo=({buttons:e,className:t="",...n})=>{const r=e.length>1?"ul":"p",o=e.map((i,s)=>r==="p"?C.jsx(ut,{...i},s):C.jsx("li",{children:C.jsx(ut,{...i})},s));return G.createElement(r,{className:se("button-wrapper",t),...n},o)},kp=({href:e,children:t,className:n="",onClick:r=()=>{},gtmContext:o,gtmType:i,...s})=>e?C.jsx("a",{href:e,className:se("gtm-trackable",n),onClick:r,"data-gtm-event-context":o,"data-gtm-event-type":i,...s,children:t}):t,$f={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"}},jb=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:o}=e?$f[e]:$f.fallback;return{range:t&&t.length>0?t:r,sizes:n||o}},Hb=({format:e,height:t,query:n,width:r})=>{let o=`w=${r}&h=${t}`;return o=e?`${o}&fm=${e}`:o,o=n?`${o}&${n}`:o,o},Ts=({format:e,range:t,url:n,query:r})=>t.map(({height:o,width:i})=>`${n}?${Hb({format:e,height:o,query:r,width:i})} ${i}w`).join(", ");const Bp=({image:e,className:t,testId:n})=>{const{description:r,height:o,type:i,query:s,url:a,width:l,loading:f,decoding:u,fetchPriority:h}=e,{range:d,sizes:c}=jb(e),p=Ts({format:"avif",query:s,range:d,url:a}),m=Ts({format:"webp",query:s,range:d,url:a}),_=Ts({format:"",query:s,range:d,url:a});return C.jsxs("picture",{className:t,children:[i!=="image/gif"&&C.jsx("source",{type:"image/avif",srcSet:p,sizes:c,"data-testid":"source"}),C.jsx("source",{type:"image/webp",srcSet:m,sizes:c,"data-testid":"source"}),C.jsx("img",{srcSet:_,sizes:c,src:a,alt:r,loading:f||"lazy",decoding:u||"async",fetchpriority:h||"auto",width:l,height:o,"data-testid":n||"image"})]})};const Uu=({children:e,className:t="",...n})=>C.jsx("section",{className:se("full-width-section",t),...n,children:e});const qb=({text:e,buttons:t,className:n=""})=>{const r=[];return t.forEach(o=>{r.push({href:o.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":o.eventContext||"Download",target:"_blank",children:o.text})}),C.jsx(Uu,{className:se("download-section",n),children:C.jsxs(C.Fragment,{children:[G.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),C.jsx(Xo,{buttons:r})]})})};const Gb=({title:e=!1,logos:t=[],className:n=""})=>{const r=t.length;if(r===0)return null;const o={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return C.jsxs("div",{className:se("logos",n),children:[e&&G.createElement(o.element,{className:"title"},o.text),C.jsx("ul",{className:se({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:t.map(({logo:i,nameOfBusiness:s,link:a=!1,description:l=!1},f)=>{if(!i||!i.url)return null;const u=C.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:s});return C.jsxs("li",{children:[C.jsx("p",{className:"img-wrapper",children:a?C.jsx("a",{href:a,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),l&&C.jsx("small",{children:l})]},window.btoa(`${i.url}_${f}`))})})]})};const Wb=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],Vb=({content:e,image:t,variant:n="default",spacing:r="normal",cta:o,children:i})=>{const s=["eyebrow","title","text"],a={eyebrow:"small",title:"h1",text:"p"},l={};return s.forEach(f=>{if(!e[f]){l[f]=!1;return}if(typeof e[f]=="object"){l[f]=e[f];const{text:u,element:h}=e[f];if(h&&Wb.includes(h.toLowerCase()))return;l[f]={text:u,element:a[f]};return}l[f]={text:e[f],element:a[f]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=f=>{f.preventDefault(),f.stopPropagation();const u=document.getElementById(o.link.substring(1));u&&u.scrollIntoView({behavior:"smooth"})}),C.jsx(Uu,{className:se("banner-section",n,r,{"has-image":t,"has-extra-spacing":r==="normal"&&l.eyebrow&&l.title}),children:C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"content-wrapper",children:[s.map(f=>{if(l[f]&&typeof l[f]=="object"){const{text:u,element:h=""}=l[f];return G.createElement(h.toLowerCase(),{key:f,className:f},u)}return null}),i,o&&o.text&&o.link&&C.jsx(ut,{variant:t||n==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&C.jsx(Bp,{image:{...t,aspect:"banner"}})]})})},zb=G.memo(Vb);const Yb=({variant:e="primary",button:t=null,title:n,text:r,gtmContext:o})=>!n&&!r?null:C.jsxs("aside",{className:se("marketing-block",e),children:[n&&C.jsx("p",{className:"title",children:n}),r&&C.jsx("p",{children:r}),t&&C.jsx(ut,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var tu=function(e,t){return tu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},tu(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tu(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ne=function(){return ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ne.apply(this,arguments)};function Cn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Dt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Mp(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var ye;(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"})(ye||(ye={}));var Le;(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"})(Le||(Le={}));var Rn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Rn||(Rn={}));function jf(e){return e.type===Le.literal}function Kb(e){return e.type===Le.argument}function Fp(e){return e.type===Le.number}function Up(e){return e.type===Le.date}function Dp(e){return e.type===Le.time}function $p(e){return e.type===Le.select}function jp(e){return e.type===Le.plural}function Qb(e){return e.type===Le.pound}function Hp(e){return e.type===Le.tag}function qp(e){return!!(e&&typeof e=="object"&&e.type===Rn.number)}function ru(e){return!!(e&&typeof e=="object"&&e.type===Rn.dateTime)}var Gp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Xb=/(?:[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 Jb(e){var t={};return e.replace(Xb,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-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=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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 Zb=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ew(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Zb).filter(function(d){return d.length>0}),n=[],r=0,o=t;r<o.length;r++){var i=o[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),f=0,u=l;f<u.length;f++){var h=u[f];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function tw(e){return e.replace(/^(.*?)-/,"")}var Hf=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wp=/^(@+)?(\+|#+)?[rs]?$/g,rw=/(\*)(0+)|(#+)(0+)|(0+)/g,Vp=/^(0+)$/;function qf(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Wp,function(n,r,o){return typeof o!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):o==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),t}function zp(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 nw(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Vp.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Gf(e){var t={},n=zp(e);return n||t}function iw(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=tw(o.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=ne(ne(ne({},t),{notation:"scientific"}),o.options.reduce(function(l,f){return ne(ne({},l),Gf(f))},{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),o.options.reduce(function(l,f){return ne(ne({},l),Gf(f))},{}));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(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(rw,function(l,f,u,h,d,c){if(f)t.minimumIntegerDigits=u.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(c)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Vp.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Hf.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Hf,function(l,f,u,h,d,c){return u==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&c?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+c.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var i=o.options[0];i==="w"?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ne(ne({},t),qf(i)));continue}if(Wp.test(o.stem)){t=ne(ne({},t),qf(o.stem));continue}var s=zp(o.stem);s&&(t=ne(ne({},t),s));var a=nw(o.stem);a&&(t=ne(ne({},t),a))}return t}var wo={"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 ow(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(i&1),a=i<2?1:3+(i>>1),l="a",f=aw(t);for((f=="H"||f=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=f+n}else o==="J"?n+="H":n+=o}return n}function aw(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 n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=wo[r||""]||wo[n||""]||wo["".concat(n,"-001")]||wo["001"];return o[0]}var Os,sw=new RegExp("^".concat(Gp.source,"*")),uw=new RegExp("".concat(Gp.source,"*$"));function Ee(e,t){return{start:e,end:t}}var cw=!!String.prototype.startsWith,lw=!!String.fromCodePoint,fw=!!Object.fromEntries,dw=!!String.prototype.codePointAt,hw=!!String.prototype.trimStart,pw=!!String.prototype.trimEnd,mw=!!Number.isSafeInteger,gw=mw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},nu=!0;try{var yw=Kp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nu=((Os=yw.exec("a"))===null||Os===void 0?void 0:Os[0])==="a"}catch{nu=!1}var Wf=cw?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},iu=lw?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",o=t.length,i=0,s;o>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Vf=fw?Object.fromEntries:function(t){for(var n={},r=0,o=t;r<o.length;r++){var i=o[r],s=i[0],a=i[1];n[s]=a}return n},Yp=dw?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},vw=hw?function(t){return t.trimStart()}:function(t){return t.replace(sw,"")},Ew=pw?function(t){return t.trimEnd()}:function(t){return t.replace(uw,"")};function Kp(e,t){return new RegExp(e,t)}var ou;if(nu){var zf=Kp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ou=function(t,n){var r;zf.lastIndex=n;var o=zf.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else ou=function(t,n){for(var r=[];;){var o=Yp(t,n);if(o===void 0||Qp(o)||Sw(o))break;r.push(o),n+=o>=65536?2:1}return iu.apply(void 0,r)};var _w=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:Le.pound,location:Ee(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ye.UNMATCHED_CLOSING_TAG,Ee(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&au(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Le.literal,value:"<".concat(o,"/>"),location:Ee(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!au(this.char()))return this.error(ye.INVALID_TAG,Ee(a,this.clonePosition()));var l=this.clonePosition(),f=this.parseTagName();return o!==f?this.error(ye.UNMATCHED_CLOSING_TAG,Ee(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:o,children:s,location:Ee(r,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,Ee(a,this.clonePosition())))}else return this.error(ye.UNCLOSED_TAG,Ee(r,this.clonePosition()))}else return this.error(ye.INVALID_TAG,Ee(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ww(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=Ee(r,this.clonePosition());return{val:{type:Le.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!bw(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 n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return iu.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),iu(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ee(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ye.EMPTY_ARGUMENT,Ee(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ye.MALFORMED_ARGUMENT,Ee(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ee(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:o,location:Ee(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ee(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(ye.MALFORMED_ARGUMENT,Ee(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=ou(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),s=Ee(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,Ee(s,l));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Ew(h.val);if(d.length===0)return this.error(ye.EXPECT_ARGUMENT_STYLE,Ee(this.clonePosition(),this.clonePosition()));var c=Ee(u,this.clonePosition());f={style:d,styleLocation:c}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=Ee(o,this.clonePosition());if(f&&Wf(f==null?void 0:f.style,"::",0)){var _=vw(f.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(_,f.styleLocation);return h.err?h:{val:{type:Le.number,value:r,location:m,style:h.val},err:null}}else{if(_.length===0)return this.error(ye.EXPECT_DATE_TIME_SKELETON,m);var T=_;this.locale&&(T=ow(_,this.locale));var d={type:Rn.dateTime,pattern:T,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Jb(T):{}},E=a==="date"?Le.date:Le.time;return{val:{type:E,value:r,location:m,style:d},err:null}}}return{val:{type:a==="number"?Le.number:a==="date"?Le.date:Le.time,value:r,location:m,style:(i=f==null?void 0:f.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,Ee(b,ne({},b)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ee(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),A=this.parseIdentifierIfPossible(),w=h.val}var N=this.tryParsePluralOrSelectOptions(t,a,n,A);if(N.err)return N;var p=this.tryParseArgumentClose(o);if(p.err)return p;var F=Ee(o,this.clonePosition());return a==="select"?{val:{type:Le.select,value:r,options:Vf(N.val),location:F},err:null}:{val:{type:Le.plural,value:r,options:Vf(N.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ye.INVALID_ARGUMENT_TYPE,Ee(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,Ee(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ee(o,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(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ew(t)}catch{return this.error(ye.INVALID_NUMBER_SKELETON,n)}return{val:{type:Rn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?iw(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,s=!1,a=[],l=new Set,f=o.value,u=o.location;;){if(f.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=Ee(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(l.has(f))return this.error(n==="select"?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);f==="other"&&(s=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ee(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var m=this.tryParseArgumentClose(c);if(m.err)return m;a.push([f,{value:p.val,location:Ee(c,this.clonePosition())}]),l.add(f),this.bumpSpace(),i=this.parseIdentifierIfPossible(),f=i.value,u=i.location}return a.length===0?this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ee(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ye.MISSING_OTHER_CLAUSE,Ee(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var l=Ee(o,this.clonePosition());return i?(s*=r,gw(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},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 n=Yp(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},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(Wf(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!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 n=this.offset();if(n===t)break;if(n>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()&&Qp(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function au(e){return e>=97&&e<=122||e>=65&&e<=90}function bw(e){return au(e)||e===47}function ww(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 Qp(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Sw(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 su(e){e.forEach(function(t){if(delete t.location,$p(t)||jp(t))for(var n in t.options)delete t.options[n].location,su(t.options[n].value);else Fp(t)&&qp(t.style)||(Up(t)||Dp(t))&&ru(t.style)?delete t.style.location:Hp(t)&&su(t.children)})}function Tw(e,t){t===void 0&&(t={}),t=ne({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new _w(e,t).parse();if(n.err){var r=SyntaxError(ye[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||su(n.val),n.val}function Mt(e,t){var n=t&&t.cache?t.cache:Pw,r=t&&t.serializer?t.serializer:Rw,o=t&&t.strategy?t.strategy:xw;return o(e,{cache:n,serializer:r})}function Ow(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Xp(e,t,n,r){var o=Ow(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function Jp(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function Du(e,t,n,r,o){return n.bind(t,e,r,o)}function xw(e,t){var n=e.length===1?Xp:Jp;return Du(e,this,n,t.cache.create(),t.serializer)}function Aw(e,t){return Du(e,this,Jp,t.cache.create(),t.serializer)}function Cw(e,t){return Du(e,this,Xp,t.cache.create(),t.serializer)}var Rw=function(){return JSON.stringify(arguments)};function $u(){this.cache=Object.create(null)}$u.prototype.get=function(e){return this.cache[e]};$u.prototype.set=function(e,t){this.cache[e]=t};var Pw={create:function(){return new $u}},Ft={variadic:Aw,monadic:Cw},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var _r=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Yf=function(e){vt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(_r),Iw=function(e){vt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(_r),Nw=function(e){vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(_r),nt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(nt||(nt={}));function Lw(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==nt.literal||n.type!==nt.literal?t.push(n):r.value+=n.value,t},[])}function Zp(e){return typeof e=="function"}function Ro(e,t,n,r,o,i,s){if(e.length===1&&jf(e[0]))return[{type:nt.literal,value:e[0].value}];for(var a=[],l=0,f=e;l<f.length;l++){var u=f[l];if(jf(u)){a.push({type:nt.literal,value:u.value});continue}if(Qb(u)){typeof i=="number"&&a.push({type:nt.literal,value:n.getNumberFormat(t).format(i)});continue}var h=u.value;if(!(o&&h in o))throw new Nw(h,s);var d=o[h];if(Kb(u)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?nt.literal:nt.object,value:d});continue}if(Up(u)){var c=typeof u.style=="string"?r.date[u.style]:ru(u.style)?u.style.parsedOptions:void 0;a.push({type:nt.literal,value:n.getDateTimeFormat(t,c).format(d)});continue}if(Dp(u)){var c=typeof u.style=="string"?r.time[u.style]:ru(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:nt.literal,value:n.getDateTimeFormat(t,c).format(d)});continue}if(Fp(u)){var c=typeof u.style=="string"?r.number[u.style]:qp(u.style)?u.style.parsedOptions:void 0;c&&c.scale&&(d=d*(c.scale||1)),a.push({type:nt.literal,value:n.getNumberFormat(t,c).format(d)});continue}if(Hp(u)){var p=u.children,m=u.value,_=o[m];if(!Zp(_))throw new Iw(m,"function",s);var T=Ro(p,t,n,r,o,i),E=_(T.map(function(w){return w.value}));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map(function(w){return{type:typeof w=="string"?nt.literal:nt.object,value:w}}))}if($p(u)){var b=u.options[d]||u.options.other;if(!b)throw new Yf(u.value,d,Object.keys(u.options),s);a.push.apply(a,Ro(b.value,t,n,r,o));continue}if(jp(u)){var b=u.options["=".concat(d)];if(!b){if(!Intl.PluralRules)throw new _r(`Intl.PluralRules is not available in this environment.
70
70
  Try polyfilling it using "@formatjs/intl-pluralrules"
71
- `,Dr.MISSING_INTL_API,s);var R=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));T=c.options[R]||c.options.other}if(!T)throw new _g(c.value,p,Object.keys(c.options),s);i.push.apply(i,is(T.value,t,r,n,a,p-(c.offset||0)));continue}}return zI(i)}function YI(e,t){return t?me(me(me({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=me(me({},e[n]),t[n]||{}),r},{})):e}function KI(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=YI(e[n],t[n]),r},me({},e)):e}function vd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function XI(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:$r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Br([void 0],r,!1)))},{cache:vd(e.number),strategy:kr.variadic}),getDateTimeFormat:$r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Br([void 0],r,!1)))},{cache:vd(e.dateTime),strategy:kr.variadic}),getPluralRules:$r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Br([void 0],r,!1)))},{cache:vd(e.pluralRules),strategy:kr.variadic})}}var gw=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,p){return!d.length||p.type!==Bt.literal||typeof d[d.length-1]!="string"?d.push(p.value):d[d.length-1]+=p.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return is(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.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 s=a||{};s.formatters;var i=ro(s,["formatters"]);this.ast=e.__parse(t,me(me({},i),{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=KI(e.formats,n),this.formatters=a&&a.formatters||XI(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=DI,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}(),_a;(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"})(_a||(_a={}));var Ei=function(e){ir(t,e);function t(r,n,a){var o=this,s=a?a instanceof Error?a:new Error(String(a)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
71
+ `,$t.MISSING_INTL_API,s);var A=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));b=u.options[A]||u.options.other}if(!b)throw new Yf(u.value,d,Object.keys(u.options),s);a.push.apply(a,Ro(b.value,t,n,r,o,d-(u.offset||0)));continue}}return Lw(a)}function kw(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ne(ne({},e[r]),t[r]||{}),n},{})):e}function Bw(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=kw(e[r],t[r]),n},ne({},e)):e}function xs(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Mw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Mt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:xs(e.number),strategy:Ft.variadic}),getDateTimeFormat:Mt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:xs(e.dateTime),strategy:Ft.variadic}),getPluralRules:Mt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Dt([void 0],n,!1)))},{cache:xs(e.pluralRules),strategy:Ft.variadic})}}var em=function(){function e(t,n,r,o){n===void 0&&(n=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var f=i.formatToParts(l);if(f.length===1)return f[0].value;var u=f.reduce(function(h,d){return!h.length||d.type!==nt.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return Ro(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Cn(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{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=Bw(e.formats,r),this.formatters=o&&o.formatters||Mw(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 n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Tw,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}(),Jr;(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"})(Jr||(Jr={}));var Qi=function(e){vt(t,e);function t(n,r,o){var i=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
72
72
  `).concat(s?`
73
73
  `.concat(s.message,`
74
- `).concat(s.stack):""))||this,o.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),QI=function(e){ir(t,e);function t(r,n){return e.call(this,_a.UNSUPPORTED_FORMATTER,r,n)||this}return t}(Ei),JI=function(e){ir(t,e);function t(r,n){return e.call(this,_a.INVALID_CONFIG,r,n)||this}return t}(Ei),wg=function(e){ir(t,e);function t(r,n){return e.call(this,_a.MISSING_DATA,r,n)||this}return t}(Ei),sr=function(e){ir(t,e);function t(r,n,a){var o=e.call(this,_a.FORMAT_ERROR,"".concat(r,`
75
- Locale: `).concat(n,`
76
- `),a)||this;return o.locale=n,o}return t}(Ei),gd=function(e){ir(t,e);function t(r,n,a,o){var s=e.call(this,"".concat(r,`
77
- MessageID: `).concat(a==null?void 0:a.id,`
78
- Default Message: `).concat(a==null?void 0:a.defaultMessage,`
79
- Description: `).concat(a==null?void 0:a.description,`
80
- `),n,o)||this;return s.descriptor=a,s.locale=n,s}return t}(sr),ZI=function(e){ir(t,e);function t(r,n){var a=e.call(this,_a.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 s;return(s=o.value)!==null&&s!==void 0?s:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=r,a}return t}(Ei);function Ra(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,a){return a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n},{})}var eN=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},tN=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},bw={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:eN,onWarn:tN};function Ew(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function da(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function rN(e){e===void 0&&(e=Ew());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=$r(function(){for(var i,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((i=Intl.DateTimeFormat).bind.apply(i,Br([void 0],l,!1)))},{cache:da(e.dateTime),strategy:kr.variadic}),o=$r(function(){for(var i,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((i=Intl.NumberFormat).bind.apply(i,Br([void 0],l,!1)))},{cache:da(e.number),strategy:kr.variadic}),s=$r(function(){for(var i,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((i=Intl.PluralRules).bind.apply(i,Br([void 0],l,!1)))},{cache:da(e.pluralRules),strategy:kr.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:$r(function(i,l,u,c){return new gw(i,l,u,me({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:s}},c||{}))},{cache:da(e.message),strategy:kr.variadic}),getRelativeTimeFormat:$r(function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(t.bind.apply(t,Br([void 0],i,!1)))},{cache:da(e.relativeTime),strategy:kr.variadic}),getPluralRules:s,getListFormat:$r(function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(r.bind.apply(r,Br([void 0],i,!1)))},{cache:da(e.list),strategy:kr.variadic}),getDisplayNames:$r(function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(n.bind.apply(n,Br([void 0],i,!1)))},{cache:da(e.displayNames),strategy:kr.variadic})}}function zh(e,t,r,n){var a=e&&e[t],o;if(a&&(o=a[r]),o)return o;n(new QI("No ".concat(t," format named: ").concat(r)))}function Xi(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=me({timeZone:t},e[n]),r},{})}function Tg(e,t){var r=Object.keys(me(me({},e),t));return r.reduce(function(n,a){return n[a]=me(me({},e[a]||{}),t[a]||{}),n},{})}function Sg(e,t){if(!t)return e;var r=gw.formats;return me(me(me({},r),e),{date:Tg(Xi(r.date,t),Xi(e.date||{},t)),time:Tg(Xi(r.time,t),Xi(e.time||{},t))})}var Ip=function(e,t,r,n,a){var o=e.locale,s=e.formats,i=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,p=e.timeZone,f=e.defaultRichTextElements;r===void 0&&(r={id:""});var h=r.id,m=r.defaultMessage;ew(!!h,"[@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 w=String(h),E=i&&Object.prototype.hasOwnProperty.call(i,w)&&i[w];if(Array.isArray(E)&&E.length===1&&E[0].type===Ke.literal)return E[0].value;if(!n&&E&&typeof E=="string"&&!f)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=me(me({},f),n||{}),s=Sg(s,p),u=Sg(u,p),!E){if(c===!1&&E==="")return E;if((!m||o&&o.toLowerCase()!==l.toLowerCase())&&d(new ZI(r,o)),m)try{var y=t.getMessageFormat(m,l,u,a);return y.format(n)}catch(T){return d(new gd('Error formatting default message for: "'.concat(w,'", rendering default message verbatim'),o,r,T)),typeof m=="string"?m:w}return w}try{var y=t.getMessageFormat(E,o,s,me({formatters:t},a||{}));return y.format(n)}catch(T){d(new gd('Error formatting message: "'.concat(w,'", using ').concat(m?"default message":"id"," as fallback."),o,r,T))}if(m)try{var y=t.getMessageFormat(m,l,u,a);return y.format(n)}catch(T){d(new gd('Error formatting the default message for: "'.concat(w,'", rendering message verbatim'),o,r,T))}return typeof E=="string"?E:typeof m=="string"?m:w},_w=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function tl(e,t,r,n){var a=e.locale,o=e.formats,s=e.onError,i=e.timeZone;n===void 0&&(n={});var l=n.format,u=me(me({},i&&{timeZone:i}),l&&zh(o,t,l,s)),c=Ra(n,_w,u);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=me(me({},c),{hour:"numeric",minute:"numeric"})),r(a,c)}function nN(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],s=o===void 0?{}:o,i=typeof a=="string"?new Date(a||0):a;try{return tl(e,"date",t,s).format(i)}catch(l){e.onError(new sr("Error formatting date.",e.locale,l))}return String(i)}function aN(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],s=o===void 0?{}:o,i=typeof a=="string"?new Date(a||0):a;try{return tl(e,"time",t,s).format(i)}catch(l){e.onError(new sr("Error formatting time.",e.locale,l))}return String(i)}function oN(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],s=r[2],i=s===void 0?{}:s,l=e.timeZone,u=e.locale,c=e.onError,d=Ra(i,_w,l?{timeZone:l}:{});try{return t(u,d).formatRange(a,o)}catch(p){c(new sr("Error formatting date time range.",e.locale,p))}return String(a)}function iN(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],s=o===void 0?{}:o,i=typeof a=="string"?new Date(a||0):a;try{return tl(e,"date",t,s).formatToParts(i)}catch(l){e.onError(new sr("Error formatting date.",e.locale,l))}return[]}function sN(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],s=o===void 0?{}:o,i=typeof a=="string"?new Date(a||0):a;try{return tl(e,"time",t,s).formatToParts(i)}catch(l){e.onError(new sr("Error formatting time.",e.locale,l))}return[]}var lN=["style","type","fallback","languageDisplay"];function uN(e,t,r,n){var a=e.locale,o=e.onError,s=Intl.DisplayNames;s||o(new Gn(`Intl.DisplayNames is not available in this environment.
74
+ `).concat(s.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),Fw=function(e){vt(t,e);function t(n,r){return e.call(this,Jr.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Qi),Uw=function(e){vt(t,e);function t(n,r){return e.call(this,Jr.INVALID_CONFIG,n,r)||this}return t}(Qi),Kf=function(e){vt(t,e);function t(n,r){return e.call(this,Jr.MISSING_DATA,n,r)||this}return t}(Qi),Et=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,Jr.FORMAT_ERROR,"".concat(n,`
75
+ Locale: `).concat(r,`
76
+ `),o)||this;return i.locale=r,i}return t}(Qi),As=function(e){vt(t,e);function t(n,r,o,i){var s=e.call(this,"".concat(n,`
77
+ MessageID: `).concat(o==null?void 0:o.id,`
78
+ Default Message: `).concat(o==null?void 0:o.defaultMessage,`
79
+ Description: `).concat(o==null?void 0:o.description,`
80
+ `),r,i)||this;return s.descriptor=o,s.locale=r,s}return t}(Et),Dw=function(e){vt(t,e);function t(n,r){var o=e.call(this,Jr.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(Qi);function tn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var $w=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},jw=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},tm={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:$w,onWarn:jw};function rm(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Wr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Hw(e){e===void 0&&(e=rm());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=Mt(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.DateTimeFormat).bind.apply(a,Dt([void 0],l,!1)))},{cache:Wr(e.dateTime),strategy:Ft.variadic}),i=Mt(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.NumberFormat).bind.apply(a,Dt([void 0],l,!1)))},{cache:Wr(e.number),strategy:Ft.variadic}),s=Mt(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.PluralRules).bind.apply(a,Dt([void 0],l,!1)))},{cache:Wr(e.pluralRules),strategy:Ft.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Mt(function(a,l,f,u){return new em(a,l,f,ne({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:s}},u||{}))},{cache:Wr(e.message),strategy:Ft.variadic}),getRelativeTimeFormat:Mt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(t.bind.apply(t,Dt([void 0],a,!1)))},{cache:Wr(e.relativeTime),strategy:Ft.variadic}),getPluralRules:s,getListFormat:Mt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(n.bind.apply(n,Dt([void 0],a,!1)))},{cache:Wr(e.list),strategy:Ft.variadic}),getDisplayNames:Mt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(r.bind.apply(r,Dt([void 0],a,!1)))},{cache:Wr(e.displayNames),strategy:Ft.variadic})}}function ju(e,t,n,r){var o=e&&e[t],i;if(o&&(i=o[n]),i)return i;r(new Fw("No ".concat(t," format named: ").concat(n)))}function So(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=ne({timeZone:t},e[r]),n},{})}function Qf(e,t){var n=Object.keys(ne(ne({},e),t));return n.reduce(function(r,o){return r[o]=ne(ne({},e[o]||{}),t[o]||{}),r},{})}function Xf(e,t){if(!t)return e;var n=em.formats;return ne(ne(ne({},n),e),{date:Qf(So(n.date,t),So(e.date||{},t)),time:Qf(So(n.time,t),So(e.time||{},t))})}var uu=function(e,t,n,r,o){var i=e.locale,s=e.formats,a=e.messages,l=e.defaultLocale,f=e.defaultFormats,u=e.fallbackOnEmptyString,h=e.onError,d=e.timeZone,c=e.defaultRichTextElements;n===void 0&&(n={id:""});var p=n.id,m=n.defaultMessage;Mp(!!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),T=a&&Object.prototype.hasOwnProperty.call(a,_)&&a[_];if(Array.isArray(T)&&T.length===1&&T[0].type===Le.literal)return T[0].value;if(!r&&T&&typeof T=="string"&&!c)return T.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=ne(ne({},c),r||{}),s=Xf(s,d),f=Xf(f,d),!T){if(u===!1&&T==="")return T;if((!m||i&&i.toLowerCase()!==l.toLowerCase())&&h(new Dw(n,i)),m)try{var E=t.getMessageFormat(m,l,f,o);return E.format(r)}catch(b){return h(new As('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),i,n,b)),typeof m=="string"?m:_}return _}try{var E=t.getMessageFormat(T,i,s,ne({formatters:t},o||{}));return E.format(r)}catch(b){h(new As('Error formatting message: "'.concat(_,'", using ').concat(m?"default message":"id"," as fallback."),i,n,b))}if(m)try{var E=t.getMessageFormat(m,l,f,o);return E.format(r)}catch(b){h(new As('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),i,n,b))}return typeof T=="string"?T:typeof m=="string"?m:_},nm=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Jo(e,t,n,r){var o=e.locale,i=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var l=r.format,f=ne(ne({},a&&{timeZone:a}),l&&ju(i,t,l,s)),u=tn(r,nm,f);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=ne(ne({},u),{hour:"numeric",minute:"numeric"})),n(o,u)}function qw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return Jo(e,"date",t,s).format(a)}catch(l){e.onError(new Et("Error formatting date.",e.locale,l))}return String(a)}function Gw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return Jo(e,"time",t,s).format(a)}catch(l){e.onError(new Et("Error formatting time.",e.locale,l))}return String(a)}function Ww(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=n[2],a=s===void 0?{}:s,l=e.timeZone,f=e.locale,u=e.onError,h=tn(a,nm,l?{timeZone:l}:{});try{return t(f,h).formatRange(o,i)}catch(d){u(new Et("Error formatting date time range.",e.locale,d))}return String(o)}function Vw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return Jo(e,"date",t,s).formatToParts(a)}catch(l){e.onError(new Et("Error formatting date.",e.locale,l))}return[]}function zw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return Jo(e,"time",t,s).formatToParts(a)}catch(l){e.onError(new Et("Error formatting time.",e.locale,l))}return[]}var Yw=["style","type","fallback","languageDisplay"];function Kw(e,t,n,r){var o=e.locale,i=e.onError,s=Intl.DisplayNames;s||i(new _r(`Intl.DisplayNames is not available in this environment.
81
81
  Try polyfilling it using "@formatjs/intl-displaynames"
82
- `,Dr.MISSING_INTL_API));var i=Ra(n,lN);try{return t(a,i).of(r)}catch(l){o(new sr("Error formatting display name.",a,l))}}var cN=["type","style"],Rg=Date.now();function fN(e){return"".concat(Rg,"_").concat(e,"_").concat(Rg)}function dN(e,t,r,n){n===void 0&&(n={});var a=ww(e,t,r,n).reduce(function(o,s){var i=s.value;return typeof i!="string"?o.push(i):typeof o[o.length-1]=="string"?o[o.length-1]+=i:o.push(i),o},[]);return a.length===1?a[0]:a.length===0?"":a}function ww(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={});var s=Intl.ListFormat;s||o(new Gn(`Intl.ListFormat is not available in this environment.
82
+ `,$t.MISSING_INTL_API));var a=tn(r,Yw);try{return t(o,a).of(n)}catch(l){i(new Et("Error formatting display name.",o,l))}}var Qw=["type","style"],Jf=Date.now();function Xw(e){return"".concat(Jf,"_").concat(e,"_").concat(Jf)}function Jw(e,t,n,r){r===void 0&&(r={});var o=im(e,t,n,r).reduce(function(i,s){var a=s.value;return typeof a!="string"?i.push(a):typeof i[i.length-1]=="string"?i[i.length-1]+=a:i.push(a),i},[]);return o.length===1?o[0]:o.length===0?"":o}function im(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||i(new _r(`Intl.ListFormat is not available in this environment.
83
83
  Try polyfilling it using "@formatjs/intl-listformat"
84
- `,Dr.MISSING_INTL_API));var i=Ra(n,cN);try{var l={},u=r.map(function(c,d){if(typeof c=="object"){var p=fN(d);return l[p]=c,p}return String(c)});return t(a,i).formatToParts(u).map(function(c){return c.type==="literal"?c:me(me({},c),{value:l[c.value]||c.value})})}catch(c){o(new sr("Error formatting list.",a,c))}return r}var pN=["type"];function hN(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={}),Intl.PluralRules||o(new Gn(`Intl.PluralRules is not available in this environment.
84
+ `,$t.MISSING_INTL_API));var a=tn(r,Qw);try{var l={},f=n.map(function(u,h){if(typeof u=="object"){var d=Xw(h);return l[d]=u,d}return String(u)});return t(o,a).formatToParts(f).map(function(u){return u.type==="literal"?u:ne(ne({},u),{value:l[u.value]||u.value})})}catch(u){i(new Et("Error formatting list.",o,u))}return n}var Zw=["type"];function eS(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new _r(`Intl.PluralRules is not available in this environment.
85
85
  Try polyfilling it using "@formatjs/intl-pluralrules"
86
- `,Dr.MISSING_INTL_API));var s=Ra(n,pN);try{return t(a,s).select(r)}catch(i){o(new sr("Error formatting plural.",a,i))}return"other"}var mN=["numeric","style"];function yN(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var s=r.format,i=!!s&&zh(a,"relative",s,o)||{},l=Ra(r,mN,i);return t(n,l)}function vN(e,t,r,n,a){a===void 0&&(a={}),n||(n="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Gn(`Intl.RelativeTimeFormat is not available in this environment.
86
+ `,$t.MISSING_INTL_API));var s=tn(r,Zw);try{return t(o,s).select(n)}catch(a){i(new Et("Error formatting plural.",o,a))}return"other"}var tS=["numeric","style"];function rS(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&ju(o,"relative",s,i)||{},l=tn(n,tS,a);return t(r,l)}function nS(e,t,n,r,o){o===void 0&&(o={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new _r(`Intl.RelativeTimeFormat is not available in this environment.
87
87
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
88
- `,Dr.MISSING_INTL_API));try{return yN(e,t,a).format(r,n)}catch(s){e.onError(new sr("Error formatting relative time.",e.locale,s))}return String(r)}var gN=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Tw(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var s=r.format,i=s&&zh(a,"number",s,o)||{},l=Ra(r,gN,i);return t(n,l)}function bN(e,t,r,n){n===void 0&&(n={});try{return Tw(e,t,n).format(r)}catch(a){e.onError(new sr("Error formatting number.",e.locale,a))}return String(r)}function EN(e,t,r,n){n===void 0&&(n={});try{return Tw(e,t,n).formatToParts(r)}catch(a){e.onError(new sr("Error formatting number.",e.locale,a))}return[]}function _N(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function wN(e){e.onWarn&&e.defaultRichTextElements&&_N(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
88
+ `,$t.MISSING_INTL_API));try{return rS(e,t,o).format(n,r)}catch(s){e.onError(new Et("Error formatting relative time.",e.locale,s))}return String(n)}var iS=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function om(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=s&&ju(o,"number",s,i)||{},l=tn(n,iS,a);return t(r,l)}function oS(e,t,n,r){r===void 0&&(r={});try{return om(e,t,r).format(n)}catch(o){e.onError(new Et("Error formatting number.",e.locale,o))}return String(n)}function aS(e,t,n,r){r===void 0&&(r={});try{return om(e,t,r).formatToParts(n)}catch(o){e.onError(new Et("Error formatting number.",e.locale,o))}return[]}function sS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function uS(e){e.onWarn&&e.defaultRichTextElements&&sS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
89
89
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
90
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function TN(e,t){var r=rN(t),n=me(me({},bw),e),a=n.locale,o=n.defaultLocale,s=n.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&s?s(new wg('Missing locale data for locale: "'.concat(a,'" 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(a).length&&s&&s(new wg('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new JI('"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"),wN(n),me(me({},n),{formatters:r,formatNumber:bN.bind(null,n,r.getNumberFormat),formatNumberToParts:EN.bind(null,n,r.getNumberFormat),formatRelativeTime:vN.bind(null,n,r.getRelativeTimeFormat),formatDate:nN.bind(null,n,r.getDateTimeFormat),formatDateToParts:iN.bind(null,n,r.getDateTimeFormat),formatTime:aN.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:oN.bind(null,n,r.getDateTimeFormat),formatTimeToParts:sN.bind(null,n,r.getDateTimeFormat),formatPlural:hN.bind(null,n,r.getPluralRules),formatMessage:Ip.bind(null,n,r),$t:Ip.bind(null,n,r),formatList:dN.bind(null,n,r.getListFormat),formatListToParts:ww.bind(null,n,r.getListFormat),formatDisplayName:uN.bind(null,n,r.getDisplayNames)})}function Sw(e){ew(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Rw=me(me({},bw),{textComponent:Be.Fragment});function SN(e){return function(t){return e(Be.Children.toArray(t))}}function Np(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o<a;o++){var s=r[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var Yh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Be.createContext(null)):Be.createContext(null);Yh.Consumer;var RN=Yh.Provider,CN=RN,xN=Yh;function Je(){var e=Be.useContext(xN);return Sw(e),e}var Mp;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Mp||(Mp={}));var $p;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})($p||($p={}));function Cw(e){var t=function(r){var n=Je(),a=r.value,o=r.children,s=ro(r,["value","children"]),i=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?n.formatDateToParts(i,s):n.formatTimeToParts(i,s);return o(l)};return t.displayName=$p[e],t}function _i(e){var t=function(r){var n=Je(),a=r.value,o=r.children,s=ro(r,["value","children"]),i=n[e](a,s);if(typeof o=="function")return o(i);var l=n.textComponent||Be.Fragment;return Be.createElement(l,null,i)};return t.displayName=Mp[e],t}function bd(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 xw(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=vw(n)?SN(n):n,t},{})}var Cg=function(e,t,r,n){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var s=xw(n),i=Ip.apply(void 0,Br([e,t,r,s],a,!1));return Array.isArray(i)?Be.Children.toArray(i):i},kp=function(e,t){var r=e.defaultRichTextElements,n=ro(e,["defaultRichTextElements"]),a=xw(r),o=TN(me(me(me({},Rw),n),{defaultRichTextElements:a}),t),s={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:a};return me(me({},o),{formatMessage:Cg.bind(null,s,o.formatters),$t:Cg.bind(null,s,o.formatters)})},ON=function(e){ir(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Ew(),r.state={cache:r.cache,intl:kp(bd(r.props),r.cache),prevConfig:bd(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var a=n.prevConfig,o=n.cache,s=bd(r);return Np(a,s)?null:{intl:kp(s,o),prevConfig:s}},t.prototype.render=function(){return Sw(this.state.intl),Be.createElement(CN,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Rw,t}(Be.PureComponent);function PN(e,t){var r=e.values,n=ro(e,["values"]),a=t.values,o=ro(t,["values"]);return Np(a,r)&&Np(n,o)}function Ow(e){var t=Je(),r=t.formatMessage,n=t.textComponent,a=n===void 0?Be.Fragment:n,o=e.id,s=e.description,i=e.defaultMessage,l=e.values,u=e.children,c=e.tagName,d=c===void 0?a:c,p=e.ignoreTag,f={id:o,description:s,defaultMessage:i},h=r(f,l,{ignoreTag:p});return typeof u=="function"?u(Array.isArray(h)?h:[h]):d?Be.createElement(d,null,Be.Children.toArray(h)):Be.createElement(Be.Fragment,null,h)}Ow.displayName="FormattedMessage";var Pw=Be.memo(Ow,PN);Pw.displayName="MemoizedFormattedMessage";const ya=Pw;_i("formatDate");_i("formatTime");_i("formatNumber");_i("formatList");_i("formatDisplayName");Cw("formatDate");Cw("formatTime");const et=({children:e,locale:t="en",text:r=!1})=>P.jsx(ON,{locale:t,messages:r||lI[t.replace("-","")],children:e}),AN=(e,t)=>Q.Children.map(e,r=>Q.cloneElement(r,{...t}));var Lp={exports:{}},ut={};/**
91
- * @license React
92
- * react-dom-test-utils.production.min.js
93
- *
94
- * Copyright (c) Facebook, Inc. and its affiliates.
95
- *
96
- * This source code is licensed under the MIT license found in the
97
- * LICENSE file in the root directory of this source tree.
98
- */var xg;function IN(){if(xg)return ut;xg=1;var e=Q,t=Sh;function r(_){var A=_,I=_;if(_.alternate)for(;A.return;)A=A.return;else{_=A;do A=_,A.flags&4098&&(I=A.return),_=A.return;while(_)}return A.tag===3?I:null}function n(_){if(r(_)!==_)throw Error("Unable to find node on an unmounted component.")}function a(_){var A=_.alternate;if(!A){if(A=r(_),A===null)throw Error("Unable to find node on an unmounted component.");return A!==_?null:_}for(var I=_,F=A;;){var ie=I.return;if(ie===null)break;var de=ie.alternate;if(de===null){if(F=ie.return,F!==null){I=F;continue}break}if(ie.child===de.child){for(de=ie.child;de;){if(de===I)return n(ie),_;if(de===F)return n(ie),A;de=de.sibling}throw Error("Unable to find node on an unmounted component.")}if(I.return!==F.return)I=ie,F=de;else{for(var ce=!1,he=ie.child;he;){if(he===I){ce=!0,I=ie,F=de;break}if(he===F){ce=!0,F=ie,I=de;break}he=he.sibling}if(!ce){for(he=de.child;he;){if(he===I){ce=!0,I=de,F=ie;break}if(he===F){ce=!0,F=de,I=ie;break}he=he.sibling}if(!ce)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(I.alternate!==F)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(I.tag!==3)throw Error("Unable to find node on an unmounted component.");return I.stateNode.current===I?_:A}var o=Object.assign;function s(_){var A=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&A===13&&(_=13)):_=A,_===10&&(_=13),32<=_||_===13?_:0}function i(){return!0}function l(){return!1}function u(_){function A(I,F,ie,de,ce){this._reactName=I,this._targetInst=ie,this.type=F,this.nativeEvent=de,this.target=ce,this.currentTarget=null;for(var he in _)_.hasOwnProperty(he)&&(I=_[he],this[he]=I?I(de):de[he]);return this.isDefaultPrevented=(de.defaultPrevented!=null?de.defaultPrevented:de.returnValue===!1)?i:l,this.isPropagationStopped=l,this}return o(A.prototype,{preventDefault:function(){this.defaultPrevented=!0;var I=this.nativeEvent;I&&(I.preventDefault?I.preventDefault():typeof I.returnValue!="unknown"&&(I.returnValue=!1),this.isDefaultPrevented=i)},stopPropagation:function(){var I=this.nativeEvent;I&&(I.stopPropagation?I.stopPropagation():typeof I.cancelBubble!="unknown"&&(I.cancelBubble=!0),this.isPropagationStopped=i)},persist:function(){},isPersistent:i}),A}var c={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},d=u(c),p=o({},c,{view:0,detail:0});u(p);var f,h,m,w=o({},p,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:G,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){return"movementX"in _?_.movementX:(_!==m&&(m&&_.type==="mousemove"?(f=_.screenX-m.screenX,h=_.screenY-m.screenY):h=f=0,m=_),f)},movementY:function(_){return"movementY"in _?_.movementY:h}});u(w);var E=o({},w,{dataTransfer:0});u(E);var y=o({},p,{relatedTarget:0});u(y);var T=o({},c,{animationName:0,elapsedTime:0,pseudoElement:0});u(T);var R=o({},c,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}});u(R);var S=o({},c,{data:0});u(S);var O={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},M={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H(_){var A=this.nativeEvent;return A.getModifierState?A.getModifierState(_):(_=M[_])?!!A[_]:!1}function G(){return H}var W=o({},p,{key:function(_){if(_.key){var A=O[_.key]||_.key;if(A!=="Unidentified")return A}return _.type==="keypress"?(_=s(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?N[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:G,charCode:function(_){return _.type==="keypress"?s(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?s(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}});u(W);var U=o({},w,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});u(U);var j=o({},p,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:G});u(j);var Z=o({},c,{propertyName:0,elapsedTime:0,pseudoElement:0});u(Z);var ee=o({},w,{deltaX:function(_){return"deltaX"in _?_.deltaX:"wheelDeltaX"in _?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:"wheelDeltaY"in _?-_.wheelDeltaY:"wheelDelta"in _?-_.wheelDelta:0},deltaZ:0,deltaMode:0});u(ee);function L(_,A,I,F,ie,de,ce,he,_e){var Xe=Array.prototype.slice.call(arguments,3);try{A.apply(I,Xe)}catch(Jt){this.onError(Jt)}}var K=!1,re=null,ge=!1,ne=null,oe={onError:function(_){K=!0,re=_}};function ve(_,A,I,F,ie,de,ce,he,_e){K=!1,re=null,L.apply(oe,arguments)}function Ee(_,A,I,F,ie,de,ce,he,_e){if(ve.apply(this,arguments),K){if(K){var Xe=re;K=!1,re=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");ge||(ge=!0,ne=Xe)}}var ze=Array.isArray,te=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ue=te[0],Me=te[1],xe=te[2],ft=te[3],pt=te[4],fe=e.unstable_act;function le(){}function Ge(_,A){if(!_)return[];if(_=a(_),!_)return[];for(var I=_,F=[];;){if(I.tag===5||I.tag===6||I.tag===1||I.tag===0){var ie=I.stateNode;A(ie)&&F.push(ie)}if(I.child)I.child.return=I,I=I.child;else{if(I===_)return F;for(;!I.sibling;){if(!I.return||I.return===_)return F;I=I.return}I.sibling.return=I.return,I=I.sibling}}}function $e(_,A){if(_&&!_._reactInternals){var I=String(_);throw _=ze(_)?"an array":_&&_.nodeType===1&&_.tagName?"a DOM node":I==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":I,Error(A+"(...): the first argument must be a React class instance. Instead received: "+(_+"."))}}function gt(_){return!(!_||_.nodeType!==1||!_.tagName)}function ht(_){return gt(_)?!1:_!=null&&typeof _.render=="function"&&typeof _.setState=="function"}function bt(_,A){return ht(_)?_._reactInternals.type===A:!1}function tt(_,A){return $e(_,"findAllInRenderedTree"),_?Ge(_._reactInternals,A):[]}function Ft(_,A){return $e(_,"scryRenderedDOMComponentsWithClass"),tt(_,function(I){if(gt(I)){var F=I.className;typeof F!="string"&&(F=I.getAttribute("class")||"");var ie=F.split(/\s+/);if(!ze(A)){if(A===void 0)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");A=A.split(/\s+/)}return A.every(function(de){return ie.indexOf(de)!==-1})}return!1})}function At(_,A){return $e(_,"scryRenderedDOMComponentsWithTag"),tt(_,function(I){return gt(I)&&I.tagName.toUpperCase()===A.toUpperCase()})}function Ct(_,A){return $e(_,"scryRenderedComponentsWithType"),tt(_,function(I){return bt(I,A)})}function Ze(_,A,I){var F=_.type||"unknown-event";_.currentTarget=Me(I),Ee(F,A,void 0,_),_.currentTarget=null}function It(_,A,I){for(var F=[];_;){F.push(_);do _=_.return;while(_&&_.tag!==5);_=_||null}for(_=F.length;0<_--;)A(F[_],"captured",I);for(_=0;_<F.length;_++)A(F[_],"bubbled",I)}function dt(_,A){var I=_.stateNode;if(!I)return null;var F=xe(I);if(!F)return null;I=F[A];e:switch(A){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(F=!F.disabled)||(_=_.type,F=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!F;break e;default:_=!1}if(_)return null;if(I&&typeof I!="function")throw Error("Expected `"+A+"` listener to be a function, instead got a value of `"+typeof I+"` type.");return I}function it(_,A,I){_&&I&&I._reactName&&(A=dt(_,I._reactName))&&(I._dispatchListeners==null&&(I._dispatchListeners=[]),I._dispatchInstances==null&&(I._dispatchInstances=[]),I._dispatchListeners.push(A),I._dispatchInstances.push(_))}function Wt(_,A,I){var F=I._reactName;A==="captured"&&(F+="Capture"),(A=dt(_,F))&&(I._dispatchListeners==null&&(I._dispatchListeners=[]),I._dispatchInstances==null&&(I._dispatchInstances=[]),I._dispatchListeners.push(A),I._dispatchInstances.push(_))}var C={},v=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function b(_){return function(A,I){if(e.isValidElement(A))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(ht(A))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var F="on"+_[0].toUpperCase()+_.slice(1),ie=new le;ie.target=A,ie.type=_.toLowerCase();var de=ue(A),ce=new d(F,ie.type,de,ie,A);ce.persist(),o(ce,I),v.has(_)?ce&&ce._reactName&&it(ce._targetInst,null,ce):ce&&ce._reactName&&It(ce._targetInst,Wt,ce),t.unstable_batchedUpdates(function(){if(ft(A),ce){var he=ce._dispatchListeners,_e=ce._dispatchInstances;if(ze(he))for(var Xe=0;Xe<he.length&&!ce.isPropagationStopped();Xe++)Ze(ce,he[Xe],_e[Xe]);else he&&Ze(ce,he,_e);ce._dispatchListeners=null,ce._dispatchInstances=null,ce.isPersistent()||ce.constructor.release(ce)}if(ge)throw he=ne,ge=!1,ne=null,he}),pt()}}return"blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(_){C[_]=b(_)}),ut.Simulate=C,ut.act=fe,ut.findAllInRenderedTree=tt,ut.findRenderedComponentWithType=function(_,A){if($e(_,"findRenderedComponentWithType"),_=Ct(_,A),_.length!==1)throw Error("Did not find exactly one match (found: "+_.length+") for componentType:"+A);return _[0]},ut.findRenderedDOMComponentWithClass=function(_,A){if($e(_,"findRenderedDOMComponentWithClass"),_=Ft(_,A),_.length!==1)throw Error("Did not find exactly one match (found: "+_.length+") for class:"+A);return _[0]},ut.findRenderedDOMComponentWithTag=function(_,A){if($e(_,"findRenderedDOMComponentWithTag"),_=At(_,A),_.length!==1)throw Error("Did not find exactly one match (found: "+_.length+") for tag:"+A);return _[0]},ut.isCompositeComponent=ht,ut.isCompositeComponentWithType=bt,ut.isDOMComponent=gt,ut.isDOMComponentElement=function(_){return!!(_&&e.isValidElement(_)&&_.tagName)},ut.isElement=function(_){return e.isValidElement(_)},ut.isElementOfType=function(_,A){return e.isValidElement(_)&&_.type===A},ut.mockComponent=function(_,A){return A=A||_.mockTagName||"div",_.prototype.render.mockImplementation(function(){return e.createElement(A,null,this.props.children)}),this},ut.nativeTouchData=function(_,A){return{touches:[{pageX:_,pageY:A}]}},ut.renderIntoDocument=function(_){var A=document.createElement("div");return t.render(_,A)},ut.scryRenderedComponentsWithType=Ct,ut.scryRenderedDOMComponentsWithClass=Ft,ut.scryRenderedDOMComponentsWithTag=At,ut.traverseTwoPhase=It,ut}var ct={};/**
99
- * @license React
100
- * react-dom-test-utils.development.js
101
- *
102
- * Copyright (c) Facebook, Inc. and its affiliates.
103
- *
104
- * This source code is licensed under the MIT license found in the
105
- * LICENSE file in the root directory of this source tree.
106
- */var Og;function NN(){return Og||(Og=1,process.env.NODE_ENV!=="production"&&function(){var e=Q,t=Sh,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n($){{for(var Y=arguments.length,X=new Array(Y>1?Y-1:0),J=1;J<Y;J++)X[J-1]=arguments[J];o("warn",$,X)}}function a($){{for(var Y=arguments.length,X=new Array(Y>1?Y-1:0),J=1;J<Y;J++)X[J-1]=arguments[J];o("error",$,X)}}function o($,Y,X){{var J=r.ReactDebugCurrentFrame,pe=J.getStackAddendum();pe!==""&&(Y+="%s",X=X.concat([pe]));var Se=X.map(function(Fe){return String(Fe)});Se.unshift("Warning: "+Y),Function.prototype.apply.call(console[$],console,Se)}}function s($){return $._reactInternals}var i=0,l=1,u=3,c=5,d=6,p=0,f=2,h=4096;r.ReactCurrentOwner;function m($){var Y=$,X=$;if($.alternate)for(;Y.return;)Y=Y.return;else{var J=Y;do Y=J,(Y.flags&(f|h))!==p&&(X=Y.return),J=Y.return;while(J)}return Y.tag===u?X:null}function w($){if(m($)!==$)throw new Error("Unable to find node on an unmounted component.")}function E($){var Y=$.alternate;if(!Y){var X=m($);if(X===null)throw new Error("Unable to find node on an unmounted component.");return X!==$?null:$}for(var J=$,pe=Y;;){var Se=J.return;if(Se===null)break;var Fe=Se.alternate;if(Fe===null){var Et=Se.return;if(Et!==null){J=pe=Et;continue}break}if(Se.child===Fe.child){for(var _t=Se.child;_t;){if(_t===J)return w(Se),$;if(_t===pe)return w(Se),Y;_t=_t.sibling}throw new Error("Unable to find node on an unmounted component.")}if(J.return!==pe.return)J=Se,pe=Fe;else{for(var yt=!1,nt=Se.child;nt;){if(nt===J){yt=!0,J=Se,pe=Fe;break}if(nt===pe){yt=!0,pe=Se,J=Fe;break}nt=nt.sibling}if(!yt){for(nt=Fe.child;nt;){if(nt===J){yt=!0,J=Fe,pe=Se;break}if(nt===pe){yt=!0,pe=Fe,J=Se;break}nt=nt.sibling}if(!yt)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(J.alternate!==pe)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(J.tag!==u)throw new Error("Unable to find node on an unmounted component.");return J.stateNode.current===J?$:Y}var y=Object.assign;function T($){var Y,X=$.keyCode;return"charCode"in $?(Y=$.charCode,Y===0&&X===13&&(Y=13)):Y=X,Y===10&&(Y=13),Y>=32||Y===13?Y:0}function R(){return!0}function S(){return!1}function O($){function Y(X,J,pe,Se,Fe){this._reactName=X,this._targetInst=pe,this.type=J,this.nativeEvent=Se,this.target=Fe,this.currentTarget=null;for(var Et in $)if($.hasOwnProperty(Et)){var _t=$[Et];_t?this[Et]=_t(Se):this[Et]=Se[Et]}var yt=Se.defaultPrevented!=null?Se.defaultPrevented:Se.returnValue===!1;return yt?this.isDefaultPrevented=R:this.isDefaultPrevented=S,this.isPropagationStopped=S,this}return y(Y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;X&&(X.preventDefault?X.preventDefault():typeof X.returnValue!="unknown"&&(X.returnValue=!1),this.isDefaultPrevented=R)},stopPropagation:function(){var X=this.nativeEvent;X&&(X.stopPropagation?X.stopPropagation():typeof X.cancelBubble!="unknown"&&(X.cancelBubble=!0),this.isPropagationStopped=R)},persist:function(){},isPersistent:R}),Y}var N={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},M=O(N),H=y({},N,{view:0,detail:0});O(H);var G,W,U;function j($){$!==U&&(U&&$.type==="mousemove"?(G=$.screenX-U.screenX,W=$.screenY-U.screenY):(G=0,W=0),U=$)}var Z=y({},H,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:te,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){return"movementX"in $?$.movementX:(j($),G)},movementY:function($){return"movementY"in $?$.movementY:W}});O(Z);var ee=y({},Z,{dataTransfer:0});O(ee);var L=y({},H,{relatedTarget:0});O(L);var K=y({},N,{animationName:0,elapsedTime:0,pseudoElement:0});O(K);var re=y({},N,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}});O(re);var ge=y({},N,{data:0});O(ge);var ne={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function ve($){if($.key){var Y=ne[$.key]||$.key;if(Y!=="Unidentified")return Y}if($.type==="keypress"){var X=T($);return X===13?"Enter":String.fromCharCode(X)}return $.type==="keydown"||$.type==="keyup"?oe[$.keyCode]||"Unidentified":""}var Ee={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ze($){var Y=this,X=Y.nativeEvent;if(X.getModifierState)return X.getModifierState($);var J=Ee[$];return J?!!X[J]:!1}function te($){return ze}var ue=y({},H,{key:ve,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:te,charCode:function($){return $.type==="keypress"?T($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?T($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}});O(ue);var Me=y({},Z,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});O(Me);var xe=y({},H,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:te});O(xe);var ft=y({},N,{propertyName:0,elapsedTime:0,pseudoElement:0});O(ft);var pt=y({},Z,{deltaX:function($){return"deltaX"in $?$.deltaX:"wheelDeltaX"in $?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:"wheelDeltaY"in $?-$.wheelDeltaY:"wheelDelta"in $?-$.wheelDelta:0},deltaZ:0,deltaMode:0});O(pt);var fe=1;function le($,Y,X,J,pe,Se,Fe,Et,_t){var yt=Array.prototype.slice.call(arguments,3);try{Y.apply(X,yt)}catch(nt){this.onError(nt)}}var Ge=le;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var $e=document.createElement("react");Ge=function(Y,X,J,pe,Se,Fe,Et,_t,yt){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var nt=document.createEvent("Event"),tr=!1,xr=!0,cr=window.event,Kr=Object.getOwnPropertyDescriptor(window,"event");function Xr(){$e.removeEventListener(fr,mn,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=cr)}var hn=Array.prototype.slice.call(arguments,3);function mn(){tr=!0,Xr(),X.apply(J,hn),xr=!1}var Ut,yn=!1,Or=!1;function vn(Ht){if(Ut=Ht.error,yn=!0,Ut===null&&Ht.colno===0&&Ht.lineno===0&&(Or=!0),Ht.defaultPrevented&&Ut!=null&&typeof Ut=="object")try{Ut._suppressLogging=!0}catch{}}var fr="react-"+(Y||"invokeguardedcallback");if(window.addEventListener("error",vn),$e.addEventListener(fr,mn,!1),nt.initEvent(fr,!1,!1),$e.dispatchEvent(nt),Kr&&Object.defineProperty(window,"event",Kr),tr&&xr&&(yn?Or&&(Ut=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Ut=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Ut)),window.removeEventListener("error",vn),!tr)return Xr(),le.apply(this,arguments)}}var gt=Ge,ht=!1,bt=null,tt=!1,Ft=null,At={onError:function($){ht=!0,bt=$}};function Ct($,Y,X,J,pe,Se,Fe,Et,_t){ht=!1,bt=null,gt.apply(At,arguments)}function Ze($,Y,X,J,pe,Se,Fe,Et,_t){if(Ct.apply(this,arguments),ht){var yt=dt();tt||(tt=!0,Ft=yt)}}function It(){if(tt){var $=Ft;throw tt=!1,Ft=null,$}}function dt(){if(ht){var $=bt;return ht=!1,bt=null,$}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var it=Array.isArray;function Wt($){return it($)}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=C.Events,b=v[0],_=v[1],A=v[2],I=v[3],F=v[4],ie=e.unstable_act;function de($){}var ce=!1;function he($,Y){if(!$)return[];var X=E($);if(!X)return[];for(var J=X,pe=[];;){if(J.tag===c||J.tag===d||J.tag===l||J.tag===i){var Se=J.stateNode;Y(Se)&&pe.push(Se)}if(J.child){J.child.return=J,J=J.child;continue}if(J===X)return pe;for(;!J.sibling;){if(!J.return||J.return===X)return pe;J=J.return}J.sibling.return=J.return,J=J.sibling}}function _e($,Y){if($&&!s($)){var X,J=String($);throw Wt($)?X="an array":$&&$.nodeType===fe&&$.tagName?X="a DOM node":J==="[object Object]"?X="object with keys {"+Object.keys($).join(", ")+"}":X=J,new Error(Y+"(...): the first argument must be a React class instance. "+("Instead received: "+X+"."))}}function Xe($){var Y=document.createElement("div");return t.render($,Y)}function Jt($){return e.isValidElement($)}function Ur($,Y){return e.isValidElement($)&&$.type===Y}function jt($){return!!($&&$.nodeType===fe&&$.tagName)}function Hr($){return!!($&&e.isValidElement($)&&$.tagName)}function Vt($){return jt($)?!1:$!=null&&typeof $.render=="function"&&typeof $.setState=="function"}function Sr($,Y){if(!Vt($))return!1;var X=s($),J=X.type;return J===Y}function Zt($,Y){if(_e($,"findAllInRenderedTree"),!$)return[];var X=s($);return he(X,Y)}function Rr($,Y){return _e($,"scryRenderedDOMComponentsWithClass"),Zt($,function(X){if(jt(X)){var J=X.className;typeof J!="string"&&(J=X.getAttribute("class")||"");var pe=J.split(/\s+/);if(!Wt(Y)){if(Y===void 0)throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");Y=Y.split(/\s+/)}return Y.every(function(Se){return pe.indexOf(Se)!==-1})}return!1})}function er($,Y){_e($,"findRenderedDOMComponentWithClass");var X=Rr($,Y);if(X.length!==1)throw new Error("Did not find exactly one match (found: "+X.length+") for class:"+Y);return X[0]}function Gr($,Y){return _e($,"scryRenderedDOMComponentsWithTag"),Zt($,function(X){return jt(X)&&X.tagName.toUpperCase()===Y.toUpperCase()})}function zt($,Y){_e($,"findRenderedDOMComponentWithTag");var X=Gr($,Y);if(X.length!==1)throw new Error("Did not find exactly one match (found: "+X.length+") for tag:"+Y);return X[0]}function dn($,Y){return _e($,"scryRenderedComponentsWithType"),Zt($,function(X){return Sr(X,Y)})}function Vn($,Y){_e($,"findRenderedComponentWithType");var X=dn($,Y);if(X.length!==1)throw new Error("Did not find exactly one match (found: "+X.length+") for componentType:"+Y);return X[0]}function zn($,Y){return ce||(ce=!0,n(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
107
-
108
- See https://reactjs.org/link/test-utils-mock-component for more information.`)),Y=Y||$.mockTagName||"div",$.prototype.render.mockImplementation(function(){return e.createElement(Y,null,this.props.children)}),this}function pn($,Y){return{touches:[{pageX:$,pageY:Y}]}}function Cr($,Y,X){var J=$.type||"unknown-event";$.currentTarget=_(X),Ze(J,Y,void 0,$),$.currentTarget=null}function rt($){var Y=$._dispatchListeners,X=$._dispatchInstances;if(Wt(Y))for(var J=0;J<Y.length&&!$.isPropagationStopped();J++)Cr($,Y[J],X[J]);else Y&&Cr($,Y,X);$._dispatchListeners=null,$._dispatchInstances=null}var Wr=function($){$&&(rt($),$.isPersistent()||$.constructor.release($))};function Vr($){return $==="button"||$==="input"||$==="select"||$==="textarea"}function ur($){do $=$.return;while($&&$.tag!==c);return $||null}function zr($,Y,X){for(var J=[];$;)J.push($),$=ur($);var pe;for(pe=J.length;pe-- >0;)Y(J[pe],"captured",X);for(pe=0;pe<J.length;pe++)Y(J[pe],"bubbled",X)}function Yn($,Y,X){switch($){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(X.disabled&&Vr(Y));default:return!1}}function st($,Y){var X=$.stateNode;if(!X)return null;var J=A(X);if(!J)return null;var pe=J[Y];if(Yn(Y,$.type,J))return null;if(pe&&typeof pe!="function")throw new Error("Expected `"+Y+"` listener to be a function, instead got a value of `"+typeof pe+"` type.");return pe}function Kn($,Y,X){var J=Y._reactName;return X==="captured"&&(J+="Capture"),st($,J)}function Xn($,Y,X){if($&&X&&X._reactName){var J=X._reactName,pe=st($,J);pe&&(X._dispatchListeners==null&&(X._dispatchListeners=[]),X._dispatchInstances==null&&(X._dispatchInstances=[]),X._dispatchListeners.push(pe),X._dispatchInstances.push($))}}function Qn($,Y,X){$||a("Dispatching inst must not be null");var J=Kn($,X,Y);J&&(X._dispatchListeners==null&&(X._dispatchListeners=[]),X._dispatchInstances==null&&(X._dispatchInstances=[]),X._dispatchListeners.push(J),X._dispatchInstances.push($))}function Jn($){$&&$._reactName&&Xn($._targetInst,null,$)}function Yr($){$&&$._reactName&&zr($._targetInst,Qn,$)}var mt={},Zn=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function ea($){return function(Y,X){if(e.isValidElement(Y))throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(Vt(Y))throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var J="on"+$[0].toUpperCase()+$.slice(1),pe=new de;pe.target=Y,pe.type=$.toLowerCase();var Se=b(Y),Fe=new M(J,pe.type,Se,pe,Y);Fe.persist(),y(Fe,X),Zn.has($)?Jn(Fe):Yr(Fe),t.unstable_batchedUpdates(function(){I(Y),Wr(Fe),It()}),F()}}var ta=["blur","cancel","click","close","contextMenu","copy","cut","auxClick","doubleClick","dragEnd","dragStart","drop","focus","input","invalid","keyDown","keyPress","keyUp","mouseDown","mouseUp","paste","pause","play","pointerCancel","pointerDown","pointerUp","rateChange","reset","resize","seeked","submit","touchCancel","touchEnd","touchStart","volumeChange","drag","dragEnter","dragExit","dragLeave","dragOver","mouseMove","mouseOut","mouseOver","pointerMove","pointerOut","pointerOver","scroll","toggle","touchMove","wheel","abort","animationEnd","animationIteration","animationStart","canPlay","canPlayThrough","durationChange","emptied","encrypted","ended","error","gotPointerCapture","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","playing","progress","seeking","stalled","suspend","timeUpdate","transitionEnd","waiting","mouseEnter","mouseLeave","pointerEnter","pointerLeave","change","select","beforeInput","compositionEnd","compositionStart","compositionUpdate"];function ra(){ta.forEach(function($){mt[$]=ea($)})}ra(),ct.Simulate=mt,ct.act=ie,ct.findAllInRenderedTree=Zt,ct.findRenderedComponentWithType=Vn,ct.findRenderedDOMComponentWithClass=er,ct.findRenderedDOMComponentWithTag=zt,ct.isCompositeComponent=Vt,ct.isCompositeComponentWithType=Sr,ct.isDOMComponent=jt,ct.isDOMComponentElement=Hr,ct.isElement=Jt,ct.isElementOfType=Ur,ct.mockComponent=zn,ct.nativeTouchData=pn,ct.renderIntoDocument=Xe,ct.scryRenderedComponentsWithType=dn,ct.scryRenderedDOMComponentsWithClass=Rr,ct.scryRenderedDOMComponentsWithTag=Gr,ct.traverseTwoPhase=zr}()),ct}process.env.NODE_ENV==="production"?Lp.exports=IN():Lp.exports=NN();var MN=Lp.exports,Ed=Sh;process.env.NODE_ENV==="production"?(Ed.createRoot,Ed.hydrateRoot):Ed.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $N(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jn={},Kh={exports:{}};Kh.exports;(function(e){const r=(o=0)=>s=>`\x1B[${38+o};5;${s}m`,n=(o=0)=>(s,i,l)=>`\x1B[${38+o};2;${s};${i};${l}m`;function a(){const o=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[i,l]of Object.entries(s)){for(const[u,c]of Object.entries(l))s[u]={open:`\x1B[${c[0]}m`,close:`\x1B[${c[1]}m`},l[u]=s[u],o.set(c[0],c[1]);Object.defineProperty(s,i,{value:l,enumerable:!1})}return Object.defineProperty(s,"codes",{value:o,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi256=r(),s.color.ansi16m=n(),s.bgColor.ansi256=r(10),s.bgColor.ansi16m=n(10),Object.defineProperties(s,{rgbToAnsi256:{value:(i,l,u)=>i===l&&l===u?i<8?16:i>248?231:Math.round((i-8)/247*24)+232:16+36*Math.round(i/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:i=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(i.toString(16));if(!l)return[0,0,0];let{colorString:u}=l.groups;u.length===3&&(u=u.split("").map(d=>d+d).join(""));const c=Number.parseInt(u,16);return[c>>16&255,c>>8&255,c&255]},enumerable:!1},hexToAnsi256:{value:i=>s.rgbToAnsi256(...s.hexToRgb(i)),enumerable:!1}}),s}Object.defineProperty(e,"exports",{enumerable:!0,get:a})})(Kh);var Aw=Kh.exports,cn={};Object.defineProperty(cn,"__esModule",{value:!0});cn.printIteratorEntries=LN;cn.printIteratorValues=BN;cn.printListItems=DN;cn.printObjectProperties=qN;const kN=(e,t)=>{const r=Object.keys(e).sort(t);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n=>{Object.getOwnPropertyDescriptor(e,n).enumerable&&r.push(n)}),r};function LN(e,t,r,n,a,o,s=": "){let i="",l=e.next();if(!l.done){i+=t.spacingOuter;const u=r+t.indent;for(;!l.done;){const c=o(l.value[0],t,u,n,a),d=o(l.value[1],t,u,n,a);i+=u+c+s+d,l=e.next(),l.done?t.min||(i+=","):i+=","+t.spacingInner}i+=t.spacingOuter+r}return i}function BN(e,t,r,n,a,o){let s="",i=e.next();if(!i.done){s+=t.spacingOuter;const l=r+t.indent;for(;!i.done;)s+=l+o(i.value,t,l,n,a),i=e.next(),i.done?t.min||(s+=","):s+=","+t.spacingInner;s+=t.spacingOuter+r}return s}function DN(e,t,r,n,a,o){let s="";if(e.length){s+=t.spacingOuter;const i=r+t.indent;for(let l=0;l<e.length;l++)s+=i,l in e&&(s+=o(e[l],t,i,n,a)),l<e.length-1?s+=","+t.spacingInner:t.min||(s+=",");s+=t.spacingOuter+r}return s}function qN(e,t,r,n,a,o){let s="";const i=kN(e,t.compareKeys);if(i.length){s+=t.spacingOuter;const l=r+t.indent;for(let u=0;u<i.length;u++){const c=i[u],d=o(c,t,l,n,a),p=o(e[c],t,l,n,a);s+=l+d+": "+p,u<i.length-1?s+=","+t.spacingInner:t.min||(s+=",")}s+=t.spacingOuter+r}return s}var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.test=Mn.serialize=Mn.default=void 0;var Pg=cn,Cs=function(){return typeof globalThis<"u"?globalThis:typeof Cs<"u"?Cs:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),_d=Cs["jest-symbol-do-not-touch"]||Cs.Symbol;const FN=typeof _d=="function"&&_d.for?_d.for("jest.asymmetricMatcher"):1267621,Qi=" ",Iw=(e,t,r,n,a,o)=>{const s=e.toString();return s==="ArrayContaining"||s==="ArrayNotContaining"?++n>t.maxDepth?"["+s+"]":s+Qi+"["+(0,Pg.printListItems)(e.sample,t,r,n,a,o)+"]":s==="ObjectContaining"||s==="ObjectNotContaining"?++n>t.maxDepth?"["+s+"]":s+Qi+"{"+(0,Pg.printObjectProperties)(e.sample,t,r,n,a,o)+"}":s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining"?s+Qi+o(e.sample,t,r,n,a):e.toAsymmetricMatcher()};Mn.serialize=Iw;const Nw=e=>e&&e.$$typeof===FN;Mn.test=Nw;const jN={serialize:Iw,test:Nw};var UN=jN;Mn.default=UN;var $n={},HN=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};Object.defineProperty($n,"__esModule",{value:!0});$n.test=$n.serialize=$n.default=void 0;var Mw=$w(HN),Ve=$w(Aw);function $w(e){return e&&e.__esModule?e:{default:e}}const GN=e=>e.replace((0,Mw.default)(),t=>{switch(t){case Ve.default.red.close:case Ve.default.green.close:case Ve.default.cyan.close:case Ve.default.gray.close:case Ve.default.white.close:case Ve.default.yellow.close:case Ve.default.bgRed.close:case Ve.default.bgGreen.close:case Ve.default.bgYellow.close:case Ve.default.inverse.close:case Ve.default.dim.close:case Ve.default.bold.close:case Ve.default.reset.open:case Ve.default.reset.close:return"</>";case Ve.default.red.open:return"<red>";case Ve.default.green.open:return"<green>";case Ve.default.cyan.open:return"<cyan>";case Ve.default.gray.open:return"<gray>";case Ve.default.white.open:return"<white>";case Ve.default.yellow.open:return"<yellow>";case Ve.default.bgRed.open:return"<bgRed>";case Ve.default.bgGreen.open:return"<bgGreen>";case Ve.default.bgYellow.open:return"<bgYellow>";case Ve.default.inverse.open:return"<inverse>";case Ve.default.dim.open:return"<dim>";case Ve.default.bold.open:return"<bold>";default:return""}}),kw=e=>typeof e=="string"&&!!e.match((0,Mw.default)());$n.test=kw;const Lw=(e,t,r,n,a,o)=>o(GN(e),t,r,n,a);$n.serialize=Lw;const WN={serialize:Lw,test:kw};var VN=WN;$n.default=VN;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.test=kn.serialize=kn.default=void 0;var Ag=cn;const zN=" ",Bw=["DOMStringMap","NamedNodeMap"],YN=/^(HTML\w*Collection|NodeList)$/,KN=e=>Bw.indexOf(e)!==-1||YN.test(e),Dw=e=>e&&e.constructor&&!!e.constructor.name&&KN(e.constructor.name);kn.test=Dw;const XN=e=>e.constructor.name==="NamedNodeMap",qw=(e,t,r,n,a,o)=>{const s=e.constructor.name;return++n>t.maxDepth?"["+s+"]":(t.min?"":s+zN)+(Bw.indexOf(s)!==-1?"{"+(0,Ag.printObjectProperties)(XN(e)?Array.from(e).reduce((i,l)=>(i[l.name]=l.value,i),{}):{...e},t,r,n,a,o)+"}":"["+(0,Ag.printListItems)(Array.from(e),t,r,n,a,o)+"]")};kn.serialize=qw;const QN={serialize:qw,test:Dw};var JN=QN;kn.default=JN;var Ln={},Mt={},Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});Xh.default=ZN;function ZN(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}Object.defineProperty(Mt,"__esModule",{value:!0});Mt.printText=Mt.printProps=Mt.printElementAsLeaf=Mt.printElement=Mt.printComment=Mt.printChildren=void 0;var Fw=eM(Xh);function eM(e){return e&&e.__esModule?e:{default:e}}const tM=(e,t,r,n,a,o,s)=>{const i=n+r.indent,l=r.colors;return e.map(u=>{const c=t[u];let d=s(c,r,i,a,o);return typeof c!="string"&&(d.indexOf(`
109
- `)!==-1&&(d=r.spacingOuter+i+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+d+l.value.close}).join("")};Mt.printProps=tM;const rM=(e,t,r,n,a,o)=>e.map(s=>t.spacingOuter+r+(typeof s=="string"?jw(s,t):o(s,t,r,n,a))).join("");Mt.printChildren=rM;const jw=(e,t)=>{const r=t.colors.content;return r.open+(0,Fw.default)(e)+r.close};Mt.printText=jw;const nM=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+(0,Fw.default)(e)+"-->"+r.close};Mt.printComment=nM;const aM=(e,t,r,n,a)=>{const o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+a+o.open)+(r?">"+o.close+r+n.spacingOuter+a+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close};Mt.printElement=aM;const oM=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close};Mt.printElementAsLeaf=oM;Object.defineProperty(Ln,"__esModule",{value:!0});Ln.test=Ln.serialize=Ln.default=void 0;var Ua=Mt;const iM=1,Uw=3,Hw=8,Gw=11,sM=/^((HTML|SVG)\w*)?Element$/,lM=e=>{try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}},uM=e=>{const t=e.constructor.name,{nodeType:r,tagName:n}=e,a=typeof n=="string"&&n.includes("-")||lM(e);return r===iM&&(sM.test(t)||a)||r===Uw&&t==="Text"||r===Hw&&t==="Comment"||r===Gw&&t==="DocumentFragment"},Ww=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&uM(e)};Ln.test=Ww;function cM(e){return e.nodeType===Uw}function fM(e){return e.nodeType===Hw}function wd(e){return e.nodeType===Gw}const Vw=(e,t,r,n,a,o)=>{if(cM(e))return(0,Ua.printText)(e.data,t);if(fM(e))return(0,Ua.printComment)(e.data,t);const s=wd(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?(0,Ua.printElementAsLeaf)(s,t):(0,Ua.printElement)(s,(0,Ua.printProps)(wd(e)?[]:Array.from(e.attributes).map(i=>i.name).sort(),wd(e)?{}:Array.from(e.attributes).reduce((i,l)=>(i[l.name]=l.value,i),{}),t,r+t.indent,n,a,o),(0,Ua.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,a,o),t,r)};Ln.serialize=Vw;const dM={serialize:Vw,test:Ww};var pM=dM;Ln.default=pM;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.test=Bn.serialize=Bn.default=void 0;var oi=cn;const hM="@@__IMMUTABLE_ITERABLE__@@",mM="@@__IMMUTABLE_LIST__@@",yM="@@__IMMUTABLE_KEYED__@@",vM="@@__IMMUTABLE_MAP__@@",Ig="@@__IMMUTABLE_ORDERED__@@",gM="@@__IMMUTABLE_RECORD__@@",bM="@@__IMMUTABLE_SEQ__@@",EM="@@__IMMUTABLE_SET__@@",_M="@@__IMMUTABLE_STACK__@@",ao=e=>"Immutable."+e,rl=e=>"["+e+"]",ii=" ",Ng="…",wM=(e,t,r,n,a,o,s)=>++n>t.maxDepth?rl(ao(s)):ao(s)+ii+"{"+(0,oi.printIteratorEntries)(e.entries(),t,r,n,a,o)+"}";function TM(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}const SM=(e,t,r,n,a,o)=>{const s=ao(e._name||"Record");return++n>t.maxDepth?rl(s):s+ii+"{"+(0,oi.printIteratorEntries)(TM(e),t,r,n,a,o)+"}"},RM=(e,t,r,n,a,o)=>{const s=ao("Seq");return++n>t.maxDepth?rl(s):e[yM]?s+ii+"{"+(e._iter||e._object?(0,oi.printIteratorEntries)(e.entries(),t,r,n,a,o):Ng)+"}":s+ii+"["+(e._iter||e._array||e._collection||e._iterable?(0,oi.printIteratorValues)(e.values(),t,r,n,a,o):Ng)+"]"},Td=(e,t,r,n,a,o,s)=>++n>t.maxDepth?rl(ao(s)):ao(s)+ii+"["+(0,oi.printIteratorValues)(e.values(),t,r,n,a,o)+"]",zw=(e,t,r,n,a,o)=>e[vM]?wM(e,t,r,n,a,o,e[Ig]?"OrderedMap":"Map"):e[mM]?Td(e,t,r,n,a,o,"List"):e[EM]?Td(e,t,r,n,a,o,e[Ig]?"OrderedSet":"Set"):e[_M]?Td(e,t,r,n,a,o,"Stack"):e[bM]?RM(e,t,r,n,a,o):SM(e,t,r,n,a,o);Bn.serialize=zw;const Yw=e=>e&&(e[hM]===!0||e[gM]===!0);Bn.test=Yw;const CM={serialize:zw,test:Yw};var xM=CM;Bn.default=xM;var Dn={},Bp={exports:{}},je={};/** @license React v17.0.2
110
- * react-is.production.min.js
111
- *
112
- * Copyright (c) Facebook, Inc. and its affiliates.
113
- *
114
- * This source code is licensed under the MIT license found in the
115
- * LICENSE file in the root directory of this source tree.
116
- */var Mg;function OM(){if(Mg)return je;Mg=1;var e=60103,t=60106,r=60107,n=60108,a=60114,o=60109,s=60110,i=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,w=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),r=E("react.fragment"),n=E("react.strict_mode"),a=E("react.profiler"),o=E("react.provider"),s=E("react.context"),i=E("react.forward_ref"),l=E("react.suspense"),u=E("react.suspense_list"),c=E("react.memo"),d=E("react.lazy"),p=E("react.block"),f=E("react.server.block"),h=E("react.fundamental"),m=E("react.debug_trace_mode"),w=E("react.legacy_hidden")}function y(j){if(typeof j=="object"&&j!==null){var Z=j.$$typeof;switch(Z){case e:switch(j=j.type,j){case r:case a:case n:case l:case u:return j;default:switch(j=j&&j.$$typeof,j){case s:case i:case d:case c:case o:return j;default:return Z}}case t:return Z}}}var T=o,R=e,S=i,O=r,N=d,M=c,H=t,G=a,W=n,U=l;return je.ContextConsumer=s,je.ContextProvider=T,je.Element=R,je.ForwardRef=S,je.Fragment=O,je.Lazy=N,je.Memo=M,je.Portal=H,je.Profiler=G,je.StrictMode=W,je.Suspense=U,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(j){return y(j)===s},je.isContextProvider=function(j){return y(j)===o},je.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},je.isForwardRef=function(j){return y(j)===i},je.isFragment=function(j){return y(j)===r},je.isLazy=function(j){return y(j)===d},je.isMemo=function(j){return y(j)===c},je.isPortal=function(j){return y(j)===t},je.isProfiler=function(j){return y(j)===a},je.isStrictMode=function(j){return y(j)===n},je.isSuspense=function(j){return y(j)===l},je.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===a||j===m||j===n||j===l||j===u||j===w||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===c||j.$$typeof===o||j.$$typeof===s||j.$$typeof===i||j.$$typeof===h||j.$$typeof===p||j[0]===f)},je.typeOf=y,je}var Ue={};/** @license React v17.0.2
117
- * react-is.development.js
118
- *
119
- * Copyright (c) Facebook, Inc. and its affiliates.
120
- *
121
- * This source code is licensed under the MIT license found in the
122
- * LICENSE file in the root directory of this source tree.
123
- */var $g;function PM(){return $g||($g=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,n=60108,a=60114,o=60109,s=60110,i=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,w=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),r=E("react.fragment"),n=E("react.strict_mode"),a=E("react.profiler"),o=E("react.provider"),s=E("react.context"),i=E("react.forward_ref"),l=E("react.suspense"),u=E("react.suspense_list"),c=E("react.memo"),d=E("react.lazy"),p=E("react.block"),f=E("react.server.block"),h=E("react.fundamental"),E("react.scope"),E("react.opaque.id"),m=E("react.debug_trace_mode"),E("react.offscreen"),w=E("react.legacy_hidden")}var y=!1;function T(fe){return!!(typeof fe=="string"||typeof fe=="function"||fe===r||fe===a||fe===m||fe===n||fe===l||fe===u||fe===w||y||typeof fe=="object"&&fe!==null&&(fe.$$typeof===d||fe.$$typeof===c||fe.$$typeof===o||fe.$$typeof===s||fe.$$typeof===i||fe.$$typeof===h||fe.$$typeof===p||fe[0]===f))}function R(fe){if(typeof fe=="object"&&fe!==null){var le=fe.$$typeof;switch(le){case e:var Ge=fe.type;switch(Ge){case r:case a:case n:case l:case u:return Ge;default:var $e=Ge&&Ge.$$typeof;switch($e){case s:case i:case d:case c:case o:return $e;default:return le}}case t:return le}}}var S=s,O=o,N=e,M=i,H=r,G=d,W=c,U=t,j=a,Z=n,ee=l,L=!1,K=!1;function re(fe){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ge(fe){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(fe){return R(fe)===s}function oe(fe){return R(fe)===o}function ve(fe){return typeof fe=="object"&&fe!==null&&fe.$$typeof===e}function Ee(fe){return R(fe)===i}function ze(fe){return R(fe)===r}function te(fe){return R(fe)===d}function ue(fe){return R(fe)===c}function Me(fe){return R(fe)===t}function xe(fe){return R(fe)===a}function ft(fe){return R(fe)===n}function pt(fe){return R(fe)===l}Ue.ContextConsumer=S,Ue.ContextProvider=O,Ue.Element=N,Ue.ForwardRef=M,Ue.Fragment=H,Ue.Lazy=G,Ue.Memo=W,Ue.Portal=U,Ue.Profiler=j,Ue.StrictMode=Z,Ue.Suspense=ee,Ue.isAsyncMode=re,Ue.isConcurrentMode=ge,Ue.isContextConsumer=ne,Ue.isContextProvider=oe,Ue.isElement=ve,Ue.isForwardRef=Ee,Ue.isFragment=ze,Ue.isLazy=te,Ue.isMemo=ue,Ue.isPortal=Me,Ue.isProfiler=xe,Ue.isStrictMode=ft,Ue.isSuspense=pt,Ue.isValidElementType=T,Ue.typeOf=R}()),Ue}process.env.NODE_ENV==="production"?Bp.exports=OM():Bp.exports=PM();var AM=Bp.exports;Object.defineProperty(Dn,"__esModule",{value:!0});Dn.test=Dn.serialize=Dn.default=void 0;var pa=IM(AM),Ji=Mt;function Kw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Kw=function(n){return n?r:t})(e)}function IM(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Kw(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}const Xw=(e,t=[])=>(Array.isArray(e)?e.forEach(r=>{Xw(r,t)}):e!=null&&e!==!1&&t.push(e),t),kg=e=>{const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(pa.isFragment(e))return"React.Fragment";if(pa.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(pa.isContextProvider(e))return"Context.Provider";if(pa.isContextConsumer(e))return"Context.Consumer";if(pa.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r!==""?"ForwardRef("+r+")":"ForwardRef"}if(pa.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r!==""?"Memo("+r+")":"Memo"}}return"UNDEFINED"},NM=e=>{const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()},Qw=(e,t,r,n,a,o)=>++n>t.maxDepth?(0,Ji.printElementAsLeaf)(kg(e),t):(0,Ji.printElement)(kg(e),(0,Ji.printProps)(NM(e),e.props,t,r+t.indent,n,a,o),(0,Ji.printChildren)(Xw(e.props.children),t,r+t.indent,n,a,o),t,r);Dn.serialize=Qw;const Jw=e=>e!=null&&pa.isElement(e);Dn.test=Jw;const MM={serialize:Qw,test:Jw};var $M=MM;Dn.default=$M;var qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.test=qn.serialize=qn.default=void 0;var Zi=Mt,xs=function(){return typeof globalThis<"u"?globalThis:typeof xs<"u"?xs:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),Sd=xs["jest-symbol-do-not-touch"]||xs.Symbol;const kM=typeof Sd=="function"&&Sd.for?Sd.for("react.test.json"):245830487,LM=e=>{const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]},Zw=(e,t,r,n,a,o)=>++n>t.maxDepth?(0,Zi.printElementAsLeaf)(e.type,t):(0,Zi.printElement)(e.type,e.props?(0,Zi.printProps)(LM(e),e.props,t,r+t.indent,n,a,o):"",e.children?(0,Zi.printChildren)(e.children,t,r+t.indent,n,a,o):"",t,r);qn.serialize=Zw;const eT=e=>e&&e.$$typeof===kM;qn.test=eT;const BM={serialize:Zw,test:eT};var DM=BM;qn.default=DM;Object.defineProperty(jn,"__esModule",{value:!0});jn.default=jn.DEFAULT_OPTIONS=void 0;var qM=jn.format=dT,tT=jn.plugins=void 0,FM=Wn(Aw),zo=cn,jM=Wn(Mn),UM=Wn($n),HM=Wn(kn),GM=Wn(Ln),WM=Wn(Bn),VM=Wn(Dn),zM=Wn(qn);function Wn(e){return e&&e.__esModule?e:{default:e}}const rT=Object.prototype.toString,YM=Date.prototype.toISOString,KM=Error.prototype.toString,Lg=RegExp.prototype.toString,Rd=e=>typeof e.constructor=="function"&&e.constructor.name||"Object",XM=e=>typeof window<"u"&&e===window,QM=/^Symbol\((.*)\)(.*)$/,JM=/\n/gi;class nT extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}}function ZM(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function e$(e){return Object.is(e,-0)?"-0":String(e)}function t$(e){return`${e}n`}function Bg(e,t){return t?"[Function "+(e.name||"anonymous")+"]":"[Function]"}function Dg(e){return String(e).replace(QM,"Symbol($1)")}function qg(e){return"["+KM.call(e)+"]"}function aT(e,t,r,n){if(e===!0||e===!1)return""+e;if(e===void 0)return"undefined";if(e===null)return"null";const a=typeof e;if(a==="number")return e$(e);if(a==="bigint")return t$(e);if(a==="string")return n?'"'+e.replace(/"|\\/g,"\\$&")+'"':'"'+e+'"';if(a==="function")return Bg(e,t);if(a==="symbol")return Dg(e);const o=rT.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?Bg(e,t):o==="[object Symbol]"?Dg(e):o==="[object Date]"?isNaN(+e)?"Date { NaN }":YM.call(e):o==="[object Error]"?qg(e):o==="[object RegExp]"?r?Lg.call(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):Lg.call(e):e instanceof Error?qg(e):null}function oT(e,t,r,n,a,o){if(a.indexOf(e)!==-1)return"[Circular]";a=a.slice(),a.push(e);const s=++n>t.maxDepth,i=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!o)return On(e.toJSON(),t,r,n,a,!0);const l=rT.call(e);return l==="[object Arguments]"?s?"[Arguments]":(i?"":"Arguments ")+"["+(0,zo.printListItems)(e,t,r,n,a,On)+"]":ZM(l)?s?"["+e.constructor.name+"]":(i||!t.printBasicPrototype&&e.constructor.name==="Array"?"":e.constructor.name+" ")+"["+(0,zo.printListItems)(e,t,r,n,a,On)+"]":l==="[object Map]"?s?"[Map]":"Map {"+(0,zo.printIteratorEntries)(e.entries(),t,r,n,a,On," => ")+"}":l==="[object Set]"?s?"[Set]":"Set {"+(0,zo.printIteratorValues)(e.values(),t,r,n,a,On)+"}":s||XM(e)?"["+Rd(e)+"]":(i||!t.printBasicPrototype&&Rd(e)==="Object"?"":Rd(e)+" ")+"{"+(0,zo.printObjectProperties)(e,t,r,n,a,On)+"}"}function r$(e){return e.serialize!=null}function iT(e,t,r,n,a,o){let s;try{s=r$(e)?e.serialize(t,r,n,a,o,On):e.print(t,i=>On(i,r,n,a,o),i=>{const l=n+r.indent;return l+i.replace(JM,`
124
- `+l)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(i){throw new nT(i.message,i.stack)}if(typeof s!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function sT(e,t){for(let r=0;r<e.length;r++)try{if(e[r].test(t))return e[r]}catch(n){throw new nT(n.message,n.stack)}return null}function On(e,t,r,n,a,o){const s=sT(t.plugins,e);if(s!==null)return iT(s,e,t,r,n,a);const i=aT(e,t.printFunctionName,t.escapeRegex,t.escapeString);return i!==null?i:oT(e,t,r,n,a,o)}const Qh={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},lT=Object.keys(Qh),gr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Qh};jn.DEFAULT_OPTIONS=gr;function n$(e){if(Object.keys(e).forEach(t=>{if(!gr.hasOwnProperty(t))throw new Error(`pretty-format: Unknown option "${t}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(e.theme!==void 0){if(e.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof e.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}const a$=e=>lT.reduce((t,r)=>{const n=e.theme&&e.theme[r]!==void 0?e.theme[r]:Qh[r],a=n&&FM.default[n];if(a&&typeof a.close=="string"&&typeof a.open=="string")t[r]=a;else throw new Error(`pretty-format: Option "theme" has a key "${r}" whose value "${n}" is undefined in ansi-styles.`);return t},Object.create(null)),o$=()=>lT.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null)),uT=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:gr.printFunctionName,cT=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:gr.escapeRegex,fT=e=>e&&e.escapeString!==void 0?e.escapeString:gr.escapeString,Fg=e=>{var t;return{callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:gr.callToJSON,colors:e&&e.highlight?a$(e):o$(),compareKeys:e&&typeof e.compareKeys=="function"?e.compareKeys:gr.compareKeys,escapeRegex:cT(e),escapeString:fT(e),indent:e&&e.min?"":i$(e&&e.indent!==void 0?e.indent:gr.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:gr.maxDepth,min:e&&e.min!==void 0?e.min:gr.min,plugins:e&&e.plugins!==void 0?e.plugins:gr.plugins,printBasicPrototype:(t=e==null?void 0:e.printBasicPrototype)!==null&&t!==void 0?t:!0,printFunctionName:uT(e),spacingInner:e&&e.min?" ":`
125
- `,spacingOuter:e&&e.min?"":`
126
- `}};function i$(e){return new Array(e+1).join(" ")}function dT(e,t){if(t&&(n$(t),t.plugins)){const n=sT(t.plugins,e);if(n!==null)return iT(n,e,Fg(t),"",0,[])}const r=aT(e,uT(t),cT(t),fT(t));return r!==null?r:oT(e,Fg(t),"",0,[])}const s$={AsymmetricMatcher:jM.default,ConvertAnsi:UM.default,DOMCollection:HM.default,DOMElement:GM.default,Immutable:WM.default,ReactElement:VM.default,ReactTestComponent:zM.default};tT=jn.plugins=s$;var l$=dT;jn.default=l$;var u$=Object.prototype.toString;function jg(e){return typeof e=="function"||u$.call(e)==="[object Function]"}function c$(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var f$=Math.pow(2,53)-1;function d$(e){var t=c$(e);return Math.min(Math.max(t,0),f$)}function br(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!jg(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var a=d$(n.length),o=jg(r)?Object(new r(a)):new Array(a),s=0,i;s<a;)i=n[s],t?o[s]=t(i,s):o[s]=i,s+=1;return o.length=a,o}function si(e){"@babel/helpers - typeof";return si=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},si(e)}function p$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ug(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pT(n.key),n)}}function h$(e,t,r){return t&&Ug(e.prototype,t),r&&Ug(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m$(e,t,r){return t=pT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pT(e){var t=y$(e,"string");return si(t)==="symbol"?t:String(t)}function y$(e,t){if(si(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(si(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v$=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];p$(this,e),m$(this,"items",void 0),this.items=t}return h$(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(a){return a!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(a){r(a,a,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}();const g$=typeof Set>"u"?Set:v$;function kt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var b$={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},E$={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function _$(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=E$[t])!==null&&n!==void 0&&n.has(r))})}function hT(e,t){return _$(e,t)}function w$(e){var t=S$(e);if(t===null||t==="presentation"){var r=T$(e);if(t!=="presentation"||hT(e,r||""))return r}return t}function T$(e){var t=b$[kt(e)];if(t!==void 0)return t;switch(kt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!hT(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function S$(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Qe(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function mT(e){return Qe(e)&&kt(e)==="caption"}function ss(e){return Qe(e)&&kt(e)==="input"}function R$(e){return Qe(e)&&kt(e)==="optgroup"}function C$(e){return Qe(e)&&kt(e)==="select"}function x$(e){return Qe(e)&&kt(e)==="table"}function O$(e){return Qe(e)&&kt(e)==="textarea"}function P$(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function A$(e){return Qe(e)&&kt(e)==="fieldset"}function I$(e){return Qe(e)&&kt(e)==="legend"}function N$(e){return Qe(e)&&kt(e)==="slot"}function M$(e){return Qe(e)&&e.ownerSVGElement!==void 0}function $$(e){return Qe(e)&&kt(e)==="svg"}function k$(e){return M$(e)&&kt(e)==="title"}function Os(e,t){if(Qe(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(a){return n.getElementById(a)}).filter(function(a){return a!==null})}return[]}function sn(e,t){return Qe(e)?t.indexOf(w$(e))!==-1:!1}function L$(e){return e.trim().replace(/\s\s+/g," ")}function B$(e,t){if(!Qe(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function D$(e){return sn(e,["button","combobox","listbox","textbox"])||yT(e,"range")}function yT(e,t){if(!Qe(e))return!1;switch(t){case"range":return sn(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Hg(e,t){var r=br(e.querySelectorAll(t));return Os(e,"aria-owns").forEach(function(n){r.push.apply(r,br(n.querySelectorAll(t)))}),r}function q$(e){return C$(e)?e.selectedOptions||Hg(e,"[selected]"):Hg(e,'[aria-selected="true"]')}function F$(e){return sn(e,["none","presentation"])}function j$(e){return mT(e)}function U$(e){return sn(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function H$(e){return!1}function G$(e){return ss(e)||O$(e)?e.value:e.textContent||""}function Gg(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function vT(e){var t=kt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function gT(e){if(vT(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Qe(r)){var n=gT(r);n!==null&&(t=n)}}),t}function W$(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):gT(e)}function V$(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return br(t);if(!vT(e))return null;var r=e.ownerDocument;return br(r.querySelectorAll("label")).filter(function(n){return W$(n)===e})}function z$(e){var t=e.assignedNodes();return t.length===0?br(e.childNodes):t}function bT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new g$,n=P$(e),a=t.compute,o=a===void 0?"name":a,s=t.computedStyleSupportsPseudoElements,i=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,c=t.hidden,d=c===void 0?!1:c;function p(E,y){var T="";if(Qe(E)&&i){var R=u(E,"::before"),S=Gg(R);T="".concat(S," ").concat(T)}var O=N$(E)?z$(E):br(E.childNodes).concat(Os(E,"aria-owns"));if(O.forEach(function(H){var G=w(H,{isEmbeddedInLabel:y.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),W=Qe(H)?u(H).getPropertyValue("display"):"inline",U=W!=="inline"?" ":"";T+="".concat(U).concat(G).concat(U)}),Qe(E)&&i){var N=u(E,"::after"),M=Gg(N);T="".concat(T," ").concat(M)}return T.trim()}function f(E,y){var T=E.getAttributeNode(y);return T!==null&&!r.has(T)&&T.value.trim()!==""?(r.add(T),T.value):null}function h(E){return Qe(E)?f(E,"title"):null}function m(E){if(!Qe(E))return null;if(A$(E)){r.add(E);for(var y=br(E.childNodes),T=0;T<y.length;T+=1){var R=y[T];if(I$(R))return w(R,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(x$(E)){r.add(E);for(var S=br(E.childNodes),O=0;O<S.length;O+=1){var N=S[O];if(mT(N))return w(N,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if($$(E)){r.add(E);for(var M=br(E.childNodes),H=0;H<M.length;H+=1){var G=M[H];if(k$(G))return G.textContent}return null}else if(kt(E)==="img"||kt(E)==="area"){var W=f(E,"alt");if(W!==null)return W}else if(R$(E)){var U=f(E,"label");if(U!==null)return U}if(ss(E)&&(E.type==="button"||E.type==="submit"||E.type==="reset")){var j=f(E,"value");if(j!==null)return j;if(E.type==="submit")return"Submit";if(E.type==="reset")return"Reset"}var Z=V$(E);if(Z!==null&&Z.length!==0)return r.add(E),br(Z).map(function(re){return w(re,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(re){return re.length>0}).join(" ");if(ss(E)&&E.type==="image"){var ee=f(E,"alt");if(ee!==null)return ee;var L=f(E,"title");return L!==null?L:"Submit Query"}if(sn(E,["button"])){var K=p(E,{isEmbeddedInLabel:!1,isReferenced:!1});if(K!=="")return K}return null}function w(E,y){if(r.has(E))return"";if(!d&&B$(E,u)&&!y.isReferenced)return r.add(E),"";var T=Qe(E)?E.getAttributeNode("aria-labelledby"):null,R=T!==null&&!r.has(T)?Os(E,"aria-labelledby"):[];if(o==="name"&&!y.isReferenced&&R.length>0)return r.add(T),R.map(function(W){return w(W,{isEmbeddedInLabel:y.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var S=y.recursion&&D$(E)&&o==="name";if(!S){var O=(Qe(E)&&E.getAttribute("aria-label")||"").trim();if(O!==""&&o==="name")return r.add(E),O;if(!F$(E)){var N=m(E);if(N!==null)return r.add(E),N}}if(sn(E,["menu"]))return r.add(E),"";if(S||y.isEmbeddedInLabel||y.isReferenced){if(sn(E,["combobox","listbox"])){r.add(E);var M=q$(E);return M.length===0?ss(E)?E.value:"":br(M).map(function(W){return w(W,{isEmbeddedInLabel:y.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(yT(E,"range"))return r.add(E),E.hasAttribute("aria-valuetext")?E.getAttribute("aria-valuetext"):E.hasAttribute("aria-valuenow")?E.getAttribute("aria-valuenow"):E.getAttribute("value")||"";if(sn(E,["textbox"]))return r.add(E),G$(E)}if(U$(E)||Qe(E)&&y.isReferenced||j$(E)||H$()){var H=p(E,{isEmbeddedInLabel:y.isEmbeddedInLabel,isReferenced:!1});if(H!=="")return r.add(E),H}if(E.nodeType===E.TEXT_NODE)return r.add(E),E.textContent||"";if(y.recursion)return r.add(E),p(E,{isEmbeddedInLabel:y.isEmbeddedInLabel,isReferenced:!1});var G=h(E);return G!==null?(r.add(E),G):(r.add(E),"")}return L$(w(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function li(e){"@babel/helpers - typeof";return li=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},li(e)}function Wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Vg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){Y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y$(e,t,r){return t=K$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K$(e){var t=X$(e,"string");return li(t)==="symbol"?t:String(t)}function X$(e,t){if(li(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(li(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ET(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Os(e,"aria-describedby").map(function(a){return bT(a,Vg(Vg({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function Q$(e){return sn(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Jh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q$(e)?"":bT(e,t)}var Er={},nl={},Ca={},al={};Object.defineProperty(al,"__esModule",{value:!0});al.default=void 0;function J$(){var e=this,t=0,r={"@@iterator":function(){return r},next:function(){if(t<e.length){var a=e[t];return t=t+1,{done:!1,value:a}}else return{done:!0}}};return r}var Z$=J$;al.default=Z$;Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=rk;var ek=tk(al);function tk(e){return e&&e.__esModule?e:{default:e}}function Dp(e){"@babel/helpers - typeof";return Dp=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},Dp(e)}function rk(e,t){return typeof Symbol=="function"&&Dp(Symbol.iterator)==="symbol"&&Object.defineProperty(e,Symbol.iterator,{value:ek.default.bind(t)}),e}Object.defineProperty(nl,"__esModule",{value:!0});nl.default=void 0;var nk=ak(Ca);function ak(e){return e&&e.__esModule?e:{default:e}}function Cd(e,t){return sk(e)||ik(e,t)||_T(e,t)||ok()}function ok(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
127
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,s,i;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,i=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw i}}return n}}function sk(e){if(Array.isArray(e))return e}function lk(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_T(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
128
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,i;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){s=!0,i=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(s)throw i}}}}function _T(e,t){if(e){if(typeof e=="string")return zg(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 zg(e,t)}}function zg(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}var Ha=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],qp={entries:function(){return Ha},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=lk(Ha),a;try{for(n.s();!(a=n.n()).done;){var o=Cd(a.value,2),s=o[0],i=o[1];t.call(r,i,s,Ha)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Ha.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!qp.get(t)},keys:function(){return Ha.map(function(t){var r=Cd(t,1),n=r[0];return n})},values:function(){return Ha.map(function(t){var r=Cd(t,2),n=r[1];return n})}},uk=(0,nk.default)(qp,qp.entries());nl.default=uk;var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.default=void 0;var ck=fk(Ca);function fk(e){return e&&e.__esModule?e:{default:e}}function xd(e,t){return hk(e)||pk(e,t)||wT(e,t)||dk()}function dk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
129
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,s,i;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,i=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw i}}return n}}function hk(e){if(Array.isArray(e))return e}function mk(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=wT(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
130
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,i;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){s=!0,i=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(s)throw i}}}}function wT(e,t){if(e){if(typeof e=="string")return Yg(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 Yg(e,t)}}function Yg(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}var Ga=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],Fp={entries:function(){return Ga},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=mk(Ga),a;try{for(n.s();!(a=n.n()).done;){var o=xd(a.value,2),s=o[0],i=o[1];t.call(r,i,s,Ga)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Ga.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!Fp.get(t)},keys:function(){return Ga.map(function(t){var r=xd(t,1),n=r[0];return n})},values:function(){return Ga.map(function(t){var r=xd(t,2),n=r[1];return n})}},yk=(0,ck.default)(Fp,Fp.entries());ol.default=yk;var po={},il={},sl={};Object.defineProperty(sl,"__esModule",{value:!0});sl.default=void 0;var vk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},gk=vk;sl.default=gk;var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.default=void 0;var bk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},Ek=bk;ll.default=Ek;var ul={};Object.defineProperty(ul,"__esModule",{value:!0});ul.default=void 0;var _k={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},wk=_k;ul.default=wk;var cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.default=void 0;var Tk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Sk=Tk;cl.default=Sk;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.default=void 0;var Rk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Ck=Rk;fl.default=Ck;var dl={};Object.defineProperty(dl,"__esModule",{value:!0});dl.default=void 0;var xk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"rel"},module:"HTML"},{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},Ok=xk;dl.default=Ok;var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.default=void 0;var Pk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Ak=Pk;pl.default=Ak;var hl={};Object.defineProperty(hl,"__esModule",{value:!0});hl.default=void 0;var Ik={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Nk=Ik;hl.default=Nk;var ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.default=void 0;var Mk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},$k=Mk;ml.default=$k;var yl={};Object.defineProperty(yl,"__esModule",{value:!0});yl.default=void 0;var kk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},Lk=kk;yl.default=Lk;var vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.default=void 0;var Bk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},Dk=Bk;vl.default=Dk;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.default=void 0;var qk={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},Fk=qk;gl.default=Fk;Object.defineProperty(il,"__esModule",{value:!0});il.default=void 0;var jk=lr(sl),Uk=lr(ll),Hk=lr(ul),Gk=lr(cl),Wk=lr(fl),Vk=lr(dl),zk=lr(pl),Yk=lr(hl),Kk=lr(ml),Xk=lr(yl),Qk=lr(vl),Jk=lr(gl);function lr(e){return e&&e.__esModule?e:{default:e}}var Zk=[["command",jk.default],["composite",Uk.default],["input",Hk.default],["landmark",Gk.default],["range",Wk.default],["roletype",Vk.default],["section",zk.default],["sectionhead",Yk.default],["select",Kk.default],["structure",Xk.default],["widget",Qk.default],["window",Jk.default]],eL=Zk;il.default=eL;var bl={},El={};Object.defineProperty(El,"__esModule",{value:!0});El.default=void 0;var tL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rL=tL;El.default=rL;var _l={};Object.defineProperty(_l,"__esModule",{value:!0});_l.default=void 0;var nL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},aL=nL;_l.default=aL;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.default=void 0;var oL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},iL=oL;wl.default=iL;var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=void 0;var sL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},lL=sL;Tl.default=lL;var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=void 0;var uL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["direct descendant of document"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},cL=uL;Sl.default=cL;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=void 0;var fL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},dL=fL;Rl.default=dL;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=void 0;var pL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-pressed"},{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"aria-expanded",value:"false"}],name:"summary"},module:"HTML"},{concept:{attributes:[{name:"aria-expanded",value:"true"}],constraints:["direct descendant of details element with the open attribute defined"],name:"summary"},module:"HTML"},{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},hL=pL;Cl.default=hL;var xl={};Object.defineProperty(xl,"__esModule",{value:!0});xl.default=void 0;var mL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},yL=mL;xl.default=yL;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=void 0;var vL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["descendant of table"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},gL=vL;Ol.default=gL;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=void 0;var bL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},EL=bL;Pl.default=EL;var Al={};Object.defineProperty(Al,"__esModule",{value:!0});Al.default=void 0;var _L={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},wL=_L;Al.default=wL;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});Il.default=void 0;var TL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{attributes:[{name:"scope",value:"col"}],concept:{name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},SL=TL;Il.default=SL;var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=void 0;var RL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],name:"select"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{name:"size",value:1}],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},CL=RL;Nl.default=CL;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.default=void 0;var xL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},OL=xL;Ml.default=OL;var $l={};Object.defineProperty($l,"__esModule",{value:!0});$l.default=void 0;var PL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["direct descendant of document"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},AL=PL;$l.default=AL;var kl={};Object.defineProperty(kl,"__esModule",{value:!0});kl.default=void 0;var IL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},NL=IL;kl.default=NL;var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=void 0;var ML={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},$L=ML;Ll.default=$L;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var kL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},LL=kL;Bl.default=LL;var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=void 0;var BL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},DL=BL;Dl.default=DL;var ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var qL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"body"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},FL=qL;ql.default=FL;var Fl={};Object.defineProperty(Fl,"__esModule",{value:!0});Fl.default=void 0;var jL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},UL=jL;Fl.default=UL;var jl={};Object.defineProperty(jl,"__esModule",{value:!0});jl.default=void 0;var HL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},GL=HL;jl.default=GL;var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.default=void 0;var WL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},VL=WL;Ul.default=VL;var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});Hl.default=void 0;var zL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},YL=zL;Hl.default=YL;var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var KL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"span"},module:"HTML"},{concept:{name:"div"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},XL=KL;Gl.default=XL;var Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=void 0;var QL={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[{concept:{attributes:[{name:"role",value:"grid"}],name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},JL=QL;Wl.default=JL;var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=void 0;var ZL={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{attributes:[{name:"role",value:"gridcell"}],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},eB=ZL;Vl.default=eB;var zl={};Object.defineProperty(zl,"__esModule",{value:!0});zl.default=void 0;var tB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rB=tB;zl.default=rB;var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});Yl.default=void 0;var nB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},aB=nB;Yl.default=aB;var Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var oB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},iB=oB;Kl.default=iB;var Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});Xl.default=void 0;var sB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},lB=sB;Xl.default=lB;var Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;var uB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{name:"href"}],name:"area"},module:"HTML"},{concept:{attributes:[{name:"href"}],name:"link"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},cB=uB;Ql.default=cB;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var fB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},dB=fB;Jl.default=dB;var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;var pB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"},{name:"multiple"}],name:"select"},module:"HTML"},{concept:{attributes:[{constraints:[">1"],name:"size"}],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},hB=pB;Zl.default=hB;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var mB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol, ul or menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},yB=mB;eu.default=yB;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var vB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},gB=vB;tu.default=gB;var ru={};Object.defineProperty(ru,"__esModule",{value:!0});ru.default=void 0;var bB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},EB=bB;ru.default=EB;var nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.default=void 0;var _B={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},wB=_B;nu.default=wB;var au={};Object.defineProperty(au,"__esModule",{value:!0});au.default=void 0;var TB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},SB=TB;au.default=SB;var ou={};Object.defineProperty(ou,"__esModule",{value:!0});ou.default=void 0;var RB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},CB=RB;ou.default=CB;var iu={};Object.defineProperty(iu,"__esModule",{value:!0});iu.default=void 0;var xB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},OB=xB;iu.default=OB;var su={};Object.defineProperty(su,"__esModule",{value:!0});su.default=void 0;var PB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"menuitem"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},AB=PB;su.default=AB;var lu={};Object.defineProperty(lu,"__esModule",{value:!0});lu.default=void 0;var IB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},NB=IB;lu.default=NB;var uu={};Object.defineProperty(uu,"__esModule",{value:!0});uu.default=void 0;var MB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},$B=MB;uu.default=$B;var cu={};Object.defineProperty(cu,"__esModule",{value:!0});cu.default=void 0;var kB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},LB=kB;cu.default=LB;var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.default=void 0;var BB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},DB=BB;fu.default=DB;var du={};Object.defineProperty(du,"__esModule",{value:!0});du.default=void 0;var qB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},FB=qB;du.default=FB;var pu={};Object.defineProperty(pu,"__esModule",{value:!0});pu.default=void 0;var jB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},UB=jB;pu.default=UB;var hu={};Object.defineProperty(hu,"__esModule",{value:!0});hu.default=void 0;var HB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},GB=HB;hu.default=GB;var mu={};Object.defineProperty(mu,"__esModule",{value:!0});mu.default=void 0;var WB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},VB=WB;mu.default=VB;var yu={};Object.defineProperty(yu,"__esModule",{value:!0});yu.default=void 0;var zB={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},YB=zB;yu.default=YB;var vu={};Object.defineProperty(vu,"__esModule",{value:!0});vu.default=void 0;var KB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},XB=KB;vu.default=XB;var gu={};Object.defineProperty(gu,"__esModule",{value:!0});gu.default=void 0;var QB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},JB=QB;gu.default=JB;var bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.default=void 0;var ZB={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},eD=ZB;bu.default=eD;var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=void 0;var tD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}},{concept:{name:"frame"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},rD=tD;Eu.default=rD;var _u={};Object.defineProperty(_u,"__esModule",{value:!0});_u.default=void 0;var nD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},aD=nD;_u.default=aD;var wu={};Object.defineProperty(wu,"__esModule",{value:!0});wu.default=void 0;var oD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},iD=oD;wu.default=iD;var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.default=void 0;var sD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},lD=sD;Tu.default=lD;var Su={};Object.defineProperty(Su,"__esModule",{value:!0});Su.default=void 0;var uD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},cD=uD;Su.default=cD;var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=void 0;var fD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},dD=fD;Ru.default=dD;var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default=void 0;var pD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},hD=pD;Cu.default=hD;var xu={};Object.defineProperty(xu,"__esModule",{value:!0});xu.default=void 0;var mD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},yD=mD;xu.default=yD;var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=void 0;var vD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},gD=vD;Ou.default=gD;var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});Pu.default=void 0;var bD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},ED=bD;Pu.default=ED;var Au={};Object.defineProperty(Au,"__esModule",{value:!0});Au.default=void 0;var _D={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},wD=_D;Au.default=wD;var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default=void 0;var TD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},SD=TD;Iu.default=SD;var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.default=void 0;var RD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},CD=RD;Nu.default=CD;var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=void 0;var xD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},OD=xD;Mu.default=OD;var $u={};Object.defineProperty($u,"__esModule",{value:!0});$u.default=void 0;var PD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},AD=PD;$u.default=AD;var ku={};Object.defineProperty(ku,"__esModule",{value:!0});ku.default=void 0;var ID={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},ND=ID;ku.default=ND;var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=void 0;var MD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},$D=MD;Lu.default=$D;var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=void 0;var kD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},LD=kD;Bu.default=LD;var Du={};Object.defineProperty(Du,"__esModule",{value:!0});Du.default=void 0;var BD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},DD=BD;Du.default=DD;var qu={};Object.defineProperty(qu,"__esModule",{value:!0});qu.default=void 0;var qD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},FD=qD;qu.default=FD;var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=void 0;var jD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},UD=jD;Fu.default=UD;var ju={};Object.defineProperty(ju,"__esModule",{value:!0});ju.default=void 0;var HD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},GD=HD;ju.default=GD;var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=void 0;var WD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},VD=WD;Uu.default=VD;var Hu={};Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=void 0;var zD={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},YD=zD;Hu.default=YD;var Gu={};Object.defineProperty(Gu,"__esModule",{value:!0});Gu.default=void 0;var KD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},XD=KD;Gu.default=XD;var Wu={};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.default=void 0;var QD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},JD=QD;Wu.default=JD;var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=void 0;var ZD={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},eq=ZD;Vu.default=eq;var zu={};Object.defineProperty(zu,"__esModule",{value:!0});zu.default=void 0;var tq={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},rq=tq;zu.default=rq;Object.defineProperty(bl,"__esModule",{value:!0});bl.default=void 0;var nq=ae(El),aq=ae(_l),oq=ae(wl),iq=ae(Tl),sq=ae(Sl),lq=ae(Rl),uq=ae(Cl),cq=ae(xl),fq=ae(Ol),dq=ae(Pl),pq=ae(Al),hq=ae(Il),mq=ae(Nl),yq=ae(Ml),vq=ae($l),gq=ae(kl),bq=ae(Ll),Eq=ae(Bl),_q=ae(Dl),wq=ae(ql),Tq=ae(Fl),Sq=ae(jl),Rq=ae(Ul),Cq=ae(Hl),xq=ae(Gl),Oq=ae(Wl),Pq=ae(Vl),Aq=ae(zl),Iq=ae(Yl),Nq=ae(Kl),Mq=ae(Xl),$q=ae(Ql),kq=ae(Jl),Lq=ae(Zl),Bq=ae(eu),Dq=ae(tu),qq=ae(ru),Fq=ae(nu),jq=ae(au),Uq=ae(ou),Hq=ae(iu),Gq=ae(su),Wq=ae(lu),Vq=ae(uu),zq=ae(cu),Yq=ae(fu),Kq=ae(du),Xq=ae(pu),Qq=ae(hu),Jq=ae(mu),Zq=ae(yu),eF=ae(vu),tF=ae(gu),rF=ae(bu),nF=ae(Eu),aF=ae(_u),oF=ae(wu),iF=ae(Tu),sF=ae(Su),lF=ae(Ru),uF=ae(Cu),cF=ae(xu),fF=ae(Ou),dF=ae(Pu),pF=ae(Au),hF=ae(Iu),mF=ae(Nu),yF=ae(Mu),vF=ae($u),gF=ae(ku),bF=ae(Lu),EF=ae(Bu),_F=ae(Du),wF=ae(qu),TF=ae(Fu),SF=ae(ju),RF=ae(Uu),CF=ae(Hu),xF=ae(Gu),OF=ae(Wu),PF=ae(Vu),AF=ae(zu);function ae(e){return e&&e.__esModule?e:{default:e}}var IF=[["alert",nq.default],["alertdialog",aq.default],["application",oq.default],["article",iq.default],["banner",sq.default],["blockquote",lq.default],["button",uq.default],["caption",cq.default],["cell",fq.default],["checkbox",dq.default],["code",pq.default],["columnheader",hq.default],["combobox",mq.default],["complementary",yq.default],["contentinfo",vq.default],["definition",gq.default],["deletion",bq.default],["dialog",Eq.default],["directory",_q.default],["document",wq.default],["emphasis",Tq.default],["feed",Sq.default],["figure",Rq.default],["form",Cq.default],["generic",xq.default],["grid",Oq.default],["gridcell",Pq.default],["group",Aq.default],["heading",Iq.default],["img",Nq.default],["insertion",Mq.default],["link",$q.default],["list",kq.default],["listbox",Lq.default],["listitem",Bq.default],["log",Dq.default],["main",qq.default],["marquee",Fq.default],["math",jq.default],["menu",Uq.default],["menubar",Hq.default],["menuitem",Gq.default],["menuitemcheckbox",Wq.default],["menuitemradio",Vq.default],["meter",zq.default],["navigation",Yq.default],["none",Kq.default],["note",Xq.default],["option",Qq.default],["paragraph",Jq.default],["presentation",Zq.default],["progressbar",eF.default],["radio",tF.default],["radiogroup",rF.default],["region",nF.default],["row",aF.default],["rowgroup",oF.default],["rowheader",iF.default],["scrollbar",sF.default],["search",lF.default],["searchbox",uF.default],["separator",cF.default],["slider",fF.default],["spinbutton",dF.default],["status",pF.default],["strong",hF.default],["subscript",mF.default],["superscript",yF.default],["switch",vF.default],["tab",gF.default],["table",bF.default],["tablist",EF.default],["tabpanel",_F.default],["term",wF.default],["textbox",TF.default],["time",SF.default],["timer",RF.default],["toolbar",CF.default],["tooltip",xF.default],["tree",OF.default],["treegrid",PF.default],["treeitem",AF.default]],NF=IF;bl.default=NF;var Yu={},Ku={};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.default=void 0;var MF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},$F=MF;Ku.default=$F;var Xu={};Object.defineProperty(Xu,"__esModule",{value:!0});Xu.default=void 0;var kF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},LF=kF;Xu.default=LF;var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=void 0;var BF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},DF=BF;Qu.default=DF;var Ju={};Object.defineProperty(Ju,"__esModule",{value:!0});Ju.default=void 0;var qF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},FF=qF;Ju.default=FF;var Zu={};Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=void 0;var jF={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","content"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},UF=jF;Zu.default=UF;var ec={};Object.defineProperty(ec,"__esModule",{value:!0});ec.default=void 0;var HF={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},GF=HF;ec.default=GF;var tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.default=void 0;var WF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},VF=WF;tc.default=VF;var rc={};Object.defineProperty(rc,"__esModule",{value:!0});rc.default=void 0;var zF={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},YF=zF;rc.default=YF;var nc={};Object.defineProperty(nc,"__esModule",{value:!0});nc.default=void 0;var KF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},XF=KF;nc.default=XF;var ac={};Object.defineProperty(ac,"__esModule",{value:!0});ac.default=void 0;var QF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},JF=QF;ac.default=JF;var oc={};Object.defineProperty(oc,"__esModule",{value:!0});oc.default=void 0;var ZF={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},ej=ZF;oc.default=ej;var ic={};Object.defineProperty(ic,"__esModule",{value:!0});ic.default=void 0;var tj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},rj=tj;ic.default=rj;var sc={};Object.defineProperty(sc,"__esModule",{value:!0});sc.default=void 0;var nj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},aj=nj;sc.default=aj;var lc={};Object.defineProperty(lc,"__esModule",{value:!0});lc.default=void 0;var oj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},ij=oj;lc.default=ij;var uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.default=void 0;var sj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},lj=sj;uc.default=lj;var cc={};Object.defineProperty(cc,"__esModule",{value:!0});cc.default=void 0;var uj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},cj=uj;cc.default=cj;var fc={};Object.defineProperty(fc,"__esModule",{value:!0});fc.default=void 0;var fj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},dj=fj;fc.default=dj;var dc={};Object.defineProperty(dc,"__esModule",{value:!0});dc.default=void 0;var pj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},hj=pj;dc.default=hj;var pc={};Object.defineProperty(pc,"__esModule",{value:!0});pc.default=void 0;var mj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},yj=mj;pc.default=yj;var hc={};Object.defineProperty(hc,"__esModule",{value:!0});hc.default=void 0;var vj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},gj=vj;hc.default=gj;var mc={};Object.defineProperty(mc,"__esModule",{value:!0});mc.default=void 0;var bj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Ej=bj;mc.default=Ej;var yc={};Object.defineProperty(yc,"__esModule",{value:!0});yc.default=void 0;var _j={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},wj=_j;yc.default=wj;var vc={};Object.defineProperty(vc,"__esModule",{value:!0});vc.default=void 0;var Tj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Sj=Tj;vc.default=Sj;var gc={};Object.defineProperty(gc,"__esModule",{value:!0});gc.default=void 0;var Rj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Cj=Rj;gc.default=Cj;var bc={};Object.defineProperty(bc,"__esModule",{value:!0});bc.default=void 0;var xj={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},Oj=xj;bc.default=Oj;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});Ec.default=void 0;var Pj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},Aj=Pj;Ec.default=Aj;var _c={};Object.defineProperty(_c,"__esModule",{value:!0});_c.default=void 0;var Ij={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Nj=Ij;_c.default=Nj;var wc={};Object.defineProperty(wc,"__esModule",{value:!0});wc.default=void 0;var Mj={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},$j=Mj;wc.default=$j;var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});Tc.default=void 0;var kj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},Lj=kj;Tc.default=Lj;var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});Sc.default=void 0;var Bj={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},Dj=Bj;Sc.default=Dj;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});Rc.default=void 0;var qj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},Fj=qj;Rc.default=Fj;var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.default=void 0;var jj={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Uj=jj;Cc.default=Uj;var xc={};Object.defineProperty(xc,"__esModule",{value:!0});xc.default=void 0;var Hj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Gj=Hj;xc.default=Gj;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.default=void 0;var Wj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Vj=Wj;Oc.default=Vj;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});Pc.default=void 0;var zj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},Yj=zj;Pc.default=Yj;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});Ac.default=void 0;var Kj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Xj=Kj;Ac.default=Xj;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});Ic.default=void 0;var Qj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},Jj=Qj;Ic.default=Jj;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});Nc.default=void 0;var Zj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},eU=Zj;Nc.default=eU;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.default=void 0;var tU={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},rU=tU;Mc.default=rU;Object.defineProperty(Yu,"__esModule",{value:!0});Yu.default=void 0;var nU=Re(Ku),aU=Re(Xu),oU=Re(Qu),iU=Re(Ju),sU=Re(Zu),lU=Re(ec),uU=Re(tc),cU=Re(rc),fU=Re(nc),dU=Re(ac),pU=Re(oc),hU=Re(ic),mU=Re(sc),yU=Re(lc),vU=Re(uc),gU=Re(cc),bU=Re(fc),EU=Re(dc),_U=Re(pc),wU=Re(hc),TU=Re(mc),SU=Re(yc),RU=Re(vc),CU=Re(gc),xU=Re(bc),OU=Re(Ec),PU=Re(_c),AU=Re(wc),IU=Re(Tc),NU=Re(Sc),MU=Re(Rc),$U=Re(Cc),kU=Re(xc),LU=Re(Oc),BU=Re(Pc),DU=Re(Ac),qU=Re(Ic),FU=Re(Nc),jU=Re(Mc);function Re(e){return e&&e.__esModule?e:{default:e}}var UU=[["doc-abstract",nU.default],["doc-acknowledgments",aU.default],["doc-afterword",oU.default],["doc-appendix",iU.default],["doc-backlink",sU.default],["doc-biblioentry",lU.default],["doc-bibliography",uU.default],["doc-biblioref",cU.default],["doc-chapter",fU.default],["doc-colophon",dU.default],["doc-conclusion",pU.default],["doc-cover",hU.default],["doc-credit",mU.default],["doc-credits",yU.default],["doc-dedication",vU.default],["doc-endnote",gU.default],["doc-endnotes",bU.default],["doc-epigraph",EU.default],["doc-epilogue",_U.default],["doc-errata",wU.default],["doc-example",TU.default],["doc-footnote",SU.default],["doc-foreword",RU.default],["doc-glossary",CU.default],["doc-glossref",xU.default],["doc-index",OU.default],["doc-introduction",PU.default],["doc-noteref",AU.default],["doc-notice",IU.default],["doc-pagebreak",NU.default],["doc-pagelist",MU.default],["doc-part",$U.default],["doc-preface",kU.default],["doc-prologue",LU.default],["doc-pullquote",BU.default],["doc-qna",DU.default],["doc-subtitle",qU.default],["doc-tip",FU.default],["doc-toc",jU.default]],HU=UU;Yu.default=HU;var $c={},kc={};Object.defineProperty(kc,"__esModule",{value:!0});kc.default=void 0;var GU={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},WU=GU;kc.default=WU;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.default=void 0;var VU={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},zU=VU;Lc.default=zU;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});Bc.default=void 0;var YU={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},KU=YU;Bc.default=KU;Object.defineProperty($c,"__esModule",{value:!0});$c.default=void 0;var XU=Zh(kc),QU=Zh(Lc),JU=Zh(Bc);function Zh(e){return e&&e.__esModule?e:{default:e}}var ZU=[["graphics-document",XU.default],["graphics-object",QU.default],["graphics-symbol",JU.default]],e2=ZU;$c.default=e2;Object.defineProperty(po,"__esModule",{value:!0});po.default=void 0;var t2=wi(il),r2=wi(bl),n2=wi(Yu),a2=wi($c),o2=wi(Ca);function wi(e){return e&&e.__esModule?e:{default:e}}function i2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jp(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=TT(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
131
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,i;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){s=!0,i=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(s)throw i}}}}function ei(e,t){return u2(e)||l2(e,t)||TT(e,t)||s2()}function s2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
132
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TT(e,t){if(e){if(typeof e=="string")return Kg(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 Kg(e,t)}}function Kg(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 l2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,s,i;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,i=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw i}}return n}}function u2(e){if(Array.isArray(e))return e}var Pn=[].concat(t2.default,r2.default,n2.default,a2.default);Pn.forEach(function(e){var t=ei(e,2),r=t[1],n=jp(r.superClass),a;try{for(n.s();!(a=n.n()).done;){var o=a.value,s=jp(o),i;try{var l=function(){var c=i.value,d=Pn.find(function(w){var E=ei(w,1),y=E[0];return y===c});if(d)for(var p=d[1],f=0,h=Object.keys(p.props);f<h.length;f++){var m=h[f];Object.prototype.hasOwnProperty.call(r.props,m)||Object.assign(r.props,i2({},m,p.props[m]))}};for(s.s();!(i=s.n()).done;)l()}catch(u){s.e(u)}finally{s.f()}}}catch(u){n.e(u)}finally{n.f()}});var Up={entries:function(){return Pn},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=jp(Pn),a;try{for(n.s();!(a=n.n()).done;){var o=ei(a.value,2),s=o[0],i=o[1];t.call(r,i,s,Pn)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Pn.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!Up.get(t)},keys:function(){return Pn.map(function(t){var r=ei(t,1),n=r[0];return n})},values:function(){return Pn.map(function(t){var r=ei(t,2),n=r[1];return n})}},c2=(0,o2.default)(Up,Up.entries());po.default=c2;var Dc={},Xg=Object.prototype.toString,ST=function(t){var r=Xg.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Xg.call(t.callee)==="[object Function]"),n},Od,Qg;function f2(){if(Qg)return Od;Qg=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=ST,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),s=a.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(p){var f=p.constructor;return f&&f.prototype===p},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!u["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{l(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return l(p);try{return l(p)}catch{return!1}};e=function(f){var h=f!==null&&typeof f=="object",m=r.call(f)==="[object Function]",w=n(f),E=h&&r.call(f)==="[object String]",y=[];if(!h&&!m&&!w)throw new TypeError("Object.keys called on a non-object");var T=s&&m;if(E&&f.length>0&&!t.call(f,0))for(var R=0;R<f.length;++R)y.push(String(R));if(w&&f.length>0)for(var S=0;S<f.length;++S)y.push(String(S));else for(var O in f)!(T&&O==="prototype")&&t.call(f,O)&&y.push(String(O));if(o)for(var N=d(f),M=0;M<i.length;++M)!(N&&i[M]==="constructor")&&t.call(f,i[M])&&y.push(i[M]);return y}}return Od=e,Od}var d2=Array.prototype.slice,p2=ST,Jg=Object.keys,ls=Jg?function(t){return Jg(t)}:f2(),Zg=Object.keys;ls.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return p2(n)?Zg(d2.call(n)):Zg(n)})}else Object.keys=ls;return Object.keys||ls};var em=ls,h2=Tr,Hp=h2("%Object.defineProperty%",!0),Gp=function(){if(Hp)try{return Hp({},"a",{value:1}),!0}catch{return!1}return!1};Gp.hasArrayLengthDefineBug=function(){if(!Gp())return null;try{return Hp([],"length",{value:1}).length!==1}catch{return!0}};var tm=Gp,m2=Tr,us=m2("%Object.getOwnPropertyDescriptor%",!0);if(us)try{us([],"length")}catch{us=null}var RT=us,y2=tm(),rm=Tr,eb=y2&&rm("%Object.defineProperty%",!0),v2=rm("%SyntaxError%"),Wa=rm("%TypeError%"),tb=RT,CT=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Wa("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Wa("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Wa("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Wa("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Wa("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Wa("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,l=!!tb&&tb(t,r);if(eb)eb(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:a===null&&l?l.enumerable:!a,value:n,writable:o===null&&l?l.writable:!o});else if(i||!a&&!o&&!s)t[r]=n;else throw new v2("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},g2=em,b2=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",E2=Object.prototype.toString,_2=Array.prototype.concat,rb=CT,w2=function(e){return typeof e=="function"&&E2.call(e)==="[object Function]"},xT=tm(),T2=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!w2(n)||!n())return}xT?rb(e,t,r,!0):rb(e,t,r)},OT=function(e,t){var r=arguments.length>2?arguments[2]:{},n=g2(t);b2&&(n=_2.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a<n.length;a+=1)T2(e,n[a],t[n[a]],r[n[a]])};OT.supportsDescriptors=!!xT;var xa=OT,S2=em,PT=Ys(),AT=or,nb=Object,R2=AT("Array.prototype.push"),ab=AT("Object.prototype.propertyIsEnumerable"),C2=PT?Object.getOwnPropertySymbols:null,IT=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=nb(t);if(arguments.length===1)return n;for(var a=1;a<arguments.length;++a){var o=nb(arguments[a]),s=S2(o),i=PT&&(Object.getOwnPropertySymbols||C2);if(i)for(var l=i(o),u=0;u<l.length;++u){var c=l[u];ab(o,c)&&R2(s,c)}for(var d=0;d<s.length;++d){var p=s[d];if(ab(o,p)){var f=o[p];n[p]=f}}}return n},Pd=IT,x2=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var a=Object.assign({},r),o="";for(var s in a)o+=s;return e!==o},O2=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},NT=function(){return!Object.assign||x2()||O2()?Pd:Object.assign},P2=xa,A2=NT,I2=function(){var t=A2();return P2(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},N2=xa,M2=so,$2=IT,MT=NT,k2=I2,L2=M2.apply(MT()),$T=function(t,r){return L2(Object,arguments)};N2($T,{getPolyfill:MT,implementation:$2,shim:k2});var B2=$T,ui=function(){return typeof(function(){}).name=="string"},ti=Object.getOwnPropertyDescriptor;if(ti)try{ti([],"length")}catch{ti=null}ui.functionsHaveConfigurableNames=function(){if(!ui()||!ti)return!1;var t=ti(function(){},"name");return!!t&&!!t.configurable};var D2=Function.prototype.bind;ui.boundFunctionsHaveNames=function(){return ui()&&typeof D2=="function"&&(function(){}).bind().name!==""};var q2=ui,ob=CT,F2=tm(),j2=q2.functionsHaveConfigurableNames(),U2=TypeError,H2=function(t,r){if(typeof t!="function")throw new U2("`fn` is not a function");var n=arguments.length>2&&!!arguments[2];return(!n||j2)&&(F2?ob(t,"name",r,!0,!0):ob(t,"name",r)),t},G2=H2,W2=Object,V2=TypeError,kT=G2(function(){if(this!=null&&this!==W2(this))throw new V2("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),z2=kT,Y2=xa.supportsDescriptors,K2=Object.getOwnPropertyDescriptor,LT=function(){if(Y2&&/a/mig.flags==="gim"){var t=K2(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return z2},X2=xa.supportsDescriptors,Q2=LT,J2=Object.getOwnPropertyDescriptor,Z2=Object.defineProperty,eH=TypeError,ib=Object.getPrototypeOf,tH=/a/,rH=function(){if(!X2||!ib)throw new eH("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=Q2(),r=ib(tH),n=J2(r,"flags");return(!n||n.get!==t)&&Z2(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},nH=xa,aH=so,oH=kT,BT=LT,iH=rH,DT=aH(BT());nH(DT,{getPolyfill:BT,implementation:oH,shim:iH});var sH=DT,cs={exports:{}},lH=Ys,Oa=function(){return lH()&&!!Symbol.toStringTag},uH=Oa(),cH=or,Wp=cH("Object.prototype.toString"),qc=function(t){return uH&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Wp(t)==="[object Arguments]"},qT=function(t){return qc(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Wp(t)!=="[object Array]"&&Wp(t.callee)==="[object Function]"},fH=function(){return qc(arguments)}();qc.isLegacyArguments=qT;var FT=fH?qc:qT,dH=Tr,pH=s_,Yo=kh(),tn=dH("%TypeError%"),nm={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new tn("`O` is not an object");if(typeof t!="string")throw new tn("`slot` must be a string");if(Yo.assert(e),!nm.has(e,t))throw new tn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new tn("`O` is not an object");if(typeof t!="string")throw new tn("`slot` must be a string");var r=Yo.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new tn("`O` is not an object");if(typeof t!="string")throw new tn("`slot` must be a string");var r=Yo.get(e);return!!r&&pH(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new tn("`O` is not an object");if(typeof t!="string")throw new tn("`slot` must be a string");var n=Yo.get(e);n||(n={},Yo.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(nm);var hH=nm,Ko=hH,mH=SyntaxError,sb=typeof StopIteration=="object"?StopIteration:null,yH=function(t){if(!sb)throw new mH("this environment lacks StopIteration");Ko.set(t,"[[Done]]",!1);var r={next:function(){var a=Ko.get(this,"[[Iterator]]"),o=Ko.get(a,"[[Done]]");try{return{done:o,value:o?void 0:a.next()}}catch(s){if(Ko.set(a,"[[Done]]",!0),s!==sb)throw s;return{done:!0,value:void 0}}}};return Ko.set(r,"[[Iterator]]",t),r},vH={}.toString,jT=Array.isArray||function(e){return vH.call(e)=="[object Array]"},gH=String.prototype.valueOf,bH=function(t){try{return gH.call(t),!0}catch{return!1}},EH=Object.prototype.toString,_H="[object String]",wH=Oa(),UT=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:wH?bH(t):EH.call(t)===_H},am=typeof Map=="function"&&Map.prototype?Map:null,TH=typeof Set=="function"&&Set.prototype?Set:null,Ps;am||(Ps=function(t){return!1});var HT=am?Map.prototype.has:null,lb=TH?Set.prototype.has:null;!Ps&&!HT&&(Ps=function(t){return!1});var GT=Ps||function(t){if(!t||typeof t!="object")return!1;try{if(HT.call(t),lb)try{lb.call(t)}catch{return!0}return t instanceof am}catch{}return!1},SH=typeof Map=="function"&&Map.prototype?Map:null,om=typeof Set=="function"&&Set.prototype?Set:null,As;om||(As=function(t){return!1});var ub=SH?Map.prototype.has:null,WT=om?Set.prototype.has:null;!As&&!WT&&(As=function(t){return!1});var VT=As||function(t){if(!t||typeof t!="object")return!1;try{if(WT.call(t),ub)try{ub.call(t)}catch{return!0}return t instanceof om}catch{}return!1},cb=FT,fb=yH;if(Oh()||Ys()){var Ad=Symbol.iterator;cs.exports=function(t){if(t!=null&&typeof t[Ad]<"u")return t[Ad]();if(cb(t))return Array.prototype[Ad].call(t)}}else{var RH=jT,CH=UT,db=Tr,xH=db("%Map%",!0),OH=db("%Set%",!0),yr=or,pb=yr("Array.prototype.push"),hb=yr("String.prototype.charCodeAt"),PH=yr("String.prototype.slice"),AH=function(t,r){var n=t.length;if(r+1>=n)return r+1;var a=hb(t,r);if(a<55296||a>56319)return r+1;var o=hb(t,r+1);return o<56320||o>57343?r+1:r+2},Id=function(t){var r=0;return{next:function(){var a=r>=t.length,o;return a||(o=t[r],r+=1),{done:a,value:o}}}},mb=function(t,r){if(RH(t)||cb(t))return Id(t);if(CH(t)){var n=0;return{next:function(){var o=AH(t,n),s=PH(t,n,o);return n=o,{done:o>t.length,value:s}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!xH&&!OH)cs.exports=function(t){if(t!=null)return mb(t,!0)};else{var IH=GT,NH=VT,yb=yr("Map.prototype.forEach",!0),vb=yr("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var gb=yr("Map.prototype.iterator",!0),bb=yr("Set.prototype.iterator",!0);var Eb=yr("Map.prototype.@@iterator",!0)||yr("Map.prototype._es6-shim iterator_",!0),_b=yr("Set.prototype.@@iterator",!0)||yr("Set.prototype._es6-shim iterator_",!0),MH=function(t){if(IH(t)){if(gb)return fb(gb(t));if(Eb)return Eb(t);if(yb){var r=[];return yb(t,function(a,o){pb(r,[o,a])}),Id(r)}}if(NH(t)){if(bb)return fb(bb(t));if(_b)return _b(t);if(vb){var n=[];return vb(t,function(a){pb(n,a)}),Id(n)}}};cs.exports=function(t){return MH(t)||mb(t)}}}var $H=cs.exports,wb=function(e){return e!==e},zT=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||wb(t)&&wb(r))},kH=zT,YT=function(){return typeof Object.is=="function"?Object.is:kH},LH=YT,BH=xa,DH=function(){var t=LH();return BH(Object,{is:t},{is:function(){return Object.is!==t}}),t},qH=xa,FH=so,jH=zT,KT=YT,UH=DH,XT=FH(KT(),Object);qH(XT,{getPolyfill:KT,implementation:jH,shim:UH});var HH=XT,QT=Function.prototype.toString,Ka=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Vp,fs;if(typeof Ka=="function"&&typeof Object.defineProperty=="function")try{Vp=Object.defineProperty({},"length",{get:function(){throw fs}}),fs={},Ka(function(){throw 42},null,Vp)}catch(e){e!==fs&&(Ka=null)}else Ka=null;var GH=/^\s*class\b/,zp=function(t){try{var r=QT.call(t);return GH.test(r)}catch{return!1}},Nd=function(t){try{return zp(t)?!1:(QT.call(t),!0)}catch{return!1}},ds=Object.prototype.toString,WH="[object Object]",VH="[object Function]",zH="[object GeneratorFunction]",YH="[object HTMLAllCollection]",KH="[object HTML document.all class]",XH="[object HTMLCollection]",QH=typeof Symbol=="function"&&!!Symbol.toStringTag,JH=!(0 in[,]),Yp=function(){return!1};if(typeof document=="object"){var ZH=document.all;ds.call(ZH)===ds.call(document.all)&&(Yp=function(t){if((JH||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=ds.call(t);return(r===YH||r===KH||r===XH||r===WH)&&t("")==null}catch{}return!1})}var e3=Ka?function(t){if(Yp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ka(t,null,Vp)}catch(r){if(r!==fs)return!1}return!zp(t)&&Nd(t)}:function(t){if(Yp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(QH)return Nd(t);if(zp(t))return!1;var r=ds.call(t);return r!==VH&&r!==zH&&!/^\[object HTML/.test(r)?!1:Nd(t)},t3=e3,r3=Object.prototype.toString,JT=Object.prototype.hasOwnProperty,n3=function(t,r,n){for(var a=0,o=t.length;a<o;a++)JT.call(t,a)&&(n==null?r(t[a],a,t):r.call(n,t[a],a,t))},a3=function(t,r,n){for(var a=0,o=t.length;a<o;a++)n==null?r(t.charAt(a),a,t):r.call(n,t.charAt(a),a,t)},o3=function(t,r,n){for(var a in t)JT.call(t,a)&&(n==null?r(t[a],a,t):r.call(n,t[a],a,t))},i3=function(t,r,n){if(!t3(r))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),r3.call(t)==="[object Array]"?n3(t,r,a):typeof t=="string"?a3(t,r,a):o3(t,r,a)},s3=i3,Md=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],l3=typeof globalThis>"u"?be:globalThis,u3=function(){for(var t=[],r=0;r<Md.length;r++)typeof l3[Md[r]]=="function"&&(t[t.length]=Md[r]);return t},Is=s3,c3=u3,Tb=so,im=or,ps=RT,f3=im("Object.prototype.toString"),ZT=Oa(),Sb=typeof globalThis>"u"?be:globalThis,Kp=c3(),sm=im("String.prototype.slice"),$d=Object.getPrototypeOf,d3=im("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},Ns={__proto__:null};ZT&&ps&&$d?Is(Kp,function(e){var t=new Sb[e];if(Symbol.toStringTag in t){var r=$d(t),n=ps(r,Symbol.toStringTag);if(!n){var a=$d(r);n=ps(a,Symbol.toStringTag)}Ns["$"+e]=Tb(n.get)}}):Is(Kp,function(e){var t=new Sb[e];Ns["$"+e]=Tb(t.slice)});var p3=function(t){var r=!1;return Is(Ns,function(n,a){if(!r)try{"$"+n(t)===a&&(r=sm(a,1))}catch{}}),r},h3=function(t){var r=!1;return Is(Ns,function(n,a){if(!r)try{n(t),r=sm(a,1)}catch{}}),r},eS=function(t){if(!t||typeof t!="object")return!1;if(!ZT){var r=sm(f3(t),8,-1);return d3(Kp,r)>-1?r:r!=="Object"?!1:h3(t)}return ps?p3(t):null},m3=eS,y3=function(t){return!!m3(t)},v3=so,g3=or,tS=Tr,b3=y3,Rb=tS("ArrayBuffer",!0),Cb=tS("Float32Array",!0),hs=g3("ArrayBuffer.prototype.byteLength",!0),xb=Rb&&!hs&&new Rb().slice,Ob=xb&&v3(xb),rS=hs||Ob?function(t){if(!t||typeof t!="object")return!1;try{return hs?hs(t):Ob(t,0),!0}catch{return!1}}:Cb?function(t){try{return new Cb(t).buffer===t&&!b3(t)}catch(r){return typeof t=="object"&&r.name==="RangeError"}}:function(t){return!1},E3=Date.prototype.getDay,_3=function(t){try{return E3.call(t),!0}catch{return!1}},w3=Object.prototype.toString,T3="[object Date]",S3=Oa(),R3=function(t){return typeof t!="object"||t===null?!1:S3?_3(t):w3.call(t)===T3},Xp=or,nS=Oa(),aS,oS,Qp,Jp;if(nS){aS=Xp("Object.prototype.hasOwnProperty"),oS=Xp("RegExp.prototype.exec"),Qp={};var kd=function(){throw Qp};Jp={toString:kd,valueOf:kd},typeof Symbol.toPrimitive=="symbol"&&(Jp[Symbol.toPrimitive]=kd)}var C3=Xp("Object.prototype.toString"),x3=Object.getOwnPropertyDescriptor,O3="[object RegExp]",P3=nS?function(t){if(!t||typeof t!="object")return!1;var r=x3(t,"lastIndex"),n=r&&aS(r,"value");if(!n)return!1;try{oS(t,Jp)}catch(a){return a===Qp}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:C3(t)===O3},A3=or,Pb=A3("SharedArrayBuffer.prototype.byteLength",!0),I3=Pb?function(t){if(!t||typeof t!="object")return!1;try{return Pb(t),!0}catch{return!1}}:function(t){return!1},N3=Number.prototype.toString,M3=function(t){try{return N3.call(t),!0}catch{return!1}},$3=Object.prototype.toString,k3="[object Number]",L3=Oa(),B3=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:L3?M3(t):$3.call(t)===k3},iS=or,D3=iS("Boolean.prototype.toString"),q3=iS("Object.prototype.toString"),F3=function(t){try{return D3(t),!0}catch{return!1}},j3="[object Boolean]",U3=Oa(),H3=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:U3&&Symbol.toStringTag in t?F3(t):q3(t)===j3},Zp={exports:{}},G3=Object.prototype.toString,W3=Oh();if(W3){var V3=Symbol.prototype.toString,z3=/^Symbol\(.*\)$/,Y3=function(t){return typeof t.valueOf()!="symbol"?!1:z3.test(V3.call(t))};Zp.exports=function(t){if(typeof t=="symbol")return!0;if(G3.call(t)!=="[object Symbol]")return!1;try{return Y3(t)}catch{return!1}}}else Zp.exports=function(t){return!1};var K3=Zp.exports,eh={exports:{}},Ab=typeof BigInt<"u"&&BigInt,X3=function(){return typeof Ab=="function"&&typeof BigInt=="function"&&typeof Ab(42)=="bigint"&&typeof BigInt(42)=="bigint"},Q3=X3();if(Q3){var J3=BigInt.prototype.valueOf,Z3=function(t){try{return J3.call(t),!0}catch{}return!1};eh.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Z3(t)}}else eh.exports=function(t){return!1};var e4=eh.exports,t4=UT,r4=B3,n4=H3,a4=K3,o4=e4,i4=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(t4(t))return"String";if(r4(t))return"Number";if(n4(t))return"Boolean";if(a4(t))return"Symbol";if(o4(t))return"BigInt"},Ms=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Ib=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,$s;Ms||($s=function(t){return!1});var th=Ms?Ms.prototype.has:null,Ld=Ib?Ib.prototype.has:null;!$s&&!th&&($s=function(t){return!1});var s4=$s||function(t){if(!t||typeof t!="object")return!1;try{if(th.call(t,th),Ld)try{Ld.call(t,Ld)}catch{return!0}return t instanceof Ms}catch{}return!1},rh={exports:{}},l4=Tr,sS=or,u4=l4("%WeakSet%",!0),Bd=sS("WeakSet.prototype.has",!0);if(Bd){var Dd=sS("WeakMap.prototype.has",!0);rh.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Bd(t,Bd),Dd)try{Dd(t,Dd)}catch{return!0}return t instanceof u4}catch{}return!1}}else rh.exports=function(t){return!1};var c4=rh.exports,f4=GT,d4=VT,p4=s4,h4=c4,m4=function(t){if(t&&typeof t=="object"){if(f4(t))return"Map";if(d4(t))return"Set";if(p4(t))return"WeakMap";if(h4(t))return"WeakSet"}return!1},y4=or,Nb=y4("ArrayBuffer.prototype.byteLength",!0),v4=rS,g4=function(t){return v4(t)?Nb?Nb(t):t.byteLength:NaN},lS=B2,jr=or,Mb=sH,b4=Tr,oo=$H,E4=kh,$b=HH,kb=FT,Lb=jT,Bb=rS,Db=R3,qb=P3,Fb=I3,jb=em,Ub=i4,Hb=m4,Gb=eS,Wb=g4,Vb=jr("SharedArrayBuffer.prototype.byteLength",!0),zb=jr("Date.prototype.getTime"),qd=Object.getPrototypeOf,Yb=jr("Object.prototype.toString"),ks=b4("%Set%",!0),nh=jr("Map.prototype.has",!0),Ls=jr("Map.prototype.get",!0),Kb=jr("Map.prototype.size",!0),Bs=jr("Set.prototype.add",!0),uS=jr("Set.prototype.delete",!0),Ds=jr("Set.prototype.has",!0),ms=jr("Set.prototype.size",!0);function Xb(e,t,r,n){for(var a=oo(e),o;(o=a.next())&&!o.done;)if(_r(t,o.value,r,n))return uS(e,o.value),!0;return!1}function cS(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function _4(e,t,r,n,a,o){var s=cS(r);if(s!=null)return s;var i=Ls(t,s),l=lS({},a,{strict:!1});return typeof i>"u"&&!nh(t,s)||!_r(n,i,l,o)?!1:!nh(e,s)&&_r(n,i,l,o)}function w4(e,t,r){var n=cS(r);return n??(Ds(t,n)&&!Ds(e,n))}function Qb(e,t,r,n,a,o){for(var s=oo(e),i,l;(i=s.next())&&!i.done;)if(l=i.value,_r(r,l,a,o)&&_r(n,Ls(t,l),a,o))return uS(e,l),!0;return!1}function _r(e,t,r,n){var a=r||{};if(a.strict?$b(e,t):e===t)return!0;var o=Ub(e),s=Ub(t);if(o!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return a.strict?$b(e,t):e==t;var i=n.has(e),l=n.has(t),u;if(i&&l){if(n.get(e)===n.get(t))return!0}else u={};return i||n.set(e,u),l||n.set(t,u),R4(e,t,a,n)}function Jb(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function T4(e,t,r,n){if(ms(e)!==ms(t))return!1;for(var a=oo(e),o=oo(t),s,i,l;(s=a.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new ks),Bs(l,s.value);else if(!Ds(t,s.value)){if(r.strict||!w4(e,t,s.value))return!1;l||(l=new ks),Bs(l,s.value)}if(l){for(;(i=o.next())&&!i.done;)if(i.value&&typeof i.value=="object"){if(!Xb(l,i.value,r.strict,n))return!1}else if(!r.strict&&!Ds(e,i.value)&&!Xb(l,i.value,r.strict,n))return!1;return ms(l)===0}return!0}function S4(e,t,r,n){if(Kb(e)!==Kb(t))return!1;for(var a=oo(e),o=oo(t),s,i,l,u,c,d;(s=a.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new ks),Bs(l,u);else if(d=Ls(t,u),typeof d>"u"&&!nh(t,u)||!_r(c,d,r,n)){if(r.strict||!_4(e,t,u,c,r,n))return!1;l||(l=new ks),Bs(l,u)}if(l){for(;(i=o.next())&&!i.done;)if(u=i.value[0],d=i.value[1],u&&typeof u=="object"){if(!Qb(l,e,u,d,r,n))return!1}else if(!r.strict&&(!e.has(u)||!_r(Ls(e,u),d,r,n))&&!Qb(l,e,u,d,lS({},r,{strict:!1}),n))return!1;return ms(l)===0}return!0}function R4(e,t,r,n){var a,o;if(typeof e!=typeof t||e==null||t==null||Yb(e)!==Yb(t)||kb(e)!==kb(t))return!1;var s=Lb(e),i=Lb(t);if(s!==i)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=qb(e),d=qb(t);if(c!==d||(c||d)&&(e.source!==t.source||Mb(e)!==Mb(t)))return!1;var p=Db(e),f=Db(t);if(p!==f||(p||f)&&zb(e)!==zb(t)||r.strict&&qd&&qd(e)!==qd(t))return!1;var h=Gb(e),m=Gb(t);if(h!==m)return!1;if(h||m){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var w=Jb(e),E=Jb(t);if(w!==E)return!1;if(w||E){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var y=Bb(e),T=Bb(t);if(y!==T)return!1;if(y||T)return Wb(e)!==Wb(t)?!1:typeof Uint8Array=="function"&&_r(new Uint8Array(e),new Uint8Array(t),r,n);var R=Fb(e),S=Fb(t);if(R!==S)return!1;if(R||S)return Vb(e)!==Vb(t)?!1:typeof Uint8Array=="function"&&_r(new Uint8Array(e),new Uint8Array(t),r,n);if(typeof e!=typeof t)return!1;var O=jb(e),N=jb(t);if(O.length!==N.length)return!1;for(O.sort(),N.sort(),a=O.length-1;a>=0;a--)if(O[a]!=N[a])return!1;for(a=O.length-1;a>=0;a--)if(o=O[a],!_r(e[o],t[o],r,n))return!1;var M=Hb(e),H=Hb(t);return M!==H?!1:M==="Set"||H==="Set"?T4(e,t,r,n):M==="Map"?S4(e,t,r,n):!0}var C4=function(t,r,n){return _r(t,r,n,E4())};Object.defineProperty(Dc,"__esModule",{value:!0});Dc.default=void 0;var x4=lm(C4),O4=lm(Ca),fS=lm(po);function lm(e){return e&&e.__esModule?e:{default:e}}function Fd(e,t){return I4(e)||A4(e,t)||dS(e,t)||P4()}function P4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
133
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,s,i;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,i=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw i}}return n}}function I4(e){if(Array.isArray(e))return e}function N4(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=dS(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
134
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,i;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){s=!0,i=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(s)throw i}}}}function dS(e,t){if(e){if(typeof e=="string")return Zb(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 Zb(e,t)}}function Zb(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}var An=[],eE=fS.default.keys();for(var jd=0;jd<eE.length;jd++){var Ud=eE[jd],Hd=fS.default.get(Ud);if(Hd)for(var tE=[].concat(Hd.baseConcepts,Hd.relatedConcepts),Gd=0;Gd<tE.length;Gd++){var rE=tE[Gd];if(rE.module==="HTML"){var Wd=rE.concept;Wd&&function(){var e=JSON.stringify(Wd),t=An.find(function(o){return JSON.stringify(o[0])===e}),r=void 0;t?r=t[1]:r=[];for(var n=!0,a=0;a<r.length;a++)if(r[a]===Ud){n=!1;break}n&&r.push(Ud),An.push([Wd,r])}()}}}var ah={entries:function(){return An},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=N4(An),a;try{for(n.s();!(a=n.n()).done;){var o=Fd(a.value,2),s=o[0],i=o[1];t.call(r,i,s,An)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=An.find(function(n){return(0,x4.default)(t,n[0])});return r&&r[1]},has:function(t){return!!ah.get(t)},keys:function(){return An.map(function(t){var r=Fd(t,1),n=r[0];return n})},values:function(){return An.map(function(t){var r=Fd(t,2),n=r[1];return n})}},M4=(0,O4.default)(ah,ah.entries());Dc.default=M4;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.default=void 0;var $4=hS(Ca),pS=hS(po);function hS(e){return e&&e.__esModule?e:{default:e}}function Vd(e,t){return B4(e)||L4(e,t)||mS(e,t)||k4()}function k4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
135
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,s,i;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(n.push(s.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,i=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw i}}return n}}function B4(e){if(Array.isArray(e))return e}function D4(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=mS(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,i;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){s=!0,i=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(s)throw i}}}}function mS(e,t){if(e){if(typeof e=="string")return nE(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 nE(e,t)}}function nE(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}var In=[],yS=pS.default.keys(),q4=function(t){var r=yS[t],n=pS.default.get(r);if(n)for(var a=[].concat(n.baseConcepts,n.relatedConcepts),o=0;o<a.length;o++){var s=a[o];if(s.module==="HTML"){var i=s.concept;if(i){var l=In.find(function(c){return c[0]===r}),u=void 0;l?u=l[1]:u=[],u.push(i),In.push([r,u])}}}};for(var zd=0;zd<yS.length;zd++)q4(zd);var oh={entries:function(){return In},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=D4(In),a;try{for(n.s();!(a=n.n()).done;){var o=Vd(a.value,2),s=o[0],i=o[1];t.call(r,i,s,In)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=In.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!oh.get(t)},keys:function(){return In.map(function(t){var r=Vd(t,1),n=r[0];return n})},values:function(){return In.map(function(t){var r=Vd(t,2),n=r[1];return n})}},F4=(0,$4.default)(oh,oh.entries());Fc.default=F4;Object.defineProperty(Er,"__esModule",{value:!0});var vr=Er.roles=gS=Er.roleElements=vS=Er.elementRoles=Er.dom=Er.aria=void 0,j4=Ti(nl),U4=Ti(ol),H4=Ti(po),G4=Ti(Dc),W4=Ti(Fc);function Ti(e){return e&&e.__esModule?e:{default:e}}var V4=j4.default;Er.aria=V4;var z4=U4.default;Er.dom=z4;var Y4=H4.default;vr=Er.roles=Y4;var K4=G4.default,vS=Er.elementRoles=K4,X4=W4.default,gS=Er.roleElements=X4,um={exports:{}};um.exports;(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function s(l,u){if(!o[l]){o[l]={};for(var c=0;c<l.length;c++)o[l][l.charAt(c)]=c}return o[l][u]}var i={compressToBase64:function(l){if(l==null)return"";var u=i._compress(l,6,function(c){return n.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:i._decompress(l.length,32,function(u){return s(n,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":i._compress(l,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:i._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=i.compress(l),c=new Uint8Array(u.length*2),d=0,p=u.length;d<p;d++){var f=u.charCodeAt(d);c[d*2]=f>>>8,c[d*2+1]=f%256}return c},decompressFromUint8Array:function(l){if(l==null)return i.decompress(l);for(var u=new Array(l.length/2),c=0,d=u.length;c<d;c++)u[c]=l[c*2]*256+l[c*2+1];var p=[];return u.forEach(function(f){p.push(r(f))}),i.decompress(p.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":i._compress(l,6,function(u){return a.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),i._decompress(l.length,32,function(u){return s(a,l.charAt(u))}))},compress:function(l){return i._compress(l,16,function(u){return r(u)})},_compress:function(l,u,c){if(l==null)return"";var d,p,f={},h={},m="",w="",E="",y=2,T=3,R=2,S=[],O=0,N=0,M;for(M=0;M<l.length;M+=1)if(m=l.charAt(M),Object.prototype.hasOwnProperty.call(f,m)||(f[m]=T++,h[m]=!0),w=E+m,Object.prototype.hasOwnProperty.call(f,w))E=w;else{if(Object.prototype.hasOwnProperty.call(h,E)){if(E.charCodeAt(0)<256){for(d=0;d<R;d++)O=O<<1,N==u-1?(N=0,S.push(c(O)),O=0):N++;for(p=E.charCodeAt(0),d=0;d<8;d++)O=O<<1|p&1,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=p>>1}else{for(p=1,d=0;d<R;d++)O=O<<1|p,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=0;for(p=E.charCodeAt(0),d=0;d<16;d++)O=O<<1|p&1,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=p>>1}y--,y==0&&(y=Math.pow(2,R),R++),delete h[E]}else for(p=f[E],d=0;d<R;d++)O=O<<1|p&1,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=p>>1;y--,y==0&&(y=Math.pow(2,R),R++),f[w]=T++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(h,E)){if(E.charCodeAt(0)<256){for(d=0;d<R;d++)O=O<<1,N==u-1?(N=0,S.push(c(O)),O=0):N++;for(p=E.charCodeAt(0),d=0;d<8;d++)O=O<<1|p&1,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=p>>1}else{for(p=1,d=0;d<R;d++)O=O<<1|p,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=0;for(p=E.charCodeAt(0),d=0;d<16;d++)O=O<<1|p&1,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=p>>1}y--,y==0&&(y=Math.pow(2,R),R++),delete h[E]}else for(p=f[E],d=0;d<R;d++)O=O<<1|p&1,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=p>>1;y--,y==0&&(y=Math.pow(2,R),R++)}for(p=2,d=0;d<R;d++)O=O<<1|p&1,N==u-1?(N=0,S.push(c(O)),O=0):N++,p=p>>1;for(;;)if(O=O<<1,N==u-1){S.push(c(O));break}else N++;return S.join("")},decompress:function(l){return l==null?"":l==""?null:i._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var d=[],p=4,f=4,h=3,m="",w=[],E,y,T,R,S,O,N,M={val:c(0),position:u,index:1};for(E=0;E<3;E+=1)d[E]=E;for(T=0,S=Math.pow(2,2),O=1;O!=S;)R=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=c(M.index++)),T|=(R>0?1:0)*O,O<<=1;switch(T){case 0:for(T=0,S=Math.pow(2,8),O=1;O!=S;)R=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=c(M.index++)),T|=(R>0?1:0)*O,O<<=1;N=r(T);break;case 1:for(T=0,S=Math.pow(2,16),O=1;O!=S;)R=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=c(M.index++)),T|=(R>0?1:0)*O,O<<=1;N=r(T);break;case 2:return""}for(d[3]=N,y=N,w.push(N);;){if(M.index>l)return"";for(T=0,S=Math.pow(2,h),O=1;O!=S;)R=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=c(M.index++)),T|=(R>0?1:0)*O,O<<=1;switch(N=T){case 0:for(T=0,S=Math.pow(2,8),O=1;O!=S;)R=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=c(M.index++)),T|=(R>0?1:0)*O,O<<=1;d[f++]=r(T),N=f-1,p--;break;case 1:for(T=0,S=Math.pow(2,16),O=1;O!=S;)R=M.val&M.position,M.position>>=1,M.position==0&&(M.position=u,M.val=c(M.index++)),T|=(R>0?1:0)*O,O<<=1;d[f++]=r(T),N=f-1,p--;break;case 2:return w.join("")}if(p==0&&(p=Math.pow(2,h),h++),d[N])m=d[N];else if(N===f)m=y+y.charAt(0);else return null;w.push(m),d[f++]=y+m.charAt(0),p--,y=m,p==0&&(p=Math.pow(2,h),h++)}}};return i}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(um);var Q4=um.exports;const J4=wr(Q4);function bS(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Z4=(e,t,r,n,a,o,s)=>{const i=n+r.indent,l=r.colors;return e.map(u=>{const c=t[u];let d=s(c,r,i,a,o);return typeof c!="string"&&(d.indexOf(`
137
- `)!==-1&&(d=r.spacingOuter+i+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+d+l.value.close}).join("")},eG=3,tG=(e,t,r,n,a,o)=>e.map(s=>{const i=typeof s=="string"?ES(s,t):o(s,t,r,n,a);return i===""&&typeof s=="object"&&s!==null&&s.nodeType!==eG?"":t.spacingOuter+r+i}).join(""),ES=(e,t)=>{const r=t.colors.content;return r.open+bS(e)+r.close},rG=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+bS(e)+"-->"+r.close},nG=(e,t,r,n,a)=>{const o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+a+o.open)+(r?">"+o.close+r+n.spacingOuter+a+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close},aG=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},oG=1,_S=3,wS=8,TS=11,iG=/^((HTML|SVG)\w*)?Element$/,sG=e=>{const t=e.constructor.name,{nodeType:r,tagName:n}=e,a=typeof n=="string"&&n.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is");return r===oG&&(iG.test(t)||a)||r===_S&&t==="Text"||r===wS&&t==="Comment"||r===TS&&t==="DocumentFragment"};function lG(e){return e.nodeType===_S}function uG(e){return e.nodeType===wS}function Yd(e){return e.nodeType===TS}function cG(e){return{test:t=>{var r;return(t==null||(r=t.constructor)==null?void 0:r.name)&&sG(t)},serialize:(t,r,n,a,o,s)=>{if(lG(t))return ES(t.data,r);if(uG(t))return rG(t.data,r);const i=Yd(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?aG(i,r):nG(i,Z4(Yd(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),Yd(t)?{}:Array.from(t.attributes).reduce((l,u)=>(l[u.name]=u.value,l),{}),r,n+r.indent,a,o,s),tG(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,a,o,s),r,n)}}}let SS=null,cm=null,fm=null;try{const e=module&&$N;cm=e.call(module,"fs").readFileSync,fm=e.call(module,"@babel/code-frame").codeFrameColumns,SS=e.call(module,"chalk")}catch{}function fG(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),a=n.split(":"),[o,s,i]=[a[0],parseInt(a[1],10),parseInt(a[2],10)];let l="";try{l=cm(o,"utf-8")}catch{return""}const u=fm(l,{start:{line:s,column:i}},{highlightCode:!0,linesBelow:0});return SS.dim(n)+`
138
- `+u+`
139
- `}function dG(){if(!cm||!fm)return"";const t=new Error().stack.split(`
140
- `).slice(1).find(r=>!r.includes("node_modules/"));return fG(t)}const RS=3;function Kd(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function dm(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function CS(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function fn(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}const pG=()=>{let e;try{var t;e=JSON.parse((t=process)==null||(t=t.env)==null?void 0:t.COLORS)}catch{}return typeof e=="boolean"?e:typeof process<"u"&&process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:hG}=tT,mG=1,yG=8;function vG(e){return e.nodeType!==yG&&(e.nodeType!==mG||!e.matches(We().defaultIgnore))}function qs(e,t,r){if(r===void 0&&(r={}),e||(e=dm().body),typeof t!="number"&&(t=typeof process<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);const{filterNode:a=vG,...o}=r,s=qM(e,{plugins:[cG(a),hG],printFunctionName:!1,highlight:pG(),...o});return t!==void 0&&e.outerHTML.length>t?s.slice(0,t)+"...":s}const aE=function(){const e=dG();console.log(e?qs(...arguments)+`
141
-
142
- `+e:qs(...arguments))};let ba={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){const r=qs(t),n=new Error([e,"Ignored nodes: comments, "+ba.defaultIgnore+`
143
- `+r].filter(Boolean).join(`
144
-
145
- `));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function gG(e){try{return ba._disableExpensiveErrorDiagnostics=!0,e()}finally{ba._disableExpensiveErrorDiagnostics=!1}}function bG(e){typeof e=="function"&&(e=e(ba)),ba={...ba,...e}}function We(){return ba}const EG=["button","meter","output","progress","select","textarea","input"];function xS(e){return EG.includes(e.nodeName.toLowerCase())?"":e.nodeType===RS?e.textContent:Array.from(e.childNodes).map(t=>xS(t)).join("")}function ih(e){let t;return e.tagName.toLowerCase()==="label"?t=xS(e):t=e.value||e.textContent,t}function OS(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!_G(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function _G(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function PS(e,t,r){let{selector:n="*"}=r===void 0?{}:r;const a=t.getAttribute("aria-labelledby"),o=a?a.split(" "):[];return o.length?o.map(s=>{const i=e.querySelector('[id="'+s+'"]');return i?{content:ih(i),formControl:null}:{content:"",formControl:null}}):Array.from(OS(t)).map(s=>{const i=ih(s),l="button, input, meter, output, progress, select, textarea",u=Array.from(s.querySelectorAll(l)).filter(c=>c.matches(n))[0];return{content:i,formControl:u}})}function AS(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function ho(e,t,r,n){if(typeof e!="string")return!1;AS(r);const a=n(e);return typeof r=="string"||typeof r=="number"?a.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(a,t):NS(r,a)}function ln(e,t,r,n){if(typeof e!="string")return!1;AS(r);const a=n(e);return r instanceof Function?r(a,t):r instanceof RegExp?NS(r,a):a===String(r)}function IS(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let a=n;return a=t?a.trim():a,a=r?a.replace(/\s+/g," "):a,a}}function Pa(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return IS({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function NS(e,t){const r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function jc(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===RS&&!!t.textContent).map(t=>t.textContent).join("")}const wG=TG(vS);function MS(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function pm(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=MS}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let a=e;for(;a;){if(r(a))return!0;a=a.parentElement}return!1}function hm(e){for(const{match:t,roles:r}of wG)if(t(e))return[...r];return[]}function TG(e){function t(s){let{name:i,attributes:l}=s;return""+i+l.map(u=>{let{name:c,value:d,constraints:p=[]}=u;return p.indexOf("undefined")!==-1?":not(["+c+"])":d?"["+c+'="'+d+'"]':"["+c+"]"}).join("")}function r(s){let{attributes:i=[]}=s;return i.length}function n(s,i){let{specificity:l}=s,{specificity:u}=i;return u-l}function a(s){let{attributes:i=[]}=s;const l=i.findIndex(c=>c.value&&c.name==="type"&&c.value==="text");l>=0&&(i=[...i.slice(0,l),...i.slice(l+1)]);const u=t({...s,attributes:i});return c=>l>=0&&c.type!=="text"?!1:c.matches(u)}let o=[];for(const[s,i]of e.entries())o=[...o,{match:a(s),roles:Array.from(i),specificity:r(s)}];return o.sort(n)}function SG(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(a){return[a,...Array.from(a.children).reduce((o,s)=>[...o,...n(s)],[])]}return n(e).filter(a=>r===!1?pm(a)===!1:!0).reduce((a,o)=>{let s=[];return o.hasAttribute("role")?s=o.getAttribute("role").split(" ").slice(0,1):s=hm(o),s.reduce((i,l)=>Array.isArray(i[l])?{...i,[l]:[...i[l],o]}:{...i,[l]:[o]},a)},{})}function RG(e,t){let{hidden:r,includeDescription:n}=t;const a=SG(e,{hidden:r});return Object.entries(a).filter(o=>{let[s]=o;return s!=="generic"}).map(o=>{let[s,i]=o;const l="-".repeat(50),u=i.map(c=>{const d='Name "'+Jh(c,{computedStyleSupportsPseudoElements:We().computedStyleSupportsPseudoElements})+`":
146
- `,p=qs(c.cloneNode(!1));if(n){const f='Description "'+ET(c,{computedStyleSupportsPseudoElements:We().computedStyleSupportsPseudoElements})+`":
147
- `;return""+d+f+p}return""+d+p}).join(`
148
-
149
- `);return s+`:
150
-
151
- `+u+`
152
-
153
- `+l}).join(`
154
- `)}function CG(e){return e.tagName==="OPTION"?e.selected:Si(e,"aria-selected")}function xG(e){return e.getAttribute("aria-busy")==="true"}function OG(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Si(e,"aria-checked")}function PG(e){return Si(e,"aria-pressed")}function AG(e){var t,r;return(t=(r=Si(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function IG(e){return Si(e,"aria-expanded")}function Si(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function NG(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function MG(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function $G(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function kG(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function LG(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const oE=IS();function BG(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function iE(e){return new RegExp(BG(e.toLowerCase()),"i")}function Tn(e,t,r,n){let{variant:a,name:o}=n,s="";const i={},l=[["Role","TestId"].includes(e)?r:iE(r)];o&&(i.name=iE(o)),e==="Role"&&pm(t)&&(i.hidden=!0,s=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
155
- If you are using the aria-hidden prop, make sure this is the right choice for your case.
156
- `),Object.keys(i).length>0&&l.push(i);const u=a+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:a,warning:s,toString(){s&&console.warn(s);let[c,d]=l;return c=typeof c=="string"?"'"+c+"'":c,d=d?", { "+Object.entries(d).map(p=>{let[f,h]=p;return f+": "+h}).join(", ")+" }":"",u+"("+c+d+")"}}}function Sn(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function sh(e,t,r){var n,a;if(t===void 0&&(t="get"),e.matches(We().defaultIgnore))return;const o=(n=e.getAttribute("role"))!=null?n:(a=hm(e))==null?void 0:a[0];if(o!=="generic"&&Sn("Role",r,o))return Tn("Role",e,o,{variant:t,name:Jh(e,{computedStyleSupportsPseudoElements:We().computedStyleSupportsPseudoElements})});const s=PS(document,e).map(p=>p.content).join(" ");if(Sn("LabelText",r,s))return Tn("LabelText",e,s,{variant:t});const i=e.getAttribute("placeholder");if(Sn("PlaceholderText",r,i))return Tn("PlaceholderText",e,i,{variant:t});const l=oE(jc(e));if(Sn("Text",r,l))return Tn("Text",e,l,{variant:t});if(Sn("DisplayValue",r,e.value))return Tn("DisplayValue",e,oE(e.value),{variant:t});const u=e.getAttribute("alt");if(Sn("AltText",r,u))return Tn("AltText",e,u,{variant:t});const c=e.getAttribute("title");if(Sn("Title",r,c))return Tn("Title",e,c,{variant:t});const d=e.getAttribute(We().testIdAttribute);if(Sn("TestId",r,d))return Tn("TestId",e,d,{variant:t})}function es(e,t){e.stack=t.stack.replace(t.message,e.message)}function DG(e,t){let{container:r=dm(),timeout:n=We().asyncUtilTimeout,showOriginalStackTrace:a=We().showOriginalStackTrace,stackTraceError:o,interval:s=50,onTimeout:i=u=>(Object.defineProperty(u,"message",{value:We().getElementError(u.message,r).message}),u),mutationObserverOptions:l={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(u,c)=>{let d,p,f,h=!1,m="idle";const w=setTimeout(S,n),E=Kd();if(E){const{unstable_advanceTimersWrapper:O}=We();for(R();!h;){if(!Kd()){const N=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");a||es(N,o),c(N);return}if(await O(async()=>{jest.advanceTimersByTime(s)}),R(),h)break}}else{try{fn(r)}catch(N){c(N);return}p=setInterval(T,s);const{MutationObserver:O}=CS(r);f=new O(T),f.observe(r,l),R()}function y(O,N){h=!0,clearTimeout(w),E||(clearInterval(p),f.disconnect()),O?c(O):u(N)}function T(){if(Kd()){const O=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return a||es(O,o),c(O)}else return R()}function R(){if(m!=="pending")try{const O=gG(e);typeof(O==null?void 0:O.then)=="function"?(m="pending",O.then(N=>{m="resolved",y(null,N)},N=>{m="rejected",d=N})):y(null,O)}catch(O){d=O}}function S(){let O;d?(O=d,!a&&O.name==="TestingLibraryElementError"&&es(O,o)):(O=new Error("Timed out in waitFor."),a||es(O,o)),y(i(O),null)}})}function qG(e,t){const r=new Error("STACK_TRACE_MESSAGE");return We().asyncWrapper(()=>DG(e,{stackTraceError:r,...t}))}function $S(e,t){return We().getElementError(e,t)}function FG(e,t){return $S(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Uc(e,t,r,n){let{exact:a=!0,collapseWhitespace:o,trim:s,normalizer:i}=n===void 0?{}:n;const l=a?ln:ho,u=Pa({collapseWhitespace:o,trim:s,normalizer:i});return Array.from(t.querySelectorAll("["+e+"]")).filter(c=>l(c.getAttribute(e),c,r,u))}function Fs(e,t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];const s=e(r,...a);if(s.length>1){const i=s.map(l=>$S(null,l).message).join(`
157
-
158
- `);throw FG(t(r,...a)+`
159
-
160
- Here are the matching elements:
161
-
162
- `+i,r)}return s[0]||null}}function kS(e,t){return We().getElementError(`A better query is available, try this:
163
- `+e.toString()+`
164
- `,t)}function jG(e,t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];const s=e(r,...a);if(!s.length)throw We().getElementError(t(r,...a),r);return s}}function js(e){return(t,r,n,a)=>qG(()=>e(t,r,n),{container:t,...a})}const Ja=(e,t,r)=>function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];const i=e(n,...o),[{suggest:l=We().throwSuggestions}={}]=o.slice(-1);if(i&&l){const u=sh(i,r);if(u&&!t.endsWith(u.queryName))throw kS(u.toString(),n)}return i},ar=(e,t,r)=>function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];const i=e(n,...o),[{suggest:l=We().throwSuggestions}={}]=o.slice(-1);if(i.length&&l){const u=[...new Set(i.map(c=>{var d;return(d=sh(c,r))==null?void 0:d.toString()}))];if(u.length===1&&!t.endsWith(sh(i[0],r).queryName))throw kS(u[0],n)}return i};function Aa(e,t,r){const n=Ja(Fs(e,t),e.name,"query"),a=jG(e,r),o=Fs(a,t),s=Ja(o,e.name,"get"),i=ar(a,e.name.replace("query","get"),"getAll"),l=js(ar(a,e.name,"findAll")),u=js(Ja(o,e.name,"find"));return[n,i,s,l,u]}function UG(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:ih(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}const HG=function(e,t,r){let{exact:n=!0,trim:a,collapseWhitespace:o,normalizer:s}=r===void 0?{}:r;const i=n?ln:ho,l=Pa({collapseWhitespace:o,trim:a,normalizer:s});return UG(e).filter(c=>{let{node:d,textToMatch:p}=c;return i(p,d,t,l)}).map(c=>{let{node:d}=c;return d})},ci=function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:o,trim:s,normalizer:i}=r===void 0?{}:r;fn(e);const l=a?ln:ho,u=Pa({collapseWhitespace:o,trim:s,normalizer:i}),c=Array.from(e.querySelectorAll("*")).filter(d=>OS(d).length||d.hasAttribute("aria-labelledby")).reduce((d,p)=>{const f=PS(e,p,{selector:n});f.filter(m=>!!m.formControl).forEach(m=>{l(m.content,m.formControl,t,u)&&m.formControl&&d.push(m.formControl)});const h=f.filter(m=>!!m.content).map(m=>m.content);return l(h.join(" "),p,t,u)&&d.push(p),h.length>1&&h.forEach((m,w)=>{l(m,p,t,u)&&d.push(p);const E=[...h];E.splice(w,1),E.length>1&&l(E.join(" "),p,t,u)&&d.push(p)}),d},[]).concat(Uc("aria-label",e,t,{exact:a,normalizer:u}));return Array.from(new Set(c)).filter(d=>d.matches(n))},wa=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];const o=ci(e,t,...n);if(!o.length){const s=HG(e,t,...n);if(s.length){const i=s.map(l=>GG(e,l)).filter(l=>!!l);throw i.length?We().getElementError(i.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
165
-
166
- `),e):We().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw We().getElementError("Unable to find a label with the text of: "+t,e)}return o};function GG(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}const LS=(e,t)=>"Found multiple elements with the text of: "+t,WG=Ja(Fs(ci,LS),ci.name,"query"),BS=Fs(wa,LS),VG=js(ar(wa,wa.name,"findAll")),zG=js(Ja(BS,wa.name,"find")),YG=ar(wa,wa.name,"getAll"),KG=Ja(BS,wa.name,"get"),XG=ar(ci,ci.name,"queryAll"),lh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn(t[0]),Uc("placeholder",...t)},QG=(e,t)=>"Found multiple elements with the placeholder text of: "+t,JG=(e,t)=>"Unable to find an element with the placeholder text of: "+t,ZG=ar(lh,lh.name,"queryAll"),[e6,t6,r6,n6,a6]=Aa(lh,QG,JG),uh=function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:o,trim:s,ignore:i=We().defaultIgnore,normalizer:l}=r===void 0?{}:r;fn(e);const u=a?ln:ho,c=Pa({collapseWhitespace:o,trim:s,normalizer:l});let d=[];return typeof e.matches=="function"&&e.matches(n)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(n))].filter(p=>!i||!p.matches(i)).filter(p=>u(jc(p),p,t,c))},o6=(e,t)=>"Found multiple elements with the text: "+t,i6=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:a,normalizer:o,selector:s}=r,l=Pa({collapseWhitespace:n,trim:a,normalizer:o})(t.toString()),u=l!==t.toString(),c=(s??"*")!=="*";return"Unable to find an element with the text: "+(u?l+" (normalized from '"+t+"')":t)+(c?", which matches selector '"+s+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},s6=ar(uh,uh.name,"queryAll"),[l6,u6,c6,f6,d6]=Aa(uh,o6,i6),ch=function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:o,normalizer:s}=r===void 0?{}:r;fn(e);const i=n?ln:ho,l=Pa({collapseWhitespace:a,trim:o,normalizer:s});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(d=>d.selected).some(d=>i(jc(d),d,t,l)):i(u.value,u,t,l))},p6=(e,t)=>"Found multiple elements with the display value: "+t+".",h6=(e,t)=>"Unable to find an element with the display value: "+t+".",m6=ar(ch,ch.name,"queryAll"),[y6,v6,g6,b6,E6]=Aa(ch,p6,h6),_6=/^(img|input|area|.+-.+)$/i,fh=function(e,t,r){return r===void 0&&(r={}),fn(e),Uc("alt",e,t,r).filter(n=>_6.test(n.tagName))},w6=(e,t)=>"Found multiple elements with the alt text: "+t,T6=(e,t)=>"Unable to find an element with the alt text: "+t,S6=ar(fh,fh.name,"queryAll"),[R6,C6,x6,O6,P6]=Aa(fh,w6,T6),A6=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},dh=function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:o,normalizer:s}=r===void 0?{}:r;fn(e);const i=n?ln:ho,l=Pa({collapseWhitespace:a,trim:o,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>i(u.getAttribute("title"),u,t,l)||A6(u)&&i(jc(u),u,t,l))},I6=(e,t)=>"Found multiple elements with the title: "+t+".",N6=(e,t)=>"Unable to find an element with the title: "+t+".",M6=ar(dh,dh.name,"queryAll"),[$6,k6,L6,B6,D6]=Aa(dh,I6,N6),ph=function(e,t,r){let{hidden:n=We().defaultHidden,name:a,description:o,queryFallbacks:s=!1,selected:i,busy:l,checked:u,pressed:c,current:d,level:p,expanded:f,value:{now:h,min:m,max:w,text:E}={}}=r===void 0?{}:r;if(fn(e),i!==void 0){var y;if(((y=vr.get(t))==null?void 0:y.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var T;if(((T=vr.get(t))==null?void 0:T.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var R;if(((R=vr.get(t))==null?void 0:R.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(c!==void 0){var S;if(((S=vr.get(t))==null?void 0:S.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(d!==void 0){var O;if(((O=vr.get(t))==null?void 0:O.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(p!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(h!==void 0){var N;if(((N=vr.get(t))==null?void 0:N.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(w!==void 0){var M;if(((M=vr.get(t))==null?void 0:M.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(m!==void 0){var H;if(((H=vr.get(t))==null?void 0:H.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(E!==void 0){var G;if(((G=vr.get(t))==null?void 0:G.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(f!==void 0){var W;if(((W=vr.get(t))==null?void 0:W.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const U=new WeakMap;function j(Z){return U.has(Z)||U.set(Z,MS(Z)),U.get(Z)}return Array.from(e.querySelectorAll(q6(t))).filter(Z=>{if(Z.hasAttribute("role")){const K=Z.getAttribute("role");if(s)return K.split(" ").filter(Boolean).some(ge=>ge===t);const[re]=K.split(" ");return re===t}return hm(Z).some(K=>K===t)}).filter(Z=>{if(i!==void 0)return i===CG(Z);if(l!==void 0)return l===xG(Z);if(u!==void 0)return u===OG(Z);if(c!==void 0)return c===PG(Z);if(d!==void 0)return d===AG(Z);if(f!==void 0)return f===IG(Z);if(p!==void 0)return p===NG(Z);if(h!==void 0||w!==void 0||m!==void 0||E!==void 0){let L=!0;if(h!==void 0&&L&&(L=h===MG(Z)),w!==void 0&&L&&(L=w===$G(Z)),m!==void 0&&L&&(L=m===kG(Z)),E!==void 0){var ee;L&&(L=ln((ee=LG(Z))!=null?ee:null,Z,E,K=>K))}return L}return!0}).filter(Z=>a===void 0?!0:ln(Jh(Z,{computedStyleSupportsPseudoElements:We().computedStyleSupportsPseudoElements}),Z,a,ee=>ee)).filter(Z=>o===void 0?!0:ln(ET(Z,{computedStyleSupportsPseudoElements:We().computedStyleSupportsPseudoElements}),Z,o,ee=>ee)).filter(Z=>n===!1?pm(Z,{isSubtreeInaccessible:j})===!1:!0)};function q6(e){var t;const r='*[role~="'+e+'"]',n=(t=gS.get(e))!=null?t:new Set,a=new Set(Array.from(n).map(o=>{let{name:s}=o;return s}));return[r].concat(Array.from(a)).join(",")}const DS=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},F6=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+DS(n)},j6=function(e,t,r){let{hidden:n=We().defaultHidden,name:a,description:o}=r===void 0?{}:r;if(We()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+DS(a);let s="";Array.from(e.children).forEach(c=>{s+=RG(c,{hidden:n,includeDescription:o!==void 0})});let i;s.length===0?n===!1?i="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":i="There are no available roles.":i=(`
167
- Here are the `+(n===!1?"accessible":"available")+` roles:
168
-
169
- `+s.replace(/\n/g,`
170
- `).replace(/\n\s\s\n/g,`
171
-
172
- `)+`
173
- `).trim();let l="";a===void 0?l="":typeof a=="string"?l=' and name "'+a+'"':l=" and name `"+a+"`";let u="";return o===void 0?u="":typeof o=="string"?u=' and description "'+o+'"':u=" and description `"+o+"`",(`
174
- Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+u+`
175
-
176
- `+i).trim()},U6=ar(ph,ph.name,"queryAll"),[H6,G6,W6,V6,z6]=Aa(ph,F6,j6),mm=()=>We().testIdAttribute,hh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fn(t[0]),Uc(mm(),...t)},Y6=(e,t)=>"Found multiple elements by: ["+mm()+'="'+t+'"]',K6=(e,t)=>"Unable to find an element by: ["+mm()+'="'+t+'"]',X6=ar(hh,hh.name,"queryAll"),[Q6,J6,Z6,eW,tW]=Aa(hh,Y6,K6);var mh=Object.freeze({__proto__:null,queryAllByLabelText:XG,queryByLabelText:WG,getAllByLabelText:YG,getByLabelText:KG,findAllByLabelText:VG,findByLabelText:zG,queryByPlaceholderText:e6,queryAllByPlaceholderText:ZG,getByPlaceholderText:r6,getAllByPlaceholderText:t6,findAllByPlaceholderText:n6,findByPlaceholderText:a6,queryByText:l6,queryAllByText:s6,getByText:c6,getAllByText:u6,findAllByText:f6,findByText:d6,queryByDisplayValue:y6,queryAllByDisplayValue:m6,getByDisplayValue:g6,getAllByDisplayValue:v6,findAllByDisplayValue:b6,findByDisplayValue:E6,queryByAltText:R6,queryAllByAltText:S6,getByAltText:x6,getAllByAltText:C6,findAllByAltText:O6,findByAltText:P6,queryByTitle:$6,queryAllByTitle:M6,getByTitle:L6,getAllByTitle:k6,findAllByTitle:B6,findByTitle:D6,queryByRole:H6,queryAllByRole:U6,getAllByRole:G6,getByRole:W6,findAllByRole:V6,findByRole:z6,queryByTestId:Q6,queryAllByTestId:X6,getByTestId:Z6,getAllByTestId:J6,findAllByTestId:eW,findByTestId:tW});function rW(e,t,r){return t===void 0&&(t=mh),r===void 0&&(r={}),Object.keys(t).reduce((n,a)=>{const o=t[a];return n[a]=o.bind(null,e),n},r)}const sE={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}}},lE={doubleClick:"dblClick"};function fi(e,t){return We().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Xd(e,t,r,n){let{EventType:a="Event",defaultInit:o={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const s={...o,...r},{target:{value:i,files:l,...u}={}}=s;i!==void 0&&nW(t,i),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,u);const c=CS(t),d=c[a]||c.Event;let p;if(typeof d=="function")p=new d(e,s);else{p=c.document.createEvent(a);const{bubbles:h,cancelable:m,detail:w,...E}=s;p.initEvent(e,h,m,w),Object.keys(E).forEach(y=>{p[y]=E[y]})}return["dataTransfer","clipboardData"].forEach(h=>{const m=s[h];typeof m=="object"&&(typeof c.DataTransfer=="function"?Object.defineProperty(p,h,{value:Object.getOwnPropertyNames(m).reduce((w,E)=>(Object.defineProperty(w,E,{value:m[E]}),w),new c.DataTransfer)}):Object.defineProperty(p,h,{value:m}))}),p}Object.keys(sE).forEach(e=>{const{EventType:t,defaultInit:r}=sE[e],n=e.toLowerCase();Xd[e]=(a,o)=>Xd(n,a,o,{EventType:t,defaultInit:r}),fi[e]=(a,o)=>fi(a,Xd[e](a,o))});function nW(e,t){const{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:a}=Object.getOwnPropertyDescriptor(n,"value")||{};if(a&&r!==a)a.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(lE).forEach(e=>{const t=lE[e];fi[e]=function(){return fi[t](...arguments)}});function aW(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
177
- `)}function oW(e){return J4.compressToEncodedURIComponent(aW(e))}function iW(e){return"https://testing-playground.com/#markup="+oW(e)}const sW=(e,t,r)=>Array.isArray(e)?e.forEach(n=>aE(n,t,r)):aE(e,t,r),lW=function(e){if(e===void 0&&(e=dm().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=iW(e.innerHTML);return console.log(`Open this URL in your browser
178
-
179
- `+t),t},uE={debug:sW,logTestingPlaygroundURL:lW};typeof document<"u"&&document.body?rW(document.body,mh,uE):Object.keys(mh).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),uE);const uW=MN.act;function qS(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function an(e){qS().IS_REACT_ACT_ENVIRONMENT=e}function Us(){return qS().IS_REACT_ACT_ENVIRONMENT}function cW(e){return t=>{const r=Us();an(!0);try{let n=!1;const a=e(()=>{const o=t();return o!==null&&typeof o=="object"&&typeof o.then=="function"&&(n=!0),o});if(n){const o=a;return{then:(s,i)=>{o.then(l=>{an(r),s(l)},l=>{an(r),i(l)})}}}else return an(r),a}catch(n){throw an(r),n}}}const yh=cW(uW);Object.keys(fi).forEach(e=>{});function fW(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}bG({unstable_advanceTimersWrapper:e=>yh(e),asyncWrapper:async e=>{const t=Us();an(!1);try{const r=await e();return await new Promise(n=>{setTimeout(()=>{n()},0),fW()&&jest.advanceTimersByTime(0)}),r}finally{an(t)}},eventWrapper:e=>{let t;return yh(()=>{t=e()}),t}});const dW=new Set,cE=[];function fE(){cE.forEach(e=>{let{root:t,container:r}=e;yh(()=>{t.unmount()}),r.parentNode===document.body&&document.body.removeChild(r)}),cE.length=0,dW.clear()}var FE;if((typeof process>"u"||!((FE=process.env)!=null&&FE.RTL_SKIP_AUTO_CLEANUP))&&(typeof afterEach=="function"?afterEach(()=>{fE()}):typeof teardown=="function"&&teardown(()=>{fE()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let e=Us();beforeAll(()=>{e=Us(),an(!0)}),afterAll(()=>{an(e)})}var dE;(function(e){e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio"})(dE||(dE={}));var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});Ia.TEXT_NODE=void 0;Ia.checkContainerType=vW;Ia.getDocument=mW;Ia.getWindowFromNode=yW;Ia.jestFakeTimersAreEnabled=hW;const pW=3;Ia.TEXT_NODE=pW;function hW(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function mW(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function yW(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error(`The given node is not an Element, the node type is: ${typeof e}.`)}function vW(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError(`Expected container to be an Element, a Document or a DocumentFragment but got ${t(e)}.`);function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}const ym=Symbol("Manage ClipboardSub");function FS(e){var t;return!!(!((t=e)===null||t===void 0)&&t[ym])}function gW(e){FS(e.navigator.clipboard)&&e.navigator.clipboard[ym].resetClipboardStub()}function bW(e){FS(e.navigator.clipboard)&&e.navigator.clipboard[ym].detachClipboardStub()}typeof globalThis.afterEach=="function"&&globalThis.afterEach(()=>gW(globalThis.window));typeof globalThis.afterAll=="function"&&globalThis.afterAll(()=>bW(globalThis.window));var pE;(function(e){e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week"})(pE||(pE={}));var hE;(function(e){e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url"})(hE||(hE={}));var mE;(function(e){e["{"]="}",e["["]="]"})(mE||(mE={}));var yE;(function(e){e[e.Trigger=2]="Trigger",e[e.Call=1]="Call"})(yE||(yE={}));var vh;(function(e){e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never"})(vh||(vh={}));var di={};Object.defineProperty(di,"__esModule",{value:!0});var jS=di.eventMap=di.eventAliasMap=void 0;const EW={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}}};jS=di.eventMap=EW;const _W={doubleClick:"dblClick"};di.eventAliasMap=_W;const wW={...jS,click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeInput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}}};Object.fromEntries(Object.keys(wW).map(e=>[e.toLowerCase(),e]));var nr;(function(e){e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD"})(nr||(nr={}));const TW=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:nr.LEFT},{code:"AltRight",key:"Alt",location:nr.RIGHT},{code:"ShiftLeft",key:"Shift",location:nr.LEFT},{code:"ShiftRight",key:"Shift",location:nr.RIGHT},{code:"ControlLeft",key:"Control",location:nr.LEFT},{code:"ControlRight",key:"Control",location:nr.RIGHT},{code:"MetaLeft",key:"Meta",location:nr.LEFT},{code:"MetaRight",key:"Meta",location:nr.RIGHT},{code:"OSLeft",key:"OS",location:nr.LEFT},{code:"OSRight",key:"OS",location:nr.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],SW=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];globalThis.document,vh.EachApiCall;const RW=e=>e.replace(/\s+/g,"").length>0,Qt=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:a=!1,element:o="button",onClick:s=!1,className:i="",disabled:l=!1,screenreaderText:u=!1,children:c=!1,...d})=>{const f=bi(typeof t=="object");if(typeof t=="object"&&typeof f=="number"){const w=Object.assign({},t),E=J0(Object.keys(w));t=Z0(f,E,w)}const h=[];typeof t=="string"&&h.push(t),n&&(h.push("icon"),typeof n=="object"?(h.push(n.icon),n.position?h.push(n.position):h.push("left"),n.hover&&h.push(`hover_${n.hover}`),n.animate&&(h.push("animate"),typeof n.animate=="string"&&h.push(n.animate))):(h.push(n),!n.includes("right")&&!n.includes("left")&&h.push("left"))),r.muted&&h.push("muted"),r.fullWidth&&h.push("full-width");const m={...d,className:we(e,i,h,{"no-text":!c,disabled:l,button:a}),onClick:w=>{(!a||a[0]==="#")&&s&&(w.preventDefault(),w.stopPropagation()),s&&s(w)},disabled:typeof l=="object"&&"isClickable"in l?!l.isClickable:l};return a&&(o="a",m.href=a),Q.createElement(o,m,c||(u?P.jsx(Dt,{showOnFocus:!1,children:u}):null))},Hc=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",a=e.map((o,s)=>n==="p"?P.jsx(Qt,{...o},s):P.jsx("li",{children:P.jsx(Qt,{...o})},s));return Q.createElement(n,{className:we("button-wrapper",t),...r},a)},US=({href:e,children:t,className:r="",onClick:n=()=>{},gtmContext:a,gtmType:o,...s})=>e?P.jsx("a",{href:e,className:we("gtm-trackable",r),onClick:n,"data-gtm-event-context":a,"data-gtm-event-type":o,...s,children:t}):t,vE={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"}},CW=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:a}=e?vE[e]:vE.fallback;return{range:t&&t.length>0?t:n,sizes:r||a}},xW=({format:e,height:t,query:r,width:n})=>{let a=`w=${n}&h=${t}`;return a=e?`${a}&fm=${e}`:a,a=r?`${a}&${r}`:a,a},Qd=({format:e,range:t,url:r,query:n})=>t.map(({height:a,width:o})=>`${r}?${xW({format:e,height:a,query:n,width:o})} ${o}w`).join(", ");const HS=({image:e,className:t,testId:r})=>{const{description:n,height:a,type:o,query:s,url:i,width:l,loading:u,decoding:c,fetchPriority:d}=e,{range:p,sizes:f}=CW(e),h=Qd({format:"avif",query:s,range:p,url:i}),m=Qd({format:"webp",query:s,range:p,url:i}),w=Qd({format:"",query:s,range:p,url:i});return P.jsxs("picture",{className:t,children:[o!=="image/gif"&&P.jsx("source",{type:"image/avif",srcSet:h,sizes:f,"data-testid":"source"}),P.jsx("source",{type:"image/webp",srcSet:m,sizes:f,"data-testid":"source"}),P.jsx("img",{srcSet:w,sizes:f,src:i,alt:n,loading:u||"lazy",decoding:c||"async",fetchpriority:d||"auto",width:l,height:a,"data-testid":r||"image"})]})};const vm=({children:e,className:t="",...r})=>P.jsx("section",{className:we("full-width-section",t),...r,children:e});const OW=({text:e,buttons:t,className:r=""})=>{const n=[];return t.forEach(a=>{n.push({href:a.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":a.eventContext||"Download",target:"_blank",children:a.text})}),P.jsx(vm,{className:we("download-section",r),children:P.jsxs(P.Fragment,{children:[Q.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),P.jsx(Hc,{buttons:n})]})})};const PW=({title:e=!1,logos:t=[],className:r=""})=>{const n=t.length;if(n===0)return null;const a={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return P.jsxs("div",{className:we("logos",r),children:[e&&Q.createElement(a.element,{className:"title"},a.text),P.jsx("ul",{className:we({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:o,nameOfBusiness:s,link:i=!1,description:l=!1},u)=>{if(!o||!o.url)return null;const c=P.jsx("img",{src:o.url,width:o.width||"auto",height:o.height||"auto",alt:s});return P.jsxs("li",{children:[P.jsx("p",{className:"img-wrapper",children:i?P.jsx("a",{href:i,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),l&&P.jsx("small",{children:l})]},window.btoa(`${o.url}_${u}`))})})]})};const AW=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],IW=({content:e,image:t,variant:r="default",spacing:n="normal",cta:a,children:o})=>{const s=["eyebrow","title","text"],i={eyebrow:"small",title:"h1",text:"p"},l={};return s.forEach(u=>{if(!e[u]){l[u]=!1;return}if(typeof e[u]=="object"){l[u]=e[u];const{text:c,element:d}=e[u];if(d&&AW.includes(d.toLowerCase()))return;l[u]={text:c,element:i[u]};return}l[u]={text:e[u],element:i[u]}}),a&&a.link&&a.link[0]==="#"&&(a.props||(a.props={}),a.props.onClick=u=>{u.preventDefault(),u.stopPropagation();const c=document.getElementById(a.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),P.jsx(vm,{className:we("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&l.eyebrow&&l.title}),children:P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"content-wrapper",children:[s.map(u=>{if(l[u]&&typeof l[u]=="object"){const{text:c,element:d=""}=l[u];return Q.createElement(d.toLowerCase(),{key:u,className:u},c)}return null}),o,a&&a.text&&a.link&&P.jsx(Qt,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:a.link,...a.props,children:a.text})]}),t&&P.jsx(HS,{image:{...t,aspect:"banner"}})]})})},NW=Q.memo(IW);const MW=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:a})=>!r&&!n?null:P.jsxs("aside",{className:we("marketing-block",e),children:[r&&P.jsx("p",{className:"title",children:r}),n&&P.jsx("p",{children:n}),t&&P.jsx(Qt,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":"learn-more-click",children:t.text})]}),Hs="https://storage.googleapis.com/apolitical-assets/",$W="200,000+",Ri=Q.createContext(null),kW=({children:e,user:t})=>P.jsx(Ri.Provider,{value:t,children:e}),LW={showThread:!1,showForm:!1},gm=Q.createContext(LW),BW=({children:e})=>{const[t,r]=Q.useState({showThread:!1,showForm:!1});return P.jsx(gm.Provider,{value:{...t,updateConversation:r},children:e})};function gh(){return gh=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},gh.apply(this,arguments)}function DW(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var qW=Q.useLayoutEffect,FW=function(t){var r=Be.useRef(t);return qW(function(){r.current=t}),r},gE=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},jW=function(t,r){var n=Q.useRef();return Q.useCallback(function(a){t.current=a,n.current&&gE(n.current,null),n.current=r,r&&gE(r,a)},[r])},bE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},UW=function(t){Object.keys(bE).forEach(function(r){t.style.setProperty(r,bE[r],"important")})},EE=UW,Lt=null,_E=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function HW(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Lt||(Lt=document.createElement("textarea"),Lt.setAttribute("tabindex","-1"),Lt.setAttribute("aria-hidden","true"),EE(Lt)),Lt.parentNode===null&&document.body.appendChild(Lt);var a=e.paddingSize,o=e.borderSize,s=e.sizingStyle,i=s.boxSizing;Object.keys(s).forEach(function(p){var f=p;Lt.style[f]=s[f]}),EE(Lt),Lt.value=t;var l=_E(Lt,e);Lt.value=t,l=_E(Lt,e),Lt.value="x";var u=Lt.scrollHeight-a,c=u*r;i==="border-box"&&(c=c+a+o),l=Math.max(c,l);var d=u*n;return i==="border-box"&&(d=d+a+o),l=Math.min(d,l),[l,u]}var wE=function(){},GW=function(t,r){return t.reduce(function(n,a){return n[a]=r[a],n},{})},WW=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],VW=!!document.documentElement.currentStyle,zW=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=GW(WW,r),a=n.boxSizing;if(a==="")return null;VW&&a==="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),s=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:s}},YW=zW;function GS(e,t,r){var n=FW(r);Be.useLayoutEffect(function(){var a=function(s){return n.current(s)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var KW=function(t){GS(window,"resize",t)},XW=function(t){GS(document.fonts,"loadingdone",t)},QW=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],JW=function(t,r){var n=t.cacheMeasurements,a=t.maxRows,o=t.minRows,s=t.onChange,i=s===void 0?wE:s,l=t.onHeightChange,u=l===void 0?wE:l,c=DW(t,QW),d=c.value!==void 0,p=Be.useRef(null),f=jW(p,r),h=Be.useRef(0),m=Be.useRef(),w=function(){var T=p.current,R=n&&m.current?m.current:YW(T);if(R){m.current=R;var S=HW(R,T.value||T.placeholder||"x",o,a),O=S[0],N=S[1];h.current!==O&&(h.current=O,T.style.setProperty("height",O+"px","important"),u(O,{rowHeight:N}))}},E=function(T){d||w(),i(T)};return Be.useLayoutEffect(w),KW(w),XW(w),Be.createElement("textarea",gh({},c,{onChange:E,ref:f}))},ZW=Be.forwardRef(JW);const bh=({element:e="p",children:t=null,className:r="",...n})=>Q.createElement(e,{...n,className:we("alert",r),"aria-live":"assertive"},t);const e8=({label:e=!1,className:t="",children:r})=>{const n=Je();return P.jsxs("details",{className:we("collapsible-section",t),children:[P.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),P.jsx("div",{className:"content",children:r})]})},bm=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(e8,{...t})});function ma(){return ma=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},ma.apply(this,arguments)}const t8=["children","options"],TE=["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"}),SE={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},r8=["style","script"],n8=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,a8=/mailto:/i,o8=/\n{2,}$/,WS=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,i8=/^ *> ?/gm,s8=/^ {2,}\n/,l8=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,VS=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,zS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,u8=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,c8=/^(?:\n *)*\n/,f8=/\r\n?/g,d8=/^\[\^([^\]]+)](:.*)\n/,p8=/^\[\^([^\]]+)]/,h8=/\f/g,m8=/^\s*?\[(x|\s)\]/,YS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,KS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,XS=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Eh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,y8=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,QS=/^<!--[\s\S]*?(?:-->)/,v8=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,_h=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,g8=/^\{.*\}$/,b8=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,E8=/^<([^ >]+@[^ >]+)>/,_8=/^<([^ >]+:\/[^ >]+)>/,w8=/-([a-z])?/gi,JS=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,T8=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,S8=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,R8=/^\[([^\]]*)\] ?\[([^\]]*)\]/,C8=/(\[|\])/g,x8=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,O8=/\t/g,P8=/^ *\| */,A8=/(^ *\||\| *$)/g,I8=/ *$/,N8=/^ *:-+: *$/,M8=/^ *:-+ *$/,$8=/^ *-+: *$/,k8=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,L8=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,B8=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,D8=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,q8=/^\\([^0-9A-Za-z\s])/,F8=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,j8=/^\n+/,U8=/^([ \t]*)/,H8=/\\([^\\])/g,RE=/ *\n+$/,G8=/(?:^|\n)( *)$/,Em="(?:\\d+\\.)",_m="(?:[*+-])";function ZS(e){return"( *)("+(e===1?Em:_m)+") +"}const eR=ZS(1),tR=ZS(2);function rR(e){return new RegExp("^"+(e===1?eR:tR))}const W8=rR(1),V8=rR(2);function nR(e){return new RegExp("^"+(e===1?eR:tR)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Em:_m)+" )[^\\n]*)*(\\n|$)","gm")}const aR=nR(1),oR=nR(2);function iR(e){const t=e===1?Em:_m;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const sR=iR(1),lR=iR(2);function CE(e,t){const r=t===1,n=r?sR:lR,a=r?aR:oR,o=r?W8:V8;return{t(s,i,l){const u=G8.exec(l);return u&&(i.o||!i._&&!i.u)?n.exec(s=u[1]+s):null},i:Ie.HIGH,l(s,i,l){const u=r?+s[2]:void 0,c=s[0].replace(o8,`
180
- `).match(a);let d=!1;return{p:c.map(function(p,f){const h=o.exec(p)[0].length,m=new RegExp("^ {1,"+h+"}","gm"),w=p.replace(m,"").replace(o,""),E=f===c.length-1,y=w.indexOf(`
181
-
182
- `)!==-1||E&&d;d=y;const T=l._,R=l.o;let S;l.o=!0,y?(l._=!1,S=w.replace(RE,`
183
-
184
- `)):(l._=!0,S=w.replace(RE,""));const O=i(S,l);return l._=T,l.o=R,O}),m:r,g:u}},h:(s,i,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(u,c){return e("li",{key:c},i(u,l))}))}}const z8=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Y8=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,uR=[WS,VS,zS,YS,XS,KS,QS,JS,aR,sR,oR,lR],K8=[...uR,/^[^\n]+(?: \n|\n{2,})/,Eh,_h];function X8(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 Q8(e){return $8.test(e)?"right":N8.test(e)?"center":M8.test(e)?"left":null}function xE(e,t,r){const n=r.$;r.$=!0;const a=t(e.trim(),r);r.$=n;let o=[[]];return a.forEach(function(s,i){s.type==="tableSeparator"?i!==0&&i!==a.length-1&&o.push([]):(s.type!=="text"||a[i+1]!=null&&a[i+1].type!=="tableSeparator"||(s.v=s.v.replace(I8,"")),o[o.length-1].push(s))}),o}function J8(e,t,r){r._=!0;const n=xE(e[1],t,r),a=e[2].replace(A8,"").split("|").map(Q8),o=function(s,i,l){return s.trim().split(`
185
- `).map(function(u){return xE(u,i,l)})}(e[3],t,r);return r._=!1,{S:a,A:o,L:n,type:"table"}}function OE(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Rn(e){return function(t,r){return r._?e.exec(t):null}}function Cn(e){return function(t,r){return r._||r.u?e.exec(t):null}}function rn(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Xo(e){return function(t){return e.exec(t)}}function Z8(e,t,r){if(t._||t.u||r&&!r.endsWith(`
186
- `))return null;let n="";e.split(`
187
- `).every(o=>!uR.some(s=>s.test(o))&&(n+=o+`
188
- `,o.trim()));const a=n.trimEnd();return a==""?null:[n,a]}function Va(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 PE(e){return e.replace(H8,"$1")}function ys(e,t,r){const n=r._||!1,a=r.u||!1;r._=!0,r.u=!0;const o=e(t,r);return r._=n,r.u=a,o}function eV(e,t,r){const n=r._||!1,a=r.u||!1;r._=!1,r.u=!0;const o=e(t,r);return r._=n,r.u=a,o}function tV(e,t,r){return r._=!1,e(t,r)}const Jd=(e,t,r)=>({v:ys(t,e[1],r)});function Zd(){return{}}function ep(){return null}function rV(...e){return e.filter(Boolean).join(" ")}function tp(e,t,r){let n=e;const a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}var Ie;function nV(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||X8,t.namedCodesToUnicode=t.namedCodesToUnicode?ma({},SE,t.namedCodesToUnicode):SE;const r=t.createElement||Be.createElement;function n(f,h,...m){const w=tp(t.overrides,`${f}.props`,{});return r(function(E,y){const T=tp(y,E);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:tp(y,`${E}.component`,E):E}(f,t.overrides),ma({},h,w,{className:rV(h==null?void 0:h.className,w.className)||void 0}),...m)}function a(f){let h=!1;t.forceInline?h=!0:t.forceBlock||(h=x8.test(f)===!1);const m=c(u(h?f:`${f.trimEnd().replace(j8,"")}
189
-
190
- `,{_:h}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const w=t.wrapper||(h?"span":"div");let E;if(m.length>1||t.forceWrapper)E=m;else{if(m.length===1)return E=m[0],typeof E=="string"?n("span",{key:"outer"},E):E;E=null}return Be.createElement(w,{key:"outer"},E)}function o(f){const h=f.match(n8);return h?h.reduce(function(m,w,E){const y=w.indexOf("=");if(y!==-1){const T=function(N){return N.indexOf("-")!==-1&&N.match(v8)===null&&(N=N.replace(w8,function(M,H){return H.toUpperCase()})),N}(w.slice(0,y)).trim(),R=function(N){const M=N[0];return(M==='"'||M==="'")&&N.length>=2&&N[N.length-1]===M?N.slice(1,-1):N}(w.slice(y+1).trim()),S=TE[T]||T,O=m[S]=function(N,M){return N==="style"?M.split(/;\s?/).reduce(function(H,G){const W=G.slice(0,G.indexOf(":"));return H[W.replace(/(-[a-z])/g,U=>U[1].toUpperCase())]=G.slice(W.length+1).trim(),H},{}):N==="href"?Va(M):(M.match(g8)&&(M=M.slice(1,M.length-1)),M==="true"||M!=="false"&&M)}(T,R);typeof O=="string"&&(Eh.test(O)||_h.test(O))&&(m[S]=Be.cloneElement(a(O.trim()),{key:E}))}else w!=="style"&&(m[TE[w]||w]=!0);return m},{}):null}const s=[],i={},l={blockQuote:{t:rn(WS),i:Ie.HIGH,l:(f,h,m)=>({v:h(f[0].replace(i8,""),m)}),h:(f,h,m)=>n("blockquote",{key:m.k},h(f.v,m))},breakLine:{t:Xo(s8),i:Ie.HIGH,l:Zd,h:(f,h,m)=>n("br",{key:m.k})},breakThematic:{t:rn(l8),i:Ie.HIGH,l:Zd,h:(f,h,m)=>n("hr",{key:m.k})},codeBlock:{t:rn(zS),i:Ie.MAX,l:f=>({v:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(f,h,m)=>n("pre",{key:m.k},n("code",ma({},f.O,{className:f.M?`lang-${f.M}`:""}),f.v))},codeFenced:{t:rn(VS),i:Ie.MAX,l:f=>({O:o(f[3]||""),v:f[4],M:f[2]||void 0,type:"codeBlock"})},codeInline:{t:Cn(u8),i:Ie.LOW,l:f=>({v:f[2]}),h:(f,h,m)=>n("code",{key:m.k},f.v)},footnote:{t:rn(d8),i:Ie.MAX,l:f=>(s.push({I:f[2],j:f[1]}),{}),h:ep},footnoteReference:{t:Rn(p8),i:Ie.HIGH,l:f=>({v:f[1],B:`#${t.slugify(f[1])}`}),h:(f,h,m)=>n("a",{key:m.k,href:Va(f.B)},n("sup",{key:m.k},f.v))},gfmTask:{t:Rn(m8),i:Ie.HIGH,l:f=>({R:f[1].toLowerCase()==="x"}),h:(f,h,m)=>n("input",{checked:f.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:rn(t.enforceAtxHeadings?KS:YS),i:Ie.HIGH,l:(f,h,m)=>({v:ys(h,f[2],m),T:t.slugify(f[2]),C:f[1].length}),h:(f,h,m)=>n(`h${f.C}`,{id:f.T,key:m.k},h(f.v,m))},headingSetext:{t:rn(XS),i:Ie.MAX,l:(f,h,m)=>({v:ys(h,f[1],m),C:f[2]==="="?1:2,type:"heading"})},htmlComment:{t:Xo(QS),i:Ie.HIGH,l:()=>({}),h:ep},image:{t:Cn(Y8),i:Ie.HIGH,l:f=>({D:f[1],B:PE(f[2]),F:f[3]}),h:(f,h,m)=>n("img",{key:m.k,alt:f.D||void 0,title:f.F||void 0,src:Va(f.B)})},link:{t:Rn(z8),i:Ie.LOW,l:(f,h,m)=>({v:eV(h,f[1],m),B:PE(f[2]),F:f[3]}),h:(f,h,m)=>n("a",{key:m.k,href:Va(f.B),title:f.F},h(f.v,m))},linkAngleBraceStyleDetector:{t:Rn(_8),i:Ie.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],type:"link"})},linkBareUrlDetector:{t:(f,h)=>h.N?null:Rn(b8)(f,h),i:Ie.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Rn(E8),i:Ie.MAX,l(f){let h=f[1],m=f[1];return a8.test(m)||(m="mailto:"+m),{v:[{v:h.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:CE(n,1),unorderedList:CE(n,2),newlineCoalescer:{t:rn(c8),i:Ie.LOW,l:Zd,h:()=>`
191
- `},paragraph:{t:Z8,i:Ie.LOW,l:Jd,h:(f,h,m)=>n("p",{key:m.k},h(f.v,m))},ref:{t:Rn(T8),i:Ie.MAX,l:f=>(i[f[1]]={B:f[2],F:f[4]},{}),h:ep},refImage:{t:Cn(S8),i:Ie.MAX,l:f=>({D:f[1]||void 0,P:f[2]}),h:(f,h,m)=>n("img",{key:m.k,alt:f.D,src:Va(i[f.P].B),title:i[f.P].F})},refLink:{t:Rn(R8),i:Ie.MAX,l:(f,h,m)=>({v:h(f[1],m),Z:h(f[0].replace(C8,"\\$1"),m),P:f[2]}),h:(f,h,m)=>i[f.P]?n("a",{key:m.k,href:Va(i[f.P].B),title:i[f.P].F},h(f.v,m)):n("span",{key:m.k},h(f.Z,m))},table:{t:rn(JS),i:Ie.HIGH,l:J8,h:(f,h,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,f.L.map(function(w,E){return n("th",{key:E,style:OE(f,E)},h(w,m))}))),n("tbody",null,f.A.map(function(w,E){return n("tr",{key:E},w.map(function(y,T){return n("td",{key:T,style:OE(f,T)},h(y,m))}))})))},tableSeparator:{t:function(f,h){return h.$?(h._=!0,P8.exec(f)):null},i:Ie.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Xo(F8),i:Ie.MIN,l:f=>({v:f[0].replace(y8,(h,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:h)}),h:f=>f.v},textBolded:{t:Cn(k8),i:Ie.MED,l:(f,h,m)=>({v:h(f[2],m)}),h:(f,h,m)=>n("strong",{key:m.k},h(f.v,m))},textEmphasized:{t:Cn(L8),i:Ie.LOW,l:(f,h,m)=>({v:h(f[2],m)}),h:(f,h,m)=>n("em",{key:m.k},h(f.v,m))},textEscaped:{t:Cn(q8),i:Ie.HIGH,l:f=>({v:f[1],type:"text"})},textMarked:{t:Cn(B8),i:Ie.LOW,l:Jd,h:(f,h,m)=>n("mark",{key:m.k},h(f.v,m))},textStrikethroughed:{t:Cn(D8),i:Ie.LOW,l:Jd,h:(f,h,m)=>n("del",{key:m.k},h(f.v,m))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:Xo(Eh),i:Ie.HIGH,l(f,h,m){const[,w]=f[3].match(U8),E=new RegExp(`^${w}`,"gm"),y=f[3].replace(E,""),T=(R=y,K8.some(M=>M.test(R))?tV:ys);var R;const S=f[1].toLowerCase(),O=r8.indexOf(S)!==-1;m.N=m.N||S==="a";const N=O?f[3]:T(h,y,m);return m.N=!1,{O:o(f[2]),v:N,G:O,H:O?S:f[1]}},h:(f,h,m)=>n(f.H,ma({key:m.k},f.O),f.G?f.v:h(f.v,m))},l.htmlSelfClosing={t:Xo(_h),i:Ie.HIGH,l:f=>({O:o(f[2]||""),H:f[1]}),h:(f,h,m)=>n(f.H,ma({},f.O,{key:m.k}))});const u=function(f){let h=Object.keys(f);function m(w,E){let y=[],T="";for(;w;){let R=0;for(;R<h.length;){const S=h[R],O=f[S],N=O.t(w,E,T);if(N){const M=N[0];w=w.substring(M.length);const H=O.l(N,m,E);H.type==null&&(H.type=S),y.push(H),T=M;break}R++}}return y}return h.sort(function(w,E){let y=f[w].i,T=f[E].i;return y!==T?y-T:w<E?-1:1}),function(w,E){return m(function(y){return y.replace(f8,`
192
- `).replace(h8,"").replace(O8," ")}(w),E)}}(l),c=(d=function(f){return function(h,m,w){return f[h.type].h(h,m,w)}}(l),function f(h,m={}){if(Array.isArray(h)){const w=m.k,E=[];let y=!1;for(let T=0;T<h.length;T++){m.k=T;const R=f(h[T],m),S=typeof R=="string";S&&y?E[E.length-1]+=R:R!==null&&E.push(R),y=S}return m.k=w,E}return d(h,f,m)});var d;const p=a(e);return s.length?n("div",null,p,n("footer",{key:"footer"},s.map(function(f){return n("div",{id:t.slugify(f.j),key:f.j},f.j,c(u(f.I,{_:!0})))}))):p}(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"})(Ie||(Ie={}));const Gc=e=>{let{children:t,options:r}=e,n=function(a,o){if(a==null)return{};var s,i,l={},u=Object.keys(a);for(i=0;i<u.length;i++)o.indexOf(s=u[i])>=0||(l[s]=a[s]);return l}(e,t8);return Be.cloneElement(nV(t,r),n)};const un=({variant:e="primary",className:t="",children:r,...n})=>P.jsx("div",{className:we("highlighted-text-box",e,t),...n,children:r});const cR=({variant:e="empty",text:t=!1,button:r=!1,className:n=""})=>{let a=r&&!!Object.keys(r).length;const o=typeof r=="object"&&"breakpoints"in r,s=bi(o);if(o&&typeof r=="object"&&typeof s=="number"){const c=Object.assign({},r.breakpoints),d=J0(Object.keys(c));a=Z0(s,d,c)}const{breakpoints:i,text:l,...u}=r;return P.jsx(un,{variant:"subtle",className:we("empty-state-box",e,n),children:P.jsxs(P.Fragment,{children:[t&&P.jsx(Gc,{options:{forceBlock:!0},children:t}),a&&typeof r=="object"&&P.jsx(Qt,{...u,variant:r.variant?r.variant:"secondary",children:l})]})})};const wh=({children:e,...t})=>P.jsx("p",{...t,children:e}),fR={q:wh,blockquote:wh};for(let e=1;e<=6;e++)fR[`h${e}`]={component:wh,props:{className:"title"}};const dR=({type:e="default",className:t="",heading:r=!1,children:n})=>P.jsxs("div",{className:we("helper-text-box text-small",e,t),children:[r&&P.jsx("p",{className:"title",children:r}),typeof n=="string"?P.jsx(Gc,{options:{wrapper:Q.Fragment,forceBlock:!0,overrides:fR},children:n}):P.jsx("p",{children:n})]});const aV=({className:e="",show:t=!1,hide:r=!1,text:n,children:a})=>{const o=Je(),s=Q.useRef(null),[i,l]=Q.useState(""),[u,c]=Q.useState("closed");Q.useEffect(()=>{const f=s.current;if(f)return f.addEventListener("transitionend",d),()=>{f.removeEventListener("transitionend",d)}},[]),Q.useEffect(()=>{if(!n||typeof n!="string")return;const f=n.split(`
193
- `);l(f.length<3?`${n.substring(0,400)}...`:f.slice(0,3).join(`
194
- `))},[n]),Q.useEffect(()=>{u==="ready-to-close"&&c("closing")},[u]);const d=({propertyName:f})=>{f==="max-height"&&c(h=>h==="opening"?"open":h==="closing"?"closed":h)};if(!n)return null;const p=["opening","open"].includes(u);return P.jsxs(un,{variant:"subtle",className:we("hide-show-text-box",e),children:[P.jsxs("div",{ref:s,className:we("content",u),children:[P.jsx(Gc,{options:{forceBlock:!0},children:u==="closed"?i:n}),u!=="closed"&&a]}),P.jsx("p",{className:"cta",children:P.jsx(Qt,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:we({"rotate-180":p}),onClick:()=>{c(p?"ready-to-close":"opening")},children:p?r||o.formatMessage({id:"hideShowTextBox_hide"}):t||o.formatMessage({id:"hideShowTextBox_show"})})})]})},oV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(aV,{...t})}),iV=()=>Q.Fragment,sV=({children:e})=>P.jsx(un,{variant:"secondary",children:e}),lV=["span","strong","h1","h2","h3","h4","h5","h6","p"],uV=({children:e})=>{const t=Je();if(!e)return null;let r=t.formatMessage({id:"markdown_collapsibleSection_summary"});const n=[];for(const o of Q.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number"))if(Q.isValidElement(o)&&o.type==="summary"){if(o.props&&o.props.children){for(const s of Q.Children.toArray(o.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&Q.isValidElement(s)){const i=s.type;if(lV.includes(i)){for(r=s.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 a=r?r.toString():"";return P.jsx(bm,{label:a,className:["Sources","Resources"].includes(a)?"discrete-links":"",children:n.map(o=>o)})},cV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(uV,{...t})}),fV=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return P.jsx(un,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return P.jsx(un,{variant:"primary",children:e});case"pink-textbox":return P.jsx(un,{variant:"tertiary",children:e});default:return P.jsx("div",{...t,children:e})}return P.jsx("div",{...t,children:e})},dV=e=>{const t=Je(),r=Date.now().toString();let n="default";const a=e.src;return a.includes("youtube")||a.includes("vimeo")?n="video":a.includes("riddle")||a.includes("sli.do")?n="poll":a.includes("padlet")&&(n="padlet"),P.jsxs(P.Fragment,{children:[P.jsx(Dt,{children:P.jsx("a",{href:`#content-after-iframe-${r}`,children:t.formatMessage({id:`markdown_skip${n==="default"?"":`_${n}`}`})})}),P.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${n==="default"?"":`_${n}`}`})}),P.jsx("span",{id:`content-after-iframe-${r}`,tabIndex:-1})]})},pV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(dV,{...t})}),AE=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},hV=({children:e,...t})=>{let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let n=e,a=!1;for(const o of Q.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number")&&Q.isValidElement(o)){const s=o.type;if(["button","center","span","strong"].includes(s)&&o.props&&o.props.children&&o.props.children[0])for((s==="button"||AE(o.props.children[0])==="button")&&(a=!0),n=o.props.children[0];n&&typeof n!="string"&&!(typeof n=="boolean"||typeof n=="number"||!Q.isValidElement(n));)if(n.props&&n.props.children&&n.props.children[0])n=n.props.children[0],n&&AE(n)==="button"&&(a=!0);else break}return a?(r={...r,className:"button primary medium"},P.jsx("p",{className:"center",children:P.jsx(Qt,{variant:"primary",size:"medium",...r,children:n})})):P.jsx("a",{...r,children:n})};const pR=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:Q.Fragment,forceBlock:!0,overrides:{a:hV,CollapsibleSection:bm,TextBox:un,CaseStudy:sV,style:iV,details:cV,div:fV,iframe:pV}};return P.jsx("div",{className:we("markdown-text",e),children:P.jsx(Gc,{options:{...n,...t},children:r})})};const mV=({className:e="",children:t})=>P.jsx("span",{className:we("pill",e),children:t});const yV=({progress:e=0,text:t=!1,className:r=""})=>{const n=Je(),a=e>75?100:e>50?75:e>25?50:e>5?25:0,o={"--progress":`${e}%`};return P.jsx("span",{className:we(`progress-bar section-${a}`,r),style:o,children:P.jsx(Dt,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},vV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(yV,{...t})}),hR=Q.memo(vV);const rp="loadingBlock_",gV=({progress:e=0,steps:t=!1,className:r=""})=>{const n=Je();t||(t={0:{text:n.formatMessage({id:`${rp}loading`})},75:{text:n.formatMessage({id:`${rp}almostDone`})},100:{text:n.formatMessage({id:`${rp}complete`})}});let a=null;const o=Object.keys(t);for(let i=0;i<o.length&&!(e<parseInt(o[i]));i++)a=o[i];const s=a&&t[a].icon?{"--icon":`url(${Hs}icons/${t[a].icon}.svg)`}:{};return P.jsxs(un,{className:we("loading-block",r,{"has-icon":a&&t[a].icon}),variant:"subtle",style:s,children:[a&&P.jsx("span",{className:"step",children:t[a].text}),P.jsx(hR,{progress:e})]})},bV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(gV,{...t})}),EV=Q.memo(bV);const Un=({element:e="div",className:t="",...r})=>P.jsx(Rh,{element:e,className:we("loading-placeholder",t),...r});const Th={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"]},mR=(e,t)=>e in Th?P.jsx("div",{className:e,children:Th[e].map((r,n)=>mR(r,n))},t):P.jsx(Un,{className:e},t),yR=({layout:e="overview-page"})=>P.jsx("div",{className:we("loading-state",e),children:Th[e].map((t,r)=>mR(t,r))});var vR={exports:{}};(function(e){(function(t,r){var n="…",a=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function o(i,l,u){return u.length===i.length||!l.ellipsis||(u+=l.ellipsis),u}function s(i,l,u){var c="",d=!0,p=l,f,h;if(u=u||{},u.ellipsis=typeof u.ellipsis>"u"?n:u.ellipsis,!i||i.length===0)return"";for(d=!0;d;){if(a.lastIndex=c.length,d=a.exec(i),!d||d.index-c.length>=p||a.lastIndex>=l+3e3)return c+=i.substring(c.length,l),o(i,u,c);if(f=d[0],h=d.index,c+=i.substring(c.length,h+f.length),p-=h+f.length,p<=0)break}return o(i,u,c)}e.exports?e.exports=s:t.truncate=s})(String)})(vR);var _V=vR.exports;const gR=wr(_V),bR=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):""},ts=["#5AB6A3","#A2D7AF","#806056","#3962B3"],wV=e=>{const t=Math.ceil(26/ts.length),r=bR(e).toLowerCase();if(r==="")return ts[0];const n=r.charCodeAt(0)-96;for(let a=0;a<ts.length;a++)if(n<=t*(a+1))return ts[a]};const IE=256,Wc=({className:e="",src:t="",name:r,alt:n,width:a=IE,height:o=IE,...s})=>{const[i,l]=Q.useState(!1),u=Q.useRef(null);return Q.useEffect(()=>{const c=u.current;if(!c)return;const d=c.getContext("2d");if(!d)return;const p=a,f=o;typeof window<"u"&&window.devicePixelRatio&&(c.width=p*window.devicePixelRatio,c.height=f*window.devicePixelRatio,d.scale(window.devicePixelRatio,window.devicePixelRatio)),d.fillStyle=wV(r),d.fillRect(0,0,p,f),d.font=`${p/3}px Arial`,d.textAlign="center",d.fillStyle="white",d.fillText(bR(r),p/2,f/1.6)},[r]),P.jsxs("figure",{className:we("profile-picture",e,{error:i}),...s,children:[t!==""&&!i&&P.jsx("img",{src:t,alt:n||r,onError:()=>{l(!0)},width:a,height:o}),(t===""||i)&&P.jsx("canvas",{ref:u})]})},wm=e=>e==="apolitical"?{image:`${Hs}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Hs}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id||e.slug}`,image:e.image&&e.image.thumbnail},TV=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const a=e!=="",o=t!=="",s=r!=="";if(!a&&!o&&!s)return"";const i=`${e}${a&&o?` — ${t}`:t}`;let l=`${i}${(a||o)&&s?`, ${r}`:r}`;return l.length>n&&(l=i),l.length>n&&(l=gR(l,n)),l};const SV=({member:e="community",additionalContent:t=!1,gtmContext:r="member",gtmType:n="member-click",className:a=""})=>{const o=Je(),s=wm(e);s.name||(s.name=o.formatMessage({id:`member_${typeof e=="string"?e:"community"}`}));const{name:i,url:l,image:u}=s,c=TV(s),d=t&&t.createdAt?oI(t.createdAt):!1;return P.jsx("div",{className:we("member text-medium",a),children:P.jsxs(US,{href:l,gtmType:n,gtmContext:r,children:[P.jsx(Wc,{name:i,src:u}),P.jsxs("p",{className:"details",children:[P.jsx("strong",{children:i}),t&&P.jsxs("span",{className:"additional-content",children:[t.createdAt&&d&&P.jsx("span",{className:"date",title:pg(t&&t.createdAt),"aria-label":pg(t&&t.createdAt),children:o.formatMessage({id:`dates_${d.path}`},{number:d.number})}),t.didEdit&&P.jsx("em",{children:o.formatMessage({id:"discussion_edited"})})]}),c&&P.jsx("small",{children:c})]})]})})},Tm=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(SV,{...t})});const NE={small:24,medium:48},RV=({element:e="div",contributors:t=[],styling:{showText:r,size:n,showGap:a,showPlaceholders:o}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:i=""})=>{const l=Je();return t.length===0?null:Q.createElement(e,{className:we("contributors",i,n,{"has-gap":a}),children:P.jsxs(P.Fragment,{children:[P.jsx("ul",{children:t.map((u,c)=>{let d,p="";if(c<s){const{name:f="",image:h=""}=wm(u);if(o)return P.jsx(Un,{element:"li",className:"contributor"},c);d=P.jsx(Wc,{name:f,src:h,width:NE[n||"medium"],height:NE[n||"medium"]})}else c===s&&(d=P.jsxs("small",{children:["+",t.length-s]}),p="number-left");return d?P.jsx("li",{className:we("contributor",p),children:d},c):null})}),r&&P.jsx("span",{className:"label",children:typeof r=="string"?r:t.length===1?typeof t[0]=="string"?l.formatMessage({id:`member_${t[0]}`}):gR(t[0].name||"",20):null})]})})},CV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(RV,{...t})});let rs=null;const Xt="discussion_form_",xV=({content:e={type:"response",slugs:{}},meta:t={isLoading:!1,isInWrapper:!1,isEditing:!1},inputRef:r,maxLength:n=5e4,minRows:a=4,forceShow:o={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:i="DiscussionForm"})=>{var M,H;const l=Je(),u=Q.useContext(Ri),[c,d]=Q.useState(t.isEditing&&t.isEditing.text||""),[p,f]=Q.useState(o.error||!1),[h,m]=Q.useState(!1),w=Q.useRef(null);if(r||(r=w),t.isLoading)return P.jsx(Un,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const E=G=>{const W=G.target.value;d(W);let U;!u||!u.id?U=wn(l.formatMessage,`${Xt}error_loggedOut`,e.type,"action"):W.length>=n&&(U=`${Xt}error_tooLong`),U?f(U):p&&f(!1)};let y=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const G=e.type==="response"?((M=e.slugs)==null?void 0:M.question)||"":((H=e.slugs)==null?void 0:H.answer)||"";G&&(y=`${y}-${G.slice(-15)}`)}const T=async G=>{var U;if(G.preventDefault(),G.stopPropagation(),S)return;rs&&clearTimeout(rs),m("submitting");const W=window.location.pathname;try{let j;switch(e.type){case"post":j=await s.create({content:c});break;case"question":j=await s.create({title:c,authorId:u&&u.id,...(U=s.props)==null?void 0:U.create});break;case"response":j=await s.create({question:e.slugs.question},{body:c,authorId:u&&u.id,contentPath:W});break;case"reply":j=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:c,authorId:u&&u.id,contentPath:W});break;default:break}await iI(1e3),s.callback&&await s.callback(j),rs=setTimeout(()=>{d(""),m("submitted"),R()},500)}catch(j){const Z=j;let ee=`${Xt}error`;Z.message.includes("entry already exists")&&(ee=wn(l.formatMessage,`${Xt}error_alreadyExists`,e.type,"action")),Z.message.includes("429")?ee=wn(l.formatMessage,`${Xt}error_tooMany`,e.type,"action"):Z.message.includes("400")&&(ee=`${Xt}error`),f(ee),R()}},R=()=>{rs=setTimeout(()=>{f(!1),m(!1)},5e3)},S=!c||!RW(c),O=h==="submitting",N=[];return(t.isEditing&&!O||o.cancel)&&N.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":i,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!o.cancel&&(!u||!u.id||!c),children:l.formatMessage({id:`${Xt}cancel`})}),N.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:G=>{if(t.isEditing){m("submitting"),s.handleSaveEdit&&s.handleSaveEdit(w.current&&"value"in w.current?w.current.value:"");return}T(G)},className:"gtm-trackable","data-gtm-event-context":i,"data-gtm-event-type":`${t.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!u||!u.id||S||O||t.isEditing&&c===t.isEditing.text,children:l.formatMessage({id:`${Xt}${O?t.isEditing?"saving":"posting":t.isEditing?"save":"post"}`})}),P.jsxs("form",{id:y,className:we("discussion-card discussion-form",{"no-styling":t.isInWrapper&&t.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[!t.isEditing&&["question"].includes(e.type)&&P.jsx("h2",{children:wn(l.formatMessage,`${Xt}title`,e.type,"action")}),P.jsx(Tm,{member:u||"community",gtmContext:i,gtmType:"profile-click"}),P.jsx(Dt,{element:"label",showOnFocus:!1,htmlFor:`${y}-input`,children:wn(l.formatMessage,`${Xt}label`,e.type,"action")}),P.jsx(ZW,{ref:r,id:`${y}-input`,name:e.type,placeholder:wn(l.formatMessage,`${Xt}placeholder`,e.type,"action"),onChange:E,value:c,maxLength:n,"aria-invalid":!!p,"aria-errormessage":"error-message",minRows:a,autoFocus:!!t.isEditing}),P.jsx("small",{children:wn(l.formatMessage,`${Xt}explainer`,e.type,"action",{a:G=>P.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",className:"gtm-trackable","data-gtm-event-context":i,"data-gtm-event-type":"community-guidelines-link",children:G})})}),h==="submitted"&&P.jsx(bh,{className:"success","data-testid":"success",children:wn(l.formatMessage,`${Xt}success`,e.type,"action")}),p&&P.jsx(bh,{id:"error-message",className:"error","data-testid":"error",children:o.error?o.error:typeof p=="string"?p.includes(" ")?p:l.formatMessage({id:p},{action:l.formatMessage({id:`discussion_action_${e.type}`}),maxLength:n}):p}),P.jsx(Hc,{buttons:N})]})},ER=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(xV,{...t})}),OV=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}});let ri=!1;const np=()=>{ri!==!1&&(clearTimeout(ri),ri=!1)},PV=({element:e="p",likes:t=0,isShort:r=!0,userLiked:n=!1,content:a={type:"reply",slugs:{}},canLike:o=!0,createLike:s=()=>{},deleteLike:i=()=>{}})=>{const l=Je();Q.useEffect(()=>{p(n)},[n]);const[u,c]=Q.useState(t),[d,p]=Q.useState(n),[f,h]=Q.useState(!1),m=window.location.pathname,w=y=>{if(y.preventDefault(),y.stopPropagation(),ri)return np(),!1;if(np(),f||!o)return!1;ri=setTimeout(E,350)},E=async()=>{if(np(),f||!o)return!1;let y=d?u-1:u+1;y<0&&(y=0),h(!0),c(y),p(!d);try{if(a&&a.slugs){const T=OV(a.slugs);d?await i(T):await s(T,{contentPath:m})}}catch{c(t),p(n)}finally{h(!1)}};return Q.createElement(e,{className:we("likes-wrapper text-medium",{"show-spinner":f,"is-liked":d,disabled:!o}),onClick:w,children:P.jsxs(P.Fragment,{children:[P.jsx(Qt,{variant:"tertiary",size:"medium",icon:{icon:d?"heart":"heart_empty",animate:"bounce"},className:we({"do-animation":d&&!n}),screenreaderText:o?l.formatMessage({id:`discussion_${a.type}_likes_${d?"unlike":"like"}`}):!1,onClick:w,disabled:!o,"aria-hidden":!o,"data-gtm-event-context":"Likes","data-gtm-event-type":`like-${a.type}-click`}),P.jsx("span",{className:"number-of-likes","data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${r?"_short":""}`},{number:u})})]})})},_R=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(PV,{...t})});var Gs={exports:{}};Gs.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,i="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",w="[object Number]",E="[object Null]",y="[object Object]",T="[object Promise]",R="[object Proxy]",S="[object RegExp]",O="[object Set]",N="[object String]",M="[object Symbol]",H="[object Undefined]",G="[object WeakMap]",W="[object ArrayBuffer]",U="[object DataView]",j="[object Float32Array]",Z="[object Float64Array]",ee="[object Int8Array]",L="[object Int16Array]",K="[object Int32Array]",re="[object Uint8Array]",ge="[object Uint8ClampedArray]",ne="[object Uint16Array]",oe="[object Uint32Array]",ve=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,ze=/^(?:0|[1-9]\d*)$/,te={};te[j]=te[Z]=te[ee]=te[L]=te[K]=te[re]=te[ge]=te[ne]=te[oe]=!0,te[i]=te[l]=te[W]=te[c]=te[U]=te[d]=te[p]=te[f]=te[m]=te[w]=te[y]=te[S]=te[O]=te[N]=te[G]=!1;var ue=typeof be=="object"&&be&&be.Object===Object&&be,Me=typeof self=="object"&&self&&self.Object===Object&&self,xe=ue||Me||Function("return this")(),ft=t&&!t.nodeType&&t,pt=ft&&!0&&e&&!e.nodeType&&e,fe=pt&&pt.exports===ft,le=fe&&ue.process,Ge=function(){try{return le&&le.binding&&le.binding("util")}catch{}}(),$e=Ge&&Ge.isTypedArray;function gt(g,x){for(var k=-1,z=g==null?0:g.length,Te=0,ye=[];++k<z;){var Ce=g[k];x(Ce,k,g)&&(ye[Te++]=Ce)}return ye}function ht(g,x){for(var k=-1,z=x.length,Te=g.length;++k<z;)g[Te+k]=x[k];return g}function bt(g,x){for(var k=-1,z=g==null?0:g.length;++k<z;)if(x(g[k],k,g))return!0;return!1}function tt(g,x){for(var k=-1,z=Array(g);++k<g;)z[k]=x(k);return z}function Ft(g){return function(x){return g(x)}}function At(g,x){return g.has(x)}function Ct(g,x){return g==null?void 0:g[x]}function Ze(g){var x=-1,k=Array(g.size);return g.forEach(function(z,Te){k[++x]=[Te,z]}),k}function It(g,x){return function(k){return g(x(k))}}function dt(g){var x=-1,k=Array(g.size);return g.forEach(function(z){k[++x]=z}),k}var it=Array.prototype,Wt=Function.prototype,C=Object.prototype,v=xe["__core-js_shared__"],b=Wt.toString,_=C.hasOwnProperty,A=function(){var g=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),I=C.toString,F=RegExp("^"+b.call(_).replace(ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=fe?xe.Buffer:void 0,de=xe.Symbol,ce=xe.Uint8Array,he=C.propertyIsEnumerable,_e=it.splice,Xe=de?de.toStringTag:void 0,Jt=Object.getOwnPropertySymbols,Ur=ie?ie.isBuffer:void 0,jt=It(Object.keys,Object),Hr=dr(xe,"DataView"),Vt=dr(xe,"Map"),Sr=dr(xe,"Promise"),Zt=dr(xe,"Set"),Rr=dr(xe,"WeakMap"),er=dr(Object,"create"),Gr=xt(Hr),zt=xt(Vt),dn=xt(Sr),Vn=xt(Zt),zn=xt(Rr),pn=de?de.prototype:void 0,Cr=pn?pn.valueOf:void 0;function rt(g){var x=-1,k=g==null?0:g.length;for(this.clear();++x<k;){var z=g[x];this.set(z[0],z[1])}}function Wr(){this.__data__=er?er(null):{},this.size=0}function Vr(g){var x=this.has(g)&&delete this.__data__[g];return this.size-=x?1:0,x}function ur(g){var x=this.__data__;if(er){var k=x[g];return k===n?void 0:k}return _.call(x,g)?x[g]:void 0}function zr(g){var x=this.__data__;return er?x[g]!==void 0:_.call(x,g)}function Yn(g,x){var k=this.__data__;return this.size+=this.has(g)?0:1,k[g]=er&&x===void 0?n:x,this}rt.prototype.clear=Wr,rt.prototype.delete=Vr,rt.prototype.get=ur,rt.prototype.has=zr,rt.prototype.set=Yn;function st(g){var x=-1,k=g==null?0:g.length;for(this.clear();++x<k;){var z=g[x];this.set(z[0],z[1])}}function Kn(){this.__data__=[],this.size=0}function Xn(g){var x=this.__data__,k=tr(x,g);if(k<0)return!1;var z=x.length-1;return k==z?x.pop():_e.call(x,k,1),--this.size,!0}function Qn(g){var x=this.__data__,k=tr(x,g);return k<0?void 0:x[k][1]}function Jn(g){return tr(this.__data__,g)>-1}function Yr(g,x){var k=this.__data__,z=tr(k,g);return z<0?(++this.size,k.push([g,x])):k[z][1]=x,this}st.prototype.clear=Kn,st.prototype.delete=Xn,st.prototype.get=Qn,st.prototype.has=Jn,st.prototype.set=Yr;function mt(g){var x=-1,k=g==null?0:g.length;for(this.clear();++x<k;){var z=g[x];this.set(z[0],z[1])}}function Zn(){this.size=0,this.__data__={hash:new rt,map:new(Vt||st),string:new rt}}function ea(g){var x=Gt(this,g).delete(g);return this.size-=x?1:0,x}function ta(g){return Gt(this,g).get(g)}function ra(g){return Gt(this,g).has(g)}function $(g,x){var k=Gt(this,g),z=k.size;return k.set(g,x),this.size+=k.size==z?0:1,this}mt.prototype.clear=Zn,mt.prototype.delete=ea,mt.prototype.get=ta,mt.prototype.has=ra,mt.prototype.set=$;function Y(g){var x=-1,k=g==null?0:g.length;for(this.__data__=new mt;++x<k;)this.add(g[x])}function X(g){return this.__data__.set(g,n),this}function J(g){return this.__data__.has(g)}Y.prototype.add=Y.prototype.push=X,Y.prototype.has=J;function pe(g){var x=this.__data__=new st(g);this.size=x.size}function Se(){this.__data__=new st,this.size=0}function Fe(g){var x=this.__data__,k=x.delete(g);return this.size=x.size,k}function Et(g){return this.__data__.get(g)}function _t(g){return this.__data__.has(g)}function yt(g,x){var k=this.__data__;if(k instanceof st){var z=k.__data__;if(!Vt||z.length<r-1)return z.push([g,x]),this.size=++k.size,this;k=this.__data__=new mt(z)}return k.set(g,x),this.size=k.size,this}pe.prototype.clear=Se,pe.prototype.delete=Fe,pe.prototype.get=Et,pe.prototype.has=_t,pe.prototype.set=yt;function nt(g,x){var k=gn(g),z=!k&&ka(g),Te=!k&&!z&&En(g),ye=!k&&!z&&!Te&&aa(g),Ce=k||z||Te||ye,Oe=Ce?tt(g.length,String):[],at=Oe.length;for(var ke in g)(x||_.call(g,ke))&&!(Ce&&(ke=="length"||Te&&(ke=="offset"||ke=="parent")||ye&&(ke=="buffer"||ke=="byteLength"||ke=="byteOffset")||Pr(ke,at)))&&Oe.push(ke);return Oe}function tr(g,x){for(var k=g.length;k--;)if($a(g[k][0],x))return k;return-1}function xr(g,x,k){var z=x(g);return gn(g)?z:ht(z,k(g))}function cr(g){return g==null?g===void 0?H:E:Xe&&Xe in Object(g)?pr(g):Ma(g)}function Kr(g){return rr(g)&&cr(g)==i}function Xr(g,x,k,z,Te){return g===x?!0:g==null||x==null||!rr(g)&&!rr(x)?g!==g&&x!==x:hn(g,x,k,z,Xr,Te)}function hn(g,x,k,z,Te,ye){var Ce=gn(g),Oe=gn(x),at=Ce?l:Yt(g),ke=Oe?l:Yt(x);at=at==i?y:at,ke=ke==i?y:ke;var wt=at==y,Ot=ke==y,lt=at==ke;if(lt&&En(g)){if(!En(x))return!1;Ce=!0,wt=!1}if(lt&&!wt)return ye||(ye=new pe),Ce||aa(g)?Or(g,x,k,z,Te,ye):vn(g,x,at,k,z,Te,ye);if(!(k&a)){var Tt=wt&&_.call(g,"__wrapped__"),vt=Ot&&_.call(x,"__wrapped__");if(Tt||vt){var Ar=Tt?g.value():g,hr=vt?x.value():x;return ye||(ye=new pe),Te(Ar,hr,k,z,ye)}}return lt?(ye||(ye=new pe),fr(g,x,k,z,Te,ye)):!1}function mn(g){if(!Ba(g)||go(g))return!1;var x=La(g)?F:Ee;return x.test(xt(g))}function Ut(g){return rr(g)&&na(g.length)&&!!te[cr(g)]}function yn(g){if(!bo(g))return jt(g);var x=[];for(var k in Object(g))_.call(g,k)&&k!="constructor"&&x.push(k);return x}function Or(g,x,k,z,Te,ye){var Ce=k&a,Oe=g.length,at=x.length;if(Oe!=at&&!(Ce&&at>Oe))return!1;var ke=ye.get(g);if(ke&&ye.get(x))return ke==x;var wt=-1,Ot=!0,lt=k&o?new Y:void 0;for(ye.set(g,x),ye.set(x,g);++wt<Oe;){var Tt=g[wt],vt=x[wt];if(z)var Ar=Ce?z(vt,Tt,wt,x,g,ye):z(Tt,vt,wt,g,x,ye);if(Ar!==void 0){if(Ar)continue;Ot=!1;break}if(lt){if(!bt(x,function(hr,Qr){if(!At(lt,Qr)&&(Tt===hr||Te(Tt,hr,k,z,ye)))return lt.push(Qr)})){Ot=!1;break}}else if(!(Tt===vt||Te(Tt,vt,k,z,ye))){Ot=!1;break}}return ye.delete(g),ye.delete(x),Ot}function vn(g,x,k,z,Te,ye,Ce){switch(k){case U:if(g.byteLength!=x.byteLength||g.byteOffset!=x.byteOffset)return!1;g=g.buffer,x=x.buffer;case W:return!(g.byteLength!=x.byteLength||!ye(new ce(g),new ce(x)));case c:case d:case w:return $a(+g,+x);case p:return g.name==x.name&&g.message==x.message;case S:case N:return g==x+"";case m:var Oe=Ze;case O:var at=z&a;if(Oe||(Oe=dt),g.size!=x.size&&!at)return!1;var ke=Ce.get(g);if(ke)return ke==x;z|=o,Ce.set(g,x);var wt=Or(Oe(g),Oe(x),z,Te,ye,Ce);return Ce.delete(g),wt;case M:if(Cr)return Cr.call(g)==Cr.call(x)}return!1}function fr(g,x,k,z,Te,ye){var Ce=k&a,Oe=Ht(g),at=Oe.length,ke=Ht(x),wt=ke.length;if(at!=wt&&!Ce)return!1;for(var Ot=at;Ot--;){var lt=Oe[Ot];if(!(Ce?lt in x:_.call(x,lt)))return!1}var Tt=ye.get(g);if(Tt&&ye.get(x))return Tt==x;var vt=!0;ye.set(g,x),ye.set(x,g);for(var Ar=Ce;++Ot<at;){lt=Oe[Ot];var hr=g[lt],Qr=x[lt];if(z)var Ci=Ce?z(Qr,hr,lt,x,g,ye):z(hr,Qr,lt,g,x,ye);if(!(Ci===void 0?hr===Qr||Te(hr,Qr,k,z,ye):Ci)){vt=!1;break}Ar||(Ar=lt=="constructor")}if(vt&&!Ar){var Ir=g.constructor,_n=x.constructor;Ir!=_n&&"constructor"in g&&"constructor"in x&&!(typeof Ir=="function"&&Ir instanceof Ir&&typeof _n=="function"&&_n instanceof _n)&&(vt=!1)}return ye.delete(g),ye.delete(x),vt}function Ht(g){return xr(g,Da,yo)}function Gt(g,x){var k=g.__data__;return vo(x)?k[typeof x=="string"?"string":"hash"]:k.map}function dr(g,x){var k=Ct(g,x);return mn(k)?k:void 0}function pr(g){var x=_.call(g,Xe),k=g[Xe];try{g[Xe]=void 0;var z=!0}catch{}var Te=I.call(g);return z&&(x?g[Xe]=k:delete g[Xe]),Te}var yo=Jt?function(g){return g==null?[]:(g=Object(g),gt(Jt(g),function(x){return he.call(g,x)}))}:qa,Yt=cr;(Hr&&Yt(new Hr(new ArrayBuffer(1)))!=U||Vt&&Yt(new Vt)!=m||Sr&&Yt(Sr.resolve())!=T||Zt&&Yt(new Zt)!=O||Rr&&Yt(new Rr)!=G)&&(Yt=function(g){var x=cr(g),k=x==y?g.constructor:void 0,z=k?xt(k):"";if(z)switch(z){case Gr:return U;case zt:return m;case dn:return T;case Vn:return O;case zn:return G}return x});function Pr(g,x){return x=x??s,!!x&&(typeof g=="number"||ze.test(g))&&g>-1&&g%1==0&&g<x}function vo(g){var x=typeof g;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?g!=="__proto__":g===null}function go(g){return!!A&&A in g}function bo(g){var x=g&&g.constructor,k=typeof x=="function"&&x.prototype||C;return g===k}function Ma(g){return I.call(g)}function xt(g){if(g!=null){try{return b.call(g)}catch{}try{return g+""}catch{}}return""}function $a(g,x){return g===x||g!==g&&x!==x}var ka=Kr(function(){return arguments}())?Kr:function(g){return rr(g)&&_.call(g,"callee")&&!he.call(g,"callee")},gn=Array.isArray;function bn(g){return g!=null&&na(g.length)&&!La(g)}var En=Ur||_o;function Eo(g,x){return Xr(g,x)}function La(g){if(!Ba(g))return!1;var x=cr(g);return x==f||x==h||x==u||x==R}function na(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function Ba(g){var x=typeof g;return g!=null&&(x=="object"||x=="function")}function rr(g){return g!=null&&typeof g=="object"}var aa=$e?Ft($e):Ut;function Da(g){return bn(g)?nt(g):yn(g)}function qa(){return[]}function _o(){return!1}e.exports=Eo})(Gs,Gs.exports);var AV=Gs.exports;const IV=wr(AV),NV=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t},ME="discussion_",MV=({content:e,isLoading:t=!1,originalAuthorId:r,functions:{content:{createContent:n,deleteContent:a,updateContent:o},likes:{createLike:s,deleteLike:i}},className:l,gtmContext:u="DiscussionAnswer",locale:c="en",children:d})=>{const p=Je(),f=Q.useContext(Ri),h=Q.useContext(gm),[m,w]=Q.useState({body:e&&e.body||"",isEditing:!1,didEdit:e&&e.isEdited||!1}),[E,y]=Q.useState("");if(Q.useEffect(()=>{w({...m,body:e&&e.body||"",didEdit:e&&e.isEdited||!1})},[e.isEdited]),t||!e||e.type==="answer"&&(!e.slugs||!e.slugs.question))return P.jsx(Un,{className:"discussion-card discussion-post"});const{author:T,createdAt:R,likes:S=0,userLiked:O}=e,N=f&&f.id&&typeof T!="string"&&T.id&&T.id!==f.id||!1,M=async G=>{G||(G=""),y("");try{IV(G,m.body)||await o(NV(e.slugs),{body:G}),w({body:G,isEditing:!1,didEdit:!0})}catch{y(`${ME}form_error`)}},H=()=>{h&&h.updateConversation&&h.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const W=`reply-form-${(e.type==="answer"?e.slug:e.slugs.answer||"").toLowerCase().slice(-15)}`,U=document.getElementById(W),j=document.getElementById(`${W}-input`);j&&j.focus(),U&&U.scrollIntoView({behavior:"smooth"})},0)};return P.jsxs("div",{className:we("discussion-post",l),"data-testid":`discussion-${e.type}-thread`,children:[P.jsxs("div",{className:we("discussion-card",e.type,{editing:m.isEditing}),children:[!m.isEditing&&P.jsx(Tm,{member:T,additionalContent:{createdAt:R,didEdit:m.didEdit},className:typeof T!="string"&&T.id===r?"highlighted":"",gtmContext:u,gtmType:"profile-click"}),m.isEditing?P.jsx(ER,{content:{type:e.type,slugs:e.slugs},meta:{isLoading:t,isInWrapper:!0,isEditing:{text:m.body}},forceShow:{error:E!==""&&E!=="delete-error"?p.formatMessage({id:E},{action:p.formatMessage({id:`discussion_action_${e.type}`})}):!1},functions:{create:n,handleSaveEdit:M,handleCancel:()=>{y(""),w({...m,isEditing:!1})}},gtmContext:`${u}Form`}):P.jsx(pR,{children:m.body}),!m.isEditing&&P.jsxs("ul",{className:we("actions",e.type),"data-testid":`${e.type}-actions`,children:[P.jsx(_R,{element:"li",likes:S,isShort:!1,userLiked:O,content:{type:e.type,slugs:e.slugs},canLike:N,createLike:s,deleteLike:i,locale:c}),(e.type==="answer"||e.type==="reply")&&P.jsx("li",{children:P.jsx(Qt,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:H,children:p.formatMessage({id:`${ME}thread_reply_button`})})})]})]}),d]})},$V=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(MV,{...t})});const ns="emailHelperTextBox_",kV=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const a=Je(),[o,s]=Q.useState({path:`${ns}default`,type:"default",link:{},mail:{},error:""}),[i,l]=Q.useState(!1),u=Q.useCallback(f=>{f.preventDefault(),f.stopPropagation();const h=m=>{s({path:`${ns}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:w=>u(w),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"){h(a.formatMessage({id:`${ns}error_noFunction`}));return}l(!0),n(t).then(()=>{localStorage.setItem("email",t),window.location.href=r||"/signup/verify-email"}).catch(m=>{h(m.message)}).finally(()=>{l(!1)})},[t,r,n]);Q.useEffect(()=>{let f=ns,h="default",m={},w={};switch(e){case"gov":f+="autoApproved",h="success";break;case"nonGov":f+="unrecognisedEmail",h="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",h="error",w={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",h="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:E=>u(E),"data-testid":"send-verify-email-click"};break;case"exists":f+="emailAlreadyExists",h="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},w={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}s({...o,path:f,type:h,link:m,mail:w})},[e]);const c={};return["link","mail"].forEach(f=>{c[f]=Object.keys(o[f]).length?h=>P.jsx("a",{...o[f],children:h}):h=>h}),P.jsx(dR,{type:o.type,heading:i?!1:a.formatMessage({id:`${o.path}_title`}),children:i?P.jsxs(P.Fragment,{children:[P.jsx(Un,{element:"span"}),P.jsx(Un,{element:"span"})]}):a.formatMessage({id:`${o.path}_text`},{...c,strong:f=>P.jsx("strong",{children:f}),em:f=>P.jsx("em",{children:f}),br:P.jsxs(P.Fragment,{children:[P.jsx("br",{}),P.jsx("br",{})]}),error:o.error})})},LV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(kV,{...t})});const as="passwordRules_",wR="isMoreThanEightCharacters",TR="includesNumberAndSymbol",SR="includesLowerAndUppercase",BV={[wR]:"8Characters",[TR]:"numberSymbol",[SR]:"lowercaseUppercase"},DV=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=Je();return P.jsxs("aside",{className:we("password-rules",t),children:[P.jsx("small",{children:r.formatMessage({id:`${as}intro`})}),P.jsx("ul",{children:[wR,TR,SR].map(n=>P.jsxs("li",{className:we({matches:e[n]}),children:[P.jsxs(Dt,{children:[r.formatMessage({id:`${as}rule_label`})," "]}),P.jsx("span",{children:r.formatMessage({id:`${as}rule_${BV[n]}`})}),!e[n]&&P.jsxs(Dt,{element:"strong",children:[" "," ",r.formatMessage({id:`${as}notMet`})]})]},`rule-${n}`))})]})},qV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(DV,{...t})}),FV=Q.memo(qV);const jV=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:a=()=>{}},className:o="",hasLoaded:s=!1})=>{const i=Je(),[l,u]=Q.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const E=await r();u(y=>({...y,setUp:!0,id:E&&E.id,disabled:!1}))}catch(E){u(y=>({...y,setUp:!0,disabled:!0})),a(E)}};if(Q.useEffect(()=>{s&&!l.setUp&&c()},[s]),!s)return P.jsx(Un,{className:"rating-placeholder"});const{id:d,rating:p,disabled:f}=l,h="ratings_",m={text:i.formatMessage({id:`${h}text`}),low:i.formatMessage({id:`${h}low`}),high:i.formatMessage({id:`${h}high`}),success:i.formatMessage({id:`${h}success`}),...e},w=async E=>{if(!(!d||f))try{u(y=>({...y,rating:E,disabled:!0})),await n({id:d,value:E})}catch(y){u(T=>({...T,rating:null})),a(y)}finally{u(y=>({...y,disabled:!1}))}};return P.jsxs("div",{className:we("rating",o),children:[P.jsx("span",{className:"label",children:m[p?"success":"text"]}),P.jsx("ol",{children:Array.from(new Array(t).keys()).map(E=>{const y=E+1;return P.jsx("li",{className:we({selected:p&&y<=p}),children:P.jsx(Qt,{variant:"tertiary",size:"small",icon:{icon:`star${!p||y>p?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${i.formatMessage({id:`${h}stars`},{number:y,total:t})}${y===1||y===t?` - ${m[y===1?"low":"high"]}`:""}`,onClick:T=>{T.preventDefault(),T.stopPropagation(),w(y)},disabled:f})},`rating-${y}`)})})]})},UV=({locale:e="en",...t})=>P.jsx(et,{children:P.jsx(jV,{...t})});const HV=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:a="search-bar",gtmEvent:o="form-submission"})=>{const{searchIsOpen:s=!0,isDesktopVersion:i=!1}=r||{},l=Je(),u=Q.useRef(null);vs(()=>{!r||i||!s||u.current&&u.current.focus()},[s]);const c=d=>{if(d.preventDefault(),d.stopPropagation(),!(!u.current||!u.current.value||u.current.value.length<1))return window&&window.location&&window.location.replace(`/search?search=${encodeURIComponent(u.current.value)}`)};return P.jsx("form",{onSubmit:c,className:we("search-form gtm-trackable",t),"data-gtm-event-context":a,"data-gtm-event-type":o,children:P.jsx("fieldset",{id:`${e}-form`,hidden:r?!s:!1,role:"search",children:P.jsxs("p",{children:[P.jsx(Dt,{element:"label",htmlFor:e,children:l.formatMessage({id:"search_label"})}),P.jsx("input",{ref:u,type:"search",id:e,name:e,defaultValue:n,placeholder:l.formatMessage({id:"search_placeholder"}),onKeyDown:d=>{d.key==="Enter"&&c(d)}}),P.jsx("button",{className:"clear",onClick:d=>{d.preventDefault(),d.stopPropagation(),u.current&&u.current.value&&(u.current.value="")},children:P.jsx(Dt,{children:l.formatMessage({id:"search_clear"})})}),P.jsx("button",{className:"search",onClick:c,children:P.jsx(Dt,{children:l.formatMessage({id:"search_cta"})})})]})})})},RR=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(HV,{...t})});const GV={"2-1":901},WV=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const a=bi(!0);let o=n;return Q.Children.count(n)===1&&(o=Q.Children.toArray(n)[0],o.props&&(o=o.props.children)),P.jsx("section",{className:we("columns",`layout-${e}`,r),children:Q.Children.map(o,(s,i)=>t!==!1&&i===t&&a&&a<GV[e]?null:s)})};const ap="cookieBanner_",op=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],ip=new Date(Date.now()+12*30*24*60*60*1e3),VV=()=>{const e=Je(),[t,r,n]=zE(op),[a,o]=Q.useState(!t["apol-cookie-banner"]),s=()=>{op.forEach(c=>{r(c,!0,{path:"/",expires:ip,domain:c==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),o(!1),window.location.reload()},i=()=>{r("apol-cookie-banner",!0,{path:"/",expires:ip}),op.forEach(c=>{if(c==="apol-cookie-banner"){r(c,!0,{path:"/",expires:ip});return}n(c)}),o(!1)};if(!a)return null;const l=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:i,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],u=[];return l.forEach(c=>{u.push({variant:c.href?"tertiary":"primary",href:c.href,onClick:c.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${c.gtmType}-click`,children:e.formatMessage({id:`${ap}buttons_${c.id}`})})}),P.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[P.jsx("h6",{children:e.formatMessage({id:`${ap}title`})}),P.jsx("p",{children:e.formatMessage({id:`${ap}text`})}),P.jsx(Hc,{buttons:u})]})},CR=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(VV,{...t})});const zV=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:a=""})=>{const o=Je(),s=t?[{id:"all",text:typeof t!="boolean"&&t.text||o.formatMessage({id:"filters_all"})},...e]:e,[i,l]=Q.useState(t?["all"]:[]),u=(c,d)=>{let p=[];i.includes(c)?p=i.filter(f=>f!==c):c==="all"?p=["all"]:r?p=[...i.filter(f=>f!=="all"),c]:p=[c],l(f=>(n&&typeof n=="function"&&n({current:p,previous:f}),p)),d&&typeof d=="function"&&d()};return P.jsx("ul",{className:we("filters",a),children:s.map(({id:c,text:d,disabled:p=!1,callback:f=()=>{}})=>{let h={};return p&&(h={disabled:!0,"aria-label":o.formatMessage({id:"filters_disabled"},{name:d})}),P.jsx("li",{children:P.jsx("button",{className:we(c,{selected:i.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),u(c,f)},...h,children:d})},c)})})},YV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(zV,{...t})});const sp=kp({locale:"en",messages:Gh}),KV=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:a=!1,messages:o={button:sp.formatMessage({id:"loadMore_button"}),endOfFeed:sp.formatMessage({id:"loadMore_endOfFeed"}),error:sp.formatMessage({id:"loadMore_error"})},className:s="",gtmContext:i="LoadMore"})=>{const[l,u]=Q.useState(!1),[c,d]=Q.useState(!1);if(t<=0||t<r*e)return null;const p=async f=>{try{await n(f)}catch(h){h instanceof Error&&h.message&&h.message.includes("Cannot read items")?d(!0):u(!0)}};return P.jsxs("footer",{className:we("load-more",s),children:[l&&P.jsx("p",{className:"error",children:o.error}),c?P.jsx("p",{children:o.endOfFeed}):P.jsx(Qt,{variant:"secondary",icon:a,onClick:p,"data-gtm-event-context":i,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:o.button})]})},XV=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(KV,{...t})});const QV=({variant:e="default",version:t="default",className:r="",...n})=>P.jsx("p",{className:"logo-wrapper",children:P.jsx("a",{className:we("logo",e,t,r),href:"/home/",...n,children:P.jsx(Dt,{children:P.jsx(ya,{id:"apolitical"})})})}),Sm=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(QV,{...t})}),$E={default:"tags_",headerTopics:"header_topics_topics_"},lp={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"},JV={getTagDetails:e=>{if(e.includes("topic_")){if(e=lp.topic[e.replace("topic_","")],e){const t=hi.topics.topics[e].href;return t?{id:e,href:t,text:`${$E.headerTopics}${e}`}:null}return null}return lp[e]?(e=lp[e],{id:e,text:`${$E.default}${e}`}):null}};const ZV=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:a="",gtmType:o="tag-click",gtmContext:s="tags"})=>{const i=Je();if(!e||e.length<1)return null;const l=[];return e.forEach(u=>{if(!u)return;const c=JV.getTagDetails(u);c&&l.push(c)}),l.length<1?null:P.jsx("ul",{className:we("tags text-small",t,a,{"one-line":r}),children:l.map(u=>{const c=i.formatMessage({id:u.text});return P.jsx("li",{children:u.href&&n?P.jsx("a",{href:u.href,className:"gtm-trackable","data-gtm-event-type":o,"data-gtm-event-context":s,children:c}):c},u.id)})})},ez=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(ZV,{...t})}),on={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:"dpo@apolitical.co",gtmType:"email-dpo-link"},euDataProtection:{email:"dpo.agl@apolitical.foundation",gtmType:"email-eu-dpo-link"}}},contact:{text:{order:["correspondence","registered","berlin","support","business"],correspondence:{address:!0},registered:{address:!0},berlin:{address:!0},support:{email:"concierge@apolitical.co",gtmType:"concierge-email-click"},business:{email:"hello@apolitical.co",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 Xa="footer_",Ws="SiteFooter",kE=({group:e})=>{const t=on[e].order||[];let r=!1;return"text"in on[e]&&(r=on[e].text),P.jsxs(Q.Fragment,{children:[P.jsx("p",{className:"pre-title",children:P.jsx(ya,{id:`${Xa}${e}`})}),Array.isArray(t)&&t.length>0&&P.jsx("ul",{className:"text-medium",children:t.map(n=>{if(["order","child","text"].includes(n))return null;const{href:a,gtmType:o}=on[e][n],s={};return["legal"].includes(e)&&(s.target="_blank",s.rel="noopener"),P.jsx("li",{children:P.jsx("a",{href:a,className:"gtm-trackable","data-gtm-event-context":Ws,"data-gtm-event-type":o,...s,children:P.jsx(ya,{id:`${Xa}${e}_${n}`})})},`${e}_${n}`)})}),typeof r!="boolean"&&"order"in r&&Array.isArray(r.order)&&P.jsx("dl",{className:"text-medium",children:r.order.map(n=>P.jsxs(Q.Fragment,{children:[P.jsx("dt",{children:P.jsx(ya,{id:`${Xa}${e}_${n}`})}),P.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&P.jsx("address",{children:P.jsx(ya,{id:`${Xa}${e}_${n}_address`,values:{br:P.jsx("br",{})}})}),typeof r!="boolean"&&r[n].email&&P.jsx("a",{href:`mailto:${r[n].email}`,className:"gtm-trackable","data-gtm-event-context":Ws,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},tz=()=>P.jsx("div",{id:"footer",children:P.jsxs("div",{className:"wrapper",children:[P.jsx(Rh,{element:"hr"}),P.jsx(Sm,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":Ws,"data-gtm-event-type":"logo-homepage-link"}),P.jsx("footer",{children:["platform","community","company","contact"].map(e=>P.jsxs("div",{className:"group",children:[P.jsx(kE,{group:e}),Object.keys(on[e]).includes("child")&&P.jsx(kE,{group:on[e].child})]},e))}),P.jsx("hr",{}),P.jsxs("div",{className:"sub-footer",children:[P.jsx("ul",{children:Array.isArray(on.social.order)&&on.social.order.map(e=>{const t=on.social[e];return P.jsx("li",{className:e,children:P.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":Ws,"data-gtm-event-type":"social-click",children:P.jsx("span",{className:"hidden",children:P.jsx(ya,{id:`${Xa}social_${e}`})})})},e)})}),P.jsx("small",{children:P.jsx(ya,{id:`${Xa}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})}),Rm=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(tz,{...t})});var rz="Expected a function",xR="__lodash_hash_undefined__",OR=1/0,nz="[object Function]",az="[object GeneratorFunction]",oz="[object Symbol]",iz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sz=/^\w*$/,lz=/^\./,uz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cz=/[\\^$.*+?()[\]{}|]/g,fz=/\\(\\)?/g,dz=/^\[object .+?Constructor\]$/,pz=typeof be=="object"&&be&&be.Object===Object&&be,hz=typeof self=="object"&&self&&self.Object===Object&&self,Cm=pz||hz||Function("return this")();function mz(e,t){return e==null?void 0:e[t]}function yz(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var vz=Array.prototype,gz=Function.prototype,PR=Object.prototype,up=Cm["__core-js_shared__"],LE=function(){var e=/[^.]+$/.exec(up&&up.keys&&up.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),AR=gz.toString,xm=PR.hasOwnProperty,IR=PR.toString,bz=RegExp("^"+AR.call(xm).replace(cz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),BE=Cm.Symbol,Ez=vz.splice,_z=NR(Cm,"Map"),pi=NR(Object,"create"),DE=BE?BE.prototype:void 0,qE=DE?DE.toString:void 0;function Ta(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 wz(){this.__data__=pi?pi(null):{}}function Tz(e){return this.has(e)&&delete this.__data__[e]}function Sz(e){var t=this.__data__;if(pi){var r=t[e];return r===xR?void 0:r}return xm.call(t,e)?t[e]:void 0}function Rz(e){var t=this.__data__;return pi?t[e]!==void 0:xm.call(t,e)}function Cz(e,t){var r=this.__data__;return r[e]=pi&&t===void 0?xR:t,this}Ta.prototype.clear=wz;Ta.prototype.delete=Tz;Ta.prototype.get=Sz;Ta.prototype.has=Rz;Ta.prototype.set=Cz;function mo(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 xz(){this.__data__=[]}function Oz(e){var t=this.__data__,r=Vc(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ez.call(t,r,1),!0}function Pz(e){var t=this.__data__,r=Vc(t,e);return r<0?void 0:t[r][1]}function Az(e){return Vc(this.__data__,e)>-1}function Iz(e,t){var r=this.__data__,n=Vc(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}mo.prototype.clear=xz;mo.prototype.delete=Oz;mo.prototype.get=Pz;mo.prototype.has=Az;mo.prototype.set=Iz;function Na(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 Nz(){this.__data__={hash:new Ta,map:new(_z||mo),string:new Ta}}function Mz(e){return zc(this,e).delete(e)}function $z(e){return zc(this,e).get(e)}function kz(e){return zc(this,e).has(e)}function Lz(e,t){return zc(this,e).set(e,t),this}Na.prototype.clear=Nz;Na.prototype.delete=Mz;Na.prototype.get=$z;Na.prototype.has=kz;Na.prototype.set=Lz;function Vc(e,t){for(var r=e.length;r--;)if(zz(e[r][0],t))return r;return-1}function Bz(e,t){t=jz(t,e)?[t]:Fz(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Wz(t[r++])];return r&&r==n?e:void 0}function Dz(e){if(!$R(e)||Hz(e))return!1;var t=Yz(e)||yz(e)?bz:dz;return t.test(Vz(e))}function qz(e){if(typeof e=="string")return e;if(Pm(e))return qE?qE.call(e):"";var t=e+"";return t=="0"&&1/e==-OR?"-0":t}function Fz(e){return MR(e)?e:Gz(e)}function zc(e,t){var r=e.__data__;return Uz(t)?r[typeof t=="string"?"string":"hash"]:r.map}function NR(e,t){var r=mz(e,t);return Dz(r)?r:void 0}function jz(e,t){if(MR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Pm(e)?!0:sz.test(e)||!iz.test(e)||t!=null&&e in Object(t)}function Uz(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hz(e){return!!LE&&LE in e}var Gz=Om(function(e){e=Xz(e);var t=[];return lz.test(e)&&t.push(""),e.replace(uz,function(r,n,a,o){t.push(a?o.replace(fz,"$1"):n||r)}),t});function Wz(e){if(typeof e=="string"||Pm(e))return e;var t=e+"";return t=="0"&&1/e==-OR?"-0":t}function Vz(e){if(e!=null){try{return AR.call(e)}catch{}try{return e+""}catch{}}return""}function Om(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(rz);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s),s};return r.cache=new(Om.Cache||Na),r}Om.Cache=Na;function zz(e,t){return e===t||e!==e&&t!==t}var MR=Array.isArray;function Yz(e){var t=$R(e)?IR.call(e):"";return t==nz||t==az}function $R(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kz(e){return!!e&&typeof e=="object"}function Pm(e){return typeof e=="symbol"||Kz(e)&&IR.call(e)==oz}function Xz(e){return e==null?"":qz(e)}function Qz(e,t,r){var n=e==null?void 0:Bz(e,t);return n===void 0?r:n}var Jz=Qz;const kR=wr(Jz),He={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=o=>{const s=`logged${e?"In":"Out"}`;return t>=r[o][s]};let a={};return["navigation","search"].forEach(o=>{a[o]=n(o)}),a},shouldChangeHeaderIsVisible:(e,t,r)=>{Object.values(t).filter(a=>a===!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 a=Date.now();if(!t&&He.handlerCalled[e]&&a-He.handlerCalled[e]<500)return;He.handlerCalled[e]=a;let o=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(s=>{s===e||r[s]===!1||o.push({type:`menus.${s}`,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 a=kR(e[n],t);if(!(typeof a>"u")&&(!r||a[t]&&a[t].includes(r)||a.value&&a.value.includes(r)||a.toString().includes(r)))return e[n]}return e[0].children?He.findFirstChild(e[0].children,t,r):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:r,focusElements:n,dispatch:a})=>{if(!t.current||!t.current.children)return;const o=r?"desktop":"default";if(n[e][o]){n[e][o].focus();return}let s,i;switch(e){case"navigation":if(r){const l=He.findFirstChild(t.current.children,"attributes.aria-controls","navigation");s=He.findFirstChild(l.children,"href")}else s=He.findFirstChild(t.current.children,"href");s||(s=t.current);break;case"account":if(i=He.findFirstChild(t.current.children,"className","account"),!i||!i.children)return;s=He.findFirstChild(i.children,"href");break;default:return}s&&(a([{type:`focusElements.${e}.${o}`,value:s}]),s.focus())},events:{onClick:(e,{id:t,callback:r,isOpen:n})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(He.timeouts[t]),r(t,!n))},onFocus:({id:e})=>{clearTimeout(He.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(He.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{He.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},hi={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"}}}},Vs=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:a=()=>{},doTrack:o=null})=>{const s=Je(),i=kR(hi,e);if(!i||i.onlyShow&&(i.onlyShow==="logged-in"&&!t||i.onlyShow==="logged-out"&&t))return null;const l="doTrack"in i,u=o===null?l?i.doTrack:!0:o,c=e.includes("buttons.");let d=`header_${e.replaceAll(".","_")}`;i.hasVariantText&&(d+=`_logged${t?"In":"Out"}`);let p=!1;if(i.href){let y=i.gtmType||`${e}-click`;if(y.includes(".")){const T=y.split("."),R=T[T.length-2];y=`${R==="topics"?`${R}-`:""}${T[T.length-1]}`}p={href:i.href,role:"menuitem"},u&&(p={...p,className:"gtm-trackable","data-gtm-event-type":y,"data-gtm-event-context":"HeaderButtons"}),c&&(p={...p,variant:"secondary",size:{mobile:"small",881:"large"},...i.props||{}})}const f=i.order&&i.order[0]&&i[i.order[0]],h=f&&i[i.order[0]].order,m=p&&typeof window<"u"&&window.location&&window.location.pathname===i.href;let w={},E={};if(f){const y=i.menuId||e,T={onClick:R=>He.events.onClick(R,{id:y,callback:a,isOpen:n[y]}),onFocus:()=>He.events.onFocus({id:y}),onBlur:()=>He.events.onBlur({id:y,callback:a}),onMouseLeave:()=>He.events.onBlur({id:y,callback:a}),onMouseEnter:()=>He.events.onMouseEnter({id:y,callback:a})};r&&(h&&(w={...T,onKeyPress:R=>{R.key==="Enter"&&He.events.onClick(R,{id:y,callback:a,isOpen:n[y]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[y],"aria-controls":y}),E={hidden:y in n?!n[y]:!0}),h||(E={...E,...T})}return P.jsxs("li",{className:we({[i.className]:i.className,"has-submenu":f,parent:h,active:m}),role:"none",...w,children:[p?Q.createElement(c?Qt:"a",p,s.formatMessage({id:d})):s.formatMessage({id:d}),i.order&&P.jsx("ul",{...E,children:i.order.map(y=>{if(!i[y])return null;const T={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:a,doTrack:l?u:null};return i[y].order?P.jsxs("li",{className:we({[i[y].className]:i[y].className}),children:[s.formatMessage({id:`${d}_${y}`}),P.jsx("ul",{children:i[y].order.map(R=>P.jsx(Vs,{id:`${e}.${y}.${R}`,...T},R))})]},y):P.jsx(Vs,{id:`${e}.${y}`,...T},y)})})]},e)};const Zz={height:67,height_desktop:83},e5=()=>{const e=Je(),t=Q.useContext(Ri),r=bi(!0,!0),n=t&&typeof t.id=="string",a=Q.useMemo(()=>He.getIsDesktopVersion(n,r),[n,r]),[o,s]=Q.useReducer(aI,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:i,menus:l,focusElements:u}=o;H0({scrollPosition:Zz[`height${a.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!a&&l.navigation||He.shouldChangeHeaderIsVisible(!0,l,s)},scrollDown:()=>{!a&&l.navigation||He.shouldChangeHeaderIsVisible(!1,l,s)}}});const c=(p,f)=>{He.handleMenus({id:p,value:f,menus:l,dispatch:s})},d=Q.useRef(null);return vs(()=>{l.navigation&&He.autoFocus({menu:"navigation",navigationRef:d,isDesktopVersion:a.navigation,focusElements:u,dispatch:s})},[l.navigation]),vs(()=>{l.account&&He.autoFocus({menu:"account",navigationRef:d,isDesktopVersion:a.navigation,focusElements:u,dispatch:s})},[l.account]),t&&t.isLoading?null:P.jsxs(P.Fragment,{children:[P.jsxs("nav",{id:"header",className:we({"logged-in":n,"logged-out":!n,visible:i}),children:[P.jsx(Dt,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),P.jsx(Sm,{}),!a.navigation&&P.jsx("button",{className:"menu-button gtm-trackable",onClick:p=>{p.preventDefault(),p.stopPropagation(),c("navigation",!l.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":l.navigation,"aria-controls":"navigation",children:P.jsx(Dt,{children:e.formatMessage({id:`header_menu_${l.navigation?"hide":"show"}`})})}),P.jsx("ul",{ref:d,id:"navigation",hidden:a.navigation||l.account?!1:!l.navigation,role:"menu","data-showing":!a.navigation&&l.account?"account":"default",children:hi.order.map(p=>P.jsx(Vs,{id:p,isLoggedIn:n,isDesktopVersion:a.navigation,menus:{navigation:l.navigation,account:l.account},callback:c},p))}),!a.search&&P.jsx("button",{className:"search toggle-search-button",onClick:p=>{p.preventDefault(),p.stopPropagation(),c("search",!l.search)},"aria-haspopup":"true","aria-expanded":l.search,"aria-controls":"search-form",children:P.jsx(Dt,{children:e.formatMessage({id:`header_search_${l.search?"hide":"show"}`})})}),P.jsx(RR,{id:"global-search",handleToggle:{searchIsOpen:l.search,isDesktopVersion:a.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?P.jsxs("button",{className:"account-button",onClick:p=>He.events.onClick(p,{id:"account",callback:c,isOpen:l.account}),onMouseEnter:()=>He.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>He.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":l.account,"aria-controls":"navigation",children:[P.jsx(Dt,{children:e.formatMessage({id:`header_account_${l.account?"hide":"show"}`})}),P.jsx(Wc,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):P.jsx("ul",{className:"sign-in-buttons",children:hi.buttons.order.map(p=>P.jsx(Vs,{id:`buttons.${p}`},p))})]}),P.jsx("hr",{id:"content-of-page"}),P.jsx("div",{className:we("overlay",{open:l.navigation||l.account||!a.search&&l.search})})]})},Am=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(e5,{...t})}),t5=Q.createContext(null),cp={didCatch:!1,error:null};class r5 extends Q.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cp}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(cp)}}componentDidCatch(t,r){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&r.error!==null&&n5(t.resetKeys,a)){var o,s;(o=(s=this.props).onReset)===null||o===void 0||o.call(s,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(cp)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:a}=this.props,{didCatch:o,error:s}=this.state;let i=t;if(o){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(Q.isValidElement(a))i=a;else if(typeof r=="function")i=r(l);else if(n)i=Q.createElement(n,l);else throw s}return Q.createElement(t5.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},i)}}function n5(){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 a5=({locale:e})=>{const t=Je();return P.jsxs(P.Fragment,{children:[P.jsx(Am,{locale:e}),P.jsx("div",{className:"content",children:P.jsx(cR,{variant:"error",text:t.formatMessage({id:"pageLayout_error"})})}),P.jsx(Rm,{locale:e})]})},o5=({locale:e="en",...t})=>P.jsx(et,{locale:e,children:P.jsx(a5,{locale:e,...t})}),i5=({children:e,reportError:t,showFooter:r=!0,background:n="default",className:a="",locale:o="en"})=>{const s=AN(e,{locale:o});return P.jsx(r5,{onError:t,fallback:P.jsx(o5,{locale:o}),children:P.jsx(Q.Suspense,{fallback:P.jsx(yR,{layout:"overview-page"}),children:P.jsx("div",{id:"wrapper",className:we(a,{[n]:n!=="default"}),children:P.jsxs(aC,{children:[P.jsx(Am,{locale:o}),P.jsx("div",{className:"content",children:s}),r&&P.jsx(Rm,{locale:o}),P.jsx(CR,{})]})})})})};exports.ASSETS_BUCKET=Hs;exports.Alert=bh;exports.BannerSection=NW;exports.Button=Qt;exports.ButtonWrapper=Hc;exports.CollapsibleSection=bm;exports.Columns=WV;exports.Contributors=CV;exports.ConversationContext=gm;exports.CookieBanner=CR;exports.DiscussionConversation=BW;exports.DiscussionForm=ER;exports.DiscussionLikes=_R;exports.DiscussionPost=$V;exports.DownloadSection=OW;exports.EmailHelperTextBox=LV;exports.EmptyStateBox=cR;exports.Filters=YV;exports.Footer=Rm;exports.FullWidthSection=vm;exports.Header=Am;exports.HelperTextBox=dR;exports.HiddenFromScreenReaders=Rh;exports.HideShowTextBox=oV;exports.HighlightedTextBox=un;exports.Link=US;exports.LoadMore=XV;exports.LoadingBlock=EV;exports.LoadingPlaceholder=Un;exports.LoadingState=yR;exports.Logo=Sm;exports.LogoSection=PW;exports.MarkdownText=pR;exports.MarketingBox=MW;exports.Member=Tm;exports.NUMBER_OF_USERS=$W;exports.PageLayout=i5;exports.PasswordRules=FV;exports.Pill=mV;exports.ProfilePicture=Wc;exports.ProgressBar=hR;exports.Rating=UV;exports.ResponsiveImage=HS;exports.SearchForm=RR;exports.Tags=ez;exports.UserContext=Ri;exports.UserProvider=kW;exports.VisuallyHidden=Dt;exports.getMember=wm;exports.headerData=hi;exports.useEffectAfterMount=vs;exports.useFeatureFlag=ZA;exports.useScreenWidth=bi;exports.useScrollListener=H0;
90
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function cS(e,t){var n=Hw(t),r=ne(ne({},tm),e),o=r.locale,i=r.defaultLocale,s=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new Kf('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new Kf('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Uw('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),uS(r),ne(ne({},r),{formatters:n,formatNumber:oS.bind(null,r,n.getNumberFormat),formatNumberToParts:aS.bind(null,r,n.getNumberFormat),formatRelativeTime:nS.bind(null,r,n.getRelativeTimeFormat),formatDate:qw.bind(null,r,n.getDateTimeFormat),formatDateToParts:Vw.bind(null,r,n.getDateTimeFormat),formatTime:Gw.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Ww.bind(null,r,n.getDateTimeFormat),formatTimeToParts:zw.bind(null,r,n.getDateTimeFormat),formatPlural:eS.bind(null,r,n.getPluralRules),formatMessage:uu.bind(null,r,n),$t:uu.bind(null,r,n),formatList:Jw.bind(null,r,n.getListFormat),formatListToParts:im.bind(null,r,n.getListFormat),formatDisplayName:Kw.bind(null,r,n.getDisplayNames)})}function am(e){Mp(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var sm=ne(ne({},tm),{textComponent:Oe.Fragment});function lS(e){return function(t){return e(Oe.Children.toArray(t))}}function cu(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var Hu=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Oe.createContext(null)):Oe.createContext(null);Hu.Consumer;var fS=Hu.Provider,dS=fS,hS=Hu;function Ie(){var e=Oe.useContext(hS);return am(e),e}var lu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(lu||(lu={}));var fu;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(fu||(fu={}));function um(e){var t=function(n){var r=Ie(),o=n.value,i=n.children,s=Cn(n,["value","children"]),a=typeof o=="string"?new Date(o||0):o,l=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return i(l)};return t.displayName=fu[e],t}function Xi(e){var t=function(n){var r=Ie(),o=n.value,i=n.children,s=Cn(n,["value","children"]),a=r[e](o,s);if(typeof i=="function")return i(a);var l=r.textComponent||Oe.Fragment;return Oe.createElement(l,null,a)};return t.displayName=lu[e],t}function Cs(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 cm(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=Zp(r)?lS(r):r,t},{})}var Zf=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=cm(r),a=uu.apply(void 0,Dt([e,t,n,s],o,!1));return Array.isArray(a)?Oe.Children.toArray(a):a},du=function(e,t){var n=e.defaultRichTextElements,r=Cn(e,["defaultRichTextElements"]),o=cm(n),i=cS(ne(ne(ne({},sm),r),{defaultRichTextElements:o}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return ne(ne({},i),{formatMessage:Zf.bind(null,s,i.formatters),$t:Zf.bind(null,s,i.formatters)})},pS=function(e){vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=rm(),n.state={cache:n.cache,intl:du(Cs(n.props),n.cache),prevConfig:Cs(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var o=r.prevConfig,i=r.cache,s=Cs(n);return cu(o,s)?null:{intl:du(s,i),prevConfig:s}},t.prototype.render=function(){return am(this.state.intl),Oe.createElement(dS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=sm,t}(Oe.PureComponent);function mS(e,t){var n=e.values,r=Cn(e,["values"]),o=t.values,i=Cn(t,["values"]);return cu(o,n)&&cu(r,i)}function lm(e){var t=Ie(),n=t.formatMessage,r=t.textComponent,o=r===void 0?Oe.Fragment:r,i=e.id,s=e.description,a=e.defaultMessage,l=e.values,f=e.children,u=e.tagName,h=u===void 0?o:u,d=e.ignoreTag,c={id:i,description:s,defaultMessage:a},p=n(c,l,{ignoreTag:d});return typeof f=="function"?f(Array.isArray(p)?p:[p]):h?Oe.createElement(h,null,Oe.Children.toArray(p)):Oe.createElement(Oe.Fragment,null,p)}lm.displayName="FormattedMessage";var fm=Oe.memo(lm,mS);fm.displayName="MemoizedFormattedMessage";const Yr=fm;Xi("formatDate");Xi("formatTime");Xi("formatNumber");Xi("formatList");Xi("formatDisplayName");um("formatDate");um("formatTime");var dm={exports:{}};(function(e){(function(t,n){var r="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(a,l,f){return f.length===a.length||!l.ellipsis||(f+=l.ellipsis),f}function s(a,l,f){var u="",h=!0,d=l,c,p;if(f=f||{},f.ellipsis=typeof f.ellipsis>"u"?r:f.ellipsis,!a||a.length===0)return"";for(h=!0;h;){if(o.lastIndex=u.length,h=o.exec(a),!h||h.index-u.length>=d||o.lastIndex>=l+3e3)return u+=a.substring(u.length,l),i(a,f,u);if(c=h[0],p=h.index,u+=a.substring(u.length,p+c.length),d-=p+c.length,d<=0)break}return i(a,f,u)}e.exports?e.exports=s:t.truncate=s})(String)})(dm);var gS=dm.exports;const hm=jt(gS),$o="https://storage.googleapis.com/apolitical-assets/",yS="200,000+";const hu=({element:e="p",children:t=null,className:n="",...r})=>G.createElement(e,{...r,className:se("alert",n),"aria-live":"assertive"},t);const qu=({label:e=!1,className:t="",children:n})=>{const r=Ie();return C.jsxs("details",{className:se("collapsible-section",t),children:[C.jsx("summary",{children:e||r.formatMessage({id:"collapsibleSection_summary"})}),C.jsx("div",{className:"content",children:n})]})};function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(this,arguments)}const vS=["children","options"],ed=["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"}),td={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},ES=["style","script"],_S=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,bS=/mailto:/i,wS=/\n{2,}$/,pm=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,SS=/^ *> ?/gm,TS=/^ {2,}\n/,OS=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,mm=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,gm=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,xS=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,AS=/^(?:\n *)*\n/,CS=/\r\n?/g,RS=/^\[\^([^\]]+)](:.*)\n/,PS=/^\[\^([^\]]+)]/,IS=/\f/g,NS=/^\s*?\[(x|\s)\]/,ym=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,vm=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Em=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,pu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,LS=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_m=/^<!--[\s\S]*?(?:-->)/,kS=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,mu=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,BS=/^\{.*\}$/,MS=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,FS=/^<([^ >]+@[^ >]+)>/,US=/^<([^ >]+:\/[^ >]+)>/,DS=/-([a-z])?/gi,bm=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,$S=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,jS=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,HS=/^\[([^\]]*)\] ?\[([^\]]*)\]/,qS=/(\[|\])/g,GS=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,WS=/\t/g,VS=/^ *\| */,zS=/(^ *\||\| *$)/g,YS=/ *$/,KS=/^ *:-+: *$/,QS=/^ *:-+ *$/,XS=/^ *-+: *$/,JS=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ZS=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,eT=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,tT=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,rT=/^\\([^0-9A-Za-z\s])/,nT=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,iT=/^\n+/,oT=/^([ \t]*)/,aT=/\\([^\\])/g,rd=/ *\n+$/,sT=/(?:^|\n)( *)$/,Gu="(?:\\d+\\.)",Wu="(?:[*+-])";function wm(e){return"( *)("+(e===1?Gu:Wu)+") +"}const Sm=wm(1),Tm=wm(2);function Om(e){return new RegExp("^"+(e===1?Sm:Tm))}const uT=Om(1),cT=Om(2);function xm(e){return new RegExp("^"+(e===1?Sm:Tm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Gu:Wu)+" )[^\\n]*)*(\\n|$)","gm")}const Am=xm(1),Cm=xm(2);function Rm(e){const t=e===1?Gu:Wu;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Pm=Rm(1),Im=Rm(2);function nd(e,t){const n=t===1,r=n?Pm:Im,o=n?Am:Cm,i=n?uT:cT;return{t(s,a,l){const f=sT.exec(l);return f&&(a.o||!a._&&!a.u)?r.exec(s=f[1]+s):null},i:ve.HIGH,l(s,a,l){const f=n?+s[2]:void 0,u=s[0].replace(wS,`
91
+ `).match(o);let h=!1;return{p:u.map(function(d,c){const p=i.exec(d)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),_=d.replace(m,"").replace(i,""),T=c===u.length-1,E=_.indexOf(`
92
+
93
+ `)!==-1||T&&h;h=E;const b=l._,A=l.o;let w;l.o=!0,E?(l._=!1,w=_.replace(rd,`
94
+
95
+ `)):(l._=!0,w=_.replace(rd,""));const N=a(w,l);return l._=b,l.o=A,N}),m:n,g:f}},h:(s,a,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(f,u){return e("li",{key:u},a(f,l))}))}}const lT=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,fT=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Nm=[pm,mm,gm,ym,Em,vm,_m,bm,Am,Pm,Cm,Im],dT=[...Nm,/^[^\n]+(?: \n|\n{2,})/,pu,mu];function hT(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 pT(e){return XS.test(e)?"right":KS.test(e)?"center":QS.test(e)?"left":null}function id(e,t,n){const r=n.$;n.$=!0;const o=t(e.trim(),n);n.$=r;let i=[[]];return o.forEach(function(s,a){s.type==="tableSeparator"?a!==0&&a!==o.length-1&&i.push([]):(s.type!=="text"||o[a+1]!=null&&o[a+1].type!=="tableSeparator"||(s.v=s.v.replace(YS,"")),i[i.length-1].push(s))}),i}function mT(e,t,n){n._=!0;const r=id(e[1],t,n),o=e[2].replace(zS,"").split("|").map(pT),i=function(s,a,l){return s.trim().split(`
96
+ `).map(function(f){return id(f,a,l)})}(e[3],t,n);return n._=!1,{S:o,A:i,L:r,type:"table"}}function od(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function hr(e){return function(t,n){return n._?e.exec(t):null}}function pr(e){return function(t,n){return n._||n.u?e.exec(t):null}}function er(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function Mi(e){return function(t){return e.exec(t)}}function gT(e,t,n){if(t._||t.u||n&&!n.endsWith(`
97
+ `))return null;let r="";e.split(`
98
+ `).every(i=>!Nm.some(s=>s.test(i))&&(r+=i+`
99
+ `,i.trim()));const o=r.trimEnd();return o==""?null:[r,o]}function _n(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 ad(e){return e.replace(aT,"$1")}function Po(e,t,n){const r=n._||!1,o=n.u||!1;n._=!0,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function yT(e,t,n){const r=n._||!1,o=n.u||!1;n._=!1,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function vT(e,t,n){return n._=!1,e(t,n)}const Rs=(e,t,n)=>({v:Po(t,e[1],n)});function Ps(){return{}}function Is(){return null}function ET(...e){return e.filter(Boolean).join(" ")}function Ns(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}var ve;function _T(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||hT,t.namedCodesToUnicode=t.namedCodesToUnicode?zr({},td,t.namedCodesToUnicode):td;const n=t.createElement||Oe.createElement;function r(c,p,...m){const _=Ns(t.overrides,`${c}.props`,{});return n(function(T,E){const b=Ns(E,T);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:Ns(E,`${T}.component`,T):T}(c,t.overrides),zr({},p,_,{className:ET(p==null?void 0:p.className,_.className)||void 0}),...m)}function o(c){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=GS.test(c)===!1);const m=u(f(p?c:`${c.trimEnd().replace(iT,"")}
100
+
101
+ `,{_: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 T;if(m.length>1||t.forceWrapper)T=m;else{if(m.length===1)return T=m[0],typeof T=="string"?r("span",{key:"outer"},T):T;T=null}return Oe.createElement(_,{key:"outer"},T)}function i(c){const p=c.match(_S);return p?p.reduce(function(m,_,T){const E=_.indexOf("=");if(E!==-1){const b=function(F){return F.indexOf("-")!==-1&&F.match(kS)===null&&(F=F.replace(DS,function(M,W){return W.toUpperCase()})),F}(_.slice(0,E)).trim(),A=function(F){const M=F[0];return(M==='"'||M==="'")&&F.length>=2&&F[F.length-1]===M?F.slice(1,-1):F}(_.slice(E+1).trim()),w=ed[b]||b,N=m[w]=function(F,M){return F==="style"?M.split(/;\s?/).reduce(function(W,q){const V=q.slice(0,q.indexOf(":"));return W[V.replace(/(-[a-z])/g,j=>j[1].toUpperCase())]=q.slice(V.length+1).trim(),W},{}):F==="href"?_n(M):(M.match(BS)&&(M=M.slice(1,M.length-1)),M==="true"||M!=="false"&&M)}(b,A);typeof N=="string"&&(pu.test(N)||mu.test(N))&&(m[w]=Oe.cloneElement(o(N.trim()),{key:T}))}else _!=="style"&&(m[ed[_]||_]=!0);return m},{}):null}const s=[],a={},l={blockQuote:{t:er(pm),i:ve.HIGH,l:(c,p,m)=>({v:p(c[0].replace(SS,""),m)}),h:(c,p,m)=>r("blockquote",{key:m.k},p(c.v,m))},breakLine:{t:Mi(TS),i:ve.HIGH,l:Ps,h:(c,p,m)=>r("br",{key:m.k})},breakThematic:{t:er(OS),i:ve.HIGH,l:Ps,h:(c,p,m)=>r("hr",{key:m.k})},codeBlock:{t:er(gm),i:ve.MAX,l:c=>({v:c[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(c,p,m)=>r("pre",{key:m.k},r("code",zr({},c.O,{className:c.M?`lang-${c.M}`:""}),c.v))},codeFenced:{t:er(mm),i:ve.MAX,l:c=>({O:i(c[3]||""),v:c[4],M:c[2]||void 0,type:"codeBlock"})},codeInline:{t:pr(xS),i:ve.LOW,l:c=>({v:c[2]}),h:(c,p,m)=>r("code",{key:m.k},c.v)},footnote:{t:er(RS),i:ve.MAX,l:c=>(s.push({I:c[2],j:c[1]}),{}),h:Is},footnoteReference:{t:hr(PS),i:ve.HIGH,l:c=>({v:c[1],B:`#${t.slugify(c[1])}`}),h:(c,p,m)=>r("a",{key:m.k,href:_n(c.B)},r("sup",{key:m.k},c.v))},gfmTask:{t:hr(NS),i:ve.HIGH,l:c=>({R:c[1].toLowerCase()==="x"}),h:(c,p,m)=>r("input",{checked:c.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:er(t.enforceAtxHeadings?vm:ym),i:ve.HIGH,l:(c,p,m)=>({v:Po(p,c[2],m),T:t.slugify(c[2]),C:c[1].length}),h:(c,p,m)=>r(`h${c.C}`,{id:c.T,key:m.k},p(c.v,m))},headingSetext:{t:er(Em),i:ve.MAX,l:(c,p,m)=>({v:Po(p,c[1],m),C:c[2]==="="?1:2,type:"heading"})},htmlComment:{t:Mi(_m),i:ve.HIGH,l:()=>({}),h:Is},image:{t:pr(fT),i:ve.HIGH,l:c=>({D:c[1],B:ad(c[2]),F:c[3]}),h:(c,p,m)=>r("img",{key:m.k,alt:c.D||void 0,title:c.F||void 0,src:_n(c.B)})},link:{t:hr(lT),i:ve.LOW,l:(c,p,m)=>({v:yT(p,c[1],m),B:ad(c[2]),F:c[3]}),h:(c,p,m)=>r("a",{key:m.k,href:_n(c.B),title:c.F},p(c.v,m))},linkAngleBraceStyleDetector:{t:hr(US),i:ve.MAX,l:c=>({v:[{v:c[1],type:"text"}],B:c[1],type:"link"})},linkBareUrlDetector:{t:(c,p)=>p.N?null:hr(MS)(c,p),i:ve.MAX,l:c=>({v:[{v:c[1],type:"text"}],B:c[1],F:void 0,type:"link"})},linkMailtoDetector:{t:hr(FS),i:ve.MAX,l(c){let p=c[1],m=c[1];return bS.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:nd(r,1),unorderedList:nd(r,2),newlineCoalescer:{t:er(AS),i:ve.LOW,l:Ps,h:()=>`
102
+ `},paragraph:{t:gT,i:ve.LOW,l:Rs,h:(c,p,m)=>r("p",{key:m.k},p(c.v,m))},ref:{t:hr($S),i:ve.MAX,l:c=>(a[c[1]]={B:c[2],F:c[4]},{}),h:Is},refImage:{t:pr(jS),i:ve.MAX,l:c=>({D:c[1]||void 0,P:c[2]}),h:(c,p,m)=>r("img",{key:m.k,alt:c.D,src:_n(a[c.P].B),title:a[c.P].F})},refLink:{t:hr(HS),i:ve.MAX,l:(c,p,m)=>({v:p(c[1],m),Z:p(c[0].replace(qS,"\\$1"),m),P:c[2]}),h:(c,p,m)=>a[c.P]?r("a",{key:m.k,href:_n(a[c.P].B),title:a[c.P].F},p(c.v,m)):r("span",{key:m.k},p(c.Z,m))},table:{t:er(bm),i:ve.HIGH,l:mT,h:(c,p,m)=>r("table",{key:m.k},r("thead",null,r("tr",null,c.L.map(function(_,T){return r("th",{key:T,style:od(c,T)},p(_,m))}))),r("tbody",null,c.A.map(function(_,T){return r("tr",{key:T},_.map(function(E,b){return r("td",{key:b,style:od(c,b)},p(E,m))}))})))},tableSeparator:{t:function(c,p){return p.$?(p._=!0,VS.exec(c)):null},i:ve.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Mi(nT),i:ve.MIN,l:c=>({v:c[0].replace(LS,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:c=>c.v},textBolded:{t:pr(JS),i:ve.MED,l:(c,p,m)=>({v:p(c[2],m)}),h:(c,p,m)=>r("strong",{key:m.k},p(c.v,m))},textEmphasized:{t:pr(ZS),i:ve.LOW,l:(c,p,m)=>({v:p(c[2],m)}),h:(c,p,m)=>r("em",{key:m.k},p(c.v,m))},textEscaped:{t:pr(rT),i:ve.HIGH,l:c=>({v:c[1],type:"text"})},textMarked:{t:pr(eT),i:ve.LOW,l:Rs,h:(c,p,m)=>r("mark",{key:m.k},p(c.v,m))},textStrikethroughed:{t:pr(tT),i:ve.LOW,l:Rs,h:(c,p,m)=>r("del",{key:m.k},p(c.v,m))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:Mi(pu),i:ve.HIGH,l(c,p,m){const[,_]=c[3].match(oT),T=new RegExp(`^${_}`,"gm"),E=c[3].replace(T,""),b=(A=E,dT.some(M=>M.test(A))?vT:Po);var A;const w=c[1].toLowerCase(),N=ES.indexOf(w)!==-1;m.N=m.N||w==="a";const F=N?c[3]:b(p,E,m);return m.N=!1,{O:i(c[2]),v:F,G:N,H:N?w:c[1]}},h:(c,p,m)=>r(c.H,zr({key:m.k},c.O),c.G?c.v:p(c.v,m))},l.htmlSelfClosing={t:Mi(mu),i:ve.HIGH,l:c=>({O:i(c[2]||""),H:c[1]}),h:(c,p,m)=>r(c.H,zr({},c.O,{key:m.k}))});const f=function(c){let p=Object.keys(c);function m(_,T){let E=[],b="";for(;_;){let A=0;for(;A<p.length;){const w=p[A],N=c[w],F=N.t(_,T,b);if(F){const M=F[0];_=_.substring(M.length);const W=N.l(F,m,T);W.type==null&&(W.type=w),E.push(W),b=M;break}A++}}return E}return p.sort(function(_,T){let E=c[_].i,b=c[T].i;return E!==b?E-b:_<T?-1:1}),function(_,T){return m(function(E){return E.replace(CS,`
103
+ `).replace(IS,"").replace(WS," ")}(_),T)}}(l),u=(h=function(c){return function(p,m,_){return c[p.type].h(p,m,_)}}(l),function c(p,m={}){if(Array.isArray(p)){const _=m.k,T=[];let E=!1;for(let b=0;b<p.length;b++){m.k=b;const A=c(p[b],m),w=typeof A=="string";w&&E?T[T.length-1]+=A:A!==null&&T.push(A),E=w}return m.k=_,T}return h(p,c,m)});var h;const d=o(e);return s.length?r("div",null,d,r("footer",{key:"footer"},s.map(function(c){return r("div",{id:t.slugify(c.j),key:c.j},c.j,u(f(c.I,{_:!0})))}))):d}(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"})(ve||(ve={}));const Zo=e=>{let{children:t,options:n}=e,r=function(o,i){if(o==null)return{};var s,a,l={},f=Object.keys(o);for(a=0;a<f.length;a++)i.indexOf(s=f[a])>=0||(l[s]=o[s]);return l}(e,vS);return Oe.cloneElement(_T(t,n),r)};const nr=({variant:e="primary",className:t="",children:n,...r})=>C.jsx("div",{className:se("highlighted-text-box",e,t),...r,children:n});const Lm=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let o=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,s=Ki(i);if(i&&typeof n=="object"&&typeof s=="number"){const u=Object.assign({},n.breakpoints),h=Np(Object.keys(u));o=Lp(s,h,u)}const{breakpoints:a,text:l,...f}=n;return C.jsx(nr,{variant:"subtle",className:se("empty-state-box",e,r),children:C.jsxs(C.Fragment,{children:[t&&C.jsx(Zo,{options:{forceBlock:!0},children:t}),o&&typeof n=="object"&&C.jsx(ut,{...f,variant:n.variant?n.variant:"secondary",children:l})]})})};const gu=({children:e,...t})=>C.jsx("p",{...t,children:e}),km={q:gu,blockquote:gu};for(let e=1;e<=6;e++)km[`h${e}`]={component:gu,props:{className:"title"}};const Bm=({type:e="default",className:t="",heading:n=!1,children:r})=>C.jsxs("div",{className:se("helper-text-box text-small",e,t),children:[n&&C.jsx("p",{className:"title",children:n}),typeof r=="string"?C.jsx(Zo,{options:{wrapper:G.Fragment,forceBlock:!0,overrides:km},children:r}):C.jsx("p",{children:r})]});const bT=({className:e="",show:t=!1,hide:n=!1,text:r,children:o})=>{const i=Ie(),s=G.useRef(null),[a,l]=G.useState(""),[f,u]=G.useState("closed");G.useEffect(()=>{const c=s.current;if(c)return c.addEventListener("transitionend",h),()=>{c.removeEventListener("transitionend",h)}},[]),G.useEffect(()=>{if(!r||typeof r!="string")return;const c=r.split(`
104
+ `);l(c.length<3?`${r.substring(0,400)}...`:c.slice(0,3).join(`
105
+ `))},[r]),G.useEffect(()=>{f==="ready-to-close"&&u("closing")},[f]);const h=({propertyName:c})=>{c==="max-height"&&u(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!r)return null;const d=["opening","open"].includes(f);return C.jsxs(nr,{variant:"subtle",className:se("hide-show-text-box",e),children:[C.jsxs("div",{ref:s,className:se("content",f),children:[C.jsx(Zo,{options:{forceBlock:!0},children:f==="closed"?a:r}),f!=="closed"&&o]}),C.jsx("p",{className:"cta",children:C.jsx(ut,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:se({"rotate-180":d}),onClick:()=>{u(d?"ready-to-close":"opening")},children:d?n||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},wT=()=>G.Fragment,ST=({children:e})=>C.jsx(nr,{variant:"secondary",children:e}),TT=["span","strong","h1","h2","h3","h4","h5","h6","p"],OT=({children:e})=>{const t=Ie();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const i of G.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if(G.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const s of G.Children.toArray(i.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&G.isValidElement(s)){const a=s.type;if(TT.includes(a)){for(n=s.props.children;typeof n!="string"&&(Array.isArray(n)&&n[0].props&&n[0].props.children&&n[0].props.children[0]);)n=n[0].props.children[0];break}}}}else r.push(i);const o=n?n.toString():"";return C.jsx(qu,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:r.map(i=>i)})},xT=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return C.jsx(nr,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return C.jsx(nr,{variant:"primary",children:e});case"pink-textbox":return C.jsx(nr,{variant:"tertiary",children:e});default:return C.jsx("div",{...t,children:e})}return C.jsx("div",{...t,children:e})},AT=e=>{const t=Ie(),n=Date.now().toString();let r="default";const o=e.src;return o.includes("youtube")||o.includes("vimeo")?r="video":o.includes("riddle")||o.includes("sli.do")?r="poll":o.includes("padlet")&&(r="padlet"),C.jsxs(C.Fragment,{children:[C.jsx(it,{children:C.jsx("a",{href:`#content-after-iframe-${n}`,children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})})}),C.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),C.jsx("span",{id:`content-after-iframe-${n}`,tabIndex:-1})]})},sd=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},CT=({children:e,...t})=>{let n={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(n.target="_blank");let r=e,o=!1;for(const i of G.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&G.isValidElement(i)){const s=i.type;if(["button","center","span","strong"].includes(s)&&i.props&&i.props.children&&i.props.children[0])for((s==="button"||sd(i.props.children[0])==="button")&&(o=!0),r=i.props.children[0];r&&typeof r!="string"&&!(typeof r=="boolean"||typeof r=="number"||!G.isValidElement(r));)if(r.props&&r.props.children&&r.props.children[0])r=r.props.children[0],r&&sd(r)==="button"&&(o=!0);else break}return o?(n={...n,className:"button primary medium"},C.jsx("p",{className:"center",children:C.jsx(ut,{variant:"primary",size:"medium",...n,children:r})})):C.jsx("a",{...n,children:r})};const Mm=({className:e="",options:t={},children:n})=>{n=n.replace(/^<br\/?>/,"");const r={wrapper:G.Fragment,forceBlock:!0,overrides:{a:CT,CollapsibleSection:qu,TextBox:nr,CaseStudy:ST,style:wT,details:OT,div:xT,iframe:AT}};return C.jsx("div",{className:se("markdown-text",e),children:C.jsx(Zo,{options:{...r,...t},children:n})})};const RT=({className:e="",children:t})=>C.jsx("span",{className:se("pill",e),children:t});const PT=({progress:e=0,text:t=!1,className:n=""})=>{const r=Ie(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return C.jsx("span",{className:se(`progress-bar section-${o}`,n),style:i,children:C.jsx(it,{children:t?`${e} ${t}`:r.formatMessage({id:"progressBar"},{number:e})})})},Fm=G.memo(PT);const Ls="loadingBlock_",IT=({progress:e=0,steps:t=!1,className:n=""})=>{const r=Ie();t||(t={0:{text:r.formatMessage({id:`${Ls}loading`})},75:{text:r.formatMessage({id:`${Ls}almostDone`})},100:{text:r.formatMessage({id:`${Ls}complete`})}});let o=null;const i=Object.keys(t);for(let a=0;a<i.length&&!(e<parseInt(i[a]));a++)o=i[a];const s=o&&t[o].icon?{"--icon":`url(${$o}icons/${t[o].icon}.svg)`}:{};return C.jsxs(nr,{className:se("loading-block",n,{"has-icon":o&&t[o].icon}),variant:"subtle",style:s,children:[o&&C.jsx("span",{className:"step",children:t[o].text}),C.jsx(Fm,{progress:e})]})},NT=G.memo(IT);const vr=({element:e="div",className:t="",...n})=>C.jsx(Eu,{element:e,className:se("loading-placeholder",t),...n});const yu={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"]},Um=(e,t)=>e in yu?C.jsx("div",{className:e,children:yu[e].map((n,r)=>Um(n,r))},t):C.jsx(vr,{className:e},t),Dm=({layout:e="overview-page"})=>C.jsx("div",{className:se("loading-state",e),children:yu[e].map((t,n)=>Um(t,n))}),$m=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):""},To=["#5AB6A3","#A2D7AF","#806056","#3962B3"],LT=e=>{const t=Math.ceil(26/To.length),n=$m(e).toLowerCase();if(n==="")return To[0];const r=n.charCodeAt(0)-96;for(let o=0;o<To.length;o++)if(r<=t*(o+1))return To[o]};const ud=256,ea=({className:e="",src:t="",name:n,alt:r,width:o=ud,height:i=ud,...s})=>{const[a,l]=G.useState(!1),f=G.useRef(null);return G.useEffect(()=>{const u=f.current;if(!u)return;const h=u.getContext("2d");if(!h)return;const d=o,c=i;typeof window<"u"&&window.devicePixelRatio&&(u.width=d*window.devicePixelRatio,u.height=c*window.devicePixelRatio,h.scale(window.devicePixelRatio,window.devicePixelRatio)),h.fillStyle=LT(n),h.fillRect(0,0,d,c),h.font=`${d/3}px Arial`,h.textAlign="center",h.fillStyle="white",h.fillText($m(n),d/2,c/1.6)},[n]),C.jsxs("figure",{className:se("profile-picture",e,{error:a}),...s,children:[t!==""&&!a&&C.jsx("img",{src:t,alt:r||n,onError:()=>{l(!0)},width:o,height:i}),(t===""||a)&&C.jsx("canvas",{ref:f})]})},Vu=e=>e==="apolitical"?{image:`${$o}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${$o}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id||e.slug}`,image:e.image&&e.image.thumbnail},kT=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const o=e!=="",i=t!=="",s=n!=="";if(!o&&!i&&!s)return"";const a=`${e}${o&&i?` — ${t}`:t}`;let l=`${a}${(o||i)&&s?`, ${n}`:n}`;return l.length>r&&(l=a),l.length>r&&(l=hm(l,r)),l};const zu=({member:e="community",additionalContent:t=!1,gtmContext:n="member",gtmType:r="member-click",className:o=""})=>{const i=Ie(),s=Vu(e);s.name||(s.name=i.formatMessage({id:`member_${typeof e=="string"?e:"community"}`}));const{name:a,url:l,image:f}=s,u=kT(s),h=t&&t.createdAt?Bb(t.createdAt):!1;return C.jsx("div",{className:se("member text-medium",o),children:C.jsxs(kp,{href:l,gtmType:r,gtmContext:n,children:[C.jsx(ea,{name:a,src:f}),C.jsxs("p",{className:"details",children:[C.jsx("strong",{children:a}),t&&C.jsxs("span",{className:"additional-content",children:[t.createdAt&&h&&C.jsx("span",{className:"date",title:Df(t&&t.createdAt),"aria-label":Df(t&&t.createdAt),children:i.formatMessage({id:`dates_${h.path}`},{number:h.number})}),t.didEdit&&C.jsx("em",{children:i.formatMessage({id:"discussion_edited"})})]}),u&&C.jsx("small",{children:u})]})]})})};const cd={small:24,medium:48},jm=({element:e="div",contributors:t=[],styling:{showText:n,size:r,showGap:o,showPlaceholders:i}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:a=""})=>{const l=Ie();return t.length===0?null:G.createElement(e,{className:se("contributors",a,r,{"has-gap":o}),children:C.jsxs(C.Fragment,{children:[C.jsx("ul",{children:t.map((f,u)=>{let h,d="";if(u<s){const{name:c="",image:p=""}=Vu(f);if(i)return C.jsx(vr,{element:"li",className:"contributor"},u);h=C.jsx(ea,{name:c,src:p,width:cd[r||"medium"],height:cd[r||"medium"]})}else u===s&&(h=C.jsxs("small",{children:["+",t.length-s]}),d="number-left");return h?C.jsx("li",{className:se("contributor",d),children:h},u):null})}),n&&C.jsx("span",{className:"label",children:typeof n=="string"?n:t.length===1?typeof t[0]=="string"?l.formatMessage({id:`member_${t[0]}`}):hm(t[0].name||"",20):null})]})})},BT=({children:e,locale:t,messages:n})=>{const r=t||"en",o={...Ub[r],...n||{}};return C.jsx(pS,{locale:r,messages:o,children:e})},Bn=G.createContext(null),MT=({children:e,user:t})=>C.jsx(Bn.Provider,{value:t,children:e});const Hm=({isMember:e=!1,functions:{join:t,leave:n}={join:()=>{},leave:()=>{}}})=>{const r=Ie(),o=G.useContext(Bn),i=o&&typeof o.id=="string",[s,a]=G.useState(e);return C.jsx(ut,{variant:s?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:s?{icon:"tick",position:"left"}:!1,onClick:async()=>{s?typeof n=="function"&&await n():typeof t=="function"&&await t(),a(!s)},className:"join-community-button",disabled:!i,children:r.formatMessage({id:`joinCommunityButton${s?"_member":""}`})})};const FT=({className:e="",...t})=>{const n=Ie();return C.jsxs("div",{className:se("community-details",e),children:[C.jsx(Hm,{...t}),C.jsxs("div",{className:"additional-details",children:[C.jsx("hr",{}),C.jsx("h3",{children:n.formatMessage({id:"communityDetails_members"})}),C.jsx(jm,{contributors:[{},{},{},{},{}],styling:{size:"medium",showGap:!0,showPlaceholders:!0},cutoff:5})]})]})},UT={showThread:!1,showForm:!1},Yu=G.createContext(UT),DT=({children:e})=>{const[t,n]=G.useState({showThread:!1,showForm:!1});return C.jsx(Yu.Provider,{value:{...t,updateConversation:n},children:e})};function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vu.apply(this,arguments)}function $T(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var jT=G.useLayoutEffect,HT=function(t){var n=Oe.useRef(t);return jT(function(){n.current=t}),n},ld=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},qT=function(t,n){var r=G.useRef();return G.useCallback(function(o){t.current=o,r.current&&ld(r.current,null),r.current=n,n&&ld(n,o)},[n])},fd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},GT=function(t){Object.keys(fd).forEach(function(n){t.style.setProperty(n,fd[n],"important")})},dd=GT,rt=null,hd=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function WT(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),rt||(rt=document.createElement("textarea"),rt.setAttribute("tabindex","-1"),rt.setAttribute("aria-hidden","true"),dd(rt)),rt.parentNode===null&&document.body.appendChild(rt);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(d){var c=d;rt.style[c]=s[c]}),dd(rt),rt.value=t;var l=hd(rt,e);rt.value=t,l=hd(rt,e),rt.value="x";var f=rt.scrollHeight-o,u=f*n;a==="border-box"&&(u=u+o+i),l=Math.max(u,l);var h=f*r;return a==="border-box"&&(h=h+o+i),l=Math.min(h,l),[l,f]}var pd=function(){},VT=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},zT=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],YT=!!document.documentElement.currentStyle,KT=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=VT(zT,n),o=r.boxSizing;if(o==="")return null;YT&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),s=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:s}},QT=KT;function qm(e,t,n){var r=HT(n);Oe.useLayoutEffect(function(){var o=function(s){return r.current(s)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var XT=function(t){qm(window,"resize",t)},JT=function(t){qm(document.fonts,"loadingdone",t)},ZT=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],eO=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,a=s===void 0?pd:s,l=t.onHeightChange,f=l===void 0?pd:l,u=$T(t,ZT),h=u.value!==void 0,d=Oe.useRef(null),c=qT(d,n),p=Oe.useRef(0),m=Oe.useRef(),_=function(){var b=d.current,A=r&&m.current?m.current:QT(b);if(A){m.current=A;var w=WT(A,b.value||b.placeholder||"x",i,o),N=w[0],F=w[1];p.current!==N&&(p.current=N,b.style.setProperty("height",N+"px","important"),f(N,{rowHeight:F}))}},T=function(b){h||_(),a(b)};return Oe.useLayoutEffect(_),XT(_),JT(_),Oe.createElement("textarea",vu({},u,{onChange:T,ref:c}))},tO=Oe.forwardRef(eO);let Oo=null;const pt="discussion_form_",Gm=({content:e={type:"response",slugs:{}},meta:t={isLoading:!1,isInWrapper:!1,isEditing:!1},inputRef:n,maxLength:r=5e4,minRows:o=4,forceShow:i={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:a="DiscussionForm"})=>{var M,W;const l=Ie(),f=G.useContext(Bn),[u,h]=G.useState(t.isEditing&&t.isEditing.text||""),[d,c]=G.useState(i.error||!1),[p,m]=G.useState(!1),_=G.useRef(null);if(n||(n=_),t.isLoading)return C.jsx(vr,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const T=q=>{const V=q.target.value;h(V);let j;!f||!f.id?j=dr(l.formatMessage,`${pt}error_loggedOut`,e.type,"action"):V.length>=r&&(j=`${pt}error_tooLong`),j?c(j):d&&c(!1)};let E=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const q=e.type==="response"?((M=e.slugs)==null?void 0:M.question)||"":((W=e.slugs)==null?void 0:W.answer)||"";q&&(E=`${E}-${q.slice(-15)}`)}const b=async q=>{var j;if(q.preventDefault(),q.stopPropagation(),w)return;Oo&&clearTimeout(Oo),m("submitting");const V=window.location.pathname;try{let Y;switch(e.type){case"post":Y=await s.create({content:u});break;case"question":Y=await s.create({title:u,authorId:f&&f.id,...(j=s.props)==null?void 0:j.create});break;case"response":Y=await s.create({question:e.slugs.question},{body:u,authorId:f&&f.id,contentPath:V});break;case"reply":Y=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:u,authorId:f&&f.id,contentPath:V});break;default:break}await Mb(1e3),s.callback&&await s.callback(Y),Oo=setTimeout(()=>{h(""),m("submitted"),A()},500)}catch(Y){const oe=Y;let K=`${pt}error`;oe.message.includes("entry already exists")&&(K=dr(l.formatMessage,`${pt}error_alreadyExists`,e.type,"action")),oe.message.includes("429")?K=dr(l.formatMessage,`${pt}error_tooMany`,e.type,"action"):oe.message.includes("400")&&(K=`${pt}error`),c(K),A()}},A=()=>{Oo=setTimeout(()=>{c(!1),m(!1)},5e3)},w=!u||!$b(u),N=p==="submitting",F=[];return(t.isEditing&&!N||i.cancel)&&F.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!i.cancel&&(!f||!f.id||!u),children:l.formatMessage({id:`${pt}cancel`})}),F.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:q=>{if(t.isEditing){m("submitting"),s.handleSaveEdit&&s.handleSaveEdit(_.current&&"value"in _.current?_.current.value:"");return}b(q)},className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`${t.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!f||!f.id||w||N||t.isEditing&&u===t.isEditing.text,children:l.formatMessage({id:`${pt}${N?t.isEditing?"saving":"posting":t.isEditing?"save":"post"}`})}),C.jsxs("form",{id:E,className:se("discussion-card discussion-form",{"no-styling":t.isInWrapper&&t.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[!t.isEditing&&["question"].includes(e.type)&&C.jsx("h2",{children:dr(l.formatMessage,`${pt}title`,e.type,"action")}),C.jsx(zu,{member:f||"community",gtmContext:a,gtmType:"profile-click"}),C.jsx(it,{element:"label",showOnFocus:!1,htmlFor:`${E}-input`,children:dr(l.formatMessage,`${pt}label`,e.type,"action")}),C.jsx(tO,{ref:n,id:`${E}-input`,name:e.type,placeholder:dr(l.formatMessage,`${pt}placeholder`,e.type,"action"),onChange:T,value:u,maxLength:r,"aria-invalid":!!d,"aria-errormessage":"error-message",minRows:o,autoFocus:!!t.isEditing}),C.jsx("small",{children:dr(l.formatMessage,`${pt}explainer`,e.type,"action",{a:q=>C.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":"community-guidelines-link",children:q})})}),p==="submitted"&&C.jsx(hu,{className:"success","data-testid":"success",children:dr(l.formatMessage,`${pt}success`,e.type,"action")}),d&&C.jsx(hu,{id:"error-message",className:"error","data-testid":"error",children:i.error?i.error:typeof d=="string"?d.includes(" ")?d:l.formatMessage({id:d},{action:l.formatMessage({id:`discussion_action_${e.type}`}),maxLength:r}):d}),C.jsx(Xo,{buttons:F})]})},rO=({question:e,answer:t,reply:n})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...n&&{replySlug:n}});let $i=!1;const ks=()=>{$i!==!1&&(clearTimeout($i),$i=!1)},Wm=({element:e="p",likes:t=0,isShort:n=!0,userLiked:r=!1,content:o={type:"reply",slugs:{}},canLike:i=!0,createLike:s=()=>{},deleteLike:a=()=>{}})=>{const l=Ie();G.useEffect(()=>{d(r)},[r]);const[f,u]=G.useState(t),[h,d]=G.useState(r),[c,p]=G.useState(!1),m=window.location.pathname,_=E=>{if(E.preventDefault(),E.stopPropagation(),$i)return ks(),!1;if(ks(),c||!i)return!1;$i=setTimeout(T,350)},T=async()=>{if(ks(),c||!i)return!1;let E=h?f-1:f+1;E<0&&(E=0),p(!0),u(E),d(!h);try{if(o&&o.slugs){const b=rO(o.slugs);h?await a(b):await s(b,{contentPath:m})}}catch{u(t),d(r)}finally{p(!1)}};return G.createElement(e,{className:se("likes-wrapper text-medium",{"show-spinner":c,"is-liked":h,disabled:!i}),onClick:_,children:C.jsxs(C.Fragment,{children:[C.jsx(ut,{variant:"tertiary",size:"medium",icon:{icon:h?"heart":"heart_empty",animate:"bounce"},className:se({"do-animation":h&&!r}),screenreaderText:i?l.formatMessage({id:`discussion_${o.type}_likes_${h?"unlike":"like"}`}):!1,onClick:_,disabled:!i,"aria-hidden":!i,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${o.type}-click`}),C.jsx("span",{className:"number-of-likes","data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:f})})]})})};var jo={exports:{}};jo.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",f="[object AsyncFunction]",u="[object Boolean]",h="[object Date]",d="[object Error]",c="[object Function]",p="[object GeneratorFunction]",m="[object Map]",_="[object Number]",T="[object Null]",E="[object Object]",b="[object Promise]",A="[object Proxy]",w="[object RegExp]",N="[object Set]",F="[object String]",M="[object Symbol]",W="[object Undefined]",q="[object WeakMap]",V="[object ArrayBuffer]",j="[object DataView]",Y="[object Float32Array]",oe="[object Float64Array]",K="[object Int8Array]",k="[object Int16Array]",z="[object Int32Array]",J="[object Uint8Array]",de="[object Uint8ClampedArray]",X="[object Uint16Array]",ee="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,ce=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,Q={};Q[Y]=Q[oe]=Q[K]=Q[k]=Q[z]=Q[J]=Q[de]=Q[X]=Q[ee]=!0,Q[a]=Q[l]=Q[V]=Q[u]=Q[j]=Q[h]=Q[d]=Q[c]=Q[m]=Q[_]=Q[E]=Q[w]=Q[N]=Q[F]=Q[q]=!1;var re=typeof ae=="object"&&ae&&ae.Object===Object&&ae,Pe=typeof self=="object"&&self&&self.Object===Object&&self,xe=re||Pe||Function("return this")(),at=t&&!t.nodeType&&t,ct=at&&!0&&e&&!e.nodeType&&e,_t=ct&&ct.exports===at,te=_t&&re.process,ze=function(){try{return te&&te.binding&&te.binding("util")}catch{}}(),De=ze&&ze.isTypedArray;function bt(y,O){for(var R=-1,$=y==null?0:y.length,fe=0,ie=[];++R<$;){var pe=y[R];O(pe,R,y)&&(ie[fe++]=pe)}return ie}function Gt(y,O){for(var R=-1,$=O.length,fe=y.length;++R<$;)y[fe+R]=O[R];return y}function Rt(y,O){for(var R=-1,$=y==null?0:y.length;++R<$;)if(O(y[R],R,y))return!0;return!1}function mt(y,O){for(var R=-1,$=Array(y);++R<y;)$[R]=O(R);return $}function br(y){return function(O){return y(O)}}function wt(y,O){return y.has(O)}function gt(y,O){return y==null?void 0:y[O]}function $e(y){var O=-1,R=Array(y.size);return y.forEach(function($,fe){R[++O]=[fe,$]}),R}function St(y,O){return function(R){return y(O(R))}}function tt(y){var O=-1,R=Array(y.size);return y.forEach(function($){R[++O]=$}),R}var Ye=Array.prototype,wr=Function.prototype,S=Object.prototype,g=xe["__core-js_shared__"],v=wr.toString,x=S.hasOwnProperty,P=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),U=S.toString,H=RegExp("^"+v.call(x).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=_t?xe.Buffer:void 0,be=xe.Symbol,we=xe.Uint8Array,Se=S.propertyIsEnumerable,he=Ye.splice,lt=be?be.toStringTag:void 0,ir=Object.getOwnPropertySymbols,Sr=le?le.isBuffer:void 0,Wt=St(Object.keys,Object),Tr=Ot(xe,"DataView"),Vt=Ot(xe,"Map"),Or=Ot(xe,"Promise"),xr=Ot(xe,"Set"),Ar=Ot(xe,"WeakMap"),Pt=Ot(Object,"create"),nn=Ke(Tr),Tt=Ke(Vt),Fn=Ke(Or),Un=Ke(xr),Dn=Ke(Ar),on=be?be.prototype:void 0,Cr=on?on.valueOf:void 0;function Fe(y){var O=-1,R=y==null?0:y.length;for(this.clear();++O<R;){var $=y[O];this.set($[0],$[1])}}function Rr(){this.__data__=Pt?Pt(null):{},this.size=0}function Pr(y){var O=this.has(y)&&delete this.__data__[y];return this.size-=O?1:0,O}function zt(y){var O=this.__data__;if(Pt){var R=O[y];return R===r?void 0:R}return x.call(O,y)?O[y]:void 0}function an(y){var O=this.__data__;return Pt?O[y]!==void 0:x.call(O,y)}function $n(y,O){var R=this.__data__;return this.size+=this.has(y)?0:1,R[y]=Pt&&O===void 0?r:O,this}Fe.prototype.clear=Rr,Fe.prototype.delete=Pr,Fe.prototype.get=zt,Fe.prototype.has=an,Fe.prototype.set=$n;function je(y){var O=-1,R=y==null?0:y.length;for(this.clear();++O<R;){var $=y[O];this.set($[0],$[1])}}function jn(){this.__data__=[],this.size=0}function Hn(y){var O=this.__data__,R=sr(O,y);if(R<0)return!1;var $=O.length-1;return R==$?O.pop():he.call(O,R,1),--this.size,!0}function qn(y){var O=this.__data__,R=sr(O,y);return R<0?void 0:O[R][1]}function Gn(y){return sr(this.__data__,y)>-1}function Ir(y,O){var R=this.__data__,$=sr(R,y);return $<0?(++this.size,R.push([y,O])):R[$][1]=O,this}je.prototype.clear=jn,je.prototype.delete=Hn,je.prototype.get=qn,je.prototype.has=Gn,je.prototype.set=Ir;function Je(y){var O=-1,R=y==null?0:y.length;for(this.clear();++O<R;){var $=y[O];this.set($[0],$[1])}}function Wn(){this.size=0,this.__data__={hash:new Fe,map:new(Vt||je),string:new Fe}}function Vn(y){var O=ft(this,y).delete(y);return this.size-=O?1:0,O}function zn(y){return ft(this,y).get(y)}function Yn(y){return ft(this,y).has(y)}function Kn(y,O){var R=ft(this,y),$=R.size;return R.set(y,O),this.size+=R.size==$?0:1,this}Je.prototype.clear=Wn,Je.prototype.delete=Vn,Je.prototype.get=zn,Je.prototype.has=Yn,Je.prototype.set=Kn;function or(y){var O=-1,R=y==null?0:y.length;for(this.__data__=new Je;++O<R;)this.add(y[O])}function sn(y){return this.__data__.set(y,r),this}function ar(y){return this.__data__.has(y)}or.prototype.add=or.prototype.push=sn,or.prototype.has=ar;function st(y){var O=this.__data__=new je(y);this.size=O.size}function Nr(){this.__data__=new je,this.size=0}function Qn(y){var O=this.__data__,R=O.delete(y);return this.size=O.size,R}function Xn(y){return this.__data__.get(y)}function Jn(y){return this.__data__.has(y)}function Zn(y,O){var R=this.__data__;if(R instanceof je){var $=R.__data__;if(!Vt||$.length<n-1)return $.push([y,O]),this.size=++R.size,this;R=this.__data__=new Je($)}return R.set(y,O),this.size=R.size,this}st.prototype.clear=Nr,st.prototype.delete=Qn,st.prototype.get=Xn,st.prototype.has=Jn,st.prototype.set=Zn;function ei(y,O){var R=ur(y),$=!R&&hn(y),fe=!R&&!$&&lr(y),ie=!R&&!$&&!fe&&Fr(y),pe=R||$||fe||ie,me=pe?mt(y.length,String):[],ke=me.length;for(var _e in y)(O||x.call(y,_e))&&!(pe&&(_e=="length"||fe&&(_e=="offset"||_e=="parent")||ie&&(_e=="buffer"||_e=="byteLength"||_e=="byteOffset")||It(_e,ke)))&&me.push(_e);return me}function sr(y,O){for(var R=y.length;R--;)if(dn(y[R][0],O))return R;return-1}function Lr(y,O,R){var $=O(y);return ur(y)?$:Gt($,R(y))}function Yt(y){return y==null?y===void 0?W:T:lt&&lt in Object(y)?xt(y):fn(y)}function un(y){return yt(y)&&Yt(y)==a}function cn(y,O,R,$,fe){return y===O?!0:y==null||O==null||!yt(y)&&!yt(O)?y!==y&&O!==O:ln(y,O,R,$,cn,fe)}function ln(y,O,R,$,fe,ie){var pe=ur(y),me=ur(O),ke=pe?l:dt(y),_e=me?l:dt(O);ke=ke==a?E:ke,_e=_e==a?E:_e;var He=ke==E,Qe=_e==E,Me=ke==_e;if(Me&&lr(y)){if(!lr(O))return!1;pe=!0,He=!1}if(Me&&!He)return ie||(ie=new st),pe||Fr(y)?kr(y,O,R,$,fe,ie):ii(y,O,ke,R,$,fe,ie);if(!(R&o)){var qe=He&&x.call(y,"__wrapped__"),Ue=Qe&&x.call(O,"__wrapped__");if(qe||Ue){var Nt=qe?y.value():y,At=Ue?O.value():O;return ie||(ie=new st),fe(Nt,At,R,$,ie)}}return Me?(ie||(ie=new st),Br(y,O,R,$,fe,ie)):!1}function ti(y){if(!mn(y)||si(y))return!1;var O=pn(y)?H:ce;return O.test(Ke(y))}function ri(y){return yt(y)&&Mr(y.length)&&!!Q[Yt(y)]}function ni(y){if(!ui(y))return Wt(y);var O=[];for(var R in Object(y))x.call(y,R)&&R!="constructor"&&O.push(R);return O}function kr(y,O,R,$,fe,ie){var pe=R&o,me=y.length,ke=O.length;if(me!=ke&&!(pe&&ke>me))return!1;var _e=ie.get(y);if(_e&&ie.get(O))return _e==O;var He=-1,Qe=!0,Me=R&i?new or:void 0;for(ie.set(y,O),ie.set(O,y);++He<me;){var qe=y[He],Ue=O[He];if($)var Nt=pe?$(Ue,qe,He,O,y,ie):$(qe,Ue,He,y,O,ie);if(Nt!==void 0){if(Nt)continue;Qe=!1;break}if(Me){if(!Rt(O,function(At,Qt){if(!wt(Me,Qt)&&(qe===At||fe(qe,At,R,$,ie)))return Me.push(Qt)})){Qe=!1;break}}else if(!(qe===Ue||fe(qe,Ue,R,$,ie))){Qe=!1;break}}return ie.delete(y),ie.delete(O),Qe}function ii(y,O,R,$,fe,ie,pe){switch(R){case j:if(y.byteLength!=O.byteLength||y.byteOffset!=O.byteOffset)return!1;y=y.buffer,O=O.buffer;case V:return!(y.byteLength!=O.byteLength||!ie(new we(y),new we(O)));case u:case h:case _:return dn(+y,+O);case d:return y.name==O.name&&y.message==O.message;case w:case F:return y==O+"";case m:var me=$e;case N:var ke=$&o;if(me||(me=tt),y.size!=O.size&&!ke)return!1;var _e=pe.get(y);if(_e)return _e==O;$|=i,pe.set(y,O);var He=kr(me(y),me(O),$,fe,ie,pe);return pe.delete(y),He;case M:if(Cr)return Cr.call(y)==Cr.call(O)}return!1}function Br(y,O,R,$,fe,ie){var pe=R&o,me=Kt(y),ke=me.length,_e=Kt(O),He=_e.length;if(ke!=He&&!pe)return!1;for(var Qe=ke;Qe--;){var Me=me[Qe];if(!(pe?Me in O:x.call(O,Me)))return!1}var qe=ie.get(y);if(qe&&ie.get(O))return qe==O;var Ue=!0;ie.set(y,O),ie.set(O,y);for(var Nt=pe;++Qe<ke;){Me=me[Qe];var At=y[Me],Qt=O[Me];if($)var Ji=pe?$(Qt,At,Me,O,y,ie):$(At,Qt,Me,y,O,ie);if(!(Ji===void 0?At===Qt||fe(At,Qt,R,$,ie):Ji)){Ue=!1;break}Nt||(Nt=Me=="constructor")}if(Ue&&!Nt){var Lt=y.constructor,fr=O.constructor;Lt!=fr&&"constructor"in y&&"constructor"in O&&!(typeof Lt=="function"&&Lt instanceof Lt&&typeof fr=="function"&&fr instanceof fr)&&(Ue=!1)}return ie.delete(y),ie.delete(O),Ue}function Kt(y){return Lr(y,gn,oi)}function ft(y,O){var R=y.__data__;return ai(O)?R[typeof O=="string"?"string":"hash"]:R.map}function Ot(y,O){var R=gt(y,O);return ti(R)?R:void 0}function xt(y){var O=x.call(y,lt),R=y[lt];try{y[lt]=void 0;var $=!0}catch{}var fe=U.call(y);return $&&(O?y[lt]=R:delete y[lt]),fe}var oi=ir?function(y){return y==null?[]:(y=Object(y),bt(ir(y),function(O){return Se.call(y,O)}))}:yn,dt=Yt;(Tr&&dt(new Tr(new ArrayBuffer(1)))!=j||Vt&&dt(new Vt)!=m||Or&&dt(Or.resolve())!=b||xr&&dt(new xr)!=N||Ar&&dt(new Ar)!=q)&&(dt=function(y){var O=Yt(y),R=O==E?y.constructor:void 0,$=R?Ke(R):"";if($)switch($){case nn:return j;case Tt:return m;case Fn:return b;case Un:return N;case Dn:return q}return O});function It(y,O){return O=O??s,!!O&&(typeof y=="number"||Ve.test(y))&&y>-1&&y%1==0&&y<O}function ai(y){var O=typeof y;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?y!=="__proto__":y===null}function si(y){return!!P&&P in y}function ui(y){var O=y&&y.constructor,R=typeof O=="function"&&O.prototype||S;return y===R}function fn(y){return U.call(y)}function Ke(y){if(y!=null){try{return v.call(y)}catch{}try{return y+""}catch{}}return""}function dn(y,O){return y===O||y!==y&&O!==O}var hn=un(function(){return arguments}())?un:function(y){return yt(y)&&x.call(y,"callee")&&!Se.call(y,"callee")},ur=Array.isArray;function cr(y){return y!=null&&Mr(y.length)&&!pn(y)}var lr=Sr||li;function ci(y,O){return cn(y,O)}function pn(y){if(!mn(y))return!1;var O=Yt(y);return O==c||O==p||O==f||O==A}function Mr(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=s}function mn(y){var O=typeof y;return y!=null&&(O=="object"||O=="function")}function yt(y){return y!=null&&typeof y=="object"}var Fr=De?br(De):ri;function gn(y){return cr(y)?ei(y):ni(y)}function yn(){return[]}function li(){return!1}e.exports=ci})(jo,jo.exports);var nO=jo.exports;const iO=jt(nO),oO=e=>{const t={};return Object.keys(e).forEach(n=>{t[`${n}Slug`]=e[n]}),t},md="discussion_",aO=({content:e,isLoading:t=!1,originalAuthorId:n,functions:{content:{createContent:r,deleteContent:o,updateContent:i},likes:{createLike:s,deleteLike:a}},className:l,gtmContext:f="DiscussionAnswer",locale:u="en",children:h})=>{const d=Ie(),c=G.useContext(Bn),p=G.useContext(Yu),[m,_]=G.useState({body:e&&e.body||"",isEditing:!1,didEdit:e&&e.isEdited||!1}),[T,E]=G.useState("");if(G.useEffect(()=>{_({...m,body:e&&e.body||"",didEdit:e&&e.isEdited||!1})},[e.isEdited]),t||!e||e.type==="answer"&&(!e.slugs||!e.slugs.question))return C.jsx(vr,{className:"discussion-card discussion-post"});const{author:b,createdAt:A,likes:w=0,userLiked:N}=e,F=c&&c.id&&typeof b!="string"&&b.id&&b.id!==c.id||!1,M=async q=>{q||(q=""),E("");try{iO(q,m.body)||await i(oO(e.slugs),{body:q}),_({body:q,isEditing:!1,didEdit:!0})}catch{E(`${md}form_error`)}},W=()=>{p&&p.updateConversation&&p.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const V=`reply-form-${(e.type==="answer"?e.slug:e.slugs.answer||"").toLowerCase().slice(-15)}`,j=document.getElementById(V),Y=document.getElementById(`${V}-input`);Y&&Y.focus(),j&&j.scrollIntoView({behavior:"smooth"})},0)};return C.jsxs("div",{className:se("discussion-post",l),"data-testid":`discussion-${e.type}-thread`,children:[C.jsxs("div",{className:se("discussion-card",e.type,{editing:m.isEditing}),children:[!m.isEditing&&C.jsx(zu,{member:b,additionalContent:{createdAt:A,didEdit:m.didEdit},className:typeof b!="string"&&b.id===n?"highlighted":"",gtmContext:f,gtmType:"profile-click"}),m.isEditing?C.jsx(Gm,{content:{type:e.type,slugs:e.slugs},meta:{isLoading:t,isInWrapper:!0,isEditing:{text:m.body}},forceShow:{error:T!==""&&T!=="delete-error"?d.formatMessage({id:T},{action:d.formatMessage({id:`discussion_action_${e.type}`})}):!1},functions:{create:r,handleSaveEdit:M,handleCancel:()=>{E(""),_({...m,isEditing:!1})}},gtmContext:`${f}Form`}):C.jsx(Mm,{children:m.body}),!m.isEditing&&C.jsxs("ul",{className:se("actions",e.type),"data-testid":`${e.type}-actions`,children:[C.jsx(Wm,{element:"li",likes:w,isShort:!1,userLiked:N,content:{type:e.type,slugs:e.slugs},canLike:F,createLike:s,deleteLike:a,locale:u}),(e.type==="answer"||e.type==="reply")&&C.jsx("li",{children:C.jsx(ut,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:W,children:d.formatMessage({id:`${md}thread_reply_button`})})})]})]}),h]})};const xo="emailHelperTextBox_",sO=({type:e,email:t,redirectPath:n,resendVerificationCode:r})=>{const o=Ie(),[i,s]=G.useState({path:`${xo}default`,type:"default",link:{},mail:{},error:""}),[a,l]=G.useState(!1),f=G.useCallback(c=>{c.preventDefault(),c.stopPropagation();const p=m=>{s({path:`${xo}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:_=>f(_),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 r!="function"){p(o.formatMessage({id:`${xo}error_noFunction`}));return}l(!0),r(t).then(()=>{localStorage.setItem("email",t),window.location.href=n||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{l(!1)})},[t,n,r]);G.useEffect(()=>{let c=xo,p="default",m={},_={};switch(e){case"gov":c+="autoApproved",p="success";break;case"nonGov":c+="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":c+="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":c+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:T=>f(T),"data-testid":"send-verify-email-click"};break;case"exists":c+="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:c+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...i,path:c,type:p,link:m,mail:_})},[e]);const u={};return["link","mail"].forEach(c=>{u[c]=Object.keys(i[c]).length?p=>C.jsx("a",{...i[c],children:p}):p=>p}),C.jsx(Bm,{type:i.type,heading:a?!1:o.formatMessage({id:`${i.path}_title`}),children:a?C.jsxs(C.Fragment,{children:[C.jsx(vr,{element:"span"}),C.jsx(vr,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...u,strong:c=>C.jsx("strong",{children:c}),em:c=>C.jsx("em",{children:c}),br:C.jsxs(C.Fragment,{children:[C.jsx("br",{}),C.jsx("br",{})]}),error:i.error})})};const Ao="passwordRules_",Vm="isMoreThanEightCharacters",zm="includesNumberAndSymbol",Ym="includesLowerAndUppercase",uO={[Vm]:"8Characters",[zm]:"numberSymbol",[Ym]:"lowercaseUppercase"},cO=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const n=Ie();return C.jsxs("aside",{className:se("password-rules",t),children:[C.jsx("small",{children:n.formatMessage({id:`${Ao}intro`})}),C.jsx("ul",{children:[Vm,zm,Ym].map(r=>C.jsxs("li",{className:se({matches:e[r]}),children:[C.jsxs(it,{children:[n.formatMessage({id:`${Ao}rule_label`})," "]}),C.jsx("span",{children:n.formatMessage({id:`${Ao}rule_${uO[r]}`})}),!e[r]&&C.jsxs(it,{element:"strong",children:[" "," ",n.formatMessage({id:`${Ao}notMet`})]})]},`rule-${r}`))})]})},lO=G.memo(cO);const fO=({text:e={},topRating:t=5,functions:{createRating:n=()=>null,updateRating:r=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:s=!1})=>{const a=Ie(),[l,f]=G.useState({setUp:!1,id:null,rating:null,disabled:!0}),u=async()=>{try{const T=await n();f(E=>({...E,setUp:!0,id:T&&T.id,disabled:!1}))}catch(T){f(E=>({...E,setUp:!0,disabled:!0})),o(T)}};if(G.useEffect(()=>{s&&!l.setUp&&u()},[s]),!s)return C.jsx(vr,{className:"rating-placeholder"});const{id:h,rating:d,disabled:c}=l,p="ratings_",m={text:a.formatMessage({id:`${p}text`}),low:a.formatMessage({id:`${p}low`}),high:a.formatMessage({id:`${p}high`}),success:a.formatMessage({id:`${p}success`}),...e},_=async T=>{if(!(!h||c))try{f(E=>({...E,rating:T,disabled:!0})),await r({id:h,value:T})}catch(E){f(b=>({...b,rating:null})),o(E)}finally{f(E=>({...E,disabled:!1}))}};return C.jsxs("div",{className:se("rating",i),children:[C.jsx("span",{className:"label",children:m[d?"success":"text"]}),C.jsx("ol",{children:Array.from(new Array(t).keys()).map(T=>{const E=T+1;return C.jsx("li",{className:se({selected:d&&E<=d}),children:C.jsx(ut,{variant:"tertiary",size:"small",icon:{icon:`star${!d||E>d?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${a.formatMessage({id:`${p}stars`},{number:E,total:t})}${E===1||E===t?` - ${m[E===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),_(E)},disabled:c})},`rating-${E}`)})})]})};const Km=({id:e="search",className:t="",handleToggle:n=!1,defaultValue:r="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:s=!0,isDesktopVersion:a=!1}=n||{},l=Ie(),f=G.useRef(null);Io(()=>{!n||a||!s||f.current&&f.current.focus()},[s]);const u=h=>{if(h.preventDefault(),h.stopPropagation(),!(!f.current||!f.current.value||f.current.value.length<1))return window&&window.location&&window.location.replace(`/search?search=${encodeURIComponent(f.current.value)}`)};return C.jsx("form",{onSubmit:u,className:se("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:C.jsx("fieldset",{id:`${e}-form`,hidden:n?!s:!1,role:"search",children:C.jsxs("p",{children:[C.jsx(it,{element:"label",htmlFor:e,children:l.formatMessage({id:"search_label"})}),C.jsx("input",{ref:f,type:"search",id:e,name:e,defaultValue:r,placeholder:l.formatMessage({id:"search_placeholder"}),onKeyDown:h=>{h.key==="Enter"&&u(h)}}),C.jsx("button",{className:"clear",onClick:h=>{h.preventDefault(),h.stopPropagation(),f.current&&f.current.value&&(f.current.value="")},children:C.jsx(it,{children:l.formatMessage({id:"search_clear"})})}),C.jsx("button",{className:"search",onClick:u,children:C.jsx(it,{children:l.formatMessage({id:"search_cta"})})})]})})})};const dO={"2-1":901},hO=({layout:e="2-1",hideOnMobile:t=!1,className:n="",children:r})=>{const o=Ki(!0);let i=r;return G.Children.count(r)===1&&(i=G.Children.toArray(r)[0],i.props&&(i=i.props.children)),C.jsx("section",{className:se("columns",`layout-${e}`,n),children:G.Children.map(i,(s,a)=>t!==!1&&a===t&&o&&o<dO[e]?null:s)})};const Bs="cookieBanner_",Ms=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],Fs=new Date(Date.now()+12*30*24*60*60*1e3),Qm=()=>{const e=Ie(),[t,n,r]=Cd(Ms),[o,i]=G.useState(!t["apol-cookie-banner"]),s=()=>{Ms.forEach(u=>{n(u,!0,{path:"/",expires:Fs,domain:u==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},a=()=>{n("apol-cookie-banner",!0,{path:"/",expires:Fs}),Ms.forEach(u=>{if(u==="apol-cookie-banner"){n(u,!0,{path:"/",expires:Fs});return}r(u)}),i(!1)};if(!o)return null;const l=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:a,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],f=[];return l.forEach(u=>{f.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:`${Bs}buttons_${u.id}`})})}),C.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[C.jsx("h6",{children:e.formatMessage({id:`${Bs}title`})}),C.jsx("p",{children:e.formatMessage({id:`${Bs}text`})}),C.jsx(Xo,{buttons:f})]})};const pO=({options:e,allOption:t=!1,allowMultiple:n=!0,onChange:r=()=>{},className:o=""})=>{const i=Ie(),s=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[a,l]=G.useState(t?["all"]:[]),f=(u,h)=>{let d=[];a.includes(u)?d=a.filter(c=>c!==u):u==="all"?d=["all"]:n?d=[...a.filter(c=>c!=="all"),u]:d=[u],l(c=>(r&&typeof r=="function"&&r({current:d,previous:c}),d)),h&&typeof h=="function"&&h()};return C.jsx("ul",{className:se("filters",o),children:s.map(({id:u,text:h,disabled:d=!1,callback:c=()=>{}})=>{let p={};return d&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:h})}),C.jsx("li",{children:C.jsx("button",{className:se(u,{selected:a.includes(u)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),f(u,c)},...p,children:h})},u)})})};const Us=du({locale:"en",messages:Fu}),mO=({page:e=1,length:t=0,limit:n=10,loadNextPage:r=()=>{},icon:o=!1,messages:i={button:Us.formatMessage({id:"loadMore_button"}),endOfFeed:Us.formatMessage({id:"loadMore_endOfFeed"}),error:Us.formatMessage({id:"loadMore_error"})},className:s="",gtmContext:a="LoadMore"})=>{const[l,f]=G.useState(!1),[u,h]=G.useState(!1);if(t<=0||t<n*e)return null;const d=async c=>{try{await r(c)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?h(!0):f(!0)}};return C.jsxs("footer",{className:se("load-more",s),children:[l&&C.jsx("p",{className:"error",children:i.error}),u?C.jsx("p",{children:i.endOfFeed}):C.jsx(ut,{variant:"secondary",icon:o,onClick:d,"data-gtm-event-context":a,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};const Ku=({variant:e="default",version:t="default",className:n="",...r})=>C.jsx("p",{className:"logo-wrapper",children:C.jsx("a",{className:se("logo",e,t,n),href:"/home/",...r,children:C.jsx(it,{children:C.jsx(Yr,{id:"apolitical"})})})}),gd={default:"tags_",headerTopics:"header_topics_topics_"},Ds={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"},gO={getTagDetails:e=>{if(e.includes("topic_")){if(e=Ds.topic[e.replace("topic_","")],e){const t=Gi.topics.topics[e].href;return t?{id:e,href:t,text:`${gd.headerTopics}${e}`}:null}return null}return Ds[e]?(e=Ds[e],{id:e,text:`${gd.default}${e}`}):null}};const yO=({tags:e=[],color:t="default",forceOneLine:n=!1,canHaveLinks:r=!0,className:o="",gtmType:i="tag-click",gtmContext:s="tags"})=>{const a=Ie();if(!e||e.length<1)return null;const l=[];return e.forEach(f=>{if(!f)return;const u=gO.getTagDetails(f);u&&l.push(u)}),l.length<1?null:C.jsx("ul",{className:se("tags text-small",t,o,{"one-line":n}),children:l.map(f=>{const u=a.formatMessage({id:f.text});return C.jsx("li",{children:f.href&&r?C.jsx("a",{href:f.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":s,children:u}):u},f.id)})})},rr={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:"dpo@apolitical.co",gtmType:"email-dpo-link"},euDataProtection:{email:"dpo.agl@apolitical.foundation",gtmType:"email-eu-dpo-link"}}},contact:{text:{order:["correspondence","registered","berlin","support","business"],correspondence:{address:!0},registered:{address:!0},berlin:{address:!0},support:{email:"concierge@apolitical.co",gtmType:"concierge-email-click"},business:{email:"hello@apolitical.co",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 Sn="footer_",Ho="SiteFooter",yd=({group:e})=>{const t=rr[e].order||[];let n=!1;return"text"in rr[e]&&(n=rr[e].text),C.jsxs(G.Fragment,{children:[C.jsx("p",{className:"pre-title",children:C.jsx(Yr,{id:`${Sn}${e}`})}),Array.isArray(t)&&t.length>0&&C.jsx("ul",{className:"text-medium",children:t.map(r=>{if(["order","child","text"].includes(r))return null;const{href:o,gtmType:i}=rr[e][r],s={};return["legal"].includes(e)&&(s.target="_blank",s.rel="noopener"),C.jsx("li",{children:C.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":Ho,"data-gtm-event-type":i,...s,children:C.jsx(Yr,{id:`${Sn}${e}_${r}`})})},`${e}_${r}`)})}),typeof n!="boolean"&&"order"in n&&Array.isArray(n.order)&&C.jsx("dl",{className:"text-medium",children:n.order.map(r=>C.jsxs(G.Fragment,{children:[C.jsx("dt",{children:C.jsx(Yr,{id:`${Sn}${e}_${r}`})}),C.jsxs("dd",{children:[typeof n!="boolean"&&n[r].address&&C.jsx("address",{children:C.jsx(Yr,{id:`${Sn}${e}_${r}_address`,values:{br:C.jsx("br",{})}})}),typeof n!="boolean"&&n[r].email&&C.jsx("a",{href:`mailto:${n[r].email}`,className:"gtm-trackable","data-gtm-event-context":Ho,"data-gtm-event-type":n[r].gtmType,children:n[r].email})]})]},`dl-${e}-${r}`))})]},e)},Qu=()=>C.jsx("div",{id:"footer",children:C.jsxs("div",{className:"wrapper",children:[C.jsx(Eu,{element:"hr"}),C.jsx(Ku,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":Ho,"data-gtm-event-type":"logo-homepage-link"}),C.jsx("footer",{children:["platform","community","company","contact"].map(e=>C.jsxs("div",{className:"group",children:[C.jsx(yd,{group:e}),Object.keys(rr[e]).includes("child")&&C.jsx(yd,{group:rr[e].child})]},e))}),C.jsx("hr",{}),C.jsxs("div",{className:"sub-footer",children:[C.jsx("ul",{children:Array.isArray(rr.social.order)&&rr.social.order.map(e=>{const t=rr.social[e];return C.jsx("li",{className:e,children:C.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":Ho,"data-gtm-event-type":"social-click",children:C.jsx("span",{className:"hidden",children:C.jsx(Yr,{id:`${Sn}social_${e}`})})})},e)})}),C.jsx("small",{children:C.jsx(Yr,{id:`${Sn}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});var vO="Expected a function",Xm="__lodash_hash_undefined__",Jm=1/0,EO="[object Function]",_O="[object GeneratorFunction]",bO="[object Symbol]",wO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SO=/^\w*$/,TO=/^\./,OO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xO=/[\\^$.*+?()[\]{}|]/g,AO=/\\(\\)?/g,CO=/^\[object .+?Constructor\]$/,RO=typeof ae=="object"&&ae&&ae.Object===Object&&ae,PO=typeof self=="object"&&self&&self.Object===Object&&self,Xu=RO||PO||Function("return this")();function IO(e,t){return e==null?void 0:e[t]}function NO(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var LO=Array.prototype,kO=Function.prototype,Zm=Object.prototype,$s=Xu["__core-js_shared__"],vd=function(){var e=/[^.]+$/.exec($s&&$s.keys&&$s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),eg=kO.toString,Ju=Zm.hasOwnProperty,tg=Zm.toString,BO=RegExp("^"+eg.call(Ju).replace(xO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ed=Xu.Symbol,MO=LO.splice,FO=rg(Xu,"Map"),qi=rg(Object,"create"),_d=Ed?Ed.prototype:void 0,bd=_d?_d.toString:void 0;function Zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function UO(){this.__data__=qi?qi(null):{}}function DO(e){return this.has(e)&&delete this.__data__[e]}function $O(e){var t=this.__data__;if(qi){var n=t[e];return n===Xm?void 0:n}return Ju.call(t,e)?t[e]:void 0}function jO(e){var t=this.__data__;return qi?t[e]!==void 0:Ju.call(t,e)}function HO(e,t){var n=this.__data__;return n[e]=qi&&t===void 0?Xm:t,this}Zr.prototype.clear=UO;Zr.prototype.delete=DO;Zr.prototype.get=$O;Zr.prototype.has=jO;Zr.prototype.set=HO;function Mn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qO(){this.__data__=[]}function GO(e){var t=this.__data__,n=ta(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():MO.call(t,n,1),!0}function WO(e){var t=this.__data__,n=ta(t,e);return n<0?void 0:t[n][1]}function VO(e){return ta(this.__data__,e)>-1}function zO(e,t){var n=this.__data__,r=ta(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Mn.prototype.clear=qO;Mn.prototype.delete=GO;Mn.prototype.get=WO;Mn.prototype.has=VO;Mn.prototype.set=zO;function rn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function YO(){this.__data__={hash:new Zr,map:new(FO||Mn),string:new Zr}}function KO(e){return ra(this,e).delete(e)}function QO(e){return ra(this,e).get(e)}function XO(e){return ra(this,e).has(e)}function JO(e,t){return ra(this,e).set(e,t),this}rn.prototype.clear=YO;rn.prototype.delete=KO;rn.prototype.get=QO;rn.prototype.has=XO;rn.prototype.set=JO;function ta(e,t){for(var n=e.length;n--;)if(cx(e[n][0],t))return n;return-1}function ZO(e,t){t=nx(t,e)?[t]:rx(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[sx(t[n++])];return n&&n==r?e:void 0}function ex(e){if(!ig(e)||ox(e))return!1;var t=lx(e)||NO(e)?BO:CO;return t.test(ux(e))}function tx(e){if(typeof e=="string")return e;if(ec(e))return bd?bd.call(e):"";var t=e+"";return t=="0"&&1/e==-Jm?"-0":t}function rx(e){return ng(e)?e:ax(e)}function ra(e,t){var n=e.__data__;return ix(t)?n[typeof t=="string"?"string":"hash"]:n.map}function rg(e,t){var n=IO(e,t);return ex(n)?n:void 0}function nx(e,t){if(ng(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ec(e)?!0:SO.test(e)||!wO.test(e)||t!=null&&e in Object(t)}function ix(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ox(e){return!!vd&&vd in e}var ax=Zu(function(e){e=dx(e);var t=[];return TO.test(e)&&t.push(""),e.replace(OO,function(n,r,o,i){t.push(o?i.replace(AO,"$1"):r||n)}),t});function sx(e){if(typeof e=="string"||ec(e))return e;var t=e+"";return t=="0"&&1/e==-Jm?"-0":t}function ux(e){if(e!=null){try{return eg.call(e)}catch{}try{return e+""}catch{}}return""}function Zu(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(vO);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Zu.Cache||rn),n}Zu.Cache=rn;function cx(e,t){return e===t||e!==e&&t!==t}var ng=Array.isArray;function lx(e){var t=ig(e)?tg.call(e):"";return t==EO||t==_O}function ig(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function fx(e){return!!e&&typeof e=="object"}function ec(e){return typeof e=="symbol"||fx(e)&&tg.call(e)==bO}function dx(e){return e==null?"":tx(e)}function hx(e,t,n){var r=e==null?void 0:ZO(e,t);return r===void 0?n:r}var px=hx;const og=jt(px),Re={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const n={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},r=i=>{const s=`logged${e?"In":"Out"}`;return t>=n[i][s]};let o={};return["navigation","search"].forEach(i=>{o[i]=r(i)}),o},shouldChangeHeaderIsVisible:(e,t,n)=>{Object.values(t).filter(o=>o===!0).length||n([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:n,dispatch:r})=>{if(n[e]===t||e==="account"&&t===!1&&n.navigation===!0)return;const o=Date.now();if(!t&&Re.handlerCalled[e]&&o-Re.handlerCalled[e]<500)return;Re.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(n).forEach(s=>{s===e||n[s]===!1||i.push({type:`menus.${s}`,value:!1})}),r(i)},findFirstChild:(e,t,n=!1)=>{if(!e||!e[0])return!1;for(let r=0;r<=e.length;r++){if(!e[r])continue;if(e[r][t]&&(!n||e[r][t].includes(n)))return e[r];if(!t.includes("."))continue;const o=og(e[r],t);if(!(typeof o>"u")&&(!n||o[t]&&o[t].includes(n)||o.value&&o.value.includes(n)||o.toString().includes(n)))return e[r]}return e[0].children?Re.findFirstChild(e[0].children,t,n):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:n,focusElements:r,dispatch:o})=>{if(!t.current||!t.current.children)return;const i=n?"desktop":"default";if(r[e][i]){r[e][i].focus();return}let s,a;switch(e){case"navigation":if(n){const l=Re.findFirstChild(t.current.children,"attributes.aria-controls","navigation");s=Re.findFirstChild(l.children,"href")}else s=Re.findFirstChild(t.current.children,"href");s||(s=t.current);break;case"account":if(a=Re.findFirstChild(t.current.children,"className","account"),!a||!a.children)return;s=Re.findFirstChild(a.children,"href");break;default:return}s&&(o([{type:`focusElements.${e}.${i}`,value:s}]),s.focus())},events:{onClick:(e,{id:t,callback:n,isOpen:r})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Re.timeouts[t]),n(t,!r))},onFocus:({id:e})=>{clearTimeout(Re.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Re.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Re.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},Gi={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"}}}},qo=({id:e,isLoggedIn:t=!1,isDesktopVersion:n=!1,menus:r={},callback:o=()=>{},doTrack:i=null})=>{const s=Ie(),a=og(Gi,e);if(!a||a.onlyShow&&(a.onlyShow==="logged-in"&&!t||a.onlyShow==="logged-out"&&t))return null;const l="doTrack"in a,f=i===null?l?a.doTrack:!0:i,u=e.includes("buttons.");let h=`header_${e.replaceAll(".","_")}`;a.hasVariantText&&(h+=`_logged${t?"In":"Out"}`);let d=!1;if(a.href){let E=a.gtmType||`${e}-click`;if(E.includes(".")){const b=E.split("."),A=b[b.length-2];E=`${A==="topics"?`${A}-`:""}${b[b.length-1]}`}d={href:a.href,role:"menuitem"},f&&(d={...d,className:"gtm-trackable","data-gtm-event-type":E,"data-gtm-event-context":"HeaderButtons"}),u&&(d={...d,variant:"secondary",size:{mobile:"small",881:"large"},...a.props||{}})}const c=a.order&&a.order[0]&&a[a.order[0]],p=c&&a[a.order[0]].order,m=d&&typeof window<"u"&&window.location&&window.location.pathname===a.href;let _={},T={};if(c){const E=a.menuId||e,b={onClick:A=>Re.events.onClick(A,{id:E,callback:o,isOpen:r[E]}),onFocus:()=>Re.events.onFocus({id:E}),onBlur:()=>Re.events.onBlur({id:E,callback:o}),onMouseLeave:()=>Re.events.onBlur({id:E,callback:o}),onMouseEnter:()=>Re.events.onMouseEnter({id:E,callback:o})};n&&(p&&(_={...b,onKeyPress:A=>{A.key==="Enter"&&Re.events.onClick(A,{id:E,callback:o,isOpen:r[E]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":r[E],"aria-controls":E}),T={hidden:E in r?!r[E]:!0}),p||(T={...T,...b})}return C.jsxs("li",{className:se({[a.className]:a.className,"has-submenu":c,parent:p,active:m}),role:"none",..._,children:[d?G.createElement(u?ut:"a",d,s.formatMessage({id:h})):s.formatMessage({id:h}),a.order&&C.jsx("ul",{...T,children:a.order.map(E=>{if(!a[E])return null;const b={isLoggedIn:t,isDesktopVersion:n,menus:r,callback:o,doTrack:l?f:null};return a[E].order?C.jsxs("li",{className:se({[a[E].className]:a[E].className}),children:[s.formatMessage({id:`${h}_${E}`}),C.jsx("ul",{children:a[E].order.map(A=>C.jsx(qo,{id:`${e}.${E}.${A}`,...b},A))})]},E):C.jsx(qo,{id:`${e}.${E}`,...b},E)})})]},e)};const mx={height:67,height_desktop:83},tc=()=>{const e=Ie(),t=G.useContext(Bn),n=Ki(!0,!0),r=t&&typeof t.id=="string",o=G.useMemo(()=>Re.getIsDesktopVersion(r,n),[r,n]),[i,s]=G.useReducer(kb,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:a,menus:l,focusElements:f}=i;Sp({scrollPosition:mx[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&l.navigation||Re.shouldChangeHeaderIsVisible(!0,l,s)},scrollDown:()=>{!o&&l.navigation||Re.shouldChangeHeaderIsVisible(!1,l,s)}}});const u=(d,c)=>{Re.handleMenus({id:d,value:c,menus:l,dispatch:s})},h=G.useRef(null);return Io(()=>{l.navigation&&Re.autoFocus({menu:"navigation",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[l.navigation]),Io(()=>{l.account&&Re.autoFocus({menu:"account",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[l.account]),t&&t.isLoading?null:C.jsxs(C.Fragment,{children:[C.jsxs("nav",{id:"header",className:se({"logged-in":r,"logged-out":!r,visible:a}),children:[C.jsx(it,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),C.jsx(Ku,{}),!o.navigation&&C.jsx("button",{className:"menu-button gtm-trackable",onClick:d=>{d.preventDefault(),d.stopPropagation(),u("navigation",!l.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":l.navigation,"aria-controls":"navigation",children:C.jsx(it,{children:e.formatMessage({id:`header_menu_${l.navigation?"hide":"show"}`})})}),C.jsx("ul",{ref:h,id:"navigation",hidden:o.navigation||l.account?!1:!l.navigation,role:"menu","data-showing":!o.navigation&&l.account?"account":"default",children:Gi.order.map(d=>C.jsx(qo,{id:d,isLoggedIn:r,isDesktopVersion:o.navigation,menus:{navigation:l.navigation,account:l.account},callback:u},d))}),!o.search&&C.jsx("button",{className:"search toggle-search-button",onClick:d=>{d.preventDefault(),d.stopPropagation(),u("search",!l.search)},"aria-haspopup":"true","aria-expanded":l.search,"aria-controls":"search-form",children:C.jsx(it,{children:e.formatMessage({id:`header_search_${l.search?"hide":"show"}`})})}),C.jsx(Km,{id:"global-search",handleToggle:{searchIsOpen:l.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),r?C.jsxs("button",{className:"account-button",onClick:d=>Re.events.onClick(d,{id:"account",callback:u,isOpen:l.account}),onMouseEnter:()=>Re.events.onMouseEnter({id:"account",callback:u}),onMouseLeave:()=>Re.events.onBlur({id:"account",callback:u}),"aria-haspopup":"true","aria-expanded":l.account,"aria-controls":"navigation",children:[C.jsx(it,{children:e.formatMessage({id:`header_account_${l.account?"hide":"show"}`})}),C.jsx(ea,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):C.jsx("ul",{className:"sign-in-buttons",children:Gi.buttons.order.map(d=>C.jsx(qo,{id:`buttons.${d}`},d))})]}),C.jsx("hr",{id:"content-of-page"}),C.jsx("div",{className:se("overlay",{open:l.navigation||l.account||!o.search&&l.search})})]})},gx=G.createContext(null),js={didCatch:!1,error:null};class yx extends G.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=js}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(js)}}componentDidCatch(t,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&vx(t.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(js)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(G.isValidElement(o))a=o;else if(typeof n=="function")a=n(l);else if(r)a=G.createElement(r,l);else throw s}return G.createElement(gx.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function vx(){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((n,r)=>!Object.is(n,t[r]))}const Ex=()=>{const e=Ie();return C.jsxs(C.Fragment,{children:[C.jsx(tc,{}),C.jsx("div",{className:"content",children:C.jsx(Lm,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),C.jsx(Qu,{})]})},_x=({children:e,reportError:t,showFooter:n=!0,background:r="default",className:o="",locale:i="en"})=>{const s=Db(e,{locale:i});return C.jsx(yx,{onError:t,fallback:C.jsx(Ex,{}),children:C.jsx(G.Suspense,{fallback:C.jsx(Dm,{layout:"overview-page"}),children:C.jsx("div",{id:"wrapper",className:se(o,{[r]:r!=="default"}),children:C.jsxs(Cg,{children:[C.jsx(tc,{}),C.jsx("div",{className:"content",children:s}),n&&C.jsx(Qu,{}),C.jsx(Qm,{})]})})})})};const bx=({children:e,className:t})=>C.jsx("section",{className:se("modal",t),children:typeof e=="string"?C.jsx("p",{children:e}):e});exports.ASSETS_BUCKET=$o;exports.Alert=hu;exports.BannerSection=zb;exports.Button=ut;exports.ButtonWrapper=Xo;exports.CollapsibleSection=qu;exports.Columns=hO;exports.CommunityDetails=FT;exports.Contributors=jm;exports.ConversationContext=Yu;exports.CookieBanner=Qm;exports.DiscussionConversation=DT;exports.DiscussionForm=Gm;exports.DiscussionLikes=Wm;exports.DiscussionPost=aO;exports.DownloadSection=qb;exports.EmailHelperTextBox=sO;exports.EmptyStateBox=Lm;exports.Filters=pO;exports.Footer=Qu;exports.FullWidthSection=Uu;exports.Header=tc;exports.HelperTextBox=Bm;exports.HiddenFromScreenReaders=Eu;exports.HideShowTextBox=bT;exports.HighlightedTextBox=nr;exports.IntlProvider=BT;exports.JoinButton=Hm;exports.Link=kp;exports.LoadMore=mO;exports.LoadingBlock=NT;exports.LoadingPlaceholder=vr;exports.LoadingState=Dm;exports.Logo=Ku;exports.LogoSection=Gb;exports.MarkdownText=Mm;exports.MarketingBox=Yb;exports.Member=zu;exports.Modal=bx;exports.NUMBER_OF_USERS=yS;exports.PageLayout=_x;exports.PasswordRules=lO;exports.Pill=RT;exports.ProfilePicture=ea;exports.ProgressBar=Fm;exports.Rating=fO;exports.ResponsiveImage=Bp;exports.SearchForm=Km;exports.Tags=yO;exports.UserContext=Bn;exports.UserProvider=MT;exports.VisuallyHidden=it;exports.getMember=Vu;exports.headerData=Gi;exports.useEffectAfterMount=Io;exports.useFeatureFlag=R_;exports.useScreenWidth=Ki;exports.useScrollListener=Sp;