PageSourceSearch

https://assets.www.handelsblatt.com/frontend/5574.d4385050956a3f81.js

js handelsblatt.com collected 2026-09-24 08:26:11 UTC 116,750 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhbApp=self.webpackChunkhbApp||[]).push([[5574],{65574(Iy,Wi,ee){ee.r(Wi),ee.d(Wi,{DictionaryStrategy:()=>Mi,InfrontUIOptions:()=>au,Language:()=>ge.L,LanguageOptions:()=>ge.a,LinkAction:()=>Oi,SingleInstrumentWidgetBase:()=>te.S,SingleInstrumentWidgetOptions:()=>te.f,SortOrder:()=>le.S,TradingWidgetBase:()=>te.T,TradingWidgetOptions:()=>te.g,UI:()=>Se,WidgetArray:()=>te.j,WidgetBase:()=>te.W,WidgetDecimals:()=>te.c,WidgetNavButtonType:()=>te.d,WidgetOptions:()=>te.b,WidgetPopupParent:()=>le.W,WidgetState:()=>te.a,WidgetSubscriptions:()=>te.i,languageMap:()=>ge.l,registerLanguageData:()=>xy});var v=ee(50029);class zi{constructor(t){this.localStorageKey=t,this.storageObject=v.InfrontUtil.isLocalStorageSupported()&&window.localStorage.getItem(this.localStorageKey)?JSON.parse(window.localStorage.getItem(this.localStorageKey)):{}}store(t,n,r,i=null){this.storageObject.hasOwnProperty(t)||(this.storageObject[t]={}),this.storageObject[t][n]=r,this.save()}get(t,n,r=null){let i=null;return this.storageObject.hasOwnProperty(t)&&this.storageObject[t].hasOwnProperty(n)&&(i=this.storageObject[t][n]),i}clear(t,n,r=null){this.storageObject.hasOwnProperty(t)&&this.storageObject[t].hasOwnProperty(n)&&(delete this.storageObject[t][n],this.save())}removeWidget(t,n=null){this.storageObject.hasOwnProperty(t)&&"object"==typeof this.storageObject[t]&&(delete this.storageObject[t],this.save())}save(){v.InfrontUtil.isLocalStorageSupported()&&window.localStorage.setItem(this.localStorageKey,JSON.stringify(this.storageObject))}storeGlobal(t,n,r){}getGlobal(t,n){}clearGlobal(t,n){}}var qi=ee(64402),F=ee(1689),le=ee(33618),_u=v.InfrontUtil.ClassBinding,vu=v.InfrontUtil.BindingFactory,pu=v.InfrontUtil.ArrayBinding,Xi=v.InfrontUtil.InitialUpdate,gu=v.InfrontUtil.InlineRowFactory;class Yi{constructor(t=null,n=null,r=!1,i=""){this.id=t,this.label=n,this.selected=r,this.styles=i}}class Zi{}class Y{constructor(t,n){const r=new Zi;r.tabs=[],r.useContainers=!0,this.options=v.InfrontUtil.mergeRecursive(r,n),this.element=t,this.enabled=new v.InfrontUtil.Observable,this.enabled.set(!0),this.tabs=new v.InfrontUtil.ObservableArray,this.tabs.replaceWith(this.options.tabs),this.options.useContainers&&this.tabs.foreach(i=>{i[Y.kContainer]=document.createElement("div"),v.InfrontUtil.addClassName(i[Y.kContainer],"cell-tabs__content"),v.InfrontUtil.addClassName(i[Y.kContainer],Y.kHiddenClassname)}),this.selectedId=new v.InfrontUtil.Observable;for(let i=0;i<this.options.tabs.length;i++)if(this.options.tabs[i].selected){this.setSelectedId(this.options.tabs[i].id);break}!this.selectedId.hasValue()&&this.options.tabs.length>0&&this.setSelectedId(this.options.tabs[0].id),this.buildUI()}buildUI(){const t=function mu(e,t,n,r){var i=document.createElement("div");e.appendChild(i);var s=document.createElement("div");i.appendChild(s),s.className="cell-tabs__horizontal";var a=document.createElement("div");s.appendChild(a),a.className="cell-flex-row cell-flex-collapse",a.setAttribute("role","tablist");var o=new pu(a,new gu((u,f)=>{var d=document.createElement("div");d.className="cell-flex-column cell-tabs__horizontal__tab cell-noselect",v.InfrontUtil.addEventListener(d,"click",_=>{r(u.id)}),d.setAttribute("role","button"),v.InfrontUtil.addEventListener(d,"keyup",_=>{var g=_.which||_.keyCode;13!==g&&32!==g||r(u.id)}),d.setAttribute("role","tab");var c=vu.createHTMLAttributeBinding(d,"aria-selected",_=>(_==u.id).toString());n.observe(c,Xi.Synchronous),d.setAttribute("tabindex","0"),(0,le.s)(d,"innerHTML",u.label);var h=new _u(d,"cell-tabs__horizontal__tab--selected",_=>_==u.id);return n.observe(h,Xi.Synchronous),v.InfrontUtil.addClassName(d,u.styles),F.W.unbindingManager.registerUnbind(d,()=>{n.unbind(c),n.unbind(h)}),d}),null);t.observe(o),F.W.unbindingManager.registerUnbind(a,()=>{t.unbind(o)});var l=document.createElement("div");return i.appendChild(l),l}(this.element,this.tabs,this.selectedId,n=>{this.enabled.get()&&this.setSelectedId(n)});this.options.useContainers&&this.tabs.foreach(n=>{t.appendChild(n[Y.kContainer])})}setSelectedId(t){this.selectedId.set(t),this.options.onSelect&&this.options.onSelect(t),this.options.useContainers&&this.tabs.foreach(n=>{n.id==t?v.InfrontUtil.removeClassName(n[Y.kContainer],Y.kHiddenClassname):v.InfrontUtil.addClassName(n[Y.kContainer],Y.kHiddenClassname)})}
1getContainer(t){if(!this.options.useContainers)return null;const n=this.tabs.find(r=>r.id==t);return n?n[Y.kContainer]:null}setEnabled(t){this.enabled.set(t)}destroy(){F.W.unbindAll(this.element),v.InfrontUtil.removeAllChildNodes(this.element)}}Y.kContainer="_container",Y.kHiddenClassname="cell-display-none";var zn=ee(91016),ge=ee(48361),Ki=ee(76133),te=ee(47803),C=ee(31635);function qn(e,t){return(t&&t.strategy?t.strategy:yu)(e,{cache:t&&t.cache?t.cache:Iu,serializer:t&&t.serializer?t.serializer:xu})}function Ji(e,t,n,r){var i=function bu(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),s=t.get(i);return typeof s>"u"&&(s=e.call(this,r),t.set(i,s)),s}function Qi(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,r),t.set(i,s)),s}function Xn(e,t,n,r,i){return n.bind(t,e,r,i)}function yu(e,t){return Xn(e,this,1===e.length?Ji:Qi,t.cache.create(),t.serializer)}var xu=function(){return JSON.stringify(arguments)},Su=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Iu={create:function(){return new Su}},Yn={variadic:function wu(e,t){return Xn(e,this,Qi,t.cache.create(),t.serializer)},monadic:function Eu(e,t){return Xn(e,this,Ji,t.cache.create(),t.serializer)}},A=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}(A||{}),P=function(e){return e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e}(P||{}),ct=function(e){return e[e.number=0]="number",e[e.dateTime=1]="dateTime",e}(ct||{});function es(e){return e.type===P.literal}function Tu(e){return e.type===P.argument}function ts(e){return e.type===P.number}function ns(e){return e.type===P.date}function rs(e){return e.type===P.time}function is(e){return e.type===P.select}function ss(e){return e.type===P.plural}function ku(e){return e.type===P.pound}function as(e){return e.type===P.tag}function os(e){return!(!e||"object"!=typeof e||e.type!==ct.number)}function Zn(e){return!(!e||"object"!=typeof e||e.type!==ct.dateTime)}var ls=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Cu=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Au(e){var t={};return e.replace(Cu,function(n){var r=n.length;switch(n[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Lu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Mu(e){return e.replace(/^(.*?)-/,"")}var us=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,cs=/^(@+)?(\+|#+)?[rs]?$/g,Ou=/(\*)(0+)|(#+)(0+)|(0+)/g,fs=/^(0+)$/;function ds(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(cs,function(n,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function hs(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ru(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!fs.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _s(e){return hs(e)||{}}function Hu(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Mu(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;
1case"scientific":t=(0,C.Cl)((0,C.Cl)((0,C.Cl)({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return(0,C.Cl)((0,C.Cl)({},l),_s(u))},{}));continue;case"engineering":t=(0,C.Cl)((0,C.Cl)((0,C.Cl)({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return(0,C.Cl)((0,C.Cl)({},l),_s(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ou,function(l,u,f,d,c,h){if(u)t.minimumIntegerDigits=f.length;else{if(d&&c)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fs.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(us.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(us,function(l,u,f,d,c,h){return"*"===f?t.minimumFractionDigits=u.length:d&&"#"===d[0]?t.maximumFractionDigits=d.length:c&&h?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];"w"===s?t=(0,C.Cl)((0,C.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=(0,C.Cl)((0,C.Cl)({},t),ds(s)))}else if(cs.test(i.stem))t=(0,C.Cl)((0,C.Cl)({},t),ds(i.stem));else{var a=hs(i.stem);a&&(t=(0,C.Cl)((0,C.Cl)({},t),a));var o=Ru(i.stem);o&&(t=(0,C.Cl)((0,C.Cl)({},t),o))}}return t}var qt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Pu(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(qt[r||""]||qt[n||""]||qt["".concat(n,"-001")]||qt["001"])[0]}var Kn,Bu=new RegExp("^".concat(ls.source,"*")),Uu=new RegExp("".concat(ls.source,"*$"));function L(e,t){return{start:e,end:t}}var Du=!!String.prototype.startsWith&&"_a".startsWith("a",1),Fu=!!String.fromCodePoint,Gu=!!Object.fromEntries,ju=!!String.prototype.codePointAt,Vu=!!String.prototype.trimStart,Wu=!!String.prototype.trimEnd,qu=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Jn=!0;try{Jn="a"===(null===(Kn=ms("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Kn?void 0:Kn[0])}catch{Jn=!1}var er,vs=Du?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Qn=Fu?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var a,r="",i=t.length,s=0;i>s;){if((a=t[s++])>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(55296+((a-=65536)>>10),a%1024+56320)}return r},ps=Gu?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var s=i[r];n[s[0]]=s[1]}return n},gs=ju?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var s,i=t.charCodeAt(n);return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:s-56320+(i-55296<<10)+65536}},Yu=Vu?function(t){return t.trimStart()}:function(t){return t.replace(Bu,"")},Zu=Wu?function(t){return t.trimEnd()}:function(t){return t.replace(Uu,"")};function ms(e,t){return new RegExp(e,t)}if(Jn){var bs=ms("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");er=function(t,n){var r;return bs.lastIndex=n,null!==(r=bs.exec(t)[1])&&void 0!==r?r:""}}else er=function(t,n){for(var r=[];;
1){var i=gs(t,n);if(void 0===i||ys(i)||ec(i))break;r.push(i),n+=i>=65536?2:1}return Qn.apply(void 0,r)};var Ku=function(){function e(t,n){void 0===n&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(123===s){if((a=this.parseArgument(t,r)).err)return a;i.push(a.val)}else{if(125===s&&t>0)break;if(35!==s||"plural"!==n&&"selectordinal"!==n){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(A.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&tr(this.peek()||0)){if((a=this.parseTag(t,n)).err)return a;i.push(a.val)}else{var a;if((a=this.parseLiteral(t,n)).err)return a;i.push(a.val)}}else{var o=this.clonePosition();this.bump(),i.push({type:P.pound,location:L(o,this.clonePosition())})}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<".concat(i,"/>"),location:L(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!tr(this.char()))return this.error(A.INVALID_TAG,L(o,this.clonePosition()));var l=this.clonePosition();return i!==this.parseTagName()?this.error(A.UNMATCHED_CLOSING_TAG,L(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:a,location:L(r,this.clonePosition())},err:null}:this.error(A.INVALID_TAG,L(o,this.clonePosition())))}return this.error(A.UNCLOSED_TAG,L(r,this.clonePosition()))}return this.error(A.INVALID_TAG,L(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Qu(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s)i+=s;else{var a=this.tryParseUnquoted(t,n);if(a)i+=a;else{var o=this.tryParseLeftAngleBracket();if(!o)break;i+=o}}}var l=L(r,this.clonePosition());return{val:{type:P.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function Ju(e){return tr(e)||47===e}(this.peek()||0)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}n.push(39),this.bump()}else n.push(r);this.bump()}return Qn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===n||"selectordinal"===n)||125===r&&t>0?null:(this.bump(),Qn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(A.EMPTY_ARGUMENT,L(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(A.MALFORMED_ARGUMENT,L(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:L(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,L(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(A.MALFORMED_ARGUMENT,L(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=er(this.message,n);return this.bumpTo(n+r.length),{value:r,location:L(t,this.clonePosition())}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(A.EXPECT_ARGUMENT_TYPE,L(a,l));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(c=Zu(d.val)).length)return this.error(A.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));u={style:c,styleLocation:L(f,this.clonePosition())}}if((_=this.tryParseArgumentClose(i)).err)return _;var g=L(i,this.clonePosition());if(u&&vs(u?.style,"::",0)){var p=Yu(u.style.slice(2));if("number"===o)return(d=this.parseNumberSkeletonFromString(p,u.styleLocation)).err?d:{val:{type:P.number,value:r,location:g,style:d.val},err:null};if(0===p.length)return this.error(A.EXPECT_DATE_TIME_SKELETON,g);var m=p;this.locale&&(m=function $u(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var a=1+(1&s),o=s<2?1:3+(s>>1),u=Pu(t);for(("H"==u||"k"==u)&&(o=0);o-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(p,this.locale));var c={type:ct.dateTime,pattern:m,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Au(m):{}};return{val:{type:"date"===o?P.date:P.time,value:r,location:g,style:c},err:null}}return{val:{type:"number"===o?P.number:"date"===o?P.date:P.time,value:r,location:g,style:null!==(s=u?.style)&&void 0!==s?s:null},err:null};
1case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,L(b,(0,C.Cl)({},b)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),S=0;if("select"!==o&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));var d;if(this.bumpSpace(),(d=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),E=this.parseIdentifierIfPossible(),S=d.val}var _,k=this.tryParsePluralOrSelectOptions(t,o,n,E);if(k.err)return k;if((_=this.tryParseArgumentClose(i)).err)return _;var x=L(i,this.clonePosition());return"select"===o?{val:{type:P.select,value:r,options:ps(k.val),location:x},err:null}:{val:{type:P.plural,value:r,options:ps(k.val),offset:S,pluralType:"plural"===o?"cardinal":"ordinal",location:x},err:null};default:return this.error(A.INVALID_ARGUMENT_TYPE,L(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,L(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(n.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=function Nu(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var n=[],r=0,i=e.split(Lu).filter(function(c){return c.length>0});r<i.length;r++){var a=i[r].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var o=a[0],l=a.slice(1),u=0,f=l;u<f.length;u++)if(0===f[u].length)throw new Error("Invalid number skeleton");n.push({stem:o,options:l})}return n}(t)}catch{return this.error(A.INVALID_NUMBER_SKELETON,n)}return{val:{type:ct.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Hu(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var s,a=!1,o=[],l=new Set,u=i.value,f=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"===n||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR,A.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=L(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}if(l.has(u))return this.error("select"===n?A.DUPLICATE_SELECT_ARGUMENT_SELECTOR:A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);"other"===u&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===n?A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var g=this.tryParseArgumentClose(h);if(g.err)return g;o.push([u,{value:_.val,location:L(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(s=this.parseIdentifierIfPossible()).value,f=s.location}return 0===o.length?this.error("select"===n?A.EXPECT_SELECT_ARGUMENT_SELECTOR:A.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(A.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(!(o>=48&&o<=57))break;s=!0,a=10*a+(o-48),this.bump()}var l=L(i,this.clonePosition());return s?qu(a*=r)?{val:a,err:null}:this.error(n,l):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=gs(this.message,t);if(void 0===n)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(vs(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;
1if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ys(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset();return this.message.charCodeAt(n+(t>=65536?2:1))??null},e}();function tr(e){return e>=97&&e<=122||e>=65&&e<=90}function Qu(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ys(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ec(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function nr(e){e.forEach(function(t){if(delete t.location,is(t)||ss(t))for(var n in t.options)delete t.options[n].location,nr(t.options[n].value);else ts(t)&&os(t.style)||(ns(t)||rs(t))&&Zn(t.style)?delete t.style.location:as(t)&&nr(t.children)})}function tc(e,t){void 0===t&&(t={}),t=(0,C.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ku(e,t).parse();if(n.err){var r=SyntaxError(A[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||nr(n.val),n.val}var ft=function(e){return e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API",e}(ft||{}),Xt=function(e){function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return(0,C.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ws=function(e){function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ft.INVA
1LID_VALUE,s)||this}return(0,C.C6)(t,e),t}(Xt),nc=function(e){function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),ft.INVALID_VALUE,i)||this}return(0,C.C6)(t,e),t}(Xt),rc=function(e){function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),ft.MISSING_VALUE,r)||this}return(0,C.C6)(t,e),t}(Xt),Z=function(e){return e[e.literal=0]="literal",e[e.object=1]="object",e}(Z||{});function sc(e){return"function"==typeof e}function Yt(e,t,n,r,i,s,a){if(1===e.length&&es(e[0]))return[{type:Z.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var f=u[l];if(es(f))o.push({type:Z.literal,value:f.value});else if(ku(f))"number"==typeof s&&o.push({type:Z.literal,value:n.getNumberFormat(t).format(s)});else{var d=f.value;if(!i||!(d in i))throw new rc(d,a);var c=i[d];if(Tu(f))(!c||"string"==typeof c||"number"==typeof c)&&(c="string"==typeof c||"number"==typeof c?String(c):""),o.push({type:"string"==typeof c?Z.literal:Z.object,value:c});else if(ns(f)){var h="string"==typeof f.style?r.date[f.style]:Zn(f.style)?f.style.parsedOptions:void 0;o.push({type:Z.literal,value:n.getDateTimeFormat(t,h).format(c)})}else if(rs(f))h="string"==typeof f.style?r.time[f.style]:Zn(f.style)?f.style.parsedOptions:r.time.medium,o.push({type:Z.literal,value:n.getDateTimeFormat(t,h).format(c)});else if(ts(f))(h="string"==typeof f.style?r.number[f.style]:os(f.style)?f.style.parsedOptions:void 0)&&h.scale&&(c*=h.scale||1),o.push({type:Z.literal,value:n.getNumberFormat(t,h).format(c)});else{if(as(f)){var _=f.children,g=f.value,p=i[g];if(!sc(p))throw new nc(g,"function",a);var y=p(Yt(_,t,n,r,i,s).map(function(S){return S.value}));Array.isArray(y)||(y=[y]),o.push.apply(o,y.map(function(S){return{type:"string"==typeof S?Z.literal:Z.object,value:S}}))}if(is(f)){if(!(b=f.options[c]||f.options.other))throw new ws(f.value,c,Object.keys(f.options),a);o.push.apply(o,Yt(b.value,t,n,r,i))}else if(ss(f)){var b;if(!(b=f.options["=".concat(c)])){if(!Intl.PluralRules)throw new Xt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ft.MISSING_INTL_API,a);var E=n.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));b=f.options[E]||f.options.other}if(!b)throw new ws(f.value,c,Object.keys(f.options),a);o.push.apply(o,Yt(b.value,t,n,r,i,c-(f.offset||0)))}}}}return function ic(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return r&&r.type===Z.literal&&n.type===Z.literal?r.value+=n.value:t.push(n),t},[])}(o)}function rr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var Es=function(){function e(t,n,r,i){void 0===n&&(n=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var f=s.formatToParts(u);if(1===f.length)return f[0].value;var d=f.reduce(function(c,h){return c.length&&h.type===Z.literal&&"string"==typeof c[c.length-1]?c[c.length-1]+=h.value:c.push(h.value),
1c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(u){return Yt(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:(null===(u=s.resolvedLocale)||void 0===u?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var l=(0,C.Tt)(i||{},["formatters"]);this.ast=e.__parse(t,(0,C.Cl)((0,C.Cl)({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function oc(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=function ac(e,t){return t?(0,C.Cl)((0,C.Cl)((0,C.Cl)({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=(0,C.Cl)((0,C.Cl)({},e[r]),t[r]||{}),n},{})):e}(e[r],t[r]),n},(0,C.Cl)({},e)):e}(e.formats,r),this.formatters=i&&i.formatters||function lc(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:qn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,(0,C.fX)([void 0],n,!1)))},{cache:rr(e.number),strategy:Yn.variadic}),getDateTimeFormat:qn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,C.fX)([void 0],n,!1)))},{cache:rr(e.dateTime),strategy:Yn.variadic}),getPluralRules:qn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,(0,C.fX)([void 0],n,!1)))},{cache:rr(e.pluralRules),strategy:Yn.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale("string"==typeof t?t:t[0])}},e.__parse=tc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const uc=Es;var cc=Array.isArray,fc=Array.prototype.indexOf,Zt=Array.prototype.includes,dc=Array.from,xs=Object.keys,je=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,hc=Object.prototype,_c=Array.prototype,vc=Object.getPrototypeOf,Ss=Object.isExtensible;const Me=()=>{};function Is(e){for(var t=0;t<e.length;t++)e[t]()}const ir=1<<24,Ts=1<<25,Kt=1<<21,dt=1<<22,ht=1<<23,_t=Symbol("$state"),mc=Symbol("legacy props"),yc=Symbol("attributes"),wc=Symbol("class"),Ec=Symbol("style"),xc=Symbol("text"),Jt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function ks(e){return e===this.v}function Cs(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function Sc(e){return!Cs(e,this.v)}globalThis;const en={},W=Symbol("uninitialized");let j=null;function nn(e){j=e}let Oe=[];function Os(){var e=Oe;Oe=[],Is(e)}function Ie(e){if(0===Oe.length&&!xt){var t=Oe;queueMicrotask(()=>{t===Oe&&Os()})}Oe.push(e)}function sf(){for(;Oe.length>0;)Os()}function Rs(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let X,ie=!1;function on(e){ie=e}function vt(e){if(null===e)throw Rs(),en;return X=e}function Ps(){return vt(Te(X))}function pt(e){if("object"!=typeof e||null===e||_t in e)return e;const t=vc(e);if(t!==hc&&t!==_c)return e;var n=new Map,r=cc(e),i=U(0),a=ce,o=d=>{if(ce===a)return d();var c=N,h=ce;se(null),xa(a);var _=d();return se(c),xa(h),_};return r&&n.set("length",U(e.length)),new Proxy(e,{defineProperty(d,c,h){(!("value"in h)||!1===h.configurable||!1===h.enumerable||!1===h.writable)&&function kc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var _=n.get(c);return void 0===_?o(()=>{var g=U(h.value);return n.set(c,g),g}):T(_,h.value,!0),!0},deleteProperty(d,c){var h=n.get(c);if(void 0===h){if(c in d){const _=o(()=>U(W));n.set(c,_),z(i)}}else T(h,W),z(i);return!0},get(d,c,h){if(c===_t)return e;var _=n.get(c),g=c in d;if(void 0===_&&(!g||Ve(d,c)?.writable)&&(_=o(()=>U(pt(g?d[c]:W))),n.set(c,_)),void 0!==_){var p=w(_);return p===W?void 0:p}return Reflect.get(d,c,h)},getOwnPropertyDescriptor(d,c){var h=Reflect.getOwnPropertyDescriptor(d,c);if(h&&"value"in h){var _=n.get(c);_&&(h.value=w(_))}else if(void 0===h){var g=n.get(c),p=g?.v;if(void 0!==g&&p!==W)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return h},has(d,c){if(c===_t)return!0;var h=n.get(c),_=void 0!==h&&h.v!==W||Reflect.has(d,c);return!((void 0!==h||null!==R&&(!_||Ve(d,c)?.writable))&&(void 0===h&&(h=o(()=>U(_?pt(d[c]):W)),n.set(c,h)),w(h)===W))&&_},set(d,c,h,_){var g=n.get(c),p=c in d;if(r&&"length"===c)for(var m=h;m<g.v;m+=1){var y=n.get(m+"");void 0!==y?T(y,W):m in d&&(y=o(()=>U(W)),n.set(m+"",y))}void 0===g?(!p||Ve(d,c)?.writable)&&(T(g=o(()=>U(void 0)),pt(h)),n.set(c,g)):(p=g.v!==W,T(g,o(()=>pt(h))));var E=Reflect.getOwnPropertyDescriptor(d,c);
1if(E?.set&&E.set.call(_,h),!p){if(r&&"string"==typeof c){var S=n.get("length"),k=Number(c);Number.isInteger(k)&&k>=S.v&&T(S,k+1)}z(i)}return!0},ownKeys(d){w(i);var c=Reflect.ownKeys(d).filter(g=>{var p=n.get(g);return void 0===p||p.v!==W});for(var[h,_]of n)_.v!==W&&!(h in d)&&c.push(h);return c},setPrototypeOf(){!function Cc(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}var Us,Fs,Gs;function or(){if(void 0===Us){Us=window,document,/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Fs=Ve(t,"firstChild").get,Gs=Ve(t,"nextSibling").get,Ss(e)&&(e[wc]=void 0,e[yc]=null,e[Ec]=void 0,e.__e=void 0),Ss(n)&&(n[xc]=void 0)}}function ze(e=""){return document.createTextNode(e)}function fn(e){return Fs.call(e)}function Te(e){return Gs.call(e)}function js(e){var t=R;if(null===t)return N.f|=ht,e;if(!(32768&t.f||4&t.f))throw e;qe(e,t)}function qe(e,t){if(!(null!==t&&16384&t.f)){for(;null!==t;){if(128&t.f){if(!(32768&t.f))throw e;try{return void t.b.error(e)}catch(n){e=n}}t=t.parent}throw e}}
1function G(e,t){e.f=-7169&e.f|t}function ur(e){G(e,512&e.f||null===e.deps?1024:4096)}function Vs(e){if(null!==e)for(const t of e)!(2&t.f)||!(65536&t.f)||(t.f^=65536,Vs(t.deps))}function Ws(e,t,n){2048&e.f?t.add(e):!!(4096&e.f)&&n.add(e),Vs(e.deps),G(e,1024)}const Xe=[];function cr(e,t=Me){let n=null;const r=new Set;function i(o){if(Cs(e,o)&&(e=o,n)){const l=!Xe.length;for(const u of r)u[1](),Xe.push(u,e);if(l){for(let u=0;u<Xe.length;u+=2)Xe[u][0](Xe[u+1]);Xe.length=0}}}function s(o){i(o(e))}return{set:i,update:s,subscribe:function a(o,l=Me){const u=[o,l];return r.add(u),1===r.size&&(n=t(i,s)||Me),o(e),()=>{r.delete(u),0===r.size&&n&&(n(),n=null)}}}}function Ye(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return function Sf(e,t){return{subscribe:cr(e,t).subscribe}}(n,(a,o)=>{let l=!1;const u=[];let f=0,d=Me;const c=()=>{if(f)return;d();const _=t(r?u[0]:u,a,o);s?a(_):d="function"==typeof _?_:Me},h=i.map((_,g)=>function Ef(e,t,n){if(null==e)return t(void 0),n&&n(void 0),Me;const r=Aa(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}(_,p=>{u[g]=p,f&=~(1<<g),l&&c()},()=>{f|=1<<g}));return l=!0,c(),function(){Is(h),d(),l=!1}})}function Ze(e){var t=N,n=R;se(null),ke(null);try{return e()}finally{se(t),ke(n)}}function mr(e){let r,t=0,n=Qe(0);return()=>{Gr()&&(w(n),yn(()=>(0===t&&(r=Aa(()=>e(()=>z(n)))),t+=1,()=>{Ie(()=>{t-=1,0===t&&(r?.(),r=void 0,z(n))})})))}}class zf{parent;is_pending=!1;transform_error;#e;#t=ie?X:null;#n;#r;#i;#s=null;#a=null;#l=null;#o=null;#v=0;#u=0;#c=!1;#d=new Set;#p=new Set;#f=null;#b=mr(()=>(this.#f=Qe(this.#v),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#n=n,this.#r=s=>{var a=R;a.b=this,a.f|=128,r(s)},this.parent=R.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#i=function ih(e,t=0){return J(16|t,e)}(()=>{if(ie){const s=this.#t;Ps();const a="[!"===s.data;if(s.data.startsWith("[?")){const l=JSON.parse(s.data.slice(2));this.#y(l)}else a?this.#E():this.#g()}else this.#h()},589824),ie&&(this.#e=X)}#g(){try{this.#s=Ue(()=>this.#r(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#n.failed,{reset:r,invoke_onerror:i}=this.#w(t);Ie(i),n&&(this.#l=Ue(()=>{n(this.#e,()=>t,()=>r)}))}#w(t){var n=!1,r=!1;const i=()=>{n?function of(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}():(n=!0,r&&function Lc(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#l&&wn(this.#l,()=>{this.#l=null}),this.#_(()=>{this.#h()}))};return{reset:i,invoke_onerror:()=>{try{r=!0,this.#n.onerror?.(t,i),r=!1}catch(a){qe(a,this.#i&&this.#i.parent)}}}}#E(){const t=this.#n.pending;t&&(this.is_pending=!0,this.#a=Ue(()=>t(this.#e)),Ie(()=>{var n=this.#o=document.createDocumentFragment(),r=ze();n.append(r),this.#s=this.#_(()=>Ue(()=>this.#r(r))),0===this.#u&&(this.#e.before(n),this.#o=null,wn(this.#a,()=>{this.#a=null}),this.#m(M))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#v=0,this.#s=Ue(()=>{this.#r(this.#e)}),this.#u>0){var t=this.#o=document.createDocumentFragment();!function oh(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:Te(n);t.append(n),n=i}}(this.#s,t);const n=this.#n.pending;this.#a=Ue(()=>n(this.#e))}else this.#m(M)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#d,this.#p)}defer_effect(t){Ws(t,this.#d,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#_(t){var n=R,r=N,i=j;ke(this.#i),se(this.#i),nn(this.#i.ctx);try{return me.ensure(),t()}catch(s){return js(s),null}finally{ke(n),se(r),nn(i)}}#x(t,n){this.has_pending_snippet()?(this.#u+=t,0===this.#u&&(this.#m(n),this.#a&&wn(this.#a,()=>{this.#a=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))):this.parent&&this.parent.#x(t,n)}update_pending_count(t,n){this.#x(t,n),this.#v+=t,this.#f&&!this.#c&&(this.#c=!0,Ie(()=>{this.#c=!1,this.#f&&pa(this.#f,this.#v)}))}get_effect_pending(){return this.#b(),w(this.#f)}error(t){if(!this.#n.onerror&&!this.#n.failed)throw t;M?.is_fork?(this.#s&&M.skip_effect(this.#s),this.#a&&M.skip_effect(this.#a),this.#l&&M.skip_effect(this.#l),M.oncommit(()=>{this.#S(t)})):this.#S(t)}#S(t){this.#s&&(fe(this.#s),this.#s=null),this.#a&&(fe(this.#a),this.#a=null),this.#l&&(fe(this.#l),this.#l=null),ie&&(vt(this.#t),function uf(e=1){if(ie){for(var t=e,n=X;t--;)n=Te(n);X=n}}(),vt(function cf(e=!0){for(var t=0,n=X;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&
1(t+=1)}var i=Te(n);e&&n.remove(),n=i}}()));let n=this.#n.failed;const r=i=>{const{reset:s,invoke_onerror:a}=this.#w(i);a(),n&&(this.#l=this.#_(()=>{try{return Ue(()=>{var o=R;o.b=this,o.f|=128,n(this.#e,()=>i,()=>s)})}catch(o){return qe(o,this.#i.parent),null}}))};Ie(()=>{var i;try{i=this.transform_error(t)}catch(s){return void qe(s,this.#i&&this.#i.parent)}null!==i&&"object"==typeof i&&"function"==typeof i.then?i.then(r,s=>qe(s,this.#i&&this.#i.parent)):r(i)})}}const wt=Symbol("obsolete");function Cr(e){var t,n=R,r=e.parent;if(!Pe&&null!==r&&e.v!==W&&24576&r.f)return function af(){console.warn("https://svelte.dev/e/derived_inert")}(),e.v;ke(r);try{e.f&=-65537,function pd(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)fe(t[n])}}(e),t=Ta(e)}finally{ke(n)}return t}function aa(e){var t=Cr(e);e.equals(t)||(e.wv=Sa(),M?.is_fork&&null!==e.deps||(null!==M?(M.capture(e,t,!0),Lr?.capture(e,t,!0)):e.v=t,null!==e.deps))?Pe||(null!==V?(Gr()||M?.is_fork)&&V.set(e,t):ur(e)):G(e,1024)}function oa(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&null!==t.fn&&tt(t)}let Et=null,He=null,M=null,Lr=null,V=null,Nr=null,xt=!1,Mr=!1,Je=null,vn=null;var ca=0;let Ld=1;class me{id=Ld++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#s=0;#a=new Map;#l=null;#o=[];#v=[];#u=new Set;#c=new Set;#d=new Map;#p=new Set;is_fork=!1;#f=!1;constructor(){null===He?Et=He=this:(He.#n=this,this.#t=He),He=this}#b(){if(this.is_fork)return!0;for(const r of this.#a.keys()){for(var t=r,n=!1;null!==t.parent;){if(this.#d.has(t)){n=!0;break}t=t.parent}if(!n)return!0}return!1}skip_effect(t){this.#d.has(t)||this.#d.set(t,{d:[],m:[]}),this.#p.delete(t)}unskip_effect(t,n=r=>this.schedule(r)){var r=this.#d.get(t);if(r){for(var i of(this.#d.delete(t),r.d))G(i,2048),n(i);for(i of r.m)G(i,4096),n(i)}this.#p.add(t)}#g(){this.#e=!0,ca++>1e3&&(this.#_(),function Nd(){try{!function Ic(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(n){qe(n,Nr)}}());for(const l of this.#u)this.#c.delete(l),G(l,2048),this.schedule(l);for(const l of this.#c)G(l,4096),this.schedule(l);const t=this.#o;this.#o=[],this.apply();var n=Je=[],r=[],i=vn=[];for(const l of t)try{this.#y(l,n,r)}catch(u){throw va(l),this.#b()||this.discard(),u}if(M=null,i.length>0){var s=me.ensure();for(const l of i)s.schedule(l)}if(Je=null,vn=null,this.#b()){this.#h(r),this.#h(n);for(const[l,u]of this.#d)_a(l,u);return void(i.length>0&&M.#g())}const a=this.#w();if(a)return this.#h(r),this.#h(n),void a.#E(this);this.#u.clear(),this.#c.clear();for(const l of this.#r)l(this);this.#r.clear(),Lr=this,fa(r),fa(n),Lr=null,this.#l?.resolve();var o=M;if(0===this.#s&&(0===this.#o.length||null!==o)&&this.#_(),this.#o.length>0)if(null!==o){const l=o;l.#o.push(...this.#o.filter(u=>!l.#o.includes(u)))}else o=this;null!==o&&o.#g()}#y(t,n,r){t.f^=1024;for(var i=t.first;null!==i;){var s=i.f,a=!!(96&s);if(!(a&&1024&s||8192&s||this.#d.has(i))&&null!==i.fn){a?i.f^=1024:4&s?n.push(i):It(i)&&(!!(16&s)&&this.#c.add(i),tt(i));var u=i.first;if(null!==u){i=u;continue}}for(;null!==i;){var f=i.next;if(null!==f){i=f;break}i=i.parent}}}#w(){for(var t=this.#t;null!==t;){if(!t.is_fork)for(const[n,[,r]]of this.current)if(t.current.has(n)&&!r)return t;t=t.#t}return null}#E(t){for(const[r,i]of t.current)!this.previous.has(r)&&t.previous.has(r)&&this.previous.set(r,t.previous.get(r)),this.current.set(r,i);for(const[r,i]of t.async_deriveds){const s=this.async_deriveds.get(r);s&&i.promise.then(s.resolve).catch(s.reject)}t.async_deriveds.clear(),this.transfer_effects(t.#u,t.#c);const n=r=>{var i=r.reactions;if(null!==i&&(!(2&r.f)||6144&r.f))for(const o of i){var s=o.f;if(2&s)n(o);else{var a=o;s&(16|dt)&&!this.async_deriveds.has(a)&&(this.#c.delete(a),G(a,2048),this.schedule(a))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>t.discard()),t.#_(),M=this,this.#g()}#h(t){for(var n=0;n<t.length;n+=1)Ws(t[n],this.#u,this.#c)}capture(t,n,r=!1){t.v!==W&&!this.previous.has(t)&&this.previous.set(t,t.v),0===(t.f&ht)&&(this.current.set(t,[n,r]),V?.set(t,n)),this.is_fork||(t.v=n)}activate(){M=this}deactivate(){M=null,V=null}flush(){try{Mr=!0,M=this,this.#g()}finally{ca=0,Nr=null,Je=null,vn=null,Mr=!1,M=null,V=null,$e.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear();for(const t of this.async_deriveds.values())t.reject(wt);this.#_(),this.#l?.resolve()}register_created_effect(t){this.#v.push(t)}#m(){for(let d=Et;null!==d;d=d.#n){var t=d.id<this.id,n=[];for(const[c,[h,_]]of this.current){if(d.current.has(c)){var r=d.current.get(c)[0];if(!t||h===r)continue;d.current.set(c,[h,_])}n.push(c)}if(t)for(const[c,h]of this.async_deriveds){const _=d.async_deriveds.get(c);
1_&&h.promise.then(_.resolve).catch(_.reject)}var i=[...d.current.keys()].filter(c=>!d.current.get(c)[1]);if(d.#e&&0!==i.length){var s=i.filter(c=>!this.current.has(c));if(0===s.length)t&&d.discard();else if(n.length>0){if(t)for(const c of this.#p)d.unskip_effect(c,h=>{h.f&(16|dt)?d.schedule(h):d.#h([h])});d.activate();var a=new Set,o=new Map;for(var l of n)da(l,s,a,o);o=new Map;var u=[...d.current].filter(([c,h])=>{const _=this.current.get(c);return!_||_[0]!==h[0]||_[1]!==h[1]}).map(([c])=>c);if(u.length>0)for(const c of this.#v)!(155648&c.f)&&Or(c,u,o)&&(c.f&(16|dt)?(G(c,2048),d.schedule(c)):d.#u.add(c));if(d.#o.length>0&&!d.#f){for(var f of(d.apply(),d.#o))d.#y(f,[],[]);d.#o=[]}d.deactivate()}}}}increment(t,n){if(this.#s+=1,t){let r=this.#a.get(n)??0;this.#a.set(n,r+1)}}decrement(t,n){if(this.#s-=1,t){let r=this.#a.get(n)??0;1===r?this.#a.delete(n):this.#a.set(n,r-1)}this.#f||(this.#f=!0,Ie(()=>{this.#f=!1,this.linked&&this.flush()}))}transfer_effects(t,n){for(const r of t)this.#u.add(r);for(const r of n)this.#c.add(r);t.clear(),n.clear()}oncommit(t){this.#r.add(t)}ondiscard(t){this.#i.add(t)}settled(){return(this.#l??=function pc(){var e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}()).promise}static ensure(){if(null===M){const t=M=new me;!Mr&&!xt&&Ie(()=>{t.#e||t.flush()})}return M}apply(){V=null}schedule(t){if(Nr=t,!(t.b?.is_pending&&t.f&(12|ir))||32768&t.f){for(var n=t;null!==n.parent;){var r=(n=n.parent).f;if(!(null===Je||n!==R||null!==N&&2&N.f))return;if(96&r){if(!(1024&r))return;n.f^=1024}}this.#o.push(n)}else t.b.defer_effect(t)}#_(){if(this.linked){var t=this.#t,n=this.#n;null===t?Et=n:t.#n=n,null===n?He=t:n.#t=t,this.linked=!1}}}let be=null;function fa(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&It(r)&&(be=new Set,tt(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&Pa(r),be?.size>0)){$e.clear();for(const i of be){if(24576&i.f)continue;const s=[i];let a=i.parent;for(;null!==a;)be.has(a)&&(be.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];!(24576&l.f)&&tt(l)}}be.clear()}}be=null}}function da(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const s=i.f;2&s?da(i,t,n,r):s&(16|dt)&&!(2048&s)&&Or(i,t,r)&&(G(i,2048),Rr(i))}}function Or(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const i of e.deps){if(Zt.call(t,i))return!0;if(2&i.f&&Or(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Rr(e){M.schedule(e)}function _a(e,t){if(!(32&e.f&&1024&e.f)){2048&e.f?t.d.push(e):!!(4096&e.f)&&t.m.push(e),G(e,1024);for(var n=e.first;null!==n;)_a(n,t),n=n.next}}function va(e){G(e,1024);for(var t=e.first;null!==t;)va(t),t=t.next}let St=new Set;const $e=new Map;let Pr=!1;function Qe(e,t){return{f:0,v:e,reactions:null,equals:ks,rv:0,wv:0}}function U(e,t){const n=Qe(e);return function wa(e){null!==N&&(_e??=new Set).add(e)}(n),n}function Hd(e,t=!1,n=!0){const r=Qe(e);return t||(r.equals=Sc),r}function T(e,t,n=!1){return null!==N&&(!ue||131072&N.f)&&4325394&N.f&&(null===_e||!_e.has(e))&&function Ac(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),pa(e,n?pt(t):t,vn)}function pa(e,t,n=null){if(!e.equals(t)){$e.set(e,Pe?t:e.v);var r=me.ensure();if(r.capture(e,t),2&e.f){const i=e;!!(2048&e.f)&&Cr(i),null===V&&ur(i)}e.wv=Sa(),ma(e,2048,n),null!==R&&!!(1024&R.f)&&!(96&R.f)&&(null===ae?function Wd(e){ae=e}([e]):ae.push(e)),!r.is_fork&&St.size>0&&!Pr&&function ga(){Pr=!1;for(const e of St){let t;1024&e.f&&G(e,4096);try{t=It(e)}catch{t=!0}t&&tt(e)}St.clear()}()}return t}function z(e){T(e,e.v+1)}function ma(e,t,n){var r=e.reactions;if(null!==r)for(var s=r.length,a=0;a<s;a++){var o=r[a],l=o.f,u=!(2048&l);if(u&&G(o,t),131072&l)St.add(o);else if(2&l){var f=o;V?.delete(f),!(65536&l)&&(512&l&&(null===R||0===(R.f&Kt))&&(o.f|=65536),ma(f,4096,n))}else if(u){var d=o;!!(16&l)&&null!==be&&be.add(d),null!==n?n.push(d):Rr(d)}}}let mn=!1,Pe=!1;function ya(e){Pe=e}let N=null,ue=!1;function se(e){N=e}let R=null;function ke(e){R=e}let _e=null;let K=null,ne=0,ae=null,Ea=1,Be=0,ce=Be;function xa(e){ce=e}function Sa(){return++Ea}function It(e){var t=e.f;if(2048&t)return!0;
1if(2&t&&(e.f&=-65537),4096&t){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(It(s)&&aa(s),s.wv>e.wv)return!0}512&t&&null===V&&G(e,1024)}return!1}function Ia(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===_e||!_e.has(e)))for(var i=0;i<r.length;i++){var s=r[i];2&s.f?Ia(s,t,!1):t===s&&(n?G(s,2048):!!(1024&s.f)&&G(s,4096),Rr(s))}}function Ta(e){var t=K,n=ne,r=ae,i=N,s=_e,a=j,o=ue,l=ce;K=null,ne=0,ae=null,N=96&e.f?null:e,_e=null,nn(e.ctx),ue=!1,ce=++Be,null!==e.ac&&(Ze(()=>{e.ac.abort(Jt)}),e.ac=null);try{e.f|=Kt;var d=(0,e.fn)();e.f|=32768;var c=e.deps,h=M?.is_fork;if(null!==K){var _;if(h||Tt(e,ne),null!==c&&ne>0)for(c.length=ne+K.length,_=0;_<K.length;_++)c[ne+_]=K[_];else e.deps=c=K;if(Gr()&&512&e.f)for(_=ne;_<c.length;_++)(c[_].reactions??=[]).push(e)}else!h&&null!==c&&ne<c.length&&(Tt(e,ne),c.length=ne);if(!(null===ae||ue||null===c||6146&e.f))for(_=0;_<ae.length;_++)Ia(ae[_],e);if(null!==i&&i!==e){if(Be++,null!==i.deps)for(let g=0;g<n;g+=1)i.deps[g].rv=Be;if(null!==t)for(const g of t)g.rv=Be;null!==ae&&(null===r?r=ae:r.push(...ae))}return 0!==(e.f&ht)&&(e.f^=ht),d}catch(g){return js(g)}finally{e.f^=Kt,K=t,ne=n,ae=r,N=i,_e=s,nn(a),ue=o,ce=l}}function zd(e,t){let n=t.reactions;if(null!==n){var r=fc.call(n,e);if(-1!==r){var i=n.length-1;0===i?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(null===n&&2&t.f&&(null===K||!Zt.call(K,t))){var s=t;!!(512&s.f)&&(s.f^=512,s.f&=-65537),s.v!==W&&ur(s),null!==s.ac&&Ze(()=>{s.ac.abort(Jt),s.ac=null,G(s,2048)}),function gd(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),null!==t.ac&&Ze(()=>{t.ac.abort(Jt),t.ac=null}),null!==t.fn&&(t.teardown=Me),Tt(t,0),jr(t))}(s),Tt(s,0)}}function Tt(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)zd(e,n[r])}function tt(e){var t=e.f;if(!(16384&t)){G(e,1024);var n=R,r=mn;R=e,mn=!(96&t);try{t&(16|ir)?function sh(e){for(var t=e.first;null!==t;){var n=t.next;!(32&t.f)&&fe(t),t=n}}(e):jr(e),$a(e);var a=Ta(e);e.teardown="function"==typeof a?a:null,e.wv=Ea}finally{mn=r,R=n}}}function w(e){var n=!!(2&e.f);if(null!==N&&!ue&&!(null!==R&&16384&R.f||null!==_e&&_e.has(e))){var i=N.deps;if(0!==(N.f&Kt))e.rv<Be&&(e.rv=Be,null===K&&null!==i&&i[ne]===e?ne++:null===K?K=[e]:K.push(e));else{N.deps??=[],Zt.call(N.deps,e)||N.deps.push(e);var s=e.reactions;null===s?e.reactions=[N]:Zt.call(s,N)||s.push(N)}}if(Pe&&$e.has(e))return $e.get(e);if(n){var u=e;if(Pe){var f=u.v;return(!(1024&u.f)&&null!==u.reactions||Ca(u))&&(f=Cr(u)),$e.set(u,f),f}var d=!(512&u.f)&&!ue&&null!==N&&(mn||!!(512&N.f)),c=!(32768&u.f);It(u)&&(d&&(u.f|=512),aa(u)),d&&!c&&(oa(u),ka(u))}if(V?.has(e))return V.get(e);if(0!==(e.f&ht))throw e.v;return e.v}function ka(e){if(e.f|=512,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&!(512&t.f)&&(oa(t),ka(t))}function Ca(e){if(e.v===W)return!0;if(null===e.deps)return!1;for(const t of e.deps)if($e.has(t)||2&t.f&&Ca(t))return!0;return!1}function Aa(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}function J(e,t){var n=R;null!==n&&8192&n.f&&(e|=8192);var r={ctx:j,deps:null,nodes:null,f:2560|e,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};M?.register_created_effect(r);var i=r;if(4&e)null!==Je?Je.push(r):me.ensure().schedule(r);else if(null!==t){try{tt(r)}catch(a){throw fe(r),a}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&!(524288&i.f)&&(i=i.first,16&e&&65536&e&&null!==i&&(i.f|=65536))}if(null!==i&&(i.parent=n,null!==n&&function th(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(i,n),null!==N&&2&N.f&&!(64&e))){var s=N;(s.effects??=[]).push(i)}return r}function Gr(){return null!==N&&!ue}function Ha(e){return J(1048580,e)}function yn(e,t=0){return J(8|t,e)}function Ue(e){return J(524320,e)}function $a(e){var t=e.teardown;
1if(null!==t){const n=Pe,r=N;ya(!0),se(null);try{t.call(null)}finally{ya(n),se(r)}}}function jr(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const i=n.ac;null!==i&&Ze(()=>{i.abort(Jt)});var r=n.next;64&n.f?n.parent=null:fe(n,t),n=r}}function fe(e,t=!0){var n=!1;(t||!!(262144&e.f))&&null!==e.nodes&&null!==e.nodes.end&&(function ah(e,t){for(;null!==e;){var n=e===t?null:Te(e);e.remove(),e=n}}(e.nodes.start,e.nodes.end),n=!0),e.f|=Ts,jr(e,t&&!n),Tt(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const s of r)s.stop();$a(e),e.f^=Ts,e.f|=16384;var i=e.parent;null!==i&&null!==i.first&&Pa(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Pa(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function wn(e,t,n=!0){var r=[];Ba(e,r,!0);var i=()=>{n&&fe(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var o of r)o.out(a)}else i()}function Ba(e,t,n){if(!(8192&e.f)){e.f^=8192;var r=e.nodes&&e.nodes.t;if(null!==r)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;null!==i;){var s=i.next;64&i.f||Ba(i,t,!!(65536&i.f||32&i.f&&16&e.f)&&n),i=s}}}const Ct=Symbol("events"),Va=new Set,Vr=new Set;let za=null;function Wr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;za=e;var a=0,o=za===e&&e[Ct];if(o){var l=i.indexOf(o);if(-1!==l&&(t===document||t===window))return void(e[Ct]=t);var u=i.indexOf(t);if(-1===u)return;l<=u&&(a=l)}if((s=i[a]||e.target)!==t){je(e,"currentTarget",{configurable:!0,get:()=>s||n});var f=N,d=R;se(null),ke(null);try{for(var c,h=[];null!==s&&s!==t;){try{var _=s[Ct]?.[r];null!=_&&(!s.disabled||e.target===s)&&_.call(s,e)}catch(g){c?h.push(g):c=g}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(c){for(let g of h)queueMicrotask(()=>{throw g});throw c}}finally{e[Ct]=t,delete e.currentTarget,se(f),ke(d)}}}globalThis;const Xh=["touchstart","touchmove"];function Yh(e){return Xh.includes(e)}let qr=!0;function io(e,t){return so(e,t)}function n_(e,t){or(),t.intro=t.intro??!1;const n=t.target,r=ie,i=X;try{for(var s=fn(n);s&&(8!==s.nodeType||"["!==s.data);)s=Te(s);if(!s)throw en;on(!0),vt(s);const a=so(e,{...t,anchor:s});return on(!1),a}catch(a){if(a instanceof Error&&a.message.split("\n").some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==en&&console.warn("Failed to hydrate: ",a),!1===t.recover&&function Tc(){throw new Error("https://svelte.dev/e/hydration_failed")}(),or(),function mf(e){e.textContent=""}(n),on(!1),io(e,t)}finally{on(r),vt(i)}}const xn=new Map;function so(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){or();var l=void 0,u=function rh(e){me.ensure();const t=J(524352,e);return(n={})=>new Promise(r=>{n.outro?wn(t,()=>{fe(t),r(void 0)}):(fe(t),r(void 0))})}(()=>{var f=n??t.appendChild(ze());!function Wf(e,t,n,r){new zf(e,t,n,r)}(f,{pending:()=>{}},h=>{if(function tf(e){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:R,l:null}}({}),s&&(j.c=s),i&&(r.$$events=i),ie&&function Q(e,t){null===R.nodes&&(R.nodes={start:e,end:t,a:null,t:null})}(h,null),qr=a,l=e(h,r)||{},qr=!0,ie&&(R.nodes.end=X,null===X||8!==X.nodeType||"]"!==X.data))throw Rs(),en;!function nf(e){var t=j,n=t.e;if(null!==n)for(var r of(t.e=null,n))Ha(r);void 0!==e&&(t.x=e),t.i=!0,j=t.p}()},o);var d=new Set,c=h=>{for(var _=0;_<h.length;_++){var g=h[_];if(!d.has(g)){d.add(g);var p=Yh(g);for(const b of[t,document]){var m=xn.get(b);void 0===m&&xn.set(b,m=new Map);var y=m.get(g);void 0===y?(b.addEventListener(g,Wr,{passive:p}),m.set(g,1)):m.set(g,y+1)}}}};return c(dc(Va)),Vr.add(c),()=>{for(var h of d)for(const p of[t,document]){var _=xn.get(p),g=_.get(h);0==--g?(p.removeEventListener(h,Wr),_.delete(h),0===_.size&&xn.delete(p)):_.set(h,g)}Vr.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return Xr.set(l,u),l}let Xr=new WeakMap;var Cb=ee(29293);class zl{#e;#t;constructor(t){var n=new Map,r=(s,a)=>{var o=Hd(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get:(s,a)=>w(n.get(a)??r(a,Reflect.get(s,a))),has:(s,a)=>a===mc||(w(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a)),set:(s,a,o)=>(T(n.get(a)??r(a,o),o),Reflect.set(s,a,o))});this.#t=(t.hydrate?n_:io)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||!1===t.sync)&&function pn(e){var t=xt;xt=!0;try{var n;for(e&&(null!==M&&!M.is_fork&&M.flush(),n=e());;){if(sf(),null===M)return n;M.flush()}}finally{xt=t}}(),this.#e=i.$$events;for(const s of Object.keys(this.#t))"$set"===s||"$destroy"===s||"$on"===s||je(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{!function r_(e,t){const n=Xr.get(e);n?(Xr.delete(e),n(t)):Promise.resolve()}(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#t.$destroy()}}let Yl;function Pn(e,t,n,r){const i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(Yl=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;
1constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}connectedCallback(){var e=this;return Cb(function*(){if(e.$$cn=!0,!e.$$c){let t=function(i){return s=>{const a=function bf(e,t,n){return null==t||"http://www.w3.org/1999/xhtml"===t?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}("slot");"default"!==i&&(a.name=i),function Dh(e,t){if(ie)return(!(32768&R.f)||null===R.nodes.end)&&(R.nodes.end=X),void Ps();null!==e&&e.before(t)}(s,a)}};if(yield Promise.resolve(),!e.$$cn||e.$$c)return;const n={},r=function Bb(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}(e);for(const i of e.$$s)i in r&&("default"!==i||e.$$d.children?n[i]=t(i):(e.$$d.children=t(i),n.default=!0));for(const i of e.attributes){const s=e.$$g_p(i.name);s in e.$$d||(e.$$d[s]=Pn(s,i.value,e.$$p_d,"toProp"))}for(const i in e.$$p_d)!(i in e.$$d)&&void 0!==e[i]&&(e.$$d[i]=e[i],delete e[i]);e.$$c=function $b(e){return new zl(e)}({component:e.$$ctor,target:e.$$shadowRoot||e,props:{...e.$$d,$$slots:n,$$host:e}}),e.$$me=function nh(e){me.ensure();const t=J(524352,e);return()=>{fe(t)}}(()=>{yn(()=>{e.$$r=!0;for(const i of xs(e.$$c)){if(!e.$$p_d[i]?.reflect)continue;e.$$d[i]=e.$$c[i];const s=Pn(i,e.$$d[i],e.$$p_d,"toAttribute");null==s?e.removeAttribute(e.$$p_d[i].attribute||i):e.setAttribute(e.$$p_d[i].attribute||i,s)}e.$$r=!1})});for(const i in e.$$l)for(const s of e.$$l[i]){const a=e.$$c.$on(i,s);e.$$l_u.set(s,a)}e.$$l={}}})()}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pn(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return xs(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}}),Date,Set,Symbol,Map,Symbol;URLSearchParams,Symbol,URL;const Zb={fallbackLocale:null,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function st(){return Zb}let Li=null;const Ut=cr(null),Ql=mr(e=>Ut.subscribe(()=>{e()}));function eu(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function tu(e,t=st().fallbackLocale){const n=eu(e);return t?[...new Set([...n,...eu(t)])]:n}function at(){return Li}Ut.subscribe(e=>{Li=e??null,typeof window<"u"&&null!=e&&document.documentElement.setAttribute("lang",e)});const Fe={subscribe:(e,t)=>Ut.subscribe(e,t),update(e){Ut.update(e)},set(e){Ut.set(e)},get current(){return Ql(),Li},track(){Ql()}};var Kb=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Jb({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${tu(e).join('", "')}".`)}let Ni;const Dt=cr({});function ey(e,t){if(!(e in Ni))return null;return function(r,i){if(null==i)return;if(i in r)return r[i];const s=i.split(".");let a=r;for(let o=0;o<s.length;o++)if("object"==typeof a){if(o>0){const l=s.slice(o,s.length).join(".");if(l in a){a=a[l];break}}a=a[s[o]]}else a=void 0;return a}(Ni[e]||null,t)}Ye([Dt],([e])=>Object.keys(e)),Dt.subscribe(e=>Ni=e);const Le={},ty=(e,t,n)=>n&&(t in Le||(Le[t]={}),e in Le[t]||(Le[t][e]=n),n),nu=(e,t)=>{if(null==t)return;if(t in Le&&e in Le[t])return Le[t][e];const n=tu(t);for(let r=0;r<n.length;r++){const i=ey(n[r],e);if(i)return ty(e,t,i)}},Bn=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var ot=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ft=(e,t)=>
1{const{formats:n}=st();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ny=Bn(e=>{var{locale:t,format:n}=e,r=ot(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=Ft("number",n)),new Intl.NumberFormat(t,r)}),ry=Bn(e=>{var{locale:t,format:n}=e,r=ot(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=Ft("date",n):0===Object.keys(r).length&&(r=Ft("date","short")),new Intl.DateTimeFormat(t,r)}),iy=Bn(e=>{var{locale:t,format:n}=e,r=ot(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=Ft("time",n):0===Object.keys(r).length&&(r=Ft("time","short")),new Intl.DateTimeFormat(t,r)}),sy=Bn((e,t=at())=>new Es(e,t,st().formats,{ignoreTag:st().ignoreTag})),ay=(e,t={})=>{var n,r,i,s;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:o,locale:l=at(),default:u}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=nu(e,l);if(f){if("string"!=typeof f)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f}else f=null!==(s=null!==(i=null===(r=(n=st()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==s?s:e;if(!o)return f;let d=f;try{d=sy(f,l).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return d},oy=(e,t)=>((n={})=>{var{locale:r=at()}=n,i=ot(n,["locale"]);return iy(Object.assign({locale:r},i))})(t).format(e),ly=(e,t)=>((n={})=>{var{locale:r=at()}=n,i=ot(n,["locale"]);return ry(Object.assign({locale:r},i))})(t).format(e),uy=(e,t)=>((n={})=>{var{locale:r=at()}=n,i=ot(n,["locale"]);return ny(Object.assign({locale:r},i))})(t).format(e),cy=(e,t=at())=>nu(e,t);Ye([Fe,Dt],()=>ay),Ye([Fe],()=>oy),Ye([Fe],()=>ly),Ye([Fe],()=>uy),Ye([Fe,Dt],()=>cy);class fy{constructor(t){this.observer=t,this.showing=!1}show(){if(!this.showing){this.overlay=document.createElement("div"),v.InfrontUtil.addClassName(this.overlay,"cell-page-overlay"),this.box=document.createElement("div"),v.InfrontUtil.addClassName(this.box,"cell-loginbox");const t=document.createElement("div");v.InfrontUtil.addClassName(t,"cell-h3"),t.textContent="Please log in";const n=document.createElement("form"),r=document.createElement("div");v.InfrontUtil.addClassName(r,"cell-loginbox__row");const i=document.createElement("div");v.InfrontUtil.addClassName(i,"cell-loginbox__row");const s=document.createElement("div");v.InfrontUtil.addClassName(s,"cell-loginbox__row");const a=document.createElement("div");v.InfrontUtil.addClassName(a,"cell-loginbox__row"),n.appendChild(r),n.appendChild(i),n.appendChild(s),n.appendChild(a);const o=document.createElement("input");o.setAttribute("type","text"),o.setAttribute("id","username"),o.setAttribute("placeholder","Username"),v.InfrontUtil.addClassName(o,"cell-loginbox__input"),r.appendChild(o);const l=document.createElement("input");l.setAttribute("type","password"),l.setAttribute("id","password"),l.setAttribute("placeholder","Password"),v.InfrontUtil.addClassName(l,"cell-loginbox__input"),i.appendChild(l);const u=document.createElement("input");v.InfrontUtil.addClassName(u,"cell-loginbox__button  cell-loginbox__button--login"),u.type="Submit",u.value="Log in",s.appendChild(u),this.box.appendChild(t),this.box.appendChild(n),n.onsubmit=f=>(null!=this.observer&&(this.hide(),this.observer.loginInformationProvided(o.value,l.value)),!1),document.body.appendChild(this.overlay),document.body.appendChild(this.box),this.showing=!0}}hide(){this.showing&&(document.body.removeChild(this.overlay),document.body.removeChild(this.box),this.overlay=null,this.box=null,this.showing=!1)}}var oe,e,Ge=v.InfrontUtil.ClassBinding,ru=v.InfrontUtil.BindingFactory,xe=v.InfrontUtil.InitialUpdate,hy=v.InfrontUtil.ClassBinding,iu=v.InfrontUtil.InitialUpdate;function Gt(e,t,n,r,i){var s=document.createElement("div");e.appendChild(s);for(var a=(_,g)=>{var p=document.createElement("div");
1p.className="cell-input__row";var m=document.createElement("label");if(p.appendChild(m),m.className="cell-loginbox__label",(0,le.s)(m,"innerHTML",_.label),!_.mask){var y=document.createElement("input");p.appendChild(y),y.className="cell-loginbox__input",y.type="text",y.setAttribute("value",`${_.value}`),y.setAttribute("name",`${_.fieldName}`),y.setAttribute("id",`${_.fieldName}`),y.setAttribute("aria-label",`${i.get("accessibility","username")}`),n[_.key].bind(y),F.W.unbindingManager.registerUnbind(y,()=>n[_.key].unbind())}if(_.mask){var b=document.createElement("input");p.appendChild(b),b.className="cell-loginbox__input",b.type="password",b.setAttribute("name",`${_.fieldName}`),b.setAttribute("id",`${_.fieldName}`),b.setAttribute("aria-label",`${i.get("accessibility","password")}`),n[_.key].bind(b),F.W.unbindingManager.registerUnbind(b,()=>n[_.key].unbind())}return p},o=0;o<t.length;o++)s.appendChild(a(t[o]));if(null!=r){var l=document.createElement("div");e.appendChild(l),l.className="cell-input__row";var u=document.createElement("div");l.appendChild(u),u.className="cell-loginbox__warning";var f=_=>""==_;f(r.get())&&v.InfrontUtil.addClassName(u,"cell-display-none");var d=new hy(u,"cell-display-none",f);r.observe(d,iu.Synchronous),F.W.unbindingManager.registerUnbind(u,()=>{r.unbind(d)});var c=document.createElement("div");u.appendChild(c),c.className="cell-loginbox__warning__label";var h=(0,zn.a)(null,c,"innerHTML");r.observe(h,iu.Synchronous),F.W.unbindingManager.registerUnbind(c,()=>{r.unbind(h)})}}class Un{constructor(t,n){this.key=t,this.value=n}}(e=oe||(oe={})).bankIdCodeGenerator="bankIdCodeGenerator",e.bankIdForMobile="bankIdForMobile",e.bankIdSessionReference="bankIdSessionReference";class _y{constructor(t,n,r,i,s,a){this.warningMsg=new v.InfrontUtil.Observable(""),this.unbinds=[],this.hasPinLogIn=!1,this.validateInput=l=>{const u=this.inputBindings.oldPassword.get()&&this.inputBindings.newPassword.get()===this.inputBindings.repeatPassword.get();this.disableSubmit.set(!u)},this.onSelectBankIdTab=l=>{var u;null===(u=this.spinner)||void 0===u||u.stop(),this.bankIdLoginMethod=l,this.setVisibleSection(l)},this.infront=r,this.infrontUI=n,this.languageHandler=n.languageHandler,this.languageKey="tradingLogin",this.message=new v.InfrontUtil.Observable(s||""),this.sessionReference=new v.InfrontUtil.Observable,this.routes=t||[],this.showControls=new v.InfrontUtil.Observable(!0),this.disableSubmit=new v.InfrontUtil.Observable(!1),this.hasOAUTHLogIn=new v.InfrontUtil.Observable(!1),this.oAuthLoginURL="",this.oAuthTokenURL="",this.oAuthClientID="",this.eventMap=v.Infront.EventCallbackMap.eventMap,this.routingSelectBinding=new v.InfrontUtil.SelectInputBinding,this.routingSelectBinding.observe(l=>{l>-1&&(this.selectedRoutingIndex=l,this.isChangingPassword?this.changePassword():this.routeSelected(this.routes[l]))}),this.onKeyPress=l=>{"Enter"==l[v.Infront.MWSConstants.key]&&this.okClick(),l instanceof KeyboardEvent&&this.warningMsg.set(this.isCapsLock(l)?this.languageHandler.get(this.languageKey,"capsLockWarning"):"")},this.onLoginFailed=l=>{this.progressIndicator.stop(),this.showControls.set(!0),this.observer.tradingLoginDialogReset(),l.forceNewPassword?(this.isChangingPassword=!0,this.userId=l.userId,this.pin=l.pin,this.message.set(this.languageHandler.get(this.languageKey,"changePassword")),this.changePassword()):this.message.set(l.message),this.setOAUTHLogin()},this.onSessionReferenceReceived=l=>{this.sessionReference.set(l.referenceValue),this.setVisibleSection(oe.bankIdSessionReference),this.progressIndicator.stop(),this.showControls.set(!0)},this.onLoginSuccess=l=>{this.progressIndicator.stop(),this.hide()},this.onPinRequest=l=>{},this.selectedRoutingIndex=this.getSelectedRouteIndex(a),this.observer=i,this.hasPinLogIn=!(363!==this.routes[this.selectedRoutingIndex][v.Infront.MWSConstants.provider]||!v.InfrontUtil.isMobileDevice())}getSelectedRouteIndex(t){if(t)for(let n=0;n<this.routes.length-1;n++)if(new v.Infront.PidSid(this.routes[n].provider,this.routes[n].service).encode()===t)return n;return 0}show(t,n,r){r?(this.isChangingPassword=!0,this.userId=n,this.message.set(t||this.languageHandler.get(this.languageKey,"changePassword"))):(this.isChangingPassword=!1,this.message.set(t||"")),this.buildUI(),v.InfrontUtil.addEventListener(document.body,"keypress",this.onKeyPress),document.body.appendChild(this.widgetRoot),this.infront.registerEventObserver(v.Infront.TradingLoginFailedEvent.kEventName,this.onLoginFailed),this.infront.registerEventObserver(v.Infront.TradingSessionReferenceEvent.kEventName,this.onSessionReferenceReceived),this.infront.registerEventObserver("onPinRequest",this.onPinRequest),this.infront.registerTradingConnectedEventObserverWithCallbackIfConnected(this.onLoginSuccess),v.InfrontUtil.setZeroTimeout(()=>{var i;return null===(i=this.inputContainer)||void 0===i?void 0:i.focus()})}hide(){this.infront.unregisterEventObserver(v.Infront.TradingLoginFailedEvent.kEventName,this.onLoginFailed),this.infront.unregisterEventObserver(v.Infront.TradingConnectedEvent.kEventName,this.onLoginFailed),this.infront.unregisterEventObserver(v.Infront.TradingSessionReferenceEvent.kEventName,this.onSessionReferenceReceived),this.infront.unregisterEventObserver("onPinRequest",this.onPinRequest),v.InfrontUtil.removeEventListener(document.body,"keypress",this.onKeyPress),this.releaseKeycloakMessageHandler(),this.widgetRoot&&(document.body.removeChild(this.widgetRoot),F.W.unbindAll(this.widgetRoot),this.widgetRoot=null,this.inputContainer=null)}unbindInputFields(){F.W.unbindAll(this.inputContainer),this.unbinds.forEach(t=>{v.InfrontUtil.isFunction(t)&&t()}),this.unbinds=[]}buildUI(){const t=function dy(e,t,n,r,i,s,a,o,l,u,f,d){var c=document.createElement("div");
1c.className="cell-loginbox",1==e&&v.InfrontUtil.addClassName(c,"cell-loginbox--thin");var h=document.createElement("div");if(c.appendChild(h),h.className="cell-h3",h.textContent=d.get("tradingLogin","dialogTitle"),!e){var _=document.createElement("div");c.appendChild(_),_.className="cell-loginbox__row";var g=document.createElement("div");_.appendChild(g),g.className="cell-loginbox__message";var p=$=>""==$;p(o.get())&&v.InfrontUtil.addClassName(g,"cell-display-none");var m=new Ge(g,"cell-display-none",p);o.observe(m,xe.Synchronous),F.W.unbindingManager.registerUnbind(g,()=>{o.unbind(m)});var y=document.createElement("div");g.appendChild(y);var b=(0,zn.a)(null,y,"innerHTML");o.observe(b,xe.Synchronous),F.W.unbindingManager.registerUnbind(y,()=>{o.unbind(b)});var E=document.createElement("div");c.appendChild(E),E.className="cell-loginbox__row";var S=document.createElement("label");E.appendChild(S),S.className="cell-loginbox__label",S.textContent=d.get("tradingLogin","gateway"),S.setAttribute("id","gateWaySelectLabel");var k=document.createElement("select");E.appendChild(k),k.className="cell-select  cell-loginbox__select",k.setAttribute("aria-labelledby","gateWaySelectLabel"),n.bind(k);for(var x=($,Sy)=>{var zt=document.createElement("option");return(0,le.s)(zt,"innerHTML",$.name),zt},I=0;I<t.length;I++)k.appendChild(x(t[I],I));F.W.unbindingManager.registerUnbind(k,()=>n.unbind());var O=document.createElement("div");c.appendChild(O),O.className="cell-loginbox__controls";var B=new Ge(O,"cell-display-none",$=>1!=$);l.observe(B,xe.Synchronous),F.W.unbindingManager.registerUnbind(O,()=>{l.unbind(B)});var D=document.createElement("div");O.appendChild(D);var lt=document.createElement("div");O.appendChild(lt),lt.className="cell-loginbox__row";var H=document.createElement("button");lt.appendChild(H),H.className="cell-loginbox__button cell-loginbox__button--login",v.InfrontUtil.addEventListener(H,"click",$=>{r($)}),H.setAttribute("tabindex","0"),H.textContent=d.get("tradingLogin","logIn");var Fn=ru.createValueBinding(H,"disabled");u.observe(Fn);var Gn=new Ge(H,"cell-button--disabled",$=>1==$);u.observe(Gn,xe.Synchronous),F.W.unbindingManager.registerUnbind(H,()=>{u.unbind(Fn),u.unbind(Gn)});var jt=document.createElement("div");c.appendChild(jt),jt.className="cell-loginbox__row";var ou=new Ge(jt,"cell-display-none",$=>1!=$);f.observe(ou,xe.Synchronous),F.W.unbindingManager.registerUnbind(jt,()=>{f.unbind(ou)});var q=document.createElement("button");jt.appendChild(q),q.className="cell-loginbox__button  cell-loginbox__button--login",v.InfrontUtil.addEventListener(q,"click",$=>{a($)}),q.setAttribute("tabindex","0"),q.textContent=d.get("tradingLogin","oAuthLogin");var Hi=document.createElement("div");c.appendChild(Hi),Hi.className="cell-loginbox__row",q=document.createElement("button"),Hi.appendChild(q),q.className="cell-loginbox__button  cell-loginbox__button--cancel",v.InfrontUtil.addEventListener(q,"click",$=>{s($)}),q.setAttribute("tabindex","0"),q.textContent=d.get(null,"cancel")}if(e){var ut=document.createElement("div");c.appendChild(ut),ut.className="cell-flex-row";var lu=$=>""==$;lu(o.get())&&v.InfrontUtil.addClassName(ut,"cell-display-none");var uu=new Ge(ut,"cell-display-none",lu);o.observe(uu,xe.Synchronous),F.W.unbindingManager.registerUnbind(ut,()=>{o.unbind(uu)});var $i=document.createElement("div");ut.appendChild($i),$i.className="cell-flex-column";var Pi=document.createElement("div");$i.appendChild(Pi),Pi.className="cell-loginbox__message";var Bi=document.createElement("div");Pi.appendChild(Bi);var cu=(0,zn.a)(null,Bi,"innerHTML");o.observe(cu,xe.Synchronous),F.W.unbindingManager.registerUnbind(Bi,()=>{o.unbind(cu)});var Ui=document.createElement("div");c.appendChild(Ui),Ui.className="cell-flex-row";var jn=document.createElement("div");Ui.appendChild(jn),jn.className="cell-flex-column";var Vn=document.createElement("label");for(jn.appendChild(Vn),Vn.className="cell-loginbox__label",Vn.textContent=d.get("tradingLogin","gateway"),Vn.setAttribute("id","gateWaySelectLabel"),k=document.createElement("select"),jn.appendChild(k),k.className="
1cell-select cell-loginbox__select",k.setAttribute("aria-labelledby","gateWaySelectLabel"),n.bind(k),x=($,Sy)=>{var zt=document.createElement("option");return(0,le.s)(zt,"innerHTML",$.name),zt},I=0;I<t.length;I++)k.appendChild(x(t[I],I));F.W.unbindingManager.registerUnbind(k,()=>n.unbind());var Vt=document.createElement("div");c.appendChild(Vt),Vt.className="cell-flex-row";var fu=new Ge(Vt,"cell-visibility-hidden",$=>1!=$);l.observe(fu,xe.Synchronous),F.W.unbindingManager.registerUnbind(Vt,()=>{l.unbind(fu)});var Di=document.createElement("div");Vt.appendChild(Di),Di.className="cell-flex-column cell-15-margin-bottom",D=document.createElement("div"),Di.appendChild(D);var Wn=document.createElement("div");c.appendChild(Wn),Wn.className="cell-flex-row";var Fi=document.createElement("div");Wn.appendChild(Fi),Fi.className="cell-flex-column cell-15-margin-bottom",H=document.createElement("button"),Fi.appendChild(H),H.className="cell-loginbox__button cell-loginbox__button--login",v.InfrontUtil.addEventListener(H,"click",$=>{r($)}),H.setAttribute("tabindex","0"),H.textContent=d.get("tradingLogin","logIn");var du=ru.createValueBinding(H,"disabled");u.observe(du);var hu=new Ge(H,"cell-button--disabled",$=>1==$);u.observe(hu,xe.Synchronous),F.W.unbindingManager.registerUnbind(H,()=>{u.unbind(du),u.unbind(hu)});var Gi=document.createElement("div");Wn.appendChild(Gi),Gi.className="cell-flex-column cell-15-margin-bottom";var Wt=document.createElement("button");Gi.appendChild(Wt),Wt.className="cell-loginbox__button cell-loginbox__button--login",v.InfrontUtil.addEventListener(Wt,"click",$=>{i($)}),Wt.setAttribute("tabindex","0"),Wt.textContent=d.get("tradingLogin","generatePin");var ji=document.createElement("div");c.appendChild(ji),ji.className="cell-flex-row";var Vi=document.createElement("div");ji.appendChild(Vi),Vi.className="cell-flex-column",q=document.createElement("button"),Vi.appendChild(q),q.className="cell-loginbox__button cell-loginbox__button--cancel",v.InfrontUtil.addEventListener(q,"click",$=>{s($)}),q.setAttribute("tabindex","0"),q.textContent=d.get(null,"cancel")}return{inputContainer:D,widgetRoot:c}}(this.hasPinLogIn,this.routes,this.routingSelectBinding,n=>this.okClick(),n=>this.requestPin(),n=>this.cancelClick(),n=>this.processKeycloakLogin(),this.message,this.showControls,this.disableSubmit,this.hasOAUTHLogIn,this.languageHandler);this.inputContainer=t.inputContainer,this.widgetRoot=t.widgetRoot,this.progressIndicator=new qi.P(this.widgetRoot),this.routingSelectBinding.setSelected(this.selectedRoutingIndex)}isCapsLock(t){if(!t.key||t.key.length>1)return!1;const n=t.shiftKey||!1,r=v.InfrontUtil.isLetter(t.key),i=t.key.toUpperCase();return r&&i==t.key&&!n||r&&i!=t.key&&n}getInputField(t,n,r,i,s){const a=new v.Infront.TextInputBinding;return a.observe(this.validateInput),this.inputBindings[t]=a,new v.Infront.TradingInputField(t,n,r,i,s)}changePassword(){const t=[];if(this.inputContainer){for(this.progressIndicator.stop(),this.showControls.set(!0),this.observer.tradingLoginDialogReset(),this.unbindInputFields();this.inputContainer.lastChild;)this.inputContainer.removeChild(this.inputContainer.lastChild);this.inputBindings={},t.push(this.getInputField("oldPassword","Old password",!1,!0,!1)),t.push(this.getInputField("newPassword","New password",!1,!0,!1)),t.push(this.getInputField("repeatPassword","Repeat password",!1,!0,!1))}Gt(this.inputContainer,t,this.inputBindings,this.warningMsg,this.languageHandler)}routeSelected(t){var n;let r;const i=localStorage.getItem(null===(n=t?.inputFields[0])||void 0===n?void 0:n.key);if(this.inputContainer){for(this.progressIndicator.stop(),this.showControls.set(!0),this.observer.tradingLoginDialogReset(),this.unbindInputFields();this.inputContainer.lastChild;)this.inputContainer.removeChild(this.inputContainer.lastChild);this.inputBindings={},r=t.inputFields;for(const s of r)this.inputBindings[s.key]=new v.Infront.TextInputBinding,s.label=this.languageHandler.get(this.languageKey,s.label),s.value="userId"===s.key&&null!==i?i:""}else r=[];t.useBankId?this.createBankIdTabs(r):Gt(this.inputContainer,r,this.inputBindings,this.warningMsg,this.languageHandler),this.setOAUTHLogin()}extractFields(t,n){const r=[];for(const i of t)n.indexOf(i.key)>-1&&r.push(i);return r}createBankIdTabs(t){let n;const r=document.createElement("div");this.inputContainer.appendChild(r),n=this.extractFields(t,["userId"]),Gt(r,n,this.inputBindings,null,this.languageHandler);const i=document.createElement("div");this.inputContainer.appendChild(i);const s=document.createElement("div");
1s.className="cell-clear cell-loginbox__tab",this.inputContainer.appendChild(s),n=this.extractFields(t,["mobile"]),Gt(s,n,this.inputBindings,null,this.languageHandler);const a=document.createElement("div");a.className="cell-clear cell-loginbox__tab",this.inputContainer.appendChild(a),n=this.extractFields(t,["password","pin"]),Gt(a,n,this.inputBindings,null,this.languageHandler);const o=document.createElement("div");o.className="cell-loginbox__session";const l=document.createElement("div");this.spinner=new qi.P(l),o.appendChild(l);const u=document.createElement("div");u.className="cell-loginbox__session-label",u.innerText=this.languageHandler.get(this.languageKey,"referenceWord"),o.appendChild(u);const f=document.createElement("div");f.className="cell-loginbox__session-reference";const d=v.InfrontUtil.BindingFactory.createInlineBinding(h=>{this.spinner.start(),f.innerText=h});this.sessionReference.observe(d),this.unbinds.push(()=>{this.sessionReference.unbind(d)}),o.appendChild(f),this.inputContainer.appendChild(o),this.tabContainers={},this.tabContainers[oe.bankIdForMobile]=s,this.tabContainers[oe.bankIdCodeGenerator]=a,this.tabContainers[oe.bankIdSessionReference]=o;const c=new Zi;c.tabs=[],c.tabs.push(new Yi(oe.bankIdForMobile,this.languageHandler.get(this.languageKey,oe.bankIdForMobile),!0,"cell-tabs__horizontal__tab--mobile-phone")),c.tabs.push(new Yi(oe.bankIdCodeGenerator,this.languageHandler.get(this.languageKey,oe.bankIdCodeGenerator),!1,"cell-tabs__horizontal__tab--password")),c.onSelect=this.onSelectBankIdTab,this.tabBar=new Y(i,c)}setVisibleSection(t){for(const n of Object.keys(this.tabContainers))this.tabContainers[n].hidden=n!=t}removeUnusedFields(t,n){if(t.useBankId)switch(this.bankIdLoginMethod){case oe.bankIdForMobile:n.forEach(r=>{["password","pin"].indexOf(r.key)>-1&&(r.value="")}
1);break;case oe.bankIdCodeGenerator:n.forEach(r=>{["mobile"].indexOf(r.key)>-1&&(r.value="")})}return n}isAllowedOrigin(t){const n=new URL(t).hostname;return"localhost"===n||n.endsWith(".infrontservices.com")||n.endsWith(".infrontfinance.com")}setOAUTHLogin(){var t,n;const r=this.routes[this.selectedRoutingIndex],i=r.provider,s=r.service,a=null===(n=null===(t=this.infront.getFeatureStrings())||void 0===t?void 0:t.StructuredFeatures)||void 0===n?void 0:n.AuthenticationServices;a&&(this.hasOAUTHLogIn.set(a.some(o=>(this.oAuthLoginURL=o?.LoginURL||"",this.oAuthTokenURL=o?.Site||"",this.oAuthClientID=o?.ClientId||"",i===o?.PID&&s===o?.SID))),this.showControls.set(!this.hasOAUTHLogIn.get()))}processKeycloakLogin(){const t={response_mode:"fragment",response_type:"code",client_id:this.oAuthClientID,redirect_uri:this.infrontUI.options.enableMobileOAuth?this.infrontUI.options.oAuthMobileCallbackURL:this.infrontUI.options.oAuthCallbackURL,state:Date.now().toString(36)+Math.random().toString(36).substring(2)},n=new URL("",this.oAuthLoginURL),r=n.searchParams;for(const i in t)Object.hasOwn(t,i)&&r.append(i,t[i]);n.search=r.toString(),window.open(n,"_blank"),this.messageHandler&&(console.warn("[InfrontUI] already listening to login callback"),this.releaseKeycloakMessageHandler()),this.messageHandler=i=>{var s,a;if(this.isAllowedOrigin(i.origin))if("auth-init"!==(null===(s=i.data)||void 0===s?void 0:s.type)){if("auth-response"===(null===(a=i.data)||void 0===a?void 0:a.type))return i.data.paramsData.state!==t.state?(console.warn("[KEYCLOAK] State mismatch:",i.data.paramsData.state,t.state),void this.message.set(this.infrontUI.languageHandler.get(this.languageKey,"authError"))):void this.requestToken(i.data.paramsData.code)}else i.source.postMessage({type:"auth-init-ack"},i.origin)},window.addEventListener("message",this.messageHandler,!1)}requestToken(t){const n=new URLSearchParams;n.append("grant_type","authorization_code"),n.append("client_id",this.oAuthClientID),n.append("code",t),n.append("redirect_uri",this.infrontUI.options.enableMobileOAuth?this.infrontUI.options.oAuthMobileCallbackURL:this.infrontUI.options.oAuthCallbackURL),fetch(this.oAuthTokenURL,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString()}).then(r=>{if(!r.ok)throw this.message.set(this.infrontUI.languageHandler.get(this.languageKey,r?.statusText)),new Error(`HTTP error! status: ${r.status}`);return r.json()}).then(r=>{const i=this.routes[this.selectedRoutingIndex],s=i.provider,a=i.service;r.access_token&&(this.message.set(this.infrontUI.languageHandler.get(this.languageKey,"authSuccess")),this.observer.tradingLoginInformationProvided(s,a,[new Un("accessToken",r.access_token)]))}).catch(r=>{this.message.set(this.infrontUI.languageHandler.get(this.languageKey,"authError"))}).finally(()=>{this.releaseKeycloakMessageHandler()})}releaseKeycloakMessageHandler(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler,!1),this.messageHandler=null)}okClick(){this.progressIndicator.start(),this.showControls.set(!1);const t=this.routes[this.selectedRoutingIndex];let n=[];for(const s in this.inputBindings)this.inputBindings.hasOwnProperty(s)&&n.push(new Un(s,this.inputBindings[s].getElement().value));n=this.removeUnusedFields(t,n);const r=t.provider,i=t.service;this.isChangingPassword?(this.message.set(""),this.observer.tradingChangePassword(r,i,this.userId,this.pin,n)):this.observer.tradingLoginInformationProvided(r,i,n),""!==n[0].value&&localStorage.setItem(n[0].key,n[0].value),this.infrontUI.cancelClicked.set(!1)}requestPin(){const t=new v.Infront.PinRequestEvent;this.eventMap.publish(t)}cancelClick(){this.observer.tradingLoginDialogCanceled(),this.infrontUI.cancelClicked.set(!0),this.hide()}}var Ne,Mi,Oi,vy=v.InfrontUtil.ClassBinding,py=v.InfrontUtil.ArrayBinding,gy=v.InfrontUtil.InitialUpdate,my=v.InfrontUtil.InlineRowFactory;class Ri{constructor(){this.groupById=!1,this.groupMaxCount=6}}class yy{constructor(){this.innerHTML=[]}}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.ALERT=1]="ALERT",e[e.INFO=2]="INFO",e[e.ERROR=3]="ERROR"}(Ne||(Ne={}));let wy=(()=>{class e{constructor(n,r=!1){this.element=n,this.visible=new v.InfrontUtil.Observable,this.visible.set(!1),this.closeWhenClicked=r,this.notifications=new v.InfrontUtil.ObservableArray,this.notifications.observe(this),this.buildUI()}notify(n,r,i,s,a){if(v.InfrontUtil.isString(n)){const o=new Ri;o.message=n,o.timeout=r,void 0!==i&&(o.type=i),o.payload=s,o.onClick=a,this.doNotify(o)}else this.doNotify(n)}doNotify(n){const r=new Ri;r.timeout=5,r.type=Ne.INFO;const i=(0,le.e)(n.message),s=v.InfrontUtil.mergeRecursive(r,Object.assign(Object.assign({},n),{message:""})),a=new yy;if(s.groupById)for(let o=0;o<this.notifications.length();o++)this.notifications.item(o).id==s.id&&(a.innerHTML=[].concat(this.notifications.item(o).innerHTML),a.innerHTML.length>=s.groupMaxCount&&(a.innerHTML.splice(s.groupMaxCount-2,a.innerHTML.length),a.innerHTML.push(e.kGroupMore)),this.notifications.removeItemAt(o));switch(a.internalId=v.InfrontUtil.makeUUID(),a.id=s.id,a.innerHTML.unshift(i),a.innerHTML.length>1&&a.innerHTML.pop(),a.type=s.type,a.timeStamp=new Date,a.payload=s.payload,a.onClick=s.onClick,a.onClose=s.onClose,a.type){case Ne.INFO:a.class=le.C.kCellNotificationsInfo;break;case Ne.SUCCESS:a.class=le.C.kCellNotificationsSuccess;break;
1case Ne.ALERT:a.class=le.C.kCellNotificationsAlert;break;default:a.class=le.C.kCellNotificationsInfo}this.notifications.insert(a,0),s.timeout>0&&setTimeout(()=>{this.notifications.remove(a)},1e3*s.timeout)}buildUI(){!function by(e,t,n,r,i){var s=document.createElement("div");e.appendChild(s),s.className="cell-notifications";var a=u=>1!=u;a(n.get())&&v.InfrontUtil.addClassName(s,"cell-display-none");var o=new vy(s,"cell-display-none",a);n.observe(o,gy.Synchronous);var l=new py(s,new my((u,f)=>{var d=document.createElement("div");d.className="cell-notifications__row",v.InfrontUtil.addEventListener(d,"click",g=>{i(u.internalId)}),d.setAttribute("role","button"),v.InfrontUtil.addEventListener(d,"keyup",g=>{var p=g.which||g.keyCode;13!==p&&32!==p||i(u.internalId)}),v.InfrontUtil.addClassName(d,u.class);var c=document.createElement("div");d.appendChild(c),c.className="cell-notifications__row--date",c.textContent=v.InfrontUtil.formatStandardTimestamp(u.timeStamp);var h=document.createElement("div");d.appendChild(h),h.className="cell-notifications__row--message",h.innerHTML=u.innerHTML;var _=document.createElement("div");return d.appendChild(_),_.className="cell-notifications__row--close-button",v.InfrontUtil.addEventListener(_,"click",g=>{r(u.internalId)}),_.setAttribute("role","button"),v.InfrontUtil.addEventListener(_,"keyup",g=>{var p=g.which||g.keyCode;13!==p&&32!==p||r(u.internalId)}),d}),null);t.observe(l),F.W.unbindingManager.registerUnbind(s,()=>{n.unbind(o),t.unbind(l)})}(this.element,this.notifications,this.visible,n=>this.closeNotification(n),n=>this.notificationClicked(n))}notificationClicked(n){const r=this.lookup(n);r&&r.onClick&&(r.onClick(r.id,r.payload),this.closeWhenClicked&&this.closeNotification(n))}reInit(n){this.visible.set(this.notifications.length()>0)}itemAdded(n,r){this.visible.set(this.notifications.length()>0)}itemRemoved(n,r){this.visible.set(this.notifications.length()>0)}itemMoved(n,r,i){}closeNotification(n){const r=this.lookup(n);null!=r&&(this.notifications.remove(r),r.onClose&&r.onClose(r.id))}lookup(n){return this.notifications.find(r=>r.internalId==n)}}return e.kGroupMore="...",e})(),Ey=(()=>{class e extends v.Infront.InfrontEvent{constructor(n){super(),this.payload=n,this.name=e.kEventName}}return e.kEventName="onAlertNotificationClick",e})();class Dn extends v.Infront.InfrontEvent{constructor(t){super(),this.payload=t,this.name=Dn.kEventName}}function su(e,...t){delete Le[e],Dt.update(n=>{var r;let i=null!==(r=n[e])&&void 0!==r?r:{};for(const s of t)i=v.InfrontUtil.mergeRecursiveCopy(i,s);return n[e]=i,n})}Dn.kEventName="onAlertNotificationShown",function(e){e.OVERWRITE="overwrite",e.FILL="fill",e.STANDALONE="standalone"}(Mi||(Mi={})),function(e){e[e.Replace=0]="Replace",e[e.Append=1]="Append",e[e.None=2]="None"}(Oi||(Oi={}));class au extends v.Infront.InfrontOptions{constructor(){super(...arguments),this.enableLoginDialog=!1,this.language="en",this.fallbackLanguage="en",this.useLocaleFallback=!0,this.useBrowserLanguage=!1,this.dictionary=null,this.newDictionary=null,this.widgetStateStorage=null,this.useDefaultStateStorage=!1,this.infrontDemoTradingAutoLogon=!1,this.enableAlertNotification=!1,this.enableHighlightUpDownChanges=!1,this.enableMobileOAuth=!1,this.oAuthCallbackURL="https://wtk.infrontservices.com/containers/auth/callback/index.html",this.oAuthMobileCallbackURL="https://wtk.infrontservices.com/containers/auth/mobile-callback/index.html",this.allowHTMLInjection="warn"}}class Se{get language(){return this._language}set language(t){var n;v.Infront.DEBUG_LANGUAGE&&v.Infront.log("[InfrontUI] Setting language",{new:t,old:this._language}),this._language!==t&&(this._language=t,this.updateIntlSeparators(),null===(n=this.languageHandler)||void 0===n||n.setLanguage(this.language),Fe.set(t)),this.infront&&t!==this.infront.language&&(v.Infront.DEBUG_LANGUAGE&&v.Infront.log("[InfrontUI] Forwarding language to SDK",{new:t,old:this.infront.language}),this.infront.language=t)}set tradingLoginDialogVisible(t){this._tradingLoginDialogVisible=t,this.isTradingLoginDialogVisible.set(t)}get tradingLoginDialogVisible(){return this._tradingLoginDialogVisible}constructor(t){var n,r,i,s;if(this.currentLoginDialog=null,this.loginFailed=o=>{this.options.enableLoginDialog&&this.options.getAuthenticationType()===v.Infront.AuthenticationType.NONE&&(this.infront.resetInit(),this.displayLoginDialog())},this.infrontReady=o=>{if((!this.options.ignoreNoMDAccess||v.Infront.loginOk)&&(this.options.infrontDemoTradingAutoLogon&&this.infrontDemoTradingLogin(),this.options.enableAlertNotification)){this.unsubscribe&&this.unsubscribe();const l=new v.Infront.DataOptions;l.onError=(u,f)=>
1{v.Infront.log("Alerts: ","Error code: "+u+" Error message: "+f)},l.onData=u=>{const f=u.ToMws(),d=new Ri;d.message=f[v.Infront.MWSConstants.data][v.Infront.MWSConstants.message],d.payload=f[v.Infront.MWSConstants.data][v.Infront.MWSConstants.payload],d.timeout=200,d.type=Ne.ALERT,d.onClick=(h,_)=>{const g=new Ey(_);this.infront.publishEvent(g)};const c=new Dn(d.payload);this.infront.publishEvent(c),this.notify(d)},this.unsubscribe=this.infront.alerts(l)}},this.tradingConnected=o=>{for(let l=0;l<this.tradingLoginListeners.length;l++)this.tradingLoginListeners[l](!0);this.cancelClicked.set(!1)},this.tradingDisconnected=o=>{for(let l=0;l<this.tradingLoginListeners.length;l++)this.tradingLoginListeners[l](!1)},this.tradingLoginFailed=o=>{const l=o;(this.tradingLoginListeners.length>0||l.forceNewPassword)&&this.tradingLogin(l.message,l.userId,l.forceNewPassword,l.providerId),this.tradingLoginDialogVisible||null!=l.tokenType||this.tradingLogin(l.message,l.userId,l.forceNewPassword,l.providerId)},this.options=v.InfrontUtil.mergeRecursive(new au,t),null!==(n=(s=globalThis).Infront)&&void 0!==n||(s.Infront={}),globalThis.Infront.ui=this,globalThis.Infront.sdk=this.sdk,this.infrontRTD=globalThis.Infront.infrontRTD,this.options.infrontDemoTradingAutoLogon&&new v.Infront.LocallyStoredSession(v.Infront.Controller.kStoredTradingSessionName).clear(),this.storage=!0===this.options.useDefaultStateStorage&&v.InfrontUtil.isLocalStorageSupported()?new zi(Se.kDefaultLocalStorageKey):this.options.widgetStateStorage,this.cancelClicked=new v.InfrontUtil.Observable,this.storage){this.storage.getGlobal(Se.kCancelClicked)?this.cancelClicked.set(this.storage.getGlobal(Se.kCancelClicked)):this.cancelClicked.set(!1);const o=v.Infront.BindingFactory.createInlineBinding(l=>{this.storage.storeGlobal(Se.kCancelClicked,l)});this.cancelClicked.observe(o,v.Infront.InitialUpdate.None)}const a=new ge.a;a.dictionary=this.options.dictionary,a.language=this.language=v.Infront.urlLanguage?v.Infront.urlLanguage:this.options.language,a.fallbackLanguage=this.options.useLocaleFallback?null!==(r=this.options.fallbackLanguage)&&void 0!==r?r:"en":void 0,this.languageHandler=new ge.L(a);for(const[o,l]of this.languageHandler.getTranslationMaps())su(o,l);(function Qb(e){const{formats:t}=e,n=Kb(e,["formats"]);let r=e.fallbackLocale;if(e.initialLocale)try{uc.resolveLocale(e.initialLocale)&&(r=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Jb:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'));const i=st();Object.assign(i,n,{initialLocale:r}),t&&("number"in t&&Object.assign(i.formats.number,t.number),"date"in t&&Object.assign(i.formats.date,t.date),"time"in t&&Object.assign(i.formats.time,t.time)),Fe.set(r)})({initialLocale:this.options.language,fallbackLocale:this.options.useLocaleFallback?null!==(i=this.options.fallbackLanguage)&&void 0!==i?i:"en":void 0}),v.InfrontUtil.formatSettings.kilo=this.languageHandler.get("global","kilo"),v.InfrontUtil.formatSettings.mega=this.languageHandler.get("global","mega"),this.language&&this.updateIntlSeparators(),this.checkURLOverrides(),this.infront=v.Infront.getInfrontModel(t),this.infront.language=this.language,this.infront.registerEventObserver(v.Infront.ReadyEvent.kEventName,this.infrontReady),this.infront.registerEventObserver("onLoginFailed",this.loginFailed),this.infront.registerEventObserver("onLanguageChanged",()=>{v.Infront.DEBUG_LANGUAGE&&v.Infront.log("[InfrontUI] Received onLanguageChanged",this.infront.language),this.infront.language!==this.language&&(v.Infront.DEBUG_LANGUAGE&&v.Infront.log("[InfrontUI] Updating language",this.infront.language),this.language=this.infront.language,this.languageHandler.setLanguage(this.language))}),this.infront.registerEventObserver(ge.b.kEventName,o=>{v.Infront.DEBUG_LANGUAGE&&v.Infront.log("[InfrontUI] Updating Svelte language handler",o),su(o.language,o.data)}),this.infront.registerEventObserver(v.Infront.TradingConnectedEvent.kEventName,this.tradingConnected),this.infront.registerEventObserver(v.Infront.TradingDisconnectedEvent.kEventName,this.tradingDisconnected),this.infront.registerEventObserver(v.Infront.TradingLoginFailedEvent.kEventName,this.tradingLoginFailed),this.cache=this.infront.getCache(),this.isTradingLoginDialogVisible=new v.InfrontUtil.Observable,this.tradingLoginListeners=[],this.tradingLoginDialogVisible=!1,v.Infront.DEBUG_WIDGETS&&(this.getWidget=te.k,this.getHostElement=te.m)}updateIntlSeparators(){var t,n,r,i;const s=this.language?new Intl.NumberFormat(this.language,{minimumFractionDigits:1,useGrouping:!0}).formatToParts(1234.1):[];v.InfrontUtil.formatSettings.intlDecimalSeparator=null!==(n=null===(t=s.find(a=>"decimal"===a.type))||void 0===t?void 0:t.value)&&void 0!==n?n:".",v.InfrontUtil.formatSettings.intlThousandsSeparator=null!==(i=null===(r=s.find(a=>"group"===a.type))||void 0===r?void 0:r.value)&&void 0!==i?i:""}checkURLOverrides(){if("function"==typeof URL){const t=new URL(window.location.href);if(t.searchParams){const n=t.searchParams.get("port");n&&(v.Infront.loginServers=["localhost:"+n],v.Infront.localTerminalLoopback=!0)}}}registerEventObserver(t,n){this.infront.registerEventObserver(t,n)}init(){this.options.enableLoginDialog&&this.options.getAuthenticationType()===v.Infront.AuthenticationType.NONE?this.displayLoginDialog():this.infront.init(
1),this.sdk=new v.InfrontSDK.SDK({onReady:()=>{}}),globalThis.Infront.sdk=this.sdk}destroy(){this.infront.logOut()}notify(t,n,r=Ne.INFO,i){this.notificationHandler&&this.notificationHandler.notify(t,n,r,i)}infrontDemoTradingLogin(){const t=[];t.push(new Un("userId","tg")),t.push(new Un("password","tg")),this.tradingLoginInformationProvided(1,98,t)}isTradingLoggedIn(){return v.Infront.InfrontStatus.Connected===this.infront.getTradingStatus()}ensureTradingLoggedIn(t){if(!t||!this.cancelClicked.get()){const n=this.infront.getTradingStatus();n!==v.Infront.InfrontStatus.Uninitialized&&n!==v.Infront.InfrontStatus.Disconnected||this.tradingLogin()}}tradingLogin(t,n,r,i){const s=this.infront.getTradingRoutes();!this.tradingLoginDialogVisible&&v.InfrontUtil.isArray(s)&&s.length>0&&(this.tradingLoginDialogVisible=!0,this.currentLoginDialog?(this.currentLoginDialog.hide(),this.currentLoginDialog.show(t,n,r)):(this.currentLoginDialog=new _y(s,this,this.infront,this,t,i),this.currentLoginDialog.show()))}addTradingChannelObserver(t){this.infront.tradingGateways.addObserver(t,this.infront.tradingChannelId)}removeTradingChannelObserver(t,n){this.infront.tradingGateways.removeObserver(t,this.infront.tradingChannelId)}setActivePortfolio(t){const n=this.infront.tradingChannel;n&&n.setActivePortfolio(t)}displayLoginDialog(){new fy(this).show()}getModel(){return this.infront}getStorage(){return this.storage}loginInformationProvided(t,n){const r=new v.Infront.LoginOptions;r.user_id=t,r.password=n,this.infront.setLoginInformation(r),this.infront.init()}tradingLoginInformationProvided(t,n,r){let i,s,a,o,l;this.tradingLoginDialogVisible=!1;for(const u of r)switch(u.key){case"userId":i=u.value;break;case"password":s=u.value;break;case"pin":a=u.value;break;case"mobile":o=u.value;break;case"accessToken":l=u.value}this.infront.tradingLogin(t,n,i,s,a,o,l)}tradingChangePassword(t,n,r,i,s){let a,o,l;this.tradingLoginDialogVisible=!1;for(const f of s)"oldPassword"===f.key?a=f.value:"newPassword"===f.key?o=f.value:"repeatPassword"===f.key?l=f.value:"pin"===f.key&&(i=f.value);o!==l&&this.tradingLogin(this.languageHandler.get("tradingLogin","passwordsDoNotMatch"),r,!0);const u=new v.Infront.TradingChangePasswordOption;u.provider=t,u.service=n,u.userId=r,u.pin=i,u.password=a,u.newPassword=o,u.manualRequest=!1,u.onData=f=>{f.forceNewPassword||f.failCode?this.tradingLogin(f.failMessage,u.userId,!0):this.infront.tradingLogin(t,n,r,o,i,null,null),u.onError=(d,c)=>{this.tradingLogin(c,u.userId,!0)}},this.infront.tradingChangePassword(u)}tradingLoginDialogCanceled(){this.tradingLoginDialogVisible=!1,this.hideTradingDialog(),this.infront.cancelTradingLogin(),this.infront.publishEvent(new v.Infront.TradingLoginCanceledEvent)}tradingLoginDialogReset(){this.infront.cancelTradingLogin()}loginCanceled(){v.Infront.log("Login canceled by user")}hideTradingDialog(){this.currentLoginDialog&&(this.tradingLoginDialogVisible=!1,this.cancelClicked.set(!0),this.currentLoginDialog.hide())}showTradingDialog(){this.tradingLoginDialogVisible||(this.tradingLogin(),this.tradingLoginDialogVisible=!0)}widget(t,n,r){const i=(0,Ki.f)(n);return null!=i?new t(i,this,r):void 0}notifications(t,n=!1){const r=(0,Ki.f)(t);r&&(this.notificationHandler=new wy(r,n))}registerLanguageData(t,n){const r=this.languageHandler.registerLanguage(t,n),i=new ge.b({language:t,data:r});this.infront.publishEvent(i)}}function xy(e,t){var n,r,i;ge.l[e]=v.InfrontUtil.mergeRecursiveCopy(null!==(n=ge.l[e])&&void 0!==n?n:{},t),null===(i=null===(r=globalThis?.Infront)||void 0===r?void 0:r.ui)||void 0===i||i.registerLanguageData(e,t)}Se.kDefaultDecimals=2,Se.kDefaultLocalStorageKey="com.goinfront.wtk.state",Se.kCancelClicked="cancelClicked",ee(76766)}}]);

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.