PageSourceSearch

https://cska.bg/_next/static/chunks/3vbdyjj47_udj.js

js cska.bg collected 2026-09-24 21:43:05 UTC 213,304 bytes, 128 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,374068,e=>{"use strict";var t=e.i(222809);e.i(112672);var r=e.i(239103);e.s(["TenantScope",0,function({children:e}){return(0,t.jsx)("div",{"data-tenant":(0,r.getTenant)().id,className:"contents",children:e})}])},571745,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BloomFilter",{enumerable:!0,get:function(){return i}});class i{constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}static from(e,t=1e-4){let r=new i(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let i=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(i)}return t}}},687589,(e,t,r)=>{"use strict";function i(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}})},348362,(e,t,r)=>{"use strict";let i;function n(e){return(void 0===i&&"u">typeof window&&(i=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),i)?.createScriptURL(e)||e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},636135,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return n}});let i=e.r(579204);function n(e,t,r){return new Promise((r,n)=>{let a=!1;e.then(e=>{a=!0,r(e)}).catch(n),(0,i.requestIdleCallback)(()=>setTimeout(()=>{a||n(t)},3800))})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},489874,(e,t,r)=>{"use strict";let i;Object.defineProperty(r,"__esModule",{value:!0});var n={createRouteLoader:function(){return b},getClientBuildManifest:function(){return g},isAssetError:function(){return p},markAssetError:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});e.r(481258),e.r(687589);let s=e.r(348362),o=e.r(579204),l=e.r(542893),u=e.r(841281),c=e.r(636135);function h(e,t,r){let i,n=t.get(e);if(n)return"future"in n?n.future:Promise.resolve(n);let a=new Promise(e=>{i=e});return t.set(e,{resolve:i,future:a}),r?r().then(e=>(i(e),e)).catch(r=>{throw t.delete(e),r}):a}let d=Symbol("ASSET_LOAD_ERROR");function f(e){return Object.defineProperty(e,d,{})}function p(e){return e&&d in e}let m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,c.resolvePromiseWithTimeout)(e,f(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),i)}function y(e,t){return g().then(r=>{if(!(t in r))throw f(Object.defineProperty(Error(`Failed to lookup route: ${t}
1`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let i=r[t].map(t=>e+"/_next/"+(0,u.encodeURIPath)(t));return{scripts:i.filter(e=>e.endsWith(".js")).map(e=>(0,s.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:i.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function b(e){let t=new Map,r=new Map,n=new Map,a=new Map;function s(e){{var t;let i=r.get(e.toString());return i?i:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),i=new Promise((r,i)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>i(f(Object.defineProperty(Error(`Failed to load script: ${e}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),i)}}function l(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw f(e)})),t}return{whenEntrypoint:e=>h(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let i=t.get(e);i&&"resolve"in i?r&&(t.set(e,r),i.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})}
1,loadRoute(r,n){return h(r,a,()=>{let a;return(0,c.resolvePromiseWithTimeout)(y(e,r).then(({scripts:e,css:i})=>Promise.all([t.has(r)?[]:Promise.all(e.map(s)),Promise.all(i.map(l))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),f(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),i).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>a?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():y(e,t).then(e=>Promise.all(m?e.scripts.map(e=>{var t,r,i;return t=e.toString(),r="script",new Promise((e,n)=>{let a=`
2      link[rel="prefetch"][href^="${t}"],
3      link[rel="preload"][href^="${t}"],
4      script[src^="${t}"]`;if(document.querySelector(a))return e();i=document.createElement("link"),r&&(i.as=r),i.rel="prefetch",i.crossOrigin=void 0,i.onload=e,i.onerror=()=>n(f(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),i.href=t,document.head.appendChild(i)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},976346,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return s}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});class a{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let a=i.slice(1,-1),s=!1;if(a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1),s=!0),a.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${a}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(a.startsWith("...")&&(a=a.substring(3),r=!0),a.startsWith("[")||a.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${a}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(a.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${a}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function n(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,
4configurable:!0});if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(r)if(s){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});n(this.optionalRestSlugName,a),this.optionalRestSlugName=a,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});n(this.restSlugName,a),this.restSlugName=a,i="[...]"}else{if(s)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});n(this.slugName,a),this.slugName=a,i="[]"}}this.children.has(i)||this.children.set(i,new a),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function s(e){let t=new a;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},i=[];for(let n=0;n<e.length;n++){let a=t(e[n]);r[a]=n,i[n]=a}return s(i).map(t=>e[r[t]])}},11154,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let i=e.r(414732),n=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function s(e,t=!0){return((0,i.isInterceptionRouteAppPath)(e)&&(e=(0,i.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):n.test(e)}},898220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={getSortedRouteObjects:function(){return a.getSortedRouteObjects},getSortedRoutes:function(){return a.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(976346),s=e.r(11154)},800137,(e,t,r)=>{"use strict";function i(e){return e.replace(/\\/g,"/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathSep",{enumerable:!0,get:function(){return i}})},821576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let i=e.r(898220),n=e.r(800137);function a(e){let t=(0,n.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,i.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},465789,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let i=new WeakMap;function n(e,t){let r;if(!t)return{pathname:e};let n=i.get(t);n||(n=t.map(e=>e.toLowerCase()),i.set(t,n));let a=e.split("/",2);if(!a[1])return{pathname:e};let s=a[1].toLowerCase(),o=n.indexOf(s);return o<0?{pathname:e}:(r=t[o],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},855981,(e,t,r)=>{"use strict";function i(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}})},623990,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_babel-_630184125fab1c7b1c895c58a55c2f9a/node_modules/next/dist/compiled/path-to-regexp/");var e={};(()=>{function t(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var i=e[r];if("*"===i||"+"===i||"?"===i){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===i){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===i){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===i){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===i){for(var n="",a=r+1;a<e.length;){var s=e.charCodeAt(a);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s){n+=e[a++];continue}break}if(!n)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:n}),r=a;continue}if("("===i){var o=1,l="",a=r+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){l+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--o){a++;break}}else if("("===e[a]&&(o++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));l+=e[a++]}if(o)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),i=t.prefixes,a=void 0===i?"./":i,s=t.delimiter,o=void 0===s?"/#?":s,l=[],u=0,c=0,h="",d=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},f=function(e){var t=d(e);if(void 0!==t)return t;var i=r[c],n=i.type,a=i.index;throw TypeError("Unexpected ".concat(n," at ").concat(a,", expected ").concat(e))},p=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<o.length;t++){var r=o[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");
4if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(n(o),"]+?"):"(?:(?!".concat(n(r),")[^").concat(n(o),"])+?")};c<r.length;){var y=d("CHAR"),b=d("NAME"),v=d("PATTERN");if(b||v){var _=y||"";-1===a.indexOf(_)&&(h+=_,_=""),h&&(l.push(h),h=""),l.push({name:b||u++,prefix:_,suffix:"",pattern:v||g(_),modifier:d("MODIFIER")||""});continue}var w=y||d("ESCAPED_CHAR");if(w){h+=w;continue}if(h&&(l.push(h),h=""),d("OPEN")){var _=p(),S=d("NAME")||"",E=d("PATTERN")||"",O=p();f("CLOSE"),l.push({name:S||(E?u++:""),pattern:S&&!E?g(_):E,prefix:_,suffix:O,modifier:d("MODIFIER")||""});continue}f("END")}return l}function r(e,t){void 0===t&&(t={});var r=a(t),i=t.encode,n=void 0===i?function(e){return e}:i,s=t.validate,o=void 0===s||s,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",i=0;i<e.length;i++){var a=e[i];if("string"==typeof a){r+=a;continue}var s=t?t[a.name]:void 0,u="?"===a.modifier||"*"===a.modifier,c="*"===a.modifier||"+"===a.modifier;if(Array.isArray(s)){if(!c)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===s.length){if(u)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var h=0;h<s.length;h++){var d=n(s[h],a);if(o&&!l[i].test(d))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));r+=a.prefix+d+a.suffix}continue}if("string"==typeof s||"number"==typeof s){var d=n(String(s),a);if(o&&!l[i].test(d))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));r+=a.prefix+d+a.suffix;continue}if(!u){var f=c?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(f))}}return r}}function i(e,t,r){void 0===r&&(r={});var i=r.decode,n=void 0===i?function(e){return e}:i;return function(r){var i=e.exec(r);if(!i)return!1;for(var a=i[0],s=i.index,o=Object.create(null),l=1;l<i.length;l++)!function(e){if(void 0!==i[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?o[r.name]=i[e].split(r.prefix+r.suffix).map(function(e){return n(e,r)}):o[r.name]=n(i[e],r)}}(l);return{path:a,index:s,params:o}}}function n(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function s(e,t,r){void 0===r&&(r={});for(var i=r.strict,s=void 0!==i&&i,o=r.start,l=r.end,u=r.encode,c=void 0===u?function(e){return e}:u,h=r.delimiter,d=r.endsWith,f="[".concat(n(void 0===d?"":d),"]|$"),p="[".concat(n(void 0===h?"/#?":h),"]"),m=void 0===o||o?"^":"",g=0;g<e.length;g++){var y=e[g];if("string"==typeof y)m+=n(c(y));else{var b=n(c(y.prefix)),v=n(c(y.suffix));if(y.pattern)if(t&&t.push(y),b||v)if("+"===y.modifier||"*"===y.modifier){var _="*"===y.modifier?"?":"";m+="(?:".concat(b,"((?:").concat(y.pattern,")(?:").concat(v).concat(b,"(?:").concat(y.pattern,"))*)").concat(v,")").concat(_)}else m+="(?:".concat(b,"(").concat(y.pattern,")").concat(v,")").concat(y.modifier);else{if("+"===y.modifier||"*"===y.modifier)throw TypeError('Can not repeat "'.concat(y.name,'" without a prefix and suffix'));m+="(".concat(y.pattern,")").concat(y.modifier)}else m+="(?:".concat(b).concat(v,")").concat(y.modifier)}}if(void 0===l||l)s||(m+="".concat(p,"?")),m+=r.endsWith?"(?=".concat(f,")"):"$";else{var w=e[e.length-1],S="string"==typeof w?p.indexOf(w[w.length-1])>-1:void 0===w;s||(m+="(?:".concat(p,"(?=").concat(f,"))?")),S||(m+="(?=".concat(p,"|").concat(f,")"))}return new RegExp(m,a(r))}function o(e,r,i){if(e instanceof RegExp){var n;if(!r)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,c=l.exec(e.source);c;)r.push({name:c[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(e.source);return e}return Array.isArray(e)?(n=e.map(function(e){return o(e,r,i).source}),new RegExp("(?:".concat(n.join("|"),")"),a(i))):s(t(e,i),r,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=t,e.compile=function(e,i){return r(t(e,i),i)},e.tokensToFunction=r,e.match=function(e,t){var r=[];return i(o(e,r,t),r,t)},e.regexpToFunction=i,e.tokensToRegexp=s,e.pathToRegexp=o})(),t.exports=e})()},4731,(e,t,r)=>{"use strict";
4Object.defineProperty(r,"__esModule",{value:!0});var i={PARAM_SEPARATOR:function(){return a},hasAdjacentParameterIssues:function(){return s},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return u},stripParameterSeparators:function(){return c}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a="_NEXTSEP_";function s(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${a}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${a}`)}function l(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function u(e){return e.replace(RegExp(`\\)${a}`,"g"),")")}function c(e){let t={};for(let[r,i]of Object.entries(e))"string"==typeof i?t[r]=i.replace(RegExp(`^${a}`),""):Array.isArray(i)?t[r]=i.map(e=>"string"==typeof e?e.replace(RegExp(`^${a}`),""):e):t[r]=i;return t}},920505,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={safeCompile:function(){return l},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return u},safeRouteMatcher:function(){return c}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(623990),s=e.r(4731);function o(e,t,r){if("string"!=typeof e)return(0,a.pathToRegexp)(e,t,r);let i=(0,s.hasAdjacentParameterIssues)(e),n=i?(0,s.normalizeAdjacentParameters)(e):e;try{return(0,a.pathToRegexp)(n,t,r)}catch(n){if(!i)try{let i=(0,s.normalizeAdjacentParameters)(e);return(0,a.pathToRegexp)(i,t,r)}catch(e){}throw n}}function l(e,t){let r=(0,s.hasAdjacentParameterIssues)(e),i=r?(0,s.normalizeAdjacentParameters)(e):e;try{let e=(0,a.compile)(i,t);if(r)return t=>(0,s.stripNormalizedSeparators)(e(t));return e}catch(i){if(!r)try{let r=(0,s.normalizeAdjacentParameters)(e),i=(0,a.compile)(r,t);return e=>(0,s.stripNormalizedSeparators)(i(e))}catch(e){}throw i}}function u(e,t){let r=(0,a.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,s.stripParameterSeparators)(t.params)}}}function c(e){return t=>{let r=e(t);return!!r&&(0,s.stripParameterSeparators)(r)}}},445711,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let i=e.r(755869),n=e.r(920505);function a({re:e,groups:t}){return(0,n.safeRouteMatcher)(r=>{let n=e.exec(r);if(!n)return!1;let a=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new i.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},s={};for(let[e,r]of Object.entries(t)){let t=n[r.pos];void 0!==t&&(r.repeat?s[e]=t.split("/").map(e=>a(e)):s[e]=a(t))}return s})}},289958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return a}});let i=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function a(e){return i.test(e)?e.replace(n,"\\$&"):e}},50878,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return n}});let i=e.r(839468);function n(e){let[t,r,n,a]=e,{layout:s,template:o}=n,{page:l}=n;l=t===i.DEFAULT_SEGMENT_KEY?n.defaultPage:l;let u=s?.[1]||o?.[1]||l?.[1];return{page:l,segment:t,modules:n,conventionPath:u,parallelRoutes:r,staticSiblings:a}}},540816,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={isInterceptionAppRoute:function(){return c},isNormalizedAppRoute:function(){return u},parseAppRoute:function(){return function e(t,r){let i,n,o,u=t.split("/").filter(Boolean),c=[];for(let h of u){let u=l(function(e){if(!/%5b|%5d/i.test(e))return e;try{let t=decodeURIComponent(e);return(0,s.getSegmentParam)(t)?t:e}catch{return e}}(h));if(u){if(r&&("route-group"===u.type||"parallel-route"===u.type))throw Object.defineProperty(new a.InvariantError(`${t} is being parsed as a normalized route, but it has a route group or parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E923",enumerable:!1,
4configurable:!0});if(c.push(u),u.interceptionMarker){let a=t.split(u.interceptionMarker);if(2!==a.length)throw Object.defineProperty(Error(`Invalid interception route: ${t}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});n=r?e(a[0],!0):e(a[0],!1),o=r?e(a[1],!0):e(a[1],!1),i=u.interceptionMarker}}}let h=c.filter(e=>"dynamic"===e.type);return{normalized:r,pathname:t,segments:c,dynamicSegments:h,interceptionMarker:i,interceptingRoute:n,interceptedRoute:o}}},parseAppRouteSegment:function(){return l}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(546973),s=e.r(935324),o=e.r(414732);function l(e){if(""===e)return null;let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,s.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function u(e){return e.normalized}function c(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}},33742,(e,t,r)=>{"use strict";function i(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return i}})},561690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveParamValue",{enumerable:!0,get:function(){return a}});let i=e.r(546973),n=e.r(33742);function a(e,t,r,a,s){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let o=[];for(let e=r;e<a.segments.length;e++){let i=a.segments[e];if("static"===i.type){let a=i.name,s=(0,n.interceptionPrefixFromParamType)(t);s&&e===r&&s===i.interceptionMarker&&(a=a.replace(i.interceptionMarker,"")),o.push(a)}else{if(!s.hasOwnProperty(i.param.paramName)){if("optional-catchall"===i.param.paramType)break;return}let e=s[i.param.paramName];Array.isArray(e)?o.push(...e):o.push(e)}}if(o.length>0)return o;if("optional-catchall"===t)return;throw Object.defineProperty(new i.InvariantError(`Unexpected empty path segments match for a route "${a.pathname}" with param "${e}" of type "${t}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r<a.segments.length){let e=a.segments[r];if("dynamic"===e.type&&!s.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?s[e.param.paramName]:(0,n.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},338007,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={PARAMETER_PATTERN:function(){return h},getDynamicParam:function(){return c},interpolateParallelRouteParams:function(){return u},parseMatchedParameter:function(){return f},parseParameter:function(){return d}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(546973),s=e.r(50878),o=e.r(540816),l=e.r(561690);
4function u(e,t,r,i){let n=structuredClone(t),u=[{tree:e,depth:0}],c=(0,o.parseAppRoute)(r,!0);for(;u.length>0;){let{tree:e,depth:t}=u.pop(),{segment:r,parallelRoutes:h}=(0,s.parseLoaderTree)(e),d=(0,o.parseAppRouteSegment)(r);if(d?.type==="dynamic"&&!n.hasOwnProperty(d.param.paramName)&&!i?.has(d.param.paramName)){let{paramName:e,paramType:r}=d.param,i=(0,l.resolveParamValue)(e,r,t,c,n);if(void 0!==i)n[e]=i;else if("optional-catchall"!==r)throw Object.defineProperty(new a.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let f=t;for(let e of(d&&"route-group"!==d.type&&"parallel-route"!==d.type&&f++,Object.values(h)))u.push({tree:e,depth:f})}return n}function c(e,t,r,i,n){let s=function(e,t,r){let i=e[t];if(r?.has(t)){let[e]=r.get(t);i=e}else Array.isArray(i)?i=i.map(e=>encodeURIComponent(e)):"string"==typeof i&&(i=encodeURIComponent(i));return i}(e,t,i);if(!s||0===s.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,n]};throw Object.defineProperty(new a.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}let o=Array.isArray(s)?s.join("/"):s;return{param:t,value:s,treeSegment:[t,o,r,n],type:r}}let h=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function d(e){let t=e.match(h);return t?f(t[2]):f(e)}function f(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},160523,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return p},getRouteRegex:function(){return h}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(804875),s=e.r(414732),o=e.r(289958),l=e.r(333227),u=e.r(338007);function c(e,t,r){let i={},n=1,a=[];for(let c of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=s.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),l=c.match(u.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:s}=(0,u.parseMatchedParameter)(l[2]);i[t]={pos:n++,repeat:s,optional:r},a.push(`/${(0,o.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:s}=(0,u.parseMatchedParameter)(l[2]);i[e]={pos:n++,repeat:t,optional:s},r&&l[1]&&a.push(`/${(0,o.escapeStringRegexp)(l[1])}`);let c=t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(c=c.substring(1)),a.push(c)}else a.push(`/${(0,o.escapeStringRegexp)(c)}`);t&&l&&l[3]&&a.push((0,o.escapeStringRegexp)(l[3]))}return{parameterizedRoute:a.join(""),groups:i}}function h(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:i=!1}={}){let{parameterizedRoute:n,groups:a}=c(e,t,r),s=n;return i||(s+="(?:/)?"),{re:RegExp(`^${s}$`),groups:a}}function d({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:i,keyPrefix:n,backreferenceDuplicateKeys:a}){let s,{key:l,optional:c,repeat:h}=(0,u.parseMatchedParameter)(r),f=l.replace(/\W/g,"");n&&(f=`${n}${f}`);let p=!1;(0===f.length||f.length>30)&&(p=!0),isNaN(parseInt(f.slice(0,1)))||(p=!0),p&&(f=t());let m=f in i;n?i[f]=`${n}${l}`:i[f]=l;let g=e?(0,o.escapeStringRegexp)(e):"";return s=m&&a?`\\k<${f}>`:h?`(?<${f}>.+?)`:`(?<${f}>[^/]+?)`,{key:l,pattern:c?`(?:/${g}${s})?`:`/${g}${s}`,cleanedKey:f,optional:c,repeat:h}}function f(e,t,r,i,n,c={names:{},intercepted:{}}){let h,p=(h=0,()=>{let e="",t=++h;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],y=[];for(let h of(c=structuredClone(c),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=s.INTERCEPTION_ROUTE_MARKERS.some(e=>h.startsWith(e)),f=h.match(u.PARAMETER_PATTERN),b=l?f?.[1]:void 0;if(b&&f?.[2]?(e=t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,c.intercepted[f[2]]=b):e=f?.[2]&&c.intercepted[f[2]]?t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?a.NEXT_QUERY_PARAM_PREFIX:void 0,b&&f&&f[2]){let{key:t,pattern:r,cleanedKey:i,repeat:a,optional:s}=d({getSafeRouteKey:p,interceptionMarker:b,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:n});g.push(r),y.push(`/${f[1]}:${c.names[t]??i}${a?s?"*":"+":""}`),c.names[t]??=i}else if(f&&f[2]){i&&f[1]&&(g.push(`/${(0,o.escapeStringRegexp)(f[1])}`),y.push(`/${f[1]}`));let{key:t,pattern:r,cleanedKey:a,repeat:s,optional:l}=d({getSafeRouteKey:p,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:n}),u=r;
4i&&f[1]&&(u=u.substring(1)),g.push(u),y.push(`/:${c.names[t]??a}${s?l?"*":"+":""}`),c.names[t]??=a}else g.push(`/${(0,o.escapeStringRegexp)(h)}`),y.push(`/${h}`);r&&f&&f[3]&&(g.push((0,o.escapeStringRegexp)(f[3])),y.push(f[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:y.join(""),reference:c}}function p(e,t){let r=f(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),i=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(i+="(?:/)?"),{...h(e,t),namedRegex:`^${i}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=c(e,!1,!1),{catchAll:i=!0}=t;if("/"===r)return{namedRegex:`^/${i?".*":""}$`};let{namedParameterizedRoute:n}=f(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${n}${i?"(?:(/.*)?)":""}$`}}},437619,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return i}});let i=(...e)=>{};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},448533,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return i}}),e.r(919604);let i=(e,...t)=>e;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},862059,(e,t,r)=>{"use strict";function i(e,t){return e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeLocale",{enumerable:!0,get:function(){return i}}),e.r(780714),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},797520,(e,t,r)=>{"use strict";function i(e,t){let r={};return Object.keys(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"omit",{enumerable:!0,get:function(){return i}})},603012,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return a}});let i=e.r(445711),n=e.r(160523);function a(e,t,r){let a="",s=(0,n.getRouteRegex)(e),o=s.groups,l=(t!==e?(0,i.getRouteMatcher)(s)(t):"")||r;a=e;let u=Object.keys(o);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:i}=o[e],n=`[${r?"...":""}${e}]`;return i&&(n=`${!t?"/":""}[${n}]`),r&&!Array.isArray(t)&&(t=[t]),(i||e in l)&&(a=a.replace(n,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},114854,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return f}});let i=e.r(403833),n=e.r(613534),a=e.r(797520),s=e.r(755869),o=e.r(919604),l=e.r(123335),u=e.r(898220),c=e.r(603012),h=e.r(160523),d=e.r(445711);function f(e,t,r){let f,p="string"==typeof t?t:(0,n.formatWithValidation)(t),m=p.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?p.slice(m[0].length):p;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${p}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,s.normalizeRepeatedSlashes)(g);p=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(p))return r?[p]:p;try{let t=p.startsWith("#")?e.asPath:e.pathname;if(p.startsWith("?")&&(t=e.asPath,(0,u.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,h.getRouteRegex)(e.pathname);(0,d.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}f=new URL(t,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(p,f);e.pathname=(0,o.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,i.searchParamsToUrlQuery)(e.searchParams),{result:s,params:o}=(0,c.interpolateAs)(e.pathname,e.pathname,r);s&&(t=(0,n.formatWithValidation)({pathname:s,hash:e.hash,query:(0,a.omit)(r,o)}))}let s=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[s,t||s]:s}catch(e){return r?[p]:p}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
4dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},884541,(e,t,r)=>{"use strict";function i(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isAPIRoute",{enumerable:!0,get:function(){return i}})},813776,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return n}});let i=e.r(142830);function n(e,t){if(!(0,i.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},471515,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let i=e.r(465789),n=e.r(813776),a=e.r(142830);function s(e,t){let{basePath:r,i18n:s,trailingSlash:o}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):o};r&&(0,a.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,n.removePathPrefix)(l.pathname,r),l.basePath=r);let u=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],u="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=u)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,i.normalizeLocalePath)(l.pathname,s.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(u):(0,i.normalizeLocalePath)(u,s.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},971936,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return n}});let i=e.r(780714);function n(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=(0,i.parsePath)(e);return`${r}${t}${n}${a}`}},457001,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return a}});let i=e.r(714137),n=e.r(142830);function a(e,t,r,a){if(!t||t===r)return e;let s=e.toLowerCase();return!a&&((0,n.pathHasPrefix)(s,"/api")||(0,n.pathHasPrefix)(s,`/${t.toLowerCase()}`))?e:(0,i.addPathPrefix)(e,`/${t}`)}},675045,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let i=e.r(333227),n=e.r(714137),a=e.r(971936),s=e.r(457001);function o(e){let t=(0,s.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,i.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,n.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,n.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,i.removeTrailingSlash)(t)}},744193,(e,t,r)=>{"use strict";function i(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i=r.length;i--;){let n=r[i];if("query"===n){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let i=r.length;i--;){let n=r[i];if(!t.query.hasOwnProperty(n)||e.query[n]!==t.query[n])return!1}}else if(!t.hasOwnProperty(n)||e[n]!==t[n])return!1}return!0}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return i}})},210677,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={createKey:function(){return K},default:function(){return G},matchesMiddleware:function(){return $}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(481258),s=e.r(744066),o=e.r(333227),l=e.r(489874),u=e.r(440030),c=s._(e.r(560697)),h=e.r(821576),d=e.r(465789),f=a._(e.r(855981)),p=e.r(755869),m=e.r(11154),g=e.r(342670),y=e.r(445711),b=e.r(160523),v=e.r(613534);e.r(437619);let _=e.r(780714),w=e.r(448533),S=e.r(862059),E=e.r(258197),O=e.r(389991),P=e.r(234330),k=e.r(114854),R=e.r(884541),x=e.r(471515),C=e.r(675045),N=e.r(744193),T=e.r(123335),j=e.r(451935),D=e.r(797520),M=e.r(603012),A=e.r(557367),I=e.r(804875),F=e.r(542893),L=e.r(926270);function q(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,
4configurable:!0}),{cancelled:!0})}async function $(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,_.parsePath)(e.asPath),i=(0,P.hasBasePath)(r)?(0,E.removeBasePath)(r):r,n=(0,O.addBasePath)((0,w.addLocale)(i,e.locale));return t.some(e=>new RegExp(e.regexp).test(n))}function V(e){let t=(0,p.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function W(e,t,r){let[i,n]=(0,k.resolveHref)(e,t,!0),a=(0,p.getLocationOrigin)(),s=i.startsWith(a),o=n&&n.startsWith(a);i=V(i),n=n?V(n):n;let l=s?i:(0,O.addBasePath)(i),u=r?V((0,k.resolveHref)(e,r)):n||i;return{url:l,as:o?u:(0,O.addBasePath)(u)}}function B(e,t){let r=(0,o.removeTrailingSlash)((0,h.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,m.isDynamicRoute)(t)&&(0,b.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,o.removeTrailingSlash)(e))}async function U(e){if(!await $(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let i={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},n=t.headers.get("x-nextjs-rewrite"),a=n||t.headers.get("x-nextjs-matched-path"),s=t.headers.get(I.MATCHED_PATH_HEADER);if(!s||a||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(a=s),a){if(a.startsWith("/")){let t=(0,g.parseRelativeUrl)(a),s=(0,x.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),u=(0,o.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,l.getClientBuildManifest)()]).then(([a,{__rewrites:o}])=>{let l=(0,w.addLocale)(s.pathname,s.locale);if((0,m.isDynamicRoute)(l)||!n&&a.includes((0,d.normalizeLocalePath)((0,E.removeBasePath)(l),r.router.locales).pathname)){let r=(0,x.getNextPathnameInfo)((0,g.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:i.basePath,trailingSlash:i.trailingSlash},parseData:!0});t.pathname=l=(0,O.addBasePath)(r.pathname)}if(!a.includes(u)){let e=B(u,a);e!==u&&(u=e)}let c=a.includes(u)?u:B((0,d.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),r.router.locales).pathname,a);if((0,m.isDynamicRoute)(c)){let e=(0,y.getRouteMatcher)((0,b.getRouteRegex)(c))(l);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:c}})}let t=(0,_.parsePath)(e),s=(0,C.formatNextPathnameInfo)({...(0,x.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${s}${t.query}${t.hash}`})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,_.parsePath)(u),t=(0,C.formatNextPathnameInfo)({...(0,x.getNextPathnameInfo)(e.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let z=Symbol("SSG_DATA_NOT_FOUND");function Q(e){try{return JSON.parse(e)}catch(e){return null}}function H({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:i,isServerRender:n,parseJSON:a,persistCache:s,isBackground:o,unstable_skipClientCache:u}){let{href:c}=new URL(e,window.location.href),h=(0,F.getDeploymentId)(),d=o=>(function e(t,r,i){return fetch(t,{credentials:"same-origin",method:i.method||"GET",headers:Object.assign({},i.headers,{"x-nextjs-data":"1"})}).then(n=>!n.ok&&r>1&&n.status>=500?e(t,r-1,i):n)})(e,n?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&i?{"x-middleware-prefetch":"1"}:{},h?{"x-deployment-id":h}:{}),method:o?.method??"GET"}).then(t=>t.ok&&o?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:c}:t.text().then(r=>{if(!t.ok){if(i&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:c};if(404===t.status&&Q(r)?.notFound)return{dataHref:e,json:{notFound:z},response:t,text:r,cacheKey:c};let a=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,
4configurable:!0});throw n||(0,l.markAssetError)(a),a}let s=t.headers.get(I.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=s&&s!==h){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw n||(0,l.markAssetError)(e),e}return{dataHref:e,json:a?Q(r):null,response:t,text:r,cacheKey:c}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[c],e)).catch(e=>{throw u||delete t[c],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,l.markAssetError)(e),e});return u&&s?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[c]=Promise.resolve(e)),e)):void 0!==t[c]?t[c]:t[c]=d(o?{method:"HEAD"}:{})}function K(){return Math.random().toString(36).slice(2,10)}function X({url:e,router:t}){if(e===(0,O.addBasePath)((0,w.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let Y=({route:e,router:t})=>{let r=!1,i=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}i===t.clc&&(t.clc=null)}};class G{static{this.events=(0,f.default)()}constructor(e,t,r,{initialProps:i,pageLoader:n,App:a,wrapApp:s,Component:l,err:u,subscription:c,isFallback:h,locale:d,locales:f,defaultLocale:y,domainLocales:b,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=K(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let i=e.state;if(!i){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,O.addBasePath)(e),query:t}),(0,p.getURL)());return}if(i.__NA)return void window.location.reload();if(!i.__N||r&&this.locale===i.options.locale&&i.as===this.asPath)return;let{url:n,as:a,options:s,key:o}=i;this._key=o;let{pathname:l}=(0,g.parseRelativeUrl)(n);this.isSsr&&a===(0,O.addBasePath)(this.asPath)&&l===(0,O.addBasePath)(this.pathname)||(!this._bps||this._bps(i))&&this.change("replaceState",n,a,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};const w=(0,o.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[w]={Component:l,initial:!0,props:i,err:u,__N_SSG:i&&i.__N_SSG,__N_SSP:i&&i.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=G.events,this.pageLoader=n;const S=(0,m.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!S&&!self.location.search),this.state={route:w,pathname:e,query:t,asPath:S?e:r,isPreview:!!_,locale:void 0,isFallback:h},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!r.startsWith("//")){const i={locale:d},n=(0,p.getURL)();this._initialMatchesMiddlewarePromise=$({router:this,locale:d,asPath:n}).then(a=>(i._shouldResolveHref=r!==e,this.changeState("replaceState",a?n:(0,v.formatWithValidation)({pathname:(0,O.addBasePath)(e),query:t}),n,i),a))}window.addEventListener("popstate",this.onPopState)}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,L.isJavaScriptURLString)(e.toString())||t&&(0,L.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=W(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,L.isJavaScriptURLString)(e.toString())||t&&(0,L.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,
4configurable:!0});return{url:e,as:t}=W(this,e,t),this.change("replaceState",e,t,r)}async _bfl(t,r,i,n){{if(!this._bfl_s&&!this._bfl_d){let r,a,{BloomFilter:s}=e.r(571745);try{({__routerFilterStatic:r,__routerFilterDynamic:a}=await (0,l.getClientBuildManifest)())}catch(e){if(console.error(e),n)return!0;return X({url:(0,O.addBasePath)((0,w.addLocale)(t,i||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let o={numItems:15,errorRate:1e-4,numBits:288,numHashes:14,bitArray:[1,0,1,1,0,1,1,0,0,1,1,1,0,1,0,0,0,0,0,1,0,1,1,0,1,1,0,1,1,1,1,1,1,0,0,0,0,1,0,1,0,1,1,0,0,0,0,0,1,0,1,0,1,1,1,1,1,0,0,1,1,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,1,1,0,1,1,0,1,0,0,1,1,0,1,1,1,0,1,1,1,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,1,0,0,0,1,1,1,1,1,1,0,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0,0,0,1,0,1,1,1,1,1,1,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,0,0,0,0,0,1,0,0,1,1,1,1,1,0,0,0,1,1,0,0,0,1,1,1,1,0,1,1,0,1,1,1,0,1,1,0,0,1,1,1,1,0,1,1,0,0,0,0,1,1,0,1,1,1,1,1,0,0,0,0,1,1,1,0,1,1,0,1,1,0,0,1,1,1,0,0,0,1,0,1,0,1,1,1,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,1,0,0,1,1,0,0,0]};!r&&o&&(r=o||void 0);let u={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};!a&&u&&(a=u),r?.numHashes&&(this._bfl_s=new s(r.numItems,r.errorRate),this._bfl_s.import(r)),a?.numHashes&&(this._bfl_d=new s(a.numItems,a.errorRate),this._bfl_d.import(a))}let a=!1,s=!1;for(let{as:e,allowMatchCurrent:l}of[{as:t},{as:r}])if(e){let r=(0,o.removeTrailingSlash)(new URL(e,"http://n").pathname),u=(0,O.addBasePath)((0,w.addLocale)(r,i||this.locale));if(l||r!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(a=a||!!this._bfl_s?.contains(r)||!!this._bfl_s?.contains(u),[r,u])){let t=e.split("/");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){s=!0;break}}}if(a||s){if(n)return!0;return X({url:(0,O.addBasePath)((0,w.addLocale)(t,i||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,i,n){let a,s;if(!(0,T.isLocalURL)(t))return X({url:t,router:this}),!1;let h=1===i._h;h||i.shallow||await this._bfl(r,void 0,i.locale);let d=h||i._shouldResolveHref||(0,_.parsePath)(t).pathname===(0,_.parsePath)(r).pathname,f={...this.state},k=!0!==this.isReady;this.isReady=!0;let R=this.isSsr;if(h||(this.isSsr=!1),h&&this.clc)return!1;let x=f.locale;p.ST&&performance.mark("routeChange");let{shallow:C=!1,scroll:j=!0}=i,A={shallow:C};this._inFlightRoute&&this.clc&&(R||G.events.emit("routeChangeError",q(),this._inFlightRoute,A),this.clc(),this.clc=null),r=(0,O.addBasePath)((0,w.addLocale)((0,P.hasBasePath)(r)?(0,E.removeBasePath)(r):r,i.locale,this.defaultLocale));let I=(0,S.removeLocale)((0,P.hasBasePath)(r)?(0,E.removeBasePath)(r):r,f.locale);this._inFlightRoute=r;let F=x!==f.locale;if(!h&&this.onlyAHashChange(I)&&!F){f.asPath=I,G.events.emit("hashChangeStart",r,A),this.changeState(e,t,r,{...i,scroll:!1}),j&&this.scrollToHash(I);try{await this.set(f,this.components[f.route],null)}catch(e){throw(0,c.default)(e)&&e.cancelled&&G.events.emit("routeChangeError",e,I,A),e}return G.events.emit("hashChangeComplete",r,A),!0}let L=(0,g.parseRelativeUrl)(t),{pathname:V,query:U}=L;try{[a,{__rewrites:s}]=await Promise.all([this.pageLoader.getPageList(),(0,l.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return X({url:r,router:this}),!1}this.urlIsNew(I)||F||(e="replaceState");let Q=r;V=V?(0,o.removeTrailingSlash)((0,E.removeBasePath)(V)):V;let H=(0,o.removeTrailingSlash)(V),K=r.startsWith("/")&&(0,g.parseRelativeUrl)(r).pathname;if(this.components[V]?.__appRouter)return X({url:r,router:this}),new Promise(()=>{});let Y=!!(K&&H!==K&&(!(0,m.isDynamicRoute)(H)||!(0,y.getRouteMatcher)((0,b.getRouteRegex)(H))(K))),J=!i.shallow&&await $({asPath:r,locale:f.locale,router:this});if(h&&J&&(d=!1),d&&"/_error"!==V&&(i._shouldResolveHref=!0,L.pathname=B(V,a),L.pathname!==V&&(V=L.pathname,L.pathname=(0,O.addBasePath)(V),J||(t=(0,v.formatWithValidation)(L)))),!(0,T.isLocalURL)(r))return X({url:r,router:this}),!1;Q=(0,S.removeLocale)((0,E.removeBasePath)(Q),f.locale),H=(0,o.removeTrailingSlash)(V);let Z=!1;if((0,m.isDynamicRoute)(H)){let e=(0,g.parseRelativeUrl)(Q),i=e.pathname,n=(0,b.getRouteRegex)(H);Z=(0,y.getRouteMatcher)(n)(i);let a=H===i,s=a?(0,M.interpolateAs)(H,i,U):{};if(Z&&(!a||s.result))a?r=(0,v.formatWithValidation)(Object.assign({},e,{pathname:s.result,query:(0,D.omit)(U,s.params)})):Object.assign(U,Z);else{let e=Object.keys(n.groups).filter(e=>!U[e]&&!n.groups[e].optional);if(e.length>0&&!J)throw Object.defineProperty(Error((a?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${i}) is incompatible with the \`href\` value (${H}). `)+`Read more: https://nextjs.org/docs/messages/${a?"href-interpolation-failed":"incompatible-href-as"}
4`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}h||G.events.emit("routeChangeStart",r,A);let ee="/404"===this.pathname||"/_error"===this.pathname;try{let s=await this.getRouteInfo({route:H,pathname:V,query:U,as:r,resolvedAs:Q,routeProps:A,locale:f.locale,isPreview:f.isPreview,hasMiddleware:J,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:h&&!this.isFallback,isMiddlewareRewrite:Y});if(h||i.shallow||await this._bfl(r,"resolvedAs"in s?s.resolvedAs:void 0,f.locale),"route"in s&&J){H=V=s.route||H,A.shallow||(U=Object.assign({},s.query||{},U));let e=(0,P.hasBasePath)(L.pathname)?(0,E.removeBasePath)(L.pathname):L.pathname;if(Z&&V!==e&&Object.keys(Z).forEach(e=>{Z&&U[e]===Z[e]&&delete U[e]}),(0,m.isDynamicRoute)(V)){let e=!A.shallow&&s.resolvedAs?s.resolvedAs:(0,O.addBasePath)((0,w.addLocale)(new URL(r,location.href).pathname,f.locale),!0);(0,P.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,b.getRouteRegex)(V),i=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);i&&Object.assign(U,i)}}if("type"in s)if("redirect-internal"===s.type)return this.change(e,s.newUrl,s.newAs,i);else return X({url:s.destination,router:this}),new Promise(()=>{});let o=s.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(s.__N_SSG||s.__N_SSP)&&s.props){if(s.props.pageProps&&s.props.pageProps.__N_REDIRECT){i.locale=!1;let t=s.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==s.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,g.parseRelativeUrl)(t);r.pathname=B(r.pathname,a);let{url:n,as:s}=W(this,t,t);return this.change(e,n,s,i)}return X({url:t,router:this}),new Promise(()=>{})}if(f.isPreview=!!s.props.__N_PREVIEW,s.props.notFound===z){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(s=await this.getRouteInfo({route:e,pathname:e,query:U,as:r,resolvedAs:Q,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isNotFound:!0}),"type"in s)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}h&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&s.props?.pageProps&&(s.props.pageProps.statusCode=500);let l=i.shallow&&f.route===(s.route??H),d=i.scroll??(!h&&!l),p=n??(d?{x:0,y:0}:null),v={...f,route:H,pathname:V,query:U,asPath:I,isFallback:!1};if(h&&ee){if(s=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:U,as:r,resolvedAs:Q,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isQueryUpdating:h&&!this.isFallback}),"type"in s)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&s.props?.pageProps&&(s.props.pageProps.statusCode=500);try{await this.set(v,s,p)}catch(e){throw(0,c.default)(e)&&e.cancelled&&G.events.emit("routeChangeError",e,I,A),e}return!0}if(G.events.emit("beforeHistoryChange",r,A),this.changeState(e,t,r,i),!(h&&!p&&!k&&!F&&(0,N.compareRouterStates)(v,this.state))){try{await this.set(v,s,p)}catch(e){if(e.cancelled)s.error=s.error||e;else throw e}if(s.error)throw h||G.events.emit("routeChangeError",s.error,I,A),s.error;h||G.events.emit("routeChangeComplete",r,A),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,c.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,i={}){("pushState"!==e||(0,p.getURL)()!==r)&&(this._shallow=i.shallow,window.history[e]({url:t,as:r,options:i,__N:!0,key:this._key="pushState"!==e?this._key:K()},"",r))}async handleRouteInfoError(e,t,r,i,n,a){if(e.cancelled)throw e;if((0,l.isAssetError)(e)||a)throw G.events.emit("routeChangeError",e,i,n),X({url:i,router:this}),q();console.error(e);try{let i,{page:n,styleSheets:a}=await this.fetchComponent("/_error"),s={props:i,Component:n,styleSheets:a,err:e,error:e};if(!s.props)try{s.props=await this.getInitialProps(n,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),s.props={}}return s}catch(e){return this.handleRouteInfoError((0,c.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
4configurable:!0}),t,r,i,n,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:i,resolvedAs:n,routeProps:a,locale:s,hasMiddleware:l,isPreview:u,unstable_skipClientCache:h,isQueryUpdating:f,isMiddlewareRewrite:p,isNotFound:m}){let g=e;try{let e=this.components[g];if(a.shallow&&e&&this.route===g)return e;let c=Y({route:g,router:this});l&&(e=void 0);let y=!e||"initial"in e?void 0:e,b={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":n,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:f?this.sbc:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:h,isBackground:f},_=f&&!p?null:await U({fetchData:()=>H(b),asPath:m?"/404":n,locale:s,router:this}).catch(e=>{if(f)return null;throw e});if(_&&("/_error"===t||"/404"===t)&&(_.effect=void 0),f&&(_?_.json=self.__NEXT_DATA__.props:_={json:self.__NEXT_DATA__.props}),c(),_?.effect?.type==="redirect-internal"||_?.effect?.type==="redirect-external")return _.effect;if(_?.effect?.type==="rewrite"){let i=(0,o.removeTrailingSlash)(_.effect.resolvedHref),s=await this.pageLoader.getPageList();if((!f||s.includes(i))&&(g=i,t=_.effect.resolvedHref,r={...r,..._.effect.parsedAs.query},n=(0,E.removeBasePath)((0,d.normalizeLocalePath)(_.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],a.shallow&&e&&this.route===g&&!l))return{...e,route:g}}if((0,R.isAPIRoute)(g))return X({url:i,router:this}),new Promise(()=>{});let w=y||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),S=_?.response?.headers.get("x-middleware-skip"),O=w.__N_SSG||w.__N_SSP;S&&_?.dataHref&&delete this.sdc[_.dataHref];let{props:P,cacheKey:k}=await this._getData(async()=>{if(O){if(_?.json&&!S)return{cacheKey:_.cacheKey,props:_.json};let e=_?.dataHref?_.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:t,query:r}),asPath:n,locale:s}),i=await H({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:S?{}:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:i.cacheKey,props:i.json||{}}}return{headers:{},props:await this.getInitialProps(w.Component,{pathname:t,query:r,asPath:i,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return w.__N_SSP&&b.dataHref&&k&&delete this.sdc[k],this.isPreview||!w.__N_SSG||f||H(Object.assign({},b,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),P.pageProps=Object.assign({},P.pageProps),w.props=P,w.route=g,w.query=r,w.resolvedAs=n,this.components[g]=w,w}catch(e){return this.handleRouteInfoError((0,c.getProperError)(e),t,r,i,a)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[i,n]=e.split("#",2);return!!n&&t===i&&r===n||t===i&&r!==n}scrollToHash(e){let[,t=""]=e.split("#",2);(0,A.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let i=document.getElementsByName(e)[0];i&&i.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if("u">typeof window&&(0,j.isBot)(window.navigator.userAgent))return;let i=(0,g.parseRelativeUrl)(e),n=i.pathname,{pathname:a,query:s}=i,l=a,u=await this.pageLoader.getPageList(),c=t,h=void 0!==r.locale?r.locale||void 0:this.locale,d=await $({asPath:t,locale:h,router:this});i.pathname=B(i.pathname,u),(0,m.isDynamicRoute)(i.pathname)&&(a=i.pathname,i.pathname=a,Object.assign(s,(0,y.getRouteMatcher)((0,b.getRouteRegex)(i.pathname))((0,_.parsePath)(t).pathname)||{}),d||(e=(0,v.formatWithValidation)(i)));let f=await U({fetchData:()=>H({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:l,query:s}),skipInterpolation:!0,asPath:c,locale:h}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persist
4Cache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:h,router:this});if(f?.effect.type==="rewrite"&&(i.pathname=f.effect.resolvedHref,a=f.effect.resolvedHref,s={...s,...f.effect.parsedAs.query},c=f.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(i)),f?.effect.type==="redirect-external")return;let p=(0,o.removeTrailingSlash)(a);await this._bfl(t,c,r.locale,!0)&&(this.components[n]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(p).then(t=>!!t&&H({dataHref:f?.json?f?.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:h}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!1}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](p)])}async fetchComponent(e){let t=Y({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],i=this._wrapApp(r);return t.AppTree=i,(0,p.loadGetInitialProps)(r,{AppTree:i,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},594111,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}}),e.r(481258);let i=e.r(222809);e.r(813931);let n=e.r(480679);function a(e){function t(t){return(0,i.jsx)(e,{router:(0,n.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},480679,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={Router:function(){return o.default},createRouter:function(){return y},default:function(){return m},makePublicRouterInstance:function(){return b},useRouter:function(){return g},withRouter:function(){return c.default}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(481258),s=a._(e.r(813931)),o=a._(e.r(210677)),l=e.r(965666),u=a._(e.r(560697)),c=a._(e.r(594111)),h={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"u">typeof window&&this.readyCallbacks.push(e)}},d=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function p(){if(!h.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,configurable:!0});return h.router}Object.defineProperty(h,"events",{get:()=>o.default.events}),d.forEach(e=>{Object.defineProperty(h,e,{get:()=>p()[e]})}),f.forEach(e=>{h[e]=(...t)=>p()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{h.ready(()=>{o.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(h[r])try{h[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,u.default)(e)?`${e.message}
5${e.stack}`:e+"")}})})});let m=h;function g(){let e=s.default.useContext(l.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,
5configurable:!0});return e}function y(...e){return h.router=new o.default(...e),h.readyCallbacks.forEach(e=>e()),h.readyCallbacks=[],h.router}function b(e){let t={};for(let r of d){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=o.default.events,f.forEach(r=>{t[r]=(...t)=>e[r](...t)}),t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},43195,(e,t,r)=>{t.exports=e.r(480679)},396334,(e,t,r)=>{e.e,t.exports=function(e){"use strict";var t={name:"bg",weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekStart:1,ordinal:function(e){var t=e%100;if(t>10&&t<20)return e+"-ти";var r=e%10;return 1===r?e+"-ви":2===r?e+"-ри":7===r||8===r?e+"-ми":e+"-ти"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(e.r(57877))},391268,e=>{"use strict";let t,r;var i,n,a=e.i(222809),s=e.i(813931),o=e.i(733557),l=e.i(81153);function u(e,t,r){return Math.max(t,Math.min(e,r))}function c(e,t){return"rtl"===t?(1-e)*100:(-1+e)*100}function h(e,t,r){if("string"==typeof t)void 0!==r&&(e.style[t]=r);else for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];void 0!==i&&(e.style[r]=i)}}function d(e,t){e.classList.add(t)}function f(e,t){e.classList.remove(t)}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}var m={minimum:.08,maximum:1,template:`<div class="bar"><div class="peg"></div></div>
6             <div class="spinner"><div class="spinner-icon"></div></div>
7             <div class="indeterminate"><div class="inc"></div><div class="dec"></div></div>`,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,indeterminate:!1,indeterminateSelector:".indeterminate",barSelector:".bar",spinnerSelector:".spinner",parent:"body",direction:"ltr"},g=class{static settings=m;static status=null;static pending=[];static isPaused=!1;static reset(){return this.status=null,this.isPaused=!1,this.pending=[],this.settings=m,this}static configure(e){return Object.assign(this.settings,e),this}static isStarted(){return"number"==typeof this.status}static set(e){if(this.isPaused)return this;let t=this.isStarted();e=u(e,this.settings.minimum,this.settings.maximum),this.status=e===this.settings.maximum?null:e;let r=this.render(!t),i=this.settings.speed,n=this.settings.easing;return r.forEach(e=>e.offsetWidth),this.queue(t=>{r.forEach(t=>{this.settings.indeterminate||h(t.querySelector(this.settings.barSelector),this.barPositionCSS({n:e,speed:i,ease:n}))}),e===this.settings.maximum?(r.forEach(e=>{h(e,{transition:"none",opacity:"1"}),e.offsetWidth}),setTimeout(()=>{r.forEach(e=>{h(e,{transition:`all ${i}ms ${n}`,opacity:"0"})}),setTimeout(()=>{r.forEach(e=>{this.remove(e),null===this.settings.template&&h(e,{transition:"none",opacity:"1"})}),t()},i)},i)):setTimeout(t,i)}),this}static start(){this.status||this.set(0);let e=()=>{this.isPaused||setTimeout(()=>{this.status&&(this.trickle(),e())},this.settings.trickleSpeed)};return this.settings.trickle&&e(),this}static done(e){return e||this.status?this.inc(.3+.5*Math.random()).set(1):this}static inc(e){if(this.isPaused||this.settings.indeterminate)return this;let t=this.status;return t?t>1?this:("number"!=typeof e&&(e=t>=0&&t<.2?.1:t>=.2&&t<.5?.04:t>=.5&&t<.8?.02:.005*(t>=.8&&t<.99)),t=u(t+e,0,.994),this.set(t)):this.start()}static dec(e){if(this.isPaused||this.settings.indeterminate)return this;let t=this.status;return"number"!=typeof t?this:("number"!=typeof e&&(e=t>.8?.1:t>.5?.05:t>.2?.02:.01),t=u(t-e,0,.994),this.set(t))}static trickle(){return this.isPaused||this.settings.indeterminate?this:this.inc()}static promise(e){if(!e||"resolved"===e.state())return this;let t=0,r=0;return this.start(),t++,r++,e.always(()=>{0==--r?(t=0,this.done()):this.set((t-r)/t)}),this}static render(e=!1){let t="string"==typeof this.settings.parent?document.querySelector(this.settings.parent):this.settings.parent,r=t?Array.from(t.querySelectorAll(".bprogress")):[];if(null!==this.settings.template&&0===r.length){d(document.documentElement,"bprogress-busy");let e=document.createElement("div");d(e,"bprogress"),e.innerHTML=this.settings.template,t!==document.body&&d(t,"bprogress-custom-parent"),t.appendChild(e),r.push(e)}return r.forEach(r=>{if(null===this.settings.template&&(r.style.display=""),d(document.documentElement,"bprogress-busy"),t!==document.body&&d(t,"bprogress-custom-parent"),this.settings.indeterminate){let e=r.querySelector(this.settings.barSelector);e&&(e.style.display="none");let t=r.querySelector(this.settings.indeterminateSelector);t&&(t.style.display="")}else{let t=r.querySelector(this.settings.barSelector),i=e?c(0,this.settings.direction):c(this.status||0,this.settings.direction);h(t,this.barPositionCSS({n:this.status||0,speed:this.settings.speed,ease:this.settings.easing,perc:i}));let n=r.querySelector(this.settings.indeterminateSelector);n&&(n.style.display="none")}if(null===this.settings.template){let e=r.querySelector(this.settings.spinnerSelector);e&&(e.style.display=this.settings.showSpinner?"block":"none")}else if(!this.settings.showSpinner){let e=r.querySelector(this.settings.spinnerSelector);e&&p(e)}}),r}static remove(e){e?null===this.settings.template?e.style.display="none":p(e):(f(document.documentElement,"bprogress-busy"),("string"==typeof this.settings.parent?document.querySelectorAll(this.settings.parent):[this.settings.parent]).forEac
7h(e=>{f(e,"bprogress-custom-parent")}),document.querySelectorAll(".bprogress").forEach(e=>{null===this.settings.template?e.style.display="none":p(e)}))}static pause(){return!this.isStarted()||this.settings.indeterminate||(this.isPaused=!0),this}static resume(){if(!this.isStarted()||this.settings.indeterminate)return this;if(this.isPaused=!1,this.settings.trickle){let e=()=>{this.isPaused||setTimeout(()=>{this.status&&(this.trickle(),e())},this.settings.trickleSpeed)};e()}return this}static isRendered(){return document.querySelectorAll(".bprogress").length>0}static getPositioningCSS(){let e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return`${t}Perspective`in e?"translate3d":`${t}Transform`in e?"translate":"margin"}static queue(e){this.pending.push(e),1===this.pending.length&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static initPositionUsing(){""===this.settings.positionUsing&&(this.settings.positionUsing=this.getPositioningCSS())}static barPositionCSS({n:e,speed:t,ease:r,perc:i}){this.initPositionUsing();let n={},a=i??c(e,this.settings.direction);return"translate3d"===this.settings.positionUsing?n={transform:`translate3d(${a}%,0,0)`}:"translate"===this.settings.positionUsing?n={transform:`translate(${a}%,0)`}:"width"===this.settings.positionUsing?n={width:`${"rtl"===this.settings.direction?100-a:a+100}%`,..."rtl"===this.settings.direction?{right:"0",left:"auto"}:{}}:"margin"===this.settings.positionUsing&&(n="rtl"===this.settings.direction?{"margin-left":`${-a}%`}:{"margin-right":`${-a}%`}),n.transition=`all ${t}ms ${r}`,n}};function y(e,t){return e.protocol+"//"+e.host+e.pathname+e.search==t.protocol+"//"+t.host+t.pathname+t.search}function b(e,t){return e.protocol+"//"+e.host+e.pathname==t.protocol+"//"+t.host+t.pathname}function v(e,t){if("string"==typeof t&&"data-disable-progress"===t){let r=t.substring(5).replace(/-([a-z])/g,(e,t)=>t.toUpperCase());return e.dataset[r]}let r=e[t];if(r instanceof SVGAnimatedString){let e=r.baseVal;return"href"===t?function(e,t){let r,i,n;if(!e.startsWith("/")||!t)return e;let{pathname:a,query:s,hash:o}=(r=e.indexOf("#"),(n=(i=e.indexOf("?"))>-1&&(r<0||i<r))||r>-1?{pathname:e.substring(0,n?i:r),query:n?e.substring(i,r>-1?r:void 0):"",hash:r>-1?e.slice(r):""}:{pathname:e,query:"",hash:""});return`${t}${a}${s}${o}`}(e,location.origin):e}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){var i;i=r[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function w(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r,i,n={},a=Object.keys(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var S=(0,s.createContext)(void 0),E=function(){var e=(0,s.useContext)(S);if(!e)throw Error("useProgress must be used within a ProgressProvider");return e},O=function(e){var t=e.children,r=e.color,i=void 0===r?"#0A2FFF":r,n=e.height,a=void 0===n?"2px":n,o=e.options,l=e.spinnerPosition,u=void 0===l?"top-right":l,c=e.style,h=e.disableStyle,d=e.nonce,f=e.shallowRouting,p=e.disableSameURL,m=e.startPosition,y=e.delay,b=e.stopDelay,v=(0,s.useRef)(null),w=(0,s.useRef)(!1),E=(0,s.useCallback)(function(){return w.current=!0},[]),O=(0,s.useCallback)(function(){return w.current=!1},[]),P=(0,s.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r&&E(),v.current=setTimeout(function(){e>0&&g.set(e),g.start()},t)},[E]),k=(0,s.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;setTimeout(function(){v.current&&clearTimeout(v.current),v.current=setTimeout(function(){g.isStarted()&&(g.done(),w.current&&O())},e)},t)},[O]),R=(0,s.useCallback)(function(e){return g.inc(e)},[]),x=(0,s.useCallback)(function(e){return g.dec(e)},[]),C=(0,s.useCallback)(function(e){return g.set(e)},[]),N=(0,s.useCallback)(function(){return g.pause()},[]),T=(0,s.useCallback)(function(){return g.resume()},[]),j=(0,s.useCallback)(function(){return g.settings},[]),D=(0,s.useCallback)(function(e){var t=j(),r="function"==typeof e?e(t):e,i=_({},t,r);g.configure(i)},[j]),M=(0,s.useMemo)(function(){return s.default.createElement("style",{nonce:
7d},c||(({color:e="#29d",height:t="2px",spinnerPosition:r="top-right"})=>`
8:root {
9  --bprogress-color: ${e};
10  --bprogress-height: ${t};
11  --bprogress-spinner-size: 18px;
12  --bprogress-spinner-animation-duration: 400ms;
13  --bprogress-spinner-border-size: 2px;
14  --bprogress-box-shadow: 0 0 10px ${e}, 0 0 5px ${e};
15  --bprogress-z-index: 99999;
16  --bprogress-spinner-top: ${"top-right"===r||"top-left"===r?"15px":"auto"};
17  --bprogress-spinner-bottom: ${"bottom-right"===r||"bottom-left"===r?"15px":"auto"};
18  --bprogress-spinner-right: ${"top-right"===r||"bottom-right"===r?"15px":"auto"};
19  --bprogress-spinner-left: ${"top-left"===r||"bottom-left"===r?"15px":"auto"};
20}
21
22.bprogress {
23  width: 0;
24  height: 0;
25  pointer-events: none;
26  z-index: var(--bprogress-z-index);
27}
28
29.bprogress .bar {
30  background: var(--bprogress-color);
31  position: fixed;
32  z-index: var(--bprogress-z-index);
33  top: 0;
34  left: 0;
35  width: 100%;
36  height: var(--bprogress-height);
37}
38
39/* Fancy blur effect */
40.bprogress .peg {
41  display: block;
42  position: absolute;
43  right: 0;
44  width: 100px;
45  height: 100%;
46  box-shadow: var(--bprogress-box-shadow);
47  opacity: 1.0;
48  transform: rotate(3deg) translate(0px, -4px);
49}
50
51/* Remove these to get rid of the spinner */
52.bprogress .spinner {
53  display: block;
54  position: fixed;
55  z-index: var(--bprogress-z-index);
56  top: var(--bprogress-spinner-top);
57  bottom: var(--bprogress-spinner-bottom);
58  right: var(--bprogress-spinner-right);
59  left: var(--bprogress-spinner-left);
60}
61
62.bprogress .spinner-icon {
63  width: var(--bprogress-spinner-size);
64  height: var(--bprogress-spinner-size);
65  box-sizing: border-box;
66  border: solid var(--bprogress-spinner-border-size) transparent;
67  border-top-color: var(--bprogress-color);
68  border-left-color: var(--bprogress-color);
69  border-radius: 50%;
70  -webkit-animation: bprogress-spinner var(--bprogress-spinner-animation-duration) linear infinite;
71  animation: bprogress-spinner var(--bprogress-spinner-animation-duration) linear infinite;
72}
73
74.bprogress-custom-parent {
75  overflow: hidden;
76  position: relative;
77}
78
79.bprogress-custom-parent .bprogress .spinner,
80.bprogress-custom-parent .bprogress .bar {
81  position: absolute;
82}
83
84.bprogress .indeterminate {
85  position: fixed;
86  top: 0;
87  left: 0;
88  width: 100%;
89  height: var(--bprogress-height);
90  overflow: hidden;
91}
92
93.bprogress .indeterminate .inc,
94.bprogress .indeterminate .dec {
95  position: absolute;
96  top: 0;
97  height: 100%;
98  background-color: var(--bprogress-color);
99}
100
101.bprogress .indeterminate .inc {
102  animation: bprogress-indeterminate-increase 2s infinite;
103}
104
105.bprogress .indeterminate .dec {
106  animation: bprogress-indeterminate-decrease 2s 0.5s infinite;
107}
108
109@-webkit-keyframes bprogress-spinner {
110  0%   { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
111  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
112}
113
114@keyframes bprogress-spinner {
115  0%   { transform: rotate(0deg); }
116  100% { transform: rotate(360deg); }
117}
118
119@keyframes bprogress-indeterminate-increase {
120  from { left: -5%; width: 5%; }
121  to { left: 130%; width: 100%; }
122}
123
124@keyframes bprogress-indeterminate-decrease {
125  from { left: -80%; width: 80%; }
126  to { left: 110%; width: 10%; }
127}
128`)({color:i,height:a,spinnerPosition:u}))},[i,a,d,u,c]);return g.configure(o||{}),s.default.createElement(S.Provider,{value:{start:P,stop:k,inc:R,dec:x,set:C,pause:N,resume:T,setOptions:D,getOptions:j,isAutoStopDisabled:w,disableAutoStop:E,enableAutoStop:O,shallowRouting:void 0!==f&&f,disableSameURL:void 0===p||p,startPosition:void 0===m?0:m,delay:void 0===y?0:y,stopDelay:void 0===b?0:b}},void 0!==h&&h?null:M,t)};function P(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}var k=s.default.forwardRef(function(e,t){var r=e.as,i=e.children,n=e.className,a=e.classSelector,o=w(e,["as","children","className","classSelector"]);return s.default.createElement(null!=r?r:"div",_({ref:t,className:P(void 0===a?"bar":a,n)},o),i)}),R=s.default.forwardRef(function(e,t){var r=e.as,i=e.children,n=e.className,a=e.classSelector,o=w(e,["as","children","className","classSelector"]);return s.default.createElement(null!=r?r:"div",_({ref:t,className:P(void 0===a?"peg":a,n)},o),i)}),x=s.default.forwardRef(function(e,t){var r=e.as,i=e.children,n=e.className,a=e.classSelector,o=w(e,["as","children","className","classSelector"]);return s.default.createElement(null!=r?r:"div",_({ref:t,className:P(void 0===a?"spinner":a,n)},o),i)}),C=s.default.forwardRef(function(e,t){var r=e.as,i=e.children,n=e.className,a=e.classSelector,o=w(e,["as","children","className","classSelector"]);return s.default.createElement(null!=r?r:"div",_({ref:t,className:P(void 0===a?"spinner-icon":a,n)},o),i)});function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["memo","shouldCompareComplexProps"];
128return(0,s.memo)(e,function(e,r){return!1!==r.memo&&(!r.shouldCompareComplexProps||function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=Object.keys(e).filter(function(e){return!r.includes(e)}),n=Object.keys(t).filter(function(e){return!r.includes(e)});if(i.length!==n.length)return!1;var a=!0,s=!1,o=void 0;try{for(var l,u=i[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var c=l.value;if(e[c]!==t[c])return!1}}catch(e){s=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw o}}return!0}(e,r,t))})}s.default.forwardRef(function(e,t){var r,i,n=e.as,a=e.children,o=e.className,l=e.style,u=w(e,["as","children","className","style"]);return s.default.createElement(null!=n?n:"div",_({ref:t,className:P("bprogress",o),style:(r=_({},l),i=i={display:"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}),r)},u),a||s.default.createElement(s.default.Fragment,null,s.default.createElement(k,null,s.default.createElement(R,null)),s.default.createElement(x,null,s.default.createElement(C,null))))}),s.default.forwardRef(function(e,t){var r=e.as,i=e.className,n=e.classSelector,a=w(e,["as","className","classSelector"]);return s.default.createElement(null!=r?r:"div",_({ref:t,className:P(void 0===n?"indeterminate":n,i)},a),s.default.createElement("div",{className:"inc"}),s.default.createElement("div",{className:"dec"}))});var T=e.i(43195);function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){var i;i=r[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function D(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r,i,n={},a=Object.keys(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var M=N(function(e){return!function(e){var t=e.shallowRouting,r=void 0!==t&&t,i=e.disableSameURL,n=void 0===i||i,a=e.startPosition,o=void 0===a?0:a,l=e.delay,u=void 0===l?0:l,c=e.stopDelay,h=void 0===c?0:c,d=e.targetPreprocessor,f=e.disableAnchorClick,p=void 0!==f&&f,m=e.startOnLoad,g=void 0!==m&&m,_=e.forcedStopDelay,w=void 0===_?0:_,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],O=(0,s.useRef)([]),P=(0,s.useRef)(null),k=E(),R=k.start,x=k.stop,C=k.isAutoStopDisabled;(0,s.useEffect)(function(){g&&R(o,u)},[]),(0,s.useEffect)(function(){return P.current&&clearTimeout(P.current),P.current=setTimeout(function(){C.current||x()},h),function(){P.current&&clearTimeout(P.current)}},S),(0,s.useEffect)(function(){if(!p){var e=function(e){if(e.defaultPrevented)return;var t=e.currentTarget;if(!t.hasAttribute("download")){var i=e.target,a=(null==i?void 0:i.getAttribute("data-prevent-progress"))==="true"||(null==t?void 0:t.getAttribute("data-prevent-progress"))==="true";if(!a)for(var s,l=i;l&&"a"!==l.tagName.toLowerCase();){if((null==(s=l.parentElement)?void 0:s.getAttribute("data-prevent-progress"))==="true"){a=!0;break}l=l.parentElement}if(!a&&"_blank"!==v(t,"target")&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey){var c=v(t,"href"),h=d?d(new URL(c)):new URL(c),f=new URL(location.href);r&&b(h,f)&&n||y(h,f)&&n||R(o,u)}}},t=new MutationObserver(function(){var t=Array.from(document.querySelectorAll("a")).filter(function(e){var t=v(e,"href"),r="true"===e.getAttribute("data-disable-progress"),i=t&&!t.startsWith("tel:")&&!t.startsWith("mailto:")&&!t.startsWith("blob:")&&!t.startsWith("javascript:");return!r&&i&&"_blank"!==v(e,"target")});t.forEach(function(t){t.addEventListener("click",e,!0)}),O.current=t});t.observe(document,{childList:!0,subtree:!0});var i=window.history.pushState;return window.history.pushState=new Proxy(window.history.pushState,{apply:function(e,t,r){return C.current||x(h,w),e.apply(t,r)}}),function(){t.disconnect(),O.current.forEach(function(t){t.removeEventListener("click",e,!0)}),O.current=[],window.history.pushState=i}}},[p,d,r,n,u,h,o,R,x,w,C])}(e,[(0,l.usePathname)(),(0,l.useSearchParams)()]),null});M.displayName="AppProgress";var A=function(e){var t=e.children,r=e.ProgressComponent,i=e.color,n=e.height,a=e.options,o=e.spinnerPosition,l=e.style,u=e.disableStyle,c=e.nonce,h=e.stopDelay,d=e.delay,f=e.startPosition,p=e.disableSameURL,m=e.shallowRouting,g=D(e,["children","ProgressComponent","color","height","o
128ptions","spinnerPosition","style","disableStyle","nonce","stopDelay","delay","startPosition","disableSameURL","shallowRouting"]);return s.default.createElement(O,{color:i,height:n,options:a,spinnerPosition:o,style:l,disableStyle:u,nonce:c,stopDelay:h,delay:d,startPosition:f,disableSameURL:p,shallowRouting:m},s.default.createElement(r,j({stopDelay:h,delay:d,startPosition:f,disableSameURL:p,shallowRouting:m},g)),t)},I=function(e){return s.default.createElement(s.Suspense,null,s.default.createElement(M,_({},e)))},F=function(e){var t=e.children,r=D(e,["children"]);return s.default.createElement(A,j({ProgressComponent:I},r),t)};N(function(e){var t=e.shallowRouting,r=void 0!==t&&t,i=e.disableSameURL,n=void 0===i||i,a=e.startPosition,o=void 0===a?0:a,l=e.delay,u=void 0===l?0:l,c=e.stopDelay,h=void 0===c?0:c,d=E(),f=d.start,p=d.stop;return(0,s.useEffect)(function(){var e=function(e){var t=new URL(e,location.href),i=new URL(location.href);r&&b(t,i)&&n||y(t,i)&&n||f(o,u)},t=function(){return p(h)};return T.default.events.on("routeChangeStart",e),T.default.events.on("routeChangeComplete",t),T.default.events.on("routeChangeError",t),function(){T.default.events.off("routeChangeStart",e),T.default.events.off("routeChangeComplete",t),T.default.events.off("routeChangeError",t)}},[]),null}).displayName="PagesProgress";var L=e.i(583846);e.i(779282);var q=e.i(45073);e.i(428296);var $=e.i(182887),V=e.i(956094),W=e.i(213294);let B=[/^Script error\.?$/,/ResizeObserver loop/],U=new Set(["page","sort","itemsPerPage","brands","attr","priceRng","inPromo","stock","category","serviceGroups","year","preview","nocache"]),z=!1,Q=!1;e.i(981591);var H=e.i(549762),K=e.i(247946),X=e.i(663717),Y=e.i(31445),G=e.i(812458);e.i(946755);var J=e.i(431500);function Z({children:e}){let{isAuthenticated:t,isAnonymousUser:r,updateIsAnonymousUser:i,markAnonymousRefreshTried:n}=(0,J.useGlobalContext)(),[o,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(0),h=(0,s.useRef)(!1);(0,s.useEffect)(()=>{t&&((0,H.deleteAnonymousSession)(),r&&i(!1))},[t,r,i]);let d=(0,s.useRef)(i);(0,s.useEffect)(()=>{d.current=i},[i]),(0,s.useEffect)(()=>{let e=()=>d.current(!1);return window.addEventListener(H.ANONYMOUS_SESSION_CLEARED_EVENT,e),()=>window.removeEventListener(H.ANONYMOUS_SESSION_CLEARED_EVENT,e)},[]),(0,s.useEffect)(()=>{t||h.current||(async()=>{if(!o){h.current=!0;try{await (0,Y.refreshAnonymousSession)()?i(!0):(0,K.getRefreshToken)()||i(!1);let{refreshIntervalInMs:e}=(0,X.isAccessTokenExpiringSoon)();c(e)}finally{n(),l(!0),h.current=!1}}})()},[o,t,i,n]),(0,s.useEffect)(()=>{let e=null,t=!1;return o&&u>0&&(e=setInterval(()=>{t||(t=!0,(0,Y.refreshAnonymousSession)().then(e=>{e?i(!0):(0,K.getRefreshToken)()||i(!1);let{refreshIntervalInMs:t}=(0,X.isAccessTokenExpiringSoon)();c(t)}).catch(e=>{L.default.error({err:e},"Failed to refresh anonymous session")}).finally(()=>{t=!1}))},u)),()=>{e&&clearInterval(e)}},[o,u,i]);let f=(0,s.useCallback)(async()=>{(0,G.isClient)()&&!t&&(0,K.getRefreshToken)()&&!document.hidden&&await (0,Y.refreshAnonymousSession)()},[t]);return(0,s.useEffect)(()=>(document.addEventListener("visibilitychange",f),()=>{document.removeEventListener("visibilitychange",f)}),[f]),(0,a.jsx)(a.Fragment,{children:e})}var ee=e.i(252949),et=e.i(479024);e.i(596155);var er=e.i(921797);e.i(531888);var ei=e.i(663286),en=e.i(273136);e.i(720250);var ea=e.i(990484);let es=s.useLayoutEffect;var eo=e.i(673373),el=e.i(558411);e.i(434306);var eu=e.i(983815);e.i(606995);var ec=e.i(915454),eh=e.i(739746);function ed({children:e}){let t=(0,l.useSearchParams)(),{data:r}=(0,ec.useStoreById)({variables:(0,eh.getStoreQueryVariables)((0,el.getStoreId)())});return(0,s.useEffect)(()=>{if(!r)return;let e=r?.utmCookieName??eo.UTM_PARAMS_COOKIE,i=Object.fromEntries(t.entries());Object.keys(i).length>0&&Object.keys(i).some(e=>e.startsWith("utm_"))&&((e,t,r=1)=>{let i={},n=new Date(Date.now()+864e5*r);if(Object.keys(e).forEach(t=>{t.startsWith("utm_")&&(i[t.replace("utm_","")]=e[t])}),0===Object.keys(i).length)return;let a=(0,eu.getClientCookie)(t),s=[];if(a)try{let e=JSON.parse(a);s=(Array.isArray(e)?e:[e]).filter(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))}catch{s=[]}if(s.length>0){let{timestamp:e,...t}=s[0];if(JSON.stringify(t)===JSON.stringify(i))return}i.timestamp=new Date().toISOString().replace("Z","+00:00"),(0,eu.setClientCookie)(t,JSON.stringify([i,...s]),{expires:n})})(i,e,r?.utmCookieValidity??1)},[t,r?.utmCookieValidity,r?.utmCookieName,r]),e}e.i(919777);var ef=e.i(971780),ep=e.i(267828),em=e.i(598932);let eg=({client:e,children:t})=>{let r=(0,em.getApolloContext)(),i=s.useContext(r),n=s.useMemo(()=>({...i,client:e||i.client}),[i,e]);return(0,ep.invariant)(n.client,38),s.createElement(r.Provider,{value:n},t)};var ey=e.i(263512);e.i(63221);var eb=e.i(400719),ev=e.i(684616),e_=e.i(480696);function ew(e,t,r){let i=new Set(e),n=i.size;return(0,e_.visit)(t,{Directive(e){if(i.delete(e.name.value)&&(!r||!i.size))return e_.BREAK}}),r?!i.size:i.size<n}class eS{isIncrementalResult(e){return!1}prepareRequest(e){return(0,ep.invariant)(!ew(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}var eE=e.i(425768);let eO=eE.ApolloLink.execute;var eP=e.i(214054),ek=e.i(336419),eR=e.i(372602);let ex=null,eC={},eN=1;function eT(e){try{return e()}catch(e){}}let ej="@wry/context:Slot",eD=eT(()=>globalThis)||eT(()=>e.g)||Object.create(null),eM=eD[ej]||Array[ej]||function(e){try{Object.defineProperty(eD,ej,{value:e,enumerable:!1,writable:!1,
128configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",eN++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=ex;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===eC)break;return e!==ex&&(ex.slots[this.id]=t),!0}return ex&&(ex.slots[this.id]=eC),!1}getValue(){if(this.hasValue())return ex.slots[this.id]}withValue(e,t,r,i){let n={__proto__:null,[this.id]:e},a=ex;ex={parent:a,slots:n};try{return t.apply(i,r)}finally{ex=a}}static bind(e){let t=ex;return function(){let r=ex;try{return ex=t,e.apply(this,arguments)}finally{ex=r}}}static noContext(e,t,r){if(!ex)return e.apply(r,t);{let i=ex;try{return ex=null,e.apply(r,t)}finally{ex=i}}}}),{bind:eA,noContext:eI}=eM,eF=new eM,{hasOwnProperty:eL}=Object.prototype,eq=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function e$(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let eV=[];function eW(e,t){if(!e)throw Error(t||"assertion failure")}function eB(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function eU(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class ez{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++ez.count}peek(){if(1===this.value.length&&!eK(this))return eQ(this),this.value[0]}recompute(e){var t,r,i;return eW(!this.recomputing,"already recomputing"),eQ(this),eK(this)?(t=this,r=e,eZ(t),eF.withValue(t,eH,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{e$(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((i=t).dirty=!1,eK(i)||function(e){eX(e,eG)}(i)),eU(t.value)):eU(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,eX(e,eY),e$(this))}dispose(){this.setDirty(),eZ(this),eX(this,(e,t)=>{e.setDirty(),e0(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=eV.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(eq(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),eV.push(this.deps),this.deps=null)}}function eQ(e){let t=eF.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),eK(e)?eY(t,e):eG(t,e),t}function eH(e,t){let r;e.recomputing=!0;let{normalizeResult:i}=e;i&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),i&&r&&!eB(r,e.value))try{e.value[0]=i(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function eK(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}ez.count=0;function eX(e,t){let r=e.parents.size;if(r){let i=eq(e.parents);for(let n=0;n<r;++n)t(i[n],e)}}function eY(e,t){eW(e.childValues.has(t)),eW(eK(t));let r=!eK(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=eV.pop()||new Set;e.dirtyChildren.add(t),r&&eX(e,eY)}function eG(e,t){eW(e.childValues.has(t)),eW(!eK(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):eB(r,t.value)||e.setDirty(),eJ(e,t),eK(e)||eX(e,eG)}function eJ(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(eV.length<100&&eV.push(r),e.dirtyChildren=null))}function eZ(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{e0(e,r)}),e.forgetDeps(),eW(null===e.dirtyChildren)}function e0(e,t){t.parents.delete(e),e.childValues.delete(t),eJ(e,t)}let e1={setDirty:!0,dispose:!0,forget:!0};function e4(e){let t=new Map,r=e&&e.subscribe;function i(e){let i=eF.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&(e$(n),n.unsubscribe=r(e))}}return i.dirty=function(e,r){let i=t.get(e);if(i){let n=r&&eL.call(e1,r)?r:"setDirty";eq(i).forEach(e=>e[n]()),t.delete(e),e$(i)}},i}function e2(...e){return(t||(t=new ek.Trie("function"==typeof WeakMap))).lookupArray(e)}let e3=new Set;function e5(e,{max:t=65536,keyArgs:r,makeCacheKey:i=e2,normalizeResult:n,subscribe:a,cache:s=eR.StrongCache}=Object.create(null)){let o="function"==typeof s?new s(t,e=>e.dispose()):s,l=function(){let t=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=o.get(t);s||(o.set(t,s=new ez(e)),s.normalizeResult=n,s.subscribe=a,s.forget=()=>o.delete(t));let l=s.recompute(Array.prototype.slice.call(arguments));
128return o.set(t,s),e3.add(o),eF.hasValue()||(e3.forEach(e=>e.clean()),e3.clear()),l};function u(e){let t=e&&o.get(e);t&&t.setDirty()}function c(e){let t=e&&o.get(e);if(t)return t.peek()}function h(e){return!!e&&o.delete(e)}return Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:i,normalizeResult:n,subscribe:a,cache:o}),l.dirtyKey=u,l.dirty=function(){u(i.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(i.apply(null,arguments))},l.forgetKey=h,l.forget=function(){return h(i.apply(null,arguments))},l.makeCacheKey=i,l.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(l)}var e9=e.i(446690),e8=e.i(116750);function e7(e){return e}class e6{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new e6(e7,{cache:!1})}static split(e,t,r=e6.identity()){return Object.assign(new e6(i=>(e(i)?t:r).transformDocument(i),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new ek.Trie;this.performWork=e5(e6.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,ep.invariant)(Array.isArray(r),20),e.lookupArray(r)},max:e8.cacheSizes["documentTransform.cache"],cache:eP.WeakCache})}}performWork(e){return(0,e9.checkDocument)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new e6(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}var te=e.i(697162),tt=e.i(87787);function tr(){throw Error("only supported in development mode")}var ti=e.i(824627),tn=e.i(142164),ta=e.i(852770),ts=e.i(462491),to=(0,ts.createErrorClass)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tl=e.i(246919),tu=e.i(103901),tc=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,ti.__extends)(t,e),t.prototype.lift=function(e){var t=new th(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new to},t.prototype.next=function(e){var t=this;(0,tu.errorContext)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=(0,ti.__values)(t.currentObservers),a=n.next();!a.done;a=n.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,tu.errorContext)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,tu.errorContext)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?ta.EMPTY_SUBSCRIPTION:(this.currentObservers=null,n.push(e),new ta.Subscription(function(){t.currentObservers=null,(0,tl.arrRemove)(n,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new tn.Observable;return e.source=this,e},t.create=function(e,t){return new th(e,t)},t}(tn.Observable),th=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return(0,ti.__extends)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:ta.EMPTY_SUBSCRIPTION},t}(tc),td=e.i(1423),tf=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=td.dateTimestampProvider);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return(0,ti.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,n=this._infiniteTimeWindow,a=this._timestampProvider,s=this._windowTime;!r&&(i.push(t),n||i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var a=t.now(),s=0,o=1;o<r.length&&r[o]<=a;o+=2)s=o;s&&r.splice(0,s+1)}},t}(tc),tp=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e},tm=e.i(44256);function tg(e){return(0,tm.isFunction)(null==e?void 0:e.then)}var ty=e.i(421092);function tb(e){return(0,tm.isFunction)(e[ty.observable])}function tv(e){return Symbol.asyncIterator&&(0,tm.isFunction)(null==e?void 0:e[Symbol.asyncIterator])}function t_(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
128d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var tw="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tS(e){return(0,tm.isFunction)(null==e?void 0:e[tw])}function tE(e){return(0,ti.__asyncGenerator)(this,arguments,function(){var t,r,i;return(0,ti.__generator)(this,function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,(0,ti.__await)(t.read())];case 3:if(i=(r=n.sent()).value,!r.done)return[3,5];return[4,(0,ti.__await)(void 0)];case 4:return[2,n.sent()];case 5:return[4,(0,ti.__await)(i)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function tO(e){return(0,tm.isFunction)(null==e?void 0:e.getReader)}var tP=e.i(743028);function tk(e){if(e instanceof tn.Observable)return e;if(null!=e){var t,r,i,n;if(tb(e)){return t=e,new tn.Observable(function(e){var r=t[ty.observable]();if((0,tm.isFunction)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(tp(e)){return r=e,new tn.Observable(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(tg(e)){return i=e,new tn.Observable(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,tP.reportUnhandledError)})}if(tv(e))return tR(e);if(tS(e)){return n=e,new tn.Observable(function(e){var t,r;try{for(var i=(0,ti.__values)(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(e.next(s),e.closed)return}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.complete()})}if(tO(e))return tR(tE(e))}throw t_(e)}function tR(e){return new tn.Observable(function(t){(function(e,t){var r,i,n,a;return(0,ti.__awaiter)(this,void 0,void 0,function(){var s;return(0,ti.__generator)(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=(0,ti.__asyncValues)(e),o.label=1;case 1:return[4,r.next()];case 2:if((i=o.sent()).done)return[3,4];if(s=i.value,t.next(s),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return n={error:o.sent()},[3,11];case 6:if(o.trys.push([6,,9,10]),!(i&&!i.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}var tx=e.i(793223),tC=e.i(602984);function tN(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new tc}:t,i=e.resetOnError,n=void 0===i||i,a=e.resetOnComplete,s=void 0===a||a,o=e.resetOnRefCountZero,l=void 0===o||o;return function(e){var t,i,a,o=0,u=!1,c=!1,h=function(){null==i||i.unsubscribe(),i=void 0},d=function(){h(),t=a=void 0,u=c=!1},f=function(){var e=t;d(),null==e||e.unsubscribe()};return(0,tC.operate)(function(e,p){o++,c||u||h();var m=a=null!=a?a:r();p.add(function(){0!=--o||c||u||(i=tT(f,l))}),m.subscribe(p),!t&&o>0&&(t=new tx.SafeSubscriber({next:function(e){return m.next(e)},error:function(e){c=!0,h(),i=tT(d,n,e),m.error(e)},complete:function(){u=!0,h(),i=tT(d,s),m.complete()}}),tk(e).subscribe(t))})(e)}}function tT(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(!0===t)return void e();if(!1!==t){var n=new tx.SafeSubscriber({next:function(){n.unsubscribe(),e()}});return tk(t.apply(void 0,(0,ti.__spreadArray)([],(0,ti.__read)(r)))).subscribe(n)}}function tj(e,t,r){var i,n,a,s,o=!1;return e&&"object"==typeof e?(s=void 0===(i=e.bufferSize)?1/0:i,t=void 0===(n=e.windowTime)?1/0:n,o=void 0!==(a=e.refCount)&&a,r=e.scheduler):s=null!=e?e:1/0,tN({connector:function(){return new tf(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}let tD=(0,e.i(112800).memoize)(function(e,t,r){let i,n;function a(e){return e!==i&&(n=r(i=e)),n}return Object.assign(e.pipe((0,ev.map)(a),tj({bufferSize:1,refCount:!0})),{getCurrentResult:()=>a(e.getCurrentResult())})},{max:1,makeCacheKey:e=>e.slice(0,2)});var tM=e.i(602974);function tA(e){return(0,e_.visit)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var tI=e.i(217554),tF=e.i(571406);function tL(e,t){var r=(0,tm.isFunction)(e)?e:function(){return e}
128,i=function(e){return e.error(r())};return new tn.Observable(t?function(e){return t.schedule(i,0,e)}:i)}var tq=e.i(795205);function t$(e){return(0,tC.operate)(function(t,r){var i,n=null,a=!1;n=t.subscribe((0,tq.createOperatorSubscriber)(r,void 0,void 0,function(s){i=tk(e(s,t$(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):a=!0})),a&&(n.unsubscribe(),n=null,i.subscribe(r))})}var tV=e.i(496498);function tW(e,t,r){return(void 0===r&&(r=1/0),(0,tm.isFunction)(t))?tW(function(r,i){return(0,ev.map)(function(e,n){return t(r,e,i,n)})(tk(e(r,i)))},r):("number"==typeof t&&(r=t),(0,tC.operate)(function(t,i){var n,a,s,o,l,u,c,h;return n=r,a=[],s=0,o=0,l=!1,u=function(){!l||a.length||s||i.complete()},c=function(e){return s<n?h(e):a.push(e)},h=function(t){s++;var r=!1;tk(e(t,o++)).subscribe((0,tq.createOperatorSubscriber)(i,function(e){i.next(e)},function(){r=!0},void 0,function(){if(r)try{for(s--;a.length&&s<n;)!function(){var e=a.shift();h(e)}();u()}catch(e){i.error(e)}}))},t.subscribe((0,tq.createOperatorSubscriber)(i,c,function(){l=!0,u()})),function(){}}))}var tB=e.i(931108);function tU(e){var t;return(t=e[e.length-1])&&(0,tm.isFunction)(t.schedule)?e.pop():void 0}var tz=e.i(454550);function tQ(e,t){return void 0===t&&(t=0),(0,tC.operate)(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}function tH(e,t){if(!e)throw Error("Iterable cannot be null");return new tn.Observable(function(r){(0,tV.executeSchedule)(r,t,function(){var i=e[Symbol.asyncIterator]();(0,tV.executeSchedule)(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function tK(e,t){return t?function(e,t){if(null!=e){if(tb(e))return tk(e).pipe(tQ(t),(0,tz.observeOn)(t));if(tp(e))return new tn.Observable(function(r){var i=0;return t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})});if(tg(e))return tk(e).pipe(tQ(t),(0,tz.observeOn)(t));if(tv(e))return tH(e,t);if(tS(e))return new tn.Observable(function(r){var i;return(0,tV.executeSchedule)(r,t,function(){i=e[tw](),(0,tV.executeSchedule)(r,t,function(){var e,t,n;try{t=(e=i.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return(0,tm.isFunction)(null==i?void 0:i.return)&&i.return()}});if(tO(e))return tH(tE(e),t)}throw t_(e)}(e,t):tk(e)}function tX(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tW(tB.identity,1)(tK(e,tU(e)))}var tY=e.i(870010);function tG(e,t){return(0,tC.operate)(function(r,i){var n=0;r.subscribe((0,tq.createOperatorSubscriber)(i,function(r){return e.call(t,r,n++)&&i.next(r)}))})}var tJ=(0,ts.createErrorClass)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function tZ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tU(e);return tK(e,r)}(i=n||(n={})).NEXT="N",i.ERROR="E",i.COMPLETE="C";var t0=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,i,n,a=e.kind,s=e.value,o=e.error;if("string"!=typeof a)throw TypeError('Invalid notification, missing "kind"');"N"===a?null==(r=t.next)||r.call(t,s):"E"===a?null==(i=t.error)||i.call(t,o):null==(n=t.complete)||n.call(t)}(this,e)},e.prototype.do=function(e,t,r){var i=this.kind,n=this.value,a=this.error;return"N"===i?null==e?void 0:e(n):"E"===i?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,tm.isFunction)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,i="N"===e?tZ(t):"E"===e?tL(function(){return r}):"C"===e?tY.EMPTY:0;if(!i)throw TypeError("Unexpected notification kind "+e);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function t1(e,t,r){var i=(0,tm.isFunction)(e)||t||r?{next:e,error:t,complete:r}:e;return i?(0,tC.operate)(function(e,t){null==(r=i.subscribe)||r.call(i);var r,n=!0;e.subscribe((0,tq.createOperatorSubscriber)(t,function(e){var r;null==(r=i.next)||r.call(i,e),t.next(e)},function(){var e;n=!1,null==(e=i.complete)||e.call(i),t.complete()},function(e){var r;n=!1,null==(r=i.error)||r.call(i,e),t.error(e)},function(){var e,t;n&&(null==(e=i.unsubscribe)||e.call(i)),null==(t=i.finalize)||t.call(i)}))}):tB.identity}
128var t4=e.i(51716),t2=e.i(207838);let t3=Object.assign(function(e){return JSON.stringify(e,t5)},{reset(){r=new t4.AutoCleanedStrongCache(e8.cacheSizes.canonicalStringify||1e3)}});function t5(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let i=Object.keys(t);if(i.every(t9))return t;let n=JSON.stringify(i),a=r.get(n);if(!a){i.sort();let e=JSON.stringify(i);a=r.get(e)||i,r.set(n,a),r.set(e,a)}let s=Object.create(e);return a.forEach(e=>{s[e]=t[e]}),s}}return t}function t9(e,t,r){return 0===t||r[t-1]<=e}te.__DEV__&&(0,t2.registerGlobalCache)("canonicalStringify",()=>r.size),t3.reset();var t8=e.i(160363),t7=e.i(719400);let t6=new WeakSet;var re=e.i(240957);function rt(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function rr(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}var ri=e.i(995699);function rn(e){return e.alias?e.alias.value:e.name.value}let ra=new eM;function rs(e,t,r){return ra.withValue(!0,()=>{let i=function e(t,r,i,n,a){let{knownChanged:s}=i,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,i,n,te.__DEV__?`${a||""}[${l}]`:void 0);s.has(t)&&s.add(o),o[l]=t}return s.has(o)?o:t}for(let l of r.selections){let r;if(n&&s.add(o),l.kind===tF.Kind.FIELD){let u=rn(l),c=l.selectionSet;if(void 0===(r=o[u]||t[u]))continue;if(c&&null!==r){let o=e(t[u],c,i,n,te.__DEV__?`${a||""}.${u}`:void 0);s.has(o)&&(r=o)}te.__DEV__||(o[u]=r),te.__DEV__&&(n&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(o,u)?.value?Object.defineProperty(o,u,function(e,t,r,i,n){let a=()=>(ra.getValue()||(te.__DEV__&&ep.invariant.warn(40,i?`${n} '${i}'`:`anonymous ${n}`,`${r}.${e}`.replace(/^\./,"")),a=()=>t),t);return{get:()=>a(),set(e){a=()=>e},enumerable:!0,configurable:!0}}(u,r,a||"",i.operationName,i.operationType)):(delete o[u],o[u]=r))}if(l.kind===tF.Kind.INLINE_FRAGMENT&&(!l.typeCondition||i.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,i,n,a)),l.kind===tF.Kind.FRAGMENT_SPREAD){let n=l.name.value,s=i.fragmentMap[n]||(i.fragmentMap[n]=i.cache.lookupFragment(n));(0,ep.invariant)(s,39,n);let o=function(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(te.__DEV__&&r&&(r.value.kind===tF.Kind.VARIABLE?te.__DEV__&&ep.invariant.warn(44):r.value.kind!==tF.Kind.STRING?te.__DEV__&&ep.invariant.warn(45):"migrate"!==r.value.value&&te.__DEV__&&ep.invariant.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}(l);"mask"!==o&&(r=e(t,s.selectionSet,i,"migrate"===o,a))}s.has(r)&&s.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&s.add(o),s.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,ri.maybeDeepFreeze)(i),i})}var ro=e.i(60013);function rl(e){return 7===e||8===e}var ru=e.i(674561),rc=e.i(110025);function rh(e,t=()=>void 0){return r=>new tn.Observable(i=>{let n=t();return r.subscribe({next(t){let r;try{r=e(t,n)}catch(e){i.error(e)}void 0!==r&&i.next(r)},error(e){i.error(e)},complete(){i.complete()}})})}function rd(e,t,r,i){if(r.kind===tF.Kind.INT||r.kind===tF.Kind.FLOAT)e[t.value]=Number(r.value);else if(r.kind===tF.Kind.BOOLEAN||r.kind===tF.Kind.STRING)e[t.value]=r.value;else if(r.kind===tF.Kind.OBJECT){let n={};r.fields.map(e=>rd(n,e.name,e.value,i)),e[t.value]=n}else if(r.kind===tF.Kind.VARIABLE){let n=(i||{})[r.name.value];e[t.value]=n}else if(r.kind===tF.Kind.LIST)e[t.value]=r.values.map(e=>{let r={};return rd(r,t,e,i),r[t.value]});else if(r.kind===tF.Kind.ENUM)e[t.value]=r.value;else if(r.kind===tF.Kind.NULL)e[t.value]=null;else throw(0,ep.newInvariantError)(19,t.value,r.kind)}function rf(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&rd(t,e.variable.name,e.defaultValue)}),t}var rp=e.i(560653);function rm(e){return!!e.errors?.length}var rg=e.i(603180),ry=e.i(184771);function rb(e){(0,ep.invariant)("Document"===e.kind,6),(0,ep.invariant)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,ep.invariant)("FragmentDefinition"===t.kind,8),t}let rv=Array.isArray;function r_(e){return Array.isArray(e)&&e.length>0}function rw(e){let t=new Map;return function(r=e){let i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function rS(e){let t={data:e.data};return e.error&&(t.error=e.error),t}var rE=e.i(225978),rO=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,ti.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()}
128,enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(tc);function rP(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let i=t&&t[r];return(0,ep.invariant)(i,9,r),i||null}default:return null}}function rk(e){let t;for(let r of((0,e9.checkDocument)(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,ep.newInvariantError)(12)}function rR(e){return"Field"===e.kind}function rx({directives:e},t){var r;let i;return!e||!e.length||(i=[],(r=e)&&r.length&&r.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let t=e.arguments,r=e.name.value;(0,ep.invariant)(t&&1===t.length,16,r);let n=t[0];(0,ep.invariant)(n.name&&"if"===n.name.value,17,r);let a=n.value;(0,ep.invariant)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,r),i.push({directive:e,ifArgument:n})}),i).every(({directive:e,ifArgument:r})=>{let i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],(0,ep.invariant)(void 0!==i,15,e.name.value)):i=r.value.value,"skip"===e.name.value?!i:i})}function rC(e,{data:t,...r},{data:i,...n},a){return(0,re.equal)(r,n)&&function e(t,r,i,n){if(r===i)return!0;let a=new Set;return t.selections.every(t=>{if(a.has(t)||(a.add(t),!rx(t,n.variables)||rN(t)))return!0;if(rR(t)){let a=rn(t),s=r&&r[a],o=i&&i[a],l=t.selectionSet;if(!l)return(0,re.equal)(s,o);let u=Array.isArray(s),c=Array.isArray(o);if(u!==c)return!1;if(u&&c){let t=s.length;if(o.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,s[r],o[r],n))return!1;return!0}return e(l,s,o,n)}{let a=rP(t,n.fragmentMap);if(a)return!!rN(a)||e(a.selectionSet,r,i,n)}})}(rk(e).selectionSet,t,i,{fragmentMap:rt(rr(e)),variables:a})}function rN(e){return!!e.directives&&e.directives.some(rT)}function rT(e){return"nonreactive"===e.name.value}function rj(e){let t=(0,ro.getOperationDefinition)(e);return(0,ep.invariant)(t&&"query"===t.operation,13),t}var rD=e.i(182497);let{assign:rM,hasOwnProperty:rA}=Object,rI={loading:!0,networkStatus:rE.NetworkStatus.loading,data:void 0,dataState:"empty",partial:!0},rF={loading:!1,networkStatus:rE.NetworkStatus.ready,data:void 0,dataState:"empty",partial:!0};class rL{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:n=i,initialFetchPolicy:a="standby"===n?i:n}=t;t[rc.variablesUnknownSymbol]&&((0,ep.invariant)("standby"===n,80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:a,fetchPolicy:n,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const s=(0,ro.getOperationDefinition)(this.query);this.queryName=s&&s.name&&s.name.value}initializeObservablesQueue(){this.subject=new rO({query:this.query,variables:this.variables,result:rI,meta:{}});let e=this.subject.pipe(t1({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),rh(({query:e,variables:t,result:r,meta:i},n)=>{let{shouldEmit:a}=i;if(r===rI&&(n.previous=void 0,n.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===a)return;if(1===a)return l();let{previous:s,previousVariables:o}=n;if(s){let i=this.queryManager.getDocumentInfo(e),n=this.queryManager.dataMasking,a=n?i.nonReactiveQuery:e;if((n||i.hasNonreactiveDirective?rC(a,s,r,t):(0,re.equal)(s,r))&&(0,re.equal)(o,t))return}if(!(3===a&&(!this.options.notifyOnNetworkStatusChange||(0,re.equal)(s,r))))return l();function l(){return n.previous=r,n.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new tc,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="
128cache-first");let r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?rE.NetworkStatus.ready:rE.NetworkStatus.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:rE.NetworkStatus.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:rE.NetworkStatus.loading};case"standby":return rF;default:return rI}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,n=!rq({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||n)&&this.unsubscribeFromCache?.(),i||!n)return;let a={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===e)return;let{result:i}=this.subject.getValue();(e.complete||!i.error&&i!==rI&&i!==rF)&&((0,re.equal)(i.data,e.result)||this.scheduleNotify())}},s=this.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===rE.NetworkStatus.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===rI&&(t=this.getInitialResult()),(0,re.equal)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",te.__DEV__&&e&&rA.call(e,"variables")){let t=rj(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!te.__DEV__||ep.invariant.warn(81,e,t.name?.value||t)}return e&&!(0,re.equal)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:rE.NetworkStatus.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:n}){(0,ep.invariant)("cache-only"!==this.options.fetchPolicy,82,(0,rp.getOperationName)(this.query,"(anonymous)"));let a={...(0,tt.compact)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let s=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,ep.invariant)(n,83);let{finalize:l,pushNotification:u}=this.pushOperation(rE.NetworkStatus.fetchMore);u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:c,operator:h}=r$(),{observable:d}=this.queryManager.fetchObservableWithInfo(a,{networkStatus:rE.NetworkStatus.fetchMore,exposeExtensions:!0}),f=d.pipe(h,tG(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{s=!1;let t=e.value,r=t[rc.extensionsSymbol];if(rl(e.value.networkStatus)&&l(),o){let e=this.getCacheDiff();this.cache.batch({update:e=>{n?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>n(e,{fetchMoreResult:t.data,variables:a.variables})):e.writeQuery({query:a.query,variables:a.variables,data:t.data,extensions:r})},onWatchUpdated:(r,i)=>{if(r.watcher===this&&!(0,re.equal)(i.result,e.result)){s=!0;let e=this.getCurrentResult();rl(t.networkStatus)||u({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===rE.NetworkStatus.error?rE.NetworkStatus.ready:t.networkStatus,loading:!1,data:i.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{let e=this.getCurrentResult(),r=n(e.data,{fetchMoreResult:t.data,variables:a.variables});u({kind:"N",value:{...e,networkStatus:rE.NetworkStatus.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,rD.preventUnhandledRejection)(c.then(e=>rS(this.maskResult(e))).finally(()=>
128{if(f.unsubscribe(),l(),o&&!s){let e=this.getCurrentResult();"streaming"===e.dataState?u({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:rE.NetworkStatus.ready}}):u({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:i}=e,{error:n}=t;n?i?i(n):ep.invariant.error(84,n):r&&this.updateQuery((e,i)=>r(e,{subscriptionData:t,...i}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,tt.compact)(this.options,e||{});rM(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,re.equal)(this.variables,e))?rS(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:rE.NetworkStatus.setVariables}):rS(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),n=e(r,{variables:this.variables,complete:!!i,previousData:r});n&&(this.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,i){let n=this.options.fetchPolicy;e.context??={};let a=!1,s=e=>new tn.Observable(r=>{try{return e.subscribe({next(e){a=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{a||(h.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:n}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{a=!0},fetchQueryOperator:s,observableQuery:this}),{query:u,variables:c}=this,h={abort:()=>{f.unsubscribe()},query:u,variables:c};this.activeOperations.add(h);let d=t==rE.NetworkStatus.refetch||t==rE.NetworkStatus.setVariables,f=(o=o.pipe(i,tN())).pipe(t1({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?h.override=t:delete h.override},finalize:()=>this.activeOperations.delete(h)})).subscribe({next:e=>{let t={};d&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(d=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:f,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,i=()=>{let{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(i()){te.__DEV__&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(te.__DEV__&&ep.invariant.warn(85,(0,rp.getOperationName)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!rl(this.networkStatus)||this.options.skipPollAttempt?.()?a():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:rE.NetworkStatus.poll}).then(a,a))},a=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};a()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);let i=r===rE.NetworkStatus.refetch||r===rE.NetworkStatus.poll,n=this.variables,a=this.options.fetchPolicy,s=(0,tt.compact)(this.options,e||{});this.variablesUnknown&&="standby"===s.fetchPolicy;
128let o=i?s:rM(this.options,s),l=this.transformDocument(o.query);this.lastQuery=l,e&&"variables"in e&&(o.variables=this.getVariablesWithDefaults(e.variables)),!i&&(this.updatePolling(),e&&e.variables&&!(0,re.equal)(e.variables,n)&&"standby"!==o.fetchPolicy&&(o.fetchPolicy===a||"function"==typeof o.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",o),void 0===r&&(r=rE.NetworkStatus.setVariables)));let u=this.networkStatus;r||(r=rE.NetworkStatus.loading,u!==rE.NetworkStatus.loading&&e?.variables&&!(0,re.equal)(e.variables,n)&&(r=rE.NetworkStatus.setVariables),"standby"===o.fetchPolicy&&(r=rE.NetworkStatus.ready)),"standby"===o.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:c,operator:h}=r$("standby"===o.fetchPolicy?{data:void 0}:void 0),{subscription:d,observable:f,fromLink:p}=this.fetch(o,r,l,h);i||!p&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=d);let m=Object.assign((0,rD.preventUnhandledRejection)(c.then(e=>rS(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=f.subscribe({}),t=()=>e.unsubscribe();return c.then(t,t),m}});return m}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,re.equal)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:rE.NetworkStatus.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:i}=this,n=()=>{this.activeOperations.delete(a)},a={override:e,abort:()=>{t=!0,n()},query:r,variables:i};return this.activeOperations.add(a),{finalize:n,pushNotification:(e,n)=>{t||this.input.next({...e,query:r,variables:i,meta:{...n}})}}}calculateNetworkStatus(e){if(e===rE.NetworkStatus.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>rq(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?rF:rI,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=rh(e=>{let t,{query:r,variables:i,meta:n}=e;if("setResult"===e.source)return{query:r,variables:i,result:e.value,meta:n};if("C"===e.kind||!rq(e,this))return;let a=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===rE.NetworkStatus.ready&&t.partial&&(!this.options.returnPartialData||a.result.networkStatus===rE.NetworkStatus.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...rq(a,e)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:rE.NetworkStatus.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(n.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=rq(a,e)?a.result:this.getInitialResult(n.fetchPolicy),{resetError:i}=e.value,s=i?void 0:r.error,o=s?rE.NetworkStatus.error:rE.NetworkStatus.ready;t={...r,error:s,networkStatus:o}}return(0,ep.invariant)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!rl(t.networkStatus),{query:r,variables:i,result:t=this.maskResult(t),meta:n}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function rq(e,t){return!!(e&&t&&e.query===t.query&&(0,re.equal)(e.variables,t.variables))}function r$(e){let t=e,r,i;return{promise:new Promise((e,t)=>
128{r=e,i=t}),operator:t1({next(e){if("E"===e.kind)return i(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";i("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}let rV={},rW=new WeakMap;function rB(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return rW.set(e,(rW.get(e)+1)%1e15),r.apply(this,arguments)})}let rU=new WeakMap;class rz{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){const r=this.cache=e.cache,i=(rU.get(e)||0)+1;rU.set(e,i),this.id=i+"",this.observableQuery=t,this.queryManager=e,rW.has(r)||(rW.set(r,0),rB(r,"evict"),rB(r,"modify"),rB(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===rW.get(this.cache)&&(0,re.equal)(t,r.variables)&&(0,re.equal)(e.data,r.result.data)&&e.extensions?.[rc.streamInfoSymbol]===r.result.extensions?.[rc.streamInfoSymbol])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(t)?(this.incremental||=i.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){let a={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let s=0===n,o=s?void 0:this.cache.diff(a),l=this.maybeHandleIncrementalResult(o?.result,e,t);return s||(rQ(l,i)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
128,update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===n,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:rW.get(this.cache)};else if(o&&o.complete){l={...l,data:o.result};return}let i=e.diff(a);i.complete&&(l={...l,data:i.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let i=[],n=0===t.cacheWriteBehavior,a=this.maybeHandleIncrementalResult(n?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(a={...a,errors:[]}),rm(a)&&"none"===t.errorPolicy)return Promise.resolve(a);let s=()=>({...a,dataState:this.hasNext?"streaming":"complete"});if(!n&&rQ(a,t.errorPolicy)){i.push({result:a.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:a.extensions});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let n=e[r],{query:a,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=n(l,{mutationResult:s(),queryName:a&&(0,rp.getOperationName)(a)||void 0,queryVariables:o});e&&i.push({result:e,dataId:"ROOT_QUERY",query:a,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(s())),i.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];
128if(this.queryManager.refetchQueries({updateCache:e=>{n||i.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!n){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(a={...a,data:r.result})}this.hasNext||r(e,a,{context:t.context,variables:t.variables})}n||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>a)}return Promise.resolve(a)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:rV}):e;return r!==rV&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){ep.invariant.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){0!==n&&(rQ(e,i)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function rQ(e,t="none"){let r=!rm(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class rH{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new e6(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,ep.newInvariantError)(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:i,refetchQueries:n=[],awaitRefetchQueries:a=!1,update:s,onQueryUpdated:o,fetchPolicy:l,errorPolicy:u,keepRootFields:c,context:h}){let d=new rz(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:f}=this.getDocumentInfo(e);t=this.getVariables(e,t),f&&(te.__DEV__&&(0,ep.invariant)(this.localState,88,(0,rp.getOperationName)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:h}));let p=this.mutationStore&&(this.mutationStore[d.id]={mutation:e,variables:t,loading:!0,error:null}),m=r&&d.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:h,updateQueries:i,update:s,keepRootFields:c});return this.broadcastQueries(),new Promise((f,g)=>{let y={};return this.getObservableFromLink(e,{...h,optimisticResponse:m?r:void 0},t,l,{},!1).observable.pipe(rK(),tW(r=>{let f={...r};return tK(d.markMutationResult(f,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:h,update:s,updateQueries:i,awaitRefetchQueries:a,refetchQueries:n,removeOptimistic:m?d.id:void 0,onQueryUpdated:o,keepRootFields:c}))})).pipe((0,ev.map)(e=>{if(rm(e)&&"none"===u)throw new t8.CombinedGraphQLErrors(rX(e));return p&&(p.loading=!1,p.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!d.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:y})};rm(t)&&(r.error=new t8.CombinedGraphQLErrors(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),f(r)}},error:e=>(p&&(p.loading=!1,p.error=e),m&&this.cache.removeOptimistic(d.id),this.broadcastQueries(),"ignore"===u)?f({data:void 0}):"all"===u?f({data:void 0,error:e}):void g(e)})})}fetchQuery(e,t){return(0,e9.checkDocument)(e.query,eb.OperationTypeNode.QUERY),(async()=>{var r,i,n;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(rh(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return rS(e.value)}})),n="object"==typeof(i={defaultValue:{data:void 0}}),new Promise(function(e,t){var a,s=!1;r.subscribe({next:function(e){a=e,s=!0},error:t,complete:function(){s?e(a):n?e(i.defaultValue):t(new tJ)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new t4.AutoCleanedWeakCache(e8.cacheSizes["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){var r;let i,n=(0,ro.getOperationDefinition)(e),a={hasClientExports:ew(["client","export"],e,!0),hasForcedResolvers:(i=!1,(0,e_.visit)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(i=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return e_.BREAK}}}),i),hasNonreactiveDirective:ew(["nonreactive"],e),hasIncrementalDirective:ew(["defer"],e),nonReactiveQuery:(r=e,(0,e_.visit)(r,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:tF.Kind.DIRECTIVE,name:{kind:tF.Kind.NAME,value:"nonreactive"}}
128]}}})),clientQuery:ew(["client"],e)?e:null,serverQuery:function(e,t){var r,i;let n,a;(0,e9.checkDocument)(t);let s=rw(""),o=rw(""),l=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!rv(r)){if(r.kind===tF.Kind.OPERATION_DEFINITION)return s(r.name&&r.name.value);if(r.kind===tF.Kind.FRAGMENT_DEFINITION)return o(r.name.value)}return ep.invariant.error(14),null},u=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===tF.Kind.OPERATION_DEFINITION&&++u;let c=(r=e,n=new Map,a=new Map,r.forEach(e=>{e&&(e.name?n.set(e.name,e):e.test&&a.set(e.test,e))}),e=>{let t=n.get(e.name.value);return!t&&a.size&&a.forEach((r,i)=>{i(e)&&(t=r)}),t}),h=e=>r_(e)&&e.map(c).some(e=>e&&e.remove),d=new Map,f=!1,p={enter(e){if(h(e.directives))return f=!0,null}},m=(0,e_.visit)(t,{Field:p,InlineFragment:p,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){let a=l(n);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(h(e.directives))return f=!0,null;let a=l(n);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){d.set(JSON.stringify(i),e)},leave:(e,t,r,i)=>e===d.get(JSON.stringify(i))?e:u>0&&e.selectionSet.selections.every(e=>e.kind===tF.Kind.FIELD&&"__typename"===e.name.value)?(o(e.name.value).removed=!0,f=!0,null):void 0},Directive:{leave(e){if(c(e))return f=!0,null}}});if(!f)return t;let g=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{g(o(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),y=new Set;m.definitions.forEach(e=>{e.kind===tF.Kind.OPERATION_DEFINITION?g(s(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{y.add(e)}):e.kind!==tF.Kind.FRAGMENT_DEFINITION||0!==u||o(e.name.value).removed||y.add(e.name.value)}),y.forEach(e=>{g(o(e)).fragmentSpreads.forEach(e=>{y.add(e)})});let b={enter(e){let t;if(t=e.name.value,!y.has(t)||o(t).removed)return null}};return i=(0,e_.visit)(m,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=g(s(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===tF.Kind.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,ro.getOperationDefinition)(i)||rb(i),rt(rr(i)))?i:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:rf(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,a)}let i=t.get(e);if(i.violation)throw i.violation;return i}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,i=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(i)}}watchQuery(e){(0,e9.checkDocument)(e.query,eb.OperationTypeNode.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new rL({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,ep.newInvariantError)(89)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,i=new Map,n=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),i.set(e,!1);else if((0,rg.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,ru.print)(this.transform(e));r.set(t,(0,rp.getOperationName)(e)),i.set(t,!1)}else(0,rg.isNonNullObject)(e)&&e.query&&n.add(e)}),this.obsQueries.forEach(r=>{let n=(0,ru.print)(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:a,options:{fetchPolicy:s}}=r;("active"!==e||"standby"!==s)&&("active"===e||a&&i.has(a)||n&&i.has(n))&&(t.add(r),a&&i.set(a,!0),n&&i.set(n,!0))}
128),n.size&&n.forEach(e=>{let r=new rL({queryManager:this,options:{...(0,tM.mergeOptions)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),te.__DEV__&&i.size&&i.forEach((e,t)=>{if(!e){let e=r.get(t);e?te.__DEV__&&ep.invariant.warn(90,e):te.__DEV__&&ep.invariant.warn(91)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(e||"standby"!==i)&&"cache-only"!==i&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:i}=e,{fetchPolicy:n="cache-first",errorPolicy:a="none",context:s={},extensions:o={}}=e;return(0,e9.checkDocument)(r,eb.OperationTypeNode.SUBSCRIPTION),r=this.transform(r),i=this.getVariables(r,i),te.__DEV__&&(0,ep.invariant)(!this.getDocumentInfo(r).hasClientExports||this.localState,92,(0,rp.getOperationName)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?tK(this.localState.getExportedVariables({client:this.client,document:r,variables:i,context:s})):tZ(i)).pipe(tW(e=>{let{observable:i,restart:l}=this.getObservableFromLink(r,s,e,n,o),u=new rz(this);return t=l,i.pipe((0,ev.map)(t=>{u.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:a,cacheWriteBehavior:2*("no-cache"!==n)});let i={data:t.data??void 0};return rm(t)?i.error=new t8.CombinedGraphQLErrors(t):(0,t7.graphQLResultHasProtocolErrors)(t)&&(i.error=t.extensions[t7.PROTOCOL_ERRORS_SYMBOL],delete t.extensions[t7.PROTOCOL_ERRORS_SYMBOL]),t.extensions&&Object.keys(t.extensions).length&&(i.extensions=t.extensions),i.error&&"none"===a&&(i.data=void 0),"ignore"===a&&delete i.error,i}),t$(e=>"ignore"===a?tZ({data:void 0}):tZ({data:void 0,error:e})),tG(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new ek.Trie(!1);getObservableFromLink(e,t,r,i,n,a=t?.queryDeduplication??this.queryDeduplication){let s={},{serverQuery:o,clientQuery:l,operationType:u,hasIncrementalDirective:c}=this.getDocumentInfo(e),h=(0,rp.getOperationName)(e),d={client:this.client};if(o){let{inFlightLinkObservables:e,link:i}=this;try{let l=this.incrementalHandler.prepareRequest({query:o,variables:r,context:{...this.defaultContext,...t,queryDeduplication:a},extensions:n});function f(e){return new tn.Observable(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let i=r();return s.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),s.restart=void 0}})}if(t=l.context,a){var p;let t=(0,ru.print)(o),n=t3(r);(s=e.lookup(t,n)).observable||(s.observable=eO(i,l,d).pipe(f,(p=()=>{e.peek(t,n)===s&&e.remove(t,n)},(0,tC.operate)(function(e,t){try{e.subscribe(t)}finally{t.add(p)}})),u===eb.OperationTypeNode.SUBSCRIPTION?tN():tj({refCount:!0})))}else s.observable=eO(i,l,d).pipe(f)}catch(e){s.observable=tL(()=>e)}}else s.observable=tZ({data:{}});if(l){let{operation:n}=(0,ro.getOperationDefinition)(e);te.__DEV__&&(0,ep.invariant)(this.localState,93,n[0].toUpperCase()+n.slice(1),h??"(anonymous)"),(0,ep.invariant)(!c,94,n[0].toUpperCase()+n.slice(1),h??"(anonymous)"),s.observable=s.observable.pipe(tW(e=>tK(this.localState.execute({client:this.client,document:l,remoteResult:e,context:t,variables:r,fetchPolicy:i}))))}return{restart:()=>s.restart?.(),observable:s.observable.pipe(t$(e=>{var t;throw t=e=(0,t7.toErrorLike)(e),t6.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:n}){let a=t.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,o=this.cache.transformForLink(e.query);return this.getObservableFromLink(o,e.context,e.variables,e.fetchPolicy).observable.pipe((0,ev.map)(a=>{let l=t.markQueryResult(a,{...e,document:o,cacheWriteBehavior:r}),u=rm(l);if(u&&"none"===s)throw t.resetLastWrite(),i?.resetNotifications(),new t8.CombinedGraphQLErrors(rX(l));let c={data:l.data,...t.hasNext?{loading:!0,networkStatus:rE.NetworkStatus.streaming,dataState:"streaming",partial:!0}:{dataState:l.data?"complete":"empty",loading:!1,networkStatus:rE.NetworkStatus.ready,partial:!l.data}};return n&&"extensions"in l&&(c[rc.extensionsSymbol]=l.extensions),u&&("none"===s&&(c.data=void 0,c.dataState="empty"),"ignore"!==s&&(c.error=new t8.CombinedGraphQLErrors(rX(l)),"streaming"!==c.dataState&&(c.networkStatus=rE.NetworkStatus.error))),c}),t$(e=>{if(a>=t.lastRequestId&&"none"===s)throw t.resetLastWrite(),i?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:rE.NetworkStatus.ready,partial:!0};return"ignore"!==s&&(r.error=e,r.networkStatus=rE.NetworkStatus.error),tZ(r)}))}fetchObservableWithInfo(e,{networkStatus:t=rE.NetworkStatus.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:n=()=>{},observableQuery:a,exposeExtensions:s}){let o,l,u=this.getVariables(r,e.variables),{fetchPolicy:c="cache-first",errorPolicy:h="none",returnPartialData:d=!1,notifyOnNetworkStatusChange:f=!0,context:p={}}=e;this.prioritizeCacheValues&&("network-only"===c||"cache-and-network"===c)&&(c="c
128ache-first");let m=Object.assign({},e,{query:r,variables:u,fetchPolicy:c,errorPolicy:h,returnPartialData:d,notifyOnNetworkStatusChange:f,context:p}),g=new rz(this,a),y=r=>{m.variables=r;let o="no-cache"===c?0:t===rE.NetworkStatus.refetch&&"merge"!==m.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(m,{queryInfo:g,cacheWriteBehavior:o,onCacheHit:n,observableQuery:a,exposeExtensions:s});return l.observable=l.observable.pipe(i),"standby"!==m.fetchPolicy&&a?.applyNextFetchPolicy("after-fetch",e),l},b=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{v.next({kind:"E",error:e,source:"network"})});let v=new tc;if(this.getDocumentInfo(m.query).hasClientExports)te.__DEV__&&(0,ep.invariant)(this.localState,95,(0,rp.getOperationName)(m.query,"(anonymous)")),o=tK(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe(tW(e=>y(e).observable)),l=!0;else{let e=y(m.variables);l=e.fromLink,o=e.observable}return{observable:new tn.Observable(e=>{e.add(b),o.subscribe(e),v.subscribe(e)}).pipe(tN()),fromLink:l}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=r?(0,ry.makeUniqueId)("refetchQueries"):void 0,onQueryUpdated:n}){let a=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();a.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let s=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(e,r,i){let o=e.watcher;if(o instanceof rL&&!t.has(o)){if(t.add(o),n){a.delete(o);let e=n(o,r,i);return!0===e&&(e=o.refetch().retain()),!1!==e&&s.set(o,e),e}null!==n&&"cache-only"!==o.options.fetchPolicy&&a.set(o,{oq:o,lastDiff:i,diff:r})}}})}return a.size&&a.forEach(({oq:e,lastDiff:t,diff:r})=>{let i;n&&(r||(r=e.getCacheDiff()),i=n(e,r,t)),n&&!0!==i||(i=e.refetch().retain()),!1!==i&&s.set(e,i)}),i&&this.cache.removeOptimistic(i),s}noCacheWarningsByCause=new WeakSet;maskOperation(e){var t,r;let i,{document:n,data:a}=e;if(te.__DEV__){let t,{fetchPolicy:i,cause:a={}}=e,s=(0,ro.getOperationDefinition)(n)?.operation;this.dataMasking&&"no-cache"===i&&(r=n,t=!0,(0,e_.visit)(r,{FragmentSpread:e=>{if(!(t=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return e_.BREAK}}),!t)&&!this.noCacheWarningsByCause.has(a)&&(this.noCacheWarningsByCause.add(a),te.__DEV__&&ep.invariant.warn(96,(0,rp.getOperationName)(n,`Unnamed ${s??"operation"}`)))}return this.dataMasking?(t=this.cache,i=(0,ro.getOperationDefinition)(n),((0,ep.invariant)(i,43),null==a)?a:rs(a,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:rt(rr(n)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):a}maskFragment(e){var t,r;let i,n,{data:a,fragment:s,fragmentName:o}=e;return this.dataMasking?(t=this.cache,r=o,i=s.definitions.filter(e=>e.kind===tF.Kind.FRAGMENT_DEFINITION),void 0===r&&((0,ep.invariant)(1===i.length,41,i.length),r=i[0].name.value),n=i.find(e=>e.name.value===r),((0,ep.invariant)(!!n,42,r),null==a||(0,re.equal)(a,{}))?a:rs(a,n.selectionSet,{operationType:"fragment",operationName:n.name.value,fragmentMap:rt(rr(s)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):a}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:i,returnPartialData:n,context:a},{cacheWriteBehavior:s,onCacheHit:o,queryInfo:l,observableQuery:u,exposeExtensions:c}){let h=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),d=(s,l)=>{var u;let c=s.result;te.__DEV__&&!n&&null!==c&&(u=s.missing,te.__DEV__&&u&&te.__DEV__&&ep.invariant.debug(86,u));let h=e=>(s.complete||n||(e=void 0),{data:e,dataState:s.complete?"complete":e?"partial":"empty",loading:!rl(l),networkStatus:l,partial:!s.complete}),d=e=>tZ({kind:"N",value:h(e),source:"cache"});return(s.complete||n)&&this.getDocumentInfo(e).hasForcedResolvers?(te.__DEV__&&(0,ep.invariant)(this.localState,97,(0,rp.getOperationName)(e,"(anonymous)")),o(),tK(this.localState.execute({client:this.client,document:e,remoteResult:c?{data:c}:void 0,context:a,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:h(e.data||void 0),source:"cache"})))):d("none"===i&&l===rE.NetworkStatus.refetch&&s.missing?void 0:c||void 0)},f=()=>this.getResultsFromLink({query:e,variables:t,context:a,fetchPolicy:r,errorPolicy:i}
128,{cacheWriteBehavior:s,queryInfo:l,observableQuery:u,exposeExtensions:c}).pipe(rK(),(0,tC.operate)(function(e,t){e.subscribe((0,tq.createOperatorSubscriber)(t,function(e){t.next(t0.createNext(e))},function(){t.next(t0.createComplete()),t.complete()},function(e){t.next(t0.createError(e)),t.complete()}))}),(0,ev.map)(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=h();if(e.complete)return{fromLink:!1,observable:d(e,rE.NetworkStatus.ready)};if(n)return{fromLink:!0,observable:tX(d(e,rE.NetworkStatus.loading),f())};return{fromLink:!0,observable:f()}}case"cache-and-network":{let e=h();if(e.complete||n)return{fromLink:!0,observable:tX(d(e,rE.NetworkStatus.loading),f())};return{fromLink:!0,observable:f()}}case"cache-only":return{fromLink:!1,observable:tX(d(h(),rE.NetworkStatus.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:f()};case"standby":return{fromLink:!1,observable:tY.EMPTY}}}}function rK(){let e=!1;return t1({next(){e=!0},complete(){(0,ep.invariant)(e,98)}})}function rX(e){if(e.extensions?.[rc.streamInfoSymbol]==null)return e;let{extensions:{[rc.streamInfoSymbol]:t,...r},...i}=e;return Object.keys(r).length>0&&(i.extensions=r),i}let rY=!1;class rG{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){te.__DEV__&&((0,ep.invariant)(e.cache,68),(0,ep.invariant)(e.link,69));const{cache:t,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:n=0,queryDeduplication:a=!0,defaultOptions:s,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:c,dataMasking:h,link:d,incrementalHandler:f=new eS,experiments:p=[]}=e;this.link=d,this.cache=t,this.queryDeduplication=a,this.defaultOptions=s||{},this.devtoolsConfig={...c,enabled:c?.enabled??te.__DEV__},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=tI.version,this.queryManager=new rH({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:a,ssrMode:i,dataMasking:!!h,clientOptions:e,incrementalHandler:f,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=i||n>0,n&&setTimeout(()=>{this.prioritizeCacheValues=!1},n),this.devtoolsConfig.enabled&&this.connectToDevTools(),p.forEach(t=>t.call(this,e))}connectToDevTools(){if("u"<typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!rY&&te.__DEV__&&(rY=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&te.__DEV__&&ep.invariant.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,tM.mergeOptions)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,tM.mergeOptions)(this.defaultOptions.query,e)),te.__DEV__&&((0,ep.invariant)("cache-and-network"!==e.fetchPolicy,70),(0,ep.invariant)("standby"!==e.fetchPolicy,71),(0,ep.invariant)(e.query,72),(0,ep.invariant)("Document"===e.query.kind,73),(0,ep.invariant)(!e.returnPartialData,74),(0,ep.invariant)(!e.pollInterval,75),(0,ep.invariant)(!e.notifyOnNetworkStatusChange,76)),this.queryManager.query(e)}mutate(e){let t=(0,tM.mergeOptions)((0,tt.compact)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return te.__DEV__&&((0,ep.invariant)(t.mutation,77),(0,ep.invariant)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,78)),(0,e9.checkDocument)(t.mutation,eb.OperationTypeNode.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe((0,ev.map)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return te.__DEV__?tD(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}
128readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return eO(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach((e,t)=>{r.push(t),i.push(e)});let n=Promise.all(i);return n.queries=r,n.results=i,n.catch(e=>{te.__DEV__&&ep.invariant.debug(79,e)}),n}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new e6(tA);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}te.__DEV__&&(rG.prototype.getMemoryInternals=tr);var rJ=e.i(176471);let rZ={kind:tF.Kind.FIELD,name:{kind:tF.Kind.NAME,value:"__typename"}},r0=Object.assign(function(e){return(0,e_.visit)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===tF.Kind.OPERATION_DEFINITION)return;let{selections:i}=e;if(!(!i||i.some(e=>e.kind===tF.Kind.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===tF.Kind.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...i,rZ]}}}})},{added:e=>e===rZ});function r1(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function r4(e,t){return e===t}var r2=e.i(688845),r3=new(e.i(676267)).AsyncScheduler(r2.AsyncAction);function r5(e,t){let r=t,i=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,ep.newInvariantError)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&((0,ep.invariant)(1===i.length,11,i.length),r=i[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class r9{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new ek.Trie(!0);watchFragment(e){let t,{fragment:r,fragmentName:i,from:n}=e,a=this.getFragmentDoc(r,i),s=(Array.isArray(n)?n:[n]).map(e=>{let t=null==e?e:this.toCacheId(e);if(te.__DEV__){let e=i||rb(r).name.value;void 0===t&&te.__DEV__&&ep.invariant.warn(113,e)}return t});if(!Array.isArray(n)){let t=this.watchSingleFragment(s[0],a,e);return null===n?t:tD(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function o(e){let r=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,re.equal)(t,r)||(t=r),t}if(0===s.length)return ie;let l=!1,u=s.map(t=>this.watchSingleFragment(t,a,e));
128return Object.assign((0===u.length?tY.EMPTY:new tn.Observable(e=>{let t,{length:r}=u,i=Array(r),n=new Map;u.forEach((e,t)=>{n.has(e)||n.set(e,new Set),n.get(e).add(t)});let a=n.size,s=n.size;n.forEach((r,n)=>{let o=!1,l=n.subscribe({next:a=>{r.forEach(e=>i[e]=a),!o&&(o=!0,s--),!s&&((t||=new Set(u.filter(e=>e.dirty))).delete(n),t.size||(e.next(i.slice()),t=void 0))},complete:()=>{--a||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe((0,ev.map)(o),t1({subscribe:()=>l=!0,unsubscribe:()=>l=!1}),tj({bufferSize:1,refCount:!0})),{getCurrentResult:()=>l&&t?t:o(u.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return r7;let{optimistic:i=!0,variables:n}=r,a=[t,t3({id:e,optimistic:i,variables:n})],s=this.fragmentWatches.lookupArray(a);if(!s.observable){var o,l;let c,h=!1;function u(e){let i=e.result;return c&&rC(t,{data:c.data},{data:i},r.variables)||(c={data:i,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}let d=new tn.Observable(r=>{h=!0;let s=this.watch({variables:n,returnPartialData:!0,id:e,query:t,optimistic:i,immediate:!0,callback:e=>{d.dirty=!0,this.onAfterBroadcast(()=>{r.next(u(e)),d.dirty=!1})}});return()=>{h=!1,s(),this.fragmentWatches.removeArray(a)}}).pipe((void 0===l&&(l=tB.identity),o=null!=o?o:r4,(0,tC.operate)(function(e,t){var r,i=!0;e.subscribe((0,tq.createOperatorSubscriber)(t,function(e){var n=l(e);(i||!o(r,n))&&(i=!1,r=n,t.next(e))}))})),tN({connector:()=>new tf(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=r3),new tn.Observable(function(t){var r=0;r<0&&(r=0);var i=0;return e.schedule(function(){t.closed||(t.next(i++),t.complete())},r)})}}));s.observable=Object.assign(d,{dirty:!1,getCurrentResult:()=>h&&c?c:u(this.diff({id:e,query:t,returnPartialData:!0,optimistic:i,variables:n}))})}return s.observable}getFragmentDoc=e5(r5,{max:e8.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:eP.WeakCache,makeCacheKey:function(...e){return e2.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...i}){let n=void 0!==i.from?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(t,r),dataId:n,result:e}))}updateQuery(e,t){return this.batch({update(r){let i=r.readQuery(e),n=t(i);return null==n?i:(r.writeQuery({...e,data:n}),n)}})}updateFragment(e,t){return this.batch({update(r){let i=r.readFragment(e),n=t(i);return null==n?i:(r.writeFragment({...e,data:n}),n)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}te.__DEV__&&(r9.prototype.getMemoryInternals=tr);let r8=Object.freeze({data:null,dataState:"complete",complete:!0}),r7=Object.assign(new tn.Observable(e=>{e.next(r8)}),{dirty:!1,getCurrentResult:()=>r8}),r6=Object.freeze({data:[],dataState:"complete",complete:!0}),ie=Object.assign(new tn.Observable(e=>{e.next(r6)}),{getCurrentResult:()=>r6}),{hasOwnProperty:it}=Object.prototype,ir=function(e,t,r){return this.merge(e[r],t[r])},ii=e=>isNaN(+e)?{}:[];class ia{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||ir}merge(e,t,r={}){let i=r.atPath;if(i?.length){let[n,...a]=i;void 0===e&&(e=ii(n));let s=e[n];void 0===s&&a.length&&(s=ii(a[0]));let o=this.merge(s,t,{...r,atPath:a});return s!==o&&((e=this.shallowCopyForMerge(e))[n]=o),e}return(Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,rg.isNonNullObject)(t)&&(0,rg.isNonNullObject)(e))?(Object.keys(t).forEach(r=>{if(it.call(e,r)){let i=e[r];if(t[r]!==i){let n=this.reconciler(e,t,r);n!==i&&((e=this.shallowCopyForMerge(e))[r]=n)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=rg.isNonNullObject;pastCopies=new Set;shallowCopyForMerge(e){return(0,rg.isNonNullObject)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function is(e){return{__ref:String(e)}}let{hasOwnProperty:io}=Object.prototype;function il({__typename:e,id:t,_id:r}
128,i){if("string"==typeof e&&(i&&(i.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let iu={dataIdFromObject:il,resultCaching:!0},ic=/^[_a-z][_0-9a-z]*/i;function ih(e){let t=e.match(ic);return t?t[0]:e}function id(e){return(0,rg.isNonNullObject)(e)&&!r1(e)&&!rv(e)}function ip(e,t){let r=rt(rr(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}}let im={},ig=()=>im,iy={};class ib{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),io.call(this.data,e)){let r=this.data[e];if(r&&io.call(r,t))return r[t]}return"__typename"===t&&io.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof iS?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),io.call(this.data,e))?this.data[e]:this instanceof iS?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;r1(e)&&(e=e.__ref),r1(t)&&(t=t.__ref);let i="string"==typeof e?this.lookup(r=e):e,n="string"==typeof t?this.lookup(r=t):t;if(!n)return;(0,ep.invariant)("string"==typeof r,99);let a=new ia({reconciler:iO}).merge(i,n);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){let e={};i||(e.__exists=1),Object.keys(n).forEach(t=>{if(!i||i[t]!==a[t]){e[t]=1;let r=ih(t);r===t||this.policies.hasKeyArgs(a.__typename,r)||(e[r]=1),void 0!==a[t]||this instanceof iS||delete a[t]}}),e.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let i=this.lookup(e);if(i){let n={},a=!1,s=!0,o={DELETE:im,INVALIDATE:iy,isReference:r1,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||is(e)}:t,{store:this})};
128if(Object.keys(i).forEach(l=>{let u=ih(l),c=i[l];if(void 0===c)return;let h="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(h){let t=h===ig?im:h((0,ri.maybeDeepFreeze)(c),{...o,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===iy)this.group.dirty(e,l);else if(t===im&&(t=void 0),t!==c&&(n[l]=t,a=!0,c=t,te.__DEV__)){let e=e=>{if(void 0===this.lookup(e.__ref))return te.__DEV__&&ep.invariant.warn(100,e),!0};if(r1(t))e(t);else if(Array.isArray(t)){let r,i=!1;for(let n of t){if(r1(n)){if(i=!0,e(n))break}else if("object"==typeof n&&n){let[e]=this.policies.identify(n);e&&(r=n)}if(i&&void 0!==r){te.__DEV__&&ep.invariant.warn(101,r);break}}}}}void 0!==c&&(s=!1)}),a)return this.merge(e,n),s&&(this instanceof iS?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let i=this.lookup(e);if(i){let n=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:n,fieldName:t,args:r}):t;return this.modify(e,a?{[a]:ig}:ig,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(io.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof iS&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{io.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&io.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof iS?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{io.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof iS;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!io.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let i=new Set([r]);i.forEach(e=>{r1(e)&&(t[e.__ref]=!0),(0,rg.isNonNullObject)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,rg.isNonNullObject)(r)&&i.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,ri.maybeDeepFreeze)(r1(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>r1(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return is(e);if(r1(e))return e;let[r]=this.policies.identify(e);if(r){let i=is(r);return t&&this.merge(r,e),i}};get supportsResultCaching(){return this.group.caching}}class iv{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?e4():null,this.keyMaker=new ek.Trie}depend(e,t){if(this.d){this.d(t+"#"+e);let r=ih(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function i_(e,t){iP(e)&&e.group.depend(t,"__exists")}class iw extends ib{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new iv(t)),r&&this.replace(r)}stump=new iE(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new ek.Trie;getStorage(){return this.storageTrie.lookupArray(arguments)}}ib.Root=iw;class iS extends ib{id;parent;replay;group;
128constructor(e,t,r,i){super(t.policies,i),this.id=e,this.parent=t,this.replay=r,this.group=i,r(this)}addLayer(e,t){return new iS(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],i=t.lookup(e);i?r?r!==i&&Object.keys(r).forEach(t=>{(0,re.equal)(r[t],i[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(i).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return io.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class iE extends iS{constructor(e){super("EntityStore.Stump",e,()=>{},new iv(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function iO(e,t,r){let i=e[r],n=t[r];return(0,re.equal)(i,n)?i:n}function iP(e){return!!(e&&e.supportsResultCaching)}function ik(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:i})=>rd(r,e,i,t)),r}return null}let iR=["connection","include","skip","client","rest","export","nonreactive","stream"],ix=t3,iC=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let i={};e.forEach(e=>{i[e]=t[e]});let n=ix(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){let e=ix(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===iR.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${ix(r[e])})`:i+=`@${e}`)}),i},{setStringify(e){let t=ix;return ix=e,t}});var iN=e.i(58480);let iT={};function ij(e){let t=JSON.stringify(e);return iT[t]||(iT[t]={})}function iD(e){let t=ij(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let i=(e,t)=>r.readField(t,e),n=r.keyObject=iA(e,e=>{let n=iF(r.storeObject,e,i);return void 0===n&&t!==r.storeObject&&io.call(t,e[0])&&(n=iF(t,e,iI)),(0,ep.invariant)(void 0!==n,102,e.join("."),t),n});return`${r.typename}:${JSON.stringify(n)}`})}function iM(e){let t=ij(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:n})=>{let a=JSON.stringify(iA(e,e=>{let n=e[0],a=n.charAt(0);if("@"===a){if(r&&r_(r.directives)){let t=n.slice(1),a=r.directives.find(e=>e.name.value===t),s=a&&ik(a,i);return s&&iF(s,e.slice(1))}return}if("$"===a){let t=n.slice(1);if(i&&io.call(i,t)){let r=e.slice(0);return r[0]=t,iF(i,r)}return}if(t)return iF(t,e)}));return(t||"{}"!==a)&&(n+=":"+a),n})}function iA(e,t){let r=new ia;return(function e(t){let r=ij(t);if(!r.paths){let i=r.paths=[],n=[];t.forEach((r,a)=>{rv(r)?(e(r).forEach(e=>i.push(n.concat(e))),n.length=0):(n.push(r),rv(t[a+1])||(i.push(n.slice(0)),n.length=0))})}return r.paths})(e).reduce((e,i)=>{let n=t(i);if(void 0!==n){for(let e=i.length-1;e>=0;--e)n={[i[e]]:n};e=r.merge(e,n)}return e},{})}function iI(e,t){return e[t]}function iF(e,t,r){return r=r||iI,function e(t){return(0,rg.isNonNullObject)(t)?rv(t)?t.map(e):iA(Object.keys(t).sort(),e=>iF(t,e)):t}(t.reduce(function e(t,i){return rv(t)?t.map(t=>e(t,i)):t&&r(t,i)},e))}let iL=new eM,iq=new WeakMap;function i$(e){let t=iq.get(e);return t||iq.set(e,t={vars:new Set,dep:e4()}),t}function iV(e){i$(e).vars.forEach(t=>t.forgetCache(e))}function iW(e){let t=new Set,r=new Set,i=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(e=>{var t;i$(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});let n=Array.from(r);r.clear(),n.forEach(t=>t(e))}}else{let e=iL.getValue();e&&(n(e),i$(e).dep(i))}return e};i.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let n=i.attachCache=e=>(t.add(e),i$(e).vars.add(i),i);return i.forgetCache=e=>t.delete(e),i}function iB(e){return void 0!==e.args?e.args:e.field?ik(e.field,e.variables):null}let iU=()=>void 0,iz=(e,t)=>t.fieldName,iQ=(e,t,{mergeObjects:r})=>r(e,t),iH=(e,t)=>t,iK=(e,t,{streamFieldInfo:r,existingData:i})=>{if(!e&&!i)return t;let n=[],a=e??i,s=r?.isLastChunk?t.length:Math.max(a.length,t.length);for(let e=0;e<s;e++)n[e]=void 0===t[e]?a[e]:t[e];return n};class iX{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:il,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,i=this,n=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let a=t&&t.storeObject||e,s={...t,typename:n,storeObject:a,readField:t&&t.readField||((...e)=>{let t=iG(e,a);return i.readField(t,{store:i.cache.data,variables:t.variables})})},o=n&&this.getTypePolicy(n),l=o&&o.keyFn||this.config.dataIdFromObject;return ra.withValue(!0,()=>{for(;l;){let t=l({...e,...a},s);if(rv(t))l=iD(t);else{r=t;break}}}),r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:i,subscriptionType:n,...a}=e[t];r&&this.setRootTypename("Query",t),i&&this.setRootTypename("Mutation",t),n&&this.setRootTypename("Subscription",t),io.call(this.toBeAdded,t)?this.toBeAdded[t].push(a):this.toBeAdded[t]=[a]})}updateTypePolicy(e,t,r){let i=this.getTypePolicy(e),{keyFields:n,fields:a}=t;function s(e,t){e.merge="function"==typeof t?t:!0===t?iQ:!1===t?iH:e.merge}s(i,t.merge),i.keyFn=!1===n?iU:rv(n)?iD(n):"function"==typeof n?n:i.keyFn,a&&Object.keys(a).forEac
128h(t=>{let i=r[t];i&&i?.typename===e||(i=r[t]={typename:e});let n=a[t];if("function"==typeof n)i.read=n;else{let{keyArgs:e,read:t,merge:r}=n;i.keyFn=!1===e?iz:rv(e)?iM(e):"function"==typeof e?e:i.keyFn,"function"==typeof t&&(i.read=t),s(i,r)}i.read&&i.merge&&(i.keyFn=i.keyFn||iz)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&((0,ep.invariant)(!i||i===e,103,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(ic);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!io.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,i)=>{if(t.test(e)){let e=this.supertypeMap.get(i);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...i}=this.getTypePolicy(e);Object.assign(t,i),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,i){if(!e.typeCondition)return!0;if(!t)return!1;let n=e.typeCondition.name.value;if(t===n)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(n)){let a=this.getSupertypeSet(t,!0),s=[a],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<s.length;++c){let h=s[c];if(h.has(n))return a.has(n)||(u&&te.__DEV__&&ep.invariant.warn(104,t,n),a.add(n)),!0;h.forEach(o),l&&c===s.length-1&&function e(t,r,i){return!!(0,rg.isNonNullObject)(r)&&(rv(r)?r.every(r=>e(t,r,i)):t.selections.every(t=>{if(rR(t)&&rx(t,i)){let n=rn(t);return io.call(r,n)&&(!t.selectionSet||e(t.selectionSet,r[n],i))}return!0}))}(e.selectionSet,r,i)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let i=t.match(e);i&&i[0]===t&&o(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let i,n,a,{typename:s,fieldName:o}=e,l=this.getFieldPolicy(s,o),u=l&&l.keyFn;if(u&&s){let t={typename:s,fieldName:o,field:e.field||null,variables:e.variables},r=iB(e);for(;u;){let e=u(r,t);if(rv(e))u=iM(e);else{i=e||o;break}}}return(void 0===i&&(i=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:i})=>rd(n[e.name.value],t,i,r))})),a=null,t.arguments&&t.arguments.length&&(a={},t.arguments.forEach(({name:e,value:t})=>rd(a,e,t,r))),iC(t.name.value,a,n)):iC(o,iB(e))),!1===i)?o:o===ih(i)?i:o+":"+i}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let i=t.store.getFieldValue(r,"__typename");i&&(e.typename=i)}let i=this.getStoreFieldName(e),n=ih(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,n),o=s&&s.read;if(o){let n=iY(this,r,e,t,t.store.getStorage(r1(r)?r.__ref:r,i));return iL.withValue(this.cache,o,[a,n])}return a}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let i=this.getFieldPolicy(e,t),n=i&&i.merge;return!n&&r&&(n=(i=this.getTypePolicy(r))&&i.merge),n}runMergeFunction(e,t,{field:r,typename:i,merge:n,path:a},s,o){let l=e;if(n===iQ)return iJ(s.store)(e,t);if(n===iH)return t;s.overwrite&&(e=void 0);let u=s.extensions?.[rc.streamInfoSymbol]?.deref()?.peekArray(a);if(u){let{current:e,previous:r}=u;if(r&&(0,re.equal)(r.incoming,t)&&(0,re.equal)(r.streamFieldInfo,e))return r.result}let c=n(e,t,function(e,t,r,i,n,a){let s={...iY(e,t,r,i,n),extensions:i.extensions,existingData:a},o=i.extensions;if(o&&rc.streamInfoSymbol in o){let{[rc.streamInfoSymbol]:e,...t}=o,i=e?.deref()?.peekArray(r.path);i&&(s.streamFieldInfo=i.current),s.extensions=0===Object.keys(t).length?void 0:t}return s}(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:s.variables,path:a},s,o||{},l));return u&&(u.previous={incoming:t,streamFieldInfo:u.current,result:c}),c}}function iY(e,t,r,i,n){let a=e.getStoreFieldName(r),s=ih(a),o=r.variables||i.variables,{toReference:l,canRead:u}=i.store;return{args:iB(r),field:r.field||null,fieldName:s,storeFieldName:a,variables:o,isReference:r1,toReference:l,storage:n,cache:e.cache,canRead:u,readField:(...r)=>e.readField(iG(r,t,o),i),mergeObjects:iJ(i.store)}}
128function iG(e,t,r){let i,{0:n,1:a,length:s}=e;return"string"==typeof n?i={fieldName:n,from:s>1?a:t}:(i={...n},io.call(i,"from")||(i.from=t)),te.__DEV__&&void 0===i.from&&te.__DEV__&&ep.invariant.warn(105,(0,iN.stringifyForDisplay)(Array.from(e))),void 0===i.variables&&(i.variables=r),i}function iJ(e){return function(t,r){if(rv(t)||rv(r))throw(0,ep.newInvariantError)(106);if((0,rg.isNonNullObject)(t)&&(0,rg.isNonNullObject)(r)){let i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if(r1(t)&&id(r))return e.merge(t.__ref,r),t;if(id(t)&&r1(r))return e.merge(t,r.__ref),r;if(id(t)&&id(r))return{...t,...r}}return r}}class iZ extends Error{message;path;query;variables;constructor(e,t,r,i){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=iZ.prototype}missing}function i0(e){return[e.selectionSet,e.objectOrReference,e.context]}class i1{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=e5(e=>{let t=i0(e),r=this.executeSelectionSet.peek(...t);return r||(i_(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:e8.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:i0,makeCacheKey(e,t,r){if(iP(r.store))return r.store.makeCacheKey(e,r1(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=e5(e=>(i_(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:e8.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(iP(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:i,returnPartialData:n=!0}){let a,s=this.config.cache.policies;i={...rf(rj(t)),...i};let o=is(r),l=this.executeSelectionSet({selectionSet:rk(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:s,variables:i,varString:t3(i),...ip(t,this.config.fragments)}});l.missing&&(a=new iZ(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,i));let u=!a,{result:c}=l;return{result:u?c:n?0===Object.keys(c).length?null:c:null,complete:u,missing:a}}isFresh(e,t,r,i){if(iP(i.store)&&this.knownResults.get(e)===r){let n=this.executeSelectionSet.peek(r,t,i);if(n&&e===n.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:i}){let n;if(r1(t)&&!i.policies.rootTypenamesById[t.__ref]&&!i.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:a,policies:s,store:o}=i,l=o.getFieldValue(t,"__typename"),u=[],c=new ia;function h(e,t){return e.missing&&(n=c.merge(n,{[t]:e.missing})),e.result}"string"!=typeof l||s.rootIdsByTypename[l]||u.push({__typename:l});let d=new Set(e.selections);d.forEach(e=>{if(rx(e,a))if(rR(e)){let a=s.readField({fieldName:e.name.value,field:e,variables:i.variables,from:t},i),o=rn(e);void 0===a?r0.added(e)||(n=c.merge(n,{[o]:`Can't find field '${e.name.value}' on ${r1(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):rv(a)?a.length>0&&(a=h(this.executeSubSelectedArray({field:e,array:a,enclosingRef:r,context:i}),o)):e.selectionSet&&null!=a&&(a=h(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:a,enclosingRef:r1(a)?a:r,context:i}),o)),void 0!==a&&u.push({[o]:a})}else{let t=rP(e,i.lookupFragment);if(!t&&e.kind===tF.Kind.FRAGMENT_SPREAD)throw(0,ep.newInvariantError)(107,e.name.value);t&&s.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(d.add,d)}});let f={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let i=new ia;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}(u),missing:n},p=(0,ri.maybeDeepFreeze)(f);return p.result&&this.knownResults.set(p.result,e),p}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:i}){let n,a=new ia;function s(e,t){return e.missing&&(n=a.merge(n,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||i.store.canRead(e))),{result:t=t.map((t,n)=>null===t?null:rv(t)?s(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:i}),n):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:r1(t)?t:r,context:i}),n):(te.__DEV__&&function(e,t,r){if(!t.selectionSet){let i=new Set([r]);
128i.forEach(r=>{(0,rg.isNonNullObject)(r)&&((0,ep.invariant)(!r1(r),108,r1(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(i.add,i))})}}(i.store,e,t),t)),missing:n}}}let{toString:i4}=Object.prototype;function i2(e,t,r){let i=`${t}${r}`,n=e.flavors.get(i);return n||e.flavors.set(i,n=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),n}class i3{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:i,variables:n,overwrite:a,extensions:s}){let o=(0,ro.getOperationDefinition)(t),l=new ia,u={store:e,written:{},merge:(e,t)=>l.merge(e,t),variables:n={...rf(o),...n},varString:t3(n),...ip(t,this.fragments),overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:s},c=this.processSelectionSet({result:r||{},dataId:i,selectionSet:o.selectionSet,mergeTree:{map:new Map},context:u,path:[]});if(!r1(c))throw(0,ep.newInvariantError)(109,r);return u.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:i},n)=>{let a=is(n);if(r&&r.map.size){let e=this.applyMerges(r,a,t,u);if(r1(e))return;t=e}if(te.__DEV__&&!u.overwrite){let e={};i.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(i=>{let n;!0!==e[ih(i)]||(n=r&&r.map.get(i))&&n.info&&n.info.merge||function(e,t,r,i){let n=e=>{let t=i.getFieldValue(e,r);return"object"==typeof t&&t},a=n(e);if(!a)return;let s=n(t);if(!s||r1(a)||(0,re.equal)(a,s)||Object.keys(a).every(e=>void 0!==i.getFieldValue(s,e)))return;let o=i.getFieldValue(e,"__typename")||i.getFieldValue(t,"__typename"),l=ih(r),u=`${o}.${l}`;if(i6.has(u))return;i6.add(u);let c=[];
128rv(a)||rv(s)||[a,s].forEach(e=>{let t=i.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)}),te.__DEV__&&ep.invariant.warn(112,l,o,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",u,Array.isArray(a)?[...a]:{...a},Array.isArray(s)?[...s]:{...s})}(a,t,i,u.store)})}e.merge(n,t)}),e.retain(c.__ref),c}processSelectionSet({dataId:e,result:t,selectionSet:r,context:i,mergeTree:n,path:a}){let{policies:s}=this.cache,o={},l=e&&s.rootTypenamesById[e]||ne(t,r,i.fragmentMap)||e&&i.store.get(e,"__typename");"string"==typeof l&&(o.__typename=l);let u=(...e)=>{let t=iG(e,o,i.variables);if(r1(t.from)){let e=i.incomingById.get(t.from.__ref);if(e){let r=s.readField({...t,from:e.storeObject},i);if(void 0!==r)return r}}return s.readField(t,i)},c=new Set;this.flattenFields(r,t,i,l).forEach((e,r)=>{let i=t[rn(r)],h=[...a,r.name.value];if(c.add(r),void 0!==i){let t,a=s.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),c=i9(n,a),d=this.processFieldValue(i,r,r.selectionSet?i2(e,!1,!1):e,c,h);r.selectionSet&&(r1(d)||id(d))&&(t=u("__typename",d));let f=s.getMergeFunction(l,r.name.value,t);f?c.info={field:r,typename:l,merge:f,path:h}:ew(["stream"],r)&&Array.isArray(d)&&e.extensions?.[rc.streamInfoSymbol]?c.info={field:r,typename:l,merge:iK,path:h}:i7(n,a),o=e.merge(o,{[a]:d})}else!te.__DEV__||e.clientOnly||e.deferred||r0.added(r)||s.getReadFunction(l,r.name.value)||ep.invariant.error(110,rn(r),t)});try{let[n,a]=s.identify(t,{typename:l,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:o,readField:u});e=e||n,a&&(o=i.merge(o,a))}catch(t){if(!e)throw t}if("string"==typeof e){let a=is(e),s=i.written[e]||(i.written[e]=[]);if(s.indexOf(r)>=0||(s.push(r),this.reader&&this.reader.isFresh(t,a,r,i)))return a;let l=i.incomingById.get(e);return l?(l.storeObject=i.merge(l.storeObject,o),l.mergeTree=function e(t,r){if(t===r||!r||i8(r))return t;if(!t||i8(t))return r;let i=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,n=t.map.size&&r.map.size,a={info:i,map:n?new Map:t.map.size?t.map:r.map};if(n){let i=new Set(r.map.keys());t.map.forEach((t,n)=>{a.map.set(n,e(t,r.map.get(n))),i.delete(n)}
128),i.forEach(i=>{a.map.set(i,e(r.map.get(i),t.map.get(i)))})}return a}(l.mergeTree,n),c.forEach(e=>l.fieldNodeSet.add(e))):i.incomingById.set(e,{storeObject:o,mergeTree:i8(n)?void 0:n,fieldNodeSet:c}),a}return o}processFieldValue(e,t,r,i,n){return t.selectionSet&&null!==e?rv(e)?e.map((e,a)=>{let s=this.processFieldValue(e,t,r,i9(i,a),[...n,a]);return i7(i,a),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i,path:n}):te.__DEV__?function e(t,r){switch(i4.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(n=>{i[n]=e(t[n],r)}),i}default:return t}}(e):e}flattenFields(e,t,r,i=ne(t,e,r.fragmentMap)){let n=new Map,{policies:a}=this.cache,s=new ek.Trie(!1);return!function e(o,l){let u=s.lookup(o,l.clientOnly,l.deferred);u.visited||(u.visited=!0,o.selections.forEach(s=>{if(!rx(s,r.variables))return;let{clientOnly:o,deferred:u}=l;if(!(o&&u)&&r_(s.directives)&&s.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=ik(e,r.variables);t&&!1===t.if||(u=!0)}}),rR(s)){let e=n.get(s);e&&(o=o&&e.clientOnly,u=u&&e.deferred),n.set(s,i2(r,o,u))}else{let n=rP(s,r.lookupFragment);if(!n&&s.kind===tF.Kind.FRAGMENT_SPREAD)throw(0,ep.newInvariantError)(111,s.name.value);n&&a.fragmentMatches(n,i,t,r.variables)&&e(n.selectionSet,i2(r,o,u))}}))}(e,r),n}applyMerges(e,t,r,i,n){if(e.map.size&&!r1(r)){let a,s=!rv(r)&&(r1(t)||id(t))?t:void 0,o=r;s&&!n&&(n=[r1(s)?s.__ref:s]);let l=(e,t)=>rv(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(s,t),u=l(o,t);if(void 0===u)return;n&&n.push(t);let c=this.applyMerges(e,r,u,i,n);c!==u&&(a=a||new Map).set(t,c),n&&(0,ep.invariant)(n.pop()===t)}),a&&(r=rv(o)?o.slice(0):{...o},a.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,n&&i.store.getStorage(...n)):r}}let i5=[];function i9({map:e},t){return e.has(t)||e.set(t,i5.pop()||{map:new Map}),e.get(t)}function i8(e){return!e||!(e.info||e.map.size)}function i7({map:e},t){let r=e.get(t);r&&i8(r)&&(i5.push(r),e.delete(t))}let i6=new Set;function ne(e,t,r){let i;for(let r of t.selections)if(rR(r)){if("__typename"===r.name.value)return e[rn(r)]}else i?i.push(r):i=[r];if("string"==typeof e.__typename)return e.__typename;if(i)for(let t of i){let i=ne(e,rP(t,r).selectionSet,r);if("string"==typeof i)return i}}class nt extends r9{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new e6(r0);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=iW;constructor(e={}){super(),this.config=function(e){return(0,tt.compact)(iu,e)}(e),this.policies=new iX({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new ib.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new i3(this,this.storeReader=new i1({cache:this,fragments:e}),e),this.maybeBroadcastWatch=e5((e,t)=>this.broadcastWatch(e,t),{max:e8.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(iP(t)){let{optimistic:r,id:i,variables:n}=e;return t.makeCacheKey(e.query,e.callback,t3({optimistic:r,id:i,variables:n}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(io.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;
128return this.watches.size||(t=this,i$(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&iV(this),this.maybeBroadcastWatch.forget(e)}}gc(e){t3.reset(),ru.print.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(r1(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){te.__DEV__&&ep.invariant.warn(e)}}evict(e){if(!e.id){if(io.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),t3.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),iV(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:i=!0,removeOptimistic:n,onWatchUpdated:a}=e,s=e=>{let{data:i,optimisticData:n}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=i,this.optimisticData=n}},o=new Set;return a&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>
128(o.add(e),!1)}),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof n&&(this.optimisticData=this.optimisticData.removeLayer(n)),a&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=a.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,i=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,r)))&&(r&&(0,re.equal)(r.result,i.result)||e.callback(e.lastDiff=i,r))}}te.__DEV__&&(nt.prototype.getMemoryInternals=tr);var nr=e.i(926070),ni=e.i(399086);e.i(240815);var nn=e.i(839472);e.i(622248);var na=e.i(459516);e.i(480919);var ns=e.i(721422),no=e.i(619861),nl=e.i(230998),nu=e.i(373809),nc=e.i(444436);let nh=["themeConfig","headerTags","bodyTags"];function nd({children:e,initialCacheState:t}){let r=(0,s.useMemo)(()=>{let e=function(){let e=(0,el.getStoreId)(),{apiGatewayUrl:t}=(0,nn.getEnvVars)(),r=new eE.ApolloLink((e,t)=>{let r=(0,G.isClient)()?document.documentElement.lang:null;r||(L.default.debug("Missing document locale — falling back to bg"),r="bg");let i={"x-locale":r},n=ni.trace.getSpan(nr.context.active());if(n){let{traceId:e}=n.spanContext();e&&(i["x-trace-id"]=e)}return e.setContext(({headers:e={}})=>({headers:{...e,...i}})),t(e)}),i=new rJ.HttpLink({uri:`${t}/graphql`,credentials:"include",headers:{[nc.STORE_ID_HEADER]:e,...!na.isProd?{[nc.SENTECA_AUTH_HEADER]:`Bearer ${nc.X_SENTECA_AUTH_TOKEN}`}:{}},fetch:async(e,t)=>{let{signal:r,...i}=t||{},n=new AbortController,a=setTimeout(()=>n.abort(),nc.CLIENT_REQUEST_TIMEOUT_MS),s=()=>n.abort(r?.reason);r&&(r.aborted?n.abort(r.reason):r.addEventListener("abort",s));try{return await fetch(e,{...i,signal:n.signal})}finally{clearTimeout(a),r?.removeEventListener("abort",s)}}});return new rG({devtools:{enabled:!"production".includes("production")},link:eE.ApolloLink.from([nl.logQueries,(0,no.getErrorLink)(),nu.retryLink,ns.cleanTypenames,r,i]),cache:new nt((({stripServerOnlyFields:e=!1}={})=>({typePolicies:{Query:{fields:{products:{merge:(e,t)=>t},sportal365BlogPosts:{keyArgs:["componentId"],merge:(e,t)=>t},productEntitySets:{merge:(e,t)=>t},basketById:{merge:(e,t)=>t},getAvailablePaymentMethodsForCurrentBasket:{merge:(e,t)=>t},getAvailableShippingMethodsForCurrentBasket:{merge:(e,t)=>t},orders:{merge:(e,t)=>t},categories:{keyArgs:["attributeValueSlugs","brandSlugs","parentSlug","ids","notEmpty"],merge:(e,t,{mergeObjects:r})=>r(e,t)},productCatalog:{keyArgs:["ids","withFacets","brandIds","brandSlug","attributeValueIds","attributeValueSlugs","merchantCustomerIds","merchantProductInfoSlug","limit","page","sort","term","categoryIds","categorySlug","priceRange","onSale","hideOutOfStockProducts","availabilityStatuses","customizationGroupIds","setIds","withServerFields","skus"],merge:(e,t,{mergeObjects:r})=>r(e,t)},page:{merge:(e,t,{mergeObjects:r})=>r(e,t)},productInfo:{merge:(e,t,{mergeObjects:r})=>r(e,t)}}},ProductCatalogBrandFacet:{keyFields:!1},ProductCatalogCategoryFacet:{keyFields:!1},ProductCatalogCustomizationGroupFacet:{keyFields:!1},ProductCatalogAttributeValueFacet:{keyFields:!1},WishlistProduct:{keyFields:["productId"]},Wishlist:{fields:{products:{merge:(e,t)=>t}}},Basket:{fields:{products:{merge:(e,t)=>t},prices:{merge:(e,t)=>
128t}}},Customer:{fields:{shippingAddresses:{merge:(e,t)=>t},billingAddresses:{merge:(e,t)=>t}}},Category:{keyFields:e=>e?.attributeValueSlugs?.join(",")||e?.brandSlugs?.join(",")},Brand:{keyFields:!1},Attribute:{keyFields:!1},ProductView:{merge:(e,t,{mergeObjects:r})=>r(e,t)},MediaAsset:{fields:{page:{merge:(e,t,{mergeObjects:r})=>r(e,t)}}},ProductLabel:{keyFields:!1},ProductInfo:{fields:{page:{merge:!0},brand:{merge:!0},category:{merge:!0}}},ProductAvaialbleCustomizationServiceGroup:{keyFields:!1},ProductAvaialbleCustomizationService:{keyFields:["id","productCustomizationId"]},Company:{fields:{name:{merge:(e,t)=>t??e}}},Division:{fields:{name:{merge:(e,t)=>t??e},company:{merge:(e,t,{mergeObjects:r})=>r(e,t)}}},...e?{Store:{fields:Object.fromEntries(nh.map(e=>[e,{read:()=>null}]))}}:{}}}))({stripServerOnlyFields:!0}))})}();return t&&e.cache.restore(t),(0,ey.setMyApolloClient)(e),e},[]);return(0,a.jsx)(eg,{client:r,children:e})}var nf=e.i(371166),np=e.i(57877),nm=e.i(396334);e.i(818477);var ng=e.i(369229);np.default.Ls.bg=nm.default;let ny=(0,s.lazy)(()=>e.A(578426));e.s(["default",0,function({children:t,locale:r,globalMessages:i={},initialCacheState:n,progressBarColor:u,customProviders:c,withVat:h,initialSelectedCurrency:d,isMobile:f,serverPathname:p,facebookPixelId:m,metaCapiEnabled:g=!1}){let y=(0,s.useMemo)(()=>(0,ee.getFeatureFlags)(),[]),{initTrackingEvents:b}=(0,ea.useAnalytics)(y);es(()=>{m&&y?.ENABLE_FACEBOOK_ANALYTICS&&y?.ENABLE_NATIVE_FACEBOOK_PIXEL&&(e=>{if(!(0,nf.hasMarketingConsent)()||"fbq"in window&&"function"==typeof window.fbq)return;let t=(...e)=>{t.callMethod?t.callMethod(...e):t.queue.push(e)};t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],window.fbq=t,window._fbq=t;let r=document.createElement("script");r.async=!0,r.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(r),window.fbq("init",e),window.fbq("track","PageView")})(m),(0,nf.setMetaCapiEnabled)(g),b()},[b,m,g,y]),function({enabled:e=!0}={}){let t=(0,l.usePathname)(),r=(0,s.useRef)(!0);(0,s.useEffect)(()=>{if(!e)return;if(r.current){r.current=!1;return}if("function"!=typeof window.gtag)return;let i=window.requestAnimationFrame(()=>{window.gtag("event","page_view",{page_location:window.location.href,page_path:t,page_title:document.title})});return()=>window.cancelAnimationFrame(i)},[t,e])}(),(0,s.useEffect)(()=>{!(0,q.isErrorLoggingEnabled)()||Q||(Q=!0,Math.random()>=.1||e.A(423305).then(({initOpenTelemetry:e})=>{e(),function(){if(z||(0,W.isServer)())return;z=!0;let e=new Set,t=0,r=(r,i,n)=>{if(!i||B.some(e=>e.test(i)))return;let a=`${r}:${i}:${n.source??""}`;if(e.has(a)||t>=20)return;e.add(a),t+=1;let s=new URL(window.location.href);(0,$.logError)({location:r,message:i,page:s.pathname,routePathName:s.pathname,pageQueryParams:Object.fromEntries([...s.searchParams.entries()].map(([e,t])=>[e,U.has(e)?t:"[redacted]"])),additionalInfo:{...n,locale:document.documentElement.lang}})},i=`${window.location.origin}/_next/`;window.addEventListener("error",e=>{let t;if(t=e.filename,!t?.startsWith(i))return;let n=e.error instanceof Error?e.error:void 0;r("window:error",n?.message||e.message,{stack:(n?.stack??"").slice(0,2e3).replace(/\?[^\s)'"]*?(?=:\d+|[\s)'"]|$)/g,""),source:`${(e.filename??"").replace(/\?[^\s)'"]*?(?=:\d+|[\s)'"]|$)/g,"")}:${e.lineno??0}:${e.colno??0}`})}),window.addEventListener("unhandledrejection",e=>{let{reason:t}=e;if(t instanceof Error&&"AbortError"===t.name)return;let n=t instanceof Error?t.stack:void 0;if(!n?.includes(i))return;let a="Unhandled promise rejection";if(t instanceof Error)a=t.message;else if("string"==typeof t)a=t;else try{a=(0,V.stringifyRedacted)(t)??a}catch{}r("window:unhandledrejection",a,{stack:(n??"").slice(0,2e3).replace(/\?[^\s)'"]*?(?=:\d+|[\s)'"]|$)/g,"")})})}()}).catch(e=>{L.default.error({err:e},"[useErrorLogging] Failed to load the browser tracer")}))},[]),(0,s.useEffect)(()=>{if((0,W.isServer)())return;let e=new URLSearchParams(window.location.search);if("1"!==e.get("cleared"))return;e.delete("cleared");let t=e.toString(),r=`${window.location.pathname}${t?`?${t}`:""}${window.location.hash}`;window.history.replaceState(null,"",r)},[]);let v=c?.length?c.reduceRight((e,t)=>(0,a.jsx)(t,{children:e}),(0,a.jsx)(a.Fragment,{children:t})):t;return(0,a.jsx)(o.NextIntlClientProvider,{locale:r,timeZone:(0,et.getComponentsConfig)().dates.timeZone,messages:i,onError:e=>(0,ng.handleIntlError)(e,p),getMessageFallback:ng.getIntlMessageFallback,children:(0,a.jsx)(en.default,{isGenericFallback:!0,children:(0,a.jsx)(nd,{initialCacheState:n,children:(0,a.jsx)(ed,{children:(0,a.jsx)(en.default,{children:(0,a.jsx)(F,{color:u,height:"3px",options:{showSpinner:!1},children:(0,a.jsx)(ei.IsMobileProvider,{initialValue:f,children:(0,a.jsx)(er.GlobalContextProvider,{withVat:h,initialSelectedCurrency:d,children:(0,a.jsxs)(Z,{children:[(0,a.jsx)(ef.Toaster,{}),(0,a.jsx)(s.Suspense,{children:(0,a.jsx)(ny,{})}),v]})})})})})})})})})}],391268)}]);

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.