PageSourceSearch

https://panel.chatfuel.com/product-discovery/scripts/visualization.js

js chatfuel.com collected 2026-09-24 08:27:00 UTC 315,555 bytes, 1 lines download raw bytes

1!function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t,n){for(var r,i=0,o=t.length;i<o;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function i(e){return null!==e&&"object"==typeof e}function o(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}const a=e=>typeof window<"u"&&window.localStorage.getItem(`_cf/${e}`)||null;let s=class{constructor(e){this.eventsHandlers={},this.queue=[],this.syncTimeout=null,this.processQueue=e.processQueue,this.threshold=e.threshold??2,this.queueSize=e.queueSize??10,this.retryTimeout=e.retryTimeout??1e3,this.processTimeout=e.processTimeout??5e3,this.retryThreshold=e.retryThreshold??2,this.retries=this.threshold}process(e,t=this.retryThreshold){var n,r;if(e.length){if(this.retries<=0&&this.clear(),t<=0)return this.queue.push(...e),this.retries-=1,void(null==(r=(n=this.eventsHandlers).onReturnToQueue)||r.call(n));this.processQueue(e).then(()=>{var e,t;return null==(t=(e=this.eventsHandlers).onProcessed)?void 0:t.call(e,!1)}).catch(()=>{var n,r;null==(r=(n=this.eventsHandlers).onProcessed)||r.call(n,!0),setTimeout(()=>{var n,r;this.process(e,t-1),null==(r=(n=this.eventsHandlers).onRetry)||r.call(n)},this.retryTimeout)})}}clear(e=!0){var t,n;this.syncTimeout&&clearTimeout(this.syncTimeout),this.queue=[],e&&(this.retries=this.threshold),null==(n=(t=this.eventsHandlers).onClear)||n.call(t)}push(e,t){var n,r;if(!t)return this.syncTimeout&&clearTimeout(this.syncTimeout),this.queue.push(e),this.queue.length>=this.queueSize?(this.process(this.queue),this.clear(!1),void(null==(r=(n=this.eventsHandlers).onFilled)||r.call(n))):void(this.syncTimeout=window.setTimeout(()=>{var e,t;this.process(this.queue),this.clear(!1),null==(t=(e=this.eventsHandlers).onPassedToProcessor)||t.call(e)},this.processTimeout));this.process([e])}processRest(){this.process(this.queue),this.clear()}initEventHandlers(e){this.eventsHandlers=e??{}}};const l=(e,t)=>"function"==typeof navigator.sendBeacon&&(e.startsWith("https:")||e.startsWith("/")&&"https:"===window.document.location.protocol)?((e,t)=>
1new Promise((n,r)=>{navigator.sendBeacon(e,t)?n():r()}))(e,t):((e,t)=>new Promise((n,r)=>{fetch(e,{method:"POST",body:t}).then(e=>{200!==e.status?r():n()})}))(e,t),u=e=>"string"==typeof e,c=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},d=e=>null==e?"":""+e,f=/###/g,h=e=>e&&e.indexOf("###")>-1?e.replace(f,"."):e,p=e=>!e||u(e),m=(e,t,n)=>{const r=u(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(p(e))return{};const t=h(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return p(e)?{}:{obj:e,k:h(r[i])}},y=(e,t,n)=>{const{obj:r,k:i}=m(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=m(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=m(e,a,Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},g=(e,t)=>{const{obj:n,k:r}=m(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},v=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?u(e[r])||e[r]instanceof String||u(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):v(e[r],t[r],n):e[r]=t[r]);return e},b=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const w=e=>u(e)?e.replace(/[&<>"'\/]/g,e=>k[e]):e;const S=[" ",",","?","!",";"],N=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),x=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},E=e=>e?.replace(/_/g,"-"),O={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class T{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||O,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(u(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new T(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new T(this.logger,e)}}var I=new T;class D{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}}}class A extends D{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):u(n)&&i?a.push(...n.split(i)):a.push(n)));const s=g(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&u(n)?x(this.data?.[e]?.[t],n,i):s}addResource(e,t,n,r,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];
1n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),y(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(u(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i,o={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=g(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?v(s,n,i):s={...s,...n},y(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var C={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}};const F=Symbol("i18next/PATH_KEY");function _(e,t){const{[F]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>(n?.revoke?.(),i===F?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",i=t?.nsSeparator??":";if(n.length>1&&i){const e=t?.ns,o=Array.isArray(e)?e:null;if(o&&o.length>1&&o.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const $={},j=e=>!u(e)&&"boolean"!=typeof e&&"number"!=typeof e;class L extends D{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=I.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const i=j(r.res);return!1!==n.returnObjects||!i}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=S.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=N.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:u(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:u(i)?[i]:i}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=_(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?_(e,{...this.options,...r}):String(e));const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return f?i?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${c}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const h=this.resolve(e,r);let p=h?.res;const m=h?.usedKey||a,y=h?.exactUsedKey||a,g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==r.count&&!u(r.count),k=L.hasDefaultValue(r),w=b?this.pluralResolver.getSuffix(d,r.count,r):"",S=r.ordinal&&b?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",N=b&&!r.ordinal&&0===r.count,x=N&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${S}`]||r.defaultValue;let E=p;v&&!p&&k&&(E=x);const O=j(E),T=Object.prototype.toString.apply(E);if(!(v&&E&&O&&["[object Number]","[object Function]","[object RegExp]"].indexOf(T)<0)||u(g)&&Array.isArray(E))if(v&&u(g)&&Array.isArray(p))p=p.join(g),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,i=!1;!this.isValidLookup(p)&&k&&(t=!0,p=x),this.isValidLookup(p)||(i=!0,p=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,u=k&&x!==p&&this.options.updateMissing;if(i||t||u){if(this.logger.log(u?"updateKey":"missingKey",d,l,a,u?x:p),o){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const i=k&&n!==p?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,i,u,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,i,u,r),this.emit
vendor: 3,337 bytes, line 1
1("missingKey",e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);N&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||x)})}):n(e,a,x))}p=this.extendTranslation(p,e,r,h,n),i&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${l}${c}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,E,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(h.res=e,h.usedParams=this.getUsedParamsDetails(r),h):e}if(o){const e=Array.isArray(E),t=e?[]:{},n=e?y:m;for(const e in E)if(Object.prototype.hasOwnProperty.call(E,e)){const i=`${n}${o}${e}`;t[e]=k&&!p?this.translate(i,{...r,defaultValue:j(x)?x[e]:void 0,joinArrays:!1,ns:s}):this.translate(i,{...r,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=E[e])}p=t}}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(r),h):p}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const o=u(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&!u(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),o){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,a=u(o)?[o]:o;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=C.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,o,a;return u(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?_(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==t.count&&!u(t.count),f=d&&!t.ordinal&&0===t.count,h=void 0!==t.context&&(u(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
vendor: 9,934 bytes, line 1
1c.forEach(e=>{this.isValidLookup(n)||(a=e,$[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||($[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;o=r;const a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&0===e.indexOf(i)&&a.push(l+e.replace(i,this.options.pluralSeparator)),a.push(l+e),f&&a.push(l+n)),h){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),d&&(t.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),a.push(r+e),f&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!u(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class M{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=I.create("languageUtils")}getScriptPartFromCode(e){if(!(e=E(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=E(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(u(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),u(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return u(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):u(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}const R={zero:0,one:1,two:2,few:3,many:4,other:5},P={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class V{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=I.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=E("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),P;if(!e.match(/-|_/))return P;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>R[e]-R[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const B=(e,t,n,r=".",i=!0)=>{let o=((e,t,n)=>{const r=g(e,n);return void 0!==r?r:g(t,n)})(e,t,n);return!o&&i&&u(n)&&(o=x(e,n,r),void 0===o&&(o=x(t,n,r))),o},U=e=>e.replace(/\$/g,"$$$$");class q{constructor(e={}){this.logger=I.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:g}=e.interpolation;this.escape=void 0!==t?t:w,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?b(i):o||"{{",this.suffix=a?b(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?b(d):f||b("$t("),this.nestingSuffix=h?b(h):p||b(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==g&&g,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=B(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(B(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>U(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?U(this.escape(e)):U(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof c){const t=c(e,i,r);o=u(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(f){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else u(o)||this.useRawValueToEscape||(o=d(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,o;const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${b(n)}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);((a?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...n},o=o.replace&&!u(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>
1e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),i=t(a.call(this,r[1].trim(),o),o),i&&r[0]===e&&!u(i))return i;u(i)||(i=d(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const z=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(E(r),i),t[a]=s),s(n)}},W=e=>(t,n,r)=>e(E(n),r)(t);class H{constructor(e={}){this.logger=I.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?z:W;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=z(t)}format(e,t,n,r={}){const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const o=i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r?.formatParams?.[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e);return o}}class Z extends D{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=I.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:i}=m(e,t,Object);r[i]=r[i]||[],r[i].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}
vendor: 4,316 bytes, line 1
1),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();u(e)&&(e=this.languageUtils.toResolveHierarchy(e)),u(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i,o={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const J=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),u(e[1])&&(t.defaultValue=e[1]),u(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Y=e=>(u(e.ns)&&(e.ns=[e.ns]),u(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),u(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),G=()=>{},Q="__i18next_supportNoticeShown";class K extends D{constructor(e={},t){var n;if(super(),this.options=Y(e),this.services={},this.logger=I,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(u(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=J();var r;this.options={...n,...this.options,...Y(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation}
1,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(r=this,r?.modules?.backend?.name?.indexOf("Locize")>0||r?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||r?.options?.backend?.backends&&r.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||r?.options?.backend?.projectId||r?.options?.backend?.backendOptions&&r.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[Q]||"undefined"!=typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"undefined"!=typeof process&&process.env||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis[Q]=!0));const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?I.init(i(this.modules.logger),this.options):I.init(null,this.options),e=this.modules.formatter?this.modules.formatter:H;const t=new M(this.options);this.store=new A(this.options.resources,this.options);const r=this.services;r.logger=I,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new V(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=i(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new q(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new Z(i(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=i(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=i(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new L(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=G),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=c(),a=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),o}loadResources(e,t=G){let n=t;const r=u(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
vendor: 11,092 bytes, line 1
1=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=c();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=G),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=c();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,o)=>{o?this.isLanguageChangingTo===e&&(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);const n=u(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(u(t)?[t]:t);o&&(this.language||r(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...i)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t},o.lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||r.keyPrefix);const a={...this.options,...o};"function"==typeof o.keyPrefix&&(o.keyPrefix=_(o.keyPrefix,a));const s=this.options.keySeparator||".";let l;return o.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=_(e,a)),`${o.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=_(e,a)),l=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(l,o)};return u(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=c();return this.options.ns?(u(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=c();u(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new M(J());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new K(e,t);return n.createInstance=K.createInstance,n}cloneInstance(e={},t=G){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new K(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));if(["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});i.store=new A(e,r),i.services.resourceStore=i.store}if(e.interpolation){const t={...J().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};i.services.interpolator=new q(n)}return i.translator=new L(i.services,r),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const X=K.createInstance();X.createInstance,X.dir,X.init,X.loadResources,X.reloadResources,X.use,X.changeLanguage,X.getFixedT,X.t,X.exists,X.setDefaultNamespace,X.hasLoadedNamespace,X.loadNamespaces,X.loadLanguages;var ee,te,ne={exports:{}},re={};function ie(){if(ee)return re;ee=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var b=v.prototype=new g;b.constructor=v,p(b,y.prototype),b.isPureReactComponent=!0;var k=Array.isArray;function w(){}var S={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function x(t,n,r){var i=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==i?i:null,props:r}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var O=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function I(n,r,i,o,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,u,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case c:return I((d=n._init)(n._payload),r,i,o,a)}}if(d)return a=a(n),d=""===o?"."+T(n,0):o,k(a)?(i="",null!=d&&(i=d.replace(O,"$&/")+"/"),I(a,r,i,"",function(e){return e})):null!=a&&(E(a)&&(l=a,u=i+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d,a=x(l.type,u,l.props)),r.push(a)),1;d=0;var h,p=""===o?".":o+":";if(k(n))for(var m=0;m<n.length;m++)d+=I(o=n[m],r,i,s=p+T(o,m),a);else if("function"==typeof(m=null===(h=n)||"object"!=typeof h?null:"function"==typeof(h=f&&h[f]||h["@@iterator"])?h:null))for(n=m.call(n),m=0;!(o=n.next()).done;)d+=I(o=o.value,r,i,s=p+T(o,m++),a);else if("object"===s){if("function"==typeof n.then)return I(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(w,w):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,i,o,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function D(e,t,n){if(null==e)return e;var r=[],i=0;return I(e,r,"","",function(e){return t.call(n,e,i++)}),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var C="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)}
1,F={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return re.Activity=d,re.Children=F,re.Component=y,re.Fragment=n,re.Profiler=i,re.PureComponent=v,re.StrictMode=r,re.Suspense=l,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,re.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},re.cache=function(e){return function(){return e.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=p({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)!N.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return x(e.type,i,r)},re.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},re.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)N.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return x(e,o,i)},re.createRef=function(){return{current:null}},re.forwardRef=function(e){return{$$typeof:s,render:e}},re.isValidElement=E,re.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:A}},re.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},re.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),i=S.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(w,C)}catch(e){C(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},re.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},re.use=function(e){return S.H.use(e)},re.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},re.useCallback=function(e,t){return S.H.useCallback(e,t)},re.useContext=function(e){return S.H.useContext(e)},re.useDebugValue=function(){},re.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},re.useEffect=function(e,t){return S.H.useEffect(e,t)},re.useEffectEvent=function(e){return S.H.useEffectEvent(e)},re.useId=function(){return S.H.useId()},re.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},re.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},re.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},re.useMemo=function(e,t){return S.H.useMemo(e,t)},re.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},re.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},re.useRef=function(e){return S.H.useRef(e)},re.useState=function(e){return S.H.useState(e)},re.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},re.useTransition=function(){return S.H.useTransition()},re.version="19.2.8",re}var oe=(te||(te=1,ne.exports=ie()),ne.exports);function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function se(){return"function"==typeof XMLHttpRequest||"object"===(typeof XMLHttpRequest>"u"?"undefined":ae(XMLHttpRequest))}var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ce,de,fe={exports:{}},he={exports:{}};function pe(){return ce||(ce=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof le<"u"&&le,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){!function(t){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof n<"u"&&n,r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],u=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=m(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=c(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[c(e)]},h.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},h.prototype.set=function(e,t){this.map[c(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof k){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&null!=e._bodyInit&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new h(t.headers)),this.method=function(e){var t=e.toUpperCase();return b.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function S(e){var t=new h;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function N(e,t){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},v.call(k.prototype),v.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},N.error=function(){var e=new N(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];N.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new N(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,r){return new Promise(function(i,a){var l=new k(e,r);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var e={status:u.status,statusText:u.statusText,headers:S(u.getAllResponseHeaders()||"")};e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;setTimeout(function(){i(new N(t,e))},0)},u.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},u.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},u.open(l.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch{return e}}(l.url),!0),"include"===l.credentials?u.withCredentials=!0:"omit"===l.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?u.responseType="blob":s&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof h?l.headers.forEach(function(e,t){u.setRequestHeader(t,e)}):Object.getOwnPropertyNames(r.headers).forEach(function(e){u.setRequestHeader(e,d(r.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&l.signal.removeEventListener("abort",c)}),u.send(typeof l._bodyInit>"u"?null:l._bodyInit)})}E.polyfill=!0,n.fetch||(n.fetch=E,n.Headers=h,n.Request=k,n.Response=N),t.Headers=h,t.Request=k,t.Response=N,t.fetch=E}({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(he,he.exports)),he.exports}var me=(de||(de=1,function(e,t){var n="function"==typeof fetch?fetch:void 0;if(typeof le<"u"&&le.fetch?n=le.fetch:typeof window<"u"&&window.fetch&&(n=window.fetch),typeof window>"u"){var r=n||pe();r.default&&(r=r.default),t.default=r,e.exports=t.default}}(fe,fe.exports)),fe.exports);const ye=ue(me);var ge=Object.freeze({__proto__:null,default:ye});function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ve(Object(n),!0).forEach(function(t){ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=we(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==we(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}var Se,Ne,xe="function"==typeof fetch?fetch:void 0;typeof global<"u"&&global.fetch?xe=global.fetch:typeof window<"u"&&window.fetch&&(xe=window.fetch),se()&&(typeof global<"u"&&global.XMLHttpRequest?Se=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Se=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(typeof global<"u"&&global.ActiveXObject?Ne=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Ne=window.ActiveXObject)),!xe&&ge&&!Se&&!Ne&&(xe=ye||ge),"function"!=typeof xe&&(xe=void 0);var Ee=function(e,t){if(t&&"object"===we(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},Oe=function(e,t,n,r){var i=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(r){var o=r(e,t);if(o instanceof Promise)return void o.then(i).catch(n)}"function"==typeof fetch?fetch(e,t).then(i).catch(n):xe(e,t).then(i).catch(n)},Te=!1,Ie=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},xe&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=Ee(t,e.queryStringParams));var i=be({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(i["Content-Type"]="application/json");var o="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=be({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:i},Te?{}:o),s="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Oe(t,a,r,s)}catch(e){if(!o||0===Object.keys(o).length||!e.message||e.message.indexOf("not implemented")<0)return r(e);try{Object.keys(o).forEach(function(e){delete a[e]}),Oe(t,a,r,s),Te=!0}catch(e){r(e)}}}(e,t,n,r):se()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===we(n)&&(n=Ee("",n).slice(1)),e.queryStringParams&&(t=Ee(t,e.queryStringParams));try{var i;(i=Se?new Se:new Ne("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=e.customHeaders;if(o="function"==typeof o?o():o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(e){console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Ae(Object(n),!0).forEach(function(t){_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fe(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$e(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _e(e,t,n){return(t=$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==De(t)?t:t+""}var je=Fe(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)},[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=Ce(Ce(Ce({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return _e({},t,n||"")},parseLoadPayload:function(e,t){},request:Ie,reloadInterval:!(typeof window<"u")&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var i=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===De(i)&&"function"==typeof i.unref&&i.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,i){var o=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,n)),a=function(e){return function(e){return!!e&&"function"==typeof e.then}(e)?e:Promise.resolve(e)}(a),a.then(function(a){if(!a)return i(null,{});var s=o.services.interpolator.interpolate(a,{lng:e.join("+"),ns:n.join("+")});o.loadUrl(s,i,t,r)})}},{key:"loadUrl",value:function(e,t,n,r){var i=this,o="string"==typeof n?[n]:n,a="string"==typeof r?[r]:r,s=this.options.parseLoadPayload(o,a);this.options.request(this.options,e,s,function(o,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&o&&o.message){var s=o.message.toLowerCase(),l=["failed","fetch","network","load"].find(function(e){return s.indexOf(e)>-1});if(l)return t("failed loading "+e+": "+o.message,!0)}if(o)return t(o,!1);var u,c;try{u="string"==typeof a.data?i.options.parse(a.data,n,r):a.data}catch{c="failed parsing "+e+" to json"}if(c)return t(c,!1);t(null,u)})}},{key:"create",value:function(e,t,n,r,i){var o=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),s=0,l=[],u=[];e.forEach(function(n){var r=o.options.addPath;"function"==typeof o.options.addPath&&(r=o.options.addPath(n,t));var c=o.services.interpolator.interpolate(r,{lng:n,ns:t});o.options.request(o.options,c,a,function(t,n){s+=1,l.push(t),u.push(n),s===e.length&&"function"==typeof i&&i(l,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){a.indexOf(e)<0&&a.push(e)})};
1s(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),a.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(r,o){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)})})})}}}]);je.type="backend";var Le=function(e,t){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Le(e,t)};function Me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Le(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Re=function(){return Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Re.apply(this,arguments)};function Pe(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function Ve(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Be(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ue="Invariant Violation",qe=Object.setPrototypeOf,ze=void 0===qe?function(e,t){return e.__proto__=t,e}:qe,We=function(e){function t(n){void 0===n&&(n=Ue);var r=e.call(this,"number"==typeof n?Ue+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Ue,ze(r,t.prototype),r}return Me(t,e),t}(Error);function He(e,t){if(!e)throw new We(t)}var Ze=["debug","log","warn","error","silent"],Je=Ze.indexOf("log");function Ye(e){return function(){if(Ze.indexOf(e)>=Je)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=Ye("debug"),e.log=Ye("log"),e.warn=Ye("warn"),e.error=Ye("error")}(He||(He={}));var Ge="3.14.0";function Qe(e){try{return e()}catch(e){}}var Ke=Qe(function(){return globalThis})||Qe(function(){return window})||Qe(function(){return self})||Qe(function(){return global})||Qe(function(){return Qe.constructor("return this")()}),Xe=new Map;function et(e,t){var n,r,i=(n="stringifyForDisplay",r=Xe.get(n)||1,Xe.set(n,r+1),"".concat(n,":").concat(r,":").concat(Math.random().toString(36).slice(2)));return JSON.stringify(e,function(e,t){return void 0===t?i:t},t).split(JSON.stringify(i)).join("<undefined>")}function tt(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=at(i))||(t=st(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var nt=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||He(e,at(t,n)||st(t,n))},{debug:tt(He.debug),log:tt(He.log),warn:tt(He.warn),error:tt(He.error)});function rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new We(at(e,t)||st(e,t))}var it=Symbol.for("ApolloErrorMessageHandler_"+Ge);function ot(e){if("string"==typeof e)return e;try{return et(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function at(e,t){if(void 0===t&&(t=[]),e)return Ke[it]&&Ke[it](e,t.map(ot))}function st(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Ge,message:e,args:t.map(ot)})))}function lt(e,t){if(!Boolean(e))throw new Error(t)}const ut={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},ct=new Set(Object.keys(ut));function dt(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&ct.has(t)}var ft,ht;function pt(e){return 9===e||32===e}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(ft||(ft={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(ht||(ht={}));function mt(e){return yt(e,[])}function yt(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:yt(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(yt(e[r],t));1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`);return"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map(([e,n])=>e+": "+yt(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const gt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function vt(e){return bt[e.charCodeAt(0)]}const bt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],kt=Object.freeze({});function wt(e,t,n=ut){const r=new Map;for(const e of Object.values(ht))r.set(e,St(t,e));let i,o,a,s=Array.isArray(e),l=[e],u=-1,c=[],d=e;const f=[],h=[];do{u++;const e=u===l.length,g=e&&0!==c.length;if(e){if(o=0===h.length?void 0:f[f.length-1],d=a,a=h.pop(),g)if(s){d=d.slice();let e=0;for(const[t,n]of c){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of c)d[e]=t}u=i.index,l=i.keys,c=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:l[u],d=a[o],null==d)continue;f.push(o)}let v;if(!Array.isArray(d)){var p,m;dt(d)||lt(!1,`Invalid AST Node: ${mt(d)}.`);const n=e?null===(p=r.get(d.kind))||void 0===p?void 0:p.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(v=null==n?void 0:n.call(t,d,o,a,f,h),v===kt)break;
1if(!1===v){if(!e){f.pop();continue}}else if(void 0!==v&&(c.push([o,v]),!e)){if(!dt(v)){f.pop();continue}d=v}}var y;if(void 0===v&&g&&c.push([o,d]),e)f.pop();else i={inArray:s,index:u,keys:l,edits:c,prev:i},s=Array.isArray(d),l=s?d:null!==(y=n[d.kind])&&void 0!==y?y:[],u=-1,c=[],a&&h.push(a),a=d}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function St(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Nt(e){return wt(e,xt)}const xt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Et(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Dt(e.variableDefinitions)?Tt("(\n",Et(e.variableDefinitions,"\n"),"\n)"):Tt("(",Et(e.variableDefinitions,", "),")"),n=Tt("",e.description,"\n")+Et([e.operation,Et([e.name,t]),Et(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>Tt("",i,"\n")+e+": "+t+Tt(" = ",n)+Tt(" ",Et(r," "))},SelectionSet:{leave:({selections:e})=>Ot(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Tt("",e,": ")+t;let a=o+Tt("(",Et(n,", "),")");return a.length>80&&(a=o+Tt("(\n",It(Et(n,"\n")),"\n)")),Et([a,Et(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Tt(" ",Et(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Et(["...",Tt("on ",e),Et(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Tt("",o,"\n")+`fragment ${e}${Tt("(",Et(n,", "),")")} `+`on ${t} ${Tt("",Et(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every(e=>0===e.length||pt(e.charCodeAt(0))),o=t.endsWith('\\"""'),a=e.endsWith('"')&&!o,s=e.endsWith("\\"),l=a||s,u=!r||e.length>70||l||i||o;let c="";const d=r&&pt(e.charCodeAt(0));return(u&&!d||i)&&(c+="\n"),c+=t,(u||l)&&(c+="\n"),'"""'+c+'"""'}(e):`"${e.replace(gt,vt)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Et(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Et(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Tt("(",Et(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Tt("",e,"\n")+Et(["schema",Et(t," "),Ot(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Tt("",e,"\n")+Et(["scalar",t,Et(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Tt("",e,"\n")+Et(["type",t,Tt("implements ",Et(n," & ")),Et(r," "),Ot(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Tt("",e,"\n")+t+(Dt(n)?Tt("(\n",It(Et(n,"\n")),"\n)"):Tt("(",Et(n,", "),")"))+": "+r+Tt(" ",Et(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Tt("",e,"\n")+Et([t+": "+n,Tt("= ",r),Et(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Tt("",e,"\n")+Et(["interface",t,Tt("implements ",Et(n," & ")),Et(r," "),Ot(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Tt("",e,"\n")+Et(["union",t,Et(n," "),Tt("= ",Et(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Tt("",e,"\n")+Et(["enum",t,Et(n," "),Ot(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Tt("",e,"\n")+Et([t,Et(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Tt("",e,"\n")+Et(["input",t,Et(n," "),Ot(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:o})=>Tt("",e,"\n")+"directive @"+t+(Dt(n)?Tt("(\n",It(Et(n,"\n")),"\n)"):Tt("(",Et(n,", "),")"))+Tt(" ",Et(r," "))+(i?" repeatable":"")+" on "+Et(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Et(["extend schema",Et(e," "),Ot(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Et(["extend scalar",e,Et(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Et(["extend type",e,Tt("implements ",Et(t," & ")),Et(n," "),Ot(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Et(["extend interface",e,Tt("implements ",Et(t," & ")),Et(n," "),Ot(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Et(["extend union",e,Et(t," "),Tt("= ",Et(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Et(["extend enum",e,Et(t," "),Ot(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Et(["extend input",e,Et(t," "),Ot(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>Et(["extend directive @"+e,Et(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Et([e,Tt(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>Et([e,Tt(".",t),Tt("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>Et(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Et(["@",e,Tt("(",t,":)")])}};function Et(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Ot(e){return Tt("{\n",It(Et(e,"\n")),"\n}")}function Tt(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function It(e){return Tt("  ",e.replace(/\n/g,"\n  "))}function Dt(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function At(e,t,n){var r=new Set(e),i=r.size;return wt(t,{Directive:function(e){if(r.delete(e.name.value))return kt}}),r.size<i}Qe(function(){return navigator.product});
1var Ct="function"==typeof Symbol&&"function"==typeof Symbol.for,Ft=Ct&&Symbol.asyncIterator;function _t(e){return null!==e&&"object"==typeof e}function $t(){}Qe(function(){return window.document.createElement}),Qe(function(){return navigator.userAgent.indexOf("jsdom")>=0});class jt{constructor(e=1/0,t=$t){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}function Lt(){}const Mt=Lt,Rt="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},Pt="undefined"!=typeof WeakMap?WeakMap:Map,Vt="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:Lt,unregister:Lt}};class Bt{constructor(e=1/0,t=Mt){this.max=e,this.dispose=t,this.map=new Pt,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new Rt(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Vt(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Ut=new WeakSet;function qt(e){e.size<=(e.max||-1)||Ut.has(e)||(Ut.add(e),setTimeout(function(){e.clean(),Ut.delete(e)},100))}var zt=function(e,t){var n=new Bt(e,t);return n.set=function(e,t){var n=Bt.prototype.set.call(this,e,t);return qt(this),n},n},Wt=function(e,t){var n=new jt(e,t);return n.set=function(e,t){var n=jt.prototype.set.call(this,e,t);return qt(this),n},n},Ht=Symbol.for("apollo.cacheSize"),Zt=Re({},Ke[Ht]),Jt={};function Yt(e,t){Jt[e]=t}var Gt,Qt=Object.assign(function(e){return JSON.stringify(e,Kt)},{reset:function(){Gt=new Wt(Zt.canonicalStringify||1e3)}});function Kt(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(Xt))return t;var i=JSON.stringify(r),o=Gt.get(i);if(!o){r.sort();var a=JSON.stringify(r);o=Gt.get(a)||r,Gt.set(i,o),Gt.set(a,o)}var s=Object.create(n);return o.forEach(function(e){s[e]=t[e]}),s}}return t}function Xt(e,t,n){return 0===t||n[t-1]<=e}!1!==globalThis.__DEV__&&Yt("canonicalStringify",function(){return Gt.size}),Qt.reset();var en=["connection","include","skip","client","rest","export","nonreactive"],tn=Qt;function nn(e){return"Field"===e.kind}function rn(e){nt(e&&"Document"===e.kind,116);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw rt(117,e.kind);return e});return nt(t.length<=1,118,t.length),e}
1Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(tn(i),")")}return n.connection.key}var o=e;if(t){var a=tn(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===en.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(tn(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=tn;return tn=e,t}});let on=null;const an={};let sn=1;function ln(e){try{return e()}catch(e){}}const un="@wry/context:Slot",cn=ln(()=>globalThis)||ln(()=>global)||Object.create(null),dn=cn[un]||Array[un]||function(e){try{Object.defineProperty(cn,un,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",sn++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=on;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===an)break;return e!==on&&(on.slots[this.id]=t),!0}return on&&(on.slots[this.id]=an),!1}getValue(){if(this.hasValue())return on.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=on;on={parent:o,slots:i};try{return t.apply(r,n)}finally{on=o}}static bind(e){const t=on;return function(){const n=on;try{return on=t,e.apply(this,arguments)}finally{on=n}}}static noContext(e,t,n){if(!on)return e.apply(n,t);{const r=on;try{return on=null,e.apply(n,t)}finally{on=r}}}}),{bind:fn,noContext:hn}=dn;var pn;new dn;var mn=Object.assign(function(e){var t=pn.get(e);return t||(t=Nt(e),pn.set(e,t)),t},{reset:function(){pn=new zt(Zt.print||2e3)}});mn.reset(),!1!==globalThis.__DEV__&&Yt("print",function(){return pn?pn.size:0});var yn=Array.isArray;var gn={kind:ht.FIELD,name:{kind:ht.NAME,value:"__typename"}};function vn(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===ht.FRAGMENT_SPREAD&&vn(t[e.name.value],t)})}function bn(e){return vn(function(e){return rn(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}(e)||function(e){nt("Document"===e.kind,120),nt(e.definitions.length<=1,121);var t=e.definitions[0];return nt("FragmentDefinition"===t.kind,122),t}(e),function(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}(function(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}(e)))?null:e}function kn(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function wn(e,t){rn(t);for(var n=kn(""),r=kn(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!yn(i)){if(i.kind===ht.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===ht.FRAGMENT_DEFINITION)return r(i.name.value)}return!1!==globalThis.__DEV__&&nt.error(125),null},o=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===ht.OPERATION_DEFINITION&&++o;
1var s,l,u,c=(s=e,l=new Map,u=new Map,s.forEach(function(e){e&&(e.name?l.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=l.get(e.name.value);return!t&&u.size&&u.forEach(function(n,r){r(e)&&(t=n)}),t}),d=function(e){return t=e,Array.isArray(t)&&t.length>0&&e.map(c).some(function(e){return e&&e.remove});var t},f=new Map,h=!1,p={enter:function(e){if(d(e.directives))return h=!0,null}},m=wt(t,{Field:p,InlineFragment:p,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(d(e.directives))return h=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){f.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===f.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every(function(e){return e.kind===ht.FIELD&&"__typename"===e.name.value})?(r(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(c(e))return h=!0,null}}});if(!h)return t;var y=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){y(r(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},g=new Set;m.definitions.forEach(function(e){e.kind===ht.OPERATION_DEFINITION?y(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){g.add(e)}):e.kind!==ht.FRAGMENT_DEFINITION||0!==o||r(e.name.value).removed||g.add(e.name.value)}),g.forEach(function(e){y(r(e)).fragmentSpreads.forEach(function(e){g.add(e)})});var v={enter:function(e){if(t=e.name.value,!g.has(t)||r(t).removed)return null;var t}};return bn(wt(m,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=y(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return Re(Re({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}function Sn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nn(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function En(e,t,n){return t&&xn(e.prototype,t),n&&xn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.assign(function(e){return wt(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==ht.OPERATION_DEFINITION){var r=e.selections;if(r)if(!r.some(function(e){return nn(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(nn(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return Re(Re({},e),{selections:Be(Be([],r,!0),[gn],!1)})}}}}})},{added:function(e){return e===gn}});var On=function(){return"function"==typeof Symbol},Tn=function(e){return On()&&Boolean(Symbol[e])},In=function(e){return Tn(e)?Symbol[e]:"@@"+e};On()&&!Tn("observable")&&(Symbol.observable=Symbol("observable"));var Dn=In("iterator"),An=In("observable"),Cn=In("species");function Fn(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function _n(e){var t=e.constructor;return void 0!==t&&null===(t=t[Cn])&&(t=void 0),void 0!==t?t:qn}function $n(e){return e instanceof qn}function jn(e){jn.log?jn.log(e):setTimeout(function(){throw e})}function Ln(e){Promise.resolve().then(function(){try{e()}catch(e){jn(e)}})}function Mn(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Fn(t,"unsubscribe");n&&n.call(t)}}catch(e){jn(e)}}function Rn(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Pn(e,t,n){e._state="running";var r=e._observer;try{var i=Fn(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Rn(e),!i)throw n;i.call(r,n);break;case"complete":Rn(e),i&&i.call(r)}}catch(e){jn(e)}"closed"===e._state?Mn(e):"running"===e._state&&(e._state="ready")}function Vn(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void Ln(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Pn(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void Pn(e,t,n);e._queue.push({type:t,value:n})}}var Bn=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Un(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(Rn(this),Mn(this))},En(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Un=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Vn(this._subscription,"next",e)},t.error=function(e){Vn(this._subscription,"error",e)},t.complete=function(){Vn(this._subscription,"complete")},En(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),qn=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Bn(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(_n(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(_n(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=_n(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=_n(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=_n(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}
1return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[An]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Fn(t,An);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return $n(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Tn("iterator")&&(r=Fn(t,Dn)))return new n(function(e){Ln(function(){if(!e.closed){for(var n,i=Sn(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){Ln(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){Ln(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},En(e,null,[{key:Cn,get:function(){return this}}]),e}();On()&&Object.defineProperty(qn,Symbol("extensions"),{value:{symbol:An,hostReportError:jn},configurable:!0}),function(e){var t,n=e.Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t="function"==typeof n.for?n.for("https://github.com/benlesh/symbol-observable"):n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch(e){}}else t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var zn=qn.prototype,Wn="@@observable";function Hn(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function Zn(e){return e&&"function"==typeof e.then}zn[Wn]||(zn[Wn]=function(){return this});var Jn=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),Hn(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),Hn(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?Zn(i)?i.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),Hn(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new qn(t)]),Zn(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return Me(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(qn);function Yn(e){return _t(e)&&"payload"in e}function Gn(e){return new qn(function(t){t.error(e)})}!function(e){function t(t){Object.defineProperty(e,t,{value:qn})}Ct&&Symbol.species&&t(Symbol.species),t("@@species")}(Jn);var Qn=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};var Kn=Symbol.for("apollo.deprecations"),Xn=Ke,er=new dn;function tr(e,t){(function(e){return Xn[Kn]||(er.getValue()||[]).includes(e)})(e)||t()}
1function nr(e,t){return t?t(e):qn.of()}function rr(e){return"function"==typeof e?new or(e):e}function ir(e){return e.request.length<=1}var or=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return qn.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(rr).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i,o=rr(n),a=rr(r||new e(nr));return i=ir(o)&&ir(a)?new e(function(e){return t(e)?o.request(e)||qn.of():a.request(e)||qn.of()}):new e(function(e,n){return t(e)?o.request(e,n)||qn.of():a.request(e,n)||qn.of()}),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var n=Re({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=Re(Re({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Re({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?t.query.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw rt(58,i)}return e}(t))))||qn.of()},e.concat=function(t,n){var r=rr(t);if(ir(r))return!1!==globalThis.__DEV__&&nt.warn(47,r),r;var i,o=rr(n);return i=ir(o)?new e(function(e){return r.request(e,function(e){return o.request(e)||qn.of()})||qn.of()}):new e(function(e,t){return r.request(e,function(e){return o.request(e,t)||qn.of()})||qn.of()}),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(nr)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw rt(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&tr("onError",function(){!1!==globalThis.__DEV__&&nt.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&nt.warn(50),this.onError=e,this},e}();or.empty,or.from;var ar=or.split;function sr(e){var t=null,n=null,r=!1,i=[],o=[];function a(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,o.slice().forEach(function(t){t[1](e)}),!t||t()}function l(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return Ft&&(u[Symbol.asyncIterator]=function(){return this}),u}function lr(e){var t={next:function(){return e.read()}};return Ft&&(t[Symbol.asyncIterator]=function(){return this}),t}function ur(e){var t,n,r,i=e;if(e.body&&(i=e.body),function(e){return!(!Ft||!e[Symbol.asyncIterator])}(i))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(i);if(function(e){return!!e.getReader}(i))return lr(i.getReader());if(function(e){return!!e.stream}(i))return lr(i.stream().getReader());if(function(e){return!!e.arrayBuffer}(i))return t=i.arrayBuffer(),n=!1,r={next:function(){return n?Promise.resolve({value:void 0,done:!0}):(n=!0,new Promise(function(e,n){t.then(function(t){e({value:t,done:!1})}).catch(n)}))}},Ft&&(r[Symbol.asyncIterator]=function(){return this}),r;if(function(e){return!!e.pipe}(i))return sr(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}or.concat,or.execute;var cr=Symbol();!function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.protocolErrors,s=n.clientErrors,l=n.networkError,u=n.errorMessage,c=n.extraInfo,d=e.call(this,u)||this;return d.name="ApolloError",d.graphQLErrors=o||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=l||null,d.message=u||(i=Be(Be(Be([],(r=d).graphQLErrors,!0),r.clientErrors,!0),r.protocolErrors,!0),r.networkError&&i.push(r.networkError),i.map(function(e){return _t(e)&&e.message||"Error message not found."}).join("\n")),d.extraInfo=c,d.cause=Be(Be(Be([l],o||[],!0),a||[],!0),s||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}Me(t,e)}(Error);var dr=Object.prototype.hasOwnProperty;function fr(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}function hr(e,t){if(e.status>=300){Qn(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var pr=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=rt(54,t,e.message);throw r.parseError=e,r}return n},mr={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},yr=function(e,t){return t(e)};function gr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};
1n.forEach(function(e){i=Re(Re(Re({},i),e.options),{headers:Re(Re({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=Re(Re({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,l=e.variables,u=e.query,c={operationName:a,variables:l};return o.includeExtensions&&(c.extensions=s),o.includeQuery&&(c.query=t(u,mn)),{options:i,body:c}}var vr=Qe(function(){return fetch}),br=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?yr:i,a=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,c=void 0!==u&&u,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw rt(51)}(r||vr);var f={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new or(function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var s=i.clientAwareness,u=s.name,d=s.version;u&&(a["apollographql-client-name"]=u),d&&(a["apollographql-client-version"]=d)}var h=Re(Re({},a),i.headers),p={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h};if(At(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&nt.warn(52);var m=function(e){return rn(e),wn([{test:function(e){return"client"===e.name.value},remove:!0}],e)}(e.query);if(!m)return Gn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var y,g,v,b,k,w=gr(e,o,mr,f,p),S=w.options,N=w.body;N.variables&&!c&&(N.variables=(y=N.variables,g=e.query,v=Re({},y),b=new Set(Object.keys(y)),wt(g,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.forEach(function(e){delete v[e]}),v)),S.signal||"undefined"==typeof AbortController||(k=new AbortController,S.signal=k.signal);var x=function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}(function(e){var t;rn(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw rt(123)}(e.query)),E=At(["defer"],e.query);if(l&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(S.method="GET"),E||x){S.headers=S.headers||{};var O="multipart/mixed;";x&&E&&!1!==globalThis.__DEV__&&nt.warn(53),x?O+="boundary=graphql;subscriptionSpec=1.0,application/json":E&&(O+="deferSpec=20220824,application/json"),S.headers.accept=O}if("GET"===S.method){var T=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=pr(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=pr(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+a}}(t,N),I=T.newURI,D=T.parseError;if(D)return Gn(D);t=I}else try{S.body=pr(N,"Payload")}catch(D){return Gn(D)}return new qn(function(n){var i=r||Qe(function(){return fetch})||vr,o=n.next.bind(n);return i(t,S).then(function(t){var n;e.setContext({response:t});var r,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return Pe(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,f,h,p,m,y,g,v,b,k,w,S,N,x,E;return Ve(this,function(O){switch(O.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(E=e.headers)||void 0===E?void 0:E.get("content-type"),i="boundary=",o=(null==r?void 0:r.includes(i))?null==r?void 0:r.substring((null==r?void 0:r.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",l=ur(e),u=!0,O.label=1;case 1:return u?[4,l.next()]:[3,3];case 2:for(c=O.sent(),d=c.value,f=c.done,h="string"==typeof d?d:n.decode(d),p=s.length-a.length+1,u=!f,m=(s+=h).indexOf(a,p);m>-1;){if(y=void 0,N=[s.slice(0,m),s.slice(m+a.length)],s=N[1],g=(y=N[0]).indexOf("\r\n\r\n"),v=fr(y.slice(0,g)),(b=v["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");
1if(k=y.slice(g))if(w=hr(e,k),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if(Yn(w)){if(S={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];S=Re({},w.payload)}"errors"in w&&(S=Re(Re({},S),{extensions:Re(Re({},"extensions"in S?S.extensions:null),(x={},x[cr]=w.errors,x))})),t(S)}else t(w);else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2];m=s.indexOf(a)}return[3,1];case 3:return[2]}})})}(t,o):(r=e,function(e){return e.text().then(function(t){return hr(e,t)}).then(function(t){return Array.isArray(t)||dr.call(t,"data")||dr.call(t,"errors")||Qn(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map(function(e){return e.operationName}):r.operationName,"'.")),t})})(t).then(o)}).then(function(){k=void 0,n.complete()}).catch(function(e){k=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)}),function(){k&&k.abort()}})})},kr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,br(t).request)||this;return n.options=t,n}return Me(t,e),t}(or);const wr={"\n  mutation BotAbExperimentMutation(\n    $experimentId: ABExperimentID!\n    $botId: BotID!\n  ) {\n    abExperimentBucketGetByBot(experimentID: $experimentId, botID: $botId) {\n      __typename\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n      ... on ABExperimentAssignedBucketNull {\n        fakeField\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BotAbExperimentMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"experimentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBucketGetByBot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"experimentID"},value:{kind:"Variable",name:{kind:"Name",value:"experimentId"}}},{kind:"Argument",name:{kind:"Name",value:"botID"},value:{kind:"Variable",name:{kind:"Name",value:"botId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketNull"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}}]}}]}}]},"\n  mutation UserAbExperimentMutation($experimentId: ABExperimentID!) {\n    abExperimentBucketGetByUser(experimentID: $experimentId) {\n      __typename\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n      ... on ABExperimentAssignedBucketNull {\n        fakeField\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UserAbExperimentMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"experimentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBucketGetByUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"experimentID"},value:{kind:"Variable",name:{kind:"Name",value:"experimentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketNull"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}}]}}]}}]},"\n  mutation BookingAssignTestBucketMutation {\n    abExperimentBookingAssignTestBucket {\n      __typename\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n      ... on ABExperimentAssignedBucketNull {\n        fakeField\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BookingAssignTestBucketMutation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBookingAssignTestBucket"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketNull"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}}]}}]}}]},"\n  mutation AbExperimentBookingAssignControlBucket {\n    abExperimentBookingAssignControlBucket {\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AbExperimentBookingAssignControlBucket"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBookingAssignControlBucket"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},"\n  fragment BotAttributeNameAliasFragment on BotAttribute {\n    name\n    al
1iases {\n      locale\n      alias\n    }\n    dataType\n    type\n  }\n":{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BotAttributeNameAliasFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BotAttribute"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"aliases"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locale"}},{kind:"Field",name:{kind:"Name",value:"alias"}}]}},{kind:"Field",name:{kind:"Name",value:"dataType"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]},"\n  query BotAttributes(\n    $botID: BotID!\n    $inputSubstring: String\n    $first: Int\n    $after: BotAttributeCursor\n    $locale: DashboardLocale!\n    $platforms: [Platform!]!\n    $attributeTypes: [AttributeType!]!\n    $filters: [BotAttributeFilter!]!\n    $orderBy: BotAttributeOrderByInput!\n  ) {\n    bot(id: $botID) {\n      id\n      botAttributes(\n        first: $first\n        after: $after\n        inputSubstring: $inputSubstring\n        locale: $locale\n        platforms: $platforms\n        attributeTypes: $attributeTypes\n        filters: $filters\n        orderBy: $orderBy\n      ) {\n        edges {\n          node {\n            botAttribute {\n              ...BotAttributeNameAliasFragment\n              dataType\n            }\n            usersCount\n            defaultValue\n            flowsCount\n          }\n          # cursor\n        }\n        pageInfo {\n          hasNextPage\n          hasPreviousPage\n          startCursor\n          endCursor\n        }\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BotAttributes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputSubstring"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"BotAttributeCursor"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DashboardLocale"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"platforms"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Platform"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributeTypes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AttributeType"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotAttributeFilter"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotAttributeOrderByInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"botID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"botAttributes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"inputSubstring"},value:{kind:"Variable",name:{kind:"Name",value:"inputSubstring"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"platforms"},value:{kind:"Variable",name:{kind:"Name",value:"platforms"}}},{kind:"Argument",name:{kind:"Name",value:"attributeTypes"},value:{kind:"Variable",name:{kind:"Name",value:"attributeTypes"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"botAttribute"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BotAttributeNameAliasFragment"}},{kind:"Field",name:{kind:"Name",value:"dataType"}}]}},{kind:"Field",name:{kind:"Name",value:"usersCount"}},{kind:"Field",name:{kind:"Name",value:"defaultValue"}},{kind:"Field",name:{kind:"Name",value:"flowsCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"}},{kind:"Field",name:{kind:"Name",value:"startCursor"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BotAttributeNameAliasFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BotAttribute"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"aliases"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locale"}},{kind:"Field",name:{kind:"Name",value:"alias"}}]}},{kind:"Field",name:{kind:"Name",value:"dataType"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]},"\n  fragment WhatsAppPhoneContactScopeForWabaStatus on WhatsAppPhoneContactScope {\n    id\n    phone {\n      id\n      isConnectedToBot\n      verifiedName\n      messagingStatus {\n        ... on WhatsAppPhoneMessagingStatusAvailable {\n          fakeField\n        }\n        ... on WhatsAppPhoneMessagingStatusLimited {\n          reasons\n        }\n        ... on WhatsAppPhoneMessagingStatusBlocked {\n          reasons\n        }\n      }\n      whatsAppBusinessAccount {\n        id\n        messagingStatus {\n          ... on WhatsAppBusinessAccountMessagingStatusAvailable {\n            fakeField\n          }\n          ... on WhatsAppBusinessAccountMessagingStatusLimited {\n            reasons\n          }\n          ... on WhatsAppBusinessAccountMessagingStatusBlocked {\n            reasons\n          }\n        }\n        facebookBusiness {\n          id\n          verificationStatus\n          verificationSubmission {\n            id\n            status\n            attemptsLeft\n            successNotificationRead\n          }\n          messagingStatus {\n            ... on FacebookBusinessMessagingStatusAvailable {\n              fakeField\n            }\n            ... on FacebookBusinessMessagingStatusLimited {\n              reasons\n            }\n            ... on FacebookBusinessMessagingStatusBlocked {\n              reasons\n            }\n          }\n        }\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"WhatsAppPhoneContactScopeForWabaStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneContactScope"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"phone"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isConnectedToBot"}},{kind:"Field",name:{kind:"Name",value:"verifiedName"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"whatsAppBusinessAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"facebookBusiness"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"verificationStatus"}},{kind:"Field",name:{kind:"Name",value:"verificationSubmission"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"attemptsLeft"}},{kind:"Field",name:{kind:"Name",value:"successNotificationRead"}}]}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}}]}}]}}]}}]}}]},"\n  query ConnectedWabaStatusQuery($botId: BotID!) {\n    bot(id: $botId) {\n      id\n      contactScopes {\n        id\n        ...WhatsAppPhoneContactScopeForWabaStatus\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ConnectedWabaStatusQuery"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"botId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"contactScopes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"WhatsAppPhoneContactScopeForWabaStatus"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"WhatsAppPhoneContactScopeForWabaStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneContactScope"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"phone"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isConnectedToBot"}},{kind:"Field",name:{kind:"Name",value:"verifiedName"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"whatsAppBusinessAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"facebookBusiness"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"verificationStatus"}},{kind:"Field",name:{kind:"Name",value:"verificationSubmission"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"attemptsLeft"}},{kind:"Field",name:{kind:"Name",value:"successNotificationRead"}}]}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}}]}}]}}]}}]}}]},"\n  query BotFeatureQuery($featureID: ToggleName!, $botID: BotID!) {\n    bot(id: $botID) {\n      id\n      feature(id: $featureID) {\n        name\n        enabled\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BotFeatureQuery"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"featureID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ToggleName"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"botID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"feature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"featureID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]}}]},"\n  query UserFeatureQuery($featureID: ToggleName!) {\n    currentUser {\n      id\n      feature(id: $featureID) {\n        name\n        enabled\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserFeatureQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"featureID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ToggleName"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"feature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"featureID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]}}]},"\n  query CurrentUserLocale {\n    currentUser {\n      id\n      dashboardLocale\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentUserLocale"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"dashboardLocale"}}]}}]}}]},"\n  query BackendTranslation($key: String!, $locale: DashboardLocale!) {\n    translation(key: $key, locale: $locale)\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BackendTranslation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DashboardLocale"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"translation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}]}]}}]},"\n  query UserStorageItemQuery($userStorageItemId: ID!) {\n    currentUser {\n      id\n      userStorageItem(id: $userStorageItemId) {\n        id\n        value\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserStorageItemQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userStorageItemId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userStorageItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"userStorageItemId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]},"\n  mutation SetUserStorageItemMutation(\n    $setUserStorageItemId: ID!\n    $value: String!\n  ) {\n    setUserStorageItem(id: $setUserStorageItemId, value: $value) {\n      id\n      value\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetUserStorageItemMutation"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"setUserStorageItemId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setUserStorageItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"setUserStorageItemId"}}},{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]},"\n  mutation DeleteUserStorageItemMutation($deleteUserStorageItemId: ID!) {\n    deleteUserStorageItem(id: $deleteUserStorageItemId) {\n      id\n      value\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteUserStorageItemMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"deleteUserStorageItemId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteUserStorageItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"deleteUserStorageItemId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]},"\n  mutation WhatsAppBusinessPaymentMethodCheck(\n    $botId: BotID!\n    $wabaId: WhatsappBusinessAccountID!\n  ) {\n    whatsAppBusinessPaymentMethodCheck(botID: $botId, wabaID: $wabaId)\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"WhatsAppBusinessPaymentMethodCheck"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wabaId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"WhatsappBusinessAccountID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"whatsAppBusinessPaymentMethodCheck"},arguments:[{kind:"Argument",name:{kind:"Name",value:"botID"},value:{kind:"Variable",name:{kind:"Name",value:"botId"}}},{kind:"Argument",name:{kind:"Name",value:"wabaID"},value:{kind:"Variable",name:{kind:"Name",value:"wabaId"}}}]}]}}]}};function Sr(e){return wr[e]??{}}Sr("\n  query UserStorageItemQuery($userStorageItemId: ID!) {\n    currentUser {\n      id\n      userStorageItem(id: $userStorageItemId) {\n        id\n        value\n      }\n    }\n  }\n"),Sr("\n  mutation SetUserStorageItemMutation(\n    $setUserStorageItemId: ID!\n    $value: String!\n  ) {\n    setUserStorageItem(id: $setUserStorageItemId, value: $value) {\n      id\n      value\n    }\n  }\n"),Sr("\n  mutation DeleteUserStorageItemMutation($deleteUserStorageItemId: ID!) {\n    deleteUserStorageItem(id: $deleteUserStorageItemId) {\n      id\n      value\n    }\n  }\n");const Nr=["chatfuel.com","chatfuel.space","chatfuel.test"],xr=["wl.chatfuel.com","wl.chatfuel.space"],Er=e=>{if(xr.includes(e))return!0;const t=e.split(".").slice(-2).join(".");return"localhost"!==t&&!Nr.includes(t)},Or=(e=2)=>{const{hostname:t}=typeof window<"u"?window.location:{hostname:"",port:"",protocol:""};return Er(t)?t:t.split(".").slice(-1*e).join(".")},Tr="_cf_auth_token",Ir=["panel","onboarding"],Dr=["dashboard","panel","onboarding"],Ar=()=>typeof window<"u"&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname);let Cr=null;const Fr=()=>{if(typeof window>"u")return Tr;if(null!==Cr)return Cr;const{hostname:e}=window.location,t=e.endsWith(".chatfuel.space")?e.split(".")[0].split("-").pop():null;return Cr=t?`${Tr}__${t}`:Tr,Cr},_r={set(e,t){if(!(()=>
1{if(typeof window>"u")return!1;const{hostname:e}=window.location;if(Ar()||e.endsWith(".chatfuel.space"))return!0;const t=e.split(".").length>2?e.split(".")[0]:null;return!!t&&(e.endsWith(".chatfuel.test")?Dr:Ir).includes(t)})())return;const n=new Date(Date.now()+t),r=Or(),i=typeof window<"u"&&"https:"===window.location.protocol;document.cookie=[`${Fr()}=${encodeURIComponent(e)}`,"path=/",Ar()?"":`domain=.${r}`,`expires=${n.toUTCString()}`,"SameSite=Lax",i?"Secure":""].filter(Boolean).join("; ")},get(){const e=document.cookie.match(new RegExp(`(?:^|; )${Fr().replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")}=([^;]*)`));return e?decodeURIComponent(e[1]):null},delete(){const e=Or(),t=Ar()?"":`; domain=.${e}`;document.cookie=`${Fr()}=""; path=/${t}; max-age=-1`}},$r=()=>_r.get();var jr=(e=>(e.error="error",e.warn="warn",e.info="info",e.log="log",e.dir="dir",e))(jr||{});const Lr=Object.keys(jr),Mr=e=>{switch(e){case"error":return"error";case"warn":return"warn";case"info":return"info";default:return"debug"}},Rr=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e&&("string"==typeof e.name&&"string"==typeof e.message);let Pr=!1;const Vr=new s({processQueue:e=>{var t,n,r,i,o,a;const s={clid:null==(n=null==(t=window.__cf_awesome_analytics)?void 0:t.getClid)?void 0:n.call(t),ssid:null==(i=null==(r=window.__cf_awesome_analytics)?void 0:r.getSsid)?void 0:i.call(r),userId:null==(a=null==(o=window.__cf_awesome_analytics)?void 0:o.getUserId)?void 0:a.call(o),url:window.location.href,ua:window.navigator.userAgent},u={type:"fe-log",payload:e.map(e=>({msg:e.msg,timestamp:e.timestamp,level:e.level,data:Rr(e.data)?{stack:e.data.stack,name:e.data.name,message:e.data.message,ctx:s}:{content:e.data,ctx:s}}))};return Pr?Promise.resolve():l("/api/in-house-service/logs",JSON.stringify(u))}});typeof window<"u"&&(window.addEventListener("offline",()=>{Pr=!0}),window.addEventListener("online",()=>{Pr=!1,Vr.processRest()}
1));const Br=Lr.reduce((e,t)=>("dir"===t?e.dir=(...e)=>{console.log(...e)}:e[t]=(...e)=>((e,t,n,r)=>{(0,window.console[e])(...[t,Rr(n)?n:JSON.stringify(n)].filter(Boolean)),e!==jr.dir&&!r&&Vr.push({timestamp:Date.now(),data:n,msg:t,level:Mr(e)})})(t,...e),e),{});let Ur=null;const qr=()=>{var e,t;return Ur||(Ur={"X-Device-ID":(null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e.getClid)?void 0:t.call(e))||"","X-Device-Platform":"web","X-Device-Name":navigator.userAgent},Ur)};var zr,Wr;!function(){if(Wr)return zr;Wr=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,i=parseInt,o="object"==typeof le&&le&&le.Object===Object&&le,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=Object.prototype.toString,u=Math.max,c=Math.min,d=function(){return s.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(o){if("number"==typeof o)return o;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(o))return NaN;if(f(o)){var a="function"==typeof o.valueOf?o.valueOf():o;o=f(a)?a+"":a}if("string"!=typeof o)return 0===o?o:+o;o=o.replace(e,"");var s=n.test(o);return s||r.test(o)?i(o.slice(2),s?2:8):t.test(o)?NaN:+o}zr=function(e,t,n){var r,i,o,a,s,l,p=0,m=!1,y=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,o=i;return r=i=void 0,p=t,a=e.apply(o,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||y&&e-p>=o}function k(){var e=d();if(b(e))return w(e);s=setTimeout(k,function(e){var n=t-(e-l);return y?c(n,o-(e-p)):n}(e))}function w(e){return s=void 0,g&&r?v(e):(r=i=void 0,a)}function S(){var e=d(),n=b(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return p=e,s=setTimeout(k,t),m?v(e):a}(l);if(y)return s=setTimeout(k,t),v(l)}return void 0===s&&(s=setTimeout(k,t)),a}return t=h(t)||0,f(n)&&(m=!!n.leading,o=(y="maxWait"in n)?u(h(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==s&&clearTimeout(s),p=0,r=l=i=s=void 0},S.flush=function(){return void 0===s?a:w(d())},S}}(),Sr("\n  fragment BotAttributeNameAliasFragment on BotAttribute {\n    name\n    aliases {\n      locale\n      alias\n    }\n    dataType\n    type\n  }\n"),Sr("\n  query BotAttributes(\n    $botID: BotID!\n    $inputSubstring: String\n    $first: Int\n    $after: BotAttributeCursor\n    $locale: DashboardLocale!\n    $platforms: [Platform!]!\n    $attributeTypes: [AttributeType!]!\n    $filters: [BotAttributeFilter!]!\n    $orderBy: BotAttributeOrderByInput!\n  ) {\n    bot(id: $botID) {\n      id\n      botAttributes(\n        first: $first\n        after: $after\n        inputSubstring: $inputSubstring\n        locale: $locale\n        platforms: $platforms\n        attributeTypes: $attributeTypes\n        filters: $filters\n        orderBy: $orderBy\n      ) {\n        edges {\n          node {\n            botAttribute {\n              ...BotAttributeNameAliasFragment\n              dataType\n            }\n            usersCount\n            defaultValue\n            flowsCount\n          }\n          # cursor\n        }\n        pageInfo {\n          hasNextPage\n          hasPreviousPage\n          startCursor\n          endCursor\n        }\n      }\n    }\n  }\n");var Hr,Zr,Jr={exports:{}},Yr={};var Gr=(Zr||(Zr=1,Jr.exports=function(){if(Hr)return Yr;Hr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:i,ref:void 0!==n?n:null,props:r}}return Yr.Fragment=t,Yr.jsx=n,Yr.jsxs=n,Yr}()),Jr.exports),Qr=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Kr=/^[\\/]{2}/;function Xr(e,t){if(!1===e||null==e)throw new Error(t)}function ei(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function ti({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"
1===n.charAt(0)?n:"#"+n),e}function ni(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ri(e,t,n="/"){return function(e,t,n,r){let i="string"==typeof t?ni(t):t,o=vi(i.pathname||"/",n);if(null==o)return null;let a=function(e){let t=ii(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}(e),s=null,l=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return ei(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}(o);for(let e=0;null==s&&e<a.length;++e)s=pi(a[e],l,r);return s}(e,t,n,!1)}function ii(e,t=[],n=[],r="",i=!1){let o=(e,o,a=i,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;Xr(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let u=xi([r,l.relativePath]),c=n.concat(l);e.children&&e.children.length>0&&(Xr(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),ii(e.children,t,c,u,a)),(null!=e.path||e.index)&&t.push({path:u,score:hi(u,e.index),routesMeta:c.map((e,t)=>{let[n,r]=gi(e.relativePath,e.caseSensitive,t===c.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of oi(e.path))o(e,t,!0,n);else o(e,t)}),t}function oi(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=oi(r.join("/")),s=[];return s.push(...a.map(e=>""===e?o:[o,e].join("/"))),i&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var ai=/^:[\w-]+$/,si=3,li=2,ui=1,ci=10,di=-2,fi=e=>"*"===e;function hi(e,t){let n=e.split("/"),r=n.length;return n.some(fi)&&(r+=di),t&&(r+=li),n.filter(e=>!fi(e)).reduce((e,t)=>e+(ai.test(t)?si:""===t?ui:ci),r)}function pi(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c={path:s.relativePath,caseSensitive:s.caseSensitive,end:l},d=s.matcher&&s.compiledParams?yi(c,u,s.matcher,s.compiledParams):mi(c,u),f=s.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=mi({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!d)return null;
1Object.assign(i,d.params),a.push({params:i,pathname:xi([o,d.pathname]),pathnameBase:Oi(xi([o,d.pathnameBase])),route:f}),"/"!==d.pathnameBase&&(o=xi([o,d.pathnameBase]))}return a}function mi(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gi(e.path,e.caseSensitive,e.end);return yi(e,t,n,r)}function yi(e,t,n,r){let i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}function gi(e,t=!1,n=!0){ei("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function vi(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function bi(e,t){let n=Ei(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function ki(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wi(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Si(e,t,n,r=!1){let i;"string"==typeof e?i=ni(e):(i={...e},Xr(!i.pathname||!i.pathname.includes("?"),ki("?","pathname","search",i)),Xr(!i.pathname||!i.pathname.includes("#"),ki("#","pathname","hash",i)),Xr(!i.search||!i.search.includes("#"),ki("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?ni(e):e;return r?(r=Ni(r),n=r.startsWith("/")?bi(r.substring(1),"/"):bi(r,t)):n=t,{pathname:n,search:Ti(i),hash:Ii(o)}}(i,o),u=s&&"/"!==s&&s.endsWith("/"),c=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}var Ni=e=>e.replace(/[\\/]{2,}/g,"/"),xi=e=>Ni(e.join("/")),Ei=e=>e.replace(/\/+$/,""),Oi=e=>Ei(e).replace(/^\/*/,"/"),Ti=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Ii=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Di=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ai(e){let t=e.map(e=>e.route.path).filter(Boolean);return xi(t)||"/"}var Ci="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Fi(e,t){let n=e;if("string"!=typeof n||!Qr.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ci)try{let e=new URL(window.location.href),r=Kr.test(n)?new URL((o=n,e.protocol+o.replace(/\\/g,"/"))):new URL(n),a=vi(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:i=!0}catch(e){ei(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}var o;return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _i=["POST","PUT","PATCH","DELETE"];new Set(_i);var $i=["GET",..._i];new Set($i);var ji=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];var Li=oe.createContext(null);Li.displayName="DataRouter";var Mi=oe.createContext(null);Mi.displayName="DataRouterState";var Ri=oe.createContext(!1);var Pi=oe.createContext({isTransitioning:!1});Pi.displayName="ViewTransition",oe.createContext(new Map).displayName="Fetchers",oe.createContext(null).displayName="Await";var Vi=oe.createContext(null);Vi.displayName="Navigation";var Bi=oe.createContext(null);Bi.displayName="Location";var Ui=oe.createContext({outlet:null,matches:[],isDataRoute:!1});Ui.displayName="Route";var qi=oe.createContext(null);qi.displayName="RouteError";var zi="REACT_ROUTER_ERROR";function Wi(){return null!=oe.useContext(Bi)}function Hi(){return Xr(Wi(),"useLocation() may be used only in the context of a <Router> component."),oe.useContext(Bi).location}var Zi="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ji(e){oe.useContext(Vi).static||oe.useLayoutEffect(e)}function Yi(){let{isDataRoute:e}=oe.useContext(Ui);return e?function(){let{router:e}=function(e){let t=oe.useContext(Li);return Xr(t,io(e)),t}("useNavigate"),t=oo("useNavigate"),n=oe.useRef(!1);return Ji(()=>{n.current=!0}),oe.useCallback(async(r,i={})=>{ei(n.current,Zi),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}():function(){Xr(Wi(),"useNavigate() may be used only in the context of a <Router> component.");let e=oe.useContext(Li),{basename:t,navigator:n}=oe.useContext(Vi),{matches:r}=oe.useContext(Ui),{pathname:i}=Hi(),o=JSON.stringify(wi(r)),a=oe.useRef(!1);return Ji(()=>{a.current=!0}),oe.useCallback((r,s={})=>
1{if(ei(a.current,Zi),!a.current)return;if("number"==typeof r)return void n.go(r);let l=Si(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:xi([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)},[t,n,o,i,e])}()}function Gi(e,{relative:t}={}){let{matches:n}=oe.useContext(Ui),{pathname:r}=Hi(),i=JSON.stringify(wi(n));return oe.useMemo(()=>Si(e,JSON.parse(i),r,"path"===t),[e,i,r,t])}function Qi(e,t,n){Xr(Wi(),"useRoutes() may be used only in the context of a <Router> component.");let r,{navigator:i}=oe.useContext(Vi),{matches:o}=oe.useContext(Ui),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let e=c&&c.path||"";so(l,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}r=Hi();let d=r.pathname||"/",f=d;if("/"!==u){let e=u.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ri(e,{pathname:f});ei(c||null!=h,`No routes matched location "${r.pathname}${r.search}${r.hash}" `),ei(null==h||void 0!==h[h.length-1].route.element||void 0!==h[h.length-1].route.Component||void 0!==h[h.length-1].route.lazy,`Matched leaf route at location "${r.pathname}${r.search}${r.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let p=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,o=r?.errors;if(null!=o){let e=i.findIndex(e=>e.route.id&&void 0!==o?.[e.route.id]);Xr(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,s=-1;if(n&&r){a=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:o}=r,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||l){n.isStatic&&(a=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ai(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,l)=>{let c,d=!1,f=null,h=null;r&&(c=o&&n.route.id?o[n.route.id]:void 0,f=n.route.errorElement||Xi,a&&(s<0&&0===l?(so("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):s===l&&(d=!0,h=n.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,l+1)),m=()=>{let t;return t=c?f:d?h:n.route.Component?oe.createElement(n.route.Component,null):n.route.element?n.route.element:e,oe.createElement(ro,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?oe.createElement(eo,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0},onError:u}):m()},null)}(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:xi([u,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:xi([u,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return p}function Ki(){let e=function(){let e=oe.useContext(qi),t=function(e){let t=oe.useContext(Mi);return Xr(t,io(e)),t}("useRouteError"),n=oo("useRouteError");if(void 0!==e)return e;return t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=oe.createElement(oe.Fragment,null,oe.createElement("p",null,"💿 Hey developer 👋"),oe.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",oe.createElement("code",{style:o},"ErrorBoundary")," or"," ",oe.createElement("code",{style:o},"errorElement")," prop on your route.")),oe.createElement(oe.Fragment,null,oe.createElement("h2",null,"Unexpected Application 
1Error!"),oe.createElement("h3",{style:{fontStyle:"italic"}},t),n?oe.createElement("pre",{style:i},n):null,a)}oe.createContext(null);var Xi=oe.createElement(Ki,null),eo=class extends oe.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${zi}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new Di(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?oe.createElement(Ui.Provider,{value:this.props.routeContext},oe.createElement(qi.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?oe.createElement(no,{error:e},t):t}};eo.contextType=Ri;var to=new WeakMap;function no({children:e,error:t}){let{basename:n}=oe.useContext(Vi);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${zi}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=to.get(t);if(r)throw r;let i=Fi(e.location,n),o=i.absoluteURL||i.to;if(function(e){try{return ji.includes(new URL(e).protocol)}catch{return!1}}(o))throw new Error("Invalid redirect location");if(Ci&&!to.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw to.set(t,n),n}window.location.href=o}return oe.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o}`})}}return e}function ro({routeContext:e,match:t,children:n}){let r=oe.useContext(Li);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),oe.createElement(Ui.Provider,{value:e},n)}function io(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function oo(e){let t=function(e){let t=oe.useContext(Ui);return Xr(t,io(e)),t}(e),n=t.matches[t.matches.length-1];return Xr(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var ao={};function so(e,t,n){t||ao[e]||(ao[e]=!0,ei(!1,n))}oe.memo(function({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:o}){return Qi(e,0,{manifest:t,state:r,isStatic:i,onError:o})});var lo="get",uo="application/x-www-form-urlencoded";function co(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function fo(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var ho=null;var po=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mo(e){return null==e||po.has(e)?e:(ei(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${uo}"`),null)}function yo(e,t){let n,r,i,o,a;if(co(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?vi(a,t):null,n=e.getAttribute("method")||lo,i=mo(e.getAttribute("enctype"))||uo,o=new FormData(e)}else if(function(e){return co(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return co(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?vi(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||lo,i=mo(e.getAttribute("formenctype"))||mo(a.getAttribute("enctype"))||uo,o=new FormData(a,e),!function(){if(null===ho)try{new FormData(document.createElement("form"),0),ho=!1}catch(e){ho=!0}return ho}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}
1else t&&o.append(t,r)}}else{if(co(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=lo,r=null,i=uo,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function go(e,t){if(!1===e||null==e)throw new Error(t)}function vo(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===vi(i.pathname,t)?i.pathname=`${Ei(t)}/_root.${r}`:i.pathname=`${Ei(i.pathname)}.${r}`,i}function bo(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function ko(e,t,n){return function(e,t){let n=new Set;return new Set(t),e.reduce((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(bo).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}function wo(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function So(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1),[...new Set(r)];var r}function No(){let e=oe.useContext(Li);return go(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var xo=oe.createContext(void 0);function Eo(){let e=oe.useContext(xo);return go(e,"You must render this element inside a <HydratedRouter> element"),e}function Oo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function To({page:e,...t}){let n=oe.useContext(Ri),{nonce:r}=Eo(),{router:i}=No(),o=oe.useMemo(()=>ri(i.routes,e,i.basename),[i.routes,e,i.basename]);return o?(null==t.nonce&&r&&(t={...t,nonce:r}),n?oe.createElement(Io,{page:e,matches:o,...t}):oe.createElement(Do,{page:e,matches:o,...t})):null}function Io({page:e,matches:t,...n}){let r=Hi(),{future:i}=Eo(),{basename:o}=No(),a=oe.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=vo(e,o,i.v8_trailingSlashAwareDataRequests,"rsc"),a=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:s.push(e.route.id);return a&&s.length>0&&n.searchParams.set("_routes",s.join(",")),[n.pathname+n.search]},[o,i.v8_trailingSlashAwareDataRequests,e,r,t]);return oe.createElement(oe.Fragment,null,a.map(e=>oe.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function Do({page:e,matches:t,...n}){let r=Hi(),{future:i,manifest:o,routeModules:a}=Eo(),{basename:s}=No(),{loaderData:l,matches:u}=function(){let e=oe.useContext(Mi);return go(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),c=oe.useMemo(()=>wo(e,t,u,o,r,"data"),[e,t,u,o,r]),d=oe.useMemo(()=>
1wo(e,t,u,o,r,"assets"),[e,t,u,o,r]),f=oe.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,u=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?u=!0:n.add(e.route.id))}),0===n.size)return[];let d=vo(e,s,i.v8_trailingSlashAwareDataRequests,"data");return u&&n.size>0&&d.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,l,r,o,c,t,e,a]),h=oe.useMemo(()=>So(d,o),[d,o]),p=function(e){let{manifest:t,routeModules:n}=Eo(),[r,i]=oe.useState([]);return oe.useEffect(()=>{let r=!1;return ko(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}(d);return oe.createElement(oe.Fragment,null,f.map(e=>oe.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),h.map(e=>oe.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),p.map(({key:e,link:t})=>oe.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ao(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}xo.displayName="FrameworkContext";var Co="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Co&&(window.__reactRouterVersion="7.18.2")}catch(Cc){}var Fo=oe.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,mask:a,state:s,target:l,to:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:f,...h},p){let{basename:m,navigator:y,useTransitions:g}=oe.useContext(Vi),v="string"==typeof u&&Qr.test(u),b=Fi(u,m),k=function(e,{relative:t}={}){Xr(Wi(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=oe.useContext(Vi),{hash:i,pathname:o,search:a}=Gi(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:xi([n,o])),r.createHref({pathname:s,search:a,hash:i})}(u=b.to,{relative:r}),w=Hi(),S=null;if(a){let e=Si(a,[],w.mask?w.mask.pathname:"/",!0);"/"!==m&&(e.pathname="/"===e.pathname?m:xi([m,e.pathname])),S=y.createHref(e)}let[N,x,E]=function(e,t){let n=oe.useContext(xo),[r,i]=oe.useState(!1),[o,a]=oe.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,f=oe.useRef(null);oe.useEffect(()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{a(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),oe.useEffect(()=>{if(r){let e=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(e)}}},[r]);let h=()=>{i(!0)},p=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:Oo(s,h),onBlur:Oo(l,p),onMouseEnter:Oo(u,h),onMouseLeave:Oo(c,p),onTouchStart:Oo(d,h)}]:[!1,f,{}]}(n,h),O=function(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:o,relative:a,viewTransition:s,defaultShouldRevalidate:l,useTransitions:u}={}){let c=Yi(),d=Hi(),f=Gi(e,{relative:a});return oe.useCallback(h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==n?n:ti(d)===ti(f),p=()=>c(e,{replace:t,mask:r,state:i,preventScrollReset:o,relative:a,viewTransition:s,defaultShouldRevalidate:l});u?oe.startTransition(()=>p()):p()}},[d,c,f,n,r,i,t,e,o,a,s,l,u])}(u,{replace:o,mask:a,state:s,target:l,preventScrollReset:c,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:g});let T=!(b.isExternal||i),I=oe.createElement("a",{...h,...E,href:(T?S:void 0)||b.absoluteURL||k,onClick:T?function(t){e&&e(t),t.defaultPrevented||O(t)}:e,ref:Ao(p,x),target:l,"data-discover":v||"render"!==t?void 0:"true"});return N&&!v?oe.createElement(oe.Fragment,null,I,oe.createElement(To,{page:k})):I});Fo.displayName="Link",oe.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},u){let c=Gi(o,{relative:l.relative}),d=Hi(),f=oe.useContext(Mi),{navigator:h,basename:p}=oe.useContext(Vi),m=null!=f&&function(e,{relative:t}={}){let n=oe.useContext(Pi);Xr(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$o("useViewTransitionState"),i=Gi(e,{relative:t});if(!n.isTransitioning)return!1;let o=vi(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=vi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=mi(i.pathname,a)||null!=mi(i.pathname,o)}(c)&&!0===a,y=h.encodeLocation?h.encodeLocation(c).pathname:c.pathname,g=d.pathname,v=f&&f.n
1avigation&&f.navigation.location?f.navigation.location.pathname:null;t||(g=g.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&p&&(v=vi(v,p)||v);const b="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,w=g===y||!r&&g.startsWith(y)&&"/"===g.charAt(b),S=null!=v&&(v===y||!r&&v.startsWith(y)&&"/"===v.charAt(y.length)),N={isActive:w,isPending:S,isTransitioning:m},x=w?e:void 0;k="function"==typeof n?n(N):[n,w?"active":null,S?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(N):i;return oe.createElement(Fo,{...l,"aria-current":x,className:k,ref:u,style:E,to:o,viewTransition:a},"function"==typeof s?s(N):s)}).displayName="NavLink";var _o=oe.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=lo,action:s,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:f,...h},p)=>{let{useTransitions:m}=oe.useContext(Vi),y=function(){let{router:e}=$o("useSubmit"),{basename:t}=oe.useContext(Vi),n=oo("useRouteId"),r=e.fetch,i=e.navigate;return oe.useCallback(async(e,o={})=>{let{action:a,method:s,encType:l,formData:u,body:c}=yo(e,t);if(!1===o.navigate){let e=o.fetcherKey||Mo();await r(e,n,o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await i(o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}(),g=function(e,{relative:t}={}){let{basename:n}=oe.useContext(Vi),r=oe.useContext(Ui);Xr(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Gi(e||".",{relative:t})},a=Hi();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index"),n=t.some(e=>""===e);if(n){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:xi([n,o.pathname]));return ti(o)}(s,{relative:u}),v="get"===a.toLowerCase()?"get":"post",b="string"==typeof s&&Qr.test(s);return oe.createElement("form",{ref:p,method:v,action:g,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||a,h=()=>y(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:f});m&&!1!==n?oe.startTransition(()=>h()):h()},...h,"data-discover":b||"render"!==e?void 0:"true"})});function $o(e){let t=oe.useContext(Li);return Xr(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}function jo(e){ei("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=oe.useRef(fo(e)),n=oe.useRef(!1),r=Hi(),i=oe.useMemo(()=>function(e,t){let n=fo(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),o=Yi(),a=oe.useCallback((e,t)=>{const r=fo("function"==typeof e?e(new URLSearchParams(i)):e);n.current=!0,o("?"+r,t)},[o,i]);return[i,a]}_o.displayName="Form";var Lo=0,Mo=()=>`__${String(++Lo)}__`;const Ro=a("__enableTestIds")||typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes("playwright")||!1,Po=oe.createContext(null),Vo=()=>{const e=oe.useContext(Po),t=function(){let{matches:e}=oe.useContext(Ui),t=e[e.length-1];return t?.params??{}}(),[n]=jo(),r=oe.useMemo(()=>Object.fromEntries(n.entries()),[n]);return{category:e,href:typeof window<"u"&&window.location.href,query:r,params:t}},Bo=oe.forwardRef(({as:e,_dataId:t,_dataContext:n,...r},i)=>{const o=oe.useContext(Po),a=e||"div";if(!Ro)return Gr.jsx(a,{ref:i,...r});const s={...r,"data-test-id":[o,t,n&&"object"==typeof n?JSON.stringify(n):n].filter(
1Boolean).join("_")};return Gr.jsx(a,{ref:i,...s})});Bo.displayName="CfAnchorNonInteractive";const Uo=oe.forwardRef(({as:e,onClick:t,disabled:n,_dataId:r,_dataContext:i,...o},a)=>{const s=(()=>{const e=Vo(),{category:t,...n}=e;return(r,i)=>r?{props:Ro?{"data-test-id":[e.category,r,i&&"object"==typeof i?JSON.stringify(i):i].filter(Boolean).join("_")}:{},onClick:()=>{var e,o;const a={propertyBag:{...n,context:i||null},label:r,action:"click",category:`${t}`};null==(o=null==(e=window.__cf_awesome_analytics)?void 0:e.sendEvent)||o.call(e,a)}}:{props:{},onClick:()=>{}}})()(r,i),l={...o,disabled:n,...s.props,onClick:n?void 0:e=>{null==t||t(e),s.onClick()}};return Gr.jsx(e||"div",{ref:a,...l})});Uo.displayName="CfAnchorElement",Sr("\n  query BotFeatureQuery($featureID: ToggleName!, $botID: BotID!) {\n    bot(id: $botID) {\n      id\n      feature(id: $featureID) {\n        name\n        enabled\n      }\n    }\n  }\n"),Sr("\n  query UserFeatureQuery($featureID: ToggleName!) {\n    currentUser {\n      id\n      feature(id: $featureID) {\n        name\n        enabled\n      }\n    }\n  }\n");const qo=Or(),zo=Or();Er(zo),Sr("\n  mutation WhatsAppBusinessPaymentMethodCheck(\n    $botId: BotID!\n    $wabaId: WhatsappBusinessAccountID!\n  ) {\n    whatsAppBusinessPaymentMethodCheck(botID: $botId, wabaID: $wabaId)\n  }\n"),Sr("\n  query CurrentUserLocale {\n    currentUser {\n      id\n      dashboardLocale\n    }\n  }\n"),Sr("\n  query BackendTranslation($key: String!, $locale: DashboardLocale!) {\n    translation(key: $key, locale: $locale)\n  }\n"),Sr("\n  fragment WhatsAppPhoneContactScopeForWabaStatus on WhatsAppPhoneContactScope {\n    id\n    phone {\n      id\n      isConnectedToBot\n      verifiedName\n      messagingStatus {\n        ... on WhatsAppPhoneMessagingStatusAvailable {\n          fakeField\n        }\n        ... on WhatsAppPhoneMessagingStatusLimited {\n          reasons\n        }\n        ... on WhatsAppPhoneMessagingStatusBlocked {\n          reasons\n        }\n      }\n      whatsAppBusinessAccount {\n        id\n        messagingStatus {\n          ... on WhatsAppBusinessAccountMessagingStatusAvailable {\n            fakeField\n          }\n          ... on WhatsAppBusinessAccountMessagingStatusLimited {\n            reasons\n          }\n          ... on WhatsAppBusinessAccountMessagingStatusBlocked {\n            reasons\n          }\n        }\n        facebookBusiness {\n          id\n          verificationStatus\n          verificationSubmission {\n            id\n            status\n            attemptsLeft\n            successNotificationRead\n          }\n          messagingStatus {\n            ... on FacebookBusinessMessagingStatusAvailable {\n              fakeField\n            }\n            ... on FacebookBusinessMessagingStatusLimited {\n              reasons\n            }\n            ... on FacebookBusinessMessagingStatusBlocked {\n              reasons\n            }\n          }\n        }\n      }\n    }\n  }\n"),Sr("\n  query ConnectedWabaStatusQuery($botId: BotID!) {\n    bot(id: $botId) {\n      id\n      contactScopes {\n        id\n        ...WhatsAppPhoneContactScopeForWabaStatus\n      }\n    }\n  }\n");const Wo=navigator.userAgent.toLowerCase();Wo.includes("android"),Wo.includes("iphone")||Wo.includes("ipad"),Sr("\n  mutation BotAbExperimentMutation(\n    $experimentId: ABExperimentID!\n    $botId: BotID!\n  ) {\n    abExperimentBucketGetByBot(experimentID: $experimentId, botID: $botId) {\n      __typename\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n      ... on ABExperimentAssignedBucketNull {\n        fakeField\n      }\n    }\n  }\n"),Sr("\n  mutation UserAbExperimentMutation($experimentId: ABExperimentID!) {\n    abExperimentBucketGetByUser(experimentID: $experimentId) {\n      __typename\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n      ... on ABExperimentAssignedBucketNull {\n        fakeField\n      }\n    }\n  }\n"),Sr("\n  mutation BookingAssignTestBucketMutation {\n    abExperimentBookingAssignTestBucket {\n      __typename\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n      ... on ABExperimentAssignedBucketNull {\n        fakeField\n      }\n    }\n  }\n"),Sr("\n  mutation AbExperimentBookingAssignControlBucket {\n    abExperimentBookingAssignControlBucket {\n      ... on ABExperimentAssignedBucketFound {\n        id\n      }\n    }\n  }\n");const Ho=()=>{var e,t;return(null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e.getClid)?void 0:t.call(e))||"unknown"},Zo={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Jo;const Yo=new Uint8Array(16);function Go(){if(!Jo&&(Jo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Jo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jo(Yo)}const Qo=[];for(let e=0;e<256;
1++e)Qo.push((e+256).toString(16).slice(1));function Ko(e,t,n){if(Zo.randomUUID&&!t&&!e)return Zo.randomUUID();const r=(e=e||{}).random||(e.rng||Go)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return Qo[e[t+0]]+Qo[e[t+1]]+Qo[e[t+2]]+Qo[e[t+3]]+"-"+Qo[e[t+4]]+Qo[e[t+5]]+"-"+Qo[e[t+6]]+Qo[e[t+7]]+"-"+Qo[e[t+8]]+Qo[e[t+9]]+"-"+Qo[e[t+10]]+Qo[e[t+11]]+Qo[e[t+12]]+Qo[e[t+13]]+Qo[e[t+14]]+Qo[e[t+15]]}(r)}new s({processQueue:e=>{var t;if(!e.length)return Promise.resolve();const n={user_id:Ho(),events:e.map(e=>({...e.event,id:Ko()})),event_source_url:document.location.href,...null==(t=e.find(e=>e.userData))?void 0:t.userData};return l("/api/in-house-service/data-f",JSON.stringify(n))}});new s({processQueue:e=>{if(!e.length)return Promise.resolve();const t={user_id:Ho(),events:e};return l("/api/in-house-service/data-g",JSON.stringify(t))}});let Xo=class extends Error{},ea=class extends Xo{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},ta=class extends Xo{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},na=class extends Xo{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ra=class extends Xo{},ia=class extends Xo{constructor(e){super(`Invalid unit ${e}`)}},oa=class extends Xo{},aa=class extends Xo{constructor(){super("Zone is an abstract class")}},sa=class{get type(){throw new aa}get name(){throw new aa}get ianaName(){return this.name}get isUniversal(){throw new aa}offsetName(e,t){throw new aa}formatOffset(e,t){throw new aa}offset(e){throw new aa}equals(e){throw new aa}get isValid(){throw new aa}},la=null,ua=class e extends sa{static get instance(){return null===la&&(la=new e),la}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ds(e,t,n)}formatOffset(e,t){return _s(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}};const ca=new Map;const da={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};const fa=new Map;let ha=class e extends sa{static create(t){let n=fa.get(t);return void 0===n&&fa.set(t,n=new e(t)),n}static resetCache(){fa.clear(),ca.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ds(e,t,n,this.name)}formatOffset(e,t){return _s(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=ca.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),ca.set(e,t)),t}(this.name);let[r,i,o,a,s,l,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:i}=n[e],o=da[t];"era"===t?r[o]=i:ls(o)||(r[o]=parseInt(i,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,a,s,l,u,c]=r;return[a,i,o,s,l,u,c]}(n,t);"BC"===a&&(r=1-Math.abs(r));let c=+t;const d=c%1e3;return c-=d>=0?d:1e3+d,(Es({year:r,month:i,day:o,hour:24===s?0:s,minute:l,second:u,millisecond:0})-c)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}},pa={};const ma=new Map;function ya(e,t={}){const n=JSON.stringify([e,t]);let r=ma.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),ma.set(n,r)),r}const ga=new Map;const va=new Map;let ba=null;const ka=new Map;function wa(e){let t=ka.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),ka.set(e,t)),t}const Sa=new Map;function Na(e,t,n,r){const i=e.listingMode();return"error"===i?null:"en"===i?n(t):r(t)}let xa=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:i,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=ga.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),ga.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return gs(this.floor?Math.floor(e):ws(e,3),this.padTo)}},Ea=class{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&ha.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=ya(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Oa=class{constructor(e,t,n){this.opts={style:"long",...n},!t&&ds()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=va.get(i);return void 0===o&&(o=new Intl.RelativeTimeFormat(e,t),va.set(i,o)),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="al
1ways",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return a?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}};const Ta={firstDay:1,minimalDays:4,weekend:[6,7]};let Ia=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const a=t||Ha.defaultLocale,s=a||(o?"en-US":ba||(ba=(new Intl.DateTimeFormat).resolvedOptions().locale,ba)),l=n||Ha.defaultNumberingSystem,u=r||Ha.defaultOutputCalendar,c=ms(i)||Ha.defaultWeekSettings;return new e(s,l,u,c,a)}static resetCache(){ba=null,ma.clear(),ga.clear(),va.clear(),ka.clear(),Sa.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return e.create(t,n,r,i)}constructor(e,t,n,r,i){const[o,a,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=ya(e).resolvedOptions(),r=e}catch{const i=e.substring(0,n);t=ya(i).resolvedOptions(),r=i}const{numberingSystem:i,calendar:o}=t;return[r,i,o]}}(e);this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=function(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===wa(e.locale).numberingSystem)}(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,ms(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Na(this,e,El,()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";if(!this.monthsCache[i][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=mc.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Na(this,e,Dl,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=mc.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Na(this,void 0,()=>Al,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[mc.utc(2016,11,13,9),mc.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Na(this,e,$l,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[mc.utc(-40,1,1),mc.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new xa(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ea(e,this.intl,t)}relFormatter(e={}){return new Oa(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=pa[n];return r||(r=new Intl.ListFormat(e,t),pa[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||wa(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:fs()?function(e){let t=Sa.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...Ta,...t}),Sa.set(e,t)}return t}(this.locale):Ta}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Da=null,Aa=class e extends sa{static get utcInstance(){return null===Da&&(Da=new e(0)),Da}static instance(t){return 0===t?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(As(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${_s(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${_s(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return _s(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}},Ca=class extends sa{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Fa(e,t){if(ls(e)||null===e)return t;if(e instanceof sa)return e;if(function(e){return"string"==typeof e}(e)){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?ua.instance:"utc"===n||"gmt"===n?Aa.utcInstance:Aa.parseSpecifier(n)||ha.create(e)}return us(e)?Aa.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Ca(e)}const _a={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",t
1ibt:"[༠-༩]",latn:"\\d"},$a={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ja=_a.hanidec.replace(/[\[|\]]/g,"").split("");const La=new Map;function Ma({numberingSystem:e},t=""){const n=e||"latn";let r=La.get(n);void 0===r&&(r=new Map,La.set(n,r));let i=r.get(t);return void 0===i&&(i=new RegExp(`${_a[n]}${t}`),r.set(t,i)),i}let Ra,Pa=()=>Date.now(),Va="system",Ba=null,Ua=null,qa=null,za=60,Wa=null,Ha=class{static get now(){return Pa}static set now(e){Pa=e}static set defaultZone(e){Va=e}static get defaultZone(){return Fa(Va,ua.instance)}static get defaultLocale(){return Ba}static set defaultLocale(e){Ba=e}static get defaultNumberingSystem(){return Ua}static set defaultNumberingSystem(e){Ua=e}static get defaultOutputCalendar(){return qa}static set defaultOutputCalendar(e){qa=e}static get defaultWeekSettings(){return Wa}static set defaultWeekSettings(e){Wa=ms(e)}static get twoDigitCutoffYear(){return za}static set twoDigitCutoffYear(e){za=e%100}static get throwOnInvalid(){return Ra}static set throwOnInvalid(e){Ra=e}static resetCaches(){Ia.resetCache(),ha.resetCache(),mc.resetCache(),La.clear()}},Za=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const Ja=[0,31,59,90,120,151,181,212,243,273,304,334],Ya=[0,31,60,91,121,152,182,213,244,274,305,335];function Ga(e,t){return new Za("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Qa(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return 0===i?7:i}function Ka(e,t,n){return n+(Ss(e)?Ya:Ja)[t-1]}function Xa(e,t){const n=Ss(e)?Ya:Ja,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function es(e,t){return(e-t+7)%7+1}function ts(e,t=4,n=1){const{year:r,month:i,day:o}=e,a=Ka(r,i,o),s=es(Qa(r,i,o),n);let l,u=Math.floor((a-s+14-t)/7);return u<1?(l=r-1,u=Ts(l,t,n)):u>Ts(r,t,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:s,...$s(e)}}function ns(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,a=es(Qa(r,1,t),n),s=Ns(r);let l,u=7*i+o-a-7+t;u<1?(l=r-1,u+=Ns(l)):u>s?(l=r+1,u-=Ns(r)):l=r;const{month:c,day:d}=Xa(l,u);return{year:l,month:c,day:d,...$s(e)}}function rs(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Ka(t,n,r),...$s(e)}}function is(e){const{year:t,ordinal:n}=e,{month:r,day:i}=Xa(t,n);return{year:t,month:r,day:i,...$s(e)}}function os(e,t){if(ls(e.localWeekday)&&ls(e.localWeekNumber)&&ls(e.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!ls(e.weekday)||!ls(e.weekNumber)||!ls(e.weekYear))throw new ra("Cannot mix locale-based week fields with ISO-based week fields");return ls(e.localWeekday)||(e.weekday=e.localWeekday),ls(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ls(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function as(e){const t=cs(e.year),n=ys(e.month,1,12),r=ys(e.day,1,xs(e.year,e.month));return t?n?!r&&Ga("day",e.day):Ga("month",e.month):Ga("year",e.year)}function ss(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=ys(t,0,23)||24===t&&0===n&&0===r&&0===i,a=ys(n,0,59),s=ys(r,0,59),l=ys(i,0,999);return o?a?s?!l&&Ga("millisecond",i):Ga("second",r):Ga("minute",n):Ga("hour",t)}function ls(e){return typeof e>"u"}function us(e){return"number"==typeof e}function cs(e){return"number"==typeof e&&e%1==0}function ds(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function fs(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function hs(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function ps(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ms(e){if(null==e)return null;if("object"!=typeof e)throw new oa("Week settings must be an object");
1if(!ys(e.firstDay,1,7)||!ys(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!ys(e,1,7)))throw new oa("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ys(e,t,n){return cs(e)&&e>=t&&e<=n}function gs(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function vs(e){if(!ls(e)&&null!==e&&""!==e)return parseInt(e,10)}function bs(e){if(!ls(e)&&null!==e&&""!==e)return parseFloat(e)}function ks(e){if(!ls(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ws(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Ss(e){return e%4==0&&(e%100!=0||e%400==0)}function Ns(e){return Ss(e)?366:365}function xs(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?Ss(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Es(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Os(e,t,n){return-es(Qa(e,1,t),n)+t-1}function Ts(e,t=4,n=1){const r=Os(e,t,n),i=Os(e+1,t,n);return(Ns(e)-r+i)/7}function Is(e){return e>99?e:e>Ha.twoDigitCutoffYear?1900+e:2e3+e}function Ds(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function As(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Cs(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new oa(`Invalid unit value ${e}`);return t}function Fs(e,t){const n={};for(const r in e)if(ps(e,r)){const i=e[r];if(null==i)continue;n[t(r)]=Cs(i)}return n}function _s(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${gs(n,2)}:${gs(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${gs(n,2)}${gs(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function $s(e){return function(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}(e,["hour","minute","second","millisecond"])}const js=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ls(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function Ms(...e){return t=>e.reduce(([e,n,r],i)=>{const[o,a,s]=i(t,r);return[{...e,...o},a||n,s]},[{},null,1]).slice(0,2)}function Rs(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function Ps(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=vs(t[n+i]);return[r,null,n+i]}}const Vs=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Bs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Us=RegExp(`${Bs.source}${`(?:${Vs.source}?(?:\\[(${js.source})\\])?)?`}`),qs=RegExp(`(?:[Tt]${Us.source})?`),zs=Ps("weekYear","weekNumber","weekDay"),Ws=Ps("year","ordinal"),Hs=RegExp(`${Bs.source} ?(?:${Vs.source}|(${js.source}))?`),Zs=RegExp(`(?: ${Hs.source})?`);function Js(e,t,n){const r=e[t];return ls(r)?n:vs(r)}function Ys(e,t){return[{hours:Js(e,t,0),minutes:Js(e,t+1,0),seconds:Js(e,t+2,0),milliseconds:ks(e[t+3])},null,t+4]}function Gs(e,t){const n=!e[t]&&!e[t+1],r=As(e[t+1],e[t+2]);return[{},n?null:Aa.instance(r),t+3]}function Qs(e,t){return[{},e[t]?ha.create(e[t]):null,t+1]}const Ks=RegExp(`^T?${Bs.source}$`),Xs=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function el(e){const[t,n,r,i,o,a,s,l,u]=e,c="-"===t[0],d=l&&"-"===l[0],f=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:f(bs(n)),months:f(bs(r)),weeks:f(bs(i)),days:f(bs(o)),hours:f(bs(a)),minutes:f(bs(s)),seconds:f(bs(l),"-0"===l),milliseconds:f(ks(u),d)}]}const tl={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function nl(e,t,n,r,i,o,a){const s={year:2===t.length?Is(vs(t)):vs(t),month:Nl.indexOf(n)+1,day:vs(r),hour:vs(i),minute:vs(o)};return a&&(s.second=vs(a)),e&&(s.weekday=e.length>3?Ol.indexOf(e)+1:Tl.indexOf(e)+1),s}const rl=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function il(e){const[,t,n,r,i,o,a,s,l,u,c,d]=e,f=nl(t,i,r,n,o,a,s);let h;return h=l?tl[l]:u?0:As(c,d),[f,new Aa(h)]}const ol=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,al=/^(Monday|Tuesday|Wednesday|Thursday|Frid
1ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,sl=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ll(e){const[,t,n,r,i,o,a,s]=e;return[nl(t,i,r,n,o,a,s),Aa.utcInstance]}function ul(e){const[,t,n,r,i,o,a,s]=e;return[nl(t,s,n,r,i,o,a),Aa.utcInstance]}const cl=Ls(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,qs),dl=Ls(/(\d{4})-?W(\d\d)(?:-?(\d))?/,qs),fl=Ls(/(\d{4})-?(\d{3})/,qs),hl=Ls(Us),pl=Ms(function(e,t){return[{year:Js(e,t),month:Js(e,t+1,1),day:Js(e,t+2,1)},null,t+3]},Ys,Gs,Qs),ml=Ms(zs,Ys,Gs,Qs),yl=Ms(Ws,Ys,Gs,Qs),gl=Ms(Ys,Gs,Qs);const vl=Ms(Ys);const bl=Ls(/(\d{4})-(\d\d)-(\d\d)/,Zs),kl=Ls(Hs),wl=Ms(Ys,Gs,Qs);const Sl=["January","February","March","April","May","June","July","August","September","October","November","December"],Nl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xl=["J","F","M","A","M","J","J","A","S","O","N","D"];function El(e){switch(e){case"narrow":return[...xl];case"short":return[...Nl];case"long":return[...Sl];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ol=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Tl=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Il=["M","T","W","T","F","S","S"];function Dl(e){switch(e){case"narrow":return[...Il];case"short":return[...Tl];case"long":return[...Ol];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Al=["AM","PM"],Cl=["Before Christ","Anno Domini"],Fl=["BC","AD"],_l=["B","A"];function $l(e){switch(e){case"narrow":return[..._l];case"short":return[...Fl];case"long":return[...Cl];default:return null}}const jl="numeric",Ll="short",Ml="long",Rl={year:jl,month:jl,day:jl},Pl={year:jl,month:Ll,day:jl},Vl={year:jl,month:Ll,day:jl,weekday:Ll},Bl={year:jl,month:Ml,day:jl},Ul={year:jl,month:Ml,day:jl,weekday:Ml},ql={hour:jl,minute:jl},zl={hour:jl,minute:jl,second:jl},Wl={hour:jl,minute:jl,second:jl,timeZoneName:Ll},Hl={hour:jl,minute:jl,second:jl,timeZoneName:Ml},Zl={hour:jl,minute:jl,hourCycle:"h23"},Jl={hour:jl,minute:jl,second:jl,hourCycle:"h23"},Yl={hour:jl,minute:jl,second:jl,hourCycle:"h23",timeZoneName:Ll},Gl={hour:jl,minute:jl,second:jl,hourCycle:"h23",timeZoneName:Ml},Ql={year:jl,month:jl,day:jl,hour:jl,minute:jl},Kl={year:jl,month:jl,day:jl,hour:jl,minute:jl,second:jl},Xl={year:jl,month:Ll,day:jl,hour:jl,minute:jl},eu={year:jl,month:Ll,day:jl,hour:jl,minute:jl,second:jl},tu={year:jl,month:Ll,day:jl,weekday:Ll,hour:jl,minute:jl},nu={year:jl,month:Ml,day:jl,hour:jl,minute:jl,timeZoneName:Ll},ru={year:jl,month:Ml,day:jl,hour:jl,minute:jl,second:jl,timeZoneName:Ll},iu={year:jl,month:Ml,day:jl,weekday:Ml,hour:jl,minute:jl,timeZoneName:Ml},ou={year:jl,month:Ml,day:jl,weekday:Ml,hour:jl,minute:jl,second:jl,timeZoneName:Ml};function au(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const su={D:Rl,DD:Pl,DDD:Bl,DDDD:Ul,t:ql,tt:zl,ttt:Wl,tttt:Hl,T:Zl,TT:Jl,TTT:Yl,TTTT:Gl,f:Ql,ff:Xl,fff:nu,ffff:iu,F:Kl,FF:eu,FFF:ru,FFFF:ou};let lu=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);"'"===a?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return su[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return gs(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(t,n){const r="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(e,n)=>this.loc.extract(t,e,n),a=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=()=>r?function(e){return Al[e.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"}
1,"dayperiod"),l=(e,n)=>r?function(e,t){return El(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),u=(e,n)=>r?function(e,t){return Dl(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=n=>{const r=e.macroTokenToFormatOpts(n);return r?this.formatWithSystemDefault(t,r):n},d=e=>r?function(e,t){return $l(t)[e.year<0?0:1]}(t,e):o({era:e},"era");return au(e.parseFormat(n),e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}})}formatDurationFromString(t,n){const r="negativeLargestOnly"===this.opts.signMode?-1:1,i=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=e.parseFormat(n),a=o.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),s=t.shiftTo(...a.map(i).filter(e=>e));return au(o,((e,t)=>n=>{const o=i(n);if(o){const i=t.isNegativeDuration&&o!==t.largestUnit?r:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&o!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(o)*i,n.length,a)}return n})(s,{isNegativeDuration:s<0,largestUnit:Object.keys(s.values)[0]}))}};const uu="Invalid Duration",cu={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},du={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...cu},fu=365.2425,hu=30.436875,pu={years:{quarters:4,months:12,weeks:fu/7,days:fu,hours:24*fu,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:fu/28,days:fu/4,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:hu/7,days:hu,hours:24*hu,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...cu},mu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yu=mu.slice(0).reverse();function gu(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new wu(r)}function vu(e,t){let n=t.milliseconds??0;for(const r of yu.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function bu(e,t){const n=vu(e,t)<0?-1:1;mu.reduceRight((r,i)=>{if(ls(t[i]))return r;if(r){const o=t[r]*n,a=e[i][r],s=Math.floor(o/a);t[i]+=s*n,t[r]-=s*a*n}return i},null),mu.reduce((n,r)=>{if(ls(t[r]))return n;if(n){const i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function ku(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}let wu=class e{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?pu:du;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Ia.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(null==t||"object"!=typeof t)throw new oa("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));
1return new e({values:Fs(t,e.normalizeUnit),loc:Ia.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(us(t))return e.fromMillis(t);if(e.isDuration(t))return t;if("object"==typeof t)return e.fromObject(t);throw new oa(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=function(e){return Rs(e,[Xs,el])}(t);return r?e.fromObject(r,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=function(e){return Rs(e,[Ks,vl])}(t);return r?e.fromObject(r,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new oa("need to specify a reason the Duration is invalid");const r=t instanceof Za?t:new Za(t,n);if(Ha.throwOnInvalid)throw new na(r);return new e({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new ia(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?lu.create(this.loc,n).formatDurationFromString(this,e):uu}toHuman(e={}){if(!this.isValid)return uu;const t=!1!==e.showZeros,n=mu.map(n=>{const r=this.values[n];return ls(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=ws(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},mc.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?vu(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=e.fromDurationLike(t),r={};for(const e of mu)(ps(n.values,e)||ps(this.values,e))&&(r[e]=n.get(e)+this.get(e));return gu(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Cs(e(this.values[n],n));return gu(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return gu(this,{values:{...this.values,...Fs(t,e.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return gu(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return bu(this.matrix,e),gu(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return gu(this,{values:ku(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map(t=>e.normalizeUnit(t));const n={},r={},i=this.toObject();let o;for(const e of mu)if(t.indexOf(e)>=0){o=e;let t=0;for(const n in r)t+=this.matrix[n][e]*r[n],r[n]=0;us(i[e])&&(t+=i[e]);const a=Math.trunc(t);n[e]=a,r[e]=(1e3*t-1e3*a)/1e3}else us(i[e])&&(r[e]=i[e]);for(const e in r)0!==r[e]&&(n[o]+=e===o?r[e]:r[e]/this.matrix[o][e]);return bu(this.matrix,n),gu(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return gu(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;return gu(this,{values:ku(this.values)},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of mu)if(!t(this.values[n],e.values[n]))return!1;return!0}};const Su="Invalid Interval";let Nu=class e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}
1static invalid(t,n=null){if(!t)throw new oa("need to specify a reason the Interval is invalid");const r=t instanceof Za?t:new Za(t,n);if(Ha.throwOnInvalid)throw new ta(r);return new e({invalid:r})}static fromDateTimes(t,n){const r=yc(t),i=yc(n),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Nu.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Nu.invalid("missing or invalid end"):Nu.invalid("missing or invalid start")}(r,i);return o??new e({start:r,end:i})}static after(t,n){const r=wu.fromDurationLike(n),i=yc(t);return e.fromDateTimes(i,i.plus(r))}static before(t,n){const r=wu.fromDurationLike(n),i=yc(t);return e.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let t,o,a,s;try{t=mc.fromISO(r,n),o=t.isValid}catch{o=!1}try{a=mc.fromISO(i,n),s=a.isValid}catch{s=!1}if(o&&s)return e.fromDateTimes(t,a);if(o){const r=wu.fromISO(i,n);if(r.isValid)return e.after(t,r)}else if(s){const t=wu.fromISO(r,n);if(t.isValid)return e.before(a,t)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=null!=t&&t.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(yc).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const t=n[o]||this.e,a=+t>+this.e?this.e:t;r.push(e.fromDateTimes(i,a)),i=a,o+=1}return r}splitBy(t){const n=wu.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];let r,{s:i}=this,o=1;const a=[];for(;i<this.e;){const t=this.start.plus(n.mapUnits(e=>e*o));r=+t>+this.e?this.e:t,a.push(e.fromDateTimes(i,r)),i=r,o+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(t){let n=null,r=0;const i=[],o=t.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),a=Array.prototype.concat(...o).sort((e,t)=>e.time-t.time);for(const t of a)r+="s"===t.type?1:-1,1===r?n=t.time:(n&&+n!=+t.time&&i.push(e.fromDateTimes(n,t.time)),n=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Su}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
vendor: 3,468 bytes, line 1
1toLocaleString(e=Rl,t={}){return this.isValid?lu.create(this.s.loc.clone(t),e).formatInterval(this):Su}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Su}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Su}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Su}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Su}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):wu.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},xu=class{static hasDST(e=Ha.defaultZone){const t=mc.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ha.isValidZone(e)}static normalizeZone(e){return Fa(e,Ha.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Ia.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Ia.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Ia.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ia.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Ia.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Ia.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Ia.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ia.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Ia.create(t,null,"gregory").eras(e)}static features(){return{relative:ds(),localeWeek:fs()}}};function Eu(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(wu.fromMillis(r).as("days"))}function Ou(e,t,n,r){let[i,o,a,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Eu(e,t);return(n-n%7)/7}],["days",Eu]],i={},o=e;let a,s;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,i[l]=u(e,t),s=o.plus(i),s>t?(i[l]--,(e=o.plus(i))>t&&(s=e,i[l]--,e=o.plus(i))):e=s);return[e,i,s,a]}(e,t,n);const l=t-i,u=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(a<t&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+l/(a-i)));const c=wu.fromObject(o,r);return u.length>0?wu.fromMillis(l,r).shiftTo(...u).plus(c):c}function Tu(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(_a.hanidec))t+=ja.indexOf(e[n]);else for(const e in $a){const[n,i]=$a[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Iu="[  ]",Du=new RegExp(Iu,"g");function Au(e){return e.replace(/\./g,"\\.?").replace(Du,Iu)}function Cu(e){return e.replace(/\./g,"").replace(Du," ").toLowerCase()}function Fu(e,t){return null===e?null:{regex:RegExp(e.map(Au).join("|")),deser:([n])=>e.findIndex(e=>Cu(n)===Cu(e))+t}}function _u(e,t){return{regex:e,deser:([,e,t])=>As(e,t),groups:t}}function $u(e){return{regex:e,deser:([e])=>e}}
1function ju(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const Lu={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Mu=null;function Ru(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=Bu(lu.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}class Pu{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Ru(lu.parseFormat(t),e),this.units=this.tokens.map(t=>function(e,t){const n=Ma(t),r=Ma(t,"{2}"),i=Ma(t,"{3}"),o=Ma(t,"{4}"),a=Ma(t,"{6}"),s=Ma(t,"{1,2}"),l=Ma(t,"{1,3}"),u=Ma(t,"{1,6}"),c=Ma(t,"{1,9}"),d=Ma(t,"{2,4}"),f=Ma(t,"{4,6}"),h=e=>({regex:RegExp(ju(e.val)),deser:([e])=>e,literal:!0}),p=(p=>{if(e.literal)return h(p);switch(p.val){case"G":return Fu(t.eras("short"),0);case"GG":return Fu(t.eras("long"),0);case"y":return Tu(u);case"yy":case"kk":return Tu(d,Is);case"yyyy":case"kkkk":return Tu(o);case"yyyyy":return Tu(f);case"yyyyyy":return Tu(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Tu(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Tu(r);case"MMM":return Fu(t.months("short",!0),1);case"MMMM":return Fu(t.months("long",!0),1);case"LLL":return Fu(t.months("short",!1),1);case"LLLL":return Fu(t.months("long",!1),1);case"o":case"S":return Tu(l);case"ooo":case"SSS":return Tu(i);case"u":return $u(c);case"uu":return $u(s);case"uuu":case"E":case"c":return Tu(n);case"a":return Fu(t.meridiems(),0);case"EEE":return Fu(t.weekdays("short",!1),1);case"EEEE":return Fu(t.weekdays("long",!1),1);case"ccc":return Fu(t.weekdays("short",!0),1);case"cccc":return Fu(t.weekdays("long",!0),1);case"Z":case"ZZ":return _u(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return _u(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return $u(/[a-z_+-/]{1,256}?/i);case" ":return $u(/[^\S\n\r]/);default:return h(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){const[e,t]=function(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const i in n)if(ps(n,i)){const o=n[i],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,i,o]=n?function(e){let t,n=null;return ls(e.z)||(n=ha.create(e.z)),ls(e.Z)||(n||(n=new Aa(e.Z)),t=e.Z),ls(e.q)||(e.M=3*(e.q-1)+1),ls(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),ls(e.u)||(e.S=ks(e.u)),[Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{}),n,t]}(n):[null,null,void 0];if(ps(n,"a")&&ps(n,"H"))throw new ra("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:o}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
vendor: 9,273 bytes, line 1
1dReason:null}}function Vu(e,t,n){return new Pu(e,n).explainFromTokens(t)}function Bu(e,t){if(!e)return null;const n=lu.create(t,e).dtFormatter((Mu||(Mu=mc.fromMillis(1555555555555)),Mu)),r=n.formatToParts(),i=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:i}=e;if("literal"===r){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const o=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=Lu[a];if("object"==typeof s&&(s=s[o]),s)return{literal:!1,val:s}}(t,e,i))}const Uu="Invalid DateTime",qu=864e13;function zu(e){return new Za("unsupported zone",`the zone "${e.name}" is not supported`)}function Wu(e){return null===e.weekData&&(e.weekData=ts(e.c)),e.weekData}function Hu(e){return null===e.localWeekData&&(e.localWeekData=ts(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Zu(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new mc({...n,...t,old:n})}function Ju(e,t,n){let r=e-60*t*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;const o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Yu(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Gu(e,t,n){return Ju(Es(e),t,n)}function Qu(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:i,day:Math.min(e.c.day,xs(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=wu.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Es(o);let[l,u]=Ju(s,n,e.zone);return 0!==a&&(l+=a,u=e.zone.offset(l)),{ts:l,o:u}}function Ku(e,t,n,r,i,o){const{setZone:a,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,i=mc.fromObject(e,{...n,zone:r,specificOffset:o});return a?i:i.setZone(s)}return mc.invalid(new Za("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Xu(e,t,n=!0){return e.isValid?lu.create(Ia.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ec(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=gs(e.c.year,r?6:4),"year"===n)return i;if(t){if(i+="-",i+=gs(e.c.month),"month"===n)return i;i+="-"}else if(i+=gs(e.c.month),"month"===n)return i;return i+=gs(e.c.day),i}function tc(e,t,n,r,i,o,a){let s=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=gs(e.c.hour),"hour"===a)break;if(t){if(l+=":",l+=gs(e.c.minute),"minute"===a)break;s&&(l+=":",l+=gs(e.c.second))}else{if(l+=gs(e.c.minute),"minute"===a)break;s&&(l+=gs(e.c.second))}if("second"===a)break;s&&(!r||0!==e.c.millisecond)&&(l+=".",l+=gs(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&0===e.offset&&!o?l+="Z":e.o<0?(l+="-",l+=gs(Math.trunc(-e.o/60)),l+=":",l+=gs(Math.trunc(-e.o%60))):(l+="+",l+=gs(Math.trunc(e.o/60)),l+=":",l+=gs(Math.trunc(e.o%60)))),o&&(l+="["+e.zone.ianaName+"]"),l}const nc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ic={ordinal:1,hour:0,minute:0,second:0,millisecond:0},oc=["year","month","day","hour","minute","second","millisecond"],ac=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sc=["year","ordinal","hour","minute","second","millisecond"];function lc(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ia(e);return t}function uc(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return lc(e)}}function cc(e,t){const n=Fa(t.zone,Ha.defaultZone);if(!n.isValid)return mc.invalid(zu(n));const r=Ia.fromObject(t);let i,o;if(ls(e.year))i=Ha.now();else{for(const t of oc)ls(e[t])&&(e[t]=nc[t]);const t=as(e)||ss(e);if(t)return mc.invalid(t);const r=function(e){if(void 0===hc&&(hc=Ha.now()),"iana"!==e.type)return e.offset(hc);const t=e.name;let n=pc.get(t);return void 0===n&&(n=e.offset(hc),pc.set(t,n)),n}(n);[i,o]=Gu(e,r,n)}return new mc({ts:i,zone:n,loc:r,o:o})}function dc(e,t,n){const r=!!ls(n.round)||n.round,i=ls(n.rounding)?"trunc":n.rounding,o=(e,o)=>(e=ws(e,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(e,o)),a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return o(a(n.unit),n.unit);for(const e of n.units){const t=a(e);if(Math.abs(t)>=1)return o(t,e)}return o(e>t?-0:0,n.units[n.units.length-1])}function fc(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let hc;const pc=new Map;let mc=class e{constructor(e){const t=e.zone||Ha.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Za("invalid input"):null)||(t.isValid?null:zu(t));this.ts=ls(e.ts)?Ha.now():e.ts;let r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{const o=us(e.o)&&!e.old?e.o:t.offset(this.ts);r=Yu(this.ts,o),n=Number.isNaN(r.year)?new Za("invalid input"):null,r=n?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||Ia.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){const[e,t]=fc(arguments),[n,r,i,o,a,s,l]=t;return cc({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:l},e)}static utc(){const[e,t]=fc(arguments),[n,r,i,o,a,s,l]=t;return e.zone=Aa.utcInstance,cc({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:l},e)}static fromJSDate(t,n={}){const r=function(e){return"[object Date]"===Object.prototype.toString.call(e)}(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid("invalid input");const i=Fa(n.zone,Ha.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:Ia.fromObject(n)}):e.invalid(zu(i))}static fromMillis(t,n={}){if(us(t))return t<-qu||t>qu?e.invalid("Timestamp out of range"):new e({ts:t,zone:Fa(n.zone,Ha.defaultZone),loc:Ia.fromObject(n)});throw new oa(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(us(t))return new e({ts:1e3*t,zone:Fa(n.zone,Ha.defaultZone),loc:Ia.fromObject(n)});throw new oa("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Fa(n.zone,Ha.defaultZone);if(!r.isValid)return e.invalid(zu(r));const i=Ia.fromObject(n),o=Fs(t,uc),{minDaysInFirstWeek:a,startOfWeek:s}=os(o,i),l=Ha.now(),u=ls(n.specificOffset)?r.offset(l):n.specificOffset,c=!ls(o.ordinal),d=!ls(o.year),f=!ls(o.month)||!ls(o.day),h=d||f,p=o.weekYear||o.weekNumber;if((h||c)&&p)throw new ra("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new ra("Can't mix ordinal dates with month/day");const m=p||o.weekday&&!h;let y,g,v=Yu(l,u);m?(y=ac,g=rc,v=ts(v,a,s)):c?(y=sc,g=ic,v=rs(v)):(y=oc,g=nc);let b=!1;for(const e of y){ls(o[e])?o[e]=b?g[e]:v[e]:b=!0}const k=m?function(e,t=4,n=1){const r=cs(e.weekYear),i=ys(e.weekNumber,1,Ts(e.weekYear,t,n)),o=ys(e.weekday,1,7);return r?i?!o&&Ga("weekday",e.weekday):Ga("week",e.weekNumber):Ga("weekYear",e.weekYear)}(o,a,s):c?function(e){const t=cs(e.year),n=ys(e.ordinal,1,Ns(e.year));return t?!n&&Ga("ordinal",e.ordinal):Ga("year",e.year)}(o):as(o),w=k||ss(o);if(w)return e.invalid(w);const S=m?ns(o,a,s):c?is(o):o,[N,x]=Gu(S,u,r),E=new e({ts:N,zone:r,o:x,loc:i});return o.weekday&&h&&t.weekday!==E.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${E.toISO()}`):E.isValid?E:e.invalid(E.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return Rs(e,[cl,pl],[dl,ml],[fl,yl],[hl,gl])}(e);return Ku(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Rs(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[rl,il])}(e);return Ku(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Rs(e,[ol,ll],[al,ll],[sl,ul])}(e);return Ku(n,r,t,"HTTP",t)}static fromFormat(t,n,r={}){if(ls(t)||ls(n))throw new oa("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,a=Ia.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[s,l,u,c]=function(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:a}=Vu(e,t,n);return[r,i,o,a]}(a,t,n);
1return c?e.invalid(c):Ku(s,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return e.fromFormat(t,n,r)}static fromSQL(e,t={}){const[n,r]=function(e){return Rs(e,[bl,pl],[kl,wl])}(e);return Ku(n,r,t,"SQL",e)}static invalid(t,n=null){if(!t)throw new oa("need to specify a reason the DateTime is invalid");const r=t instanceof Za?t:new Za(t,n);if(Ha.throwOnInvalid)throw new ea(r);return new e({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Bu(e,Ia.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return Ru(lu.parseFormat(e),Ia.fromObject(t)).map(e=>e.val).join("")}static resetCache(){hc=void 0,pc.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
vendor: 9,284 bytes, line 1
1get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Wu(this).weekYear:NaN}get weekNumber(){return this.isValid?Wu(this).weekNumber:NaN}get weekday(){return this.isValid?Wu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Hu(this).weekday:NaN}get localWeekNumber(){return this.isValid?Hu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Hu(this).weekYear:NaN}get ordinal(){return this.isValid?rs(this.c).ordinal:NaN}get monthShort(){return this.isValid?xu.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?xu.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?xu.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?xu.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Es(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),o=this.zone.offset(n-r*t),a=this.zone.offset(n-i*t);if(o===a)return[this];const s=n-o*t,l=n-a*t,u=Yu(s,o),c=Yu(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[Zu(this,{ts:s}),Zu(this,{ts:l})]:[this]}get isInLeapYear(){return Ss(this.year)}get daysInMonth(){return xs(this.year,this.month)}get daysInYear(){return this.isValid?Ns(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ts(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ts(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=lu.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Aa.instance(e),t)}toLocal(){return this.setZone(Ha.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if((t=Fa(t,Ha.defaultZone)).equals(this.zone))return this;if(t.isValid){let e=this.ts;if(n||r){const n=t.offset(this.ts),r=this.toObject();[e]=Gu(r,n,t)}return Zu(this,{ts:e,zone:t})}return e.invalid(zu(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Zu(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Fs(e,uc),{minDaysInFirstWeek:n,startOfWeek:r}=os(t,this.loc),i=!ls(t.weekYear)||!ls(t.weekNumber)||!ls(t.weekday),o=!ls(t.ordinal),a=!ls(t.year),s=!ls(t.month)||!ls(t.day),l=a||s,u=t.weekYear||t.weekNumber;if((l||o)&&u)throw new ra("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new ra("Can't mix ordinal dates with month/day");let c;i?c=ns({...ts(this.c,n,r),...t},n,r):ls(t.ordinal)?(c={...this.toObject(),...t},ls(t.day)&&(c.day=Math.min(xs(c.year,c.month),c.day))):c=is({...rs(this.c),...t});const[d,f]=Gu(c,this.o,this.zone);return Zu(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;return Zu(this,Qu(this,wu.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Zu(this,Qu(this,wu.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=wu.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?lu.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Uu}toLocaleString(e=Rl,t={}){return this.isValid?lu.create(this.loc.clone(t),e).formatDateTime(this):Uu}toLocaleParts(e={}){return this.isValid?lu.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===e;let s=ec(this,a,o=lc(o));return oc.indexOf(o)>=3&&(s+="T"),s+=tc(this,a,t,n,r,i,o),s}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?ec(this,"extended"===e,lc(t)):null}toISOWeekDate(){return Xu(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended",precision:a="milliseconds"}={}){return this.isValid?(a=lc(a),(r&&oc.indexOf(a)>=3?"T":"")+tc(this,"extended"===o,t,e,n,i,a)):null}toRFC2822(){return Xu(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Xu(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ec(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Xu(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Uu}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return wu.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=function(e){return Array.isArray(e)?e:[e]}(t).map(wu.normalizeUnit),o=e.valueOf()>this.valueOf(),a=Ou(o?this:e,o?e:this,i,r);return o?a.negate():a}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(e){return this.isValid?Nu.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),dc(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?dc(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new oa("min requires all arguments be DateTimes");return hs(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new oa("max requires all arguments be DateTimes");return hs(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:i=null}=n;return Vu(Ia.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(t,n,r={}){return e.fromFormatExplain(t,n,r)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,i=Ia.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new Pu(i,e)}static fromFormatParser(t,n,r={}){if(ls(t)||ls(n))throw new oa("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,a=Ia.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!a.equals(n.locale))throw new oa(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:u,invalidReason:c}=n.explainFromTokens(t);
1return c?e.invalid(c):Ku(s,l,r,`format ${n.format}`,t,u)}static get DATE_SHORT(){return Rl}static get DATE_MED(){return Pl}static get DATE_MED_WITH_WEEKDAY(){return Vl}static get DATE_FULL(){return Bl}static get DATE_HUGE(){return Ul}static get TIME_SIMPLE(){return ql}static get TIME_WITH_SECONDS(){return zl}static get TIME_WITH_SHORT_OFFSET(){return Wl}static get TIME_WITH_LONG_OFFSET(){return Hl}static get TIME_24_SIMPLE(){return Zl}static get TIME_24_WITH_SECONDS(){return Jl}static get TIME_24_WITH_SHORT_OFFSET(){return Yl}static get TIME_24_WITH_LONG_OFFSET(){return Gl}static get DATETIME_SHORT(){return Ql}static get DATETIME_SHORT_WITH_SECONDS(){return Kl}static get DATETIME_MED(){return Xl}static get DATETIME_MED_WITH_SECONDS(){return eu}static get DATETIME_MED_WITH_WEEKDAY(){return tu}static get DATETIME_FULL(){return nu}static get DATETIME_FULL_WITH_SECONDS(){return ru}static get DATETIME_HUGE(){return iu}static get DATETIME_HUGE_WITH_SECONDS(){return ou}};function yc(e){if(mc.isDateTime(e))return e;if(e&&e.valueOf&&us(e.valueOf()))return mc.fromJSDate(e);if(e&&"object"==typeof e)return mc.fromObject(e);throw new oa(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const gc=e=>{const t=Math.floor(Math.abs(e)/60),n=Math.abs(e)%60;return`UTC${e>=0?"+":"-"}${t}${n?`:${n.toString().padStart(2,"0")}`:""}`};Object.fromEntries(["America/Los_Angeles","America/Tijuana","America/Vancouver","America/Denver","America/Chihuahua","America/Hermosillo","America/Mazatlan","America/Chicago","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Mexico_City","America/Bogota","America/Cancun","America/Guayaquil","America/Havana","America/Jamaica","America/Lima","America/New_York","America/Panama","America/Port-au-Prince","America/Rio_Branco","America/Toronto","America/Caracas","America/La_Paz","America/Manaus","America/Puerto_Rico","America/Santo_Domingo","America/Argentina/Buenos_Aires","America/Argentina/Cordoba","America/Argentina/Mendoza","America/Asuncion","America/Fortaleza","America/Montevideo","America/Santiago","America/Sao_Paulo","America/Noronha","Europe/Lisbon","Europe/London","Europe/Amsterdam","Europe/Berlin","Africa/Lagos","Europe/Madrid","Europe/Paris","Europe/Rome","Africa/Cairo","Africa/Johannesburg","Europe/Istanbul","Africa/Nairobi","Asia/Dubai","Asia/Kolkata","Asia/Jakarta","Asia/Hong_Kong","Asia/Manila","Australia/Perth","Asia/Shanghai","Asia/Singapore","Asia/Seoul","Asia/Tokyo","Australia/Melbourne","Australia/Sydney","Pacific/Auckland"].map(e=>{const t=mc.now().setZone(e).offset;return{timezone:e,offsetText:gc(t),offsetMinutes:t}}).sort((e,t)=>e.offsetMinutes-t.offsetMinutes).map(({timezone:e,offsetText:t})=>[e,t]));var vc="Invariant Violation",bc=Object.setPrototypeOf,kc=void 0===bc?function(e,t){return e.__proto__=t,e}:bc,wc=function(e){function n(t){void 0===t&&(t=vc);var r=e.call(this,"number"==typeof t?vc+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return r.framesToPop=1,r.name=vc,kc(r,n.prototype),r}return t(n,e),n}(Error);function Sc(e,t){if(!e)throw new wc(t)}var Nc=["debug","log","warn","error","silent"],xc=Nc.indexOf("log");function Ec(e){return function(){if(Nc.indexOf(e)>=xc)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=Ec("debug"),e.log=Ec("log"),e.warn=Ec("warn"),e.error=Ec("error")}(Sc||(Sc={}));var Oc="3.14.0";function Tc(e){try{return e()}catch{}}const Ic=Tc(function(){return globalThis})||Tc(function(){return window})||Tc(function(){return self})||Tc(function(){return global})||Tc(function(){return Tc.constructor("return this")()});var Dc=new Map;function Ac(e,t){var n=function(e){var t=Dc.get(e)||1;return Dc.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}function Cc(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=Lc(i))||(t=Mc(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var Fc=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||Sc(e,Lc(t,n)||Mc(t,n))},{debug:Cc(Sc.debug),log:Cc(Sc.log),warn:Cc(Sc.warn),error:Cc(Sc.error)});function _c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new wc(Lc(e,t)||Mc(e,t))}var $c=Symbol.for("ApolloErrorMessageHandler_"+Oc);function jc(e){if("string"==typeof e)return e;try{return Ac(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Lc(e,t){if(void 0===t&&(t=[]),e)return Ic[$c]&&Ic[$c](e,t.map(jc))}function Mc(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Oc,message:e,args:t.map(jc)})))}var Rc=Symbol();var Pc=function(e){function n(t){var o=t.graphQLErrors,a=t.protocolErrors,s=t.clientErrors,l=t.networkError,u=t.errorMessage,c=t.extraInfo,d=e.call(this,u)||this;return d.name="ApolloError",d.graphQLErrors=o||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=l||null,d.message=u||function(e){var t=r(r(r([],e.graphQLErrors),e.clientErrors),e.protocolErrors);return e.networkError&&t.push(e.networkError),t.map(function(e){return i(e)&&e.message||"Error message not found."}).join("\n")}(d),d.extraInfo=c,d.cause=r(r(r([l],o||[]),a||[]),s||[]).find(function(e){return!!e})||null,d.__proto__=n.prototype,d}return t(n,e),n}(Error);function Vc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Bc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bc(e,t)}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qc(e,t,n){return t&&Uc(e.prototype,t),n&&Uc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var zc=function(){return"function"==typeof Symbol},Wc=function(e){return zc()&&!!Symbol[e]},Hc=function(e){return Wc(e)?Symbol[e]:"@@"+e};zc()&&!Wc("observable")&&(Symbol.observable=Symbol("observable"));var Zc=Hc("iterator"),Jc=Hc("observable"),Yc=Hc("species");function Gc(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Qc(e){var t=e.constructor;return void 0!==t&&(null===(t=t[Yc])&&(t=void 0)),void 0!==t?t:ad}function Kc(e){Kc.log?Kc.log(e):setTimeout(function(){throw e})}function Xc(e){Promise.resolve().then(function(){try{e()}catch(e){Kc(e)}})}function ed(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Gc(t,"unsubscribe");n&&n.call(t)}}catch(e){Kc(e)}}function td(e){e._observer=void 0,e._queue=void 0,e._state="closed"}
1function nd(e,t,n){e._state="running";var r=e._observer;try{var i=Gc(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(td(e),!i)throw n;i.call(r,n);break;case"complete":td(e),i&&i.call(r)}}catch(e){Kc(e)}"closed"===e._state?ed(e):"running"===e._state&&(e._state="ready")}function rd(e,t,n){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:n});if("ready"!==e._state)return e._state="buffering",e._queue=[{type:t,value:n}],void Xc(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(nd(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});nd(e,t,n)}}var id=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new od(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(td(this),ed(this))},qc(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),od=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){rd(this._subscription,"next",e)},t.error=function(e){rd(this._subscription,"error",e)},t.complete=function(){rd(this._subscription,"complete")},qc(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ad=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new id(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Qc(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Qc(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Qc(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Qc(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Qc(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[Jc]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Gc(t,Jc);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof ad}(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Wc("iterator")&&(r=Gc(t,Zc)))return new n(function(e){Xc(function(){if(!e.closed){for(var n,i=Vc(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){Xc(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){Xc(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},qc(e,null,[{key:Yc,get:function(){return this}}]),e}();zc()&&Object.defineProperty(ad,Symbol("extensions"),{value:{symbol:Jc,hostReportError:Kc},configurable:!0});var sd=((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports))((e,t)=>{!function(e){var t,n=e.Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t="function"==typeof n.for?n.for("https://github.com/benlesh/symbol-observable"):n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable"}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:typeof t<"u"?t:Function("return this")())});sd();var ld=ad.prototype,ud="@@observable";function cd(){}ld[ud]||(ld[ud]=function(){return this});const dd=cd,fd=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}}
1,hd=typeof WeakMap<"u"?WeakMap:Map,pd=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:cd,unregister:cd}};let md=class{constructor(e=1/0,t=dd){this.max=e,this.dispose=t,this.map=new hd,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new fd(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new pd(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var yd=new WeakSet;var gd,vd=function(e,t){var n=new md(e,t);return n.set=function(e,t){var n=md.prototype.set.call(this,e,t);return function(e){e.size<=(e.max||-1)||yd.has(e)||(yd.add(e),setTimeout(function(){e.clean(),yd.delete(e)},100))}(this),n},n},bd=Symbol.for("apollo.cacheSize"),kd=n({},Ic[bd]),wd=Object.assign(function(e){var t=gd.get(e);return t||(t=Nt(e),gd.set(e,t)),t},{reset:function(){gd=new vd(kd.print||2e3)}});wd.reset();let Sd=null;const Nd={};let xd=1;function Ed(e){try{return e()}catch{}}const Od="@wry/context:Slot",Td=Ed(()=>globalThis)||Ed(()=>global)||Object.create(null),Id=Td[Od]||Array[Od]||function(e){try{Object.defineProperty(Td,Od,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",xd++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Sd;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Nd)break;return e!==Sd&&(Sd.slots[this.id]=t),!0}return Sd&&(Sd.slots[this.id]=Nd),!1}getValue(){if(this.hasValue())return Sd.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Sd;Sd={parent:o,slots:i};try{return t.apply(r,n)}finally{Sd=o}}static bind(e){const t=Sd;return function(){const n=Sd;try{return Sd=t,e.apply(this,arguments)}finally{Sd=n}}}static noContext(e,t,n){if(!Sd)return e.apply(n,t);{const r=Sd;try{return Sd=null,e.apply(n,t)}finally{Sd=r}}}}),{bind:Dd,noContext:Ad}=Id,Cd=new Id,Fd=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function _d(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const $d=[];function jd(e,t){if(!e)throw new Error(t||"assertion failure")}function Ld(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Md(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Rd(e){return e.slice(0)}let Pd=class e{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(1===this.value.length&&!Ud(this))return Vd(this),this.value[0]}recompute(e){return jd(!this.recomputing,"already recomputing"),Vd(this),Ud(this)?function(e,t){return Yd(e),Cd.withValue(e,Bd,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{_d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,!Ud(e)&&zd(e)}(e),Md(e.value)}(this,e):Md(this.value)}setDirty(){this.dirty||(this.dirty=!0,qd(this),_d(this))}dispose(){this.setDirty(),Yd(this),Wd(this,(e,t)=>{e.setDirty(),Gd(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=$d.pop()||new Set),this.deps.add(e)}
1forgetDeps(){this.deps&&(Fd(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),$d.push(this.deps),this.deps=null)}};function Vd(e){const t=Cd.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Ud(e)?Hd(t,e):Zd(t,e),t}function Bd(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=Rd(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Ld(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(t){e.value[1]=t}e.recomputing=!1}function Ud(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function qd(e){Wd(e,Hd)}function zd(e){Wd(e,Zd)}function Wd(e,t){const n=e.parents.size;if(n){const r=Fd(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function Hd(e,t){jd(e.childValues.has(t)),jd(Ud(t));const n=!Ud(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=$d.pop()||new Set;e.dirtyChildren.add(t),n&&qd(e)}function Zd(e,t){jd(e.childValues.has(t)),jd(!Ud(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,Rd(t.value)):Ld(n,t.value)||e.setDirty(),Jd(e,t),!Ud(e)&&zd(e)}function Jd(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&($d.length<100&&$d.push(n),e.dirtyChildren=null))}function Yd(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{Gd(e,n)}),e.forgetDeps(),jd(null===e.dirtyChildren)}function Gd(e,t){t.parents.delete(e),e.childValues.delete(t),Jd(e,t)}Pd.count=0;var Qd=Symbol.for("apollo.deprecations"),Kd=Ic,Xd=new Id;function ef(e,t){(function(e){return Kd[Qd]||(Xd.getValue()||[]).includes(e)})(e)||t()}function tf(e){!function(e){Fc(e&&"Document"===e.kind,116);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw _c(117,e.kind);return e});Fc(t.length<=1,118,t.length)}(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"===i.kind&&!t&&(t=i)}if(t)return t;throw _c(123)}function nf(e,t){return t?t(e):ad.of()}function rf(e){return"function"==typeof e?new af(e):e}function of(e){return e.request.length<=1}var af=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ad.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(rf).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i,o=rf(n),a=rf(r||new e(nf));return i=of(o)&&of(a)?new e(function(e){return t(e)?o.request(e)||ad.of():a.request(e)||ad.of()}):new e(function(e,n){return t(e)?o.request(e,n)||ad.of():a.request(e,n)||ad.of()}),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var r=n({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=n(n({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return n({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?function(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw _c(58,i)}return e}(t))))||ad.of()},e.concat=function(t,n){var r=rf(t);if(of(r))return!1!==globalThis.__DEV__&&Fc.warn(47,r),r;var i,o=rf(n);return i=of(o)?new e(function(e){return r.request(e,function(e){return o.request(e)||ad.of()})||ad.of()}):new e(function(e,t){return r.request(e,function(e){return o.request(e,t)||ad.of()})||ad.of()}),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(nf)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw _c(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&ef("onError",function(){!1!==globalThis.__DEV__&&Fc.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&Fc.warn(50),this.onError=e,this},e}();var sf=function(e){function r(t){var n=e.call(this)||this;return n.client=t,n}return t(r,e),r.prototype.request=function(e){var t=this;return new ad(function(r){return t.client.subscribe(n(n({},e),{query:wd(e.query)}),{next:r.next.bind(r),complete:r.complete.bind(r),error:function(e){if(e instanceof Error)return r.error(e);var t=function(e){return i(e)&&"code"in e&&"reason"in e}(e);return t||function(e){var t;return i(e)&&(null===(t=e.target)||void 0===t?void 0:t.readyState)===WebSocket.CLOSED}(e)?r.error(new Error("Socket closed".concat(t?" with event ".concat(e.code):"").concat(t?" ".concat(e.reason):""))):r.error(new Pc({graphQLErrors:Array.isArray(e)?e:[e]}))}})})},r}(af);const lf=()=>Object.create(null),{forEach:uf,slice:cf}=Array.prototype,{hasOwnProperty:df}=Object.prototype;let ff,hf=class e{constructor(e=!0,t=lf){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return uf.call(e,e=>t=t.getChildTrie(e)),df.call(t,"data")?t.data:t.data=this.makeData(cf.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(cf.call(e,1)),!i.data&&!i.weak&&(!i.strong||!i.strong.size)&&r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}};function pf(){}class mf{constructor(e=1/0,t=pf){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);
1return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}function yf(...e){return(ff||(ff=new hf("function"==typeof WeakMap))).lookupArray(e)}const gf=new Set;function vf(e,t){return bf(e,t)}function bf(e,t,n){if(void 0===n&&(n=new Map),n.has(e))return n.get(e);var r=!1;if(Array.isArray(e)){var i=[];if(n.set(e,i),e.forEach(function(e,o){var a=bf(e,t,n);r||(r=a!==e),i[o]=a}),r)return i}else if(o(e)){var a=Object.create(Object.getPrototypeOf(e));if(n.set(e,a),Object.keys(e).forEach(function(i){if(i!==t){var o=bf(e[i],t,n);r||(r=o!==e[i]),a[i]=o}else r=!0}),r)return a}return e}function kf(e){return vf(e,"__typename")}function wf(e,t){if("__KEEP"===t)return e;if(Array.isArray(e))return e.map(function(e){return wf(e,t)});if(o(e)){var n={};return Object.keys(e).forEach(function(r){var i=e[r];if("__typename"!==r){var o=t[r];n[r]=o?wf(i,o):kf(i)}}),n}return e}var Sf=function(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=yf,normalizeResult:i,subscribe:o,cache:a=mf}=Object.create(null)){const s="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new Pd(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const l=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),gf.add(s),Cd.hasValue()||(gf.forEach(e=>e.clean()),gf.clear()),l};function u(e){const t=e&&s.get(e);t&&t.setDirty()}function c(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),l.dirtyKey=u,l.dirty=function(){u(r.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(r.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}(function(e){var t={};return wt(e,{VariableDefinition:function(e){t[e.variable.name.value]=Nf(e.type)}}),t},{max:kd["removeTypenameFromVariables.getVariableDefinitions"]||2e3,cache:md});function Nf(e){switch(e.kind){case ht.NON_NULL_TYPE:case ht.LIST_TYPE:return Nf(e.type);case ht.NAMED_TYPE:return e.name.value}}function xf(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function Ef(e){return"object"===xf(e)}function Of(e,t){return e.length<124?e:t}var Tf=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Tf||{}),If=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(If||{});function Df(e){if(!Ef(e))throw new Error(`Message is expected to be an object, but got ${xf(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${xf(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!Ef(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${xf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);
1if(!Ef(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${xf(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${xf(e.payload.query)}`);if(null!=e.payload.variables&&!Ef(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${xf(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==xf(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${xf(e.payload.operationName)}`);if(null!=e.payload.extensions&&!Ef(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${xf(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${xf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ef(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${xf(e.payload)}`);break;case"error":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${xf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!function(e){return Array.isArray(e)&&e.length>0&&e.every(e=>"message"in e)}(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${xf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function Af(e,t){return Df("string"==typeof e?JSON.parse(e,t):e)}function Cf(e,t){return Df(e),JSON.stringify(e,t)}var Ff=Object.defineProperty,_f=(e,t,n)=>((e,t,n)=>t in e?Ff(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);function $f(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:l=0,retryAttempts:u=5,retryWait:c=async function(e){const t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:d=Lf,on:f,webSocketImpl:h,generateID:p=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:m,jsonMessageReviver:y}=e;let g;if(h){if(!function(e){return"function"==typeof e&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}(h))throw new Error("Invalid WebSocket implementation provided");g=h}else typeof WebSocket<"u"?g=WebSocket:typeof global<"u"?g=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(g=window.WebSocket||window.MozWebSocket);if(!g)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const v=g,b=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null==(n=e[t.id])||n.call(e,t))}}})(),t={connecting:null!=f&&f.connecting?[f.connecting]:[],opened:null!=f&&f.opened?[f.opened]:[],connected:null!=f&&f.connected?[f.connected]:[],ping:null!=f&&f.ping?[f.ping]:[],pong:null!=f&&f.pong?[f.pong]:[],message:null!=f&&f.message?[e.emit,f.message]:[e.emit],closed:null!=f&&f.closed?[f.closed]:[],error:null!=f&&f.error?[f.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{const e=r.indexOf(n);e>-1&&r.splice(e,1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function k(e){const t=[b.on("error",n=>
1{t.forEach(e=>e()),e(n)}),b.on("closed",n=>{t.forEach(e=>e()),e(n)})]}let w,S,N=0,x=!1,E=0,O=!1;async function T(){clearTimeout(S);const[e,r]=await(w??(w=new Promise((e,r)=>(async()=>{if(x){if(await c(E),!N)return w=void 0,r({code:1e3,reason:"All Subscriptions Gone"});E++}b.emit("connecting",x);const i=new v("function"==typeof t?await t():t,"graphql-transport-ws");let o,u;function d(){isFinite(a)&&a>0&&(clearTimeout(u),u=setTimeout(()=>{i.readyState===v.OPEN&&(i.send(Cf({type:If.Ping})),b.emit("ping",!1,void 0))},a))}k(e=>{w=void 0,clearTimeout(o),clearTimeout(u),r(e),e instanceof jf&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=e=>b.emit("error",e),i.onclose=e=>b.emit("closed",e),i.onopen=async()=>{try{b.emit("opened",i);const e="function"==typeof n?await n():n;if(i.readyState!==v.OPEN)return;i.send(Cf(e?{type:If.ConnectionInit,payload:e}:{type:If.ConnectionInit},m)),isFinite(l)&&l>0&&(o=setTimeout(()=>{i.close(Tf.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),d()}catch(e){b.emit("error",e),i.close(Tf.InternalClientError,Of(e instanceof Error?e.message:String(e),"Internal client error"))}};let f=!1;i.onmessage=({data:t})=>{try{const n=Af(t,y);if(b.emit("message",n),"ping"===n.type||"pong"===n.type)return b.emit(n.type,!0,n.payload),void("pong"===n.type?d():s||(i.send(Cf(n.payload?{type:If.Pong,payload:n.payload}:{type:If.Pong})),b.emit("pong",!1,n.payload)));if(f)return;if(n.type!==If.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(o),f=!0,b.emit("connected",i,n.payload,x),x=!1,E=0,e([i,new Promise((e,t)=>k(t))])}catch(e){i.onmessage=null,b.emit("error",e),i.close(Tf.BadResponse,Of(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===v.CLOSING&&await r;let i=()=>{};const u=new Promise(e=>i=e);return[e,i,Promise.race([u.then(()=>{if(!N){const t=()=>e.close(1e3,"Normal Closure");isFinite(o)&&o>0?S=setTimeout(()=>{e.readyState===v.OPEN&&t()},o):t()}}),r])]}function I(e){if(Lf(e)&&(function(e){return![1e3,1001,1006,1005,1012,1013,1014].includes(e)&&(e>=1e3&&e<=1999)}(e.code)||[Tf.InternalServerError,Tf.InternalClientError,Tf.BadRequest,Tf.BadResponse,Tf.Unauthorized,Tf.SubprotocolNotAcceptable,Tf.SubscriberAlreadyExists,Tf.TooManyInitialisationRequests].includes(e.code)))throw e;if(O)return!1;if(Lf(e)&&1e3===e.code)return N>0;if(!u||E>=u||!d(e))throw e;return x=!0}function D(e,t){const n=p(e);let r=!1,i=!1,o=()=>{N--,r=!0};return(async()=>{for(N++;;)try{const[a,s,l]=await T();if(r)return s();const u=b.onMessage(n,e=>{switch(e.type){case If.Next:return void t.next(e.payload);case If.Error:return i=!0,r=!0,t.error(e.payload),void o();case If.Complete:return r=!0,void o()}});return a.send(Cf({id:n,type:If.Subscribe,payload:e},m)),o=()=>{!r&&a.readyState===v.OPEN&&a.send(Cf({id:n,type:If.Complete},m)),N--,r=!0,s()},void await l.finally(u)}catch(e){if(!I(e))return}})().then(()=>{i||t.complete()}).catch(e=>{t.error(e)}),()=>{r||o()}}return r||(async()=>{for(N++;;)try{const[,,e]=await T();await e}catch(e){try{if(!I(e))return}catch(e){return null==i?void 0:i(e)}}})(),{on:b.on,subscribe:D,iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=D(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),i=async function*(){for(;;){for(t.length||await new Promise(e=>n.resolve=e);t.length;)yield t.shift();if(n.error)throw n.error;if(n.done)return}}();return i.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),i.return=async()=>(r(),{done:!0,value:void 0}),i},async dispose(){if(O=!0,w){const[e]=await w;e.close(1e3,"Normal Closure")}},terminate(){w&&b.emit("closed",new jf)}}}class jf extends Error{constructor(){super(...arguments),_f(this,"name","TerminatedCloseEvent"),_f(this,"message","4499: Terminated"),_f(this,"code",4499),_f(this,"reason","Terminated"),_f(this,"wasClean",!1)}}function Lf(e){return Ef(e)&&"code"in e&&"reason"in e}const Mf=new kr({uri:e=>`/graphql?op=${e.operationName}`,credentials:"include"}),Rf=function(e){return void 0===e&&(e=Object.create(null)),Object.assign(new af(function(t,n){var r=e.except,i=t.query,o=t.variables;return o&&(t.variables=r?function(e,t,n){var r=Sf(e);return Object.fromEntries(Object.entries(t).map(function(e){var t=e[0],i=e[1],o=r[t],a=n[o];return e[1]=a?wf(i,a):kf(i),e}))}(i,o,r):kf(o)),n(t)}),!1!==globalThis.__DEV__?{getMemoryInternals:function(){var e;return{removeTypenameFromVariables:{getVariableDefinitions:null!==(e=null==Sf?void 0:Sf.size)&&void 0!==e?e:0}}}}:{})}(),Pf=function(e){return new af(function(t,n){var r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,[]);return new ad(function(i){var o,a=!1;return Promise.resolve(r).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){a||(o=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})}((e,{headers:t})=>{const n=$r(),r=n?{authorization:`Bearer ${n}`}:{};return{headers:{...qr(),...t,...r}}}
1),Vf=new Set([Tf.InternalClientError,Tf.BadRequest,Tf.BadResponse,Tf.Unauthorized,Tf.Forbidden,Tf.SubprotocolNotAcceptable,Tf.SubscriberAlreadyExists,Tf.TooManyInitialisationRequests]),Bf=new or((e,t)=>t(e).map(t=>(console.log({"GraphQL Response":e.operationName,Result:t,"Cache Snapshot":JSON.parse(JSON.stringify(e.getContext().cache.extract()))}),t)));function Uf(e){return new af(function(t,n){return new ad(function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){i.errors?a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}):function(e){return!!e.extensions&&Array.isArray(e.extensions[Rc])}(i)&&(a=e({protocolErrors:i.extensions[Rc],response:i,operation:t,forward:n})),a?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}(({reconnectEventName:e}={})=>{const t=new URL(document.location.origin);let n,r;t.protocol="https:"===t.protocol?"wss:":"ws:",t.pathname="/graphql";const i=new sf($f({url:t.toString(),connectionParams:async()=>{const e=$r();return e?{authToken:`Bearer ${e}`}:{}},lazy:!0,keepAlive:1e4,retryAttempts:16,connectionAckWaitTimeout:2e4,retryWait:async e=>{const t=Math.min(5e3*2**e,6e4)*(.5+Math.random());return Br.warn("socket-retry",{attempt:e,delay:t}),(e=>new Promise(t=>{let n=null,r=!1;const i=()=>{r||(r=!0,n&&clearTimeout(n),window.removeEventListener("online",i),t())};n=setTimeout(i,e),window.addEventListener("online",i,{once:!0})}))(t)},shouldRetry:e=>!((e=>"object"==typeof e&&null!==e&&"code"in e&&"number"==typeof e.code)(e)&&Vf.has(e.code)),on:{connected:(t,r,i)=>{n=t,i&&e&&window.dispatchEvent(new CustomEvent(e))},closed:e=>{Br.warn("socket-closed",e),r&&(clearTimeout(r),r=void 0),n=void 0},error:e=>Br.warn("socket-error",e),ping:e=>{e||(r=setTimeout(()=>{Br.error("socket-pong-timeout",{message:"No pong received within 15 seconds after ping"}),n&&n.readyState===WebSocket.OPEN&&n.close(4408,"Request Timeout")},15e3))},pong:e=>{e&&r&&(clearTimeout(r),r=void 0)}}}));window.addEventListener("offline",()=>{var e;Br.warn("network-connection",!1),null==(e=i.client)||e.terminate()}),window.addEventListener("online",()=>{var e;Br.warn("network-connection",!0),null==(e=i.client)||e.terminate()});const o=ar(({query:e})=>{const t=tf(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},i,Pf.concat(Mf));"true"===a("__cacheLogger")?Bf.concat(Rf).concat(o):Rf.concat(o)})(),function(e){function n(t){var n=e.call(this)||this;return n.link=Uf(t),n}t(n,e),n.prototype.request=function(e,t){return this.link.request(e,t)}}(af),localStorage.getItem("_cf/__analyticsDebug");var qf=Object.defineProperty,zf=Object.defineProperties,Wf=Object.getOwnPropertyDescriptors,Hf=Object.getOwnPropertySymbols,Zf=Object.prototype.hasOwnProperty,Jf=Object.prototype.propertyIsEnumerable,Yf=(e,t,n)=>t in e?qf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gf=(e,t,n)=>Yf(e,"symbol"!=typeof t?t+"":t,n);const Qf="999999999";class Kf{constructor(){Gf(this,"container",null),Gf(this,"toggle",null),Gf(this,"logs",null),Gf(this,"toggleLogs",null),Gf(this,"logIsEventsOnly",!0),Gf(this,"panelIsOpen",!1);const e=this.createContainerView();this.createTogglePanelAction(),this.createHeadingView(e),this.createInstanceInfoView(e),this.createLogsView(e),this.createCleanLogAction(e),this.createToggleLogAction(e)}createTogglePanelAction(){this.toggle=document.createElement("div"),this.toggle.innerText="+",this.toggle.style.color="#FFFFFF",this.toggle.style.backgroundColor="#208EF0",this.toggle.style.cursor="pointer",this.toggle.style.position="fixed",this.toggle.style.bottom="0",this.toggle.style.right="0",this.toggle.style.zIndex=Qf,this.toggle.style.borderTopLeftRadius="7px",this.toggle.style.userSelect="none",this.toggle.style.fontSize="20px",this.toggle.style.width="25px",this.toggle.style.height="25px",this.toggle.style.display="flex",this.toggle.style.alignItems="center",this.toggle.style.justifyContent="center",this.toggle.onclick=this.onToggleClick.bind(this),document.body.appendChild(this.toggle)}createContainerView(){return this.container=document.createElement("div"),this.container.style.display="none",this.container.style.height="100%",this.container.style.width="350px",this.container.style.zIndex=Qf,this.container.style.position="fixed",this.container.style.color="#FFFFFF",this.container.style.top="0",this.container.style.right="0",this.container.style.padding="10px",this.container.style.backgroundColor="#208EF0",this.container.style.flexDirection="column",document.body.appendChild(this.container),this.container}createHeadingView(e){const t=document.createElement("div");t.innerText="Analytics dev tools",t.style.fontSize="25px",e.appendChild(t)}createInstanceInfoView(e){const t=document.createElement("div");t.innerText=`Version: 1\nCookie: ${qo}`,t.style.paddingBottom="10px",t.style.marginBottom="10px",t.style.borderBottom="3px solid",e.appendChild(t)}createLogsView(e){this.logs=document.createElement("div"),this.logs.style.flexGrow="1",this.logs.style.maxHeight="calc(100% - 130px)",this.logs.style.overflow="auto",e.appendChild(this.logs)}createCleanLogAction(e){const t=document.createElement("div");t.innerText="❎",t.title="Clear log",t.style.color="#FFFFFF",t.style.cursor="pointer",t.style.position="absolute",t.style.left="5px",t.style.bottom="0",t.oncl
1ick=()=>{this.logs&&(this.logs.innerHTML="")},e.appendChild(t)}createToggleLogAction(e){this.toggleLogs=document.createElement("div"),this.toggleLogs.innerText="📫",this.toggleLogs.title="Full logs",this.toggleLogs.style.color="#FFFFFF",this.toggleLogs.style.cursor="pointer",this.toggleLogs.style.position="absolute",this.toggleLogs.style.left="25px",this.toggleLogs.style.bottom="0",this.toggleLogs.onclick=this.onToggleLogsClick.bind(this),e.appendChild(this.toggleLogs)}onToggleLogsClick(e){if(e.preventDefault(),!this.toggleLogs||!this.logs)return;this.logIsEventsOnly=!this.logIsEventsOnly;const t=this.logIsEventsOnly?"none":"block";this.logs.querySelectorAll(":scope > :not([data-dev-event])").forEach(e=>{e.style.display=t}),this.toggleLogs.innerText=this.logIsEventsOnly?"📫":"📬",this.toggleLogs.title=this.logIsEventsOnly?"Full logs":"Only events"}onToggleClick(e){e.preventDefault(),this.toggle&&this.container&&(this.panelIsOpen=!this.panelIsOpen,this.toggle.innerText=this.panelIsOpen?"-":"+",this.container.style.display=this.panelIsOpen?"flex":"none")}addLogElement(e){this.logs&&(!e.hasAttribute("data-dev-event")&&this.logIsEventsOnly&&(e.style.display="none"),this.logs.appendChild(e),setTimeout(()=>{this.logs&&this.logs.scrollTo(0,this.logs.scrollHeight)}))}onSendEvent(e,t){const n=document.createElement("div");let r=!1;const i=t?"Immediate event":"Event",o=JSON.parse(e.payload),a=JSON.stringify({category:o.category,action:o.action},null,2),s=JSON.stringify(((e,t)=>zf(e,Wf(t)))(((e,t)=>{for(var n in t||(t={}))Zf.call(t,n)&&Yf(e,n,t[n]);if(Hf)for(var n of Hf(t))Jf.call(t,n)&&Yf(e,n,t[n]);return e})({},e),{payload:o}),null,2),l=`▶️ ${i} ${a}`,u=`🔽 ${i} ${s}`;n.innerText=l,n.setAttribute("data-dev-event",""),n.style.cursor="pointer",n.style.whiteSpace="pre",n.onclick=e=>{e.preventDefault(),r=!r,n.innerText=r?u:l},this.addLogElement(n)}onNetworkInteraction(e){const t=document.createElement("div");t.innerText=(e?"❌":"✅")+" Syncronization",this.addLogElement(t)}onQueueClear(){const e=document.createElement("div");
1e.innerText="🗑 Queue is clean",this.addLogElement(e)}onQueueSynchronized(){const e=document.createElement("div");e.innerText="♻️ Queue is synchronized",this.addLogElement(e)}onQueueFilled(){const e=document.createElement("div");e.innerText="💯 Queue is full",this.addLogElement(e)}onRetry(){const e=document.createElement("div");e.innerText="⚠️ Retrying events syncronization",this.addLogElement(e)}onReturnToQueue(){const e=document.createElement("div");e.innerText="🔙 Events returned to the queue",this.addLogElement(e)}bindWindow(){window.__cf_awesome_analytics&&(window.__cf_awesome_analytics._visualization={onSendEvent:this.onSendEvent.bind(this),onNetworkInteraction:this.onNetworkInteraction.bind(this),onQueueClear:this.onQueueClear.bind(this),onQueueSynchronized:this.onQueueSynchronized.bind(this),onQueueFilled:this.onQueueFilled.bind(this),onRetry:this.onRetry.bind(this),onReturnToQueue:this.onReturnToQueue.bind(this)})}}(()=>{if(!window.__cf_awesome_analytics)return;(new Kf).bindWindow()})()}();

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