1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{220:(e,t,r)=>{"use strict";var n=r(20014),i=r(96941),o=r(34736),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"\xa9 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},977:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});let n=(0,r(65162).createContext)({render:()=>null})},1324:(e,t,r)=>{"use strict";var n,i,o,s=r(35423),a=r(96941),l=r(87931),u=r(44910),c=r(47352),d=r(220),p=r(25458),f=r(43876),h="Object already initialized",m=a.TypeError,y=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new m(h);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var v=p("state");f[v]=!0,n=function(e,t){if(c(e,v))throw new m(h);return t.facade=e,u(e,v,t),t},i=function(e){return c(e,v)?e[v]:{}},o=function(e){return c(e,v)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},2434:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2714:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n=(0,r(65162).createContext)({watchLists:[],removeInstrument:async()=>{},addInstrument:async()=>{},updateWatchList:async()=>{},createWatchList:async()=>({}),deleteWatchList:async()=>{},hasAccess:()=>!1,requestAccess:()=>void 0})},3148:(e,t,r)=>{"use strict";r.d(t,{c:()=>m});var n=r(4930),i=r(65162),o=r(7841),s=r(47565);let a="Europe/Copenhagen";function l(e){return new Date().toLocaleDateString("da-DK",{timeZone:a,year:"numeric"})===e.toLocaleDateString("da-DK",{timeZone:a,year:"numeric"})}var u=r(33288);let c={today:"I dag",clockPrefix:"kl.",secondsAgo:"{n} sekunder siden",minuteAgo:"1 minut siden",minutesAgo:"{n} minutter siden"},d={today:"I dag",clockPrefix:"kl.",secondsAgo:"{n} sekunder siden",minuteAgo:"1 minutt siden",minutesAgo:"{n} minutter siden"},p={"da-DK":c,"da-DK-x-formal":c,"nb-NO":d,"nn-NO":d},f="Europe/Copenhagen",h=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"da-DK",n=(0,s.l)(r),i=p[r];if("date"===t)return e.toLocaleDateString(n,{day:"numeric",month:"long",year:l(e)?void 0:"numeric",timeZone:f});if("datetime"===t){let t=e.toLocaleDateString(n,{day:"numeric",month:"short",year:l(e)?void 0:"numeric",timeZone:f}),r=e.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit",timeZone:f}).replace(/^0/,"");return(0,u.c)(e)?`${i.today} ${i.clockPrefix} ${r}`:`${t} ${i.clockPrefix} ${r}`}{let t=e.toLocaleDateString(n,{day:"numeric",month:"short",year:l(e)?void 0:"numeric",timeZone:f}),r=e.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit",timeZone:f}),o=Math.floor((Date.now()-e.getTime())/1e3);return(0,u.c)(e)?o<60?i.secondsAgo.replace("{n}",String(o)):o<120?i.minuteAgo:o<3600?i.minutesAgo.replace("{n}",String(Math.floor(o/60))):`${i.today} ${i.clockPrefix} ${r}`:`${t} ${i.clockPrefix} ${r}`}};function m(e){let{itemProp:t,format:r,toLowerCase:s}=e,a=new Date(e.date),l=(0,o.Y)();return!function(e){let{interval:t}=e,[r,n]=(0,i.useState)(Date.now());(0,i.useEffect)(()=>{if(!t||t<1)return;let e=setInterval(()=>n(Date.now()),t);return()=>{clearInterval(e)}},[t])}({interval:(0,i.useMemo)(()=>{if("relativetime"!==r)return;let e=Math.floor((Date.now()-a.getTime())/6e4);if(!(e>=60))return e<1?1e3:6e4},[r,a])}),(0,n.jsx)("time",{dateTime:a.toISOString(),itemProp:t,suppressHydrationWarning:!0,children:s?h(a,r,l).toLowerCase():h(a,r,l)})}},3351:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});let n={Black:"#000000",White:"#FFFFFF",Blue1:"#7AC2EB",Blue2:"#41A8E2",Blue3:"#1C81BA",Blue4:"#40A7E2",Blue5:"#67B9E8",Grey1:"#F2F2F2",Grey2:"#9D9D9C",Grey3:"#9B9B9B",Grey4:"#DEDEDE",Grey6:"#C1C1C1",Grey7:"#222222",Grey8:"#1a1a1a",Grey10:"#F5F5F5",Grey14:"#EFEFEF",Grey15:"#333333",Grey16:"#595959",Grey17:"#626262",Grey18:"#9A9A9A",Grey19:"#343434",Grey22:"#464646",Red1:"#E9655D",Red2:"#FD3041",Yellow1:"#F9D36F",Pink:"#F0AEB2",Orange:"#F08159",Green:"#9DCBB6",Divider:"#EFEFEF",DarkDivider:"#000000"}},4540:()=>{},4650:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});let n=(0,r(65162).createContext)(null)},5044:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=(0,r(65162).createContext)({articles:[],createArticle:async()=>({status:"error"}),deleteArticle:async()=>({status:"error"}),hasAccess:()=>!1,requestAccess:()=>{}})},5127:e=>{e.exports={link:"Button_link__jJ3o7",button:"Button_button__P7EBp"}},5128:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n=(0,r(65162).createContext)({subscribe:()=>{},unsubscribe:()=>{}})},6127:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});let n=(0,r(65162).createContext)({notifications:[],notify:()=>void 0,deferredNotify:()=>void 0})},6550:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var n=r(4930),i=r(15932),o=r(69021);let s={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="m8 9.5.5 8.5M16 9.5l-.5 8.5M12 9v9m5.87 4H6.13c-.23 0-.42-.18-.45-.42L4 6.52c-.03-.28.18-.53.45-.53h15.1c.27 0 .48.25.45.53l-1.68 15.06c-.03.24-.22.42-.45.42ZM15.5 6H8.49c-.27 0-.5-.16-.5-.35v-2.3c0-.19.22-.35.5-.35h7.01c.27 0 .5.16.5.35v2.3c0 .19-.22.35-.5.35Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" width="25" height="24" fill="none">
1<path fill="currentcolor" d="m19.727 8-1.5 12H7.767l-1.5-12h13.47m2.27-2H3.997l2 16h14l2-16z"/><path fill="currentcolor" d="M15.997 4v2h-6V4zm2-2h-10v6h10zM10.997 10.5h-2v7h2zM16.997 10.5h-2v7h2zM13.997 10.5h-2v7h2z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="M16.82 6.61h4.026l-.1.84-1.731 14.39-.08.66H5.056l-.08-.66-1.72-14.39-.1-.84H7.17V2.5h9.65v4.11ZM6.386 21h11.219l1.55-12.89H4.844L6.386 21Zm3.304-2.875-.75.015-.749.014-.14-7.18 1.5-.029.14 7.18Zm6.25-7.151-.13 7.18-1.5-.028.13-7.18 1.5.028Zm-3.19 7.166h-1.5v-7.18h1.5v7.18ZM8.67 6.61h6.65V4H8.67v2.61Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="m8 9 .5 8.5M16 9l-.5 8.5m-3.5-9v9m5.87 4H6.13c-.23 0-.42-.18-.45-.42L4 6.02c-.03-.28.18-.53.45-.53h15.1c.27 0 .48.25.45.53l-1.68 15.06c-.03.24-.22.42-.45.42Zm-2.37-16H8.49c-.27 0-.5-.16-.5-.35v-2.3c0-.19.22-.35.5-.35h7.01c.27 0 .5.16.5.35v2.3c0 .19-.22.35-.5.35Z"/></svg>'},a=e=>{let t=s[(0,i.r)().features.appearance.iconSet]||"<svg />";return(0,n.jsx)(o.I,{svg:t,...e})}},6722:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A});var n=r(67743)},7841:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(47565),i=r(15932);function o(e){let t=(0,i.r)().features.language.locale;return e?.base===!0?(0,n.l)(t):t}},8598:(e,t,r)=>{"use strict";r.d(t,{w:()=>P});var n=r(4930),i=r(56613),o=r(77674),s=r(72752),a=r(56047),l=r(82408),u=r(94991),c=r(65162);let d={closeLabel:"Luk {title}"},p={"da-DK":d,"da-DK-x-formal":d,"nb-NO":{closeLabel:"Lukk {title}"},"nn-NO":{closeLabel:"Lukk {title}"}};var f=r(79533),h=r.n(f),m=r(64218),y=r(47034);let g={name:"SidePanel",elements:{divider:{color:"#A1A1A1"},title:{color:"#212121",font:{family:m.v.National2,weight:"900",size:(0,y.px)(24),lineHeight:(0,y.px)(36)}},closeButton:{color:"#212121"}}};var v=r(86006);let b={name:"SidePanel",elements:{divider:{color:v.r.Grey7},title:{color:v.r.Grey5,font:{family:m.v.SanomatAlt,size:(0,y.px)(20),weight:"700",lineHeight:(0,y.px)(24)}},closeButton:{color:v.r.Grey5}}},_={name:"SidePanel",elements:{divider:{color:"#A1A1A1"},title:{color:"#212121",font:{family:m.v.National2,weight:"900",size:(0,y.px)(24),lineHeight:(0,y.px)(36)}},closeButton:{color:"#212121"}}};var w=r(15197);let k={name:"SidePanel",elements:{divider:{color:w.r.Grey13},title:{color:w.r.Black,font:{family:m.v.BTGrotesk,weight:"900",size:(0,y.px)(24),lineHeight:(0,y.px)(36)}},closeButton:{color:w.r.Black}}},x={name:"SidePanel",elements:{divider:{color:"#A1A1A1"},title:{color:"#212121",font:{family:m.v.National2,weight:"900",size:(0,y.px)(24),lineHeight:(0,y.px)(36)}},closeButton:{color:"#212121"}}};var S=r(44937);let E={name:"SidePanel",elements:{divider:{color:S.u.Divider},title:{color:S.u.Grey1,font:{family:m.v.LedgerGrotesk,weight:"750",size:(0,y.px)(16),lineHeight:(0,y.px)(24)}},closeButton:{color:S.u.Grey1}}},A={name:"SidePanel",elements:{divider:{color:"#A1A1A1"},title:{color:"#212121",font:{family:m.v.FaktorSans,weight:"900",size:(0,y.px)(24),lineHeight:(0,y.px)(36)}},closeButton:{color:"#212121"}}};var z=r(3351);let T={berlingske:b,bt:k,euroinvestor:E,weekendavisen:{name:"SidePanel",elements:{divider:{color:z.G.Grey14},title:{color:z.G.Black,font:{family:m.v.WEASans,size:(0,y.px)(16),weight:"600",lineHeight:(0,y.px)(19.2),letterSpacing:(0,y.px)(1),transform:"uppercase"}},closeButton:{color:z.G.Black}}},alfa:g,bravo:_,charlie:x,nettavisen:A};function P(e){let{title:t,onClose:r,children:d,dark:f=!1,role:m,ariaModal:y,ref:g}=e,v=(0,i.O)(p),b=(0,c.useId)(),_=m?{role:m,"aria-modal":!!y||void 0,"aria-labelledby":b}:{};return(0,n.jsx)(u.J,{themes:T,children:(0,n.jsxs)("div",{className:h().panel,ref:g,"data-dark":f,..._,children:[(0,n.jsxs)("div",{className:h().header,"data-dark":f,children:[(0,n.jsx)(o.D,{children:(0,n.jsx)("span",{id:b,className:h().title,"data-dark":f,children:t})}),(0,n.jsx)("button",{type:"button",className:h().closeButton,onClick:r,"data-dark":f,"aria-label":v.closeLabel.replace("{title}",t),children:(0,n.jsx)(a.U,{size:l.l.Medium})})]}),(0,n.jsx)(s.F,{children:(0,n.jsx)("div",{className:h().children,children:d})})]})})}},10210:(e,t,r)=>{"use strict";var n=r(96941),i=r(60221);e.exports=function(e,t){return i(n[e].prototype[t])}},10287:e=>{e.exports={backdrop:"Backdrop_backdrop__la3Tr"}},10972:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});let n=e=>!!e?.planTypes.length},11115:(e,t,r)=>{"use strict";r.d(t,{AO:()=>O,Kr:()=>T,nq:()=>P,tp:()=>N,yT:()=>f});var n=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
1(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=n.join(","),o="u"<typeof Element,s=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function(e,t){void 0===t&&(t=!0);var r,n=null==e||null==(r=e.getAttribute)?void 0:r.call(e,"inert");return""===n||"true"===n||t&&e&&l(e.parentNode)},u=function(e){var t,r=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===r||"true"===r},c=function(e,t,r){if(l(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&s.call(e,i)&&n.unshift(e),n=n.filter(r)},d=function(e,t,r){for(var n=[],o=Array.from(e);o.length;){var a=o.shift();if(!l(a,!1))if("SLOT"===a.tagName){var u=a.assignedElements(),c=d(u.length?u:a.children,!0,r);r.flatten?n.push.apply(n,c):n.push({scopeParent:a,candidates:c})}else{s.call(a,i)&&r.filter(a)&&(t||!e.includes(a))&&n.push(a);var p=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),f=!l(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(p&&f){var h=d(!0===p?a.children:p.children,!0,r);r.flatten?n.push.apply(n,h):n.push({scopeParent:a,candidates:h})}else o.unshift.apply(o,a.children)}}return n},p=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||u(e))&&!p(e)?0:e.tabIndex},h=function(e,t){var r=f(e);return r<0&&t&&!p(e)?0:r},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},y=function(e){return"INPUT"===e.tagName},g=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},v=function(e){if(!e.name)return!0;var t,r=e.form||a(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=g(t,e.form);return!i||i===e},b=function(e){return y(e)&&"radio"===e.type&&!v(e)},_=function(e){var t,r,n,i,o,s,l,u=e&&a(e),c=null==(t=u)?void 0:t.host,d=!1;if(u&&u!==e)for(d=!!(null!=(r=c)&&null!=(n=r.ownerDocument)&&n.contains(c)||null!=e&&null!=(i=e.ownerDocument)&&i.contains(e));!d&&c;)d=!!(null!=(s=c=null==(o=u=a(c))?void 0:o.host)&&null!=(l=s.ownerDocument)&&l.contains(c));return d},w=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},k=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("full-native"===r&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=s.call(e,"details>summary:first-of-type")?e.parentElement:e;if(s.call(i,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"full-native"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return w(e)}else{if("function"==typeof n){for(var o=e;e;){var l=e.parentElement,u=a(e);if(l&&!l.shadowRoot&&!0===n(l))return w(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=o}if(_(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},x=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!s.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},S=function(e,t){return!(t.disabled||l(t)||y(t)&&"hidden"===t.type||k(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||x(t))},E=function(e,t){return!(b(t)||0>f(t))&&!!S(e,t)},A=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},z=function(e){var t=[],r=[];return e.forEach(function(e,n){var i=!!e.scopeParent,o=i?e.scopeParent:e,s=h(o,i),a=i?z(e.candidates):o;0===s?i?t.push.apply(t,a):t.push(o):r.push({documentOrder:n,tabIndex:s,item:e,isScope:i,content:a})}),r.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},T=function(e,t){return z((t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:E.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:A}):c(e,t.includeContainer,E.bind(null,t)))},P=function(e,t){return(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:S.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,S.bind(null,t))}
1,O=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==s.call(e,i)&&E(t,e)},C=n.concat("iframe").join(","),N=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==s.call(e,C)&&S(t,e)}},11192:(e,t,r)=>{"use strict";var n=r(49956),i=r(20803),o=r(99015),s=function(e){return function(t,r,s){var a,l=n(t),u=o(l);if(0===u)return!e&&-1;var c=i(s,u);if(e&&r!=r){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},11246:(e,t,r)=>{"use strict";var n=r(60221),i=r(40346),o=r(96740),s=r(47352),a=r(90049),l=r(53007).CONFIGURABLE,u=r(24371),c=r(1324),d=c.enforce,p=c.get,f=String,h=Object.defineProperty,m=n("".slice),y=n("".replace),g=n([].join),v=a&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===m(f(t),0,7)&&(t="["+y(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&s(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return s(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return o(this)&&p(this).source||u(this)},"toString")},11945:e=>{(()=>{"use strict";var t,r,n={126:function(e,t,r){var n,i,o,s,a,l,u=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},c=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.UserFlowStore=t.INIT_STORE=void 0;let d=r(56),p=r(84);t.INIT_STORE={isOpen:!1,flow:null,source:null,email:void 0,blockGlobalTriggers:!1,overlayModal:{isOpen:!1,variant:null}};let f={[p.EventName.STATE_CHANGE_EVENT]:[]};class h{constructor(){n.set(this,void 0),i.set(this,void 0),o.set(this,void 0),s.set(this,()=>c(this,i,"f")),a.set(this,e=>{let t=Object.assign(Object.assign({},c(this,n,"f")),e);c(this,l,"f").call(this,t)&&(u(this,n,Object.assign(Object.assign({},c(this,n,"f")),e),"f"),c(this,o,"f").stateChange(t))}),l.set(this,e=>{for(let t of Object.keys(e))if(e[t]!==c(this,n,"f")[t])return!0;return!1}),u(this,n,t.INIT_STORE,"f"),u(this,i,f,"f"),u(this,o,new d.NotificationModule(c(this,s,"f")),"f"),this.actions=new d.ActionModule(c(this,a,"f")),this.subscribe=new d.SubscriberModule(!1,c(this,s,"f")),this.unsubscribe=new d.SubscriberModule(!0,c(this,s,"f"))}setIsReady(e){this.isReady=e}}t.UserFlowStore=h,n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,h.userFlowReadyEventName="user-flows:sdk:ready"},84:(e,t)=>{var r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.EventName=t.OverlayModalVariant=t.ModalType=t.ActionSource=t.UserFlows=void 0,(i=t.UserFlows||(t.UserFlows={})).LOGIN="login",i.LOGIN_OAUTH2="login-oauth2",i.SIGNUP="signup",i.SIGNUP_B2B="signup-b2b",i.PASSWORD="password",i.CHANGE_PASSWORD="change-password",i.ON_BOARDING="on-boarding",i.SHARING_ON_BOARDING="sharing-on-boarding",i.CIRCLE_K="circle-k",i.STOCK_GAME_SIGNUP="stock-game-signup",i.PASSWORD_MIGRATION="password-migration",i.AID_ALREADY_LINKED="aid-already-linked",i.AID_MIGRATION="aid-migration",i.AID_GREETING="aid-greeting",i.GRANT_ACCESS_FLOW="grant-access-flow",i.AID_NUDGING="aid-nudging",i.AID_NUDGING_AID_MIGRATION="aid-nudging-aid_migration",i.AID_NUDGING_FRI_MIGRATION="aid-nudging-fri_migration",i.CONSENT_FLOW="consent-flow",i.AID_ONBOARDING_FLOW_SHADOW_ACC="aid-onboarding-flow-shadow-acc",i.AID_ONBOARDING_FLOW_LINK="aid-onboarding-flow-link",(n=t.ActionSource||(t.ActionSource={})).loginWall="loginWall",n.eafs="eafs",n.riddle="riddle",n.keesing="keesing",n.circle_k="circle_k",n.guestOnboarding="guestOnboarding",n.stockGame="stock-game",n.visiolink="visiolink",(r=t.ModalType||(t.ModalType={})).userFlowsModal="userFlowsModal",r.overlayModal="overlayModal",(t.OverlayModalVariant||(t.OverlayModalVariant={})).aidInfo="aid-info",(t.EventName||(t.EventName={})).STATE_CHANGE_EVENT="STATE_CHANGE_EVENT"},544:function(e,t,r){var n,i,o,s,a,l,u,c,d,p=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},f=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};
1Object.defineProperty(t,"__esModule",{value:!0}),t.ActionModule=void 0;let h=r(84);t.ActionModule=class{constructor(e){n.set(this,void 0),i.set(this,[h.ModalType.userFlowsModal,h.ModalType.overlayModal]),o.set(this,({flow:e,source:t,blockGlobalTriggers:r,email:i})=>{if(!Object.values(h.UserFlows).includes(e))throw Error("Unknown flow");f(this,n,"f").call(this,{isOpen:!0,flow:e,source:t||null,email:i,blockGlobalTriggers:r||!1})}),s.set(this,({variant:e})=>{if(!Object.values(h.OverlayModalVariant).includes(e))throw Error("Unknown overlay modal variant");f(this,n,"f").call(this,{overlayModal:{isOpen:!0,variant:e}})}),a.set(this,()=>{f(this,n,"f").call(this,{isOpen:!1,flow:null,source:null,email:void 0})}),l.set(this,()=>{f(this,n,"f").call(this,{overlayModal:{isOpen:!1,variant:null}})}),u.set(this,e=>f(this,i,"f").includes(e)),c.set(this,(e,t)=>{switch(e){case h.ModalType.userFlowsModal:return f(this,o,"f").call(this,t);case h.ModalType.overlayModal:return f(this,s,"f").call(this,t)}}),this.open=(e,t,r)=>f(this,u,"f").call(this,e)?f(this,c,"f").call(this,e,t):f(this,o,"f").call(this,{flow:e,source:t,email:r}),d.set(this,e=>e?Array.isArray(e)&&e.every(e=>f(this,u,"f").call(this,e))?[...e]:f(this,u,"f").call(this,e)?[e]:[...f(this,i,"f")]:[...f(this,i,"f")]),this.close=e=>{let t=f(this,d,"f").call(this,e);t.includes(h.ModalType.userFlowsModal)&&f(this,a,"f").call(this),t.includes(h.ModalType.overlayModal)&&f(this,l,"f").call(this)},this.sync=(e,t,r,i)=>{f(this,n,"f").call(this,{isOpen:e,flow:t,source:r||null,email:i})},p(this,n,e,"f")}},n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap},56:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(544),t),i(r(276),t),i(r(549),t)},549:function(e,t,r){var n,i,o=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationModule=void 0;let a=r(84);t.NotificationModule=class{constructor(e){n.set(this,void 0),this.stateChange=e=>{s(this,i,"f").call(this,a.EventName.STATE_CHANGE_EVENT,e)},i.set(this,(e,t)=>{s(this,n,"f").call(this)[e].forEach(e=>e(t))}),o(this,n,e,"f")}},n=new WeakMap,i=new WeakMap},276:function(e,t,r){var n,i,o,s,a=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},l=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriberModule=void 0;let u=r(84);t.SubscriberModule=class{constructor(e,t){return n.set(this,void 0),i.set(this,void 0),this.onStateChange=e=>{if(l(this,n,"f"))return l(this,s,"f").call(this,u.EventName.STATE_CHANGE_EVENT,e);l(this,o,"f").call(this,u.EventName.STATE_CHANGE_EVENT,e)},o.set(this,(e,t)=>{l(this,i,"f").call(this)[e].push(t)}),s.set(this,(e,t)=>{let r=l(this,i,"f").call(this);r[e]=r[e].filter(e=>e!==t)}),a(this,n,e,"f"),a(this,i,t,"f"),Object.assign(this.onStateChange,this)}},n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};
1return n[e].call(r.exports,r,r.exports,o),r.exports}var s={};Object.defineProperty(s,"__esModule",{value:!0}),s.OverlayModalVariant=s.ModalType=s.UserFlows=s.ActionSource=s.UserFlowStore=void 0,t=o(126),Object.defineProperty(s,"UserFlowStore",{enumerable:!0,get:function(){return t.UserFlowStore}}),r=o(84),Object.defineProperty(s,"ActionSource",{enumerable:!0,get:function(){return r.ActionSource}}),Object.defineProperty(s,"UserFlows",{enumerable:!0,get:function(){return r.UserFlows}}),Object.defineProperty(s,"ModalType",{enumerable:!0,get:function(){return r.ModalType}}),Object.defineProperty(s,"OverlayModalVariant",{enumerable:!0,get:function(){return r.OverlayModalVariant}}),e.exports=s})()},12687:(e,t,r)=>{"use strict";r.d(t,{Rq:()=>i,uz:()=>n});let n=(e,t)=>{var r,n;let{userRoles:i}=t;if(!e)return!1;let o=!1;return i&&i.length>0&&(r=e.roles,n=i,o=r.some(e=>n.some(t=>e.endsWith(t)))),o};function i(e,t){return e.some(e=>t.includes(e))}},13114:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(4930);function i(e){let t=e.children;return(0,n.jsx)("style",{id:e.id,type:e.type,dangerouslySetInnerHTML:{__html:t}})}},15197:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n={White:"#FFFFFF",Black:"#000000",Grey1:"#F4F4F4",Grey2:"#212121",Grey3:"#A1A1A1",Grey4:"#4E4E4E",Grey5:"#C2CED0",Grey6:"#333333",Grey8:"#565656",Grey9:"#BFBFBF",Grey10:"#767676",Grey11:"#E0E0E0",Grey12:"#E6E6E6",Grey13:"#EEEEEE",Grey14:"#D9D9D9",Grey15:"#F8F8F8",Grey16:"#A1A1A133",Grey17:"#4D4D4D",Grey19:"#474747",Grey20:"#E9E9E9",Green:"#009F69",Red1:"#F03228",Red2:"#DC1E14",Red3:"#FEF5F4",Breaking:"#FFF041",Divider:"#A1A1A133",DarkDivider:"#212121",PrimaryRed:"#F03228",Sport:"#352CFF",Underholdning:"#C618B0",Penge:"#3D18B0",BlackGrey:"#212121"}},15525:(e,t,r)=>{"use strict";function n(e){return null!==e}r.d(t,{P:()=>n})},15932:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(65162),i=r(4650);let o=()=>{let e=(0,n.useContext)(i.B);if(!e)throw Error("useAppConfig must be used within an AppConfigProvider");return e}},17391:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(65162);function i(e){let t=(0,n.useRef)(e);return t.current=e,(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,t.current)(...r)},[])}},18324:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(83230)}])},18880:(e,t,r)=>{"use strict";e.exports=r(60221)({}.isPrototypeOf)},19360:e=>{e.exports={backdrop:"AccessModal_backdrop__e7I0T",modal:"AccessModal_modal__ulYpQ",logo:"AccessModal_logo__N1CAJ",logoImage:"AccessModal_logoImage__k_yiN",content:"AccessModal_content__7hHtd",title:"AccessModal_title__Znl0p",description:"AccessModal_description__qR6bf",buttons:"AccessModal_buttons__yzlAf",closeButton:"AccessModal_closeButton__If_0s"}},19681:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=(0,r(65162).createContext)({state:{currentMedia:null,playlist:[],isPlaying:!1,volume:0,playbackRate:1,currentTime:0,duration:0},controls:{play:()=>void 0,pause:()=>void 0,resume:()=>void 0,stop:()=>void 0,next:()=>void 0,seek:()=>void 0,addToPlaylist:async()=>({status:"error"}),removeFromPlaylist:async()=>({status:"error"}),reorderPlaylist:async()=>({status:"error"}),clearPlaylist:async()=>({status:"error"}),setPlaybackRate:()=>void 0,setVolume:()=>void 0},hasPlaylistAccess:()=>!1,requestPlaylistAccess:()=>void 0,hasAudioAccess:()=>!1,requestAudioAccess:()=>void 0})},20014:e=>{"use strict";e.exports=!1},20218:(e,t,r)=>{"use strict";var n,i,o=r(96941),s=r(59202),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},20566:e=>{e.exports={root:"Icon_root__8GDWS",wrapper:"Icon_wrapper__mqP1W"}},20580:e=>{"use strict";e.exports=function(e){return null==e}},20803:(e,t,r)=>{"use strict";var n=r(37374),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},23188:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},23842:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});let n=(0,r(65162).createContext)(null)},24371:(e,t,r)=>{"use strict";var n=r(60221),i=r(96740),o=r(220),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},24546:(e,t,r)=>{"use strict";var n=r(61218),i=r(60221),o=r(98525),s=r(70468),a=r(41778),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=s.f;return r?l(t,r(e)):t}},25458:(e,t,r)=>{"use strict";var n=r(52744),i=r(38045),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},27617:(e,t,r)=>{"use strict";var n=r(47352),i=r(24546),o=r(45846),s=r(52584);e.exports=function(e,t,r){for(var a=i(t),l=s.f,u=o.f,c=0;c<a.length;c++){var d=a[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},28741:(e,t,r)=>{"use strict";var n=r(96740),i=r(52584),o=r(11246),s=r(34736);e.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(n(r)&&o(r,u,a),a.global)l?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}
1l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},29967:(e,t,r)=>{"use strict";r(53566)},31207:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});let n=(0,r(65162).createContext)({content:null,showModal:()=>{},closeModal:()=>{}})},33288:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});let n="Europe/Copenhagen";function i(e){return new Date().toLocaleDateString("da-DK",{timeZone:n})===e.toLocaleDateString("da-DK",{timeZone:n})}},34568:(e,t,r)=>{e.exports=r(13190)},34736:(e,t,r)=>{"use strict";var n=r(96941),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},35027:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(65162),i=r(31207);function o(){return(0,n.useContext)(i.V)}},35423:(e,t,r)=>{"use strict";var n=r(96941),i=r(96740),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},35960:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(65162),i=r(2714);function o(){return(0,n.useContext)(i.T)}},36189:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(65162),i=r(45525);let o=()=>{let e=(0,n.useContext)(i.n);if(!e)throw Error("useEnvironment must be used within an EnvironmentProvider");return e}},36198:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(4930);let i=(0,r(65162).createContext)(e=>{let{children:t}=e;return(0,n.jsx)(n.Fragment,{children:t})})},37374:(e,t,r)=>{"use strict";var n=r(23188);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},37514:(e,t,r)=>{"use strict";var n=r(20218),i=r(40346),o=r(96941).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},37623:(e,t,r)=>{"use strict";var n=r(20580),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},38045:(e,t,r)=>{"use strict";var n=r(60221),i=0,o=Math.random(),s=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},38383:(e,t,r)=>{"use strict";var n=r(90049),i=r(40346);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},38594:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(12687);function i(e){if("u"<typeof document)return!1;let t=decodeURIComponent(document.cookie).split("; ").find(e=>e.startsWith("b2b_access"));if(t){let r=t.split("=")?.[1];if(r){let t=e.find(e=>e.startsWith("B2B."))?e:e.map(e=>"B2B."+e);return(0,n.Rq)([r],t)}}return!1}},40346:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},41778:(e,t,r)=>{"use strict";var n=r(87931),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},42066:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var n=r(4930),i=r(65162);function o(e){let t=i.lazy(()=>e().then(e=>({default:e})));return function(e){let[r,o]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{o(!0)},[]),r)?(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)(t,{...e})}):null}}},42694:e=>{e.exports={container:"UserSavedArticleItem_container__BUOMR",content:"UserSavedArticleItem_content__HbX2h",label:"UserSavedArticleItem_label__msFIG",title:"UserSavedArticleItem_title__MGibA",metadata:"UserSavedArticleItem_metadata__vrflT"}},43876:e=>{"use strict";e.exports={}},44074:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});let n="bsc_shared_variables"},44250:(e,t,r)=>{"use strict";r.d(t,{V:()=>a});var n=r(4930),i=r(65162),o=r(41352);function s(e){return e instanceof HTMLElement}function a(e){let{root:t,tagName:r,component:a}=e;return(function(e,t){let[r,n]=(0,i.useState)([]);return(0,i.useEffect)(()=>{if(!e)return;n(Array.from(e.getElementsByTagName(t)).filter(s));let r=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{s(e)&&e.tagName.toLowerCase()===t&&n(t=>[...t,e])}),e.removedNodes.forEach(e=>{s(e)&&e.tagName.toLowerCase()===t&&n(t=>t.filter(t=>t!==e))})})});return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()},[e,t]),r})(t,r).map(e=>{let t={};for(let r of e.attributes)t[r.name]=r.value;return(0,o.createPortal)((0,n.jsx)(a,{attributes:t}),e)})}},44845:(e,t,r)=>{"use strict";e.exports=r(37514)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},44910:(e,t,r)=>{"use strict";var n=r(90049),i=r(52584),o=r(58089);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},44937:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});let n={White:"#FFFFFF",Black:"#000000",Grey1:"#333333",Grey2:"#D8D8D8",Grey3:"#999999",Grey5:"#EEEEEE",Grey6:"#777777",Grey7:"#F7F7F7",Grey8:"#E0E0E0",Grey9:"#565656",Grey10:"#212121",Grey12:"#EFEFEF",Grey13:"#A1A1A1",Grey15:"#414141",Blue1:"#0177FF",Blue2:"#43A4FF",Blue3:"#201748",Blue4:"#3492FF",Red1:"#FD3041",Green:"#2BD18F",Gold:"#F9D36F",Yellow:"#FFDC97",Divi
1der:"#EFEFEF",DarkDivider:"#333333"}},45525:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let n=(0,r(65162).createContext)(null)},45846:(e,t,r)=>{"use strict";var n=r(90049),i=r(68284),o=r(87380),s=r(58089),a=r(49956),l=r(75120),u=r(47352),c=r(87628),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return s(!i(o.f,e,t),e[t])}},46241:(e,t,r)=>{e.exports=r(74187)},47034:(e,t,r)=>{"use strict";r.d(t,{px:()=>n});let n=e=>`${e/16}rem`},47182:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});let n={du:"De",dig:"Dem",din:"Deres",dit:"Deres",dine:"Deres",Du:"De",Dig:"Dem",Din:"Deres",Dine:"Deres",Dit:"Deres"};function i(e){return t=>e?n[t]:t}},47352:(e,t,r)=>{"use strict";var n=r(60221),i=r(87332),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},47565:(e,t,r)=>{"use strict";function n(e){return e.replace(/-x-.+$/,"")}r.d(t,{l:()=>n})},47832:(e,t,r)=>{"use strict";r.d(t,{E:()=>m});var n=r(4930),i=r(85211),o=r(97743),s=r(17391),a=r(52406),l=r(95162),u=r(65162),c=r(73956),d=r(8598),p=r(82773),f=r.n(p),h=r(11115);function m(e){let{title:t,onClose:r,isModal:p=!1,children:m,dark:y=!1,returnFocusTo:g,initialFocus:v,takeFocusOnOpen:b=!1}=e,_=(0,i.N)(l.f.tabletDown),[w,k]=(0,u.useState)(null),x=p||!!_;(0,o._)({active:x,offset:0});let S=(0,s._)(e=>!e.defaultPrevented&&(e.preventDefault(),r(),!0));return(0,a.r)({active:x,elements:[w],onDeactivate:S,returnFocusTo:g,initialFocus:v}),(0,u.useEffect)(()=>{if(x||!w)return;let e=e=>{"Escape"===e.key&&S(e)};return w.addEventListener("keydown",e),()=>{w.removeEventListener("keydown",e)}},[x,w]),!function(e){let{active:t,element:r}=e,n=(0,s._)(()=>e.takeFocus),i=(0,s._)(()=>e.initialFocus),o=(0,s._)(()=>e.returnFocusTo),a=(0,u.useRef)(null),l=(0,s._)(()=>{let e=a.current,t=o();for(let r of[e===document.body?null:e,...Array.isArray(t)?t:[t]])if(r instanceof HTMLElement&&r.isConnected)return r;return null}),c=(0,s._)(e=>{let t=l();if(!t)return null;let r=(0,h.Kr)(document.body),n=r.indexOf(t);return -1===n?null:r.slice(n+1).find(t=>!e.contains(t))??null});(0,u.useEffect)(()=>{if(t&&r){if(a.current=document.activeElement,n()){let e=i()??(0,h.Kr)(r)[0];e?.focus()}return()=>{let e=document.activeElement;if(!(e===document.body||e&&r.contains(e)))return;let t=l();t?t.focus():document.querySelector("main")?.focus({preventScroll:!0})}}},[t,r]),(0,u.useEffect)(()=>{if(!t||!r)return;let e=e=>{if("Tab"!==e.key||e.shiftKey||e.defaultPrevented)return;let t=(0,h.Kr)(r),n=t[t.length-1];if(!n||document.activeElement!==n)return;let i=c(r);if(i){e.preventDefault(),i.focus();return}let o=document.querySelector("main");o&&(e.preventDefault(),o.focus({preventScroll:!0}))};return r.addEventListener("keydown",e),()=>{r.removeEventListener("keydown",e)}},[t,r])}({active:!x,element:w,takeFocus:b,returnFocusTo:g,initialFocus:v}),(0,n.jsxs)("div",{className:f().root,"data-is-modal":p,children:[p&&(0,n.jsx)(c.z,{}),(0,n.jsx)(d.w,{title:t,onClose:r,dark:y,ref:k,role:"dialog",ariaModal:x,children:m})]})}},47890:(e,t,r)=>{"use strict";r.d(t,{L:()=>i,R:()=>o});var n,i=((n={}).CategoryColor="--bm-category-color",n);let o="with-theme-css-variables"},49758:(e,t,r)=>{"use strict";r(53566),e.exports=r(10210)("String","isWellFormed")},49956:(e,t,r)=>{"use strict";var n=r(54186),i=r(37623);e.exports=function(e){return n(i(e))}},52118:e=>{e.exports={root:"AudioPlayer_root__reVgg","slide-in":"AudioPlayer_slide-in__2nT60","change-opacity":"AudioPlayer_change-opacity__rFrzq",playlist:"AudioPlayer_playlist__cOgHv",ariaLabel:"AudioPlayer_ariaLabel__KHduj"}},52406:(e,t,r)=>{"use strict";r.d(t,{r:()=>_});var n=r(15525),i=r(11115);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var l=function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r._setPausedState(!0)}var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},u=function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},c=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},d=function(e){return c(e)&&!e.shiftKey},p=function(e){return c(e)&&e.shiftKey},f=function(e){return setTimeout(e,0)},h=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},m=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},y=[],g=function(e,t){var r,n=(null==t?void 0:t.document)||document,s=(null==t?void 0:t.trapStack)||y,g=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:d,isKeyBackward:p},t),v={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,r){return e&&void 0!==e[t]?e[t]:g[r||t]},_=function(e,t){var r="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return v.containerGroups.findIndex(function(t){var n=t.container,i=t.tabbableNodes;return n.contains(e)||(null==r?void 0:r.includes(n))||i.find(function(t){return t===e})})},w=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.hasFallback,s=r.params,a=g[e];if("function"==typeof a&&(a=a.apply(void 0,function(e){if(Array.isArray(e))return o(e)}(t=void 0===s?[]:s)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===a&&(a=void 0),!a){if(void 0===a||!1===a)return a;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=a;if("string"==typeof a){try{l=n.querySelector(a)}catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!l&&!(void 0!==i&&i))throw Error("`".concat(e,"` as selector refers to no known node"))}return l},k=function(){var e=w("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,i.tp)(e,g.tabbableOptions))if(_(n.activeElement)>=0)e=n.activeElement;else{var t=v.tabbableGroups[0];e=t&&t.firstTabbableNode||w("fallbackFocus")}else null===e&&(e=w("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},x=function(){if(v.containerGroups=v.containers.map(function(e){var t=(0,i.Kr)(e,g.tabbableOptions),r=(0,i.nq)(e,g.tabbableOptions),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=r.find(function(e){return(0,i.AO)(e)}),a=r.slice().reverse().find(function(e){return(0,i.AO)(e)}),l=!!t.find(function(e){return(0,i.yT)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:a,nextTabbableNode:function(e){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=t.indexOf(e);return o<0?n?r.slice(r.indexOf(e)+1).find(function(e){return(0,i.AO)(e)}):r.slice(0,r.indexOf(e)).reverse().find(function(e){return(0,i.AO)(e)}):t[o+(n?1:-1)]}}}),v.tabbableGroups=v.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),v.tabbableGroups.length<=0&&!w("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(v.containerGroups.find(function(e){return e.posTabIndexesFound})&&v.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?S(t.shadowRoot):t},E=function(e){if(!1!==e&&e!==S(document)){if(!e||!e.focus)return void E(k());e.focus({preventScroll:!!g.preventScroll}),v.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},A=function(e){var t=w("setReturnFocus",{params:[e]});return t||!1!==t&&e},z=function(e){var t=e.target,r=e.event,n=e.isBackward,o=void 0!==n&&n;t=t||m(r),x();var s=null;if(v.tabbableGroups.length>0){var a=_(t,r),l=a>=0?v.containerGroups[a]:void 0;if(a<0)s=o?v.tabbableGroups[v.tabbableGroups.length-1].lastTabbableNode:v.tabbableGroups[0].firstTabbableNode;else if(o){var u=v.tabbableGroups.findIndex(function(e){var r=e.firstTabbableNode;return t===r});if(u<0&&(l.container===t||(0,i.tp)(t,g.tabbableOptions)&&!(0,i.AO)(t,g.tabbableOptions)&&!l.nextTabbableNode(t,!1))&&(u=a),u>=0){var d=0===u?v.tabbableGroups.length-1:u-1,p=v.tabbableGroups[d];s=(0,i.yT)(t)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else c(r)||(s=l.nextTabbableNode(t,!1))}else{var f=v.tabbableGroups.findIndex(function(e){var r=e.lastTabbableNode;return t===r});if(f<0&&(l.container===t||(0,i.tp)(t,g.tabbableOptions)&&!(0,i.AO)(t,g.tabbableOptions)&&!l.nextTabbableNode(t))&&(f=a),f>=0){var h=f===v.tabbableGroups.length-1?0:f+1,y=v.tabbableGroups[h];s=(0,i.yT)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else c(r)||(s=l.nextTabbableNode(t))}}else s=w("fallbackFocus");return s},T=function(e){_(m(e),e)>=0||(h(g.clickOutsideDeactivates,e)?r.deactivate({returnFocus:g.returnFocusOnDeactivate}):h(g.allowOutsideClick,e)||e.preventDefault())},P=function(e){var t=m(e),r=_(t,e)>=0;if(r||t instanceof Document)r&&(v.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var n,o=!0;if(v.mostRecentlyFocusedNode)if((0,i.yT)(v.mostRecentlyFocusedNode)>0){var s=_(v.mostRecentlyFocusedNode),a=v.containerGroups[s].tabbableNodes;if(a.length>0){var l=a.findIndex(function(e){return e===v.mostRecentlyFocusedNode});l>=0&&(g.isKeyForward(v.recentNavEvent)?l+1<a.length&&(n=a[l+1],o=!1):l-1>=0&&(n=a[l-1],o=!1))}}else v.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,i.yT)(e)>0})})||(o=!1);else o=!1;o&&(n=z({target:v.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(v.recentNavEvent)})),n?E(n):E(v.mostRecentlyFocusedNode||k())}v.recentNavEvent=void 0},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v.recentNavEvent=e;var r=z({event:e,isBackward:t});r&&(c(e)&&e.preventDefault(),E(r))},C=function(e){(g.isKeyForward(e)||g.isKeyBackward(e))&&O(e,g.isKeyBackward(e))},N=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==h(g.escapeDeactivates,e)&&(e.preventDefault(),r.deactivate())},I=function(e){_(m(e),e)>=0||h(g.clickOutsideDeactivates,e)||h(g.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},F=function(){if(v.active)return l(s,r),v.delayInitialFocusTimer=g.delayInitialFocus?f(function(){E(k())}):E(k()),n.addEventListener("focusin",P,!0),n.addEventListener("mousedown",T,{capture:!0,passive:!1}),n.addEventListener("touchstart",T,{capture:!0,passive:!1}),n.addEventListener("click",I,{capture:!0,passive:!1}),n.addEventListener("keydown",C,{capture:!0,passive:!1}),n.addEventListener("keydown",N),r},R=function(){if(v.active)return n.removeEventListener("focusin",P,!0),n.removeEventListener("mousedown",T,!0),n.removeEventListener("touchstart",T,!0),n.removeEventListener("click",I,!0),n.removeEventListener("keydown",C,!0),n.removeEventListener("keydown",N),r},j="u">typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes
1).some(function(e){return e===v.mostRecentlyFocusedNode})})&&E(k())}):void 0,D=function(){j&&(j.disconnect(),v.active&&!v.paused&&v.containers.map(function(e){j.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(r={get active(){return v.active},get paused(){return v.paused},activate:function(e){if(v.active)return this;var t=b(e,"onActivate"),r=b(e,"onPostActivate"),i=b(e,"checkCanFocusTrap");i||x(),v.active=!0,v.paused=!1,v.nodeFocusedBeforeActivation=S(n),null==t||t();var o=function(){i&&x(),F(),D(),null==r||r()};return i?i(v.containers.concat()).then(o,o):o(),this},deactivate:function(e){if(!v.active)return this;var t=a({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},e);clearTimeout(v.delayInitialFocusTimer),v.delayInitialFocusTimer=void 0,R(),v.active=!1,v.paused=!1,D(),u(s,r);var n=b(t,"onDeactivate"),i=b(t,"onPostDeactivate"),o=b(t,"checkCanReturnFocus"),l=b(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var c=function(){f(function(){l&&E(A(v.nodeFocusedBeforeActivation)),null==i||i()})};return l&&o?o(A(v.nodeFocusedBeforeActivation)).then(c,c):c(),this},pause:function(e){return v.active?(v.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return v.active?(v.manuallyPaused=!1,s[s.length-1]!==this)?this:this._setPausedState(!1,e):this},updateContainerElements:function(e){return v.containers=[].concat(e).filter(
1Boolean).map(function(e){return"string"==typeof e?n.querySelector(e):e}),v.active&&x(),D(),this}},{_isManuallyPaused:{value:function(){return v.manuallyPaused}},_setPausedState:{value:function(e,t){if(v.paused===e)return this;if(v.paused=e,e){var r=b(t,"onPause"),n=b(t,"onPostPause");null==r||r(),R(),D(),null==n||n()}else{var i=b(t,"onUnpause"),o=b(t,"onPostUnpause");null==i||i(),x(),F(),D(),null==o||o()}return this}}}),r.updateContainerElements(e),r},v=r(65162),b=r(17391);function _(e){let{elements:t,active:r,onDeactivate:i,returnFocusTo:o,initialFocus:s,returnFocus:a}=e,l=(0,v.useRef)(null),u=(0,b._)(()=>o),c=(0,b._)(()=>s),d=(0,b._)(()=>t.filter(n.P)),p=(0,b._)(()=>!1!==a),f=(0,v.useRef)(!1),h=(0,v.useRef)(null),m=t.some(n.P);(0,v.useEffect)(()=>{let e=d(),[t]=e;if(r&&m&&t)return l.current=g(e,{allowOutsideClick:!0,fallbackFocus:()=>d()[0]??t,initialFocus:()=>{if(!f.current)return c()??void 0;let e=h.current;h.current=null;let t=document.activeElement;return(null===t||t===document.body)&&e?.isConnected?e:void 0},onPause:()=>{let e=document.activeElement;h.current=e instanceof HTMLElement?e:null},onUnpause:()=>{f.current=!0},clickOutsideDeactivates:!!i&&(e=>!e.target.closest("[data-include-in-focus-trap]")&&i(e)),escapeDeactivates:!!i&&(e=>i(e)),setReturnFocus:e=>{if(!p())return!1;let t=document.activeElement;if(!(null===t||t===document.body||d().some(e=>e.contains(t)))&&t instanceof HTMLElement)return t;if(e.isConnected&&e!==document.body)return e;let r=u();for(let e of Array.isArray(r)?r:[r])if(e?.isConnected)return e;return e}}),l.current.activate(),()=>{l.current?.deactivate(),l.current=null,f.current=!1,h.current=null}},[r,m,i]),(0,v.useEffect)(()=>{let e=t.filter(n.P);l.current&&e.length>0&&l.current.updateContainerElements(e)},[...t])}},52451:(e,t,r)=>{"use strict";r.d(t,{c:()=>n});let n=(0,r(65162).createContext)({userData:null,authIsHandled:!1,getAccessToken:async()=>null,requestLogin:async()=>null,requestLogout:()=>void 0,requestCreateProfile:async()=>null,requestGetHelpFlow:()=>void 0,requestRegretPurchase:async()=>void 0})},52584:(e,t,r)=>{"use strict";var n=r(90049),i=r(87628),o=r(38383),s=r(41778),a=r(75120),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=n?o?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=c(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:d in r?r[d]:n[d],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=a(t),s(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},52744:(e,t,r)=>{"use strict";var n=r(220);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},53007:(e,t,r)=>{"use strict";var n=r(90049),i=r(47352),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&(!n||n&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:a&&"something"===(function(){}).name,CONFIGURABLE:l}},53566:(e,t,r)=>{"use strict";var n=r(71975),i=r(60221),o=r(37623),s=r(65930),a=i("".charCodeAt);n({target:"String",proto:!0},{isWellFormed:function(){for(var e=s(o(this)),t=e.length,r=0;r<t;r++){var n=a(e,r);if((63488&n)==55296&&(n>=56320||++r>=t||(64512&a(e,r))!=56320))return!1}return!0}})},53951:(e,t,r)=>{"use strict";var n=r(61363),i=r(20580);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},54186:(e,t,r)=>{"use strict";var n=r(60221),i=r(40346),o=r(94157),s=Object,a=n("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},56047:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});var n=r(4930),i=r(15932),o=r(69021);let s={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17"><path fill="currentColor" d="M2.778 2.038a.417.417 0 1 0-.59.589L8.06 8.499 2.188 14.37a.417.417 0 0 0 .59.59L8.65 9.087l5.872 5.872a.417.417 0 1 0 .589-.59L9.239 8.5l5.872-5.872a.417.417 0 1 0-.59-.59L8.65 7.91 2.778 2.038Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17">
1<path fill="currentColor" d="m14.2 2.02.967.967-5.7 5.7 5.7 5.7-.967.967-5.7-5.7-5.7 5.7-.967-.967 5.7-5.7-5.7-5.7.967-.966 5.7 5.7 5.7-5.7Z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17"><path fill="currentColor" d="M15.015 3.079 9.463 8.625h.007l5.552 5.547a.503.503 0 0 1 0 .707l-.267.266a.503.503 0 0 1-.706 0L8.497 9.6 2.95 15.145a.503.503 0 0 1-.706 0l-.267-.266a.503.503 0 0 1 0-.707l5.546-5.54-5.539-5.54a.503.503 0 0 1 0-.707l.267-.266a.503.503 0 0 1 .706 0L8.49 7.652l5.552-5.547a.503.503 0 0 1 .706 0l.267.267a.503.503 0 0 1 0 .707Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17"><path fill="currentColor" d="M15.166 1.987 9.09 8.064l6.077 6.077-.589.59L8.5 8.652 2.423 14.73l-.59-.589 6.078-6.077-6.077-6.077.589-.59L8.5 7.475l6.077-6.078.59.59Z"/></svg>'},a=e=>{let t=s[(0,i.r)().features.appearance.iconSet]||"<svg />";return(0,n.jsx)(o.I,{svg:t,...e})}},56613:(e,t,r)=>{"use strict";r.d(t,{O:()=>i});var n=r(7841);function i(e){return e[(0,n.Y)()]}},56866:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(4930),i=r(65162);class o extends i.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.warn("ErrorBoundary caught an error:",{error:e,errorInfo:t}),e?.stack?.includes(window.location.origin+"/_next")&&(e.componentStack=t.componentStack||void 0,reportError(e))}render(){return this.state.hasError?this.props.fallback?this.props.fallback:null:this.props.children}}let s=e=>{let{children:t}=e;return(0,n.jsx)(o,{children:i.Children.toArray(t).map((e,t)=>(0,n.jsx)(o,{children:e},t))})}},58089:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},59202:(e,t,r)=>{"use strict";var n=r(96941).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},60221:(e,t,r)=>{"use strict";var n=r(95941),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);e.exports=n?s:function(e){return function(){return o.apply(e,arguments)}}},60477:()=>{},61218:(e,t,r)=>{"use strict";var n=r(96941),i=r(96740);e.exports=function(e,t){var r;return arguments.length<2?i(r=n[e])?r:void 0:n[e]&&n[e][t]}},61363:(e,t,r)=>{"use strict";var n=r(96740),i=r(74082),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},61374:(e,t,r)=>{"use strict";var n=r(94561),i=r(96740),o=r(94157),s=r(91686)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=a(e),s))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},64218:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});let n={SequelSans:"SequelSans",SanomatSansWeb:"Sanomat Sans Web",SanomatAlt:"Sanomat Alt",SanomatAltExtrabold:"Sanomat Alt Extrabold",GuardianTextEgyptianWeb:"Guardian Text Egyptian Web",CPHSigns:"CPH-signs",WEASans:"WEA Sans",WEANewDisplay:"WEA New Display",WEATekst:"WEA Tekst",LedgerGrotesk:"LedgerGrotesk",BTGrotesk:"BTGrotesk",National2:"National2",FaktorSans:"FaktorSans"}},64354:(e,t,r)=>{"use strict";var n=r(96941),i=r(87931),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},64627:(e,t,r)=>{"use strict";r.d(t,{$:()=>b});var n=r(4930),i=r(68905),o=r(94991),s=r(70172),a=r(5127),l=r.n(a),u=r(64218),c=r(47034),d=r(86006);let p={name:"Button",elements:{button:{font:{family:u.v.SanomatSansWeb,weight:"400",size:(0,c.px)(16),lineHeight:(0,c.px)(16)},borderRadius:(0,c.px)(2),primaryColor:d.r.White,primaryBackgroundColor:d.r.Black,primaryHoverColor:d.r.White,primaryHoverBackgroundColor:d.r.Grey5,primaryDangerColor:d.r.White,primaryDangerBackgroundColor:d.r.Red2,secondaryColor:d.r.Black,secondaryBorderColor:d.r.Black,secondaryHoverColor:d.r.White,secondaryHoverBackgroundColor:d.r.Grey5,secondaryDangerColor:d.r.Red2,secondaryDangerBorderColor:d.r.Red2,secondaryDangerHoverColor:d.r.White,secondaryDangerHoverBackgroundColor:d.r.Red2,tertiaryColor:d.r.Black,tertiaryHoverColor:d.r.Grey5,tertiaryDangerColor:d.r.Red2}}};var f=r(15197);let h={name:"Button",elements:{button:{font:{family:u.v.BTGrotesk,weight:"900",size:(0,c.px)(16),lineHeight:(0,c.px)(16)},borderRadius:(0,c.px)(0),primaryColor:f.r.White,primaryBackgroun
1dColor:f.r.Grey2,primaryHoverColor:f.r.White,primaryHoverBackgroundColor:f.r.Grey17,primaryDangerColor:f.r.White,primaryDangerBackgroundColor:f.r.Red1,secondaryColor:f.r.Grey2,secondaryBorderColor:f.r.Grey2,secondaryHoverColor:f.r.White,secondaryHoverBackgroundColor:f.r.Grey2,secondaryDangerColor:f.r.Red1,secondaryDangerBorderColor:f.r.Red1,secondaryDangerHoverColor:f.r.White,secondaryDangerHoverBackgroundColor:f.r.Red1,tertiaryColor:f.r.Grey2,tertiaryHoverColor:f.r.Grey17,tertiaryDangerColor:f.r.Red1}}};var m=r(44937);let y={name:"Button",elements:{button:{font:{family:u.v.LedgerGrotesk,weight:"600",size:(0,c.px)(15),lineHeight:(0,c.px)(15)},borderRadius:(0,c.px)(4),primaryColor:m.u.White,primaryBackgroundColor:m.u.Blue1,primaryHoverColor:m.u.White,primaryHoverBackgroundColor:m.u.Blue4,primaryDangerColor:m.u.White,primaryDangerBackgroundColor:m.u.Red1,secondaryColor:m.u.Blue1,secondaryBorderColor:m.u.Blue1,secondaryHoverColor:m.u.White,secondaryHoverBackgroundColor:m.u.Blue1,secondaryDangerColor:m.u.Red1,secondaryDangerBorderColor:m.u.Red1,secondaryDangerHoverColor:m.u.White,secondaryDangerHoverBackgroundColor:m.u.Red1,tertiaryColor:m.u.Blue1,tertiaryHoverColor:m.u.Blue4,tertiaryDangerColor:m.u.Red1}}};var g=r(3351);let v={berlingske:p,bt:h,euroinvestor:y,weekendavisen:{name:"Button",elements:{button:{font:{family:u.v.WEASans,weight:"400",size:(0,c.px)(18),lineHeight:(0,c.px)(18)},borderRadius:(0,c.px)(0),primaryColor:g.G.White,primaryBackgroundColor:g.G.Blue2,primaryHoverColor:g.G.White,primaryHoverBackgroundColor:g.G.Blue5,primaryDangerColor:g.G.White,primaryDangerBackgroundColor:g.G.Red1,secondaryColor:g.G.Blue2,secondaryBorderColor:g.G.Blue2,secondaryHoverColor:g.G.White,secondaryHoverBackgroundColor:g.G.Blue2,secondaryDangerColor:g.G.Red1,secondaryDangerBorderColor:g.G.Red1,secondaryDangerHoverColor:g.G.White,secondaryDangerHoverBackgroundColor:g.G.Red1,tertiaryColor:g.G.Blue2,tertiaryHoverColor:g.G.Blue5,tertiaryDangerColor:g.G.Red1}}}};function b(e){let{type:t,variant:r,url:a,onClick:u,children:c,width:d="auto",disabled:p,ariaDisabled:f,ariaLabel:h,ariaExpanded:m,trackingClass:y,danger:g,ref:b}=e;return a?(0,n.jsx)(o.J,{themes:v,children:(0,n.jsx)(s.N,{className:(0,i.cx)(l().link,y),style:{width:d},href:a,"data-variant":r||"primary","aria-label":h,children:c})}):(0,n.jsx)(o.J,{themes:v,children:(0,n.jsx)("button",{ref:b,className:(0,i.cx)(l().button,y),style:{width:d},type:t||"button","data-variant":r||"primary",onClick:f?void 0:u,disabled:p,"aria-disabled":f,"aria-expanded":m,"aria-label":h,"data-danger":g,children:c})})}},65494:()=>{},65930:(e,t,r)=>{"use strict";var n=r(61374),i=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},66411:(e,t,r)=>{"use strict";function n(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}r.d(t,{X:()=>n})},66463:(e,t,r)=>{"use strict";var n=r(37374),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,0x1fffffffffffff):0}},66853:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(65162);function i(e){(0,n.useEffect)(()=>{e&&window.performance?.mark(e)},[e])}},67743:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(65162),i=r(52451);let o=()=>(0,n.useContext)(i.c)},67959:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=r(65162),i=r(17391);function o(e,t){let[r,o]=(0,n.useState)(!1),s=(0,i._)(e);return(0,n.useEffect)(()=>{if(s())return void o(!0);let e=0,r=setInterval(()=>{e++,s()&&(o(!0),clearInterval(r)),void 0!==t&&e>=10*t&&clearInterval(r)},100);return()=>clearInterval(r)},[t]),r}},68284:(e,t,r)=>{"use strict";var n=r(95941),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},68905:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(e=>e).join(" ")}r.d(t,{cx:()=>n})},69021:(e,t,r)=>{"use strict";r.d(t,{I:()=>c});var n=r(4930),i=r(47034),o=r(65162),s=r(82408),a=r(20566),l=r.n(a);let u={[s.l.Small]:(0,i.px)(16),[s.l.Medium]:(0,i.px)(24),[s.l.Large]:(0,i.px)(32),[s.l.ExtraLarge]:(0,i.px)(64)},c=e=>{let{size:t,svg:r}=e,i=null===t?void 0:{height:u[t],width:u[t]},s=(0,o.useMemo)(()=>({__html:r}),[r]);return(0,n.jsx)("span",{className:l().root,children:(0,n.jsx)("span",{className:l().wrapper,style:i,dangerouslySetInnerHTML:s})})}},69416:e=>{e.exports={container:"UserSavedArticlesEmptyList_container__wCVlD",title:"UserSavedArticlesEmptyList_title__VM7Qm",description:"UserSavedArticlesEmptyList_description__NTv_m"}},70172:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var n=r(15932),i=r(65162);let o=(0,i.createContext)(e=>(0,i.createElement)("a",e));function s(e){let t=(0,n.r)(),r=(0,i.useContext)(o),s=e.href.startsWith(t.site.url)?e.href.replace(t.site.url,""):e.href;return r({...e,href:s})}},70468:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},71972:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});var n=r(4930),i=r(15932),o=r(65162),s=r(977);function a(e){let{themes:t}=e,r=(0,o.useContext)(s.I),a=t[(0,i.r)().features.appearance.theme],l=a?r.render(a):null;return(0,n.jsxs)(n.Fragment,{children:[l,e.children]})}},71975:(e,t,r)=>{"use strict";var n=r(96941),i=r(45846).f,o=r(44910),s=r(28741),a=r(34736),l=r(27617),u=r(97009);e.exports=function(e,t){var r,c,d,p,f,h=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[h]||a(h,{}):n[h]&&n[h].prototype)for(c in t){if(p=t[c],d=e.dontCallGetSet?(f=i(r,c))&&f.value:r[c],!u(m?c:h+(y?".":"#")+c,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),s(r,c,p,e)}}},72752:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});
1var n=r(4930),i=r(65162),o=r(87619);let s=e=>{let{children:t}=e,r=(0,i.useContext)(o.A);return(0,n.jsx)(o.A.Provider,{value:r+1,children:t})}},73305:(e,t,r)=>{"use strict";r.d(t,{O:()=>l});var n=r(4930),i=r(66853),o=r(65162),s=r(52451);let a={userData:null,authIsHandled:!1},l=e=>{let{children:t,manager:r}=e,{getAccessToken:l,requestLogin:u,requestLogout:c,requestCreateProfile:d,subscribe:p,getState:f,requestGetHelpFlow:h,requestRegretPurchase:m}=r||{},y=(0,o.useSyncExternalStore)(p||(()=>()=>{}),f||(()=>a),()=>a),g=(0,o.useMemo)(()=>({...y,getAccessToken:l||(async()=>null),requestLogin:u||(async()=>null),requestLogout:c||(()=>{}),requestCreateProfile:d||(async()=>null),requestGetHelpFlow:h||(()=>{}),requestRegretPurchase:m||(async()=>void 0)}),[l,d,u,c,h,m,y]);return(0,i.F)(y.authIsHandled?"auth-handled":void 0),(0,n.jsx)(s.c.Provider,{value:g,children:t})}},73956:(e,t,r)=>{"use strict";r.d(t,{z:()=>s});var n=r(4930),i=r(10287),o=r.n(i);function s(e){let{ref:t,zIndex:r}=e;return(0,n.jsx)("div",{className:o().backdrop,ref:t,style:void 0===r?void 0:{"--backdrop-z-index":r}})}},74082:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},74360:()=>{},74851:(e,t,r)=>{"use strict";r.d(t,{G:()=>n.G});var n=r(47182)},75120:(e,t,r)=>{"use strict";var n=r(84592),i=r(98900);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},75760:e=>{e.exports={container:"ModalPresenter_container__AvPxK"}},76311:(e,t,r)=>{"use strict";r.d(t,{FP:()=>d,JS:()=>s,M9:()=>a,NK:()=>o,Ox:()=>n,TS:()=>c,fQ:()=>u,hs:()=>l,wR:()=>i});let n=101,i=600,o=700,s=93,a=57,l=150,u=69,c=16,d=32},76696:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});let n=(0,r(65162).createContext)(null)},77674:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(4930),i=r(65162),o=r(87619);let s=e=>{let{children:t,...r}=e,s=(0,i.useContext)(o.A),a=`h${s>6?6:s}`;return(0,n.jsx)(o.A.Provider,{value:s,children:(0,n.jsx)(a,{...r,children:t})})}},79533:e=>{e.exports={panel:"SidePanel_panel__ACnJq",header:"SidePanel_header__k89uK",title:"SidePanel_title__q3KdN",closeButton:"SidePanel_closeButton__zQusA",children:"SidePanel_children__UYIPH"}},80195:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(65162);function i(){let[e,t]=(0,n.useState)(),[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(!1),a=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e=window.Cookiebot?window.Cookiebot.consent:function(){let e=decodeURIComponent(document.cookie).split("; ").find(e=>e.startsWith("CookieConsent"));if(e){let t=JSON.parse(e.replace("CookieConsent=","").replace(/%2c/g,",").replace(/'/g,'"').replace(/([{[,])\s*([a-zA-Z0-9_]+?):/g,'$1"$2":'));return{preferences:t.preferences,statistics:t.statistics,marketing:t.marketing,method:t.method}}}();function r(e){let{marketing:r,preferences:n,statistics:o}=e,l={marketing:r,preferences:n,statistics:o};t(l),i(e=>void 0===e?l:e),s(null!==e.method),a.current&&(a.current(l),a.current=void 0)}function n(){window.Cookiebot&&r(window.Cookiebot.consent)}return e&&r(e),window.addEventListener("CookiebotOnConsentReady",n),()=>{window.removeEventListener("CookiebotOnConsentReady",n)}},[]),{consent:e,initialConsent:r,requestConsent:e=>{if(!window.Cookiebot)return void console.warn("renew method called too early, cookie consent dialog still not available");"function"==typeof e&&(a.current=e);try{window.Cookiebot.renew()}catch(e){console.warn("Error renewing Cookiebot consent:",e)}},consentIsHandled:o}}},82153:(e,t,r)=>{"use strict";var n=r(60221),i=r(47352),o=r(49956),s=r(11192).indexOf,a=r(43876),l=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!i(a,r)&&i(n,r)&&l(c,r);for(;t.length>u;
1)i(n,r=t[u++])&&(~s(c,r)||l(c,r));return c}},82408:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n,i=((n={})[n.Small=0]="Small",n[n.Medium=1]="Medium",n[n.Large=2]="Large",n[n.ExtraLarge=3]="ExtraLarge",n)},82773:e=>{e.exports={root:"SidePanelDialog_root__5ns1k"}},83148:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});let n=(0,r(65162).createContext)({showUserSavedArticlesList:()=>{},showAudioPlaylist:()=>{},showStockWatchList:()=>{}})},83224:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(65162),i=r(5044);let o=()=>(0,n.useContext)(i.P)},83230:(e,t,r)=>{"use strict";let n,i,o;r.r(t),r.d(t,{default:()=>uy});var s,a,l,u,c={};r.r(c),r.d(c,{base64:()=>tG,base64url:()=>tU,bigint:()=>t1,boolean:()=>t6,browserEmail:()=>tD,cidrv4:()=>tZ,cidrv6:()=>tH,cuid:()=>tb,cuid2:()=>t_,date:()=>tK,datetime:()=>tX,domain:()=>tq,duration:()=>tE,e164:()=>tV,email:()=>tN,emoji:()=>tB,extendedDuration:()=>tA,guid:()=>tz,hex:()=>t8,hostname:()=>tW,html5Email:()=>tI,idnEmail:()=>tj,integer:()=>t2,ipv4:()=>tL,ipv6:()=>t$,ksuid:()=>tx,lowercase:()=>t3,mac:()=>tM,md5_base64:()=>rn,md5_base64url:()=>ri,md5_hex:()=>rr,nanoid:()=>tS,null:()=>t5,number:()=>t4,rfc5322Email:()=>tF,sha1_base64:()=>rs,sha1_base64url:()=>ra,sha1_hex:()=>ro,sha256_base64:()=>ru,sha256_base64url:()=>rc,sha256_hex:()=>rl,sha384_base64:()=>rp,sha384_base64url:()=>rf,sha384_hex:()=>rd,sha512_base64:()=>rm,sha512_base64url:()=>ry,sha512_hex:()=>rh,string:()=>t0,time:()=>tY,ulid:()=>tw,undefined:()=>t9,unicodeEmail:()=>tR,uppercase:()=>t7,uuid:()=>tT,uuid4:()=>tP,uuid6:()=>tO,uuid7:()=>tC,xid:()=>tk});var d={};r.r(d),r.d(d,{endsWith:()=>iX,gt:()=>iR,gte:()=>ij,includes:()=>iQ,length:()=>iq,lowercase:()=>iJ,lt:()=>iI,lte:()=>iF,maxLength:()=>iU,maxSize:()=>iZ,mime:()=>i1,minLength:()=>iW,minSize:()=>iH,multipleOf:()=>iM,negative:()=>iB,nonnegative:()=>i$,nonpositive:()=>iL,normalize:()=>i4,overwrite:()=>i2,positive:()=>iD,property:()=>i0,regex:()=>iV,size:()=>iG,slugify:()=>i3,startsWith:()=>iY,toLowerCase:()=>i5,toUpperCase:()=>i9,trim:()=>i6,uppercase:()=>iK});var p={};r.r(p),r.d(p,{ZodISODate:()=>ou,ZodISODateTime:()=>oa,ZodISODuration:()=>of,ZodISOTime:()=>od,date:()=>oc,datetime:()=>ol,duration:()=>oh,time:()=>op});var f={};r.r(f),r.d(f,{ZodAny:()=>s$,ZodArray:()=>sK,ZodBase64:()=>ss,ZodBase64URL:()=>sl,ZodBigInt:()=>sP,ZodBigIntFormat:()=>sC,ZodBoolean:()=>sz,ZodCIDRv4:()=>sr,ZodCIDRv6:()=>si,ZodCUID:()=>oK,ZodCUID2:()=>oY,ZodCatch:()=>aR,ZodCodec:()=>aM,ZodCustom:()=>aX,ZodCustomStringFormat:()=>sh,ZodDate:()=>sV,ZodDefault:()=>az,ZodDiscriminatedUnion:()=>s3,ZodE164:()=>sc,ZodEmail:()=>oF,ZodEmoji:()=>oW,ZodEnum:()=>ad,ZodExactOptional:()=>ak,ZodFile:()=>ay,ZodFunction:()=>aQ,ZodGUID:()=>oj,ZodIPv4:()=>o9,ZodIPv6:()=>se,ZodIntersection:()=>s8,ZodJWT:()=>sp,ZodKSUID:()=>o6,ZodLazy:()=>aq,ZodLiteral:()=>ah,ZodMAC:()=>o7,ZodMap:()=>aa,ZodNaN:()=>aD,ZodNanoID:()=>oV,ZodNever:()=>sG,ZodNonOptional:()=>aC,ZodNull:()=>sB,ZodNullable:()=>aS,ZodNumber:()=>sb,ZodNumberFormat:()=>sw,ZodObject:()=>sX,ZodOptional:()=>a_,ZodPipe:()=>aL,ZodPrefault:()=>aP,ZodPromise:()=>aJ,ZodReadonly:()=>aH,ZodRecord:()=>an,ZodSet:()=>au,ZodString:()=>oC,ZodStringFormat:()=>oI,ZodSuccess:()=>aI,ZodSymbol:()=>sF,ZodTemplateLiteral:()=>aU,ZodTransform:()=>av,ZodTuple:()=>at,ZodType:()=>oP,ZodULID:()=>o0,ZodURL:()=>oH,ZodUUID:()=>oB,ZodUndefined:()=>sj,ZodUnion:()=>s4,ZodUnknown:()=>sZ,ZodVoid:()=>sW,ZodXID:()=>o2,ZodXor:()=>s5,_ZodString:()=>oO,_default:()=>aT,_function:()=>aY,any:()=>sM,array:()=>sQ,base64:()=>sa,base64url:()=>su,bigint:()=>sO,boolean:()=>sT,catch:()=>aj,check:()=>a0,cidrv4:()=>sn,cidrv6:()=>so,codec:()=>aZ,cuid:()=>oQ,cuid2:()=>oX,custom:()=>a1,date:()=>sJ,describe:()=>a6,discriminatedUnion:()=>s7,e164:()=>sd,email:()=>oR,emoji:()=>oq,enum:()=>ap,exactOptional:()=>ax,file:()=>ag,float32:()=>sx,float64:()=>sS,function:()=>aY,guid:()=>oD,hash:()=>sv,hex:()=>sg,hostname:()=>sy,httpUrl:()=>oU,instanceof:()=>a9,int:()=>sk,int32:()=>sE,int64:()=>sN,intersection:()=>ae,ipv4:()=>o3,ipv6:()=>st,json:()=>a7,jwt:()=>sf,keyof:()=>sY,ksuid:()=>o5,lazy:()=>aV,literal:()=>am,looseObject:()=>s2,looseRecord:()=>as,mac:()=>o8,map:()=>al,meta:()=>a5,nan:()=>aB,nanoid:()=>oJ,nativeEnum:()=>af,never:()=>sU,nonoptional:()=>aN,null:()=>sL,nullable:()=>aE,nullish:()=>aA,number:()=>s_,object:()=>s0,optional:()=>aw,partialRecord:()=>ao,pipe:()=>a$,prefault:()=>aO,preprocess:()=>a8,promise:()=>aK,readonly:()=>aG,record:()=>ai,refine:()=>a2,set:()=>ac,strictObject:()=>s1,string:()=>
1oN,stringFormat:()=>sm,stringbool:()=>a3,success:()=>aF,superRefine:()=>a4,symbol:()=>sR,templateLiteral:()=>aW,transform:()=>ab,tuple:()=>ar,uint32:()=>sA,uint64:()=>sI,ulid:()=>o1,undefined:()=>sD,union:()=>s6,unknown:()=>sH,url:()=>oG,uuid:()=>oL,uuidv4:()=>o$,uuidv6:()=>oM,uuidv7:()=>oZ,void:()=>sq,xid:()=>o4,xor:()=>s9}),r(60477),r(65494),r(4540),r(74360);var h=r(4930),m=r(65162),y=r(83148);let g=e=>{let{children:t,onShowUserSavedArticlesList:r,onShowAudioPlaylist:n,onShowStockWatchList:i}=e,o=(0,m.useMemo)(()=>({showUserSavedArticlesList:e=>{r?.(e)},showAudioPlaylist:e=>{n?.(e)},showStockWatchList:e=>{i?.(e)}}),[n,i,r]);return(0,h.jsx)(y.B.Provider,{value:o,children:t})};var v=r(36198);let b=e=>{let{children:t,component:r}=e;return(0,h.jsx)(v.g.Provider,{value:r,children:t})};var _=r(19681);let w={currentMedia:null,playlist:[],isPlaying:!1,volume:0,playbackRate:1,currentTime:0,duration:0},k={play:()=>{},pause:()=>{},resume:()=>{},stop:()=>{},seek:()=>{},next:()=>{},setVolume:()=>{},setPlaybackRate:()=>{},addToPlaylist:async()=>({status:"error"}),removeFromPlaylist:async()=>({status:"error"}),clearPlaylist:async()=>({status:"error"}),reorderPlaylist:async()=>({status:"error"})};function x(e){let{manager:t,children:r}=e,n=(0,m.useSyncExternalStore)(t?.subscribe||(()=>()=>{}),t?.getState||(()=>w),()=>w),i=(0,m.useMemo)(()=>({state:n,controls:t?.controls||k,hasPlaylistAccess:t?.hasPlaylistAccess||(()=>!1),requestPlaylistAccess:t?.requestPlaylistAccess||(()=>{}),hasAudioAccess:t?.hasAudioAccess||(()=>!1),requestAudioAccess:t?.requestAudioAccess||(()=>{})}),[n,t?.controls,t?.hasPlaylistAccess,t?.requestPlaylistAccess,t?.hasAudioAccess,t?.requestAudioAccess]);return(0,h.jsx)(_.j.Provider,{value:i,children:r})}var S=r(42066),E=r(56613);let A="externalMediaPlayerEvent";var z=r(97743),T=r(52406),P=r(17391),O=r(85211),C=r(73956),N=r(23842);function I(e){let{target:t,children:r}=e;return(0,h.jsx)(N.B,{value:t,children:r})}var F=r(13114),R=r(44074),j=r(95162),D=r(47034),B=r(76311),L=r(94991),$=r(97873),M=r(52118),Z=r.n(M);let H={audioPlayer:"Lydafspiller",playerWithQueue:"Lydafspiller og lyttek\xf8"},G={"da-DK":H,"da-DK-x-formal":H,"nb-NO":{audioPlayer:"Lydavspiller",playerWithQueue:"Lydavspiller og lyttek\xf8"},"nn-NO":{audioPlayer:"Lydavspelar",playerWithQueue:"Lydavspelar og lyttek\xf8"}};var U=r(64218);let W={name:"AudioPlayer",elements:{controls:{color:"#FFFFFF",hoverColor:"#FFFFFF",backgroundColor:"#ff0000",backgroundHoverColor:"#ff0000",borderColor:"#ff0000",borderHoverColor:"#ff0000"},playbackRateTrigger:{font:{family:U.v.National2,weight:"600",size:(0,D.px)(24),lineHeight:(0,D.px)(24)}},playlistTrigger:{backgroundColor:"#ff0000"},progressIndicator:{backgroundColor:"#ff0000"},progressSlider:{backgroundColor:"#ff0000"},playbackRateListbox:{color:"#ff0000",font:{family:U.v.National2,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},progress:{backgroundColor:"#ff0000",font:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},header:{labelColor:"#ff0000",labelFont:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),letterSpacing:"0.025em",transform:"uppercase"},titleFont:{family:U.v.National2,weight:"800",size:(0,D.px)(19.2),lineHeight:(0,D.px)(27)},dateFont:{family:U.v.National2,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},progressSliderWithTime:{progressColor:"#ff0000",progressFont:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},timeLeftFont:{family:U.v.National2,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},thumbnail:{font:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(24),transform:"uppercase",letterSpacing:"0.025em"}},playbackRatePanel:{labelSelectedColor:"#ff0000",labelFont:{family:U.v.National2,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},minimizedMobilePlayer:{font:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},desktopPlayer:{labelColor:"#ff0000",titleFont:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},labelFont:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"},metadataFont:{family:U.v.National2,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(18)}}}};var q=r(86006);let V={name:"AudioPlayer",elements:{controls:{color:q.r.Black,hoverColor:q.r.White,backgroundColor:q.r.White,backgroundHoverColor:q.r.Black,borderColor:q.r.White,borderHoverColor:q.r.White},playbackRateTrigger:{font:{family:U.v.SanomatSansWeb,weight:"300",size:(0,D.px)(24),lineHeight:(0,D.px)(24)}},playlistTrigger:{backgroundColor:q.r.Blue2},progressIndicator:{backgroundColor:q.r.Blue2},progressSlider:{backgroundColor:q.r.Blue2},playbackRateListbox:{color:q.r.Blue2,font:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(16),lineHeight:(0,D.px)(20)}},progress:{backgroundColor:q.r.Blue2,font:{family:U.v.SanomatSansWeb,weight:"500",size:(0,D.px)(14),lineHeight:(0,D.px)(20)}},header:{labelColor:q.r.Blue2,labelFont:{family:U.v.SanomatSansWeb,weight:"500",size:(0,D.px)(12),lineHeight:(0,D.px)(12),transform:"uppercase"},titleFont:{family:U.v.SanomatAlt,weight:"800",size:(0,D.px)(24),lineHeight:(0,D.px)(27)},dateFont:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(13),lineHeight:(0,D.px)(13)}},progressSliderWithTime:{progressColor:q.r.Blue2,progressFont:{family:U.v.SanomatSansWeb,weight:"500",size:(0,D.px)(14),lineHeight:(0,D.px)(20)},timeLeftFont:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(14),lineHeight:(0,D.px)(20)}},thumbnail:{font:{family:U.v.SanomatSansWeb,weight:"500",size:(0,D.px)(12),lineHeight:(0,D.px)(12),transform:"uppercase"}},playbackRatePanel:{labelSelectedColor:q.r.Blue2,labelFont:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(16),lineHeight:(0,D.px)(20)}},minimizedMobilePlayer:{font:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(16),lineHeight:(0,D.px)(20)}},desktopPlayer:{labelColor:q.r.Blue2,titleFont:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(16),lineHeight:(0,D.px)(20)},labelFont:{family:U.v.SanomatSansWeb,weight:"500",size:(0,D.px)(12),lineHeight:(0,D.px)(12)},metadataFont:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(13),lineHeight:(0,D.px)(13)}}}},J={name:"AudioPlayer",elements:{controls:{color:"#FFFFFF",hoverColor:"#FFFFFF",backgroundColor:"#ff0000",backgroundHoverColor:"#ff0000",borderColor:"#ff0000",borderHoverColor:"#ff0000"},playbackRateTrigger:{font:{family:U.v.National2,weight:"600",size:(0,D.px)(24),lineHeight:(0,D.px)(24)}},playlistTrigger:{backgroundColor:"#ff0000"},progressIndicator:{backgroundColor:"#ff0000"},progressSlider:{backgroundColor:"#ff0000"},playbackRateListbox:{color:"#ff0000",font:{family:U.v.National2,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},progress:{backgroundColor:"#ff0000",font:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},header:{labelColor:"#ff0000",labelFont:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),letterSpacing:"0.025em",transform:"uppercase"},titleFont:{family:U.v.National2,weight:"800",size:(0,D.px)(19.2),lineHeight:(0,D.px)(27)},dateFont:{family:U.v.National2,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},progressSliderWithTime:{progressColor:"#ff0000",progressFont:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},timeLeftFont:{family:U.v.National2,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},thumbnail:{font:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(24),transform:"uppercase",letterSpacing:"0.025em"}},playbackRatePanel:{labelSelectedColor:"#ff0000",labelFont:{family:U.v.National2,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},minimizedMobilePlayer:{font:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},desktopPlayer:{labelColor:"#ff0000",titleFont:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},labelFont:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"},metadataFont:{family:U.v.National2,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(18)}}}};var K=r(15197);let Q={name:"AudioPlayer",elements:{controls:{color:K.r.White,hoverColor:K.r.White,backgroundColor:K.r.Red1,backgroundHoverColor:K.r.Red2,borderColor:K.r.Red1,borderHoverColor:K.r.Red2},playbackRateTrigger:{font:{family:U.v.BTGrotesk,weight:"600",size:(0,D.px)(24),lineHeight:(0,D.px)(24)}},playlistTrigger:{backgroundColor:K.r.Red1},progressIndicator:{backgroundColor:K.r.Red1},progressSlider:{backgroundColor:K.r.Red1},playbackRateListbox:{color:K.r.Red1,font:{family:U.v.BTGrotesk,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},progress:{backgroundColor:K.r.Red1,font:{family:U.v.BTGrotesk,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},header:{labelColor:K.r.Red1,labelFont:{family:U.v.BTGrotesk,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),letterSpacing:"0.025em",transform:"uppercase"},titleFont:{family:U.v.BTGrotesk,weight:"800",size:(0,D.px)(19.2),lineHeight:(0,D.px)(27)},dateFont:{family:U.v.BTGrotesk,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},progressSliderWithTime:{progressColor:K.r.Red1,progressFont:{family:U.v.BTGrotesk,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},timeLeftFont:{family:U.v.BTGrotesk,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},thumbnail:{font:{family:U.v.BTGrotesk,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(24),transform:"uppercase",letterSpacing:"0.025em"}},playbackRatePanel:{labelSelectedColor:K.r.Red1,labelFont:{family:U.v.BTGrotesk,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},minimizedMobilePlayer:{font:{family:U.v.BTGrotesk,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},desktopPlayer:{labelColor:K.r.Red1,titleFont:{family:U.v.BTGrotesk,size:(0,D.px)(14),weight:"800",lineHeight:(0,D.px)(18)},labelFont:{family:U.v.BTGrotesk,size:(0,D.px)(12),weight:"800",lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"},metadataFont:{family:U.v.BTGrotesk,size:(0,D.px)(12),weight:"600",lineHeight:(0,D.px)(18)}}}},Y={name:"AudioPlayer",elements:{controls:{color:"#FFFFFF",hoverColor:"#FFFFFF",backgroundColor:"#ff0000",backgroundHoverColor:"#ff0000",borderColor:"#ff0000",borderHoverColor:"#ff0000"},playbackRateTrigger:{font:{family:U.v.National2,weight:"600",size:(0,D.px)(24),lineHeight:(0,D.px)(24)}},playlistTrigger:{backgroundColor:"#ff0000"},progressIndicator:{backgroundColor:"#ff0000"},progressSlider:{backgroundColor:"#ff0000"},playbackRateListbox:{color:"#ff0000",font:{family:U.v.National2,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},progress:{backgroundColor:"#ff0000",font:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},header:{labelColor:"#ff0000",labelFont:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),letterSpacing:"0.025em",transform:"uppercase"},titleFont:{family:U.v.National2,weight:"800",size:(0,D.px)(19.2),lineHeight:(0,D.px)(27)},dateFont:{family:U.v.National2,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},progressSliderWithTime:{progressColor:"#ff0000",progressFont:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},timeLeftFont:{family:U.v.National2,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},thumbnail:{font:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(24),transform:"uppercase",letterSpacing:"0.025em"}},playbackRatePanel:{labelSelectedColor:"#ff0000",labelFont:{family:U.v.National2,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},minimizedMobilePlayer:{font:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},desktopPlayer:{labelColor:"#ff0000",titleFont:{family:U.v.National2,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},labelFont:{family:U.v.National2,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"},metadataFont:{family:U.v.National2,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(18)}}}};var X=r(44937);let ee={name:"AudioPlayer",elements:{controls:{color:X.u.White,hoverColor:X.u.White,backgroundColor:X.u.Blue1,backgroundHoverColor:X.u.Blue1,borderColor:X.u.Blue1,borderHoverColor:X.u.Blue1},playbackRateTrigger:{font:{family:U.v.LedgerGrotesk,weight:"600",size:(0,D.px)(24),lineHeight:(0,D.px)(24)}},playlistTrigger:{backgroundColor:X.u.Blue1},progressIndicator:{backgroundColor:X.u.Blue1},progressSlider:{backgroundColor:X.u.Blue1},playbackRateListbox:{color:X.u.Blue2,font:{family:U.v.LedgerGrotesk,weight:"600",size:(0,D.px)(17),lineHeight:(0,D.px)(24)}},progress:{backgroundColor:X.u.Blue1,font:{family:U.v.LedgerGrotesk,weight:"700",size:(0,D.px)(14),lineHeight:(0,D.px)(20)}},header:{labelColor:X.u.Blue2,labelFont:{family:U.v.LedgerGrotesk,weight:"700",size:(0,D.px)(12),lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"},titleFont:{family:U.v.LedgerGrotesk,weight:"750",size:(0,D.px)(22),lineHeight:(0,D.px)(26)},dateFont:{family:U.v.LedgerGrotesk,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(18)}},progressSliderWithTime:{progressColor:X.u.Blue2,progressFont:{family:U.v.LedgerGrotesk,weight:"700",size:(0,D.px)(14),lineHeight:(0,D.px)(20)},timeLeftFont:{family:U.v.LedgerGrotesk,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(20)}},thumbnail:{font:{family:U.v.LedgerGrotesk,weight:"700",size:(0,D.px)(12),lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"}},playbackRatePanel:{labelSelectedColor:X.u.Blue2,labelFont:{family:U.v.LedgerGrotesk,weight:"600",size:(0,D.px)(17),lineHeight:(0,D.px)(24)}},minimizedMobilePlayer:{font:{family:U.v.LedgerGrotesk,weight:"750",size:(0,D.px)(14),lineHeight:(0,D.px)(20)}},desktopPlayer:{labelColor:X.u.Blue2,labelFont:{family:U.v.LedgerGrotesk,weight:"700",size:(0,D.px)(14),lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"},titleFont:{family:U.v.LedgerGrotesk,weight:"750",size:(0,D.px)(14),lineHeight:(0,D.px)(20)},metadataFont:{family:U.v.LedgerGrotesk,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(12)}}}},et={name:"AudioPlayer",elements:{controls:{color:"#FFFFFF",hoverColor:"#FFFFFF",backgroundColor:"#ff0000",backgroundHoverColor:"#ff0000",borderColor:"#ff0000",borderHoverColor:"#ff0000"},playbackRateTrigger:{font:{family:U.v.FaktorSans,weight:"600",size:(0,D.px)(24),lineHeight:(0,D.px)(24)}},playlistTrigger:{backgroundColor:"#ff0000"},progressIndicator:{backgroundColor:"#ff0000"},progressSlider:{backgroundColor:"#ff0000"},playbackRateListbox:{color:"#ff0000",font:{family:U.v.FaktorSans,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},progress:{backgroundColor:"#ff0000",font:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},header:{labelColor:"#ff0000",labelFont:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),letterSpacing:"0.025em",transform:"uppercase"},titleFont:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(19.2),lineHeight:(0,D.px)(27)},dateFont:{family:U.v.FaktorSans,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},progressSliderWithTime:{progressColor:"#ff0000",progressFont:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},timeLeftFont:{family:U.v.FaktorSans,weight:"600",size:(0,D.px)(14),lineHeight:(0,D.px)(14)}},thumbnail:{font:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(24),transform:"uppercase",letterSpacing:"0.025em"}},playbackRatePanel:{labelSelectedColor:"#ff0000",labelFont:{family:U.v.FaktorSans,weight:"500",size:(0,D.px)(17),lineHeight:(0,D.px)(23)}},minimizedMobilePlayer:{font:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)}},desktopPlayer:{labelColor:"#ff0000",titleFont:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(14),lineHeight:(0,D.px)(18)},labelFont:{family:U.v.FaktorSans,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14),transform:"uppercase",letterSpacing:"0.025em"},metadataFont:{family:U.v.FaktorSans,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(18)}}}};var er=r(3351);let en={berlingske:V,bt:Q,euroinvestor:ee,weekendavisen:{name:"AudioPlayer",elements:{controls:{color:er.G.White,hoverColo
1r:er.G.Black,backgroundColor:er.G.Black,backgroundHoverColor:er.G.White,borderColor:er.G.White,borderHoverColor:er.G.White},playbackRateListbox:{font:{family:U.v.WEASans,weight:"400",size:(0,D.px)(16),lineHeight:(0,D.px)(20),letterSpacing:(0,D.px)(.5)},color:er.G.Blue2},playbackRatePanel:{labelFont:{family:U.v.WEASans,weight:"400",size:(0,D.px)(20),lineHeight:(0,D.px)(24),letterSpacing:(0,D.px)(.5)},labelSelectedColor:er.G.Blue2},playbackRateTrigger:{font:{family:U.v.WEASans,weight:"400",size:(0,D.px)(20),lineHeight:(0,D.px)(24),letterSpacing:(0,D.px)(.5)}},playlistTrigger:{backgroundColor:er.G.Blue2},progress:{font:{family:U.v.WEASans,weight:"450",size:(0,D.px)(14),lineHeight:(0,D.px)(16.8),letterSpacing:(0,D.px)(.6)},backgroundColor:er.G.Blue2},progressIndicator:{backgroundColor:er.G.Blue2},progressSlider:{backgroundColor:er.G.Blue2},progressSliderWithTime:{progressColor:er.G.Blue2,progressFont:{family:U.v.WEASans,weight:"450",size:(0,D.px)(14),lineHeight:(0,D.px)(16.8),letterSpacing:(0,D.px)(.6)},timeLeftFont:{family:U.v.WEASans,weight:"450",size:(0,D.px)(14),lineHeight:(0,D.px)(16.8),letterSpacing:(0,D.px)(.6)}},header:{labelColor:er.G.Blue2,labelFont:{family:U.v.WEASans,weight:"700",size:(0,D.px)(12),lineHeight:(0,D.px)(15),letterSpacing:(0,D.px)(2),transform:"uppercase"},titleFont:{family:U.v.WEANewDisplay,weight:"450",size:(0,D.px)(32),lineHeight:(0,D.px)(34),letterSpacing:(0,D.px)(.2)},dateFont:{family:U.v.WEASans,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(14.4),letterSpacing:(0,D.px)(.6),transform:"uppercase"}},thumbnail:{font:{family:U.v.WEASans,weight:"800",size:(0,D.px)(12),lineHeight:(0,D.px)(14.4),letterSpacing:(0,D.px)(.6),transform:"uppercase"}},minimizedMobilePlayer:{font:{family:U.v.WEASans,weight:"500",size:(0,D.px)(16),lineHeight:(0,D.px)(20)}},desktopPlayer:{labelColor:er.G.Blue2,titleFont:{family:U.v.WEASans,weight:"500",size:(0,D.px)(16),lineHeight:(0,D.px)(20)},labelFont:{family:U.v.WEASans,weight:"700",size:(0,D.px)(12),lineHeight:(0,D.px)(15),letterSpacing:(0,D.px)(2),transform:"uppercase"},metadataFont:{family:U.v.WEASans,weight:"600",size:(0,D.px)(12),lineHeight:(0,D.px)(14.4),letterSpacing:(0,D.px)(.5),transform:"uppercase"}}}},alfa:W,bravo:J,charlie:Y,nettavisen:et},ei=(0,S.O)(()=>Promise.all([r.e(8300),r.e(6511),r.e(3721),r.e(8881),r.e(2364),r.e(8024)]).then(r.bind(r,78024)).then(e=>e.DesktopPlayer)),eo=(0,S.O)(()=>Promise.all([r.e(6511),r.e(8300),r.e(3721),r.e(2364),r.e(4803)]).then(r.bind(r,4803)).then(e=>e.MobilePlayer)),es=(0,S.O)(()=>Promise.all([r.e(2617),r.e(3672),r.e(9046),r.e(9157),r.e(4822)]).then(r.bind(r,54822)).then(e=>e.PlaylistPanel));function ea(e){let{ref:t,isNativeApp:r}=e,n=(0,E.O)(G),{state:i,hasPlaylistAccess:o,requestPlaylistAccess:s,controls:a}=(0,$.R)(),[l,u]=(0,m.useState)(!1),[c,d]=(0,m.useState)(!1),[p,f]=(0,m.useState)(null),[y,g]=(0,m.useState)(null),[v,b]=(0,m.useState)(null),[_,w]=(0,m.useState)(null),[k,x]=(0,m.useState)(null),{emitPlayEvent:S}=(e=>{let[t]=(0,m.useState)(Math.random().toString(36).substring(2,12)),r=(0,m.useCallback)(()=>{let e=new CustomEvent(A,{detail:{id:t}});window.dispatchEvent(e)},[t]);return(0,m.useEffect)(()=>{let r=r=>{r.detail.id!==t&&e?.()};return window.addEventListener(A,r),()=>{window.removeEventListener(A,r)}},[t,e]),{emitPlayEvent:r}})(i.isPlaying?a.pause:void 0);(0,m.useEffect)(()=>{i.isPlaying&&S()},[i.isPlaying,S]);let N=l&&null!==k;(0,z._)({active:l,offset:0}),(0,T.r)({active:N,elements:[_],onDeactivate:(0,P._)(e=>!e.defaultPrevented&&(e.preventDefault(),u(!1),!0)),returnFocusTo:[v,p]});let F=N?{role:"dialog","aria-modal":!0,"aria-label":n.playerWithQueue}:{};(0,m.useEffect)(()=>{if(l&&y)return y.addEventListener("focusin",e),()=>{y.removeEventListener("focusin",e)};function e(e){e.target instanceof HTMLElement&&b(e.target)}},[l,y]);let R=(0,O.N)(j.f.desktopUp),M=null!==i.currentMedia,H=void 0!==R&&M?R?(0,D.px)(108):r?(0,D.px)(94):(0,D.px)(74):(0,D.px)(0),U=c?(0,D.px)(0):H,W=(0,P._)(e=>{if(o()){f(e?.returnFocusTo??null),b(null),u(!0);return}s()});function q(e){e?W():u(!1)}return(0,m.useImperativeHandle)(t,()=>({showPlaylist:W}
1)),(0,h.jsxs)(L.J,{themes:en,children:[(0,h.jsx)(el,{playerHeight:H}),l&&(0,h.jsx)(C.z,{zIndex:B.Ox}),(0,h.jsx)(I,{target:N?_:null,children:(0,h.jsxs)("div",{ref:w,...F,children:[(0,h.jsx)("div",{className:Z().playlist,"data-above-player":c&&l,style:{"--playlist--bottom-inset":U},children:l&&(0,h.jsx)(es,{onClose:function(){u(!1)},ref:x})}),M&&(0,h.jsx)("section",{"aria-label":n.audioPlayer,className:Z().root,ref:g,children:void 0!==R&&(R?(0,h.jsx)(ei,{onTogglePlaylist:q,isPlaylistVisible:l}):(0,h.jsx)(eo,{onTogglePlaylist:q,isPlaylistVisible:l,onToggleExpanded:d,isNativeApp:r}))})]})})]})}function el(e){return e.playerHeight&&e.playerHeight!==(0,D.px)(0)?(0,h.jsx)(F.X,{children:` 2.${R.y} { 3 --bsc-audioplayer--player-height: ${e.playerHeight}; 4} 5 `}):null}var eu=r(38594),ec=r(12687),ed=r(10972),ep=((s=ep||{}).MP3_NOT_FOUND="MP3_NOT_FOUND",s.NOT_PROCESSED="NOT_PROCESSED",s.REQUEST_FAILED="REQUEST_FAILED",s);async function ef(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{var n,i,o;let s=await fetch((n=e.projectId,i=e.nodeId,o=t,`https://audio.beyondwords.io/cf/${n}?external_id=${i}&retry=${o}`),{cache:r?"default":"no-store"});if(!s.ok)throw Error("REQUEST_FAILED");let a=await s.json();if(!(a?.podcast&&"processed"===a.podcast.state))return{success:!1,error:{type:"BEYONDWORD",message:"NOT_PROCESSED"}};let l=a.podcast.media.find(e=>e.url.endsWith(".mp3"));if(l?.state!=="processed")return{success:!1,error:{type:"BEYONDWORD",message:"MP3_NOT_FOUND"}};return{success:!0,data:{duration:l.duration,imageUrl:a.podcast.image||void 0,publishDate:a.podcast.published_at,src:l.url}}}catch(e){return{success:!1,error:{type:"ERROR",message:e.message}}}}let eh="AV-0010",em="AV-0011",ey={errorHeading:"Der opstod en fejl, pr\xf8v igen senere",errorBody:"Fejlkode: {errorCode}",requestPlaylistTitle:"Vil du have adgang til lyttek\xf8en?",requestPlaylistDescription:"Hvis du har en profil hos {siteName}, kan du f\xe5 adgang til lyttek\xf8en.",requestPodcastTitle:"Vil du tilf\xf8je podcasten til lyttek\xf8?",requestPodcastDescription:"Hvis du har en profil hos {siteName}, kan du tilf\xf8je podcasten til lyttek\xf8en.",requestArticleTitle:"Vil du tilf\xf8je artiklen til lyttek\xf8?",requestArticleProfileDescription:"Hvis du har en profil hos {siteName}, kan du tilf\xf8je artikler til lyttek\xf8en.",requestArticleUpgradeDescription:"Hvis du opgraderer dit abonnement, kan du tilf\xf8je artikler til lyttek\xf8en.",requestArticleSubscriptionDescription:"Hvis du har {subscriptionText}, kan du tilf\xf8je artikler til lyttek\xf8en.",requestListenTitle:"Vil du lytte til artiklen?",requestListenProfileDescription:"Hvis du har en profil hos {siteName}, kan du lytte til artiklen.",requestListenSubscriptionDescription:"Hvis du har {subscriptionText}, kan du lytte til artiklen.",requestListenUpgradeDescription:"Hvis du opgraderer dit abonnement, kan du lytte til artiklen.",podcastAddedToQueue:"Podcast tilf\xf8jet til lyttek\xf8",articleAddedToQueue:"Artikel tilf\xf8jet til lyttek\xf8",podcastRemovedFromQueue:"Podcast fjernet fra lyttek\xf8",articleRemovedFromQueue:"Artikel fjernet fra lyttek\xf8",itemsRemovedFromQueue:"{count} elementer fjernet fra lyttek\xf8",queueCleared:"Lyttek\xf8 ryddet"},eg={...ey,requestPlaylistTitle:"Vil De have adgang til lyttek\xf8en?",requestPlaylistDescription:"Hvis De har en profil hos {siteName}, kan De f\xe5 adgang til lyttek\xf8en.",requestPodcastTitle:"Vil De tilf\xf8je podcasten til lyttek\xf8?",requestPodcastDescription:"Hvis De har en profil hos {siteName}, kan De tilf\xf8je podcasten til lyttek\xf8en.",requestArticleTitle:"Vil De tilf\xf8je artiklen til lyttek\xf8?",requestArticleProfileDescription:"Hvis De har en profil hos {siteName}, kan De tilf\xf8je artikler til lyttek\xf8en.",requestArticleUpgradeDescription:"Hvis De opgraderer Deres abonnement, kan De tilf\xf8je artikler til lyttek\xf8en.",requestArticleSubscriptionDescription:"Hvis De har {subscriptionText}, kan De tilf\xf8je artikler til lyttek\xf8en.",requestListenTitle:"Vil De lytte til artiklen?",requestListenProfileDescription:"Hvis De har en profil hos {siteName}, kan De lytte til artiklen.",requestListenSubscriptionDescription:"Hvis De har {subscriptionText}, kan De lytte til artiklen.",requestListenUpgradeDescription:"Hvis De opgraderer Deres abonnement, kan De lytte til artiklen."},ev={"da-DK":ey,"da-DK-x-formal":eg,"nb-NO":{errorHeading:"Det oppstod en feil, pr\xf8v igjen senere",errorBody:"Feilkode: {errorCode}",requestPlaylistTitle:"Vil du ha tilgang til lyttek\xf8en?",requestPlaylistDescription:"Hvis du har en profil hos {siteName}, kan du f\xe5 tilgang til lyttek\xf8en.",requestPodcastTitle:"Vil du legge podkasten til i lyttek\xf8?",requestPodcastDescription:"Hvis du har en profil hos {siteName}, kan du legge podkasten til i lyttek\xf8en.",requestArticleTitle:"Vil du legge artikkelen til i lyttek\xf8?",requestArticleProfileDescription:"Hvis du har en profil hos {siteName}, kan du legge artikler til i lyttek\xf8en.",requestArticleUpgradeDescription:"Hvis du oppgraderer abonnementet ditt, kan du legge artikler til i lyttek\xf8en.",requestArticleSubscriptionDescription:"Hvis du har {subscriptionText}, kan du legge artikler til i lyttek\xf8en.",requestListenTitle:"Vil du lytte til artikkelen?",requestListenProfileDescription:"Hvis du har en profil hos {siteName}, kan du lytte til artikkelen.",requestListenSubscriptionDescription:"Hvis du har {subscriptionText}, kan du lytte til artikkelen.",requestListenUpgradeDescription:"Hvis du oppgraderer abonnementet ditt, kan du lytte til artikkelen.",podcastAddedToQueue:"Podkast lagt til i lyttek\xf8",articleAddedToQueue:"Artikkel lagt til i lyttek\xf8",podcastRemovedFromQueue:"Podkast fjernet fra lyttek\xf8",articleRemovedFromQueue:"Artikkel fjernet fra lyttek\xf8",itemsRemovedFromQueue:"{count} elementer fjernet fra lyttek\xf8",queueCleared:"Lyttek\xf8 t\xf8mt"},"nn-NO":{errorHeading:"Det oppstod ein feil, pr\xf8v igjen seinare",errorBody:"Feilkode: {errorCode}",requestPlaylistTitle:"Vil du ha tilgang til lyttek\xf8en?",requestPlaylistDescription:"Om du har ein profil hos {siteName}, kan du f\xe5 tilgang til lyttek\xf8en.",requestPodcastTitle:"Vil du leggje podkasten til i lyttek\xf8?",requestPodcastDescription:"Om du har ein profil hos {siteName}, kan du leggje podkasten til i lyttek\xf8en.",requestArticleTitle:"Vil du leggje artikkelen til i lyttek\xf8?",requestArticleProfileDescription:"Om du har ein profil hos {siteName}, kan du leggje artiklar til i lyttek\xf8en.",requestArticleUpgradeDescription:"Om du oppgraderer abonnementet ditt, kan du leggje artiklar til i lyttek\xf8en.",requestArticleSubscriptionDescription:"Om du har {subscriptionText}, kan du leggje artiklar til i lyttek\xf8en.",requestListenTitle:"Vil du lytte til artikkelen?",requestListenProfileDescription:"Om du har ein profil hos {siteName}, kan du lytte til artikkelen.",requestListenSubscriptionDescription:"Om du har {subscriptionText}, kan du lytte til artikkelen.",requestListenUpgradeDescription:"Om du oppgraderer abonnementet ditt, kan du lytte til artikkelen.",podcastAddedToQueue:"Podkast lagt til i lyttek\xf8",articleAddedToQueue:"Artikkel lagt til i lyttek\xf8",podcastRemovedFromQueue:"Podkast fjerna fr\xe5 lyttek\xf8",articleRemovedFromQueue:"Artikkel fjerna fr\xe5 lyttek\xf8",itemsRemovedFromQueue:"{count} element fjerna fr\xe5 lyttek\xf8",queueCleared:"Lyttek\xf8 t\xf8mt"}};var eb=r(66411);function e_(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,eb.X)({event:e,player:{videoPlatform:"@berlingske-media/audioplayer",videoName:t.title,videoLabel:t.label,videoUrl:t.src,videoType:t.type,videoID:t.referenceId,videoLength:t.durationInSeconds,videoPubDate:"string"==typeof t.date?t.date:t.date.toISOString()||"",...r}})}function ew(e){return new Promise((t,r)=>{let n=new Audio;n.preload="metadata",n.src=e,n.addEventListener("loadedmetadata",()=>{t(n.duration)}),n.addEventListener("error",()=>{r(Error("Failed to load audio"))})})}function ek(){if("u"<typeof sessionStorage)return null;
5try{let e=sessionStorage.getItem("bmx--audioplayer--player-restore");if(e){let t=JSON.parse(e);if(t&&"currentMedia"in t&&t.isPlaying)return t}}catch{}return null}let ex={"audio.text-to-speech":"TEXT_TO_SPEECH","audio.narrated":"NARRATED","audio.podcast":"PODCAST"};var eS=r(73305),eE=r(11945);function eA(e){let t=`bmx--${e}`,r=localStorage;return{get:()=>{try{let e=r?.getItem(t);return e?JSON.parse(e):void 0}catch{}},set:e=>{try{let n=JSON.stringify(e);r?.setItem(t,n)}catch{}},clear:()=>{try{r?.removeItem(t)}catch{}}}}async function ez(e,t){return new Promise(r=>{if(!window.userFlows){console.warn("User flows SDK not available"),r();return}let n=e=>{e.isOpen||(window.userFlows?.unsubscribe(n),r())},i=t?eE.ActionSource[t]:void 0;window.userFlows.subscribe(n),window.userFlows.actions.open(e,i)})}var eT=r(66853),eP=r(80195);let eO=["preferences","statistics","marketing"];var eC=r(56866),eN=r(4650);let eI=e=>{let{children:t,config:r}=e;return(0,h.jsx)(eN.B.Provider,{value:r,children:t})};var eF=r(45525);let eR=e=>{let{children:t,environment:r}=e;return(0,h.jsx)(eF.n.Provider,{value:r,children:t})};function ej(e,t,r){function n(r,n){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:n,constr:s,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,n);let i=s.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in r||(r[t]=i[t].bind(r))}}let i=r?.Parent??Object;class o extends i{}function s(e){var t;let i=r?.Parent?new o:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}Object.freeze({status:"aborted"}),Symbol("zod_brand");class eD extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eB extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let eL={};function e$(e){return e&&Object.assign(eL,e),eL}function eM(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function eZ(e,t="|"){return e.map(e=>e7(e)).join(t)}function eH(e,t){return"bigint"==typeof t?t.toString():t}function eG(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function eU(e){return null==e}function eW(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}let eq=Symbol("evaluating");function eV(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==eq)return void 0===n&&(n=eq,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function eJ(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function eK(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function eQ(e){return JSON.stringify(e)}let eY="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function eX(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let e0=eG(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function e1(e){if(!1===eX(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==eX(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function e2(e){return e1(e)?{...e}:Array.isArray(e)?[...e]:e}let e4=new Set(["string","number","symbol"]),e6=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e5(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function e9(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function e3(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function e7(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}let e8={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},te={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tt(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function tr(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function tn(e){return"string"==typeof e?e:e?.message}function ti(e,t,r){let n={...e,path:e.path??[]};return e.message||(n.message=tn(e.inst?._zod.def?.error?.(e))??tn(t?.error?.(e))??tn(r.customError?.(e))??tn(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function to(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ts(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ta(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}let tl=(e,t)=>
5{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,eH,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tu=ej("$ZodError",tl),tc=ej("$ZodError",tl,{Parent:Error}),td=e=>(t,r,n,i)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new eD;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ti(e,o,e$())));throw eY(t,i?.callee),t}return s.value},tp=td(tc),tf=e=>async(t,r,n,i)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ti(e,o,e$())));throw eY(t,i?.callee),t}return s.value},th=tf(tc),tm=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new eD;return o.issues.length?{success:!1,error:new(e??tu)(o.issues.map(e=>ti(e,i,e$())))}:{success:!0,data:o.value}},ty=tm(tc),tg=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ti(e,i,e$())))}:{success:!0,data:o.value}},tv=tg(tc),tb=/^[cC][^\s-]{8,}$/,t_=/^[0-9a-z]+$/,tw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tk=/^[0-9a-vA-V]{20}$/,tx=/^[A-Za-z0-9]{27}$/,tS=/^[a-zA-Z0-9_-]{21}$/,tE=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,tA=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tz=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,tT=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,tP=tT(4),tO=tT(6),tC=tT(7),tN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tI=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,tF=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,tR=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,tj=tR,tD=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function tB(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}let tL=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,t$=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,tM=e=>{let t=e5(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tZ=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tH=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tU=/^[A-Za-z0-9_-]*$/,tW=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,tq=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,tV=/^\+[1-9]\d{6,14}$/,tJ="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",tK=RegExp(`^${tJ}$`);function tQ(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tY(e){return RegExp(`^${tQ(e)}$`)}function tX(e){let t=tQ({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${tJ}T(?:${n})$`)}let t0=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},t1=/^-?\d+n?$/,t2=/^-?\d+$/,t4=/^-?\d+(?:\.\d+)?$/,t6=/^(?:true|false)$/i,t5=/^null$/i,t9=/^undefined$/i,t3=/^[^A-Z]*$/,t7=/^[^a-z]*$/,t8=/^[0-9a-fA-F]*$/;function re(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function rt(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let rr=/^[0-9a-fA-F]{32}$/,rn=re(22,"=="),ri=rt(22),ro=/^[0-9a-fA-F]{40}$/,rs=re(27,"="),ra=rt(27),rl=/^[0-9a-fA-F]{64}$/,ru=re(43,"="),rc=rt(43),rd=/^[0-9a-fA-F]{96}$/,rp=re(64,""),rf=rt(64),rh=/^[0-9a-fA-F]{128}$/,rm=re(86,"=="),ry=rt(86),rg=ej("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),rv={number:"number",bigint:"bigint",object:"date"},rb=ej("$ZodCheckLessThan",(e,t)=>{rg.init(e,t);let r=rv[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),r_=ej("$ZodCheckGreaterThan",(e,t)=>{rg.init(e,t);let r=rv[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rw=ej("$ZodCheckMultipleOf",(e,t)=>{rg.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===function(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(n)){let e=n.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let o=r>i?r:i;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),rk=ej("$ZodCheckNumberFormat",(e,t)=>{rg.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,o]=e8[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=o,r&&(n.pattern=t2)}),e._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a))return void s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});if(!Number.isSafeInteger(a))return void(a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,
vendor: 4,696 bytes, line 5
5continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}))}a<i&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),rx=ej("$ZodCheckBigIntFormat",(e,t)=>{rg.init(e,t);let[r,n]=te[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n}),e._zod.check=i=>{let o=i.value;o<r&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>n&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),rS=ej("$ZodCheckMaxSize",(e,t)=>{var r;rg.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eU(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;n.size<=t.maximum||r.issues.push({origin:to(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rE=ej("$ZodCheckMinSize",(e,t)=>{var r;rg.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eU(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;n.size>=t.minimum||r.issues.push({origin:to(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rA=ej("$ZodCheckSizeEquals",(e,t)=>{var r;rg.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eU(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=r=>{let n=r.value,i=n.size;if(i===t.size)return;let o=i>t.size;r.issues.push({origin:to(n),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),rz=ej("$ZodCheckMaxLength",(e,t)=>{var r;rg.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eU(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=ts(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rT=ej("$ZodCheckMinLength",(e,t)=>{var r;rg.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eU(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=ts(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rP=ej("$ZodCheckLengthEquals",(e,t)=>{var r;rg.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!eU(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let o=ts(n),s=i>t.length;r.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),rO=ej("$ZodCheckStringFormat",(e,t)=>{var r,n;rg.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),rC=ej("$ZodCheckRegex",(e,t)=>{rO.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),rN=ej("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=t3),rO.init(e,t)}),rI=ej("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=t7),rO.init(e,t)}),rF=ej("$ZodCheckIncludes",(e,t)=>{rg.init(e,t);let r=e5(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
5:r.value,inst:e,continue:!t.abort})}}),rR=ej("$ZodCheckStartsWith",(e,t)=>{rg.init(e,t);let r=RegExp(`^${e5(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),rj=ej("$ZodCheckEndsWith",(e,t)=>{rg.init(e,t);let r=RegExp(`.*${e5(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function rD(e,t,r){e.issues.length&&t.issues.push(...tr(r,e.issues))}let rB=ej("$ZodCheckProperty",(e,t)=>{rg.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(r=>rD(r,e,t.property));rD(r,e,t.property)}}),rL=ej("$ZodCheckMimeType",(e,t)=>{rg.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),r$=ej("$ZodCheckOverwrite",(e,t)=>{rg.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class rM{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let rZ={major:4,minor:3,patch:6},rH=ej("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rZ;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=tt(e);for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new eD;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=tt(e,t)))});else{if(e.issues.length===t)continue;i||(i=tt(e,t))}}return n?n.then(()=>e):e},r=(r,i,o)=>{if(tt(r))return r.aborted=!0,r;let s=t(i,n,o);if(s instanceof Promise){if(!1===o.async)throw new eD;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,o)):r(t,i,o)}let s=e._zod.parse(i,o);if(s instanceof Promise){if(!1===o.async)throw new eD;return s.then(e=>t(e,n,o))}return t(s,n,o)}}eV(e,"~standard",()=>({validate:t=>{try{let r=ty(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return tv(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),rG=ej("$ZodString",(e,t)=>{rH.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??t0(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),rU=ej("$ZodStringFormat",(e,t)=>{rO.init(e,t),rG.init(e,t)}),rW=ej("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=tz),rU.init(e,t)}),rq=ej("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tT(e))}else t.pattern??(t.pattern=tT());rU.init(e,t)}),rV=ej("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=tN),rU.init(e,t)}),rJ=ej("$ZodURL",(e,t)=>{rU.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",n
5ote:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),rK=ej("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=tB()),rU.init(e,t)}),rQ=ej("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=tS),rU.init(e,t)}),rY=ej("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=tb),rU.init(e,t)}),rX=ej("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=t_),rU.init(e,t)}),r0=ej("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tw),rU.init(e,t)}),r1=ej("$ZodXID",(e,t)=>{t.pattern??(t.pattern=tk),rU.init(e,t)}),r2=ej("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=tx),rU.init(e,t)}),r4=ej("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tX(t)),rU.init(e,t)}),r6=ej("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tK),rU.init(e,t)}),r5=ej("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=tY(t)),rU.init(e,t)}),r9=ej("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tE),rU.init(e,t)}),r3=ej("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=tL),rU.init(e,t),e._zod.bag.format="ipv4"}),r7=ej("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=t$),rU.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),r8=ej("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=tM(t.delimiter)),rU.init(e,t),e._zod.bag.format="mac"}),ne=ej("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tZ),rU.init(e,t)}),nt=ej("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tH),rU.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function nr(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let nn=ej("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tG),rU.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{nr(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),ni=ej("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=tU),rU.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{!function(e){if(!tU.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return nr(t.padEnd(4*Math.ceil(t.length/4),"="))}(r.value)&&r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),no=ej("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tV),rU.init(e,t)}),ns=ej("$ZodJWT",(e,t)=>{rU.init(e,t),e._zod.check=r=>{!function(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(r.value,t.alg)&&r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),na=ej("$ZodCustomStringFormat",(e,t)=>{rU.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),nl=ej("$ZodNumber",(e,t)=>{rH.init(e,t),e._zod.pattern=e._zod.bag.pattern??t4,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),nu=ej("$ZodNumberFormat",(e,t)=>{rk.init(e,t),nl.init(e,t)}),nc=ej("$ZodBoolean",(e,t)=>{rH.init(e,t),e._zod.pattern=t6,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),nd=ej("$ZodBigInt",(e,t)=>{rH.init(e,t),e._zod.pattern=t1,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(e){}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),np=ej("$ZodBigIntFormat",(e,t)=>{rx.init(e,t),nd.init(e,t)}),nf=ej("$ZodSymbol",(e,t)=>{rH.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return"symbol"==typeof n||t.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),t}}),nh=ej("$ZodUndefined",(e,t)=>{rH.init(e,t),e._zod.pattern=t9,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),t}}),nm=ej("$ZodNull",(e,t)=>{rH.init(e,t),e._zod.pattern=t5,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}}),ny=ej("$ZodAny",(e,t)=>{rH.init(e,t),e._zod.parse=e=>e}),ng=ej("$ZodUnknown",(e,t)=>{rH.init(e,t),e._zod.parse=e=>e}),nv=ej("$ZodNever",(e,t)=>{rH.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),nb=ej("$ZodVoid",(e,t)=>{rH.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}}),n_=ej("$ZodDate",(e,t)=>{rH.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(e){}let i=r.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),r}});function nw(e,t,r){e.issues.length&&t.issues.push(...tr(r,e.issues)),t.value[r]=e.value}let nk=ej("$ZodArray",(e,t)=>{rH.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let s=i[e],a=t.element._zod.run({value:s,issues:[]},n);a instanceof Promise?o.push(a.then(t=>nw(t,r,e))):nw(a,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function nx(e,t,r,n,i){if(e.issues.length){if(i&&!(r in n))return;t.issues.push(...tr(r,e.issues))}
5void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function nS(e){var t;let r=Object.keys(e.shape);for(let t of r)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let n=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function nE(e,t,r,n,i,o){let s=[],a=i.keySet,l=i.catchall._zod,u=l.def.type,c="optional"===l.optout;for(let i in t){if(a.has(i))continue;if("never"===u){s.push(i);continue}let o=l.run({value:t[i],issues:[]},n);o instanceof Promise?e.push(o.then(e=>nx(e,r,i,t,c))):nx(o,r,i,t,c)}return(s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length)?Promise.all(e).then(()=>r):r}let nA=ej("$ZodObject",(e,t)=>{let r;rH.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let i=eG(()=>nS(t));eV(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let o=t.catchall;e._zod.parse=(t,n)=>{r??(r=i.value);let s=t.value;if(!eX(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let a=[],l=r.shape;for(let e of r.keys){let r=l[e],i="optional"===r._zod.optout,o=r._zod.run({value:s[e],issues:[]},n);o instanceof Promise?a.push(o.then(r=>nx(r,t,e,s,i))):nx(o,t,e,s,i)}return o?nE(a,s,t,n,i.value,e):a.length?Promise.all(a).then(()=>t):t}}),nz=ej("$ZodObjectJIT",(e,t)=>{let r,n;nA.init(e,t);let i=e._zod.parse,o=eG(()=>nS(t)),s=!eL.jitless,a=s&&e0.value,l=t.catchall;e._zod.parse=(u,c)=>{n??(n=o.value);let d=u.value;return eX(d)?s&&a&&c?.async===!1&&!0!==c.jitless?(r||(r=(e=>{let t=new rM(["shape","payload","ctx"]),r=o.value,n=e=>{let t=eQ(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),s=0;for(let e of r.keys)i[e]=`key_${s++}`;for(let o of(t.write("const newResult = {};"),r.keys)){let r=i[o],s=eQ(o),a=e[o],l=a?._zod?.optout==="optional";t.write(`const ${r} = ${n(o)};`),l?t.write(` 6 if (${r}.issues.length) { 7 if (${s} in input) { 8 payload.issues = payload.issues.concat(${r}.issues.map(iss => ({ 9 ...iss, 10 path: iss.path ? [${s}, ...iss.path] : [${s}] 11 }))); 12 } 13 } 14 15 if (${r}.value === undefined) { 16 if (${s} in input) { 17 newResult[${s}] = undefined; 18 } 19 } else { 20 newResult[${s}] = ${r}.value; 21 } 22 23 `):t.write(` 24 if (${r}.issues.length) { 25 payload.issues = payload.issues.concat(${r}.issues.map(iss => ({ 26 ...iss, 27 path: iss.path ? [${s}, ...iss.path] : [${s}] 28 }))); 29 } 30 31 if (${r}.value === undefined) { 32 if (${s} in input) { 33 newResult[${s}] = undefined; 34 } 35 } else { 36 newResult[${s}] = ${r}.value; 37 } 38 39 `)}t.write("payload.value = newResult;"),t.write("return payload;");let a=t.compile();return(t,r)=>a(e,t,r)})(t.shape)),u=r(u,c),l)?nE([],d,u,c,n,e):u:i(u,c):(u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u)}});function nT(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!tt(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ti(e,n,e$())))}),t)}let nP=ej("$ZodUnion",(e,t)=>{rH.init(e,t),eV(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),eV(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),eV(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),eV(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>eW(e.source)).join("|")})$`)}});let r=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(i,o)=>
39{if(r)return n(i,o);let s=!1,a=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},o);if(t instanceof Promise)a.push(t),s=!0;else{if(0===t.issues.length)return t;a.push(t)}}return s?Promise.all(a).then(t=>nT(t,i,e,o)):nT(a,i,e,o)}});function nO(e,t,r,n){let i=e.filter(e=>0===e.issues.length);return 1===i.length?t.value=i[0].value:0===i.length?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ti(e,n,e$())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t}let nC=ej("$ZodXor",(e,t)=>{nP.init(e,t),t.inclusive=!1;let r=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(r)return n(i,o);let s=!1,a=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},o);t instanceof Promise?(a.push(t),s=!0):a.push(t)}return s?Promise.all(a).then(t=>nO(t,i,e,o)):nO(a,i,e,o)}}),nN=ej("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nP.init(e,t);let r=e._zod.parse;eV(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=eG(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,o)=>{let s=i.value;if(!eX(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let a=n.value.get(s?.[t.discriminator]);return a?a._zod.run(i,o):t.unionFallback?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),i)}}),nI=ej("$ZodIntersection",(e,t)=>{rH.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),o=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,r])=>nF(e,t,r)):nF(e,i,o)}});function nF(e,t,r){let n,i=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(n??(n=r),r.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&n&&e.issues.push({...n,keys:o}),tt(e))return e;let s=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(e1(t)&&e1(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};o[n]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!s.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}let nR=ej("$ZodTuple",(e,t)=>{rH.init(e,t);let r=t.items;e._zod.parse=(n,i)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let s=[],a=[...r].reverse().findIndex(e=>"optional"!==e._zod.optin),l=-1===a?0:r.length-a;if(!t.rest){let t=o.length>r.length,i=o.length<l-1;if(t||i)return n.issues.push({...t?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),n}let u=-1;for(let e of r){if(++u>=o.length&&u>=l)continue;let t=e._zod.run({value:o[u],issues:[]},i);t instanceof Promise?s.push(t.then(e=>nj(e,n,u))):nj(t,n,u)}if(t.rest)for(let e of o.slice(r.length)){u++;let r=t.rest._zod.run({value:e,issues:[]},i);r instanceof Promise?s.push(r.then(e=>nj(e,n,u))):nj(r,n,u)}return s.length?Promise.all(s).then(()=>n):n}});function nj(e,t,r){e.issues.length&&t.issues.push(...tr(r,e.issues)),t.value[r]=e.value}let nD=ej("$ZodRecord",(e,t)=>{rH.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!e1(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s){let a;r.value={};let l=new Set;for(let e of s)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){l.add("number"==typeof e?e.toString():e);let s=t.valueType._zod.run({value:i[e],issues:[]},n);s instanceof Promise?o.push(s.then(t=>{t.issues.length&&r.issues.push(...tr(e,t.issues)),r.value[e]=t.value})):(s.issues.length&&r.issues.push(...tr(e,s.issues)),r.value[e]=s.value)}for(let e in i)l.has(e)||(a=a??[]).push(e);a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a})}else for(let s of(r.value={}
39,Reflect.ownKeys(i))){if("__proto__"===s)continue;let a=t.keyType._zod.run({value:s,issues:[]},n);if(a instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof s&&t4.test(s)&&a.issues.length){let e=t.keyType._zod.run({value:Number(s),issues:[]},n);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(a=e)}if(a.issues.length){"loose"===t.mode?r.value[s]=i[s]:r.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(e=>ti(e,n,e$())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:i[s],issues:[]},n);l instanceof Promise?o.push(l.then(e=>{e.issues.length&&r.issues.push(...tr(s,e.issues)),r.value[a.value]=e.value})):(l.issues.length&&r.issues.push(...tr(s,l.issues)),r.value[a.value]=l.value)}return o.length?Promise.all(o).then(()=>r):r}}),nB=ej("$ZodMap",(e,t)=>{rH.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let o=[];for(let[s,a]of(r.value=new Map,i)){let l=t.keyType._zod.run({value:s,issues:[]},n),u=t.valueType._zod.run({value:a,issues:[]},n);l instanceof Promise||u instanceof Promise?o.push(Promise.all([l,u]).then(([t,o])=>{nL(t,o,r,s,i,e,n)})):nL(l,u,r,s,i,e,n)}return o.length?Promise.all(o).then(()=>r):r}});function nL(e,t,r,n,i,o,s){e.issues.length&&(e4.has(typeof n)?r.issues.push(...tr(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(e=>ti(e,s,e$()))})),t.issues.length&&(e4.has(typeof n)?r.issues.push(...tr(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:n,issues:t.issues.map(e=>ti(e,s,e$()))})),r.value.set(e.value,t.value)}let n$=ej("$ZodSet",(e,t)=>{rH.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];for(let e of(r.value=new Set,i)){let i=t.valueType._zod.run({value:e,issues:[]},n);i instanceof Promise?o.push(i.then(e=>nM(e,r))):nM(i,r)}return o.length?Promise.all(o).then(()=>r):r}});function nM(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let nZ=ej("$ZodEnum",(e,t)=>{rH.init(e,t);let r=eM(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>e4.has(typeof e)).map(e=>"string"==typeof e?e5(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let o=t.value;return n.has(o)||t.issues.push({code:"invalid_value",values:r,input:o,inst:e}),t}}),nH=ej("$ZodLiteral",(e,t)=>{if(rH.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?e5(e):e?e5(e.toString()):String(e)).join("|")})$`),e._zod.parse=(n,i)=>{let o=n.value;return r.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),nG=ej("$ZodFile",(e,t)=>{rH.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return n instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),t}}),nU=ej("$ZodTransform",(e,t)=>{rH.init(e,t),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new eB(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r));if(i instanceof Promise)throw new eD;return r.value=i,r}});function nW(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let nq=ej("$ZodOptional",(e,t)=>{rH.init(e,t),e._zod.optin="optional",e._zod.optout="optional",eV(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),eV(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${eW(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(t=>nW(t,e.value)):nW(n,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),nV=ej("$ZodExactOptional",(e,t)=>{nq.init(e,t),eV(e._zod,"values",()=>t.innerType._zod.values),eV(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),nJ=ej("$ZodNullable",(e,t)=>{rH.init(e,t),eV(e._zod,"optin",()=>t.innerType._zod.optin),eV(e._zod,"optout",()=>t.innerType._zod.optout),eV(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${eW(e.source)}|null)$`):void 0}),eV(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),nK=ej("$ZodDefault",(e,t)=>{rH.init(e,t),e._zod.optin="optional",eV(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>nQ(e,t)):nQ(n,t)}});function nQ(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let nY=ej("$ZodPrefault",(e,t)=>{rH.init(e,t),e._zod.optin="optional",eV(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),nX=ej("$ZodNonOptional",(e,t)=>{rH.init(e,t),eV(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>n0(t,e)):n0(i,e)}});function n0(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let n1=ej("$ZodSuccess",(e,t)=>{rH.init(e,t),e._zod.parse=(e,r)=>{if("backward"===r.direction)throw new eB("ZodSuccess");let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===n.issues.length,e)}}),n2=ej("$ZodCatch",(e,t)=>{rH.init(e,t),eV(e._zod,"optin",()=>t.innerType._zod.optin),eV(e._zod,"optout",()=>t.innerType._zod.optout),eV(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>
39(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ti(e,r,e$()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ti(e,r,e$()))},input:e.value}),e.issues=[]),e)}}),n4=ej("$ZodNaN",(e,t)=>{rH.init(e,t),e._zod.parse=(t,r)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),n6=ej("$ZodPipe",(e,t)=>{rH.init(e,t),eV(e._zod,"values",()=>t.in._zod.values),eV(e._zod,"optin",()=>t.in._zod.optin),eV(e._zod,"optout",()=>t.out._zod.optout),eV(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>n5(e,t.in,r)):n5(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>n5(e,t.out,r)):n5(n,t.out,r)}});function n5(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}let n9=ej("$ZodCodec",(e,t)=>{rH.init(e,t),eV(e._zod,"values",()=>t.in._zod.values),eV(e._zod,"optin",()=>t.in._zod.optin),eV(e._zod,"optout",()=>t.out._zod.optout),eV(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("forward"===(r.direction||"forward")){let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>n3(e,t,r)):n3(n,t,r)}{let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>n3(e,t,r)):n3(n,t,r)}}});function n3(e,t,r){if(e.issues.length)return e.aborted=!0,e;if("forward"===(r.direction||"forward")){let n=t.transform(e.value,e);return n instanceof Promise?n.then(n=>n7(e,n,t.out,r)):n7(e,n,t.out,r)}{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(n=>n7(e,n,t.in,r)):n7(e,n,t.in,r)}}function n7(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}let n8=ej("$ZodReadonly",(e,t)=>{rH.init(e,t),eV(e._zod,"propValues",()=>t.innerType._zod.propValues),eV(e._zod,"values",()=>t.innerType._zod.values),eV(e._zod,"optin",()=>t.innerType?._zod?.optin),eV(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(ie):ie(n)}});function ie(e){return e.value=Object.freeze(e.value),e}let it=ej("$ZodTemplateLiteral",(e,t)=>{rH.init(e,t);let r=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let n=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(n,i))}else if(null===e||e6.has(typeof e))r.push(e5(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(r,n)=>("string"!=typeof r.value?r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),r)}),ir=ej("$ZodFunction",(e,t)=>(rH.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...r){let n=Reflect.apply(t,this,e._def.input?tp(e._def.input,r):r);return e._def.output?tp(e._def.output,n):n}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...r){let n=e._def.input?await th(e._def.input,r):r,i=await Reflect.apply(t,this,n);return e._def.output?await th(e._def.output,i):i}},e._zod.parse=(t,r)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let r=e.constructor;return new r(Array.isArray(t[0])?{type:"function",input:new nR({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),ii=ej("$ZodPromise",(e,t)=>{rH.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},r))}),io=ej("$ZodLazy",(e,t)=>{rH.init(e,t),eV(e._zod,"innerType",()=>t.getter()),eV(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),eV(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),eV(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),eV(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),is=ej("$ZodCustom",(e,t)=>{rg.init(e,t),rH.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>ia(t,r,n,e));ia(i,r,n,e)}});function ia(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ta(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class il{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(l=globalThis).__zod_globalRegistry??(l.__zod_globalRegistry=new il);let iu=globalThis.__zod_globalRegistry;function ic(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...e3(t)})}function id(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...e3(t)})}function ip(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...e3(t)})}function ih(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...e3(t)})}function im(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...e3(t)})}function iy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...e3(t)})}function ig(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...e3(t)})}function iv(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...e3(t)})}function ib(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...e3(t)})}function i_(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...e3(t)})}function iw(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...e3(t)})}function ik(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...e3(t)})}function ix(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...e3(t)})}function iS(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...e3(t)})}function iE(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...e3(t)})}function iA(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...e3(t)})}function iz(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...e3(t)})}function iT(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...e3(t)})}function iP(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...e3(t)})}function iO(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...e3(t)})}function iC(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...e3(t)})}function iN(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...e3(t)})}function iI(e,t){return new rb({check:"less_than",...e3(t),value:e,inclusive:!1})}function iF(e,t){return new rb({check:"less_than",...e3(t),value:e,inclusive:!0})}function iR(e,t){return new r_({check:"greater_than",...e3(t),value:e,inclusive:!1})}function ij(e,t){return new r_({check:"greater_than",...e3(t),value:e,inclusive:!0})}function iD(e){return iR(0,e)}function iB(e){return iI(0,e)}function iL(e){return iF(0,e)}function i$(e){return ij(0,e)}function iM(e,t){return new rw({check:"multiple_of",...e3(t),value:e})}function iZ(e,t){return new rS({check:"max_size",...e3(t),maximum:e})}function iH(e,t){return new rE({check:"min_size",...e3(t),minimum:e})}function iG(e,t){return new rA({check:"size_equals",...e3(t),size:e})}function iU(e,t){return new rz({check:"max_length",...e3(t),maximum:e})}function iW(e,t){return new rT({check:"min_length",...e3(t),minimum:e})}function iq(e,t){return new rP({check:"length_equals",...e3(t),length:e})}function iV(e,t){return new rC({check:"string_format",format:"regex",...e3(t),pattern:e})}function iJ(e){return new rN({check:"string_format",format:"lowercase",...e3(e)})}
39function iK(e){return new rI({check:"string_format",format:"uppercase",...e3(e)})}function iQ(e,t){return new rF({check:"string_format",format:"includes",...e3(t),includes:e})}function iY(e,t){return new rR({check:"string_format",format:"starts_with",...e3(t),prefix:e})}function iX(e,t){return new rj({check:"string_format",format:"ends_with",...e3(t),suffix:e})}function i0(e,t,r){return new rB({check:"property",property:e,schema:t,...e3(r)})}function i1(e,t){return new rL({check:"mime_type",mime:e,...e3(t)})}function i2(e){return new r$({check:"overwrite",tx:e})}function i4(e){return i2(t=>t.normalize(e))}function i6(){return i2(e=>e.trim())}function i5(){return i2(e=>e.toLowerCase())}function i9(){return i2(e=>e.toUpperCase())}function i3(){return i2(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,""))}function i7(e,t,r,n={}){let i=e3(n),o={...e3(n),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...i};return r instanceof RegExp&&(o.pattern=r),new e(o)}function i8(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??iu,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function oe(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let n={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,n);else{let r=s.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,r,n)}let o=e._zod.parent;o&&(s.ref||(s.ref=o),oe(o,t,n),t.seen.get(o).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),"input"===t.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,n);if("set"===i.type)return e(i.valueType,n);if("lazy"===i.type)return e(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,n);if("intersection"===i.type)return e(i.left,n)||e(i.right,n);if("record"===i.type||"map"===i.type)return e(i.keyType,n)||e(i.valueType,n);if("pipe"===i.type)return e(i.in,n)||e(i.out,n);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,n))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,n))return!0;if(i.rest&&e(i.rest,n))return!0}return!1}(e)&&(delete s.schema.examples,delete s.schema.default),"input"===t.io&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function ot(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=n.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(r,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:i,defId:o}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(r)return{ref:i(r)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${n}/${o}`}}if(t[1]===r)return{ref:"#"};let i=`#/${n}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+o}})(t);n.def={...n.schema},o&&(n.defId=o);let s=n.schema;for(let e in s)delete s[e];s.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root> 40 41Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let n=r[1];if(t===r[0]){i(r);continue}if(e.external){let n=e.external.registry.get(r[0])?.id;if(t!==r[0]&&n){i(r);continue}}if(e.metadataRegistry.get(r[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){i(r);continue}}}function or(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let r=e.seen.get(t);if(null===r.ref)return;let i=r.def??r.schema,o={...i},s=r.ref;if(r.ref=null,s){n(s);let r=e.seen.get(s),a=r.schema;if(a.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(a)):Object.assign(i,a),Object.assign(i,o),t._zod.parent===s)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(a.$ref&&r.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(i[e])===JSON.stringify(r.def[e])&&delete i[e]}let a=t._zod.parent;if(a&&a!==s){n(a);let t=e.seen.get(a);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let i={};
41if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(r)}Object.assign(i,r.def??r.schema);let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&("draft-2020-12"===e.target?i.$defs=o:i.definitions=o);try{let r=JSON.parse(JSON.stringify(i));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:on(t,"input",e.processors),output:on(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}let on=(e,t,r={})=>n=>{let{libraryOptions:i,target:o}=n??{},s=i8({...i??{},target:o,io:t,processors:r});return oe(e,s),ot(s,e),or(s,e)},oi={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},oo=(e,t,r,n)=>{let i=e._zod.def,o=!1===i.inclusive,s=i.options.map((e,r)=>oe(e,t,{...n,path:[...n.path,o?"oneOf":"anyOf",r]}));o?r.oneOf=s:r.anyOf=s},os=(e,t,r,n)=>{let i=e._zod.def;oe(i.innerType,t,n),t.seen.get(e).ref=i.innerType},oa=ej("ZodISODateTime",(e,t)=>{r4.init(e,t),oI.init(e,t)});function ol(e){return new oa({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...e3(e)})}let ou=ej("ZodISODate",(e,t)=>{r6.init(e,t),oI.init(e,t)});function oc(e){return new ou({type:"string",format:"date",check:"string_format",...e3(e)})}let od=ej("ZodISOTime",(e,t)=>{r5.init(e,t),oI.init(e,t)});function op(e){return new od({type:"string",format:"time",check:"string_format",precision:null,...e3(e)})}let of=ej("ZodISODuration",(e,t)=>{r9.init(e,t),oI.init(e,t)});function oh(e){return new of({type:"string",format:"duration",check:"string_format",...e3(e)})}let om=(e,t)=>{tu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(e=>n({issues:e}));else if("invalid_key"===i.code)n({issues:i.issues});else if("invalid_element"===i.code)n({issues:i.issues});else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(e),r})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,eH,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,eH,2)}},isEmpty:{get:()=>0===e.issues.length}})};ej("ZodError",om);let oy=ej("ZodError",om,{Parent:Error}),og=td(oy),ov=tf(oy),ob=tm(oy),o_=tg(oy),ow=(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return td(oy)(e,t,n)},ok=(e,t,r)=>td(oy)(e,t,r),ox=async(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return tf(oy)(e,t,n)},oS=async(e,t,r)=>tf(oy)(e,t,r),oE=(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return tm(oy)(e,t,n)},oA=(e,t,r)=>tm(oy)(e,t,r),oz=async(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return tg(oy)(e,t,n)},oT=async(e,t,r)=>tg(oy)(e,t,r),oP=ej("ZodType",(e,t)=>(rH.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:on(e,"input"),output:on(e,"output")}}),e.toJSONSchema=((e,t={})=>r=>{let n=i8({...r,processors:t});return oe(e,n),ot(n,e),or(n,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(eK(t,{checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,r)=>e9(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>og(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>ob(e,t,r),e.parseAsync=async(t,r)=>ov(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>o_(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>ow(e,t,r),e.decode=(t,r)=>ok(e,t,r),e.encodeAsync=async(t,r)=>ox(e,t,r),e.decodeAsync=async(t,r)=>oS(e,t,r),e.safeEncode=(t,r)=>oE(e,t,r),e.safeDecode=(t,r)=>oA(e,t,r),e.safeEncodeAsync=async(t,r)=>oz(e,t,r),e.safeDecodeAsync=async(t,r)=>oT(e,t,r),e.refine=(t,r)=>e.check(a2(t,r)),e.superRefine=t=>e.check(a4(t)),e.overwrite=t=>e.check(i2(t)),e.optional=()=>aw(e),e.exactOptional=()=>ax(e),e.nullable=()=>aE(e),e.nullish=()=>aw(aE(e)),e.nonoptional=t=>aN(e,t),e.array=()=>sQ(e),e.or=t=>s6([e,t]),e.and=t=>ae(e,t),e.transform=t=>a$(e,ab(t)),e.default=t=>aT(e,t),e.prefault=t=>aO(e,t),e.catch=t=>aj(e,t),e.pipe=t=>a$(e,t),e.readonly=()=>aG(e),e.describe=t=>{let r=e.clone();return iu.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>iu.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return iu.get(e);let r=e.clone();return iu.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>
41e.safeParse(null).success,e.apply=t=>t(e),e)),oO=ej("_ZodString",(e,t)=>{rG.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{r.type="string";let{minimum:i,maximum:o,format:s,patterns:a,contentEncoding:l}=e._zod.bag;if("number"==typeof i&&(r.minLength=i),"number"==typeof o&&(r.maxLength=o),s&&(r.format=oi[s]??s,""===r.format&&delete r.format,"time"===s&&delete r.format),l&&(r.contentEncoding=l),a&&a.size>0){let e=[...a];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,r,0);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(iV(...t)),e.includes=(...t)=>e.check(iQ(...t)),e.startsWith=(...t)=>e.check(iY(...t)),e.endsWith=(...t)=>e.check(iX(...t)),e.min=(...t)=>e.check(iW(...t)),e.max=(...t)=>e.check(iU(...t)),e.length=(...t)=>e.check(iq(...t)),e.nonempty=(...t)=>e.check(iW(1,...t)),e.lowercase=t=>e.check(iJ(t)),e.uppercase=t=>e.check(iK(t)),e.trim=()=>e.check(i6()),e.normalize=(...t)=>e.check(i4(...t)),e.toLowerCase=()=>e.check(i5()),e.toUpperCase=()=>e.check(i9()),e.slugify=()=>e.check(i3())}),oC=ej("ZodString",(e,t)=>{rG.init(e,t),oO.init(e,t),e.email=t=>e.check(ic(oF,t)),e.url=t=>e.check(ig(oH,t)),e.jwt=t=>e.check(iN(sp,t)),e.emoji=t=>e.check(iv(oW,t)),e.guid=t=>e.check(id(oj,t)),e.uuid=t=>e.check(ip(oB,t)),e.uuidv4=t=>e.check(ih(oB,t)),e.uuidv6=t=>e.check(im(oB,t)),e.uuidv7=t=>e.check(iy(oB,t)),e.nanoid=t=>e.check(ib(oV,t)),e.guid=t=>e.check(id(oj,t)),e.cuid=t=>e.check(i_(oK,t)),e.cuid2=t=>e.check(iw(oY,t)),e.ulid=t=>e.check(ik(o0,t)),e.base64=t=>e.check(iP(ss,t)),e.base64url=t=>e.check(iO(sl,t)),e.xid=t=>e.check(ix(o2,t)),e.ksuid=t=>e.check(iS(o6,t)),e.ipv4=t=>e.check(iE(o9,t)),e.ipv6=t=>e.check(iA(se,t)),e.cidrv4=t=>e.check(iz(sr,t)),e.cidrv6=t=>e.check(iT(si,t)),e.e164=t=>e.check(iC(sc,t)),e.datetime=t=>e.check(ol(t)),e.date=t=>e.check(oc(t)),e.time=t=>e.check(op(t)),e.duration=t=>e.check(oh(t))});function oN(e){return new oC({type:"string",...e3(e)})}let oI=ej("ZodStringFormat",(e,t)=>{rU.init(e,t),oO.init(e,t)}),oF=ej("ZodEmail",(e,t)=>{rV.init(e,t),oI.init(e,t)});function oR(e){return ic(oF,e)}let oj=ej("ZodGUID",(e,t)=>{rW.init(e,t),oI.init(e,t)});function oD(e){return id(oj,e)}let oB=ej("ZodUUID",(e,t)=>{rq.init(e,t),oI.init(e,t)});function oL(e){return ip(oB,e)}function o$(e){return ih(oB,e)}function oM(e){return im(oB,e)}function oZ(e){return iy(oB,e)}let oH=ej("ZodURL",(e,t)=>{rJ.init(e,t),oI.init(e,t)});function oG(e){return ig(oH,e)}function oU(e){return ig(oH,{protocol:/^https?$/,hostname:tq,...e3(e)})}let oW=ej("ZodEmoji",(e,t)=>{rK.init(e,t),oI.init(e,t)});function oq(e){return iv(oW,e)}let oV=ej("ZodNanoID",(e,t)=>{rQ.init(e,t),oI.init(e,t)});function oJ(e){return ib(oV,e)}let oK=ej("ZodCUID",(e,t)=>{rY.init(e,t),oI.init(e,t)});function oQ(e){return i_(oK,e)}let oY=ej("ZodCUID2",(e,t)=>{rX.init(e,t),oI.init(e,t)});function oX(e){return iw(oY,e)}let o0=ej("ZodULID",(e,t)=>{r0.init(e,t),oI.init(e,t)});function o1(e){return ik(o0,e)}let o2=ej("ZodXID",(e,t)=>{r1.init(e,t),oI.init(e,t)});function o4(e){return ix(o2,e)}let o6=ej("ZodKSUID",(e,t)=>{r2.init(e,t),oI.init(e,t)});function o5(e){return iS(o6,e)}let o9=ej("ZodIPv4",(e,t)=>{r3.init(e,t),oI.init(e,t)});function o3(e){return iE(o9,e)}let o7=ej("ZodMAC",(e,t)=>{r8.init(e,t),oI.init(e,t)});function o8(e){return new o7({type:"string",format:"mac",check:"string_format",abort:!1,...e3(e)})}let se=ej("ZodIPv6",(e,t)=>{r7.init(e,t),oI.init(e,t)});function st(e){return iA(se,e)}let sr=ej("ZodCIDRv4",(e,t)=>{ne.init(e,t),oI.init(e,t)});function sn(e){return iz(sr,e)}let si=ej("ZodCIDRv6",(e,t)=>{nt.init(e,t),oI.init(e,t)});function so(e){return iT(si,e)}let ss=ej("ZodBase64",(e,t)=>{nn.init(e,t),oI.init(e,t)});function sa(e){return iP(ss,e)}let sl=ej("ZodBase64URL",(e,t)=>{ni.init(e,t),oI.init(e,t)});function su(e){return iO(sl,e)}let sc=ej("ZodE164",(e,t)=>{no.init(e,t),oI.init(e,t)});function sd(e){return iC(sc,e)}let sp=ej("ZodJWT",(e,t)=>{ns.init(e,t),oI.init(e,t)});function sf(e){return iN(sp,e)}let sh=ej("ZodCustomStringFormat",(e,t)=>{na.init(e,t),oI.init(e,t)});function sm(e,t,r={}){return i7(sh,e,t,r)}function sy(e){return i7(sh,"hostname",tW,e)}function sg(e){return i7(sh,"hex",t8,e)}function sv(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,i=c[n];if(!i)throw Error(`Unrecognized hash format: ${n}`);return i7(sh,n,i,t)}let sb=ej("ZodNumber",(e,t)=>{nl.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let{minimum:i,maximum:o,format:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof s&&s.includes("int")?r.type="integer":r.type="number","number"==typeof u&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),"number"==typeof i&&(r.minimum=i,"number"==typeof u&&"draft-04"!==t.target&&(u>=i?delete r.minimum:delete r.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),"number"==typeof o&&(r.maximum=o,"number"==typeof l&&"draft-04"!==t.target&&(l<=o?delete r.maximum:delete r.exclusiveMaximum)),"number"==typeof a&&(r.multipleOf=a)})(e,t,r,0),e.gt=(t,r)=>e.check(iR(t,r)),e.gte=(t,r)=>e.check(ij(t,r)),e.min=(t,r)=>e.check(ij(t,r)),e.lt=(t,r)=>e.check(iI(t,r)),e.lte=(t,r)=>e.check(iF(t,r)),e.max=(t,r)=>e.check(iF(t,r)),e.int=t=>e.check(sk(t)),e.safe=t=>e.check(sk(t)),e.positive=t=>e.check(iR(0,t)),e.nonnegative=t=>e.check(ij(0,t)),e.negative=t=>e.check(iI(0,t)),e.nonpositive=t=>e.check(iF(0,t)),e.multipleOf=(t,r)=>e.check(iM(t,r)),e.step=(t,r)=>e.check(iM(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function s_(e){return new sb({type:"number",checks:[],...e3(e)})}let sw=ej("ZodNumberFormat",(e,t)=>{nu.init(e,t),sb.init(e,t)});function sk(e){return new sw({type:"number",check:"number_format",abort:!1,format:"safeint",...e3(e)})}function sx(e){return new sw({type:"number",check:"number_format",abort:!1,format:"float32",...e3(e)})}function sS(e){return new sw({type:"number",check:"number_format",abort:!1,format:"float64",...e3(e)})}function sE(e){return new sw({type:"number",check:"number_format",abort:!1,format:"int32",...e3(e)})}function sA(e){return new sw({type:"number",check:"number_format",abort:!1,format:"uint32",...e3(e)})}let sz=ej("ZodBoolean",(e,t)=>{nc.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.type="boolean"}});function sT(e){return new sz({type:"boolean",...e3(e)})}let sP=ej("ZodBigInt",(e,t)=>{nd.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")})(0,e,0,0),e.gte=(t,r)=>e.check(ij(t,r)),e.min=(t,r)=>e.check(ij(t,r)),e.gt=(t,r)=>e.check(iR(t,r)),e.gte=(t,r)=>e.check(ij(t,r)),e.min=(t,r)=>e.check(ij(t,r)),e.lt=(t,r)=>e.check(iI(t,r)),e.lte=(t,r)=>e.check(iF(t,r)),e.max=(t,r)=>e.check(iF(t,r)),e.positive=t=>e.check(iR(BigInt(0),t)),e.negative=t=>e.check(iI(BigInt(0),t)),e.nonpositive=t=>e.check(iF(BigInt(0),t)),e.nonnegative=t=>e.check(ij(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(iM(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function sO(e){return new sP({type:"bigint",...e3(e)})}let sC=ej("ZodBigIntFormat",(e,t)=>{np.init(e,t),sP.init(e,t)});function sN(e){return new sC({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...e3(e)})}function sI(e){return new sC({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...e3(e)})}let sF=ej("ZodSymbol",(e,t)=>{nf.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")})(0,e,0,0)});function sR(e){return new sF({type:"symbol",...e3(e)})}let sj=ej("ZodUndefined",(e,t)=>{nh.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")})(0,e,0,0)});function sD(e){return new sj({type:"undefined",...e3(e)})}let sB=ej("ZodNull",(e,t)=>{nm.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{"openapi-3.0"===e.target?(t.type="string",t.nullable=!0,t.enum=[null]):t.type="null"}});function sL(e){return new sB({type:"null",...e3(e)})}let s$=ej("ZodAny",(e,t)=>{ny.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function sM(){return new s$({type:"any"})}let sZ=ej("ZodUnknown",(e,t)=>{ng.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function sH(){return new sZ({type:"unknown"})}let sG=ej("ZodNever",(e,t)=>{nv.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.not={}}});function sU(e){return new sG({type:"never",...e3(e)})}let sW=ej("ZodVoid",(e,t)=>{nb.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")})(0,e,0,0)});function sq(e){return new sW({type:"void",...e3(e)})}let sV=ej("ZodDate",(e,t)=>{n_.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")})(0,e,0,0),e.min=(t,r)=>e.check(ij(t,r)),e.max=(t,r)=>e.check(iF(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function sJ(e){return new sV({type:"date",...e3(e)})}let sK=ej("ZodArray",(e,t)=>{nk.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;"number"==typeof o&&(r.minItems=o),"number"==typeof s&&(r.maxItems=s),r.type="array",r.items=oe(i.element,t,{...n,path:[...n.path,"items"]})})(e,t,r,n),e.element=t.element,e.min=(t,r)=>e.check(iW(t,r)),e.nonempty=t=>e.check(iW(1,t)),e.max=(t,r)=>e.check(iU(t,r)),e.length=(t,r)=>e.check(iq(t,r)),e.unwrap=()=>e.element});function sQ(e,t){return new sK({type:"array",element:e,...e3(t)})}function sY(e){return ap(Object.keys(e._zod.def.shape))}
41let sX=ej("ZodObject",(e,t)=>{nz.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def;r.type="object",r.properties={};let o=i.shape;for(let e in o)r.properties[e]=oe(o[e],t,{...n,path:[...n.path,"properties",e]});let s=new Set([...new Set(Object.keys(o))].filter(e=>{let r=i.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));s.size>0&&(r.required=Array.from(s)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=oe(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)})(e,t,r,n),eV(e,"shape",()=>t.shape),e.keyof=()=>ap(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sH()}),e.loose=()=>e.clone({...e._zod.def,catchall:sH()}),e.strict=()=>e.clone({...e._zod.def,catchall:sU()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>(function(e,t){if(!e1(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=eK(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return eJ(this,"shape",r),r}});return e9(e,n)})(e,t),e.safeExtend=t=>(function(e,t){if(!e1(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=eK(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return eJ(this,"shape",r),r}});return e9(e,r)})(e,t),e.merge=t=>{let r;return r=eK(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return eJ(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]}),e9(e,r)},e.pick=t=>(function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=eK(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return eJ(this,"shape",e),e},checks:[]});return e9(e,i)})(e,t),e.omit=t=>(function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=eK(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return eJ(this,"shape",n),n},checks:[]});return e9(e,i)})(e,t),e.partial=(...t)=>(function(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=eK(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return eJ(this,"shape",i),i},checks:[]});return e9(t,i)})(a_,e,t[0]),e.required=(...t)=>{var r;let n;return r=t[0],n=eK(e._zod.def,{get shape(){let t=e._zod.def.shape,n={...t};if(r)for(let e in r){if(!(e in n))throw Error(`Unrecognized key: "${e}"`);r[e]&&(n[e]=new aC({type:"nonoptional",innerType:t[e]}))}else for(let e in t)n[e]=new aC({type:"nonoptional",innerType:t[e]});return eJ(this,"shape",n),n}}),e9(e,n)}});function s0(e,t){return new sX({type:"object",shape:e??{},...e3(t)})}function s1(e,t){return new sX({type:"object",shape:e,catchall:sU(),...e3(t)})}function s2(e,t){return new sX({type:"object",shape:e,catchall:sH(),...e3(t)})}let s4=ej("ZodUnion",(e,t)=>{nP.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>oo(e,t,r,n),e.options=t.options});function s6(e,t){return new s4({type:"union",options:e,...e3(t)})}let s5=ej("ZodXor",(e,t)=>{s4.init(e,t),nC.init(e,t),e._zod.processJSONSchema=(t,r,n)=>oo(e,t,r,n),e.options=t.options});function s9(e,t){return new s5({type:"union",options:e,inclusive:!1,...e3(t)})}let s3=ej("ZodDiscriminatedUnion",(e,t)=>{s4.init(e,t),nN.init(e,t)});function s7(e,t,r){return new s3({type:"union",options:t,discriminator:e,...e3(r)})}let s8=ej("ZodIntersection",(e,t)=>{nI.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,s,a;return o=oe((i=e._zod.def).left,t,{...n,path:[...n.path,"allOf",0]}),s=oe(i.right,t,{...n,path:[...n.path,"allOf",1]}),void(r.allOf=[...(a=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...a(s)?s.allOf:[s]])}});function ae(e,t){return new s8({type:"intersection",left:e,right:t})}let at=ej("ZodTuple",(e,t)=>{nR.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def;r.type="array";
41let o="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",a=i.items.map((e,r)=>oe(e,t,{...n,path:[...n.path,o,r]})),l=i.rest?oe(i.rest,t,{...n,path:[...n.path,s,..."openapi-3.0"===t.target?[i.items.length]:[]]}):null;"draft-2020-12"===t.target?(r.prefixItems=a,l&&(r.items=l)):"openapi-3.0"===t.target?(r.items={anyOf:a},l&&r.items.anyOf.push(l),r.minItems=a.length,l||(r.maxItems=a.length)):(r.items=a,l&&(r.additionalItems=l));let{minimum:u,maximum:c}=e._zod.bag;"number"==typeof u&&(r.minItems=u),"number"==typeof c&&(r.maxItems=c)})(e,t,r,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function ar(e,t,r){let n=t instanceof rH,i=n?r:t;return new at({type:"tuple",items:e,rest:n?t:null,...e3(i)})}let an=ej("ZodRecord",(e,t)=>{nD.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def;r.type="object";let o=i.keyType,s=o._zod.bag,a=s?.patterns;if("loose"===i.mode&&a&&a.size>0){let e=oe(i.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});for(let t of(r.patternProperties={},a))r.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(r.propertyNames=oe(i.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=oe(i.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let l=o._zod.values;if(l){let e=[...l].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(r.required=e)}})(e,t,r,n),e.keyType=t.keyType,e.valueType=t.valueType});function ai(e,t,r){return new an({type:"record",keyType:e,valueType:t,...e3(r)})}function ao(e,t,r){let n=e9(e);return n._zod.values=void 0,new an({type:"record",keyType:n,valueType:t,...e3(r)})}function as(e,t,r){return new an({type:"record",keyType:e,valueType:t,mode:"loose",...e3(r)})}let aa=ej("ZodMap",(e,t)=>{nB.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")})(0,e,0,0),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(iH(...t)),e.nonempty=t=>e.check(iH(1,t)),e.max=(...t)=>e.check(iZ(...t)),e.size=(...t)=>e.check(iG(...t))});function al(e,t,r){return new aa({type:"map",keyType:e,valueType:t,...e3(r)})}let au=ej("ZodSet",(e,t)=>{n$.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")})(0,e,0,0),e.min=(...t)=>e.check(iH(...t)),e.nonempty=t=>e.check(iH(1,t)),e.max=(...t)=>e.check(iZ(...t)),e.size=(...t)=>e.check(iG(...t))});function ac(e,t){return new au({type:"set",valueType:e,...e3(t)})}let ad=ej("ZodEnum",(e,t)=>{nZ.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;(i=eM(e._zod.def.entries)).every(e=>"number"==typeof e)&&(r.type="number"),i.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=i},e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new ad({...t,checks:[],...e3(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new ad({...t,checks:[],...e3(n),entries:i})}});function ap(e,t){return new ad({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...e3(t)})}function af(e,t){return new ad({type:"enum",entries:e,...e3(t)})}let ah=ej("ZodLiteral",(e,t)=>{nH.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def,o=[];for(let e of i.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else o.push(Number(e));else o.push(e);if(0===o.length);else if(1===o.length){let e=o[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else o.every(e=>"number"==typeof e)&&(r.type="number"),o.every(e=>"string"==typeof e)&&(r.type="string"),o.every(e=>"boolean"==typeof e)&&(r.type="boolean"),o.every(e=>null===e)&&(r.type="null"),r.enum=o})(e,t,r,0),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
41(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function am(e,t){return new ah({type:"literal",values:Array.isArray(e)?e:[e],...e3(t)})}let ay=ej("ZodFile",(e,t)=>{nG.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:a}=e._zod.bag;void 0!==o&&(i.minLength=o),void 0!==s&&(i.maxLength=s),a?1===a.length?(i.contentMediaType=a[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=a.map(e=>({contentMediaType:e}))):Object.assign(r,i)})(e,0,r,0),e.min=(t,r)=>e.check(iH(t,r)),e.max=(t,r)=>e.check(iZ(t,r)),e.mime=(t,r)=>e.check(i1(Array.isArray(t)?t:[t],r))});function ag(e){return new ay({type:"file",...e3(e)})}let av=ej("ZodTransform",(e,t)=>{nU.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")})(0,e,0,0),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new eB(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(ta(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(ta(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}});function ab(e){return new av({type:"transform",transform:e})}let a_=ej("ZodOptional",(e,t)=>{nq.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>os(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function aw(e){return new a_({type:"optional",innerType:e})}let ak=ej("ZodExactOptional",(e,t)=>{nV.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>os(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function ax(e){return new ak({type:"optional",innerType:e})}let aS=ej("ZodNullable",(e,t)=>{nJ.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,s;return o=oe((i=e._zod.def).innerType,t,n),s=t.seen.get(e),void("openapi-3.0"===t.target?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function aE(e){return new aS({type:"nullable",innerType:e})}function aA(e){return aw(aE(e))}let az=ej("ZodDefault",(e,t)=>{nK.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;oe((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function aT(e,t){return new az({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():e2(t)}})}let aP=ej("ZodPrefault",(e,t)=>{nY.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;oe((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},e.unwrap=()=>e._zod.def.innerType});function aO(e,t){return new aP({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():e2(t)}})}let aC=ej("ZodNonOptional",(e,t)=>{nX.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;oe((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType});function aN(e,t){return new aC({type:"nonoptional",innerType:e,...e3(t)})}let aI=ej("ZodSuccess",(e,t)=>{n1.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.type="boolean"},e.unwrap=()=>e._zod.def.innerType});function aF(e){return new aI({type:"success",innerType:e})}let aR=ej("ZodCatch",(e,t)=>{n2.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i,o=e._zod.def;oe(o.innerType,t,n),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=i})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function aj(e,t){return new aR({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let aD=ej("ZodNaN",(e,t)=>{n4.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")})(0,e,0,0)});function aB(e){return new aD({type:"nan",...e3(e)})}let aL=ej("ZodPipe",(e,t)=>{n6.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o;return i=e._zod.def,void(oe(o="input"===t.io?"transform"===i.in._zod.def.type?i.out:i.in:i.out,t,n),t.seen.get(e).ref=o)},e.in=t.in,e.out=t.out});function a$(e,t){return new aL({type:"pipe",in:e,out:t})}let aM=ej("ZodCodec",(e,t)=>{aL.init(e,t),n9.init(e,t)});function aZ(e,t,r){return new aM({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}let aH=ej("ZodReadonly",(e,t)=>{n8.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;oe((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.readOnly=!0},e.unwrap=()=>e._zod.def.innerType});function aG(e){return new aH({type:"readonly",innerType:e})}let aU=ej("ZodTemplateLiteral",(e,t)=>{it.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.pattern;if(!i)throw Error("Pattern not found in template literal");r.type="string",r.pattern=i.source})(e,0,r,0)});function aW(e,t){return new aU({type:"template_literal",parts:e,...e3(t)})}let aq=ej("ZodLazy",(e,t)=>{io.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;oe(i=e._zod.innerType,t,n),t.seen.get(e).ref=i}
41,e.unwrap=()=>e._zod.def.getter()});function aV(e){return new aq({type:"lazy",getter:e})}let aJ=ej("ZodPromise",(e,t)=>{ii.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;oe((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType});function aK(e){return new aJ({type:"promise",innerType:e})}let aQ=ej("ZodFunction",(e,t)=>{ir.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")})(0,e,0,0)});function aY(e){return new aQ({type:"function",input:Array.isArray(e?.input)?ar(e?.input):e?.input??sQ(sH()),output:e?.output??sH()})}let aX=ej("ZodCustom",(e,t)=>{is.init(e,t),oP.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")})(0,e,0,0)});function a0(e){let t=new rg({check:"custom"});return t._zod.check=e,t}function a1(e,t){var r;let n;return r=e??(()=>!0),(n=e3(t)).abort??(n.abort=!0),new aX({type:"custom",check:"custom",fn:r,...n})}function a2(e,t={}){return new aX({type:"custom",check:"custom",fn:e,...e3(t)})}function a4(e){var t;let r,n;return t=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(ta(e,t.value,r._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),t.issues.push(ta(e)))},e(t.value,t)),(n=new rg({check:"custom",...e3(void 0)}))._zod.check=t,r=n}let a6=function(e){let t=new rg({check:"describe"});return t._zod.onattach=[t=>{let r=iu.get(t)??{};iu.add(t,{...r,description:e})}],t._zod.check=()=>{},t},a5=function(e){let t=new rg({check:"meta"});return t._zod.onattach=[t=>{let r=iu.get(t)??{};iu.add(t,{...r,...e})}],t._zod.check=()=>{},t};function a9(e,t={}){let r=new aX({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...e3(t)});return r._zod.bag.Class=e,r._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:r,path:[...r._zod.def.path??[]]})},r}let a3=(...e)=>(function(e,t){let r=e3(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(n=n.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));let o=new Set(n),s=new Set(i),a=e.Codec??n9,l=e.Boolean??nc,u=new a({type:"pipe",in:new(e.String??rG)({type:"string",error:r.error}),out:new l({type:"boolean",error:r.error}),transform:(e,t)=>{let n=e;return"sensitive"!==r.case&&(n=n.toLowerCase()),!!o.has(n)||!s.has(n)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:t.value,inst:u,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?n[0]||"true":i[0]||"false",error:r.error});return u})({Codec:aM,Boolean:sz,String:oC},...e);function a7(e){let t=aV(()=>s6([oN(e),s_(),sT(),sL(),sQ(t),ai(oN(),t)]));return t}function a8(e,t){return a$(ab(e),t)}u||(u={}),e$({localeError:(n={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"},e=>{switch(e.code){case"invalid_type":{let t=o[e.expected]??e.expected,r=function(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}(e.input),n=o[r]??r;return`Invalid input: expected ${t}, received ${n}`}
41case"invalid_value":if(1===e.values.length)return`Invalid input: expected ${e7(e.values[0])}`;return`Invalid option: expected one of ${eZ(e.values,"|")}`;case"too_big":{let t=e.inclusive?"<=":"<",r=n[e.origin]??null;if(r)return`Too big: expected ${e.origin??"value"} to have ${t}${e.maximum.toString()} ${r.unit??"elements"}`;return`Too big: expected ${e.origin??"value"} to be ${t}${e.maximum.toString()}`}case"too_small":{let t=e.inclusive?">=":">",r=n[e.origin]??null;if(r)return`Too small: expected ${e.origin} to have ${t}${e.minimum.toString()} ${r.unit}`;return`Too small: expected ${e.origin} to be ${t}${e.minimum.toString()}`}case"invalid_format":if("starts_with"===e.format)return`Invalid string: must start with "${e.prefix}"`;if("ends_with"===e.format)return`Invalid string: must end with "${e.suffix}"`;if("includes"===e.format)return`Invalid string: must include "${e.includes}"`;if("regex"===e.format)return`Invalid string: must match pattern ${e.pattern}`;return`Invalid ${i[e.format]??e.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${eZ(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}})}),r(23727),s0({BM_ENV:ap(["testing","production"]),BM_PRODUCT_CODE:oN().optional(),BM_AUTH_SDK_URL:oN(),BM_PIANO_SDK_URL:oN(),BM_USER_FLOWS_SDK_URL:oN(),BM_USER_SAVED_ARTICLES_URL:oN(),BM_AUDIO_PLAYER_API_URL:oN(),BM_SELF_SERVICE_SCRIPT_URL:oN(),BM_HEADLESS_TOASTERS_SCRIPT_URL:oN(),BM_STOCK_API_URL:oN(),BM_STOCK_STREAMING_API_URL:oN(),BM_STOCK_SEARCH_API:oN(),BM_STOCK_ECONOMICAL_CALENDAR:oN(),BM_STOCK_FINANCIAL_CALENDAR:oN(),BM_SALES_FLOW_SCRIPT_URL:oN(),BM_GRAPHQL_API_URL:oN(),BM_ARTICLE_PREVIEW_API_URL:oN(),BM_FRONTPAGE_PREVIEW_API_URL:oN(),BM_SEARCH_API_URL:oN(),BM_GOOGLE_RECAPTCHA_SITE_KEY:oN(),BM_IMAGE_BASE_URL:oN(),BM_IMAGE_ORIGINAL_BASE_URL:oN(),BM_IMAGE_TRANSFORM_SECRET:oN()}).pick({BM_AUDIO_PLAYER_API_URL:!0,BM_GOOGLE_RECAPTCHA_SITE_KEY:!0,BM_STOCK_API_URL:!0,BM_STOCK_STREAMING_API_URL:!0,BM_STOCK_SEARCH_API:!0,BM_USER_SAVED_ARTICLES_URL:!0});var le=r(31207);function lt(e){let{children:t,manager:r}=e,n={content:(0,m.useSyncExternalStore)(r.subscribe,r.getState,()=>null),showModal:r.showModal,closeModal:r.closeModal};return(0,h.jsx)(le.V.Provider,{value:n,children:t})}var lr=r(64627),ln=r(56047),li=r(82408),lo=r(19360),ls=r.n(lo);let la={berlingske:{name:"AccessModal",elements:{title:{color:q.r.Grey5,font:{family:U.v.SanomatAlt,weight:"600",size:(0,D.px)(20),lineHeight:(0,D.px)(24)}},description:{color:q.r.Grey5,font:{family:U.v.SanomatSansWeb,weight:"400",size:(0,D.px)(16),lineHeight:(0,D.px)(22)}},closeButton:{color:q.r.Black}}},bt:{name:"AccessModal",elements:{title:{color:K.r.Grey2,font:{family:U.v.BTGrotesk,weight:"800",size:(0,D.px)(18),lineHeight:(0,D.px)(25)}},description:{color:K.r.Grey2,font:{family:U.v.BTGrotesk,weight:"500",size:(0,D.px)(16),lineHeight:(0,D.px)(22)}},closeButton:{color:K.r.Grey2}}},euroinvestor:{name:"AccessModal",elements:{title:{color:X.u.Grey1,font:{family:U.v.LedgerGrotesk,weight:"750",size:(0,D.px)(16),lineHeight:(0,D.px)(24)}},description:{color:X.u.Grey1,font:{family:U.v.LedgerGrotesk,weight:"400",size:(0,D.px)(15),lineHeight:(0,D.px)(21)}},closeButton:{color:X.u.Grey1}}},weekendavisen:{name:"AccessModal",elements:{title:{color:er.G.Black,font:{family:U.v.WEANewDisplay,weight:"400",size:(0,D.px)(21),lineHeight:(0,D.px)(24)}},description:{color:er.G.Black,font:{family:U.v.WEASans,weight:"400",size:(0,D.px)(16),lineHeight:(0,D.px)(22)}},closeButton:{color:er.G.Black}}}};function ll(e){let{logo:t,title:r,description:n,actions:i,onClose:o}=e,[s,a]=(0,m.useState)(null),l=(0,m.useId)(),u=(0,m.useId)();return(0,T.r)({active:!0,elements:[s],onDeactivate:(0,P._)(e=>(e.preventDefault(),o(),!0)),returnFocus:!1}),(0,h.jsxs)(L.J,{themes:la,children:[(0,h.jsx)("div",{className:ls().backdrop}),(0,h.jsxs)("div",{className:ls().modal,ref:a,role:"dialog","aria-modal":"true","aria-labelledby":l,"aria-describedby":u,children:[(0,h.jsx)("div",{className:ls().logo,children:(0,h.jsx)("img",{className:ls().logoImage,src:t,fetchpriority:"high",alt:"logo"})}),(0,h.jsxs)("div",{className:ls().content,children:[(0,h.jsx)("h2",{className:ls().title,id:l,children:r}),(0,h.jsx)("p",{className:ls().description,id:u,children:n}),(0,h.jsx)("div",{className:ls().buttons,children:i.map((e,t)=>(0,h.jsx)(lr.$,{type:"button",trackingClass:e.trackingClass,onClick:e.onClick,variant:0===t?"primary":"tertiary",children:e.text},t))})]}),(0,h.jsx)("button",{type:"button",className:ls().closeButton,onClick:o,children:(0,h.jsx)(ln.U,{size:li.l.Small})})]})]})}
41var lu=r(35027),lc=r(75760),ld=r.n(lc);function lp(e){let{logo:t,zIndex:r=B.wR}=e,{content:n,closeModal:i}=(0,lu.h)(),o=null!==n,s=(0,m.useRef)(null),[a,l]=(0,m.useState)(!1);(0,m.useLayoutEffect)(()=>{if(!o)return;let e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&(s.current=e)},[o]),(0,m.useEffect)(()=>{if(!a||n)return;l(!1);let e=s.current;s.current=null;let t=document.activeElement;(null===t||t===document.body)&&e?.isConnected&&e.focus()},[a,n]);let u=(0,P._)(()=>{i(),l(!0)});return n?(0,h.jsx)("div",{className:ld().container,style:{zIndex:r},children:(0,h.jsx)(ll,{logo:t,title:n.title,description:n.description,actions:n.actions.map(e=>({...e,onClick:()=>{i(),e.onClick()}})),onClose:u})}):null}function lf(){let e=new Set,t=null;return{getState:function(){return t},showModal:function(r){t=r,e.forEach(e=>{e()})},closeModal:function(){t=null,e.forEach(e=>{e()})},subscribe:function(t){return e.add(t),t(),()=>e.delete(t)}}}var lh=r(95853);let lm=[];var ly=r(76696);function lg(e){let{actions:t,children:r}=e;return(0,h.jsx)(ly.N.Provider,{value:t,children:r})}var lv=r(2714);let lb=[];function l_(e){let{manager:t}=e,r=(0,m.useSyncExternalStore)(t?.subscribe||(()=>()=>{}),t?.getState||(()=>lb),()=>lb),n=(0,m.useMemo)(()=>({watchLists:r,removeInstrument:t.removeInstrument,addInstrument:t.addInstrument,updateWatchList:t.updateWatchList,createWatchList:t.createWatchList,deleteWatchList:t.deleteWatchList,hasAccess:t.hasAccess,requestAccess:t.requestAccess}),[r,t.removeInstrument,t.addInstrument,t.updateWatchList,t.createWatchList,t.deleteWatchList,t.hasAccess,t.requestAccess]);return(0,h.jsx)(lv.T.Provider,{value:n,children:e.children})}var lw=r(6722),lk=r(15932),lx=r(36189),lS=r(86086),lE=r(5128),lA=((a=lA||{}).Subscribe="stocksubscribe",a.Unsubscribe="stockunsubscribe",a);function lz(e){let{children:t}=e,r=(0,lk.r)().features.stocks,n=(0,lx.v)(),i=(0,lw.A)();if(!r.enabled)return t;let o=(0,m.useRef)(void 0),s=(0,m.useRef)({});(0,m.useEffect)(()=>{let e=async()=>{if(o.current){let e=await i.getAccessToken();o.current.emit("stocksubscribe",{instrumentIds:Object.keys(s.current),jwt:e})}},t=()=>{o.current?.disconnect()},r=async t=>{t.persisted&&o.current&&(o.current.connect(),e())};return o.current?.emit("stockunsubscribe",{instrumentIds:Object.keys(s.current)}),e(),window.addEventListener("beforeunload",t),window.addEventListener("pageshow",r),()=>{window.removeEventListener("beforeunload",t),window.removeEventListener("pageshow",r)}},[i]),(0,m.useEffect)(()=>()=>{o.current?.connected&&o.current.disconnect()},[]);let a=(0,P._)(async(e,t)=>{if(e.forEach(e=>{s.current[e]||=[],s.current[e].push(t)}),o.current||(o.current=(0,lS.io)(n.BM_STOCK_STREAMING_API_URL,{path:"/socket.io/",transports:["websocket"],autoConnect:!1}),o.current.on("message",e=>{e.forEach(e=>{s.current[e.id]?.forEach(t=>{t(e)})})}),o.current.on("reconnect",async()=>{let e=await i.getAccessToken();o.current?.emit("stocksubscribe",{instrumentIds:Object.keys(s.current),jwt:e})}),o.current.connect()),e.length){let t=await i.getAccessToken();o.current.emit("stocksubscribe",{instrumentIds:e,jwt:t})}}),l=(0,P._)((e,t)=>{if(!e.length)return;e.forEach(e=>{let r=s.current[e]?.filter(e=>e!==t);r?.length?s.current[e]=r:delete s.current[e]});let r=e.filter(e=>!s.current[e]);r.length&&o.current?.emit("stockunsubscribe",{instrumentIds:r})}),u=(0,m.useMemo)(()=>({subscribe:a,unsubscribe:l}),[]);return(0,h.jsx)(lE.W.Provider,{value:u,children:t})}var lT=r(35960);let lP=(0,S.O)(()=>Promise.all([r.e(3864),r.e(3672),r.e(9046),r.e(5262),r.e(5758),r.e(2016)]).then(r.bind(r,12016)).then(e=>e.StockWatchListPanel)),lO="bm-stock-watchlist-panel-open";function lC(e){let{ref:t}=e,[r,n]=(0,m.useState)(!1),[i,o]=(0,m.useState)(null),[s,a]=(0,m.useState)(!1),{hasAccess:l,requestAccess:u}=(0,lT.R)(),c=(0,P._)(e=>{if(l()){try{sessionStorage.setItem(lO,"true")}catch(e){}o(e?.returnFocusTo??null),a(!0),n(!0);return}u()});(0,m.useImperativeHandle)(t,()=>({show:c}));let d=(0,P._)(()=>{try{sessionStorage.setItem(lO,"false")}catch(e){}n(!1)});return((0,m.useEffect)(()=>{if(!window.matchMedia(j.f.tabletDown).matches)try{n("true"===sessionStorage.getItem(lO))}catch(e){}},[]),r)?(0,h.jsx)(lP,{onClose:d,takeFocusOnOpen:s,returnFocusTo:i}):null}let lN=()=>{throw Error("Not implemented")};var lI=r(74851);let lF,lR=async()=>{throw Error("Not implemented")};var lj=r(977);let lD=e=>{let{renderer:t,children:r}=e,n=(0,m.useMemo)(()=>({render:t}),[t]);return(0,h.jsx)(lj.I.Provider,{value:n,children:r})};var lB=r(67959);function lL(e){let t=e.target;if(t.classList){let e=t.classList.toString().match(/\bsp_[a-z0-9_-]+/gi)?.[0];if(e)try{window._sva?.invokeEvent(e)}catch(e){console.warn("Error invoking survey event:",e)}}}var l$=r(5044);function lM(e){let{manager:t,children:r}=e,n=(0,m.useSyncExternalStore)(t.subscribe,t.getState,()=>null),i=(0,m.useMemo)(()=>({articles:n,createArticle:t.createArticle,deleteArticle:t.deleteArticle,hasAccess:t.hasAccess,requestAccess:t.requestAccess}),[n,t.createArticle,t.deleteArticle,t.hasAccess,t.requestAccess]);return(0,h.jsx)(l$.P.Provider,{value:i,children:r})}var lZ=r(47832),lH=r(6550),lG=r(68905),lU=r(83224),lW=r(3148);let lq={berlingske:{name:"UserSavedArticleItem",elements:{label:{color:q.r.Grey12,font:{family:U.v.SanomatSansWeb,size:(0,D.px)(12),weight:"500",lineHeight:(0,D.px)(12),transform:"uppercase"}},title:{color:q.r.Grey5,font:{family:U.v.SanomatAlt,size:(0,D.px)(18),weight:"800",lineHeight:(0,D.px)(24)}},metadata:{color:q.r.Grey12,font:{family:U.v.SanomatSansWeb,size:(0,D.px)(13),weight:"400",lineHeight:(0,D.px)(13)}}}},weekendavisen:{name:"UserSavedArticleItem",elements:{label:{color:er.G.Blue2,font:{family:U.v.WEASans,size:(0,D.px)(13),weight:"500",lineHeight:(0,D.px)(18),letterSpacing:(0,D.px)(1),transform:"uppercase"}},title:{color:er.G.Black,font:{family:U.v.WEASans,size:(0,D.px)(18),weight:"400",lineHeight:(0,D.px)(24)}},metadata:{color:er.G.Grey2,font:{family:U.v.WEASans,size:(0,D.px)(12),weight:"400",lineHeight:(0,D.px)(14),letterSpacing:(0,D.px)(.5),transform:"uppercase"}}}}};var lV=r(42694),lJ=r.n(lV);let lK=e=>{let{article:t}=e;return(0,h.jsx)(L.J,{themes:lq,children:(0,h.jsxs)("div",{className:lJ().container,children:[(0,h.jsxs)("div",{className:lJ().content,children:[(0,h.jsx)("span",{className:lJ().label,children:t.label}),(0,h.jsx)("a",{href:t.url,className:(0,lG.cx)(lJ().title,"sp_user-saved-articles_list_article-click"),children:t.title})]}),(0,h.jsx)("div",{className:lJ().metadata,children:(0,h.jsx)(lW.c,{date:t.date||new Date,format:"date"})})]})})},lQ={berlingske:{name:"UserSavedArticlesEmptyList",elements:{content:{titleColor:q.r.Grey5,descriptionColor:q.r.Grey5,titleFont:{family:U.v.SanomatAlt,size:(0,D.px)(18),weight:"800",lineHeight:(0,D.px)(24)},descriptionFont:{family:U.v.SanomatSansWeb,size:(0,D.px)(16),weight:"400",lineHeight:(0,D.px)(20)}}}},weekendavisen:{name:"UserSavedArticlesEmptyList",elements:{content:{titleColor:er.G.Black,descriptionColor:er.G.Black,titleFont:{family:U.v.WEASans,size:(0,D.px)(18),weight:"600",lineHeight:(0,D.px)(24)},descriptionFont:{family:U.v.WEASans,size:(0,D.px)(18),weight:"400",lineHeight:(0,D.px)(24)}}}}};var lY=r(69416),lX=r.n(lY);let l0=()=>{let e=(0,lk.r)(),t=(0,lI.G)(e.features.language.formal);return(0,h.jsx)(L.J,{themes:lQ,children:(0,h.jsxs)("div",{className:lX().container,children:[(0,h.jsxs)("div",{className:lX().title,children:[t("Din")," liste med gemte artikler er tom"]}),(0,h.jsxs)("div",{className:lX().description,children:[t("Du")," kan gemme artikler og altid finde dem her"]})]})})},l1={berlingske:{name:"UserSavedArticlesList",elements:{container:{divider:q.r.Grey7},deleteButton:{iconColor:q.r.Grey5}}},weekendavisen:{name:"UserSavedArticlesList",elements:{container:{divider:er.G.Grey14},deleteButton:{iconColor:er.G.Black}}}};var l2=r(99623),l4=r.n(l2);function l6(e){let{ref:t}=e,{articles:r,hasAccess:n,requestAccess:i,deleteArticle:o}=(0,lU.N)(),[s,a]=(0,m.useState)(!1),[l,u]=(0,m.useState)(""),[c,d]=(0,m.useState)(null),p=(0,m.useRef)(new Map),f=(0,P._)(()=>{a(!1)}),y=(0,P._)(e=>{if(n()){d(e?.returnFocusTo??null),a(!0);return}i()}),g=(0,P._)(async e=>{let t=r??[],n=t.findIndex(t=>t.articleId===e.articleId),i=t[n+1]??t[n-1],s=p.current.get(e.articleId)===document.activeElement,a=await o(e.articleId);"error"===a.status?u(`${e.title} kunne ikke fjernes fra gemte artikler`):"success"===a.status&&(u(i?`${e.title} er fjernet fra gemte artikler`:"Listen med gemte artikler er nu tom"),s&&i&&p.current.get(i.articleId)?.focus())}),v=(0,P._)((e,t)=>{t?p.current.set(e,t):p.current.delete(e)});return((0,m.useImperativeHandle)(t,()=>({showList:y}
41)),r&&s)?(0,h.jsxs)(lZ.E,{title:"Gemte artikler",isModal:!0,onClose:f,returnFocusTo:c,children:[(0,h.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:l4().srOnly,children:l}),0!==r.length?(0,h.jsx)(L.J,{themes:l1,children:(0,h.jsx)("ul",{className:l4().list,children:r.map(e=>(0,h.jsxs)("li",{className:l4().listItem,children:[(0,h.jsx)("button",{ref:t=>v(e.articleId,t),type:"button","aria-label":`Fjern ${e.title} fra gemte artikler`,className:(0,lG.cx)(l4().deleteButton,"sp_user-saved-articles_list_article-remove"),onClick:()=>g(e),children:(0,h.jsx)(lH.d,{size:li.l.Medium})}),(0,h.jsx)(lK,{article:e})]},e.articleId))})}):(0,h.jsx)(l0,{})]}):(0,h.jsx)("div",{})}let l5=async()=>{throw Error("Not implemented")};var l9=r(46241),l3=r.n(l9),l7=r(34568),l8=r.n(l7),ue=r(96970),ut=r.n(ue);let ur=[".api.no","sns.non-prod.content-presentation.pub.idp-nonprod.net"],un=()=>{let[e,t]=(0,m.useState)();return((0,m.useEffect)(()=>{ur.some(e=>window.location.origin.endsWith(e))&&!window.location.origin.startsWith("https://local.")&&fetch("/version.json").then(e=>e.json()).then(e=>"branch"in e&&"string"==typeof e.branch&&t(e.branch)).catch()},[]),e)?(0,h.jsx)("button",{type:"button",onClick:()=>t(void 0),className:ut().root,children:e}):null};var ui=r(44250);let uo=(0,S.O)(()=>Promise.all([r.e(3672),r.e(9046),r.e(5262),r.e(2092),r.e(3505),r.e(7444)]).then(r.bind(r,10788)).then(e=>e.StockInstrumentGraphElement)),us=(0,S.O)(()=>Promise.all([r.e(8085),r.e(3672),r.e(9046),r.e(5262),r.e(2092),r.e(8660),r.e(6040)]).then(r.bind(r,4974)).then(e=>e.StockIndexOverviewElement)),ua=(0,S.O)(()=>Promise.all([r.e(7279),r.e(5516)]).then(r.bind(r,50952)).then(e=>e.TradingSignalsElement)),ul=[{tagName:"viaplay-video-player",component:(0,S.O)(()=>Promise.all([r.e(3119),r.e(4099),r.e(8774)]).then(r.bind(r,28774)).then(e=>e.ViaplayVideoPlayerElement))},{tagName:"stock-instrument-graph",component:uo},{tagName:"stock-index-overview",component:us},{tagName:"trading-signals",component:ua}];function uu(e){return(0,h.jsx)(h.Fragment,{children:ul.map(t=>{let{tagName:r,component:n}=t;return(0,h.jsx)(ui.V,{root:e.root,tagName:r,component:n},r)})})}let uc=Object.fromEntries(["loadActivePodcastSeries","loadArticlesByCategoryIds","loadArticlesByCategoryPaths","loadArticlesByIds","loadPodcastEpisodeEmbedByUrl","loadPodcastEpisodesBySeriesId","loadFrontPage","loadSearchResults","loadVideoById","loadVideoByJwPlayerId","loadVideoPlaylistByJwPlayerId"].map(e=>[e,async t=>{let r=encodeURIComponent(JSON.stringify(t)),n=await fetch(`/next-api/data?handler=${e}¶ms=${r}`),i=await n.json();if("error"in i)throw Error(i.error);return i.data}]));var ud=r(47890);let up=e=>"object"==typeof e&&null!==e,uf=e=>"object"==typeof e&&null!==e;function uh(e){return(0,h.jsx)(l8(),{children:(0,h.jsx)("style",{"data-theme":e.name,children:function(e,t){let r,n=(r={},!function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";for(let i in t){let o=t[i];up(o)?e(o,`${n}${i}_`):r[`${n}${i}`]=o}}(e.elements,"--bm-theme_"+e.name+"_"),r),i=` 42 ${t} { 43 ${Object.entries(n).map(e=>{let[t,r]=e;return`${t}: ${r};`}).join("")} 44 } 45 `;if(e.variants){let r=t.split(",").map(e=>e.trim());for(let[t,n]of Object.entries(e.variants)){let o=function(e,t){let r={};return!function e(t,n){for(let i in t){let o=t[i];void 0!==o&&(uf(o)?e(o,`${n}${i}_`):r[`${n}${i}`]=o)}}(t,`--bm-theme_${e}_`),r}(e.name,n);if(Object.keys(o).length>0){let e=r.map(e=>`${e} [data-theme-variant=${t}]`).join(", ");i+=` 46 ${e} { 47 ${Object.entries(o).map(e=>{let[t,r]=e;return`${t}: ${r};`}).join("")} 48 } 49 `}}}return i}(e,`:root, .${ud.R}`)},e.name)})}r(94284);let um=(0,S.O)(()=>Promise.all([r.e(7455),r.e(6594)]).then(r.bind(r,76594)).then(e=>e.NotificationsPresenter));function uy(e){let{Component:t,pageProps:n,router:i,host:o}=e,s=(0,m.useRef)(null),a=(0,m.useRef)(null),l=(0,m.useRef)(null),u=function(){let e=null;if(window.BM&&(e=window.BM.appConfig||null),!e)throw Error("App config not found");return e}(),c=function(){let e=null;if(window.BM&&(e=window.BM.env||null),!e)throw Error("Public environment not found");return e}(),d=u.site.url,p=function(e,t){let[r,n]=(0,m.useState)(null);return(0,m.useEffect)(()=>{e&&n(e.querySelector(t))},[e,t]),r}(r.g.document,"#__next"),f=`${d}${i.asPath.split("?")[0]}`;(0,eT.F)("app-mount"),function(){let{consent:e}=(0,eP.u)(),t=(0,m.useRef)(new Set);(0,m.useEffect)(()=>{void 0!==e&&eO.forEach(r=>{e[r]&&!t.current.has(r)&&((0,eb.X)({event:"cookieconsent_"+r}),t.current.add(r))})},[e])}();let y=(0,m.useMemo)(()=>(function(){let e=new Set,t={},r=lm,n=eA("deferred-notifications");function i(n){clearTimeout(t[n]),delete t[n],r=r.filter(e=>
49e.id!==n),e.forEach(e=>{e()})}function o(n){let o,s=String(Math.random());r=[...r,{content:n,id:s,dismiss:()=>i(s)}],e.forEach(e=>{e()}),!1!==n.autoDismiss&&(o=setTimeout(()=>{i(s)},n.timeout||5e3),t[s]=o)}return(n.get()||[]).forEach(e=>{o(e)}),n.clear(),{getState:()=>r,subscribe:function(t){return e.add(t),t(),()=>e.delete(t)},notify:o,deferredNotify:function(e){let t=n.get()||[];t.push(e),n.set(t)}}})(),[]),v=(0,m.useMemo)(lf,[]),_=(0,m.useMemo)(()=>(function(){let e=[],t=null,r=eA("auth"),n={userData:null,authIsHandled:!1};function i(i){t&&(n={authIsHandled:!0,userData:i.accessToken?t.getUserFromAccessToken(i.accessToken):null},r.set({isLoggedIn:!!n.userData,isSubscriber:(0,ed.p)(n.userData)}),e.forEach(e=>{e()}))}return window.asSdk?.isReady?(t=window.asSdk).subscribe(i):window.addEventListener("as:sdk:ready",()=>{window.asSdk&&(t=window.asSdk).subscribe(i)}),{getState:()=>n,getAccessToken:async()=>await t?.getAccessToken()||null,requestLogin:async e=>(await ez(eE.UserFlows.LOGIN,e),n),requestLogout:async()=>{t?await t.logout():console.warn("Auth service SDK not available")},requestCreateProfile:async e=>(await ez(eE.UserFlows.SIGNUP,e),n),requestGetHelpFlow:()=>window.userFlows?window.userFlows?.actions.open("grant-access-flow"):(console.warn("User flows SDK not available"),Promise.resolve()),requestRegretPurchase:async()=>{await ez("regret-purchase")},subscribe:t=>(e.push(t),t(),()=>{let r=e.indexOf(t);r>=0&&e.splice(r,1)}),authenticatedFetch:async(e,r)=>{if(!t)throw Error("Auth service SDK not available");let n=await t.getAccessToken();if(!n)throw Error("No access token available");let i=new Headers(r?.headers);return i.set("Authorization",`Bearer ${n}`),fetch(e,{...r,headers:i})}}})(),[]);(e=>{let{hasSubscription:t,authManager:r}=e,n=(0,lB.F)(()=>void 0!==window._sva);(0,m.useEffect)(()=>{if(!n)return;let e=r.subscribe(()=>{let{authIsHandled:e,userData:n}=r.getState();if(!e)return;let i={accessed_via:window.isNativeApp?"app":"web",user_role:function(e){let{hasSubscription:t,userData:r}=e;return t?r?r.subscriptionTypes.some(e=>e.startsWith("ACC-PRINT"))?"user_print":(0,ec.uz)(r,{userRoles:[".epaper.read"]})?"user_e-paper":(0,ec.uz)(r,{userRoles:[".webapp.read"]})?`user_${window.isNativeApp?"app":"web"}`:"user_free":"anonymous":r?"user_free":"anonymous"}({hasSubscription:t,userData:n}),plus_fri:function(e){if(e)return(0,ec.uz)(e,{userRoles:[".fri.read",".fribb.read"]})?"fri_bm":(0,ec.uz)(e,{userRoles:["pluss"]})?"fri_ekstern":"fri_nej"}(n)};window.BM&&(window.BM.survicateTraits=i);try{window._sva?.setVisitorTraits(i),window._sva?.retarget()}catch(e){console.warn("Error setting visitor traits:",e)}});return window.addEventListener("click",lL),()=>{e(),window.removeEventListener("click",lL)}},[n,r,t])})({authManager:_,hasSubscription:u.features.subscriptions.enabled});let w=(0,m.useMemo)(()=>(function(e){let{repository:t,authManager:r,modalManager:n,notificationsManager:i,config:o}=e;if(!o.features.userSavedArticles.enabled)return{getState:()=>null,subscribe:()=>()=>void 0,createArticle:l5,deleteArticle:l5,hasAccess:()=>!1,requestAccess:()=>void 0};let s=o.features.language.formal,a=o.features.userSavedArticles.accessibleByAnyOfPlans,l=o.features.userSavedArticles.accessibleByAnyOfRoles,u=new Set,c=eA("user-saved-articles-notified"),d=null;function p(){let e=r.getState();return e.authIsHandled&&!!e.userData}function f(){let e;return p()&&(e=r.getState(),!!(0===l.length||(0,eu.l)(a))||(0,ec.uz)(e.userData,{userRoles:l}))}function h(){var e;let t,i,s,a;if(f())return;let l=p()?(t=(0,lI.G)(o.features.language.formal),{title:`Vil ${t("du")} gemme artiklen?`,description:`Som abonnent kan ${t("du")} gemme artikler.`,actions:[{text:"K\xf8b abonnement",trackingClass:"sp_user-saved-articles_modal_go-to-subscription",onClick:()=>{o.features.subscriptions.enabled&&(window.location.href=o.features.subscriptions.baseUrl+"/redirect-user-saved-articles-subscription")}}]}):(e=r.requestLogin,i=o.site.name,s=(0,lI.G)(o.features.language.formal),a=[],window.isNativeApp||a.push({text:"K\xf8b abonnement",trackingClass:"sp_user-saved-articles_modal_go-to-subscription",onClick:()=>{o.features.subscriptions.enabled&&(window.location.href=o.features.subscriptions.baseUrl+"/redirect-user-saved-articles-subscription")}}),a.push({text:"Log ind",trackingClass:"sp_user-saved-articles_modal_go-to-login",onClick:e}),{title:`Vil ${s("du")} gemme artiklen?`,description:`Som ${i}-abonnent kan ${s("du")} gemme artikler, n\xe5r ${s("du")} er logget ind.`,actions:a});n.showModal(l)}
49async function m(){if(!f()){d=null,u.forEach(e=>{e()});return}try{d=await t.getArticles(),u.forEach(e=>{e()})}catch(e){}}return r.subscribe(()=>{m()}),{getState:()=>d,subscribe:function(e){return u.add(e),e(),()=>u.delete(e)},createArticle:async function e(e){if(!f())return h(),{status:"access-required"};if(!d)return i.notify({type:"error",heading:"Der opstod en fejl, pr\xf8v igen senere",body:"Kunne ikke gemme artiklen."}),{status:"error"};d=[e,...d],u.forEach(e=>{e()});try{return await t.createArticle(e),c.get()?i.notify({type:"success",body:"Artiklen er gemt i menuen."}):(i.notify({type:"info",heading:"Artiklen er gemt",body:`${s?"De":"Du"} kan finde gemte artikler i menuen i \xf8verste h\xf8jre hj\xf8rne.`,autoDismiss:!0,timeout:1e4}),c.set("true")),{status:"success"}}catch(t){return d=d.filter(t=>t!==e),u.forEach(e=>{e()}),i.notify({type:"error",heading:"Der opstod en fejl, pr\xf8v igen senere",body:"Kunne ikke gemme artiklen."}),{status:"error"}}},deleteArticle:async function e(e){if(!f())return h(),{status:"access-required"};if(!d)return i.notify({type:"error",heading:"Der opstod en fejl, pr\xf8v igen senere",body:"Kunne ikke fjerne artiklen."}),{status:"error"};let r=d;d=d.filter(t=>t.articleId!==e),u.forEach(e=>{e()});try{await t.deleteArticle(e)}catch(e){return d=r,u.forEach(e=>{e()}),i.notify({type:"error",heading:"Der opstod en fejl, pr\xf8v igen senere",body:"Kunne ikke fjerne artiklen."}),{status:"error"}}return{status:"success"}},hasAccess:f,requestAccess:h}})({repository:(e=>{let{apiHost:t,authManager:r,product:n}=e;if(!t)return{getArticles:async()=>{throw Error("No API host provided")},createArticle:async()=>{throw Error("No API host provided")},deleteArticle:async()=>{throw Error("No API host provided")}};let i=function(e){let{apiHost:t,authManager:r}=e;async function n(e){let{query:n,variables:i}=e,o=new Headers;o.append("Content-Type","application/json"),o.append("Accept","application/json");let s=await r.authenticatedFetch(t,{method:"POST",cache:"no-cache",headers:o,body:JSON.stringify({query:n,variables:i})});if(s.ok)return await s.json();throw Error("UserSavedArticles API request failed")}return async e=>e(n)}({apiHost:t,authManager:r});return{getArticles:async function(){return await i(async e=>{let t=await e({query:` 50 query getArticles($brand: String!) { 51 articles(brand: $brand) { 52 articleId 53 title 54 url 55 label 56 date 57 } 58 } 59 `,variables:{brand:n}});if(t.data.articles)return t.data.articles;throw console.warn("[UserSavedArticles] Get error",t.errors),Error(`[UserSavedArticles] Get error: ${JSON.stringify(t.errors)}`)})},createArticle:async function(e){return await i(async t=>{let r=await t({query:` 60 mutation createArticle($article: ArticleCreateInput) { 61 createArticle(article: $article) { 62 articleId 63 title 64 url 65 label 66 date 67 } 68 } 69 `,variables:{article:{...e,brand:n}}});if(!(r.data.createArticle||r.errors?.[0]?.message.includes("Unique constraint failed")))throw console.warn("[UserSavedArticles] Create error",r.errors),Error(`[UserSavedArticles] Create error: ${JSON.stringify(r.errors)}`)})},deleteArticle:async function(e){return await i(async t=>{let r=await t({query:` 70 mutation deleteArticle($article: ArticleDeleteInput) { 71 deleteArticle(article: $article) { 72 success 73 } 74 } 75 `,variables:{article:{articleId:e,brand:n}}});if(!r.data.deleteArticle.success)throw console.warn("[UserSavedArticles] Delete error",r.errors),Error(`[UserSavedArticles] Delete error: ${JSON.stringify(r.errors)}`)})}}})({product:u.site.productCode,apiHost:c.BM_USER_SAVED_ARTICLES_URL,authManager:_}),authManager:_,modalManager:v,notificationsManager:y,config:u}),[_,v,y,u,c.BM_USER_SAVED_ARTICLES_URL]),k=(0,m.useMemo)(()=>(function(e){let{apiHost:t,brand:r,authManager:n}=e,i=n.authenticatedFetch;async function o(e){let{query:r,variables:n}=e,o=await i(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:r,variables:n})}),s=await o.json();if(s.errors)throw Error(s.errors[0].message);return s.data}return{getPlaylist:async()=>(await o({query:` 76 query FetchPlaylist($brand: String) { 77 playlistItems(brand: $brand) { 78 title 79 label 80 type 81 sortIndex 82 src 83 date 84 thumbnail 85 durationInSeconds 86 progress 87 playbackRate 88 referenceId 89 backlinkUrl 90 } 91 } 92 `,variables:{brand:r}})).playlistItems.map(e=>{var t;let r;return{title:e.title,label:e.label,type:(t=e.type,(r=Object.entries(ex).find(e=>{let[r,n]=e;return n===t}
92))?r[0]:"audio.narrated"),sortIndex:e.sortIndex,src:e.src,date:new Date(e.date),thumbnail:e.thumbnail,durationInSeconds:e.durationInSeconds,progress:e.progress,playbackRate:e.playbackRate,referenceId:e.referenceId,backlinkUrl:e.backlinkUrl}}),addItem:async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];await o({query:` 93 mutation AddToPlaylist($item: PlaylistItemCreateInput) { 94 createPlaylistItem(item: $item) { 95 __typename 96 } 97 } 98 `,variables:{item:{brand:r,src:e.src,title:e.title,label:e.label,type:ex[e.type],date:e.date,thumbnail:e.thumbnail||"",durationInSeconds:e.durationInSeconds,progress:e.progress||0,playbackRate:e.playbackRate||1,referenceId:e.referenceId,backlinkUrl:e.backlinkUrl,addToTop:t}}})},addItems:async e=>{await o({query:` 99 mutation AddManyToPlaylist($items: [PlaylistItemCreateInput]!) { 100 createPlaylistItems(items: $items) { 101 __typename 102 } 103 } 104 `,variables:{items:e.map(e=>({brand:r,src:e.src,title:e.title,label:e.label,type:ex[e.type],date:e.date,thumbnail:e.thumbnail||"",durationInSeconds:e.durationInSeconds,progress:e.progress||0,playbackRate:e.playbackRate||1,referenceId:e.referenceId,backlinkUrl:e.backlinkUrl}))}})},removeItems:async e=>{await o({query:` 105 mutation RemoveFromPlaylist($items: [PlaylistItemDeleteInput]!) { 106 deletePlaylistItems(items: $items) { 107 __typename 108 } 109 } 110 `,variables:{items:e.map(e=>({brand:r,src:e.src}))}})},reorderItems:async(e,t)=>{t.fromIndex!==t.toIndex&&await o({query:` 111 mutation ReorderPlaylist($item: PlaylistItemReorderInput, $newIndex: Int!) { 112 reorderPlaylistItems(item: $item, newIndex: $newIndex) { 113 __typename 114 } 115 } 116 `,variables:{item:{brand:r,sortIndex:t.fromIndex},newIndex:t.toIndex}})},clear:async()=>{await o({query:` 117 mutation ClearPlaylist($item: PlaylistItemClearInput) { 118 clearPlaylistItems(item: $item) { 119 __typename 120 } 121 } 122 `,variables:{item:{brand:r}}})},trackProgress:async(e,t)=>{1!==t&&await o({query:` 123 mutation TrackProgress($item: PlaylistItemUpdateInput) { 124 updatePlaylistItem(item: $item) { 125 __typename 126 } 127 } 128 `,variables:{item:{brand:r,src:e.src,progress:t||0}}})},setPlaybackRate:async(e,t)=>{await o({query:` 129 mutation SetPlaybackRate($item: PlaylistItemUpdateInput) { 130 updatePlaylistItem(item: $item) { 131 __typename 132 } 133 } 134 `,variables:{item:{brand:r,src:e.src,playbackRate:t||e.playbackRate||1}}})}}})({apiHost:c.BM_AUDIO_PLAYER_API_URL,brand:u.site.productCode,authManager:_}),[c.BM_AUDIO_PLAYER_API_URL,u.site.productCode,_]),S=(0,m.useMemo)(()=>(function(e){let t,r,{audioPlaylistRepository:n,authManager:i,notificationsManager:o,modalManager:s,config:a,placeholderImageUrl:l}=e,u=new Set,c=function(){let e,t=null,r=new Set,n=new Set,i={isPlaying:!1,volume:1,playbackRate:1,currentTime:0,duration:0};function o(r,n){t&&(t.src=r,e=n,a())}async function s(r){if(!t)return;let n=t.currentTime;try{await t.play(),e&&(Number.isFinite(e)&&(t.currentTime=e),e=void 0,a())}catch{}a(),r&&setTimeout(()=>{t&&t.currentTime===n&&(o(t.src,n),s())},100)}function a(){t&&(i={isPlaying:!t.paused,volume:t.volume,playbackRate:Number(t.playbackRate.toFixed(2)),currentTime:e||t.currentTime,duration:t.duration},r.forEach(e=>{e()}))}return(t=new Audio).addEventListener("loadedmetadata",a),t.addEventListener("play",a),t.addEventListener("pause",a),t.addEventListener("timeupdate",a),t.addEventListener("volumechange",a),t.addEventListener("durationchange",a),t.addEventListener("ended",function(){n.forEach(e=>{e()})}),{load:o,play:s,pause:function(){t&&(t.pause(),a())},resume:function(){t&&s(!0)},stop:function(){t&&(t.pause(),t.currentTime=0,t.src="",a())},seek:function(r){if(!t)return;let n=Math.min(t.duration,Math.max(0,r));void 0!==e?e=n:Number.isFinite(n)&&(t.currentTime=n),a()},setVolume:function(e){t&&(t.volume=Math.min(1,Math.max(0,e)),a())},setPlaybackRate:function(e){if(!t)return;let r=Math.min(3,Math.max(.5,e));t.defaultPlaybackRate=r,t.playbackRate=r,a()},getState:function(){return i},subscribe:function(e){return r.add(e),()=>{r.delete(e)}},subscribeEnded:function(e){return n.add(e),()=>{n.delete(e)}}}}(),d=(t=0,r=null,{initialize:function(e,n){t=n||0,r=e},play:function(){r&&e_("startPlayer",r)},finish:function(){r&&(e_("finishPlayer",r),r=null)},seek:function(){r&&e_("dragPlayer",r)},progress:function(e){if(r&&e>t){let{percentEvents:n,timeEvents:i}=function(e,t,r){let n=[10,20,30,40,50,60,70,80,90,100].filter(n=>t*n/100>r&&t*n/100<=e),i=[];for(let t=30*Math.ceil(r/30);t<e;t+=30)t>0&&i.push(t);return{percentEvents:n,timeEvents:i}}(e,r.durationInSeconds,t);
134t=e,n.forEach(e=>{r&&e_("percentageReachedPlayer",r,{videoPercentage:e})}),i.forEach(e=>{r&&e_("pingPlayer",r,{time:e})})}},pause:function(){r&&e_("pausePlayer",r)},resume:function(){r&&e_("resumePlayer",r)},setPlaybackRate:function(e){r&&e_("playbackSpeedPlayer",r,{playbackSpeed:e})}}),p=function(e){let{authManager:t,config:r}=e;return{login:{text:"Log ind",trackingClass:"sp_audioplayer_modal_go-to-login",onClick:t.requestLogin},createProfile:{text:"Opret profil",trackingClass:"sp_audioplayer_modal_go-to-register",onClick:t.requestCreateProfile},buySubscription:{text:"K\xf8b abonnement",trackingClass:"sp_audioplayer_modal_go-to-buy-subscription",onClick:()=>{r.features.subscriptions.enabled&&(location.href=r.features.subscriptions.baseUrl+"/redirect-audio-player-subscription")}},upgradeSubscription:{text:"Opgrader abonnement",trackingClass:"sp_audioplayer_modal_go-to-upgrade-subscription",onClick:()=>{r.features.subscriptions.enabled&&(location.href=r.features.subscriptions.baseUrl+"/redirect-audio-player-subscription-upgrade")}},seeAllSubscriptions:{text:"Se alle abonnementer",trackingClass:"sp_audioplayer_modal_go-to-see-all-subscriptions",onClick:()=>{r.features.subscriptions.enabled&&(location.href=r.features.subscriptions.baseUrl+"/redirect-audio-player-subscription-all")}}}}({authManager:i,config:a}),f=ek(),h=ev[a.features.language.locale],m=a.site.name,y=null,g=0,v=null,b={currentMedia:f?.currentMedia||null,playlist:null,isPlaying:f?.isPlaying||!1,volume:f?.volume||1,playbackRate:f?.playbackRate||1,currentTime:f?.currentTime||0,duration:f?.duration||0};function _(e){o.notify({type:"error",heading:h.errorHeading,body:h.errorBody.replace("{errorCode}",e)})}function w(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(y&&A()&&v?.some(e=>e.src===y?.src)){let{currentTime:t,duration:r}=c.getState(),i=Math.abs(g-t);r>0&&t>0&&(i>30||e&&i>0)&&(g=t,n.trackProgress(y,t/r))}}let k=c.getState();c.subscribe(()=>{k=c.getState(),d.progress(k.currentTime),w(),N()}),c.subscribeEnded(()=>{v?.length?Z():(c.stop(),y=null,N()),d.finish()});let x=function(e){let{siteName:t,audioPlayerEngine:r,onPlay:n,onPause:i,onPreviusTrack:o,onNextTrack:s,onSeekBackward:a,onSeekForward:l,onStop:u}=e;function c(){return"u">typeof navigator&&"mediaSession"in navigator}function d(e,t){c()&&navigator.mediaSession.setActionHandler(e,t)}function p(e){c()&&(navigator.mediaSession.playbackState=e)}function f(e){if(c())try{navigator.mediaSession.setPositionState(e)}catch(e){}}if(c()){r.subscribe(()=>{let e=r.getState();p(e.isPlaying?"playing":"paused"),f({position:e.currentTime,duration:e.duration})}),r.subscribeEnded(()=>{p("none")});let e=r.getState();p(e.isPlaying?"playing":"paused"),f({position:e.currentTime,duration:e.duration}),d("play",n),d("pause",i),d("previoustrack",o),d("nexttrack",s),d("seekbackward",a),d("seekforward",l),d("stop",u)}return{setMetaData:function(e){if(!c())return;let r=e?.thumbnail;r?.startsWith("/")&&(r=`${window.location.origin}${r}`),e&&(navigator.mediaSession.metadata=new MediaMetadata({title:e.title,album:e.label||t,artwork:r?[{src:r}]:void 0}))}}}({siteName:m,audioPlayerEngine:c,onPlay:()=>{y&&!k.isPlaying&&L()},onPause:B,onPreviusTrack:()=>M(0),onNextTrack:Z,onSeekBackward:e=>{let{seekOffset:t}=e;return M(k.currentTime-(t??15))},onSeekForward:e=>{let{seekOffset:t}=e;return M(k.currentTime+(t??15))},onStop:$});async function S(){i.getState().userData?O(await n.getPlaylist()):O(null)}function E(){return null!==i.getState().userData}function A(){return E()}function z(e){let{userData:t}=i.getState();return"audio.podcast"===e?a.features.audio.podcast.enabled:"audio.narrated"===e?!!a.features.audio.narrated.enabled&&(!!(0,eu.l)(a.features.audio.narrated.accessibleByAnyOfPlans)||(0===a.features.audio.narrated.accessibleByAnyOfRoles.length?E():(0,ec.uz)(t,{userRoles:a.features.audio.narrated.accessibleByAnyOfRoles}))):"audio.text-to-speech"===e?!!a.features.audio.tts.enabled&&(!!(0,eu.l)(a.features.audio.tts.accessibleByAnyOfPlans)||(0===a.features.audio.tts.accessibleByAnyOfRoles.length?E():(0,ec.uz)(t,{userRoles:a.features.audio.tts.accessibleByAnyOfRoles}))):E()}function T(e){let t;if(!e)return void s.showModal({title:h.requestPlaylistTitle,description:h.requestPlaylistDescription.replace("{siteName}",m),actions:[p.createProfile,p.login]});if("audio.podcast"===e){if(!a.features.audio.podcast.enabled)return;s.showModal({title:h.requestPodcastTitle,description:h.requestPodcastDescription.replace("{siteName}",m),actions:[p.createProfile,p.login]});return}let r=h.requestArticleTitle,n=!1;if("audio.narrated"===e){if(!a.features.audio.narrated.enabled)return;t=a.features.audio.narrated.subscriptionText,n=a.features.audio.narrated.accessibleByAnyOfRoles.length>0}if("audio.text-to-speech"===e){if(!a.features.audio.tts.enabled)return;t=a.features.audio.tts.subscriptionText,n=a.features.audio.tts.accessibleByAnyOfRoles.length>0}
134n?s.showModal({title:r,description:h.requestArticleProfileDescription.replace("{siteName}",m),actions:[p.createProfile,p.login]}):E()?s.showModal({title:r,description:h.requestArticleUpgradeDescription,actions:[p.upgradeSubscription,p.seeAllSubscriptions]}):t&&s.showModal({title:r,description:h.requestArticleSubscriptionDescription.replace("{subscriptionText}",t),actions:[p.buySubscription,p.login]})}function P(e){let t,{userData:r}=i.getState(),n=(0,ed.p)(r),o=h.requestListenTitle,l=!1;if("audio.podcast"===e)return void console.warn("[Audioplayer] access to podcast should always be allowed");if("audio.narrated"===e){if(!a.features.audio.narrated.enabled)return;l=a.features.audio.narrated.accessibleByAnyOfRoles.length>0,t=a.features.audio.narrated.subscriptionText}if("audio.text-to-speech"===e){if(!a.features.audio.tts.enabled)return;l=a.features.audio.tts.accessibleByAnyOfRoles.length>0,t=a.features.audio.tts.subscriptionText}if(!l)return void s.showModal({title:o,description:h.requestListenProfileDescription.replace("{siteName}",m),actions:[p.createProfile,p.login]});if(window.isNativeApp)return void s.showModal({title:o,description:h.requestListenSubscriptionDescription.replace("{subscriptionText}",t??""),actions:E()?[]:[p.login]});if(n)s.showModal({title:o,description:h.requestListenUpgradeDescription,actions:[p.upgradeSubscription,p.seeAllSubscriptions]});else{let e=[p.buySubscription];E()?e.push(p.seeAllSubscriptions):e.push(p.login),s.showModal({title:o,description:h.requestListenSubscriptionDescription.replace("{subscriptionText}",t??""),actions:e})}}function O(e){v=e,N()}function C(){return!!y&&y.src===v?.[0]?.src}function N(){let e=v&&C()?v.slice(1):v;b={currentMedia:y,playlist:e,isPlaying:k.isPlaying,volume:k.volume,playbackRate:k.playbackRate,currentTime:y&&k.currentTime||0,duration:y&&k.duration||0},function(e){if(!("u"<typeof sessionStorage))try{sessionStorage.setItem("bmx--audioplayer--player-restore",JSON.stringify(e))}catch{}}({currentMedia:y,isPlaying:b.isPlaying,volume:b.volume,playbackRate:b.playbackRate,currentTime:b.currentTime,duration:b.duration}),u.forEach(e=>{e()})}async function I(e,t){let r=t?.addToTop??!1,i=e;if(A()){if(!v)return _(eh),{status:"error"};if(!z(i.type))return T(i.type),{status:"access-required"};if(i.thumbnail||(i={...i,thumbnail:l}),!v.some(e=>e.src===i.src)){let e=[...v],t=r?[i,...v]:[...v,i];O(t);try{if(!i.durationInSeconds){let e=await ew(i.src);i={...i,durationInSeconds:e},O(t.map(e=>e.src===i.src?i:e))}await n.addItem(i,r)}catch(t){return console.warn(t),O(e),_("AV-0003"),{status:"error"}}}return o.notify({type:"success",body:"audio.podcast"===i.type?h.podcastAddedToQueue:h.articleAddedToQueue}),{status:"success"}}return T(),{status:"access-required"}}async function F(e){if(!A())return _(em),{status:"error"};if(!v)return _(eh),{status:"error"};let t=Array.isArray(e)?e:[e],r=[...v];O(v.filter(e=>!t.some(t=>t.src===e.src)));try{await n.removeItems(t)}catch(e){return console.warn(e),O(r),_("AV-0004"),{status:"error"}}return 1===t.length?o.notify({type:"success",body:"audio.podcast"===t[0].type?h.podcastRemovedFromQueue:h.articleRemovedFromQueue}):o.notify({type:"success",body:h.itemsRemovedFromQueue.replace("{count}",String(t.length))}),{status:"success"}}async function R(e,t,r){if(A()){if(!v)return _(eh),{status:"error"};let i=+!!C(),o=v.length-i;if(t<0||r<0||t>=o||r>=o)return console.warn("Invalid indexes",t,r),_("AV-0012"),{status:"error"};let s=[...v],a=[...v],[l]=a.splice(t+i,1);l&&a.splice(r+i,0,l),O(a);try{await n.reorderItems(e,{fromIndex:t+i,toIndex:r+i})}catch(e){return console.warn(e),O(s),_("AV-0005"),{status:"error"}}return{status:"success"}}return _(em),{status:"error"}}async function j(){if(A()){if(!v)return _(eh),{status:"error"};let e=[...v];O([]);try{await n.clear()}catch(t){return console.warn(t),O(e),_("AV-0006"),{status:"error"}}return o.notify({type:"success",body:h.queueCleared}),{status:"success"}}return _(em),{status:"error"}}async function D(e){let t=e;if(!z(t.type))return void P(t.type);if(t.thumbnail||(t={...t,thumbnail:l}),"audio.text-to-speech"===t.type){if(!a.features.audio.tts.enabled)return;let e=await ef({projectId:a.features.audio.tts.beyondWordId,nodeId:t.referenceId});e.success&&(t={...t,src:e.data.src,durationInSeconds:e.data.duration})}A()&&v&&(t=v.find(e=>e.src===t.src)||t);let r=y?.src!==t.src?y:null,i=t;if(!t.durationInSeconds){let e=await ew(t.src);i={...t,durationInSeconds:e}}let o=(y=i).progress?y.progress*y.durationInSeconds:0,s=i.playbackRate||1;if(g=o,c.load(y.src),c.setPlaybackRate(s),c.play(),x.setMetaData(y),d.initialize(y,o),d.play(),N(),A()&&v){let e=v.findIndex(e=>
134e.src===i.src),t=r&&v.some(e=>e.src===r.src),o=[...v],s=[i,...v.filter(e=>e.src!==i.src).filter(e=>e.src!==r?.src)];O(s);try{O(s.map(e=>e.src===i.src?i:e)),e>0?await n.reorderItems(i,{fromIndex:e,toIndex:0}):-1===e&&await n.addItem(i,!0),t&&await n.removeItems([r])}catch(e){console.warn(e),_("AV-0007"),O(o)}}}function B(){c.pause(),d.pause()}function L(){b.currentMedia&&0===b.currentTime?D(b.currentMedia):(c.resume(),d.resume())}async function $(){c.stop(),y=null,N()}function M(e){c.seek(e),d.seek(),w(!0)}async function Z(){let e=y?.src!==v?.[0]?.src?v?.[0]:v?.[1];y&&y.src===v?.[0]?.src&&(c.stop(),await n.removeItems([y]),e||(y=null),O(v.slice(1))),e&&D(e)}function H(e){e.currentMedia&&e.isPlaying&&(y=e.currentMedia,g=e.currentTime,d.initialize(y,e.currentTime),c.load(y.src,e.currentTime),c.setVolume(e.volume),c.setPlaybackRate(e.playbackRate),c.play(),N())}return i.subscribe(S),f&&H(f),window.addEventListener("pageshow",e=>{if(e.persisted){let e=ek();e?H(e):(y=null,N())}}),{subscribe:function(e){return u.add(e),()=>{u.delete(e)}},getState:function(){return b},controls:{play:D,pause:B,resume:L,stop:$,next:Z,seek:M,addToPlaylist:I,removeFromPlaylist:F,reorderPlaylist:R,clearPlaylist:j,setPlaybackRate:function(e){c.setPlaybackRate(e),d.setPlaybackRate(e),y&&A()&&v?.some(e=>e.src===y?.src)&&n.setPlaybackRate(y,e)},setVolume:function(e){c.setVolume(e)}},hasPlaylistAccess:A,requestPlaylistAccess:T,hasAudioAccess:z,requestAudioAccess:P}})({audioPlaylistRepository:k,authManager:_,notificationsManager:y,modalManager:v,config:u,placeholderImageUrl:`/brands/${u.site.name.toLowerCase().replace(/\./g,"")}/audio-player-placeholder-image.png`}),[k,_,v,y,u]),E=(0,m.useMemo)(()=>(function(e){let{repository:t,notificationsManager:r,modalManager:n,authManager:i,config:o}=e,s=new Set,a=(0,lI.G)(o.features.language.formal),l=lF;if(!o.features.stocks.enabled)return{getState:()=>lF,subscribe:()=>()=>void 0,removeInstrument:lR,addInstrument:lR,updateWatchList:lR,createWatchList:lR,deleteWatchList:lR,hasAccess:()=>!1,requestAccess:()=>void 0};async function u(e,t){if(!l)throw Error("StockWatchListManager is not initialized");let n=l;e(),d();try{return await t()}
134catch(e){throw l=n,d(),r.notify({type:"error",body:"Der opstod en fejl, pr\xf8v igen senere"}),e}}function c(){let e=i.getState();return e.authIsHandled&&!!e.userData}function d(){s.forEach(e=>{e()})}async function p(){l=await t.getWatchLists(),d()}return i.subscribe(()=>{c()?p():(l=lF,d())}),{subscribe:function(e){return s.add(e),()=>s.delete(e)},getState:function(){return l},removeInstrument:function(e,n){return u(()=>{l=l?.map(t=>t.id===e?{...t,instrumentIds:t.instrumentIds.filter(e=>e!==n)}:t)},async()=>{await t.removeInstrument(e,n),r.notify({type:"success",body:"V\xe6rdipapiret fjernet fra watchlist"})})},addInstrument:function(e,n){return u(()=>{l=l?.map(t=>t.id!==e||t.instrumentIds.includes(n)?t:{...t,instrumentIds:[...t.instrumentIds,n]})},async()=>{await t.addInstrument(e,n),r.notify({type:"success",body:"V\xe6rdipapiret tilf\xf8jet til watchlist"})})},updateWatchList:function(e,r,n){return u(()=>{l=l?.map(t=>t.id===e?{...t,name:r,isPrimary:n}:{...t,isPrimary:!n&&t.isPrimary})},()=>t.updateWatchList(e,r,n))},createWatchList:function(e,r){return u(()=>{l=[...l?.map(e=>({...e,isPrimary:!r&&e.isPrimary}))||[],{id:Number.MAX_SAFE_INTEGER,name:e,isPrimary:r,instrumentIds:[]}]},async()=>{let n=await t.createWatchList(e,r);return l=l?.map(e=>e.id===Number.MAX_SAFE_INTEGER?n:e),d(),n})},deleteWatchList:function(e){return u(()=>{l=l?.filter(t=>t.id!==e)},()=>t.deleteWatchList(e))},hasAccess:c,requestAccess:function(){n.showModal({title:`Vil ${a("du")} oprette en watchlist?`,description:"Log ind for at oprette en watchlist og f\xf8lge dine favoritaktier og andre v\xe6rdipapirer.",actions:[{text:"Opret profil",trackingClass:"sp_watchlist_modal_go-to-register",onClick:i.requestCreateProfile},{text:"Log ind",trackingClass:"sp_watchlist_modal_go-to-login",onClick:i.requestLogin}]})}}})({repository:function(e){let{authManager:t,apiHost:r}=e;if(!r)return{addInstrument:lN,removeInstrument:lN,getWatchLists:lN,updateWatchList:lN,createWatchList:lN,deleteWatchList:lN};let n=t.authenticatedFetch;async function i(e){let t=await n(`${r}/users/watchlists/${e}`);return await t.json()}return{getWatchLists:async function(){if(!t.getState().userData)throw Error("User not logged in");let e=await n(`${r}/users/watchlists`);if(!e.ok)throw Error(`Failed to fetch watchlists: ${e.statusText}`);let i=await e.json(),o=await Promise.all(i.map(async e=>{let t=await n(`${r}/users/watchlists/${e.id}/instruments`);return await t.json()}));return i.map((e,t)=>({id:e.id,name:e.name,isPrimary:e.isPrimary,instrumentIds:o[t]||[]}))},removeInstrument:async function(e,t){let o=await i(e),s=await n(`${r}/users/watchlists/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:o.name,markAsPrimary:o.isPrimary,removeInstrumentIds:[t]})});if(!s.ok)throw Error(`Failed to remove instrument: ${s.statusText}`)},addInstrument:async function(e,t){let o=await i(e),s=await n(`${r}/users/watchlists/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:o.name,markAsPrimary:o.isPrimary,addInstrumentIds:[t]})});if(!s.ok)throw Error(`Failed to add instrument: ${s.statusText}`)},updateWatchList:async function(e,t,i){let o=await n(`${r}/users/watchlists/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,markAsPrimary:i})});if(!o.ok)throw Error(`Failed to update watchlist: ${o.statusText}`)},createWatchList:async function(e,t){let i=await n(`${r}/users/watchlists`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,markAsPrimary:t})});if(!i.ok)throw Error(`Failed to create watchlist: ${i.statusText}`);return{id:await i.json(),name:e,isPrimary:t,instrumentIds:[]}},deleteWatchList:async function(e){let t=await n(`${r}/users/watchlists/${e}`,{method:"DELETE"});if(!t.ok)throw Error(`Failed to delete watchlist: ${t.statusText}`)}}}({authManager:_,apiHost:c.BM_STOCK_API_URL}),notificationsManager:y,modalManager:v,authManager:_,config:u}),[y,v,_,c.BM_STOCK_API_URL,u]);return(0,m.useEffect)(()=>{if(!window.BM)throw Error("BM object not found on window");window.BM.notificationsManager=y,window.BM.authManager=_,window.BM.audioPlayerManager=S,window.BM.userSavedArticlesManager=w,window.BM.modalManager=v,window.BM.stockWatchListManager=E},[y,_,S,w,v,E]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(l8(),{children:[(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, viewport-fit=cover"}),(0,h.jsx)("meta",{property:"og:url",content:f}),(0,h.jsx)("link",{rel:"canonical",href:f})]}),(0,h.jsx)(eC.t,{children:(0,h.jsx)(eI,{config:u,children:(0,h.jsx)(eR,{environment:c,children:(0,h.jsx)(b,{component:l8(),children:(0,h.jsxs)(lD,{renderer:uh,children:[(0,h.jsx)(un,{}),(0,h.jsx)(g,{onShowUserSavedArticlesList:e=>s.current?.showList(e),onShowAudioPlaylist:e=>a.current?.showPlaylist(e),onShowStockWatchList:e=>l.current?.show(e),children:(0,h.jsx)(lg,{actions:uc,children:(0,h.jsx)(lh._,{manager:y,children:(0,h.jsx)(eS.O,{manager:_,children:(0,h.jsx)(lt,{manager:v,children:(0,h.jsx)(lM,{manager:w,children:(0,h.jsx)(x,{manager:S,children:(0,h.jsx)(l_,{manager:E,children:(0,h.jsx)(lz,{children:(0,h.jsxs)(eC.t,{children:[(0,h.jsx)(t,{...n}),(0,h.jsx)(uu,{root:p}),(0,h.jsx)(ea,{ref:a,isNativeApp:!1}),(0,h.jsx)(lp,{logo:u.site.logo}),(0,h.jsx)(um,{}),(0,h.jsx)(l6,{ref:s}),(0,h.jsx)(lC,{ref:l})]})})})})})})})})})})]})})})})})]})}uy.getInitialProps=async e=>{let t=await l3().getInitialProps(e),r=e.ctx.req?.headers.host;if(!r)throw Error("No host found in request headers");return{host:r,...t}}},84592:(e,t,r)=>{"use strict";var n=r(68284),i=r(87931),o=r(98900),s=r(53951),a=r(91503),l=r(91686),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=s(e,c);if(l){if(void 0===t&&(t="default"),!i(r=n(l,e,t))||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},84937:(e,t,r)=>{"use strict";e.exports=r(49758)},85211:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(65162);
134function i(e){let[t,r]=(0,n.useState)();return(0,n.useEffect)(()=>{let t=window.matchMedia?.(e);if(r(t?.matches??!1),!t)return;let n=e=>{let{matches:t}=e;r(t)};return t.addEventListener?t.addEventListener("change",n):t.addListener&&t.addListener(n),()=>{t.removeEventListener?t.removeEventListener("change",n):t.removeListener&&t.removeListener(n)}},[e]),t}},86006:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n={White:"#FFFFFF",Black:"#000000",Grey1:"#F8F8F8",Grey2:"#9D9D9C",Grey3:"#9B9B9B",Grey4:"#626262",Grey5:"#333333",Grey6:"#DEDEDE",Grey7:"#D9D9D9",Grey9:"#DCDCDC",Grey10:"#EAEAEA",Grey11:"#4F4F4F",Grey12:"#777777",Grey14:"#EEEEEE",Grey15:"#C3C3C3",Grey18:"#444444",Blue1:"#4CB1D7",Blue2:"#007CBB",Blue3:"#4183a7",Blue4:"#F2F8FC",GreyBlue:"#9499A7",Red1:"#b95050",Red2:"#D01642",Red3:"#A50E4B",Green:"#008767",Divider:"#EEEEEE",DarkDivider:"#333333",Breaking:"#FFB955",Opinion:"#007787",Kultur:"#6C2889",Business:"#A50E4B",PrimaryBlue:"#007CBB",DarkBlue:"#00336B",GreenBlueGrey:"#597781",BlackGrey:"#333333"}},86086:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{io:()=>ex});var s,a,l={};r.r(l),r.d(l,{Decoder:()=>em,Encoder:()=>ef,PacketType:()=>a,protocol:()=>ep});let u=Object.create(null);u.open="0",u.close="1",u.ping="2",u.pong="3",u.message="4",u.upgrade="5",u.noop="6";let c=Object.create(null);Object.keys(u).forEach(e=>{c[u[e]]=e});let d={type:"error",data:"parser error"},p="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,m=({type:e,data:t},r,n)=>{if(p&&t instanceof Blob)if(r)return n(t);else return y(t,n);if(f&&(t instanceof ArrayBuffer||h(t)))if(r)return n(t);else return y(new Blob([t]),n);return n(u[e]+(t||""))},y=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function g(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<v.length;e++)b[v.charCodeAt(e)]=e;let _="function"==typeof ArrayBuffer,w=(e,t)=>{if("string"!=typeof e)return{type:"message",data:x(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:k(e.substring(1),t)}:c[r]?e.length>1?{type:c[r],data:e.substring(1)}:{type:c[r]}:d},k=(e,t)=>_?x((e=>{let t=.75*e.length,r=e.length,n,i=0,o,s,a,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(n=0;n<r;n+=4)o=b[e.charCodeAt(n)],s=b[e.charCodeAt(n+1)],a=b[e.charCodeAt(n+2)],l=b[e.charCodeAt(n+3)],c[i++]=o<<2|s>>4,c[i++]=(15&s)<<4|a>>2,c[i++]=(3&a)<<6|63&l;return u})(e),t):{base64:!0,data:e},x=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;function S(e){return e.reduce((e,t)=>e+t.length,0)}function E(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function A(e){if(e){var t=e;for(var r in A.prototype)t[r]=A.prototype[r];return t}}A.prototype.on=A.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},A.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},A.prototype.off=A.prototype.removeListener=A.prototype.removeAllListeners=A.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},A.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},A.prototype.emitReserved=A.prototype.emit,A.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},A.prototype.hasListeners=function(e){return!!this.listeners(e).length};let z="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),T="u">typeof self?self:"u">typeof window?window:Function("return this")();function P(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let O=T.setTimeout,C=T.clearTimeout;function N(e,t){t.useNativeTimers?(e.setTimeoutFn=O.bind(T),e.clearTimeoutFn=C.bind(T)):(e.setTimeoutFn=T.setTimeout.bind(T),e.clearTimeoutFn=T.clearTimeout.bind(T))}function I(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}
134class F extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class R extends A{constructor(e){super(),this.writable=!1,N(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new F(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=w(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}class j extends R{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};((e,t)=>{let r=e.split("\x1e"),n=[];for(let e=0;e<r.length;e++){let i=w(r[e],t);if(n.push(i),"error"===i.type)break}return n})(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){var t;let r,n,i;this.writable=!1,t=e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})},n=Array(r=e.length),i=0,e.forEach((e,o)=>{m(e,!1,e=>{n[o]=e,++i===r&&t(n.join("\x1e"))})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=I()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let D=!1;try{D="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let B=D;function L(){}class $ extends j{constructor(e){if(super(e),"u">typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="u">typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class M extends A{constructor(e,t,r){super(),this.createRequest=e,N(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=P(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.
134status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"u">typeof document&&(this._index=M.requestsCount++,M.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=L,e)try{this._xhr.abort()}catch(e){}"u">typeof document&&delete M.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function Z(){for(let e in M.requests)M.requests.hasOwnProperty(e)&&M.requests[e].abort()}M.requestsCount=0,M.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",Z):"function"==typeof addEventListener&&addEventListener("onpagehide"in T?"pagehide":"unload",Z,!1));let H=(o=U({xdomain:!1}))&&null!==o.responseType;class G extends ${constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=H&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new M(U,this.uri(),e)}}function U(e){let t=e.xdomain;try{if("u">typeof XMLHttpRequest&&(!t||B))return new XMLHttpRequest}catch(e){}if(!t)try{return new T[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let W="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class q extends R{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=W?{}:P(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;m(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&z(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=I()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let V=T.WebSocket||T.MozWebSocket;class J extends q{createSocket(e,t,r){return W?new V(e,t,r):t?new V(e,t):new V(e)}doWrite(e,t){this.ws.send(t)}}class K extends R{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{var t,r;let o,s,a,l,u=(t=Number.MAX_SAFE_INTEGER,r=this.socket.binaryType,i||(i=new TextDecoder),o=[],s=0,a=-1,l=!1,new TransformStream({transform(e,n){for(o.push(e);;){if(0===s){if(1>S(o))break;let e=E(o,1);l=(128&e[0])==128,s=(a=127&e[0])<126?3:126===a?1:2}else if(1===s){if(2>S(o))break;let e=E(o,2);a=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),s=3}else if(2===s){if(8>S(o))break;let e=E(o,8),t=new DataView(e.buffer,e.byteOffset,e.length),r=t.getUint32(0);if(r>2097151){n.enqueue(d);break}a=0x100000000*r+t.getUint32(4),s=3}else{if(S(o)<a)break;let e=E(o,a);n.enqueue(w(l?e:i.decode(e),r)),s=0}if(0===a||a>t){n.enqueue(d);break}}}})),c=e.readable.pipeThrough(u).getReader(),y=new TransformStream({transform(e,t){var r;r=r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)},p&&e.data instanceof Blob?e.data.arrayBuffer().then(g).then(r):f&&(e.data instanceof ArrayBuffer||h(e.data))?r(g(e.data)):m(e,!1,e=>{n||(n=new TextEncoder),r(n.encode(e))})}});y.readable.pipeTo(e.writable),this._writer=y.writable.getWriter();let v=()=>{c.read().then(({done:e,value:t})=>{e||(this.onPacket(t),v())}).catch(e=>{})};v();let b={type:"open"};this.query.sid&&(b.data=`{"sid":"${this.query.sid}"}`),this._writer.write(b).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&z(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let Q={websocket:J,webtransport:K,polling:G},Y=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,X=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ee(e){var t,r;let n,i;if(e.length>8e3)throw"URI too long";let o=e,s=e.indexOf("["),a=e.indexOf("]");-1!=s&&-1!=a&&(e=e.substring(0,s)+e.substring(s,a).replace(/:/g,";")+e.substring(a,e.length));let l=Y.exec(e||""),u={},c=14;for(;c--;)u[X[c]]=l[c]||"";return -1!=s&&-1!=a&&(u.source=o,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),n=(t=u.path).replace(/\/{2,9}/g,"/").split("/"),("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),u.pathNames=n,r=u.query,i={},r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(i[t]=r)}),u.queryKey=i,u}let et="function"==typeof addEventListener&&"function"==typeof removeEventListener,er=[];et&&addEventListener("offline",()=>
134{er.forEach(e=>e())},!1);class en extends A{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=ee(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=ee(t.host).host);N(this,t),this.secure=null!=t.secure?t.secure:"u">typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("u">typeof location?location.hostname:"localhost"),this.port=t.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");
134t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}(this.opts.query)),et&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},er.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&en.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",en.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+="string"==typeof r?function(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(r):Math.ceil(1.33*(r.byteLength||r.size))),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,z(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(en.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),et&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=er.indexOf(this._offlineEventListener);-1!==e&&er.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}en.protocol=4;class ei extends en{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;en.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;en.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}
134]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,u(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",s),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}class eo extends ei{constructor(e,t={}){const r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>Q[e]).filter(e=>!!e)),super(e,r)}}eo.protocol;let es="function"==typeof ArrayBuffer,ea=Object.prototype.toString,el="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===ea.call(Blob),eu="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===ea.call(File);function ec(e){return es&&(e instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer))||el&&e instanceof Blob||eu&&e instanceof File}let ed=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ep=5;(s=a||(a={}))[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK";class ef{constructor(e){this.replacer=e}encode(e){return(e.type===a.EVENT||e.type===a.ACK)&&function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(e(t[r]))return!0;return!1}if(ec(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===a.BINARY_EVENT||e.type===a.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t,r,n=(t=[],r=e.data,e.data=function e(t,r){if(!t)return t;if(ec(t)){let e={_placeholder:!0,num:r.length};return r.push(t),e}if(Array.isArray(t)){let n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=e(t[i],r);return n}if("object"==typeof t&&!(t instanceof Date)){let n={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e(t[i],r));return n}return t}(r,t),e.attachments=t.length,{packet:e,buffers:t}),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}function eh(e){return"[object Object]"===Object.prototype.toString.call(e)}class em extends A{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===a.BINARY_EVENT;r||t.type===a.BINARY_ACK?(t.type=r?a.EVENT:a.ACK,this.reconstructor=new ey(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(ec(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===a[r.type])throw Error("unknown packet type "+r.type);if(r.type===a.BINARY_EVENT||r.type===a.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(em.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case a.CONNECT:return eh(t);case a.DISCONNECT:return void 0===t;case a.CONNECT_ERROR:return"string"==typeof t||eh(t);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ed.indexOf(t[0]));case a.ACK:case a.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ey{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,r;let e=(t=this.reconPack,r=this.buffers,t.data=function e(t,r){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<r.length)return r[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=e(t[n],r);else if("object"==typeof t)for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=e(t[n],r));return t}(t.data,r),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eg(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let ev=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eb extends A{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;
134this.subs=[eg(e,"open",this.onopen.bind(this)),eg(e,"packet",this.onpacket.bind(this)),eg(e,"error",this.onerror.bind(this)),eg(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(ev.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let o={type:a.EVENT,data:t};if(o.options={},o.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),o.id=e}let s=null==(n=null==(r=this.io.engine)?void 0:r.transport)?void 0:n.writable,l=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>(this._queue[0],null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:a.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}
134_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case a.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case a.EVENT:case a.BINARY_EVENT:this.onevent(e);break;case a.ACK:case a.BINARY_ACK:this.onack(e);break;case a.DISCONNECT:this.ondisconnect();break;case a.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:a.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:a.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function e_(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e_.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},e_.prototype.reset=function(){this.attempts=0},e_.prototype.setMin=function(e){this.ms=e},e_.prototype.setMax=function(e){this.max=e},e_.prototype.setJitter=function(e){this.jitter=e};class ew extends A{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,N(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new e_({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new eo(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eg(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eg(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eg(e,"ping",this.onping.bind(this)),eg(e,"data",this.ondata.bind(this)),eg(e,"error",this.onerror.bind(this)),eg(e,"close",this.onclose.bind(this)),eg(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){z(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eb(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}
134cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null==(r=this.engine)||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let ek={};function ex(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=function(e,t="",r){let n=e;r=r||"u">typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=ee(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,s=n.path,a=ek[o]&&s in ek[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?r=new ew(i,t):(ek[o]||(ek[o]=new ew(i,t)),r=ek[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(ex,{Manager:ew,Socket:eb,io:ex,connect:ex})},87332:(e,t,r)=>{"use strict";var n=r(37623),i=Object;e.exports=function(e){return i(n(e))}},87380:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;t.f=n&&!r.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},87619:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(65162).createContext)(1)},87628:(e,t,r)=>{"use strict";var n=r(90049),i=r(40346),o=r(64354);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},87931:(e,t,r)=>{"use strict";var n=r(96740);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},90049:(e,t,r)=>{"use strict";e.exports=!r(40346)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},91503:(e,t,r)=>{"use strict";var n=r(68284),i=r(96740),o=r(87931),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!o(a=n(r,e))||i(r=e.valueOf)&&!o(a=n(r,e))||"string"!==t&&i(r=e.toString)&&!o(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},91686:(e,t,r)=>{"use strict";var n=r(96941),i=r(52744),o=r(47352),s=r(38045),a=r(37514),l=r(44845),u=n.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},94157:(e,t,r)=>{"use strict";var n=r(60221),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},94284:(e,t,r)=>{"use strict";r(29967),e.exports=r(84937)},94561:(e,t,r)=>{"use strict";var n=r(91686)("toStringTag"),i={};i[n]="z",e.exports="[object z]"===String(i)},94991:(e,t,r)=>{"use strict";r.d(t,{J:()=>n.J});var n=r(71972)},95162:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n={mobile:"(max-width: 767.9px)",tablet:"(min-width: 768px) and (max-width: 1024px)",tabletDown:"(max-width: 1024px)",tabletUp:"(min-width: 768px)",desktop:"(min-width: 1024.1px) and (max-width: 1320px)",desktopDown:"(max-width: 1320px)",desktopUp:"(min-width: 1024.1px)",largeDesktop:"(min-width: 1320.1px)"}},95853:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});
134var n=r(4930),i=r(65162),o=r(6127);let s=[];function a(e){let{manager:t,children:r}=e,{notify:a,deferredNotify:l}=t,u=(0,i.useSyncExternalStore)(t.subscribe,t.getState,()=>s),c=(0,i.useMemo)(()=>({notifications:u,notify:a,deferredNotify:l}),[u,a,l]);return(0,n.jsx)(o.K.Provider,{value:c,children:r})}},95941:(e,t,r)=>{"use strict";e.exports=!r(40346)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},96740:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},96941:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},96970:e=>{e.exports={root:"BranchIdentifier_root__Wj3_H"}},97009:(e,t,r)=>{"use strict";var n=r(40346),i=r(96740),o=/#|\.prototype\./,s=function(e,t){var r=l[a(e)];return r===c||r!==u&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},97743:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(65162);let i=0;function o(e){let{active:t,offset:r}=e,o=(0,n.useRef)(0),s=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!("u">typeof navigator&&/firefox/i.test(navigator.userAgent))){if(t){if(0===i){o.current=window.scrollY+r;let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.width="100%",document.body.style.paddingRight=e?`${e}px`:"",document.body.style.setProperty("--scroll-lock-gutter",`${e}px`),document.body.style.top=`-${o.current}px`,document.body.style.boxSizing="border-box"}i++,s.current=!0}return()=>{s.current&&(0==--i&&(document.body.style.position="",document.body.style.width="",document.body.style.top="",document.body.style.paddingRight="",document.body.style.boxSizing="",document.body.style.removeProperty("--scroll-lock-gutter"),window.scrollTo(0,o.current)),s.current=!1)}}},[t,r])}},97873:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(65162),i=r(19681);function o(){return(0,n.useContext)(i.j)}},98525:(e,t,r)=>{"use strict";var n=r(82153),i=r(2434).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},98900:(e,t,r)=>{"use strict";var n=r(61218),i=r(96740),o=r(18880),s=r(44845),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,a(e))}},99015:(e,t,r)=>{"use strict";var n=r(66463);e.exports=function(e){return n(e.length)}},99623:e=>{e.exports={srOnly:"UserSavedArticlesList_srOnly__PAVSa",list:"UserSavedArticlesList_list___SQXE",listItem:"UserSavedArticlesList_listItem__leClA",deleteButton:"UserSavedArticlesList_deleteButton__i7i5G"}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(18324),t(91747))),_N_E=e.O()}]);
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.