@openremote/or-asset-tree 1.35.0-snapshot.20261124123208 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1605,7 +1605,7 @@ var ORAssetTree;(()=>{var e={3260(e){"use strict";let t=(async function(){}).con
1605
1605
  <slot name="reject-button" slot="reject-button"></slot>
1606
1606
  <slot name="confirm-button" slot="confirm-button"></slot>
1607
1607
  </vaadin-confirm-dialog-overlay>
1608
- `}_onOpenedChanged(e){this.opened=e.detail.value}}function ay(e,t,n){return e?t(e):n?.(e)}n$(av),n(4532),(h=eA||(eA={})).CREATE="CREATE",h.UPDATE="UPDATE",h.DELETE="DELETE",h.DELETE_FINISHED="DELETE_FINISHED",(p=eC||(eC={})).LOW="LOW",p.MEDIUM="MEDIUM",p.HIGH="HIGH",(b=eD||(eD={})).MANUAL="MANUAL",b.CLIENT="CLIENT",b.GLOBAL_RULESET="GLOBAL_RULESET",b.REALM_RULESET="REALM_RULESET",b.ASSET_RULESET="ASSET_RULESET",b.AGENT="AGENT",(_=eT||(eT={})).OPEN="OPEN",_.ACKNOWLEDGED="ACKNOWLEDGED",_.IN_PROGRESS="IN_PROGRESS",_.RESOLVED="RESOLVED",_.CLOSED="CLOSED",(g=eS||(eS={})).BOTTOM_LEFT="BOTTOM_LEFT",g.BOTTOM_RIGHT="BOTTOM_RIGHT",g.TOP_LEFT="TOP_LEFT",g.TOP_RIGHT="TOP_RIGHT",(F=eO||(eO={})).CREATE="CREATE",F.READ="READ",F.UPDATE="UPDATE",F.DELETE="DELETE",(v=eI||(eI={})).INVALID_JSON="INVALID_JSON",v.UNSUPPORTED_VERSION="UNSUPPORTED_VERSION",v.MISSING_REQUIRED_FIELD="MISSING_REQUIRED_FIELD",v.MALFORMED_ATTRIBUTE_ENTRY="MALFORMED_ATTRIBUTE_ENTRY",v.INVALID_META_ITEM="INVALID_META_ITEM",v.VALUE_VIOLATES_CONSTRAINTS="VALUE_VIOLATES_CONSTRAINTS",v.NO_IMPORTABLE_ATTRIBUTES="NO_IMPORTABLE_ATTRIBUTES",v.DRAFT_MISMATCH="DRAFT_MISMATCH",(y=eY||(eY={})).NONE="NONE",y.FORECAST="FORECAST",y.SETPOINT="SETPOINT",(w=eR||(eR={})).DISCONNECTED="DISCONNECTED",w.CONNECTING="CONNECTING",w.DISCONNECTING="DISCONNECTING",w.CONNECTED="CONNECTED",w.DISABLED="DISABLED",w.WAITING="WAITING",w.ERROR="ERROR",w.STOPPED="STOPPED",(k=eB||(eB={})).REQUEST_START="REQUEST_START",k.REQUEST_REPEATING="REQUEST_REPEATING",k.REQUEST_CANCEL="REQUEST_CANCEL",k.READY="READY",k.COMPLETED="COMPLETED",k.RUNNING="RUNNING",k.CANCELLED="CANCELLED",(E=eP||(eP={})).TOGGLE="TOGGLE",E.INCREMENT="INCREMENT",E.DECREMENT="DECREMENT",E.NEGATE="NEGATE",(x=eN||(eN={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",x.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",x.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",x.INVALID_VALUE="INVALID_VALUE",x.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",x.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",x.CANNOT_PROCESS="CANNOT_PROCESS",x.QUEUE_FULL="QUEUE_FULL",x.UNKNOWN="UNKNOWN",x.ASSET_ID_MISSING="ASSET_ID_MISSING",x.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(M=ej||(ej={})).PUBLIC="PUBLIC",M.SHARED="SHARED",M.PRIVATE="PRIVATE",(L=eH||(eH={})).OFF="OFF",L.ONE_MIN="ONE_MIN",L.FIVE_MIN="FIVE_MIN",L.QUARTER="QUARTER",L.ONE_HOUR="ONE_HOUR",(A=ez||(ez={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",A.KEEP_LAYOUT="KEEP_LAYOUT",A.REDIRECT="REDIRECT",A.BLOCK_DEVICE="BLOCK_DEVICE",(C=eU||(eU={})).CSV="CSV",C.CSV_CROSSTAB="CSV_CROSSTAB",C.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(D=e$||(e$={})).MINUTE="MINUTE",D.HOUR="HOUR",D.DAY="DAY",D.WEEK="WEEK",D.MONTH="MONTH",D.YEAR="YEAR",(T=eW||(eW={})).MIN="MIN",T.AVG="AVG",T.MAX="MAX",T.DIFFERENCE="DIFFERENCE",T.COUNT="COUNT",T.SUM="SUM",T.MODE="MODE",T.MEDIAN="MEDIAN",(S=eV||(eV={})).TERMINATING="TERMINATING",S.DISABLED="DISABLED",S.ALREADY_CONNECTED="ALREADY_CONNECTED",S.UNRECOGNISED="UNRECOGNISED",S.PERMANENT_ERROR="PERMANENT_ERROR",S.SYNC_ERROR="SYNC_ERROR",(O=eq||(eq={})).HTTPS="HTTPS",O.HTTP="HTTP",O.TCP="TCP",(I=eG||(eG={})).GET="GET",I.POST="POST",I.PUT="PUT",I.DELETE="DELETE",I.OPTIONS="OPTIONS",I.PATCH="PATCH",(Y=eK||(eK={})).KEYCLOAK="KEYCLOAK",Y.NONE="NONE",(R=eJ||(eJ={})).WEBSOCKET="WEBSOCKET",R.POLLING="POLLING",(B=eX||(eX={})).INTERNAL="INTERNAL",B.CLIENT="CLIENT",B.GLOBAL_RULESET="GLOBAL_RULESET",B.REALM_RULESET="REALM_RULESET",B.ASSET_RULESET="ASSET_RULESET",(P=eQ||(eQ={})).REALM="REALM",P.USER="USER",P.ASSET="ASSET",P.CUSTOM="CUSTOM",(N=eZ||(eZ={})).NORMAL="NORMAL",N.HIGH="HIGH",(j=e0||(e0={})).DEVICE="DEVICE",j.TOPIC="TOPIC",j.CONDITION="CONDITION",(H=e1||(e1={})).ALWAYS="ALWAYS",H.ONCE="ONCE",H.HOURLY="HOURLY",H.DAILY="DAILY",H.WEEKLY="WEEKLY",H.MONTHLY="MONTHLY",H.ANNUALLY="ANNUALLY",(z=e2||(e2={})).TITLE="TITLE",z.SOURCE="SOURCE",z.STATUS="STATUS",z.SENT_ON="SENT_ON",z.DELIVERED_ON="DELIVERED_ON",(U=e4||(e4={})).MESSAGE_INVALID="MESSAGE_INVALID",U.CERTIFICATE_INVALID="CERTIFICATE_INVALID",U.UNAUTHORIZED="UNAUTHORIZED",U.FORBIDDEN="FORBIDDEN",U.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",U.CONFIG_DISABLED="CONFIG_DISABLED",U.USER_DISABLED="USER_DISABLED",U.SERVER_ERROR="SERVER_ERROR",U.ASSET_ERROR="ASSET_ERROR",U.SERVER_BUSY="SERVER_BUSY",($=e5||(e5={})).PRIVATE="PRIVATE",$.PROTECTED="PROTECTED",$.PUBLIC="PUBLIC",(W=e6||(e6={})).EXACT="EXACT",W.BEGIN="BEGIN",W.END="END",W.CONTAINS="CONTAINS",(V=e3||(e3={})).EQUALS="EQUALS",V.GREATER_THAN="GREATER_THAN",V.GREATER_EQUALS="GREATER_EQUALS",V.LESS_THAN="LESS_THAN",V.LESS_EQUALS="LESS_EQUALS",V.BETWEEN="BETWEEN",(q=e8||(e8={})).CREATED_ON="CREATED_ON",q.NAME="NAME",q.ASSET_TYPE="ASSET_TYPE",q.PARENT_ID="PARENT_ID",q.REALM="REALM",(G=e7||(e7={})).RESTRICTED="RESTRICTED",G.LINKED="LINKED",G.REALM="REALM",(K=e9||(e9={})).AT_LEAST_ONE="AT_LEAST_ONE",K.ALL="ALL",K.NONE="NONE",(J=te||(te={})).AND="AND",J.OR="OR",(X=tt||(tt={})).CREATED_ON="CREATED_ON",X.FIRST_NAME="FIRST_NAME",X.LAST_NAME="LAST_NAME",X.USERNAME="USERNAME",X.EMAIL="EMAIL",(Q=tn||(tn={})).STOPPED="STOPPED",Q.RUNNING="RUNNING",Q.ERROR="ERROR",(Z=to||(to={})).JAVASCRIPT="JAVASCRIPT",Z.GROOVY="GROOVY",Z.JSON="JSON",Z.FLOW="FLOW",(ee=ti||(ti={})).READY="READY",ee.DEPLOYED="DEPLOYED",ee.COMPILATION_ERROR="COMPILATION_ERROR",ee.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",ee.EXECUTION_ERROR="EXECUTION_ERROR",ee.LOOP_ERROR="LOOP_ERROR",ee.DISABLED="DISABLED",ee.PAUSED="PAUSED",ee.EXPIRED="EXPIRED",ee.REMOVED="REMOVED",ee.EMPTY="EMPTY",(et=tr||(tr={})).SUNRISE="SUNRISE",et.SUNSET="SUNSET",et.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",et.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",et.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",et.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",et.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",et.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",et.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",et.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",et.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",et.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",et.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",et.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",et.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",et.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",et.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",et.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",et.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",et.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(en=ta||(ta={})).NUMBER="NUMBER",en.NUMBER_ARRAY="NUMBER_ARRAY",en.STRING="STRING",en.BOOLEAN="BOOLEAN",en.TRIGGER="TRIGGER",en.COLOR="COLOR",en.ANY="ANY",(eo=ts||(ts={})).NEW_LINE="NEW_LINE",eo.SPACER="SPACER",(ei=td||(td={})).INPUT="INPUT",ei.PROCESSOR="PROCESSOR",ei.OUTPUT="OUTPUT",ei.THEN="THEN",(er=tl||(tl={})).TEXT="TEXT",er.MULTILINE="MULTILINE",er.NUMBER="NUMBER",er.DROPDOWN="DROPDOWN",er.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",er.CHECKBOX="CHECKBOX",er.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",er.COLOR="COLOR",er.DATE="DATE",(ea=tc||(tc={})).ADD="ADD",ea.ADD_OR_REPLACE="ADD_OR_REPLACE",ea.REPLACE="REPLACE",ea.DELETE="DELETE",ea.CLEAR="CLEAR",(es=tm||(tm={})).PER_ASSET="PER_ASSET",es.GLOBAL="GLOBAL",(ed=tu||(tu={})).READ_ADMIN="read:admin",ed.READ_LOGS="read:logs",ed.READ_USERS="read:users",ed.READ_MAP="read:map",ed.READ_ASSETS="read:assets",ed.READ_RULES="read:rules",ed.READ_INSIGHTS="read:insights",ed.READ_ALARMS="read:alarms",ed.READ_NOTIFICATIONS="read:notifications",ed.READ_SERVICES="read:services",ed.READ_TUNNELS="read:tunnels",ed.WRITE_SERVICES="write:services",ed.WRITE_USER="write:user",ed.WRITE_ADMIN="write:admin",ed.WRITE_LOGS="write:logs",ed.WRITE_ASSETS="write:assets",ed.WRITE_ATTRIBUTES="write:attributes",ed.WRITE_RULES="write:rules",ed.WRITE_INSIGHTS="write:insights",ed.WRITE_ALARMS="write:alarms",ed.WRITE_NOTIFICATIONS="write:notifications",ed.WRITE_TUNNELS="write:tunnels",ed.READ="read",ed.WRITE="write",(el=tf||(tf={})).REGISTER="REGISTER",el.UPDATE="UPDATE",el.DEREGISTER="DEREGISTER",(ec=th||(th={})).AVAILABLE="AVAILABLE",ec.UNAVAILABLE="UNAVAILABLE",(em=tp||(tp={})).ASSET="ASSET",em.AGENT="AGENT",em.NOTIFICATION="NOTIFICATION",em.ALARM="ALARM",em.RULES="RULES",em.PROTOCOL="PROTOCOL",em.GATEWAY="GATEWAY",em.MODEL_AND_VALUES="MODEL_AND_VALUES",em.API="API",em.DATA="DATA",(eu=tb||(tb={})).INFO="INFO",eu.WARN="WARN",eu.ERROR="ERROR",(ef=t_||(t_={})).NUMERIC="numeric",ef.DIGIT_2="2-digit",ef.FULL="full",ef.LONG="long",ef.MEDIUM="medium",ef.SHORT="short",ef.NARROW="narrow",(eh=tg||(tg={})).SECONDLY="SECONDLY",eh.MINUTELY="MINUTELY",eh.HOURLY="HOURLY",eh.DAILY="DAILY",eh.WEEKLY="WEEKLY",eh.MONTHLY="MONTHLY",eh.YEARLY="YEARLY",(ep=tF||(tF={})).OMIT="OMIT",ep.BACKWARD="BACKWARD",ep.FORWARD="FORWARD",(eb=tv||(tv={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(e_=ty||(ty={})).SU="SU",e_.MO="MO",e_.TU="TU",e_.WE="WE",e_.TH="TH",e_.FR="FR",e_.SA="SA",(eg=tw||(tw={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eg.MAILAGENT="MailAgent",eg.UDPAGENT="UDPAgent",eg.ROOMASSET="RoomAsset",eg.CITYASSET="CityAsset",eg.VENTILATIONASSET="VentilationAsset",eg.TRADFRILIGHTASSET="TradfriLightAsset",eg.CONSOLEASSET="ConsoleAsset",eg.PRESENCESENSORASSET="PresenceSensorAsset",eg.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eg.LIGHTASSET="LightAsset",eg.KNXAGENT="KNXAgent",eg.THETHINGSSTACKAGENT="TheThingsStackAgent",eg.PLUGASSET="PlugAsset",eg.CHIRPSTACKAGENT="ChirpStackAgent",eg.WEATHERASSET="WeatherAsset",eg.THINGASSET="ThingAsset",eg.WEBSOCKETAGENT="WebsocketAgent",eg.TCPAGENT="TCPAgent",eg.GATEWAYASSET="GatewayAsset",eg.SERIALAGENT="SerialAgent",eg.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eg.PARKINGASSET="ParkingAsset",eg.TRADFRIPLUGASSET="TradfriPlugAsset",eg.SIMULATORAGENT="SimulatorAgent",eg.SNMPAGENT="SNMPAgent",eg.GROUPASSET="GroupAsset",eg.BUILDINGASSET="BuildingAsset",eg.MODBUSSERIALAGENT="ModbusSerialAgent",eg.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eg.MQTTAGENT="MQTTAgent",eg.VELBUSTCPAGENT="VelbusTCPAgent",eg.ARTNETLIGHTASSET="ArtnetLightAsset",eg.VELBUSSERIALAGENT="VelbusSerialAgent",eg.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eg.MICROPHONEASSET="MicrophoneAsset",eg.MODBUSTCPAGENT="ModbusTcpAgent",eg.ZWAVEAGENT="ZWaveAgent",eg.HTTPAGENT="HTTPAgent",eg.DOORASSET="DoorAsset",eg.THERMOSTATASSET="ThermostatAsset",eg.SHIPASSET="ShipAsset",(eF=tk||(tk={})).COLOURRGB="colourRGB",eF.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eF.PRICEHOURLY="priceHourly",eF.MQTTPORT="MQTTPort",eF.PINGDISABLED="pingDisabled",eF.FLOW="flow",eF.CHILDASSETTYPE="childAssetType",eF.LASTACCESS="lastAccess",eF.POSITION="position",eF.NETWORKKEY="networkKey",eF.UNIVERSE="universe",eF.ROUTINGMODE="routingMode",eF.MSSINUMBER="MSSINumber",eF.LASTWILLRETAIN="lastWillRetain",eF.LASTWILLTOPIC="lastWillTopic",eF.SERIALBAUDRATE="serialBaudrate",eF.SUBSCRIBEQOS="subscribeQos",eF.LEDCOUNT="lEDCount",eF.LOCKED="locked",eF.CLOUDCOVERAGE="cloudCoverage",eF.BASEURL="baseURL",eF.PROTOCOL="protocol",eF.REQUIREDVALUES="requiredValues",eF.REGION="region",eF.CONSOLEPLATFORM="consolePlatform",eF.GATEWAYSTATUS="gatewayStatus",eF.NO2LEVEL="NO2Level",eF.ATMOSPHERICPRESSURE="atmosphericPressure",eF.SERIALPORT="serialPort",eF.APPLICATIONID="applicationId",eF.TAGS="tags",eF.UNLOCK="unlock",eF.CHECKINTERVALSECONDS="checkIntervalSeconds",eF.LOCATION="location",eF.CLIENTSECRET="clientSecret",eF.WINDDIRECTION="windDirection",eF.WINDSPEED="windSpeed",eF.PARTICLESPM10="particlesPM10",eF.APPLICATIONKEY="applicationKey",eF.LENGTH="length",eF.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eF.USERNAMEPASSWORD="usernamePassword",eF.WATERLEVEL="waterLevel",eF.CONNECTHEADERS="connectHeaders",eF.CONSOLENAME="consoleName",eF.WEBSOCKETQUERY="websocketQuery",eF.PREFERHTML="preferHTML",eF.PARITY="parity",eF.COOLING="cooling",eF.POLLINGMILLIS="pollingMillis",eF.SOILTEMPERATURE="soilTemperature",eF.SUNIRRADIANCE="sunIrradiance",eF.MESSAGEMAXLENGTH="messageMaxLength",eF.WINDGUSTSPEED="windGustSpeed",eF.LIGHTID="lightId",eF.PROXYADDRESS="proxyAddress",eF.REQUESTQUERYPARAMETERS="requestQueryParameters",eF.MQTTHOST="MQTTHost",eF.SECUREGRPC="secureGRPC",eF.MODEL="model",eF.STREET="street",eF.MANUFACTURER="manufacturer",eF.DELETEPROCESSEDMAIL="deleteProcessedMail",eF.RESUMESESSION="resumeSession",eF.ONOFF="onOff",eF.APIKEY="ApiKey",eF.CITY="city",eF.PRESENCE="presence",eF.SPACESOCCUPIED="spacesOccupied",eF.STARTTLS="startTLS",eF.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eF.WEBSOCKETPATH="websocketPath",eF.AGENTSTATUS="agentStatus",eF.PRICEDAILY="priceDaily",eF.COUNTGROWTHMINUTE="countGrowthMinute",eF.IMONUMBER="IMONumber",eF.ATTRIBUTION="Attribution",eF.TENANTID="tenantId",eF.REQUESTHEADERS="requestHeaders",eF.HOST="host",eF.COUNTOUTMINUTE="countOutMinute",eF.MESSAGECHARSET="messageCharset",eF.CERTIFICATEALIAS="certificateAlias",eF.EMAIL="email",eF.BINDPORT="bindPort",eF.CONSOLEVERSION="consoleVersion",eF.PARTICLESPM1="particlesPM1",eF.MTU="mtu",eF.SPEED="speed",eF.MESSAGESTRIPDELIMITER="messageStripDelimiter",eF.AREA="area",eF.COUNTRY="country",eF.SHIPTYPE="shipType",eF.CONNECTSUBSCRIPTIONS="connectSubscriptions",eF.RELATIVEHUMIDITY="relativeHumidity",eF.SOURCEADDRESS="sourceAddress",eF.RAINFALL="rainfall",eF.OAUTHGRANT="oAuthGrant",eF.OZONELEVEL="ozoneLevel",eF.SEQUENCENUMBER="sequenceNumber",eF.COUNTINMINUTE="countInMinute",eF.PORT="port",eF.SUNALTITUDE="sunAltitude",eF.COUNTOUT="countOut",eF.ROOMNUMBER="roomNumber",eF.TUNNELINGSUPPORTED="tunnelingSupported",eF.ENINUMBER="ENINumber",eF.PARTICLESPM2_5="particlesPM2_5",eF.AGENTDISABLED="agentDisabled",eF.DISABLED="disabled",eF.COUNTIN="countIn",eF.MESSAGESOURCEADDRESS="messageSourceAddress",eF.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eF.TIMEINJECTIONINTERVAL="timeInjectionInterval",eF.TEMPERATURESETPOINT="temperatureSetpoint",eF.CONSOLEPROVIDERS="consoleProviders",eF.COUNTTOTAL="countTotal",eF.SPACESBUFFER="spacesBuffer",eF.DEVICECONFIG="deviceConfig",eF.SPACESTOTAL="spacesTotal",eF.BINDHOST="bindHost",eF.FANSPEED="fanSpeed",eF.MESSAGECONVERTBINARY="messageConvertBinary",eF.NOTES="notes",eF.MAILFOLDERNAME="mailFolderName",eF.MESSAGEDELIMITERS="messageDelimiters",eF.TEMPERATURE="temperature",eF.SUNZENITH="sunZenith",eF.SNMPVERSIONVALUE="SNMPVersionValue",eF.BRIGHTNESS="brightness",eF.POSTALCODE="postalCode",eF.SPACESOPEN="spacesOpen",eF.HUMIDITY="humidity",eF.SOUNDLEVEL="soundLevel",eF.SECUREMODE="secureMode",eF.DIRECTION="direction",eF.STOPBITS="stopbits",eF.UVINDEX="uVIndex",eF.CONNECTURL="connectURL",eF.CLIENTID="clientId",eF.NATMODE="NATMode",eF.UPDATEONWRITE="updateOnWrite",eF.LASTWILLPAYLOAD="lastWillPayload",eF.GROUPID="groupId",eF.FOLLOWREDIRECTS="followRedirects",eF.SUNAZIMUTH="sunAzimuth",eF.MESSAGECONVERTHEX="messageConvertHex",eF.WEBSOCKETMODE="websocketMode",eF.COLOURTEMPERATURE="colourTemperature",eF.PUBLISHQOS="publishQos",eF.DATABITS="dataBits",(ev=tE||(tE={})).FORMAT="format",ev.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",ev.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",ev.SECRET="secret",ev.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",ev.ATTRIBUTELINKS="attributeLinks",ev.RULERESETIMMEDIATE="ruleResetImmediate",ev.RULESTATE="ruleState",ev.AGENTLINKCONFIG="agentLinkConfig",ev.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",ev.FORECAST="forecast",ev.STOREDATAPOINTS="storeDataPoints",ev.LABEL="label",ev.CONSTRAINTS="constraints",ev.UNITS="units",ev.USERCONNECTED="userConnected",ev.SHOWONDASHBOARD="showOnDashboard",ev.READONLY="readOnly",ev.MULTILINE="multiline",ev.ACCESSPUBLICWRITE="accessPublicWrite",ev.MOMENTARY="momentary",ev.AGENTLINK="agentLink",ev.ACCESSRESTRICTEDREAD="accessRestrictedRead",ev.ACCESSPUBLICREAD="accessPublicRead",(ey=tx||(tx={})).ASSETQUERY="assetQuery",ey.WSURL="WS_URL",ey.COLOURRGB="colourRGB",ey.VALUEFORMAT="valueFormat",ey.TEXT="text",ey.BYTE="byte",ey.USERNAMEANDPASSWORD="usernameAndPassword",ey.HTTPURL="HTTP_URL",ey.ATTRIBUTELINK="attributeLink",ey.ASSETID="assetID",ey.NUMBERMAP="numberMap",ey.HTTPMETHOD="HTTPMethod",ey.ATTRIBUTESTATE="attributeState",ey.POSITIVENUMBER="positiveNumber",ey.POSITIVEINTEGER="positiveInteger",ey.EXECUTIONSTATUS="executionStatus",ey.BIGINTEGER="bigInteger",ey.VALUEDESCRIPTOR="valueDescriptor",ey.PERIODDURATIONISO8601="periodDurationISO8601",ey.LONG="long",ey.DATEANDTIME="dateAndTime",ey.BOOLEANMAP="booleanMap",ey.MQTTQOS="MQTTQos",ey.NEGATIVEINTEGER="negativeInteger",ey.TCPIPPORTNUMBER="TCP_IPPortNumber",ey.GEOJSONPOINT="GEO_JSONPoint",ey.SNMPVERSION="SNMPVersion",ey.ASSETTYPE="assetType",ey.JSONOBJECT="JSONObject",ey.INTEGERMAP="integerMap",ey.BIGNUMBER="bigNumber",ey.IPADDRESS="IPAddress",ey.EMAIL="email",ey.TIMESTAMP="timestamp",ey.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",ey.ATTRIBUTEREFERENCE="attributeReference",ey.UUID="UUID",ey.INTEGER="integer",ey.OAUTHGRANT="oAuthGrant",ey.NUMBER="number",ey.DEVICECONFIGMAP="DeviceConfigMap",ey.TEXTMAP="textMap",ey.WEBSOCKETSUBSCRIPTION="websocketSubscription",ey.BOOLEAN="boolean",ey.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",ey.FORECASTCONFIGURATION="forecastConfiguration",ey.TIMEDURATIONISO8601="timeDurationISO8601",ey.TIMESTAMPISO8601="timestampISO8601",ey.CONSOLEPROVIDERS="consoleProviders",ey.MULTIVALUEDTEXTMAP="multivaluedTextMap",ey.NEGATIVENUMBER="negativeNumber",ey.PARITYBIT="Paritybit",ey.JSON="JSON",ey.CRONEXPRESSION="CRONExpression",ey.INTEGERBYTE="integerByte",ey.AGENTLINK="agentLink",ey.DIRECTION="direction",ey.HOSTORIPADDRESS="hostOrIPAddress",ey.STOPBITS="Stopbits",ey.CALENDAREVENT="calendarEvent",ey.CONNECTIONSTATUS="connectionStatus",ey.VALUECONSTRAINT="valueConstraint",(ew=tM||(tM={})).MONTH="month",ew.MILE_SCANDINAVIAN="mile_scandinavian",ew.VAR="var",ew.OUNCE="ounce",ew.HECTARE="hectare",ew.YARD="yard",ew.YEAR="year",ew.GIGA="giga",ew.JOULE="joule",ew.VOLT="volt",ew.HERTZ="hertz",ew.MILE="mile",ew.DEGREE="degree",ew.KILO="kilo",ew.BTU="btu",ew.TERA="tera",ew.FOOT="foot",ew.MEGA="mega",ew.KELVIN="kelvin",ew.CARBON="carbon",ew.DECIBEL_ATTENUATED="decibel_attenuated",ew.INCH="inch",ew.SQUARED="squared",ew.PERCENTAGE="percentage",ew.IN_HG="inch_mercury",ew.CENTI="centi",ew.GRAM="gram",ew.CUBED="cubed",ew.DAY="day",ew.RADIAN="radian",ew.OHM="ohm",ew.MINUTE="minute",ew.PART_PER_MILLION="ppm",ew.AMP="amp",ew.MASS_POUND="pound",ew.KNOT="knot",ew.METRE="metre",ew.LITRE="litre",ew.FLUID_OUNCE="fluid_ounce",ew.HOUR="hour",ew.ACRE="acre",ew.CELSIUS="celsius",ew.RPM="rpm",ew.PASCAL="pascal",ew.DECIBEL="decibel",ew.LUMEN="lumen",ew.WEEK="week",ew.FAHRENHEIT="fahrenheit",ew.WATT="watt",ew.GALLON="gallon",ew.LUX="lux",ew.MILLI="milli",ew.BAR="bar",ew.HECTO="hecto",ew.PEAK="peak",ew.SECOND="second",ew.MICRO="micro",ew.PER="per",ew.STONE="stone",tL||(tL={});class aw{static getAssetDescriptors(){return aw._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=aw.getValueDescriptor(t)),n=t.jsonType?t:aw.getValueDescriptor(t.type)),!n&&e&&(n=aw.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,i;if(t&&"string"!=typeof t)o=t;else{let i=this.getAssetTypeInfo(e||"ThingAsset");if(!i)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,i)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(i=this.getValueDescriptor(o.type)),[o,i]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}aw._assetTypeInfos=[],aw._metaItemDescriptors=[],aw._valueDescriptors=[];let ak=e=>"string"==typeof e,aE=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},ax=e=>null==e?"":String(e),aM=e=>e?.callbackApi??e?.constructor?.callbackApi,aL=/###/g,aA=e=>e&&e.includes("###")?e.replace(aL,"."):e,aC=e=>!e||ak(e),aD=(e,t,n)=>{let o=ak(t)?t.split("."):t,i=0;for(;i<o.length-1;){if(aC(e))return{};let t=aA(o[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return aC(e)?{}:{obj:e,k:aA(o[i])}},aT=(e,t,n)=>{let{obj:o,k:i}=aD(e,t,Object);if(void 0!==o||1===t.length){o[i]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=aD(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=aD(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${r}`]&&(s.obj=void 0);s.obj[`${s.k}.${r}`]=n},aS=(e,t)=>{let{obj:n,k:o}=aD(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},aO=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?ak(e[o])||e[o]instanceof String||ak(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):aO(e[o],t[o],n):e[o]=t[o]);return e},aI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},aY=e=>ak(e)?e.replace(/[&<>"'\/]/g,e=>aI[e]):e,aR=[" ",",","?","!",";"],aB=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),aP=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let o=t.split(n),i=e;for(let e=0;e<o.length;){let t;if(!i||"object"!=typeof i)return;let r="";for(let a=e;a<o.length;++a)if(a!==e&&(r+=n),r+=o[a],"function"!=typeof(t=i[r])&&"__proto__"!==r||Object.prototype.hasOwnProperty.call(i,r)||(t=void 0),void 0!==t){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}i=t}return i},aN=e=>e?.replace(/_/g,"-"),aj={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var aH=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||aj,this.options=t,this.debug=t.debug,this.seen=new Set}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}once(e,t,...n){return!this.debug||this.seen.has(e)||this.seen.size>=1e3?null:(this.seen.add(e),this[t](...n))}forward(e,t,n,o){return o&&!this.debug?null:(e=e.map(e=>ak(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),ak(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class az{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){("string"==typeof e?e.split(" "):[e]).forEach(e=>{if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}})}once(e,t){let n=(...o)=>{t(...o),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let o=0;o<n;o++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let i=0;i<o;i++)n(e,...t)})}}let aU=new WeakSet;class a$ extends az{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.logger=aH.create("resourceStore"),void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}deprecateDottedLng(e){this.logger.once(e,"deprecate",`${e}: a dotted language ('en.translation.key') that carries the namespace and key is removed in v27; pass language, namespace and key as separate arguments`)}getResource(e,t,n,o={}){let i,r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?(this.deprecateDottedLng("getResource"),i=e.split(".")):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):ak(n)&&r?i.push(...n.split(r)):i.push(n)));let s=aS(this.data,i);return(null==s&&!t&&!n&&e.includes(".")&&(e=i[0],t=i[1],n=i.slice(2).join(".")),null==s&&a&&ak(n))?aP(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,o,i={silent:!1}){let r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(this.deprecateDottedLng("addResource"),a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),aT(this.data,a,o),i.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(ak(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,i,r={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(this.deprecateDottedLng("addResourceBundle"),a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let s=aS(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?aO(s,n,i):s={...s,...n},aT(this.data,a,s),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>{let n=t[e];return!!aU.has(n)||!!n&&0!==Object.keys(n).length&&("object"==typeof n&&aU.add(n),!0)})}toJSON(){return this.data}}var aW={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,i)??t}),t}};let aV=Symbol("i18next/PATH_KEY");function aq(e,t){let n,o,i,{[aV]:r}=e((o=[],(i=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===aV)?o:(o.push(t),(n=Proxy.revocable(e,i)).proxy),Proxy.revocable(Object.create(null),i).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(r.length>1&&s){let e=t?.ns,n=d?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(d?n:n.length>1?n.slice(1):[]).includes(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let aG=e=>!ak(e)&&"boolean"!=typeof e&&"number"!=typeof e;class aK extends az{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils","ownPostProcessors"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=aH.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let o=this.resolve(e,n);if(o?.res===void 0)return!1;let i=aG(o.res);return!1!==n.returnObjects||!i}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],r=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=aR.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let i=aB.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),r=!i.test(e);if(!r){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(r=!0)}return r})(e,n,o);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ak(i)?[i]:i};let r=e.split(n);(n!==o||n===o&&this.options.ns.includes(r[0]))&&(i=r.shift()),e=r.join(o)}return{key:e,namespaces:ak(i)?[i]:i}}translate(e,t,n){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=aq(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?aq(e,{...this.options,...o}):String(e));let i=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],o),d=s[s.length-1],l=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===l&&(l=":");let c=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return m?i?{res:`${d}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${l}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,h=u?.usedKey||a,p=u?.exactUsedKey||a,b=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,g=void 0!==o.count&&!ak(o.count),F=aK.hasDefaultValue(o),v=g?this.pluralResolver.getSuffix(c,o.count,o):"",y=o.ordinal&&g?this.pluralResolver.getSuffix(c,o.count,{ordinal:!1}):"",w=g&&!o.ordinal&&0===o.count,k=w&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${v}`]||o[`defaultValue${y}`]||o.defaultValue,E=f;_&&!f&&F&&(E=k);let x=aG(E),M=Object.prototype.toString.apply(E);if(_&&E&&x&&!["[object Number]","[object Function]","[object RegExp]"].includes(M)&&!(ak(b)&&Array.isArray(E))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||(this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.logger.once("returnedObject","deprecate","accessing an object without returnObjects returns a sentence about it today; from v27 t() returns the key, as for a missing key (returnedObjectHandler can keep today's text)"));let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(r){let e=Array.isArray(E),t=e?[]:{},n=e?p:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let i=`${n}${r}${e}`;F&&!f?t[e]=this.translate(i,{...o,defaultValue:aG(k)?k[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(i,{...o,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=E[e])}f=t}}else if(_&&ak(b)&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,o,u,n));else{let t=!1,i=!1;!this.isValidLookup(f)&&F&&(t=!0,f=k),this.isValidLookup(f)||(i=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,m=F&&k!==f&&this.options.updateMissing;if(i||t||m){if(this.logger.log(m?"updateKey":"missingKey",c,d,g&&!m?`${a}${this.pluralResolver.getSuffix(c,o.count,o)}`:a,m?k:f),r){let e=this.resolve(a,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);let n=(e,t,n)=>{let i=F&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,i,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,i,m,o,void 0,this.utils?.hasLoadedNamespace),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&g?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,o);w&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,o[`defaultValue${t}`]||k)})}):n(e,a,k))}f=this.extendTranslation(f,e,o,u,n),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${l}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${l}${a}`:a,t?f:void 0,o))}return i?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){let r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=ak(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let s=n.replace&&!ak(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||o.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let r=n.postProcess||this.options.postProcess,a=ak(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(a.forEach(e=>{this.logger.debug&&aW.processors[e]&&this.ownPostProcessors&&!this.ownPostProcessors.has(e)&&this.logger.once(e,"deprecate",`postProcess: '${e}' was registered with use() on another i18next instance; from v27 post-processors are per instance, so call use() with it on this instance too`)}),e=aW.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,o,i,r,a;return ak(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?aq(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),d=s.key;o=d;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let c=void 0!==t.count&&!ak(t.count),m=c&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(ak(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(o=>{let a;if(this.isValidLookup(n))return;r=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(i)&&s.push(d+e.replace(i,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),c&&(t.ordinal&&e.startsWith(i)&&s.push(o+e.replace(i,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(i=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:r,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(e={}){let t=e.replace&&!ak(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class aJ{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=aH.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=aN(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=aN(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ak(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}let t=this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e;return this.logger.debug&&ak(e)&&this.deprecateBareCode(e,t),t}deprecateBareCode(e,t){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(e){return}this.options.lowerCaseLng&&(n=n.toLowerCase()),n!==t&&this.logger.once(e,"deprecate",`language code '${e}' is used as '${t}'; i18next v27 canonicalizes it to '${n}', use '${n}' in lng, fallbackLng, supportedLngs and the resources`)}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>e===o||(!!e.includes("-")||!!o.includes("-"))&&!(!e.includes("-")||o.includes("-"))&&e.slice(0,e.indexOf("-"))===o)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ak(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,o=Array.isArray(n)?n.join("|"):n;o!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=o);let i=void 0===t||!1===t||ak(t),r=void 0===t&&"function"==typeof this.options.fallbackLng,a=ak(e)&&i&&!r,s=null;if(a){let n;n=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,s=`${e.length}:${e}|${n}`}if(null!==s){let e=this.resolveHierarchyCache[s];if(void 0!==e)return e.slice()}let d=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),l=[],c=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return(ak(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&c(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&c(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&c(this.getLanguagePartFromCode(e))):ak(e)&&c(this.formatLanguageCode(e)),d.forEach(e=>{let t=this.formatLanguageCode(e);l.includes(t)||c(t)}),null!==s)?(this.resolveHierarchyCache[s]=l,l.slice()):l}}let aX={zero:0,one:1,two:2,few:3,many:4,other:5},aQ={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class aZ{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=aH.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=aN("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:o,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(o,{type:i})}catch(i){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),aQ;if(!e.match(/-|_/))return aQ;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[r]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>aX[e]-aX[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let a0=(e,t,n,o=".",i=!0)=>{let r,a=void 0!==(r=aS(e,n))?r:aS(t,n);return null==a&&i&&ak(n)&&void 0===(a=aP(e,n,o))&&(a=aP(t,n,o)),a};class a1{constructor(e={}){this.logger=aH.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:p,maxReplaces:b,alwaysFormat:_}=e.interpolation;if(r||s||u||h){let e=Object.entries({prefixEscaped:r,suffixEscaped:s,nestingPrefixEscaped:u,nestingSuffixEscaped:h}).filter(([,e])=>e).map(([e])=>e);this.logger.once(e.join(),"deprecate",`interpolation.${e.join(", interpolation.")}: the regex-escaped delimiter options are removed in v27; pass the literal delimiters as prefix, suffix, nestingPrefix and nestingSuffix`)}this.escape=void 0!==t?t:aY,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=l?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=p||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==_&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let i,r,a,s=e,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let i=a0(t,d,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...o,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),r=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(a0(t,d,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:r})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,u=[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?(this.escape===aY&&this.options?.interpolation?.escapeValue!==!1&&ak(e)&&e.includes("/")&&this.logger.once("/","deprecate","escapeValue renders '/' in a value as '&#x2F;' today; from v27 the default escape leaves '/' as it is"),this.escape(e)):e}],f=[],h=0;return u.forEach(t=>{for(a=0;i=t.regex.exec(e);){let n=i.index-h,d=f.find(([e,t])=>n>=e&&n<t);if(d){t.regex.lastIndex=d[1]+h;continue}let u=i[1].trim();if(void 0===(r=l(u)))if("function"==typeof c){let t=c(e,i,o);r=ak(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,u))r="";else if(m){this.logger.debug&&this.logger.once(`${s}\u0000${i[0]}`,"warn",`missed to pass in variable ${u} for interpolating ${s}`),r=i[0];continue}else this.logger.warn(`missed to pass in variable ${u} for interpolating ${e}`),r="";else ak(r)||this.useRawValueToEscape||(r=ax(r));let p=ax(t.safeValue(r));if(e=e.slice(0,i.index)+p+e.slice(i.index+i[0].length),m?(t.regex===this.regexpUnescape?f.push([i.index,i.index+p.length]):h+=p.length-i[0].length,t.regex.lastIndex+=p.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,i,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),i=`{${o[1]}`;e=o[0];let a=(i=this.interpolate(i,r)).match(/'/g),s=i.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(i=i.replace(/'/g,'"'));try{r=JSON.parse(i),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e},s=new RegExp(this.nestingRegexp),d="",l=0;for(;o=s.exec(e);){let c=[];(r=(r={...n}).replace&&!ak(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let m=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==m&&(c=o[1].slice(m).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),(i=t(a.call(this,o[1].trim(),r),r))&&o[0]===e&&!ak(i))return i;ak(i)||(i=ax(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),c.length&&(i=c.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),d+=e.slice(l,o.index)+ax(i),l=s.lastIndex,this.regexp.lastIndex=0}return l?d+e.slice(l):e}}let a2=e=>{let t={};return(n,o,i)=>{let r,a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});try{r=o+JSON.stringify(a)}catch(t){return e(aN(o),i)(n)}let s=t[r];return s||(s=e(aN(o),i),t[r]=s),s(n)}},a4=e=>(t,n,o)=>e(aN(n),o)(t);class a5{constructor(e={}){this.logger=aH.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?a2:a4;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=a2(t)}format(e,t,n,o={}){if(!t||null==e)return e;let i=t.split(this.formatSeparator),r=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:i,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let i=o[1].slice(0,-1);"currency"!==t||i.includes(":")?"relativetime"!==t||i.includes(":")?i.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),i=o.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=i),"false"===i&&(n[r]=!1),"true"===i&&(n[r]=!0),isNaN(i)||(n[r]=parseInt(i,10))}}):n.range||(n.range=i.trim()):n.currency||(n.currency=i.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[i](e,s,{...r,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class a6 extends az{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=aH.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o),this.callbackApi=aM(this.backend),this.backend&&void 0===this.callbackApi&&(this.backend.read||this.backend.create)&&this.logger.deprecate("backend: set callbackApi to declare the calling convention (true: read(language, namespace, callback) and create(languages, namespace, key, fallbackValue, callback, options); false: both return a promise or a value); guessing it from the number of parameters is deprecated")}queueLoad(e,t,n,o){let i={},r={},a={},s={};return e.forEach(e=>{let o=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:!n.reload&&this.state[a]<0||(1===this.state[a]?void 0===r[a]&&(r[a]=!0):(this.state[a]=1,o=!1,void 0===r[a]&&(r[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),i=o[0],r=o[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:o,k:i}=aD(e,t,Object);o[i]=o[i]||[],o[i].push(n)})(n.loaded,[i],r),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,o=0,i=this.retryTimeout,r){if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:r});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&o<this.maxRetries?setTimeout(()=>{this.read(e,t,n,o+1,2*i,r)},i):r(a,s)},s=this.backend[n].bind(this.backend);if(!1===this.callbackApi||void 0===this.callbackApi&&2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ak(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ak(t)&&(t=[t]);let i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}noticeDevFallback(e){"dev"===e&&this.devIsDefaultFallback&&this.logger.once("dev","warn","language 'dev' is requested because fallbackLng is not set (its default is ['dev']); i18next v27 defaults to fallbackLng: false and loads and saves missing keys in the requested language instead. Set fallbackLng to your source language, or to 'dev' to keep this behavior")}loadOne(e,t=""){let n=e.split("|"),o=n[0],i=n[1];this.noticeDevFallback(o),this.read(o,i,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${o} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${i} for language ${o}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,o,i,r={},a=()=>{},s=this.newestCloneHasLoadedNamespace||this.services?.utils?.hasLoadedNamespace){if(s&&!s(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){e?.forEach?.(e=>this.noticeDevFallback(e));let s={...r,isUpdate:i},d=this.backend.create.bind(this.backend);if(!1===this.callbackApi||void 0===this.callbackApi&&d.length<6)try{let i;(i=!1===this.callbackApi||5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let a3=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ak(e[1])&&(t.defaultValue=e[1]),ak(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),a8=e=>(ak(e.ns)&&(e.ns=[e.ns]),ak(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ak(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),a7=()=>{};class a9 extends az{constructor(e={},t){if(super(),this.options=a8(e),this.services={ownPostProcessors:new Set},this.logger=aH,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ak(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=void 0===e.fallbackLng&&void 0===this.options.fallbackLng,o=a3();this.options={...o,...this.options,...a8(e)},this.options.interpolation={...o.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler);let r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;i&&i!==this&&i.modules.logger!==this.modules.logger&&aH.deprecate("init: this init() replaces the logger another i18next instance set with use(), as the logger is shared in v26; from v27 each instance keeps its own logger"),i=this.modules.logger?this:void 0,this.modules.logger?aH.init(r(this.modules.logger),this.options):aH.init(null,this.options),this.pendingWarnings?.forEach(e=>this.logger.warn(e)),this.pendingWarnings=void 0,e=this.modules.formatter?this.modules.formatter:a5;let t=new aJ(this.options);this.store=new a$(this.options.resources,this.options);let o=this.services;o.logger=aH,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new aZ(t,{prepend:this.options.pluralSeparator}),e&&(o.formatter=r(e),o.formatter.init&&o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new a1(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this),reloadResources:this.reloadResources.bind(this)},o.backendConnector=new a6(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.devIsDefaultFallback=n,o.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options),o.languageDetector.async&&void 0===aM(o.languageDetector)&&this.logger.deprecate("languageDetector: set callbackApi to declare how the async detect() answers (true: detect(callback); false: detect() returns a promise); guessing it from the number of parameters is deprecated")),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new aK(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=a7),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let a=aE(),s=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),a}loadResources(e,t=a7){let n=t,o=ak(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let o=aE();if("function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),!e){let t=Object.keys(this.services.backendConnector.state).map(e=>e.split("|")[0]);e=[...new Set([...this.languages||[],...t])].filter(e=>"cimode"!==e)}return t||(t=this.options.ns),n||(n=a7),this.services.backendConnector.reload(e,t,e=>{o.resolve(),n(e)}),o}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");let t=t=>{if(this.modules[t]&&this.modules[t]!==e){let e=`use: this ${t} replaces the ${t} passed to an earlier use() call; only one ${t} is used per instance`;this.isInitializing||this.isInitialized?this.logger.warn(e):(this.pendingWarnings=this.pendingWarnings||[]).push(e)}this.modules[t]=e};return"backend"===e.type&&t("backend"),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&t("languageDetector"),"i18nFormat"===e.type&&t("i18nFormat"),"postProcessor"===e.type&&(aW.addPostProcessor(e),this.services.ownPostProcessors?.add(e.name)),"formatter"===e.type&&t("formatter"),"3rdParty"===e.type&&this.modules.external.push(e),this}hydrate(e,t){return this.options.isClone||(this.services.resourceStore?(e&&!this.initializedStoreOnce&&(this.services.resourceStore.data=e,Object.values(e).forEach(e=>{Object.keys(e).forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)})}),this.initializedStoreOnce=!0,this.isInitialized=!0),t&&!this.initializedLanguageOnce&&(this.changeLanguage(t),this.initializedLanguageOnce=!0)):this.logger.warn("hydrate: call init() first, the instance has no resource store yet")),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=aE();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,r)=>{r?this.isLanguageChangingTo===e&&(o(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=ak(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ak(t)?[t]:t);r&&this.logger.debug&&!(ak(r)&&/^[A-Za-z0-9_@.-]{1,128}$/.test(r)&&!r.includes("..")&&!["__proto__","constructor","prototype"].includes(r))&&([].concat(this.options.supportedLngs||[],this.services.languageUtils.getFallbackCodes(this.options.fallbackLng,r),this.options.preload||[]).includes(r)||Object.prototype.hasOwnProperty.call(this.store.data,r)||this.logger.once(`lng:${r}`,"deprecate",`changeLanguage: the language code '${r.slice(0,64)}' comes from lng, changeLanguage() or the language detector and is not configured; from v27 such a code is refused unless it has only letters, digits, '-', '_', '@' and '.' (no '..'), at most 128 characters. Set supportedLngs, or check the code before passing it on`)),r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{i(e,r)})};if(e||!this.services.languageDetector||this.services.languageDetector.async)if(!e&&this.services.languageDetector&&this.services.languageDetector.async){let e=aM(this.services.languageDetector);!1===e||void 0===e&&0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r)}else r(e);else r(this.services.languageDetector.detect());return n}getFixedT(e,t,n,o){let i=o?.scopeNs,r=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let l={...this.options,...a};Array.isArray(i)&&!d&&(l.ns=i),"function"==typeof a.keyPrefix&&(a.keyPrefix=aq(a.keyPrefix,l));let c=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=aq(e,l)),`${a.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=aq(e,l)),s=a.keyPrefix?`${a.keyPrefix}${c}${e}`:e),this.t(s,a)};return ak(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?this.translator.translate(...e):(this.logger.warn("t: called before init(); returning an empty string"),"")}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let r=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,r);if(void 0!==e)return e}if(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;let{languageUtils:a}=this.services,s=t.lng?a.isSupportedCode(n)&&a.toResolveHierarchy(n,!1)[0]:n;return!!((!s||r(s,e))&&(!o||r(i,e)))}loadNamespaces(e,t){let n=aE();return this.options.ns?(ak(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=aE();ak(e)&&(e=[e]);let o=this.options.preload||[],i=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=o.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"ltr";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new aJ(a3());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new a9(e,t);return n.createInstance=a9.createInstance,n}cloneInstance(e={},t=a7){let n=e.forkResourceStore;n&&(e={...e},delete e.forkResourceStore);let o={...this.options,preload:!1,...e,isClone:!0},i=new a9(o);if((void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={...i.services.utils,hasLoadedNamespace:i.hasLoadedNamespace.bind(i),reloadResources:i.reloadResources.bind(i)},n){let e=t=>{let n=Array.isArray(t)?[...t]:{...t};return Object.keys(n).forEach(t=>{n[t]&&"object"==typeof n[t]&&(n[t]=e(n[t]))}),n};i.store=new a$(e(this.store.data),o),i.services.resourceStore=i.store}if(e.interpolation){let t={...a3().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};i.services.interpolator=new a1(n)}return i.translator=new aK(i.services,o),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(o,t),i.translator.options=o,i.translator.backendConnector.newestCloneHasLoadedNamespace=i.hasLoadedNamespace.bind(i),i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let se=a9.createInstance();se.createInstance,se.dir,se.init,se.loadResources,se.reloadResources,se.use,se.changeLanguage,se.getFixedT,se.t,se.exists,se.setDefaultNamespace,se.hasLoadedNamespace,se.loadNamespaces,se.loadLanguages;var st=n(4867),sn=n.n(st);n(3472);class so{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function si(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>si(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>si(e[n],t[n]))}return!1}function sr(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}function sa(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,o)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!o[n-1]||"_"===o[n-1],i=n+1<o.length&&o[n+1]&&"_"!==o[n+1],r=n+3>o.length||!o[n+1]&&!o[n+3];(!t||i)&&(e=" "+e),!i&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}function ss(e,t){if(t===e)return!0;let n=e.endsWith("*"),o=!n&&e.startsWith("*"),i=!n&&!o&&e.startsWith("^")&&e.endsWith("$");if(n&&t.startsWith(e.substr(0,e.length-1))||o&&t.endsWith(e.substr(1)))return!0;if(i)try{return new RegExp(e).test(t)}catch(e){console.error("Failed to compile needle as a RegExp: "+e)}return!1}function sd(e,t,n){let o="string"==typeof e?e:e.name;return t&&t.meta&&t.meta.hasOwnProperty(o)?t.meta[o]:n&&n.meta?n.meta[o]:void 0}function sl(e){return("string"==typeof e&&(e=aw.getAssetDescriptor(e)),e)?se.t("label.asset."+e.name,{defaultValue:sa(e.name)}):""}function sc(e,t,n,o,i,r){let a=sm("label",e,t,n,i),s="";if(a||(a=sd("label",e,t&&t.meta?t:void 0)),o&&(s=function(e,t){if(!e)return"";t||(t="");let n=e.map((e,n)=>{if(3!==e.length||e.toUpperCase()!==e)return se.t(["units."+e,"or:units."+e]);{let o=new Intl.NumberFormat(se.language,{currency:e,style:"currency"}).formatToParts();if(0!==n||"currency"!==o[0].type)return"currency"===o[0].type?o[0].value:o[o.length-1].value;if(!t)return o[0].value;t=o[0].value+t}}).join("");return t.length>0?t+" "+n:n}(function(e,t,n,o,i){let r,a=[],s=sm(e,t&&"string"==typeof t?t:t?t.name:n?"string"==typeof n?n:n.name:void 0,n,o,i);if(s&&(r=JSON.parse(s)))if("format"!==e)return r;else a.push(r);if(t&&t.meta&&(r=sd(e,t,n)))if("format"!==e)return r;else a.push(r);if(n&&"string"!=typeof n&&n.hasOwnProperty(e)){if(r=n[e],"format"!==e)return r;a.push(r)}if(n&&n.type){if(r=aw.getValueDescriptor(n.type)[e],"format"!==e)return r;a.push(r)}if("format"!==e||0===a.length)return r;let d={};return a.reverse().forEach(e=>{d=Object.assign(Object.assign({},d),e)}),d}("units",e,t,n,i))),!a){let n=e?e.name:t?"string"==typeof t?t:t.name:void 0;a=r||(n?sa(n):void 0)}return a?a+(s?" ("+s+")":""):s}function sm(e,t,n,o,i,r){let a;if(t?a="string"==typeof t?t:t.name:n&&(a="string"==typeof n?n:n.name),!a)return;let s=[],d=e+"."+(i?"attribute":"meta")+".";if(o&&s.push(d+o+"."+a),n&&"string"!=typeof n&&(s.push(d+n.type+"."+a),s.push(d+n.type)),s.push(d+a),s.length>0)return se.t(s,{defaultValue:r||""})}function su(e){return(t,n)=>{let o=e(t),i=e(n);return o||i?o&&!i?1:!o&&i?-1:o.localeCompare(i):0}}function sf(e,t){let n=new so;return e.dispatchEvent(t),window.setTimeout(()=>{n.resolve(t.detail)}),n.promise}function sh(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class sp{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,i,r,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(i=this.parents)?void 0:i.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>sp._evalValuePredicate(e.name,t)))&&(!this.attributes||sp._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!sp._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?sp._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let i=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=i.startsWith(r);break;case"END":o=i.endsWith(r);break;case"CONTAINS":o=i.includes(r);break;default:o=i===r}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let i=null==(n=t.name)?void 0:n.value;if(!i)return!0;let r=null==(o=e.attributes)?void 0:o[i];if(!r)return!!t.negated;let a=!t.value||sp._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,i;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>sp._evalPredicate(e,t)),...(null!=(i=t.groups)?i:[]).map(t=>sp._evalGroup(e,t))];return!a.length||("OR"===r?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>sp._collectNames(e))]}}sp._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var sb=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let s_=n(4461);class sg{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),i=o.get("consoleName"),r=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),l=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=l;let c=sg._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(c.id=e.id),e.name&&(c.name=e.name),e.providers&&(c.providers=e.providers),e.apps&&(c.apps=e.apps)}catch(e){console.error("Failed to deserialize console registration")}let u=c.providers;for(let e of(c.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};c.providers[e]=t}let f=mr.getAppName();f.length>0&&0>c.apps.indexOf(f)&&c.apps.push(f),this._registration=c,i&&(c.name=i),r&&(c.version=r),a&&(c.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return sb(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initializing"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return sb(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialized before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return sb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialized before disabling providers"),Error("Console must be initialized before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let i=this._pendingProviderEnables.indexOf(e);return i>=0&&(this._pendingProviderEnables.splice(i,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return sb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialized before disabling providers"),Error("Console must be initialized before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return sb(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new so,i=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(i,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>sb(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return sb(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mr.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&sg._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return sb(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,i=this._pendingProviderPromises[n+o];i&&(window.clearTimeout(i[1]),delete this._pendingProviderPromises[n+o],i[0].resolve(t));let r=this._providerMessageListeners[n+o];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:s_.name,version:s_.version,platform:s_.os.toString(),apps:[],model:((s_.manufacturer?s_.manufacturer+" ":"")+(s_.product?s_.product:"")).trim()}}_initialiseProvider(e){return sb(this,void 0,void 0,function*(){let t;console.debug("Console: initializing provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialization failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function sF(e,t){return function(){return e.apply(t,arguments)}}let{toString:sv}=Object.prototype,{getPrototypeOf:sy}=Object,{iterator:sw,toStringTag:sk}=Symbol,sE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sx=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),sM=(e,t,n)=>e===Object.prototype||!n&&null===t,sL=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let i=sy(n);if(sM(n,i,n===e))break;if(sE(n,t))return!0;n=i}return!1},sA=(a=Object.create(null),e=>{let t=sv.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),sC=e=>(e=e.toLowerCase(),t=>sA(t)===e),sD=e=>t=>typeof t===e,{isArray:sT}=Array,sS=sD("undefined");function sO(e){return null!==e&&!sS(e)&&null!==e.constructor&&!sS(e.constructor)&&sR(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let sI=sC("ArrayBuffer"),sY=sD("string"),sR=sD("function"),sB=sD("number"),sP=e=>null!==e&&"object"==typeof e,sN=e=>{if(!sP(e))return!1;let t=sy(e);return(null===t||t===Object.prototype||null===sy(t))&&!sL(e,sk)&&!sL(e,sw)},sj=sC("Date"),sH=sC("File"),sz=sC("Blob"),sU=sC("FileList"),s$=sC("Set"),sW="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},sV=void 0!==sW.FormData?sW.FormData:void 0,sq=sC("URLSearchParams"),[sG,sK,sJ,sX]=["ReadableStream","Request","Response","Headers"].map(sC);function sQ(e,t,{allOwnKeys:n=!1}={}){let o,i;if(null!=e)if("object"!=typeof e&&(e=[e]),sT(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{let i;if(sO(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function sZ(e,t){let n;if(sO(e))return null;t=t.toLowerCase();let o=Object.keys(e),i=o.length;for(;i-- >0;)if(t===(n=o[i]).toLowerCase())return n;return null}let s0="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,s1=e=>!sS(e)&&e!==s0,s2=(s="u">typeof Uint8Array&&sy(Uint8Array),e=>s&&e instanceof s),s4=sC("HTMLFormElement"),{propertyIsEnumerable:s5}=Object.prototype,s6=sC("RegExp"),s3=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};sQ(n,(n,i)=>{let r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)},s8=sC("AsyncFunction"),s7=(c="function"==typeof setImmediate,m=sR(s0.postMessage),c?setImmediate:m?(u=`axios@${Math.random()}`,f=[],s0.addEventListener("message",({source:e,data:t})=>{e===s0&&t===u&&f.length&&f.shift()()},!1),e=>{f.push(e),s0.postMessage(u,"*")}):e=>setTimeout(e)),s9="u">typeof queueMicrotask?queueMicrotask.bind(s0):"u">typeof process&&process.nextTick||s7,de=e=>null!=e&&sR(e[sw]),dt={isArray:sT,isArrayBuffer:sI,isBuffer:sO,isFormData:e=>{if(!e)return!1;if(sV&&e instanceof sV)return!0;let t=sy(e);if(!t||t===Object.prototype||!sR(e.append))return!1;let n=sA(e);return"formdata"===n||"object"===n&&sR(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sI(e.buffer)},isString:sY,isNumber:sB,isBoolean:e=>!0===e||!1===e,isObject:sP,isPlainObject:sN,isEmptyObject:e=>{if(!sP(e)||sO(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:sG,isRequest:sK,isResponse:sJ,isHeaders:sX,isUndefined:sS,isDate:sj,isFile:sH,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:sz,isRegExp:s6,isFunction:sR,isStream:e=>sP(e)&&sR(e.pipe),isURLSearchParams:sq,isTypedArray:s2,isFileList:sU,forEach:sQ,merge:function e(...t){let{caseless:n,skipUndefined:o}=s1(this)&&this||{},i={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&sZ(i,r)||r,s=sE(i,a)?i[a]:void 0;sN(s)&&sN(t)?i[a]=e(s,t):sN(t)?i[a]=e({},t):sT(t)?i[a]=t.slice():o&&sS(t)||(i[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||sO(n)||(sQ(n,r),"object"!=typeof n||sT(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];s5.call(n,t)&&r(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:o}={})=>(sQ(t,(t,o)=>{n&&sR(t)?Object.defineProperty(e,o,{__proto__:null,value:sF(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let i,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)a=i[r],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&sy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sA,kindOfTest:sC,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(sT(e))return e;let t=e.length;if(!sB(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[sw]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:s4,hasOwnProperty:sE,hasOwnProp:sE,hasOwnInPrototypeChain:sL,getSafeProp:(e,t)=>null!=e&&sL(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=sy(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(sx(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),o=Object.create(null),i=[],r=e;for(;null!=r&&-1===i.indexOf(r);){i.push(r);let a=r===e?t:sy(r);if(sM(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!sx(t)&&(sE(o,t)||(n[t]=e[t],o[t]=!0));r=a}return n},reduceDescriptors:s3,freezeMethods:e=>{s3(e,(t,n)=>{if(sR(e)&&["arguments","caller","callee"].includes(n))return!1;if(sR(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(sT(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:sZ,global:s0,isContextDefined:s1,isSpecCompliantForm:function(e){return!!(e&&sR(e.append)&&"FormData"===e[sk]&&e[sw])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(sP(e)){if(t.has(e))return;if(sO(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),s$(e))for(let t of(o=[],e)){let e=n(t);sS(e)||o.push(e)}else o=sT(e)?[]:{},sQ(e,(e,t)=>{let i=n(e);sS(i)||(o[t]=i)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:s8,isThenable:e=>e&&(sP(e)||sR(e))&&sR(e.then)&&sR(e.catch),setImmediate:s7,asap:s9,isIterable:de,isSafeIterable:e=>null!=e&&sL(e,sw)&&de(e)},dn=dt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),di=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),dr=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function da(e,t){return dt.isArray(e)?e.map(e=>da(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ds(e){let t=Object.create(null);return dt.forEach(e.toJSON(),(e,n)=>{t[n]=da(e,dr)}),t}let dd=Symbol("internals");function dl(e){return e&&String(e).trim().toLowerCase()}function dc(e){return!1===e||null==e?e:dt.isArray(e)?e.map(dc):da(String(e),di)}let dm=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function du(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function df(e,t,n,o,i){if(dt.isFunction(o))return o.call(this,t,n);if(i&&(t=n),dt.isString(t)){if(dt.isString(o))return -1!==t.indexOf(o);if(dt.isRegExp(o))return o.test(t)}}class dh{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){let i=dl(t);if(!i)return;let r=dt.findKey(o,i);r&&void 0!==o[r]&&!0!==n&&(void 0!==n||!1===o[r])||(o[r||t]=dc(e))}let r=(e,t)=>dt.forEach(e,(e,n)=>i(e,n,t));if(dt.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let o;if(dt.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,i,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),o=e.substring(i+1).trim();let t=dt.hasOwnProp(s,n);!n||t&&dt.hasOwnProp(dn,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(dt.isObject(e)&&dt.isSafeIterable(e)){let n=Object.create(null),o,i;for(let t of e){if(!dt.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],dt.hasOwnProp(n,i)?(o=n[i],n[i]=dt.isArray(o)?[...o,t[1]]:[o,t[1]]):n[i]=t[1]}r(n,t)}else null!=e&&i(t,e,n)}return this}get(e,t){if(e=dl(e)){let n=dt.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(dt.isFunction(t))return t.call(this,e,n);if(dt.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dl(e)){let n=dt.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||df(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function i(e){if(e=dl(e)){let i=dt.findKey(n,e);i&&(!t||df(n,n[i],i,t))&&(delete n[i],o=!0)}}return dt.isArray(e)?e.forEach(i):i(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let i=t[n];(!e||df(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return dt.forEach(this,(o,i)=>{let r=dt.findKey(n,i);if(r){t[r]=dc(o),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=dc(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return dt.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&dt.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return dt.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),o=0,i=!1,r=!1;function a(e){let i=du(n.slice(o,e)),r=i.indexOf("=");if(r<1)return;let a=du(i.slice(0,r));if(!dm.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=du(i.slice(r+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let o=1;o<t;o++){let i=e.charCodeAt(o);if(34===i||92===i&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?r?r=!1:92===t?r=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(a(e),o=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[dd]=this[dd]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=dl(e);if(!t[o]){let i;i=dt.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{__proto__:null,value:function(n,o,i){return this[t].call(this,e,n,o,i)},configurable:!0})}),t[o]=!0}}return dt.isArray(e)?e.forEach(o):o(e),this}}dh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dt.reduceDescriptors(dh.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),dt.freezeMethods(dh);let dp="[REDACTED ****]";function db(e){try{return String(e)}catch(e){return""}}class d_ extends Error{static from(e,t,n,o,i,r){let a=e.message;!a&&dt.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?db(e.message):db(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new d_(a,t||e.code,n,o,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),r&&Object.assign(s,r),s}constructor(e,t,n,o,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,n,o=this.config,i=o&&dt.hasOwnProp(o,"redact")?o.redact:void 0,r=dt.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let i;if(null===o||"object"!=typeof o||dt.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof dh&&(o=o.toJSON()),t.push(o),dt.isArray(o))i=[],o.forEach((e,t)=>{let o=n(e);dt.isUndefined(o)||(i[t]=o)});else{if(!dt.isPlainObject(o)&&function(e){if(dt.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(dt.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,r]of(i=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?dp:n(r);dt.isUndefined(o)||(i[t]=o)}}return t.pop(),i}})(o)):dt.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}d_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",d_.ERR_BAD_OPTION="ERR_BAD_OPTION",d_.ECONNABORTED="ECONNABORTED",d_.ETIMEDOUT="ETIMEDOUT",d_.ECONNREFUSED="ECONNREFUSED",d_.ERR_NETWORK="ERR_NETWORK",d_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",d_.ERR_DEPRECATED="ERR_DEPRECATED",d_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",d_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",d_.ERR_CANCELED="ERR_CANCELED",d_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",d_.ERR_INVALID_URL="ERR_INVALID_URL",d_.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dg=d_;function dF(e){return dt.isPlainObject(e)||dt.isArray(e)}function dv(e){return dt.endsWith(e,"[]")?e.slice(0,-2):e}function dy(e,t,n){return e?e.concat(t).map(function(e,t){return e=dv(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let dw=dt.toFlatObject(dt,{},null,function(e){return/^is[A-Z]/.test(e)}),dk=function(e,t,n){if(!dt.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=dt.getSafeProp(n,e);return dt.isUndefined(o)?t:o},i=o("metaTokens",!0),r=o("visitor")||h,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,l=o("maxDepth",100),c=d&&dt.isSpecCompliantForm(t),m=[];if(!dt.isFunction(r))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(dt.isDate(e))return e.toISOString();if(dt.isBoolean(e))return e.toString();if(!c&&dt.isBlob(e))throw new dg("Blob is not supported. Use a Buffer instead.");if(dt.isArrayBuffer(e)||dt.isTypedArray(e)){if(c&&"function"==typeof d)return new d([e]);throw new dg("Blob is not supported. Use a Buffer instead.",dg.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new dg("Object is too deeply nested ("+e+" levels). Max depth: "+l,dg.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,o){let r=e;if(dt.isReactNative(t)&&dt.isReactNativeBlob(e))return t.append(dy(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(dt.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!dt.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(dt.isArray(e)&&(d=e,dt.isArray(d)&&!d.some(dF))||(dt.isFileList(e)||dt.endsWith(n,"[]"))&&(r=dt.toArray(e)))return n=dv(n),r.forEach(function(e,o){dt.isUndefined(e)||null===e||t.append(!0===s?dy([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!dF(e)||(t.append(dy(o,n,a),u(e)),!1)}let p=Object.assign(dw,{defaultVisitor:h,convertValue:u,isVisitable:dF});if(!dt.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!dt.isUndefined(n)){if(f(i),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),dt.forEach(n,function(n,a){!0===(!(dt.isUndefined(n)||null===n)&&r.call(t,n,dt.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a],i+1)}),m.pop()}}(e),t};function dE(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dx(e,t){this._pairs=[],e&&dk(e,this,t)}let dM=dx.prototype;function dL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dA(e,t,n){let o;if(!t)return e;e=e||"";let i=dt.isFunction(n)?{serialize:n}:n,r=dt.getSafeProp(i,"encode")||dL,a=dt.getSafeProp(i,"serialize");if(o=a?a(t,i):dt.isURLSearchParams(t)?t.toString():new dx(t,i).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}dM.append=function(e,t){this._pairs.push([e,t])},dM.toString=function(e){let t=e?t=>e.call(this,t,dE):dE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dC=Symbol("internals");function dD(e){return e?e.length:0}function dT(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function dS(e,t){let n=e.handlers,o=dD(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):o!==t.handlersLength&&(o?t.handlerEntries.forEach(function(e,o){n[e.index]!==e.handler&&t.handlerEntries.delete(o)}):t.handlerEntries.clear()),t.handlersLength=o}let dO=class{constructor(){this.handlers=[],this[dC]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let o={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},i=this[dC];null==this.handlers&&(this.handlers=[]),dS(this,i);let r=i.nextId++;return this.handlers.push(o),i.handlerEntries.set(r,{handler:o,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,r}eject(e){let t=this[dC];dS(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(dT(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],dS(this,this[dC]))}forEach(e){let t=this[dC];dS(this,t),t.iterationDepth++;try{dt.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(dS(this,t),dT(this.handlers),t.handlersLength=dD(this.handlers))}}},dI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dY="u">typeof URLSearchParams?URLSearchParams:dx,dR="u">typeof FormData?FormData:null,dB="u">typeof Blob?Blob:null,dP="u">typeof window&&"u">typeof document,dN="object"==typeof navigator&&navigator||void 0,dj=dP&&(!dN||0>["ReactNative","NativeScript","NS"].indexOf(dN.product)),dH="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dz=dP&&window.location.href||"http://localhost",dU={...tI,isBrowser:!0,classes:{URLSearchParams:dY,FormData:dR,Blob:dB},protocols:["http","https","file","blob","url","data"]};function d$(e){if(e>100)throw new dg("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dg.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dW=function(e){if(dt.isFormData(e)&&dt.isFunction(e.entries)){let t={};return dt.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){d$(i);let r=t[i++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=i>=t.length;return(r=!r&&dt.isArray(o)?o.length:r,s)?dt.hasOwnProp(o,r)?o[r]=dt.isArray(o[r])?o[r].concat(n):[o[r],n]:o[r]=n:(dt.hasOwnProp(o,r)&&dt.isObject(o[r])||(o[r]=[]),e(t,n,o[r],i)&&dt.isArray(o[r])&&(o[r]=function(e){let t,n,o={},i=Object.keys(e),r=i.length;for(t=0;t<r;t++)o[n=i[t]]=e[n];return o}(o[r]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)d$(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dV=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),dq=(e,t)=>null!=e&&dt.hasOwnProp(e,t)?e[t]:void 0,dG={transitional:dI,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",i=o.indexOf("application/json")>-1,r=dt.isObject(e);if(r&&dt.isHTMLForm(e)&&(e=new FormData(e)),dt.isFormData(e))return i?JSON.stringify(dW(e)):e;if(dt.isArrayBuffer(e)||dt.isBuffer(e)||dt.isStream(e)||dt.isFile(e)||dt.isBlob(e)||dt.isReadableStream(e))return e;if(dt.isArrayBufferView(e))return e.buffer;if(dt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dq(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return dk(e,new dU.classes.URLSearchParams,{visitor:function(e,t,n,o){return dU.isNode&&dt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=dt.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=dq(this,"env"),i=o&&o.FormData;return dk(n?{"files[]":e}:e,i&&new i,t)}}if(r||i){t.setContentType("application/json",!1);var a=e;if(dt.isString(a))try{return(0,JSON.parse)(a),dt.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dq(this,"transitional")||dG.transitional,n=t&&t.forcedJSONParsing,o=dq(this,"responseType"),i="json"===o;if(dt.isResponse(e)||dt.isReadableStream(e))return e;if(e&&dt.isString(e)&&(n&&!o||i)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dq(this,"parseReviver"))}catch(e){if(!n&&i){if("SyntaxError"===e.name)throw dg.from(e,dg.ERR_BAD_RESPONSE,this,null,dq(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dU.classes.FormData,Blob:dU.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dK(e,t){let n=this||dG,o=t||n,i=dh.from(o.headers),r=o.data;return dt.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function dJ(e){return!!(e&&e.__CANCEL__)}dt.forEach(dV,e=>{dG.headers[e]={}});let dX=class extends dg{constructor(e,t,n){super(null==e?"canceled":e,dg.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dQ(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new dg("Request failed with status code "+n.status,n.status>=400&&n.status<500?dg.ERR_BAD_REQUEST:dg.ERR_BAD_RESPONSE,n.config,n.request,n))}let dZ=/[\t\n\r]/g;function d0(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(dZ,"")}function d1(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let d2=function(e,t){let n,o=Array(e=e||10),i=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),l=i[a];n||(n=d),o[r]=s,i[r]=d;let c=a,m=0;for(;c!==r;)m+=o[c++],c%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=l&&d-l;return u?Math.round(1e3*m/u):void 0}},d4=function(e,t){let n,o,i=0,r=1e3/t,a=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=r?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},d5=(e,t,n=3)=>{let o=0,i=d2(50,250);return d4(n=>{if(!n||!dt.isNumber(n.loaded))return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(r,a):r),d=Math.max(0,s-o),l=i(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},d6=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},d3=(e,t=dt.asap)=>(...n)=>t(()=>e(...n)),d8=dU.hasStandardBrowserEnv?(d=new URL(dU.origin),l=dU.navigator&&/(msie|trident)/i.test(dU.navigator.userAgent),e=>(e=new URL(e,dU.origin),d.protocol===e.protocol&&d.host===e.host&&(l||d.port===e.port))):()=>!0,d7=dU.hasStandardBrowserEnv?{write(e,t,n,o,i,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];dt.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),dt.isString(o)&&s.push(`path=${o}`),dt.isString(i)&&s.push(`domain=${i}`),!0===r&&s.push("secure"),dt.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),i=o.indexOf("=");if(-1!==i&&o.slice(0,i)===e)try{return decodeURIComponent(o.slice(i+1))}catch(e){return o.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},d9=/^https?:(?!\/\/)/i;function le(e,t){if("string"==typeof e){let o=d0(e);if(d9.test(o)){var n;let e,i,r;throw new dg(`Invalid URL ${JSON.stringify((r=(-1===(i=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${dp}@`)).indexOf("#"))?e:e.slice(0,i)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${dp}`),-1===i?r:`${r}#${!(n=e.slice(i+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${dp}`)}`))}: missing "//" after protocol`,dg.ERR_INVALID_URL,t)}}}function lt(e,t,n,o){le(t,o);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===n)){le(e,o);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let ln=e=>e instanceof dh?{...e}:e;function lo(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function i(e,t,n,o){return dt.isPlainObject(e)&&dt.isPlainObject(t)?dt.merge.call({caseless:o},e,t):dt.isPlainObject(t)?dt.merge({},t):dt.isArray(t)?t.slice():t}function r(e,t,n,o){return dt.isUndefined(t)?dt.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function a(e,t){if(!dt.isUndefined(t))return i(void 0,t)}function s(e,t){return dt.isUndefined(t)?dt.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function d(n,o,r){return dt.hasOwnProp(t,r)?i(n,o):dt.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:d,headers:(e,t,n)=>r(ln(e),ln(t),n,!0)};return dt.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=dt.hasOwnProp(l,n)?l[n]:r,a=i(dt.hasOwnProp(e,n)?e[n]:void 0,dt.hasOwnProp(t,n)?t[n]:void 0,n);dt.isUndefined(a)&&i!==d||(o[n]=a)}),dt.hasOwnProp(t,"validateStatus")&&dt.isUndefined(t.validateStatus)&&!1===function(n){let o=dt.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!dt.isUndefined(o)){if(!dt.isPlainObject(o))return;else if(dt.hasOwnProp(o,n))return o[n]}let i=dt.hasOwnProp(e,"transitional")?e.transitional:void 0;if(dt.isPlainObject(i)&&dt.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(dt.hasOwnProp(e,"validateStatus")?o.validateStatus=i(void 0,e.validateStatus):delete o.validateStatus),o}let li=["content-type","content-length"],lr=function(e){let t=lo({},e),n=e=>dt.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),i=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),l=n("baseURL"),c=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=dh.from(s),t.url=dA(lt(l,m,c,t),n("params"),n("paramsSerializer")),d){let t=dt.getSafeProp(d,"username")||"",n=dt.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw dg.from(t,dg.ERR_BAD_OPTION_VALUE,e)}}if(dt.isFormData(o)){let e=dt.getSafeProp(o,"getHeaders");if(dU.hasStandardBrowserEnv||dU.hasStandardBrowserWebWorkerEnv||dt.isReactNative(o))s.setContentType(void 0);else{var u,f;dt.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{li.includes(e.toLowerCase())&&u.set(e,t)}))}}if(dU.hasStandardBrowserEnv&&(dt.isFunction(i)&&(i=i(t)),!0===i||null==i&&d8(t.url))){let e=r&&a&&d7.read(a);e&&s.set(r,e)}return t},la="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,i,r,a,s,d,l=lr(e),c=l.data,m=dh.from(l.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(o),l.signal&&l.signal.removeEventListener("abort",o)}let b=new XMLHttpRequest;function _(o){if(!b)return;if(0===b.status&&"file"!==(d1(d0(l.url))||d1(dU.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new dg("Request aborted",dg.ECONNABORTED,e,b)),p(),b=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!b)return;let i=dh.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());dQ(function(e){t(e),p()},function(e){n(e),p()},{data:u&&"text"!==u&&"json"!==u?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:i,config:e,request:b}),b=null}b.open(l.method.toUpperCase(),l.url,!0),b.timeout=l.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new dg("Request aborted",dg.ECONNABORTED,e,b)),p(),b=null)},b.onerror=function(t){let o=new dg(t&&t.message?t.message:"Network Error",dg.ERR_NETWORK,e,b);o.event=t||null,n(o),p(),b=null},b.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||dI;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new dg(t,o.clarifyTimeoutError?dg.ETIMEDOUT:dg.ECONNABORTED,e,b)),p(),b=null},void 0===c&&m.setContentType(null),"setRequestHeader"in b&&dt.forEach(ds(m),function(e,t){b.setRequestHeader(t,e)}),dt.isUndefined(l.withCredentials)||(b.withCredentials=!!l.withCredentials),u&&"json"!==u&&(b.responseType=l.responseType),h&&([r,s,d]=d5(h,!0),b.addEventListener("progress",r)),f&&b.upload&&([i,a]=d5(f),b.upload.addEventListener("progress",i),b.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(o=t=>{b&&(n(!t||t.type?new dX(null,e,b):t),b.abort(),p(),b=null)},l.cancelToken&&l.cancelToken.subscribe(o),l.signal&&(l.signal.aborted?o():l.signal.addEventListener("abort",o)));let g=d1(l.url);if(g&&!dU.protocols.includes(g)){n(new dg("Unsupported protocol "+g+":",dg.ERR_BAD_REQUEST,e)),p();return}b.send(c||null)})},ls=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n},ld=async function*(e,t){for await(let n of ll(e))yield*ls(n,t)},ll=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},lc=(e,t,n,o)=>{let i,r=ld(e,t),a=0,s=e=>{!i&&(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await r.next();if(t){s(),e.close();return}let i=o.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},lm=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,lu=(e,t,n)=>t+2<n&&lm(e.charCodeAt(t+1))&&lm(e.charCodeAt(t+2)),lf=e=>e<=57?e-48:(223&e)-55,lh=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,lp=e=>9===e||10===e||12===e||13===e||32===e,lb=e=>{var t;let n,o,i=e.length,r=0,a=0,s=!1;for(let t=0;t<i;t++){let n=e.charCodeAt(t);if(37===n&&lu(e,t,i)&&(n=16*lf(e.charCodeAt(t+1))+lf(e.charCodeAt(t+2)),t+=2),!lp(n)){if(61===n){a++;continue}if(!lh(n)||a>0){s=!0;continue}r++}}if(s||a>2||a>0&&(r+a)%4!=0||r%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=r)/4),3*n+(2==(o=t%4)?1:2*(3===o))},l_={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:lg}=dt,lF=e=>{if(!dt.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},lv=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ly=e=>{let t,n=void 0!==dt.global&&null!==dt.global?dt.global:globalThis,{ReadableStream:o,TextEncoder:i}=n,{fetch:r,Request:a,Response:s}=e=dt.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=r?lg(r):"function"==typeof fetch,l=lg(a),c=lg(s);if(!d)return!1;let m=d&&lg(o),u=d&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=l&&m&&lv(()=>{let e=!1,t=new a(dU.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),h=c&&m&&lv(()=>dt.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new dg(`Response type '${e}' is not supported`,dg.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(dt.isBlob(e))return e.size;if(dt.isSpecCompliantForm(e)){let t=new a(dU.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dt.isArrayBufferView(e)||dt.isArrayBuffer(e)?e.byteLength:(dt.isURLSearchParams(e)&&(e+=""),dt.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=dt.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:c,cancelToken:u,timeout:g,onDownloadProgress:F,onUploadProgress:v,responseType:y,headers:w,withCredentials:k="same-origin",fetchOptions:E,maxContentLength:x,maxBodyLength:M,maxRedirects:L}=lr(e),A=dt.isNumber(x)&&x>-1,C=dt.isNumber(M)&&M>-1,D=r||fetch;y=y?(y+"").toLowerCase():"text";let T=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,i=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof dg?t:new dX(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,i(new dg(`timeout of ${t}ms exceeded`,dg.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>dt.asap(a),s})([c,u&&u.toAbortSignal()],g),S=null,O=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),I=null,Y=()=>new dg("Request body larger than maxBodyLength limit",dg.ERR_BAD_REQUEST,e,S);try{var R,B;let r,c,u,g,P=(c="auth",dt.hasOwnProp(e,c)?e[c]:void 0);if(P){let e=dt.getSafeProp(P,"username")||"",t=dt.getSafeProp(P,"password")||"";r={username:e,password:t}}if(u=(R=n).indexOf("://"),g=R,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(n,dU.origin);if(!r&&(e.username||e.password)){let t=lF(e.username),n=lF(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")){let t;if(B=n,t="string"==typeof B?B.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let o=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(o))return t(i);let r=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&lu(i,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r})(-1===t?B:B.slice(0,t),lb)>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S)}if(C&&"get"!==o&&"head"!==o){let e=await b(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>M))throw Y()}let N=C&&(dt.isReadableStream(d)||dt.isStream(d)),j=(e,t,n)=>lc(e,65536,e=>{if(C&&e>M)throw I=Y();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(v||N)){if(t=null==t?await _(w,d):t,0!==t||N){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(dt.isFormData(d)&&(e=o.headers.get("content-type"))&&w.setContentType(e),o.body){let[e,n]=v&&d6(t,d5(d3(v)))||[];d=j(o.body,e,n)}}}else if(N&&!l&&m&&"get"!==o&&"head"!==o)d=j(d);else if(N&&l&&!f&&"get"!==o&&"head"!==o)throw new dg("Stream request bodies are not supported by the current fetch implementation",dg.ERR_NOT_SUPPORT,e,S);dt.isString(k)||(k=k?"include":"omit");let H=l&&"credentials"in a.prototype;if(dt.isFormData(d)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);let z=null==E?E:Object.assign(Object.create(null),E);z&&(delete z.body,delete z.headers,delete z.method,delete z.signal,delete z.duplex,delete z.credentials);let U=Object.assign(Object.create(null),z,{signal:T,method:o.toUpperCase(),headers:ds(w.normalize()),body:d,duplex:"half",credentials:H?k:void 0});l&&(dt.forEach(l_,(e,t)=>{void 0===U[t]&&(U[t]=e)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===L&&(U.redirect="manual",z&&(z.redirect="manual")),S=l&&new a(n,U);let $=await (l?D(S,z):D(n,U)),W=dh.from($.headers);if(A){let t=dt.toFiniteNumber(W.getContentLength());if(null!=t&&t>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S)}let V=h&&("stream"===y||"response"===y);if(h&&$.body&&(F||A||V&&O)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let n=dt.toFiniteNumber(W.getContentLength()),[o,i]=F&&d6(n,d5(d3(F),!0))||[];$=new s(lc($.body,65536,t=>{if(A&&t>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S);o&&o(t)},()=>{i&&i(),O&&O()}),t)}y=y||"text";let q=await p[dt.findKey(p,y)||"text"]($,e);if(A&&!h&&!V){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S)}return!V&&O&&O(),await new Promise((t,n)=>{dQ(t,n,{data:q,headers:dh.from($.headers),status:$.status,statusText:$.statusText,config:e,request:S})})}catch(t){if(O&&O(),T&&T.aborted&&T.reason instanceof dg){let n=T.reason;throw n.config=e,S&&(n.request=S),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw S&&!I.request&&(I.request=S),I;if(t instanceof dg)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dg("Network Error",dg.ERR_NETWORK,e,S,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dg.from(t,t&&t.code,e,S,t&&t.response)}}},lw=new Map,lk=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:i}=t,r=[o,i,n],a=r.length,s,d,l=lw;for(;a--;)s=r[a],void 0===(d=l.get(s))&&l.set(s,d=a?new Map:ly(t)),l=d;return d};lk();let lE={http:null,xhr:la,fetch:{get:lk}};dt.forEach(lE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let lx=e=>`- ${e}`,lM=e=>dt.isFunction(e)||null===e||!1===e,lL=function(e,t){let n,o,{length:i}=e=dt.isArray(e)?e:[e],r={};for(let a=0;a<i;a++){let i;if(o=n=e[a],!lM(n)&&void 0===(o=lE[(i=String(n)).toLowerCase()]))throw new dg(`Unknown adapter '${i}'`);if(o&&(dt.isFunction(o)||(o=o.get(t))))break;r[i||"#"+a]=o}if(!o){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new dg("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(lx).join("\n"):" "+lx(e[0]):"as no adapter specified"),dg.ERR_NOT_SUPPORT)}return o};function lA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dX(null,e)}function lC(e){let t=dt.toSafeFlatObject(e);return lA(t),t.headers=dh.from(dt.getSafeProp(t,"headers")),t.data=dK.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),lL(t.adapter||dG.adapter,t)(t).then(function(e){lA(t),t.response=e;try{e.data=dK.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=dh.from(e.headers),e},function(e){if(!dJ(e)&&(lA(t),e&&e.response)){t.response=e.response;try{e.response.data=dK.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=dh.from(e.response.headers)}return Promise.reject(e)})}let lD={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lD[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let lT={};lD.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new dg(o(i," has been removed"+(t?" in "+t:"")),dg.ERR_DEPRECATED);return t&&!lT[i]&&(lT[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},lD.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let lS=function(e,t,n){if("object"!=typeof e||null===e)throw new dg("options must be an object",dg.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),i=o.length;for(;i-- >0;){let r=o[i],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new dg("option "+r+" must be "+n,dg.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dg("Unknown option "+r,dg.ERR_BAD_OPTION)}};class lO{constructor(e){this.defaults=e||{},this.interceptors={request:new dO,response:new dO}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,o="";if("string"==typeof n){let e=n.indexOf("\n");o=-1===e?"":n.slice(e+1)}if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),i=-1===n?"":o.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:r,headers:a}=t=lo(this.defaults,t);void 0!==i&&lS(i,{silentJSONParsing:lD.transitional(lD.boolean),forcedJSONParsing:lD.transitional(lD.boolean),clarifyTimeoutError:lD.transitional(lD.boolean),legacyInterceptorReqResOrdering:lD.transitional(lD.boolean),advertiseZstdAcceptEncoding:lD.transitional(lD.boolean),validateStatusUndefinedResolves:lD.transitional(lD.boolean)},!1),null!=r&&(dt.isFunction(r)?t.paramsSerializer={serialize:r}:lS(r,{encode:lD.function,serialize:lD.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lS(t,{baseUrl:lD.spelling("baseURL"),withXsrfToken:lD.spelling("withXSRFToken")},!0),t.method=(dt.getSafeProp(t,"method")||dt.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&dt.merge(a.common,a[t.method]);a&&dt.forEach(dV.concat("common"),e=>{delete a[e]}),t.headers=dh.concat(s,a);let d=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let n=t.transitional||dI;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let m=0;if(!l){let e=[lC.bind(this),void 0];for(e.unshift(...d),e.push(...c),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let o=t.call(this,e);dt.isThenable(o)&&(n=Promise.resolve(o).then(()=>lC.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=lC.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=c.length;m<o;)n=n.then(c[m++],c[m++]);return n}getUri(e){return dA(lt((e=lo(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}dt.forEach(["delete","get","head","options"],function(e){lO.prototype[e]=function(t,n){return this.request(lo(n||{},{method:e,url:t,data:n&&dt.hasOwnProp(n,"data")?n.data:void 0}))}}),dt.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,i){return this.request(lo(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}lO.prototype[e]=t(),"query"!==e&&(lO.prototype[e+"Form"]=t(!0))});let lI=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,i){n.reason||(n.reason=new dX(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},lY={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lY).forEach(([e,t])=>{void 0===lY[t]&&(lY[t]=e)});let lR=function e(t){let n=new lO(t),o=sF(lO.prototype.request,n);return dt.extend(o,lO.prototype,n,{allOwnKeys:!0}),dt.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(lo(t,n))},o}(dG);lR.Axios=lO,lR.CanceledError=dX,lR.CancelToken=lI,lR.isCancel=dJ,lR.VERSION="1.20.0",lR.toFormData=dk,lR.AxiosError=dg,lR.Cancel=lR.CanceledError,lR.all=function(e){return Promise.all(e)},lR.spread=function(e){return function(t){return e.apply(null,t)}},lR.isAxiosError=function(e){return dt.isObject(e)&&!0===e.isAxiosError},lR.mergeConfig=lo,lR.AxiosHeaders=dh,lR.formToJSON=e=>dW(dt.isHTMLForm(e)?new FormData(e):e),lR.getAdapter=lL,lR.HttpStatusCode=lY,lR.default=lR;class lB{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:l6`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:l6`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:l6`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l6`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l6`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:l6`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:l6`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l6`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:l6`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l6`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:l6`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l6`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l6`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:l6`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l6`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:l6`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`rules/${e}`,data:t,options:n})}}class lP{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l6`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`asset/predicted/${e}/${t}`,data:n,options:o})}}class lN{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:l6`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:l6`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:l6`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:l6`syslog/event`,queryParams:e,options:t})}}class lj{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:l6`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l6`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:l6`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:l6`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:l6`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:l6`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:l6`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:l6`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:l6`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:l6`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l6`user/${e}/userRoles/${t}/${n}`,data:o,options:i})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:l6`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l6`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/${t}`,options:n})}}class lH{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:l6`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:l6`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:l6`flow/${e}`,options:t})}}class lz{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:l6`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:l6`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:l6`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:l6`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:l6`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:l6`service/${e}/${t}`,options:n})}}class lU{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:l6`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:l6`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:l6`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:l6`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:l6`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:l6`notification/${e}/delivered`,queryParams:t,options:n})}}class l${constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:l6`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:l6`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:l6`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:l6`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:l6`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:l6`map/upload`,queryParams:e,options:t})}}class lW{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l6`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l6`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:l6`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:l6`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:l6`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:l6`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:l6`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:l6`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:l6`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:l6`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l6`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:l6`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l6`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:l6`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:l6`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l6`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l6`asset/${e}/attribute/${t}/${n}`,data:o,options:i})}exportConfigurationTemplate(e,t,n){return this.httpClient.request({method:"GET",url:l6`asset/${e}/configurationTemplate`,queryParams:t,options:n})}previewConfigurationTemplateImport(e,t,n){return this.httpClient.request({method:"POST",url:l6`asset/${e}/configurationTemplate/import`,data:t,options:n})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:l6`asset/${e}/child`,queryParams:t,options:n})}}class lV{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:l6`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:l6`info`,options:e})}}class lq{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:l6`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:l6`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:l6`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:l6`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,i){return this.httpClient.request({method:"GET",url:l6`gateway/tunnel/${e}/${t}/${n}/${o}`,options:i})}}class lG{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:l6`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:l6`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:l6`apps/info`,options:e})}}class lK{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:l6`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:l6`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l6`asset/datapoint/${e}/${t}`,data:n,options:o})}}class lJ{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:l6`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:l6`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:l6`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:l6`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:l6`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:l6`model/valueDescriptors`,queryParams:e,options:t})}}class lX{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:l6`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:l6`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:l6`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:l6`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:l6`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:l6`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:l6`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:l6`alarm/${e}/assets`,queryParams:t,options:n})}}class lQ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l6`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:l6`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:l6`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l6`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:l6`dashboard/${e}/${t}`,options:n})}}class lZ{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:l6`console/register`,data:e,options:t})}}class l0{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l6`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:l6`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l6`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class l1{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:l6`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:l6`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:l6`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:l6`provisioning/${e}`,data:t,options:n})}}class l2{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:l6`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:l6`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:l6`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:l6`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:l6`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:l6`gateway/status/${e}`,options:t})}}class l4{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:l6`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:l6`configuration/manager`,data:e,options:t})}imageUpload(e,t,n){return this.httpClient.request({method:"POST",url:l6`configuration/manager/image`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:l6`configuration/manager/image/${e}`,options:t})}}class l5{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l6`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:l6`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:l6`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l6`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:l6`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l6`realm/${e}`,data:t,options:n})}}function l6(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class l3{constructor(e,t=lR.create()){this._rulesResource=new l7(e,t),this._assetPredictedDatapointResource=new l9(e,t),this._syslogResource=new ce(e,t),this._userResource=new ct(e,t),this._flowResource=new cn(e,t),this._externalServiceResource=new co(e,t),this._notificationResource=new ci(e,t),this._mapResource=new cr(e,t),this._assetResource=new ca(e,t),this._statusResource=new cs(e,t),this._gatewayServiceResource=new cd(e,t),this._appResource=new cl(e,t),this._assetDatapointResource=new cc(e,t),this._assetModelResource=new cm(e,t),this._alarmResource=new cu(e,t),this._dashboardResource=new cf(e,t),this._consoleResource=new ch(e,t),this._agentResource=new cp(e,t),this._provisioningResource=new cb(e,t),this._gatewayClientResource=new c_(e,t),this._configurationResource=new cg(e,t),this._realmResource=new cF(e,t),this._assetResource=new ca(e,t)}get RulesResource(){return this._rulesResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get SyslogResource(){return this._syslogResource}get UserResource(){return this._userResource}get FlowResource(){return this._flowResource}get ExternalServiceResource(){return this._externalServiceResource}get NotificationResource(){return this._notificationResource}get MapResource(){return this._mapResource}get AssetResource(){return this._assetResource}get StatusResource(){return this._statusResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AppResource(){return this._appResource}get AssetDatapointResource(){return this._assetDatapointResource}get AssetModelResource(){return this._assetModelResource}get AlarmResource(){return this._alarmResource}get DashboardResource(){return this._dashboardResource}get ConsoleResource(){return this._consoleResource}get AgentResource(){return this._agentResource}get ProvisioningResource(){return this._provisioningResource}get GatewayClientResource(){return this._gatewayClientResource}get ConfigurationResource(){return this._configurationResource}get RealmResource(){return this._realmResource}}class l8{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class l7 extends lB{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class l9 extends lP{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ce extends lN{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ct extends lj{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cn extends lH{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class co extends lz{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ci extends lU{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cr extends l${constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ca extends lW{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cs extends lV{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cd extends lq{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cl extends lG{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cc extends lK{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cm extends lJ{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cu extends lX{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cf extends lQ{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ch extends lZ{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cp extends l0{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cb extends l1{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class c_ extends l2{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cg extends l4{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cF extends l5{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}var cv=n(8183),cy=n.n(cv);lR.isAxiosError;let cw=new class{get api(){return this._client}constructor(){this._axiosInstance=lR.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cy().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new l3(e,this._axiosInstance)}};var ck=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ek=tA||(tA={})).DISCONNECTED="DISCONNECTED",ek.CONNECTED="CONNECTED",ek.CONNECTING="CONNECTING";let cE="SUBSCRIBED:",cx="UNAUTHORIZED:",cM="TRIGGERED:",cL="EVENT:";class cA{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=cC.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){sr(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tA.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tA.CONNECTING),this._connectingDeferred=new so,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=cC.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new so};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,t.cancelled?this._doUnsubscribe(e):this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;if(this._pendingSubscription=null,this._processNextSubscription(),t.cancelled)return void this._resolveCancelledSubscription(t);let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ck(this,void 0,void 0,function*(){var t;if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);let n=this._queuedSubscriptions.find(t=>t.eventSubscription.subscriptionId===e);if(n){sr(this._queuedSubscriptions,n),this._resolveCancelledSubscription(n);return}if((null==(t=this._pendingSubscription)?void 0:t.eventSubscription.subscriptionId)===e){this._pendingSubscription.cancelled=!0;return}if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ck(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,i="AssetEvent"+cA._subscriptionCounter++;if(!this._assetEventPromise){let e;mr.authenticated||(e={filterType:"asset",realm:mr.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))}).catch(e=>{throw this._assetEventPromise=void 0,e})}return this._assetEventCallbackMap.set(i,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===mr.displayRealm&&n(e)}),this._assetEventPromise.catch(()=>this._assetEventCallbackMap.delete(i)),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+i,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(i)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),i&&this.unsubscribe(i),t}return i})})}subscribeAttributeEvents(e,t,n){return ck(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],i=o?e.map(e=>e.id):e,r=o?e:void 0,a="AttributeEvent"+cA._subscriptionCounter++;if(!this._attributeEventPromise){let e;mr.authenticated||(e={filterType:"asset",realm:mr.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))}).catch(e=>{throw this._attributeEventPromise=void 0,e})}let s=t=>{let r=t.ref;o?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):i?i.find(e=>r.id===e)&&n(t):t.realm===mr.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.catch(()=>this._attributeEventCallbackMap.delete(a)),this._attributeEventPromise.then(()=>{try{if(t&&i){let e={messageID:"read-assets:"+i.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){this._subscriptionMap.forEach(e=>this._queuedSubscriptions.unshift(e)),this._subscriptionMap.clear(),this._processNextSubscription()}_onDisconnect(){if(this._status===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription){let e=this._pendingSubscription;this._pendingSubscription=null,e.cancelled?this._resolveCancelledSubscription(e):this._queuedSubscriptions.unshift(e)}this._onStatusChanged(tA.CONNECTING),this._scheduleReconnect()}_resolveCancelledSubscription(e){var t;null==(t=e.deferred)||t.resolve(e.eventSubscription.subscriptionId),e.deferred=null}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<cC.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(cC.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}cA.MIN_RECONNECT_DELAY=0,cA.MAX_RECONNECT_DELAY=3e4,cA._subscriptionCounter=0;class cC extends cA{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){this._discardWebSocket();let e=this._endpointUrl+"?Realm="+mr.config.realm;return this._connectDeferred=new so,(mr.authenticated?mr.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(cE)){let e=JSON.parse(t.substring(cE.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(cx)){let e=JSON.parse(t.substring(cx.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(cM)){let e=JSON.parse(t.substring(cM.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cL)){let e=JSON.parse(t.substring(cL.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_discardWebSocket(){this._webSocket&&(this._webSocket.onopen=null,this._webSocket.onerror=null,this._webSocket.onclose=null,this._webSocket.onmessage=null,this._webSocket.close(),this._webSocket=void 0)}_beforeDisconnect(){this._subscribeDeferred=null,this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new so,e.subscriptionId||(e.subscriptionId=cC._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=cL+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new so;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cL+JSON.stringify(e)),t.promise}}cC._subscriptionCounter=1;let cD=["__proto__","constructor","prototype"];function cT(e){return!("string"!=typeof e||0===e.length||e.length>128||cD.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:&=;\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cS(e){return!(!cT(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let cO={lng:cS,ns:function(e){return!(!cT(e)||e.indexOf("//")>-1)}};function cI(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cY(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cR=/\{\{(.+?)\}\}/g,cB=/^[/\\]{2}/;function cP(e,t){let n=!1,o=e.replace(cR,(e,o)=>{let i=o.trim();if(cD.indexOf(i)>-1)return e;let r=t[i];if(null==r)return e;let a=cO[i]||cS,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n||cB.test(o)&&!cB.test(e)?null:o}let cN="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?r=fetch:cN&&"function"==typeof cN.fetch&&(r=cN.fetch);let cj=cY()&&cN?cN.XMLHttpRequest:void 0,cH="function"==typeof ActiveXObject&&cN?cN.ActiveXObject:void 0,cz=["__proto__","constructor","prototype"],cU=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))cz.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},c$=(e,t,n,o)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(o){let r=o(e,t);if(r instanceof Promise)return void r.then(i).catch(n)}"function"==typeof fetch?fetch(e,t).then(i).catch(n):r(e,t).then(i).catch(n)},cW=(e,t,n,o)=>{if("function"==typeof n&&(o=n,n=void 0),o=o||(()=>{}),r&&0!==t.indexOf("file:")){var i=t,a=n,s=o;e.queryStringParams&&(i=cU(i,e.queryStringParams));let r={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(r["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(r["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:r,...e._omitFetchOptions?{}:d},c="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{c$(i,l,s,c)}catch(t){if(!d||0===Object.keys(d).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(d).forEach(e=>{delete l[e]}),c$(i,l,s,c),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(cY()||"function"==typeof ActiveXObject){var d=t,l=n,c=o;l&&"object"==typeof l&&(l=cU("",l).slice(1)),e.queryStringParams&&(d=cU(d,e.queryStringParams));try{let t=cj?new cj:new cH("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=e.customHeaders;if(n="function"==typeof n?n():n)for(let e of Object.keys(n))cz.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&c(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(l)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var cV=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:cW,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,i){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return i(null,{});let a=cP(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return i(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cI).join(", ")+"] namespaces=["+n.map(cI).join(", ")+"]"),!1);this.loadUrl(a,i,t,o)})}loadUrl(e,t,n,o){let i=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),r=cI(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,i,(e,i)=>{let a,s;if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+r+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+r+"; status code: "+i.status,!1);if(!i&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+cI(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof i.data?this.options.parse(i.data,n,o):i.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,i){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let l=cP(o,{lng:n,ns:t});if(null==l){a+=1,i&&a===e.length&&i(s,d);return}this.options.request(this.options,l,r,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof i&&i(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let i=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>i.indexOf(e)&&i.push(e)})};r(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),i.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(i,r)=>{i&&n.warn(`loading namespace ${o} for language ${t} failed`,i),!i&&r&&n.log(`loaded namespace ${o} for language ${t}`,r),e.loaded(`${t}|${o}`,i,r)})})})}};cV.type="backend";class cq extends rn{constructor(e){if(super(e),this.it=nb,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nb||null==e)return this._t=void 0,this.it=e;if(e===np)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cq.directiveName="unsafeHTML",cq.resultType=1,rt(cq);class cG extends cq{}cG.directiveName="unsafeSVG",cG.resultType=2;let cK=rt(cG),cJ={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var cX=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class cQ extends CustomEvent{constructor(){super(cQ.NAME,{bubbles:!0,composed:!0})}}cQ.NAME="or-iconset-added";let cZ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cQ)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nh``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),i=this._defaultIconSet;return(o&&(i=this.getIconSet(o)),n&&i)?i.getIconTemplate(n):nh``}},c0=class extends nR{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tH`
1608
+ `}_onOpenedChanged(e){this.opened=e.detail.value}}function ay(e,t,n){return e?t(e):n?.(e)}n$(av),n(4532),(h=eA||(eA={})).CREATE="CREATE",h.UPDATE="UPDATE",h.DELETE="DELETE",h.DELETE_FINISHED="DELETE_FINISHED",(p=eC||(eC={})).LOW="LOW",p.MEDIUM="MEDIUM",p.HIGH="HIGH",(b=eD||(eD={})).MANUAL="MANUAL",b.CLIENT="CLIENT",b.GLOBAL_RULESET="GLOBAL_RULESET",b.REALM_RULESET="REALM_RULESET",b.ASSET_RULESET="ASSET_RULESET",b.AGENT="AGENT",(_=eT||(eT={})).OPEN="OPEN",_.ACKNOWLEDGED="ACKNOWLEDGED",_.IN_PROGRESS="IN_PROGRESS",_.RESOLVED="RESOLVED",_.CLOSED="CLOSED",(g=eS||(eS={})).BOTTOM_LEFT="BOTTOM_LEFT",g.BOTTOM_RIGHT="BOTTOM_RIGHT",g.TOP_LEFT="TOP_LEFT",g.TOP_RIGHT="TOP_RIGHT",(F=eO||(eO={})).CREATE="CREATE",F.READ="READ",F.UPDATE="UPDATE",F.DELETE="DELETE",(v=eI||(eI={})).INVALID_JSON="INVALID_JSON",v.UNSUPPORTED_VERSION="UNSUPPORTED_VERSION",v.MISSING_REQUIRED_FIELD="MISSING_REQUIRED_FIELD",v.MALFORMED_ATTRIBUTE_ENTRY="MALFORMED_ATTRIBUTE_ENTRY",v.INVALID_META_ITEM="INVALID_META_ITEM",v.VALUE_VIOLATES_CONSTRAINTS="VALUE_VIOLATES_CONSTRAINTS",v.NO_IMPORTABLE_ATTRIBUTES="NO_IMPORTABLE_ATTRIBUTES",v.DRAFT_MISMATCH="DRAFT_MISMATCH",(y=eY||(eY={})).NONE="NONE",y.FORECAST="FORECAST",y.SETPOINT="SETPOINT",(w=eR||(eR={})).DISCONNECTED="DISCONNECTED",w.CONNECTING="CONNECTING",w.DISCONNECTING="DISCONNECTING",w.CONNECTED="CONNECTED",w.DISABLED="DISABLED",w.WAITING="WAITING",w.ERROR="ERROR",w.STOPPED="STOPPED",(k=eB||(eB={})).REQUEST_START="REQUEST_START",k.REQUEST_REPEATING="REQUEST_REPEATING",k.REQUEST_CANCEL="REQUEST_CANCEL",k.READY="READY",k.COMPLETED="COMPLETED",k.RUNNING="RUNNING",k.CANCELLED="CANCELLED",(E=eP||(eP={})).TOGGLE="TOGGLE",E.INCREMENT="INCREMENT",E.DECREMENT="DECREMENT",E.NEGATE="NEGATE",(x=eN||(eN={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",x.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",x.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",x.INVALID_VALUE="INVALID_VALUE",x.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",x.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",x.CANNOT_PROCESS="CANNOT_PROCESS",x.QUEUE_FULL="QUEUE_FULL",x.UNKNOWN="UNKNOWN",x.ASSET_ID_MISSING="ASSET_ID_MISSING",x.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(M=ej||(ej={})).PUBLIC="PUBLIC",M.SHARED="SHARED",M.PRIVATE="PRIVATE",(L=eH||(eH={})).OFF="OFF",L.ONE_MIN="ONE_MIN",L.FIVE_MIN="FIVE_MIN",L.QUARTER="QUARTER",L.ONE_HOUR="ONE_HOUR",(A=ez||(ez={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",A.KEEP_LAYOUT="KEEP_LAYOUT",A.REDIRECT="REDIRECT",A.BLOCK_DEVICE="BLOCK_DEVICE",(C=eU||(eU={})).CSV="CSV",C.CSV_CROSSTAB="CSV_CROSSTAB",C.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(D=e$||(e$={})).MINUTE="MINUTE",D.HOUR="HOUR",D.DAY="DAY",D.WEEK="WEEK",D.MONTH="MONTH",D.YEAR="YEAR",(T=eW||(eW={})).MIN="MIN",T.AVG="AVG",T.MAX="MAX",T.DIFFERENCE="DIFFERENCE",T.COUNT="COUNT",T.SUM="SUM",T.MODE="MODE",T.MEDIAN="MEDIAN",(S=eV||(eV={})).TERMINATING="TERMINATING",S.DISABLED="DISABLED",S.ALREADY_CONNECTED="ALREADY_CONNECTED",S.UNRECOGNISED="UNRECOGNISED",S.PERMANENT_ERROR="PERMANENT_ERROR",S.SYNC_ERROR="SYNC_ERROR",(O=eq||(eq={})).HTTPS="HTTPS",O.HTTP="HTTP",O.TCP="TCP",(I=eG||(eG={})).GET="GET",I.POST="POST",I.PUT="PUT",I.DELETE="DELETE",I.OPTIONS="OPTIONS",I.PATCH="PATCH",(Y=eK||(eK={})).KEYCLOAK="KEYCLOAK",Y.NONE="NONE",(R=eJ||(eJ={})).WEBSOCKET="WEBSOCKET",R.POLLING="POLLING",(B=eX||(eX={})).INTERNAL="INTERNAL",B.CLIENT="CLIENT",B.GLOBAL_RULESET="GLOBAL_RULESET",B.REALM_RULESET="REALM_RULESET",B.ASSET_RULESET="ASSET_RULESET",(P=eQ||(eQ={})).REALM="REALM",P.USER="USER",P.ASSET="ASSET",P.CUSTOM="CUSTOM",(N=eZ||(eZ={})).NORMAL="NORMAL",N.HIGH="HIGH",(j=e0||(e0={})).DEVICE="DEVICE",j.TOPIC="TOPIC",j.CONDITION="CONDITION",(H=e1||(e1={})).ALWAYS="ALWAYS",H.ONCE="ONCE",H.HOURLY="HOURLY",H.DAILY="DAILY",H.WEEKLY="WEEKLY",H.MONTHLY="MONTHLY",H.ANNUALLY="ANNUALLY",(z=e2||(e2={})).TITLE="TITLE",z.SOURCE="SOURCE",z.STATUS="STATUS",z.SENT_ON="SENT_ON",z.DELIVERED_ON="DELIVERED_ON",(U=e4||(e4={})).MESSAGE_INVALID="MESSAGE_INVALID",U.CERTIFICATE_INVALID="CERTIFICATE_INVALID",U.UNAUTHORIZED="UNAUTHORIZED",U.FORBIDDEN="FORBIDDEN",U.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",U.CONFIG_DISABLED="CONFIG_DISABLED",U.USER_DISABLED="USER_DISABLED",U.SERVER_ERROR="SERVER_ERROR",U.ASSET_ERROR="ASSET_ERROR",U.SERVER_BUSY="SERVER_BUSY",($=e5||(e5={})).PRIVATE="PRIVATE",$.PROTECTED="PROTECTED",$.PUBLIC="PUBLIC",(W=e6||(e6={})).EXACT="EXACT",W.BEGIN="BEGIN",W.END="END",W.CONTAINS="CONTAINS",(V=e3||(e3={})).EQUALS="EQUALS",V.GREATER_THAN="GREATER_THAN",V.GREATER_EQUALS="GREATER_EQUALS",V.LESS_THAN="LESS_THAN",V.LESS_EQUALS="LESS_EQUALS",V.BETWEEN="BETWEEN",(q=e8||(e8={})).CREATED_ON="CREATED_ON",q.NAME="NAME",q.ASSET_TYPE="ASSET_TYPE",q.PARENT_ID="PARENT_ID",q.REALM="REALM",(G=e7||(e7={})).RESTRICTED="RESTRICTED",G.LINKED="LINKED",G.REALM="REALM",(K=e9||(e9={})).AT_LEAST_ONE="AT_LEAST_ONE",K.ALL="ALL",K.NONE="NONE",(J=te||(te={})).AND="AND",J.OR="OR",(X=tt||(tt={})).CREATED_ON="CREATED_ON",X.FIRST_NAME="FIRST_NAME",X.LAST_NAME="LAST_NAME",X.USERNAME="USERNAME",X.EMAIL="EMAIL",(Q=tn||(tn={})).STOPPED="STOPPED",Q.RUNNING="RUNNING",Q.ERROR="ERROR",(Z=to||(to={})).JAVASCRIPT="JAVASCRIPT",Z.GROOVY="GROOVY",Z.JSON="JSON",Z.FLOW="FLOW",(ee=ti||(ti={})).READY="READY",ee.DEPLOYED="DEPLOYED",ee.COMPILATION_ERROR="COMPILATION_ERROR",ee.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",ee.EXECUTION_ERROR="EXECUTION_ERROR",ee.LOOP_ERROR="LOOP_ERROR",ee.DISABLED="DISABLED",ee.PAUSED="PAUSED",ee.EXPIRED="EXPIRED",ee.REMOVED="REMOVED",ee.EMPTY="EMPTY",(et=tr||(tr={})).SUNRISE="SUNRISE",et.SUNSET="SUNSET",et.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",et.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",et.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",et.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",et.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",et.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",et.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",et.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",et.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",et.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",et.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",et.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",et.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",et.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",et.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",et.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",et.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",et.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(en=ta||(ta={})).NUMBER="NUMBER",en.NUMBER_ARRAY="NUMBER_ARRAY",en.STRING="STRING",en.BOOLEAN="BOOLEAN",en.TRIGGER="TRIGGER",en.COLOR="COLOR",en.ANY="ANY",(eo=ts||(ts={})).NEW_LINE="NEW_LINE",eo.SPACER="SPACER",(ei=td||(td={})).INPUT="INPUT",ei.PROCESSOR="PROCESSOR",ei.OUTPUT="OUTPUT",ei.THEN="THEN",(er=tl||(tl={})).TEXT="TEXT",er.MULTILINE="MULTILINE",er.NUMBER="NUMBER",er.DROPDOWN="DROPDOWN",er.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",er.CHECKBOX="CHECKBOX",er.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",er.COLOR="COLOR",er.DATE="DATE",(ea=tc||(tc={})).ADD="ADD",ea.ADD_OR_REPLACE="ADD_OR_REPLACE",ea.REPLACE="REPLACE",ea.DELETE="DELETE",ea.CLEAR="CLEAR",(es=tm||(tm={})).PER_ASSET="PER_ASSET",es.GLOBAL="GLOBAL",(ed=tu||(tu={})).READ_ADMIN="read:admin",ed.READ_LOGS="read:logs",ed.READ_USERS="read:users",ed.READ_MAP="read:map",ed.READ_ASSETS="read:assets",ed.READ_RULES="read:rules",ed.READ_INSIGHTS="read:insights",ed.READ_ALARMS="read:alarms",ed.READ_NOTIFICATIONS="read:notifications",ed.READ_SERVICES="read:services",ed.READ_TUNNELS="read:tunnels",ed.WRITE_SERVICES="write:services",ed.WRITE_USER="write:user",ed.WRITE_ADMIN="write:admin",ed.WRITE_LOGS="write:logs",ed.WRITE_ASSETS="write:assets",ed.WRITE_ATTRIBUTES="write:attributes",ed.WRITE_RULES="write:rules",ed.WRITE_INSIGHTS="write:insights",ed.WRITE_ALARMS="write:alarms",ed.WRITE_NOTIFICATIONS="write:notifications",ed.WRITE_TUNNELS="write:tunnels",ed.READ="read",ed.WRITE="write",(el=tf||(tf={})).REGISTER="REGISTER",el.UPDATE="UPDATE",el.DEREGISTER="DEREGISTER",(ec=th||(th={})).AVAILABLE="AVAILABLE",ec.UNAVAILABLE="UNAVAILABLE",(em=tp||(tp={})).ASSET="ASSET",em.AGENT="AGENT",em.NOTIFICATION="NOTIFICATION",em.ALARM="ALARM",em.RULES="RULES",em.PROTOCOL="PROTOCOL",em.GATEWAY="GATEWAY",em.MODEL_AND_VALUES="MODEL_AND_VALUES",em.API="API",em.DATA="DATA",(eu=tb||(tb={})).INFO="INFO",eu.WARN="WARN",eu.ERROR="ERROR",(ef=t_||(t_={})).NUMERIC="numeric",ef.DIGIT_2="2-digit",ef.FULL="full",ef.LONG="long",ef.MEDIUM="medium",ef.SHORT="short",ef.NARROW="narrow",(eh=tg||(tg={})).SECONDLY="SECONDLY",eh.MINUTELY="MINUTELY",eh.HOURLY="HOURLY",eh.DAILY="DAILY",eh.WEEKLY="WEEKLY",eh.MONTHLY="MONTHLY",eh.YEARLY="YEARLY",(ep=tF||(tF={})).OMIT="OMIT",ep.BACKWARD="BACKWARD",ep.FORWARD="FORWARD",(eb=tv||(tv={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(e_=ty||(ty={})).SU="SU",e_.MO="MO",e_.TU="TU",e_.WE="WE",e_.TH="TH",e_.FR="FR",e_.SA="SA",(eg=tw||(tw={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eg.MAILAGENT="MailAgent",eg.UDPAGENT="UDPAgent",eg.ROOMASSET="RoomAsset",eg.CITYASSET="CityAsset",eg.VENTILATIONASSET="VentilationAsset",eg.TRADFRILIGHTASSET="TradfriLightAsset",eg.CONSOLEASSET="ConsoleAsset",eg.PRESENCESENSORASSET="PresenceSensorAsset",eg.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eg.LIGHTASSET="LightAsset",eg.KNXAGENT="KNXAgent",eg.THETHINGSSTACKAGENT="TheThingsStackAgent",eg.PLUGASSET="PlugAsset",eg.CHIRPSTACKAGENT="ChirpStackAgent",eg.WEATHERASSET="WeatherAsset",eg.THINGASSET="ThingAsset",eg.WEBSOCKETAGENT="WebsocketAgent",eg.TCPAGENT="TCPAgent",eg.GATEWAYASSET="GatewayAsset",eg.SERIALAGENT="SerialAgent",eg.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eg.PARKINGASSET="ParkingAsset",eg.TRADFRIPLUGASSET="TradfriPlugAsset",eg.SIMULATORAGENT="SimulatorAgent",eg.SNMPAGENT="SNMPAgent",eg.GROUPASSET="GroupAsset",eg.BUILDINGASSET="BuildingAsset",eg.MODBUSSERIALAGENT="ModbusSerialAgent",eg.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eg.MQTTAGENT="MQTTAgent",eg.VELBUSTCPAGENT="VelbusTCPAgent",eg.ARTNETLIGHTASSET="ArtnetLightAsset",eg.VELBUSSERIALAGENT="VelbusSerialAgent",eg.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eg.MICROPHONEASSET="MicrophoneAsset",eg.MODBUSTCPAGENT="ModbusTcpAgent",eg.ZWAVEAGENT="ZWaveAgent",eg.HTTPAGENT="HTTPAgent",eg.DOORASSET="DoorAsset",eg.THERMOSTATASSET="ThermostatAsset",eg.SHIPASSET="ShipAsset",(eF=tk||(tk={})).COLOURRGB="colourRGB",eF.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eF.PRICEHOURLY="priceHourly",eF.MQTTPORT="MQTTPort",eF.PINGDISABLED="pingDisabled",eF.FLOW="flow",eF.CHILDASSETTYPE="childAssetType",eF.LASTACCESS="lastAccess",eF.POSITION="position",eF.NETWORKKEY="networkKey",eF.UNIVERSE="universe",eF.ROUTINGMODE="routingMode",eF.MSSINUMBER="MSSINumber",eF.LASTWILLRETAIN="lastWillRetain",eF.LASTWILLTOPIC="lastWillTopic",eF.SERIALBAUDRATE="serialBaudrate",eF.SUBSCRIBEQOS="subscribeQos",eF.LEDCOUNT="lEDCount",eF.LOCKED="locked",eF.CLOUDCOVERAGE="cloudCoverage",eF.BASEURL="baseURL",eF.PROTOCOL="protocol",eF.REQUIREDVALUES="requiredValues",eF.REGION="region",eF.CONSOLEPLATFORM="consolePlatform",eF.GATEWAYSTATUS="gatewayStatus",eF.NO2LEVEL="NO2Level",eF.ATMOSPHERICPRESSURE="atmosphericPressure",eF.SERIALPORT="serialPort",eF.APPLICATIONID="applicationId",eF.TAGS="tags",eF.UNLOCK="unlock",eF.CHECKINTERVALSECONDS="checkIntervalSeconds",eF.LOCATION="location",eF.CLIENTSECRET="clientSecret",eF.WINDDIRECTION="windDirection",eF.WINDSPEED="windSpeed",eF.PARTICLESPM10="particlesPM10",eF.APPLICATIONKEY="applicationKey",eF.LENGTH="length",eF.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eF.USERNAMEPASSWORD="usernamePassword",eF.WATERLEVEL="waterLevel",eF.CONNECTHEADERS="connectHeaders",eF.CONSOLENAME="consoleName",eF.WEBSOCKETQUERY="websocketQuery",eF.PREFERHTML="preferHTML",eF.PARITY="parity",eF.COOLING="cooling",eF.POLLINGMILLIS="pollingMillis",eF.SOILTEMPERATURE="soilTemperature",eF.SUNIRRADIANCE="sunIrradiance",eF.MESSAGEMAXLENGTH="messageMaxLength",eF.WINDGUSTSPEED="windGustSpeed",eF.LIGHTID="lightId",eF.PROXYADDRESS="proxyAddress",eF.REQUESTQUERYPARAMETERS="requestQueryParameters",eF.MQTTHOST="MQTTHost",eF.SECUREGRPC="secureGRPC",eF.MODEL="model",eF.STREET="street",eF.MANUFACTURER="manufacturer",eF.DELETEPROCESSEDMAIL="deleteProcessedMail",eF.RESUMESESSION="resumeSession",eF.ONOFF="onOff",eF.APIKEY="ApiKey",eF.CITY="city",eF.PRESENCE="presence",eF.SPACESOCCUPIED="spacesOccupied",eF.STARTTLS="startTLS",eF.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eF.WEBSOCKETPATH="websocketPath",eF.AGENTSTATUS="agentStatus",eF.PRICEDAILY="priceDaily",eF.COUNTGROWTHMINUTE="countGrowthMinute",eF.IMONUMBER="IMONumber",eF.ATTRIBUTION="Attribution",eF.TENANTID="tenantId",eF.REQUESTHEADERS="requestHeaders",eF.HOST="host",eF.COUNTOUTMINUTE="countOutMinute",eF.MESSAGECHARSET="messageCharset",eF.CERTIFICATEALIAS="certificateAlias",eF.EMAIL="email",eF.BINDPORT="bindPort",eF.CONSOLEVERSION="consoleVersion",eF.PARTICLESPM1="particlesPM1",eF.MTU="mtu",eF.SPEED="speed",eF.MESSAGESTRIPDELIMITER="messageStripDelimiter",eF.AREA="area",eF.COUNTRY="country",eF.SHIPTYPE="shipType",eF.CONNECTSUBSCRIPTIONS="connectSubscriptions",eF.RELATIVEHUMIDITY="relativeHumidity",eF.SOURCEADDRESS="sourceAddress",eF.RAINFALL="rainfall",eF.OAUTHGRANT="oAuthGrant",eF.OZONELEVEL="ozoneLevel",eF.SEQUENCENUMBER="sequenceNumber",eF.COUNTINMINUTE="countInMinute",eF.PORT="port",eF.SUNALTITUDE="sunAltitude",eF.COUNTOUT="countOut",eF.ROOMNUMBER="roomNumber",eF.TUNNELINGSUPPORTED="tunnelingSupported",eF.ENINUMBER="ENINumber",eF.PARTICLESPM2_5="particlesPM2_5",eF.AGENTDISABLED="agentDisabled",eF.DISABLED="disabled",eF.COUNTIN="countIn",eF.MESSAGESOURCEADDRESS="messageSourceAddress",eF.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eF.TIMEINJECTIONINTERVAL="timeInjectionInterval",eF.TEMPERATURESETPOINT="temperatureSetpoint",eF.CONSOLEPROVIDERS="consoleProviders",eF.COUNTTOTAL="countTotal",eF.SPACESBUFFER="spacesBuffer",eF.DEVICECONFIG="deviceConfig",eF.SPACESTOTAL="spacesTotal",eF.BINDHOST="bindHost",eF.FANSPEED="fanSpeed",eF.MESSAGECONVERTBINARY="messageConvertBinary",eF.NOTES="notes",eF.MAILFOLDERNAME="mailFolderName",eF.MESSAGEDELIMITERS="messageDelimiters",eF.TEMPERATURE="temperature",eF.SUNZENITH="sunZenith",eF.SNMPVERSIONVALUE="SNMPVersionValue",eF.BRIGHTNESS="brightness",eF.POSTALCODE="postalCode",eF.SPACESOPEN="spacesOpen",eF.HUMIDITY="humidity",eF.SOUNDLEVEL="soundLevel",eF.SECUREMODE="secureMode",eF.DIRECTION="direction",eF.STOPBITS="stopbits",eF.UVINDEX="uVIndex",eF.CONNECTURL="connectURL",eF.CLIENTID="clientId",eF.NATMODE="NATMode",eF.UPDATEONWRITE="updateOnWrite",eF.LASTWILLPAYLOAD="lastWillPayload",eF.GROUPID="groupId",eF.FOLLOWREDIRECTS="followRedirects",eF.SUNAZIMUTH="sunAzimuth",eF.MESSAGECONVERTHEX="messageConvertHex",eF.WEBSOCKETMODE="websocketMode",eF.COLOURTEMPERATURE="colourTemperature",eF.PUBLISHQOS="publishQos",eF.DATABITS="dataBits",(ev=tE||(tE={})).FORMAT="format",ev.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",ev.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",ev.SECRET="secret",ev.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",ev.ATTRIBUTELINKS="attributeLinks",ev.RULERESETIMMEDIATE="ruleResetImmediate",ev.RULESTATE="ruleState",ev.AGENTLINKCONFIG="agentLinkConfig",ev.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",ev.FORECAST="forecast",ev.STOREDATAPOINTS="storeDataPoints",ev.LABEL="label",ev.CONSTRAINTS="constraints",ev.UNITS="units",ev.USERCONNECTED="userConnected",ev.SHOWONDASHBOARD="showOnDashboard",ev.READONLY="readOnly",ev.MULTILINE="multiline",ev.ACCESSPUBLICWRITE="accessPublicWrite",ev.MOMENTARY="momentary",ev.AGENTLINK="agentLink",ev.ACCESSRESTRICTEDREAD="accessRestrictedRead",ev.ACCESSPUBLICREAD="accessPublicRead",(ey=tx||(tx={})).ASSETQUERY="assetQuery",ey.WSURL="WS_URL",ey.COLOURRGB="colourRGB",ey.VALUEFORMAT="valueFormat",ey.TEXT="text",ey.BYTE="byte",ey.USERNAMEANDPASSWORD="usernameAndPassword",ey.HTTPURL="HTTP_URL",ey.ATTRIBUTELINK="attributeLink",ey.ASSETID="assetID",ey.NUMBERMAP="numberMap",ey.HTTPMETHOD="HTTPMethod",ey.ATTRIBUTESTATE="attributeState",ey.POSITIVENUMBER="positiveNumber",ey.POSITIVEINTEGER="positiveInteger",ey.EXECUTIONSTATUS="executionStatus",ey.BIGINTEGER="bigInteger",ey.VALUEDESCRIPTOR="valueDescriptor",ey.PERIODDURATIONISO8601="periodDurationISO8601",ey.LONG="long",ey.DATEANDTIME="dateAndTime",ey.BOOLEANMAP="booleanMap",ey.MQTTQOS="MQTTQos",ey.NEGATIVEINTEGER="negativeInteger",ey.TCPIPPORTNUMBER="TCP_IPPortNumber",ey.GEOJSONPOINT="GEO_JSONPoint",ey.SNMPVERSION="SNMPVersion",ey.ASSETTYPE="assetType",ey.JSONOBJECT="JSONObject",ey.INTEGERMAP="integerMap",ey.BIGNUMBER="bigNumber",ey.IPADDRESS="IPAddress",ey.EMAIL="email",ey.TIMESTAMP="timestamp",ey.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",ey.ATTRIBUTEREFERENCE="attributeReference",ey.UUID="UUID",ey.INTEGER="integer",ey.OAUTHGRANT="oAuthGrant",ey.NUMBER="number",ey.DEVICECONFIGMAP="DeviceConfigMap",ey.TEXTMAP="textMap",ey.WEBSOCKETSUBSCRIPTION="websocketSubscription",ey.BOOLEAN="boolean",ey.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",ey.FORECASTCONFIGURATION="forecastConfiguration",ey.TIMEDURATIONISO8601="timeDurationISO8601",ey.TIMESTAMPISO8601="timestampISO8601",ey.CONSOLEPROVIDERS="consoleProviders",ey.MULTIVALUEDTEXTMAP="multivaluedTextMap",ey.NEGATIVENUMBER="negativeNumber",ey.PARITYBIT="Paritybit",ey.JSON="JSON",ey.CRONEXPRESSION="CRONExpression",ey.INTEGERBYTE="integerByte",ey.AGENTLINK="agentLink",ey.DIRECTION="direction",ey.HOSTORIPADDRESS="hostOrIPAddress",ey.STOPBITS="Stopbits",ey.CALENDAREVENT="calendarEvent",ey.CONNECTIONSTATUS="connectionStatus",ey.VALUECONSTRAINT="valueConstraint",(ew=tM||(tM={})).MONTH="month",ew.MILE_SCANDINAVIAN="mile_scandinavian",ew.VAR="var",ew.OUNCE="ounce",ew.HECTARE="hectare",ew.YARD="yard",ew.YEAR="year",ew.GIGA="giga",ew.JOULE="joule",ew.VOLT="volt",ew.HERTZ="hertz",ew.MILE="mile",ew.DEGREE="degree",ew.KILO="kilo",ew.BTU="btu",ew.TERA="tera",ew.FOOT="foot",ew.MEGA="mega",ew.KELVIN="kelvin",ew.CARBON="carbon",ew.DECIBEL_ATTENUATED="decibel_attenuated",ew.INCH="inch",ew.SQUARED="squared",ew.PERCENTAGE="percentage",ew.IN_HG="inch_mercury",ew.CENTI="centi",ew.GRAM="gram",ew.CUBED="cubed",ew.DAY="day",ew.RADIAN="radian",ew.OHM="ohm",ew.MINUTE="minute",ew.PART_PER_MILLION="ppm",ew.AMP="amp",ew.MASS_POUND="pound",ew.KNOT="knot",ew.METRE="metre",ew.LITRE="litre",ew.FLUID_OUNCE="fluid_ounce",ew.HOUR="hour",ew.ACRE="acre",ew.CELSIUS="celsius",ew.RPM="rpm",ew.PASCAL="pascal",ew.DECIBEL="decibel",ew.LUMEN="lumen",ew.WEEK="week",ew.FAHRENHEIT="fahrenheit",ew.WATT="watt",ew.GALLON="gallon",ew.LUX="lux",ew.MILLI="milli",ew.BAR="bar",ew.HECTO="hecto",ew.PEAK="peak",ew.SECOND="second",ew.MICRO="micro",ew.PER="per",ew.STONE="stone",tL||(tL={});class aw{static getAssetDescriptors(){return aw._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=aw.getValueDescriptor(t)),n=t.jsonType?t:aw.getValueDescriptor(t.type)),!n&&e&&(n=aw.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,i;if(t&&"string"!=typeof t)o=t;else{let i=this.getAssetTypeInfo(e||"ThingAsset");if(!i)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,i)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(i=this.getValueDescriptor(o.type)),[o,i]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}aw._assetTypeInfos=[],aw._metaItemDescriptors=[],aw._valueDescriptors=[];let ak=e=>"string"==typeof e,aE=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},ax=e=>null==e?"":String(e),aM=e=>e?.callbackApi??e?.constructor?.callbackApi,aL=/###/g,aA=e=>e&&e.includes("###")?e.replace(aL,"."):e,aC=e=>!e||ak(e),aD=(e,t,n)=>{let o=ak(t)?t.split("."):t,i=0;for(;i<o.length-1;){if(aC(e))return{};let t=aA(o[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return aC(e)?{}:{obj:e,k:aA(o[i])}},aT=(e,t,n)=>{let{obj:o,k:i}=aD(e,t,Object);if(void 0!==o||1===t.length){o[i]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=aD(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=aD(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${r}`]&&(s.obj=void 0);s.obj[`${s.k}.${r}`]=n},aS=(e,t)=>{let{obj:n,k:o}=aD(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},aO=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?ak(e[o])||e[o]instanceof String||ak(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):aO(e[o],t[o],n):e[o]=t[o]);return e},aI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},aY=e=>ak(e)?e.replace(/[&<>"'\/]/g,e=>aI[e]):e,aR=[" ",",","?","!",";"],aB=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),aP=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let o=t.split(n),i=e;for(let e=0;e<o.length;){let t;if(!i||"object"!=typeof i)return;let r="";for(let a=e;a<o.length;++a)if(a!==e&&(r+=n),r+=o[a],"function"!=typeof(t=i[r])&&"__proto__"!==r||Object.prototype.hasOwnProperty.call(i,r)||(t=void 0),void 0!==t){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}i=t}return i},aN=e=>e?.replace(/_/g,"-"),aj={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var aH=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||aj,this.options=t,this.debug=t.debug,this.seen=new Set}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}once(e,t,...n){return!this.debug||this.seen.has(e)||this.seen.size>=1e3?null:(this.seen.add(e),this[t](...n))}forward(e,t,n,o){return o&&!this.debug?null:(e=e.map(e=>ak(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),ak(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class az{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){("string"==typeof e?e.split(" "):[e]).forEach(e=>{if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}})}once(e,t){let n=(...o)=>{t(...o),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let o=0;o<n;o++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let i=0;i<o;i++)n(e,...t)})}}let aU=new WeakSet;class a$ extends az{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.logger=aH.create("resourceStore"),void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}deprecateDottedLng(e){this.logger.once(e,"deprecate",`${e}: a dotted language ('en.translation.key') that carries the namespace and key is removed in v27; pass language, namespace and key as separate arguments`)}getResource(e,t,n,o={}){let i,r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?(this.deprecateDottedLng("getResource"),i=e.split(".")):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):ak(n)&&r?i.push(...n.split(r)):i.push(n)));let s=aS(this.data,i);return(null==s&&!t&&!n&&e.includes(".")&&(e=i[0],t=i[1],n=i.slice(2).join(".")),null==s&&a&&ak(n))?aP(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,o,i={silent:!1}){let r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(this.deprecateDottedLng("addResource"),a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),aT(this.data,a,o),i.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(ak(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,i,r={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(this.deprecateDottedLng("addResourceBundle"),a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let s=aS(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?aO(s,n,i):s={...s,...n},aT(this.data,a,s),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>{let n=t[e];return!!aU.has(n)||!!n&&0!==Object.keys(n).length&&("object"==typeof n&&aU.add(n),!0)})}toJSON(){return this.data}}var aW={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,i)??t}),t}};let aV=Symbol("i18next/PATH_KEY");function aq(e,t){let n,o,i,{[aV]:r}=e((o=[],(i=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===aV)?o:(o.push(t),(n=Proxy.revocable(e,i)).proxy),Proxy.revocable(Object.create(null),i).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(r.length>1&&s){let e=t?.ns,n=d?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(d?n:n.length>1?n.slice(1):[]).includes(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let aG=e=>!ak(e)&&"boolean"!=typeof e&&"number"!=typeof e;class aK extends az{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils","ownPostProcessors"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=aH.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let o=this.resolve(e,n);if(o?.res===void 0)return!1;let i=aG(o.res);return!1!==n.returnObjects||!i}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],r=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=aR.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let i=aB.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),r=!i.test(e);if(!r){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(r=!0)}return r})(e,n,o);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ak(i)?[i]:i};let r=e.split(n);(n!==o||n===o&&this.options.ns.includes(r[0]))&&(i=r.shift()),e=r.join(o)}return{key:e,namespaces:ak(i)?[i]:i}}translate(e,t,n){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=aq(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?aq(e,{...this.options,...o}):String(e));let i=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],o),d=s[s.length-1],l=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===l&&(l=":");let c=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return m?i?{res:`${d}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${l}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,h=u?.usedKey||a,p=u?.exactUsedKey||a,b=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,g=void 0!==o.count&&!ak(o.count),F=aK.hasDefaultValue(o),v=g?this.pluralResolver.getSuffix(c,o.count,o):"",y=o.ordinal&&g?this.pluralResolver.getSuffix(c,o.count,{ordinal:!1}):"",w=g&&!o.ordinal&&0===o.count,k=w&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${v}`]||o[`defaultValue${y}`]||o.defaultValue,E=f;_&&!f&&F&&(E=k);let x=aG(E),M=Object.prototype.toString.apply(E);if(_&&E&&x&&!["[object Number]","[object Function]","[object RegExp]"].includes(M)&&!(ak(b)&&Array.isArray(E))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||(this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.logger.once("returnedObject","deprecate","accessing an object without returnObjects returns a sentence about it today; from v27 t() returns the key, as for a missing key (returnedObjectHandler can keep today's text)"));let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(r){let e=Array.isArray(E),t=e?[]:{},n=e?p:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let i=`${n}${r}${e}`;F&&!f?t[e]=this.translate(i,{...o,defaultValue:aG(k)?k[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(i,{...o,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=E[e])}f=t}}else if(_&&ak(b)&&Array.isArray(f))(f=f.join(b))&&(f=this.extendTranslation(f,e,o,u,n));else{let t=!1,i=!1;!this.isValidLookup(f)&&F&&(t=!0,f=k),this.isValidLookup(f)||(i=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,m=F&&k!==f&&this.options.updateMissing;if(i||t||m){if(this.logger.log(m?"updateKey":"missingKey",c,d,g&&!m?`${a}${this.pluralResolver.getSuffix(c,o.count,o)}`:a,m?k:f),r){let e=this.resolve(a,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);let n=(e,t,n)=>{let i=F&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,i,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,i,m,o,void 0,this.utils?.hasLoadedNamespace),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&g?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,o);w&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,o[`defaultValue${t}`]||k)})}):n(e,a,k))}f=this.extendTranslation(f,e,o,u,n),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${l}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${l}${a}`:a,t?f:void 0,o))}return i?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){let r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=ak(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let s=n.replace&&!ak(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||o.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let r=n.postProcess||this.options.postProcess,a=ak(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(a.forEach(e=>{this.logger.debug&&aW.processors[e]&&this.ownPostProcessors&&!this.ownPostProcessors.has(e)&&this.logger.once(e,"deprecate",`postProcess: '${e}' was registered with use() on another i18next instance; from v27 post-processors are per instance, so call use() with it on this instance too`)}),e=aW.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,o,i,r,a;return ak(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?aq(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),d=s.key;o=d;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let c=void 0!==t.count&&!ak(t.count),m=c&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(ak(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(o=>{let a;if(this.isValidLookup(n))return;r=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(i)&&s.push(d+e.replace(i,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),c&&(t.ordinal&&e.startsWith(i)&&s.push(o+e.replace(i,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(i=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:r,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(e={}){let t=e.replace&&!ak(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class aJ{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=aH.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=aN(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=aN(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ak(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}let t=this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e;return this.logger.debug&&ak(e)&&this.deprecateBareCode(e,t),t}deprecateBareCode(e,t){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(e){return}this.options.lowerCaseLng&&(n=n.toLowerCase()),n!==t&&this.logger.once(e,"deprecate",`language code '${e}' is used as '${t}'; i18next v27 canonicalizes it to '${n}', use '${n}' in lng, fallbackLng, supportedLngs and the resources`)}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>e===o||(!!e.includes("-")||!!o.includes("-"))&&!(!e.includes("-")||o.includes("-"))&&e.slice(0,e.indexOf("-"))===o)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ak(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,o=Array.isArray(n)?n.join("|"):n;o!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=o);let i=void 0===t||!1===t||ak(t),r=void 0===t&&"function"==typeof this.options.fallbackLng,a=ak(e)&&i&&!r,s=null;if(a){let n;n=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,s=`${e.length}:${e}|${n}`}if(null!==s){let e=this.resolveHierarchyCache[s];if(void 0!==e)return e.slice()}let d=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),l=[],c=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return(ak(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&c(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&c(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&c(this.getLanguagePartFromCode(e))):ak(e)&&c(this.formatLanguageCode(e)),d.forEach(e=>{let t=this.formatLanguageCode(e);l.includes(t)||c(t)}),null!==s)?(this.resolveHierarchyCache[s]=l,l.slice()):l}}let aX={zero:0,one:1,two:2,few:3,many:4,other:5},aQ={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class aZ{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=aH.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=aN("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:o,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(o,{type:i})}catch(i){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),aQ;if(!e.match(/-|_/))return aQ;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[r]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>aX[e]-aX[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let a0=(e,t,n,o=".",i=!0)=>{let r,a=void 0!==(r=aS(e,n))?r:aS(t,n);return null==a&&i&&ak(n)&&void 0===(a=aP(e,n,o))&&(a=aP(t,n,o)),a};class a1{constructor(e={}){this.logger=aH.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:p,maxReplaces:b,alwaysFormat:_}=e.interpolation;if(r||s||u||h){let e=Object.entries({prefixEscaped:r,suffixEscaped:s,nestingPrefixEscaped:u,nestingSuffixEscaped:h}).filter(([,e])=>e).map(([e])=>e);this.logger.once(e.join(),"deprecate",`interpolation.${e.join(", interpolation.")}: the regex-escaped delimiter options are removed in v27; pass the literal delimiters as prefix, suffix, nestingPrefix and nestingSuffix`)}this.escape=void 0!==t?t:aY,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=l?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=p||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==_&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let i,r,a,s=e,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let i=a0(t,d,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...o,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),r=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(a0(t,d,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:r})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,u=[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?(this.escape===aY&&this.options?.interpolation?.escapeValue!==!1&&ak(e)&&e.includes("/")&&this.logger.once("/","deprecate","escapeValue renders '/' in a value as '&#x2F;' today; from v27 the default escape leaves '/' as it is"),this.escape(e)):e}],f=[],h=0;return u.forEach(t=>{for(a=0;i=t.regex.exec(e);){let n=i.index-h,d=f.find(([e,t])=>n>=e&&n<t);if(d){t.regex.lastIndex=d[1]+h;continue}let u=i[1].trim();if(void 0===(r=l(u)))if("function"==typeof c){let t=c(e,i,o);r=ak(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,u))r="";else if(m){this.logger.debug&&this.logger.once(`${s}\u0000${i[0]}`,"warn",`missed to pass in variable ${u} for interpolating ${s}`),r=i[0];continue}else this.logger.warn(`missed to pass in variable ${u} for interpolating ${e}`),r="";else ak(r)||this.useRawValueToEscape||(r=ax(r));let p=ax(t.safeValue(r));if(e=e.slice(0,i.index)+p+e.slice(i.index+i[0].length),m?(t.regex===this.regexpUnescape?f.push([i.index,i.index+p.length]):h+=p.length-i[0].length,t.regex.lastIndex+=p.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,i,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),i=`{${o[1]}`;e=o[0];let a=(i=this.interpolate(i,r)).match(/'/g),s=i.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(i=i.replace(/'/g,'"'));try{r=JSON.parse(i),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e},s=new RegExp(this.nestingRegexp),d="",l=0;for(;o=s.exec(e);){let c=[];(r=(r={...n}).replace&&!ak(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let m=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==m&&(c=o[1].slice(m).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),(i=t(a.call(this,o[1].trim(),r),r))&&o[0]===e&&!ak(i))return i;ak(i)||(i=ax(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),c.length&&(i=c.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),d+=e.slice(l,o.index)+ax(i),l=s.lastIndex,this.regexp.lastIndex=0}return l?d+e.slice(l):e}}let a2=e=>{let t={};return(n,o,i)=>{let r,a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});try{r=o+JSON.stringify(a)}catch(t){return e(aN(o),i)(n)}let s=t[r];return s||(s=e(aN(o),i),t[r]=s),s(n)}},a4=e=>(t,n,o)=>e(aN(n),o)(t);class a5{constructor(e={}){this.logger=aH.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?a2:a4;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=a2(t)}format(e,t,n,o={}){if(!t||null==e)return e;let i=t.split(this.formatSeparator),r=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:i,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let i=o[1].slice(0,-1);"currency"!==t||i.includes(":")?"relativetime"!==t||i.includes(":")?i.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),i=o.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=i),"false"===i&&(n[r]=!1),"true"===i&&(n[r]=!0),isNaN(i)||(n[r]=parseInt(i,10))}}):n.range||(n.range=i.trim()):n.currency||(n.currency=i.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[i](e,s,{...r,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class a6 extends az{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=aH.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o),this.callbackApi=aM(this.backend),this.backend&&void 0===this.callbackApi&&(this.backend.read||this.backend.create)&&this.logger.deprecate("backend: set callbackApi to declare the calling convention (true: read(language, namespace, callback) and create(languages, namespace, key, fallbackValue, callback, options); false: both return a promise or a value); guessing it from the number of parameters is deprecated")}queueLoad(e,t,n,o){let i={},r={},a={},s={};return e.forEach(e=>{let o=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:!n.reload&&this.state[a]<0||(1===this.state[a]?void 0===r[a]&&(r[a]=!0):(this.state[a]=1,o=!1,void 0===r[a]&&(r[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),i=o[0],r=o[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:o,k:i}=aD(e,t,Object);o[i]=o[i]||[],o[i].push(n)})(n.loaded,[i],r),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,o=0,i=this.retryTimeout,r){if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:r});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&o<this.maxRetries?setTimeout(()=>{this.read(e,t,n,o+1,2*i,r)},i):r(a,s)},s=this.backend[n].bind(this.backend);if(!1===this.callbackApi||void 0===this.callbackApi&&2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ak(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ak(t)&&(t=[t]);let i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}noticeDevFallback(e){"dev"===e&&this.devIsDefaultFallback&&this.logger.once("dev","warn","language 'dev' is requested because fallbackLng is not set (its default is ['dev']); i18next v27 defaults to fallbackLng: false and loads and saves missing keys in the requested language instead. Set fallbackLng to your source language, or to 'dev' to keep this behavior")}loadOne(e,t=""){let n=e.split("|"),o=n[0],i=n[1];this.noticeDevFallback(o),this.read(o,i,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${o} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${i} for language ${o}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,o,i,r={},a=()=>{},s=this.newestCloneHasLoadedNamespace||this.services?.utils?.hasLoadedNamespace){if(s&&!s(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){e?.forEach?.(e=>this.noticeDevFallback(e));let s={...r,isUpdate:i},d=this.backend.create.bind(this.backend);if(!1===this.callbackApi||void 0===this.callbackApi&&d.length<6)try{let i;(i=!1===this.callbackApi||5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let a3=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ak(e[1])&&(t.defaultValue=e[1]),ak(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),a8=e=>(ak(e.ns)&&(e.ns=[e.ns]),ak(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ak(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),a7=()=>{};class a9 extends az{constructor(e={},t){if(super(),this.options=a8(e),this.services={ownPostProcessors:new Set},this.logger=aH,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ak(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=void 0===e.fallbackLng&&void 0===this.options.fallbackLng,o=a3();this.options={...o,...this.options,...a8(e)},this.options.interpolation={...o.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler);let r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;i&&i!==this&&i.modules.logger!==this.modules.logger&&aH.deprecate("init: this init() replaces the logger another i18next instance set with use(), as the logger is shared in v26; from v27 each instance keeps its own logger"),i=this.modules.logger?this:void 0,this.modules.logger?aH.init(r(this.modules.logger),this.options):aH.init(null,this.options),this.pendingWarnings?.forEach(e=>this.logger.warn(e)),this.pendingWarnings=void 0,e=this.modules.formatter?this.modules.formatter:a5;let t=new aJ(this.options);this.store=new a$(this.options.resources,this.options);let o=this.services;o.logger=aH,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new aZ(t,{prepend:this.options.pluralSeparator}),e&&(o.formatter=r(e),o.formatter.init&&o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new a1(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this),reloadResources:this.reloadResources.bind(this)},o.backendConnector=new a6(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.devIsDefaultFallback=n,o.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options),o.languageDetector.async&&void 0===aM(o.languageDetector)&&this.logger.deprecate("languageDetector: set callbackApi to declare how the async detect() answers (true: detect(callback); false: detect() returns a promise); guessing it from the number of parameters is deprecated")),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new aK(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=a7),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let a=aE(),s=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),a}loadResources(e,t=a7){let n=t,o=ak(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let o=aE();if("function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),!e){let t=Object.keys(this.services.backendConnector.state).map(e=>e.split("|")[0]);e=[...new Set([...this.languages||[],...t])].filter(e=>"cimode"!==e)}return t||(t=this.options.ns),n||(n=a7),this.services.backendConnector.reload(e,t,e=>{o.resolve(),n(e)}),o}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");let t=t=>{if(this.modules[t]&&this.modules[t]!==e){let e=`use: this ${t} replaces the ${t} passed to an earlier use() call; only one ${t} is used per instance`;this.isInitializing||this.isInitialized?this.logger.warn(e):(this.pendingWarnings=this.pendingWarnings||[]).push(e)}this.modules[t]=e};return"backend"===e.type&&t("backend"),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&t("languageDetector"),"i18nFormat"===e.type&&t("i18nFormat"),"postProcessor"===e.type&&(aW.addPostProcessor(e),this.services.ownPostProcessors?.add(e.name)),"formatter"===e.type&&t("formatter"),"3rdParty"===e.type&&this.modules.external.push(e),this}hydrate(e,t){return this.options.isClone||(this.services.resourceStore?(e&&!this.initializedStoreOnce&&(this.services.resourceStore.data=e,Object.values(e).forEach(e=>{Object.keys(e).forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)})}),this.initializedStoreOnce=!0,this.isInitialized=!0),t&&!this.initializedLanguageOnce&&(this.changeLanguage(t),this.initializedLanguageOnce=!0)):this.logger.warn("hydrate: call init() first, the instance has no resource store yet")),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=aE();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,r)=>{r?this.isLanguageChangingTo===e&&(o(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=ak(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ak(t)?[t]:t);r&&this.logger.debug&&!(ak(r)&&/^[A-Za-z0-9_@.-]{1,128}$/.test(r)&&!r.includes("..")&&!["__proto__","constructor","prototype"].includes(r))&&([].concat(this.options.supportedLngs||[],this.services.languageUtils.getFallbackCodes(this.options.fallbackLng,r),this.options.preload||[]).includes(r)||Object.prototype.hasOwnProperty.call(this.store.data,r)||this.logger.once(`lng:${r}`,"deprecate",`changeLanguage: the language code '${r.slice(0,64)}' comes from lng, changeLanguage() or the language detector and is not configured; from v27 such a code is refused unless it has only letters, digits, '-', '_', '@' and '.' (no '..'), at most 128 characters. Set supportedLngs, or check the code before passing it on`)),r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{i(e,r)})};if(e||!this.services.languageDetector||this.services.languageDetector.async)if(!e&&this.services.languageDetector&&this.services.languageDetector.async){let e=aM(this.services.languageDetector);!1===e||void 0===e&&0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r)}else r(e);else r(this.services.languageDetector.detect());return n}getFixedT(e,t,n,o){let i=o?.scopeNs,r=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let l={...this.options,...a};Array.isArray(i)&&!d&&(l.ns=i),"function"==typeof a.keyPrefix&&(a.keyPrefix=aq(a.keyPrefix,l));let c=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=aq(e,l)),`${a.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=aq(e,l)),s=a.keyPrefix?`${a.keyPrefix}${c}${e}`:e),this.t(s,a)};return ak(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?this.translator.translate(...e):(this.logger.warn("t: called before init(); returning an empty string"),"")}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let r=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,r);if(void 0!==e)return e}if(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;let{languageUtils:a}=this.services,s=t.lng?a.isSupportedCode(n)&&a.toResolveHierarchy(n,!1)[0]:n;return!!((!s||r(s,e))&&(!o||r(i,e)))}loadNamespaces(e,t){let n=aE();return this.options.ns?(ak(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=aE();ak(e)&&(e=[e]);let o=this.options.preload||[],i=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=o.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"ltr";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new aJ(a3());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new a9(e,t);return n.createInstance=a9.createInstance,n}cloneInstance(e={},t=a7){let n=e.forkResourceStore;n&&(e={...e},delete e.forkResourceStore);let o={...this.options,preload:!1,...e,isClone:!0},i=new a9(o);if((void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={...i.services.utils,hasLoadedNamespace:i.hasLoadedNamespace.bind(i),reloadResources:i.reloadResources.bind(i)},n){let e=t=>{let n=Array.isArray(t)?[...t]:{...t};return Object.keys(n).forEach(t=>{n[t]&&"object"==typeof n[t]&&(n[t]=e(n[t]))}),n};i.store=new a$(e(this.store.data),o),i.services.resourceStore=i.store}if(e.interpolation){let t={...a3().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};i.services.interpolator=new a1(n)}return i.translator=new aK(i.services,o),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(o,t),i.translator.options=o,i.translator.backendConnector.newestCloneHasLoadedNamespace=i.hasLoadedNamespace.bind(i),i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let se=a9.createInstance();se.createInstance,se.dir,se.init,se.loadResources,se.reloadResources,se.use,se.changeLanguage,se.getFixedT,se.t,se.exists,se.setDefaultNamespace,se.hasLoadedNamespace,se.loadNamespaces,se.loadLanguages;var st=n(4867),sn=n.n(st);n(3472);class so{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function si(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>si(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>si(e[n],t[n]))}return!1}function sr(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}function sa(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,o)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!o[n-1]||"_"===o[n-1],i=n+1<o.length&&o[n+1]&&"_"!==o[n+1],r=n+3>o.length||!o[n+1]&&!o[n+3];(!t||i)&&(e=" "+e),!i&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}function ss(e,t){if(t===e)return!0;let n=e.endsWith("*"),o=!n&&e.startsWith("*"),i=!n&&!o&&e.startsWith("^")&&e.endsWith("$");if(n&&t.startsWith(e.substr(0,e.length-1))||o&&t.endsWith(e.substr(1)))return!0;if(i)try{return new RegExp(e).test(t)}catch(e){console.error("Failed to compile needle as a RegExp: "+e)}return!1}function sd(e,t,n){let o="string"==typeof e?e:e.name;return t&&t.meta&&t.meta.hasOwnProperty(o)?t.meta[o]:n&&n.meta?n.meta[o]:void 0}function sl(e){return("string"==typeof e&&(e=aw.getAssetDescriptor(e)),e)?se.t("label.asset."+e.name,{defaultValue:sa(e.name)}):""}function sc(e,t,n,o,i,r){let a=sm("label",e,t,n,i),s="";if(a||(a=sd("label",e,t&&t.meta?t:void 0)),o&&(s=function(e,t){if(!e)return"";t||(t="");let n=e.map((e,n)=>{if(3!==e.length||e.toUpperCase()!==e)return se.t(["units."+e,"or:units."+e]);{let o=new Intl.NumberFormat(se.language,{currency:e,style:"currency"}).formatToParts();if(0!==n||"currency"!==o[0].type)return"currency"===o[0].type?o[0].value:o[o.length-1].value;if(!t)return o[0].value;t=o[0].value+t}}).join("");return t.length>0?t+" "+n:n}(function(e,t,n,o,i){let r,a=[],s=sm(e,t&&"string"==typeof t?t:t?t.name:n?"string"==typeof n?n:n.name:void 0,n,o,i);if(s&&(r=JSON.parse(s)))if("format"!==e)return r;else a.push(r);if(t&&t.meta&&(r=sd(e,t,n)))if("format"!==e)return r;else a.push(r);if(n&&"string"!=typeof n&&n.hasOwnProperty(e)){if(r=n[e],"format"!==e)return r;a.push(r)}if(n&&n.type){if(r=aw.getValueDescriptor(n.type)[e],"format"!==e)return r;a.push(r)}if("format"!==e||0===a.length)return r;let d={};return a.reverse().forEach(e=>{d=Object.assign(Object.assign({},d),e)}),d}("units",e,t,n,i))),!a){let n=e?e.name:t?"string"==typeof t?t:t.name:void 0;a=r||(n?sa(n):void 0)}return a?a+(s?" ("+s+")":""):s}function sm(e,t,n,o,i,r){let a;if(t?a="string"==typeof t?t:t.name:n&&(a="string"==typeof n?n:n.name),!a)return;let s=[],d=e+"."+(i?"attribute":"meta")+".";if(o&&s.push(d+o+"."+a),n&&"string"!=typeof n&&(s.push(d+n.type+"."+a),s.push(d+n.type)),s.push(d+a),s.length>0)return se.t(s,{defaultValue:r||""})}function su(e){return(t,n)=>{let o=e(t),i=e(n);return o||i?o&&!i?1:!o&&i?-1:o.localeCompare(i):0}}function sf(e,t){let n=new so;return e.dispatchEvent(t),window.setTimeout(()=>{n.resolve(t.detail)}),n.promise}function sh(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class sp{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,i,r,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(i=this.parents)?void 0:i.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>sp._evalValuePredicate(e.name,t)))&&(!this.attributes||sp._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!sp._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?sp._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let i=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=i.startsWith(r);break;case"END":o=i.endsWith(r);break;case"CONTAINS":o=i.includes(r);break;default:o=i===r}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let i=null==(n=t.name)?void 0:n.value;if(!i)return!0;let r=null==(o=e.attributes)?void 0:o[i];if(!r)return!!t.negated;let a=!t.value||sp._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,i;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>sp._evalPredicate(e,t)),...(null!=(i=t.groups)?i:[]).map(t=>sp._evalGroup(e,t))];return!a.length||("OR"===r?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>sp._collectNames(e))]}}sp._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var sb=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let s_=n(4461);class sg{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),i=o.get("consoleName"),r=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),l=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=l;let c=sg._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(c.id=e.id),e.name&&(c.name=e.name),e.providers&&(c.providers=e.providers),e.apps&&(c.apps=e.apps)}catch(e){console.error("Failed to deserialize console registration")}let u=c.providers;for(let e of(c.providers={},l)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};c.providers[e]=t}let f=mr.getAppName();f.length>0&&0>c.apps.indexOf(f)&&c.apps.push(f),this._registration=c,i&&(c.name=i),r&&(c.version=r),a&&(c.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return sb(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initializing"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return sb(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialized before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return sb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialized before disabling providers"),Error("Console must be initialized before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let i=this._pendingProviderEnables.indexOf(e);return i>=0&&(this._pendingProviderEnables.splice(i,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return sb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialized before disabling providers"),Error("Console must be initialized before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return sb(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new so,i=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(i,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>sb(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return sb(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mr.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&sg._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return sb(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,i=this._pendingProviderPromises[n+o];i&&(window.clearTimeout(i[1]),delete this._pendingProviderPromises[n+o],i[0].resolve(t));let r=this._providerMessageListeners[n+o];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:s_.name,version:s_.version,platform:s_.os.toString(),apps:[],model:((s_.manufacturer?s_.manufacturer+" ":"")+(s_.product?s_.product:"")).trim()}}_initialiseProvider(e){return sb(this,void 0,void 0,function*(){let t;console.debug("Console: initializing provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialization failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function sF(e,t){return function(){return e.apply(t,arguments)}}let{toString:sv}=Object.prototype,{getPrototypeOf:sy}=Object,{iterator:sw,toStringTag:sk}=Symbol,sE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sx=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),sM=(e,t,n)=>e===Object.prototype||!n&&null===t,sL=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let i=sy(n);if(sM(n,i,n===e))break;if(sE(n,t))return!0;n=i}return!1},sA=(a=Object.create(null),e=>{let t=sv.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),sC=e=>(e=e.toLowerCase(),t=>sA(t)===e),sD=e=>t=>typeof t===e,{isArray:sT}=Array,sS=sD("undefined");function sO(e){return null!==e&&!sS(e)&&null!==e.constructor&&!sS(e.constructor)&&sR(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let sI=sC("ArrayBuffer"),sY=sD("string"),sR=sD("function"),sB=sD("number"),sP=e=>null!==e&&"object"==typeof e,sN=e=>{if(!sP(e))return!1;let t=sy(e);return(null===t||t===Object.prototype||null===sy(t))&&!sL(e,sk)&&!sL(e,sw)},sj=sC("Date"),sH=sC("File"),sz=sC("Blob"),sU=sC("FileList"),s$=sC("Set"),sW="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},sV=void 0!==sW.FormData?sW.FormData:void 0,sq=sC("URLSearchParams"),[sG,sK,sJ,sX]=["ReadableStream","Request","Response","Headers"].map(sC);function sQ(e,t,{allOwnKeys:n=!1}={}){let o,i;if(null!=e)if("object"!=typeof e&&(e=[e]),sT(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{let i;if(sO(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(o=0;o<a;o++)i=r[o],t.call(null,e[i],i,e)}}function sZ(e,t){let n;if(sO(e))return null;t=t.toLowerCase();let o=Object.keys(e),i=o.length;for(;i-- >0;)if(t===(n=o[i]).toLowerCase())return n;return null}let s0="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,s1=e=>!sS(e)&&e!==s0,s2=(s="u">typeof Uint8Array&&sy(Uint8Array),e=>s&&e instanceof s),s4=sC("HTMLFormElement"),{propertyIsEnumerable:s5}=Object.prototype,s6=sC("RegExp"),s3=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};sQ(n,(n,i)=>{let r;!1!==(r=t(n,i,e))&&(o[i]=r||n)}),Object.defineProperties(e,o)},s8=sC("AsyncFunction"),s7=(c="function"==typeof setImmediate,m=sR(s0.postMessage),c?setImmediate:m?(u=`axios@${Math.random()}`,f=[],s0.addEventListener("message",({source:e,data:t})=>{e===s0&&t===u&&f.length&&f.shift()()},!1),e=>{f.push(e),s0.postMessage(u,"*")}):e=>setTimeout(e)),s9="u">typeof queueMicrotask?queueMicrotask.bind(s0):"u">typeof process&&process.nextTick||s7,de=e=>null!=e&&sR(e[sw]),dt={isArray:sT,isArrayBuffer:sI,isBuffer:sO,isFormData:e=>{if(!e)return!1;if(sV&&e instanceof sV)return!0;let t=sy(e);if(!t||t===Object.prototype||!sR(e.append))return!1;let n=sA(e);return"formdata"===n||"object"===n&&sR(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sI(e.buffer)},isString:sY,isNumber:sB,isBoolean:e=>!0===e||!1===e,isObject:sP,isPlainObject:sN,isEmptyObject:e=>{if(!sP(e)||sO(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:sG,isRequest:sK,isResponse:sJ,isHeaders:sX,isUndefined:sS,isDate:sj,isFile:sH,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:sz,isRegExp:s6,isFunction:sR,isStream:e=>sP(e)&&sR(e.pipe),isURLSearchParams:sq,isTypedArray:s2,isFileList:sU,forEach:sQ,merge:function e(...t){let{caseless:n,skipUndefined:o}=s1(this)&&this||{},i={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&sZ(i,r)||r,s=sE(i,a)?i[a]:void 0;sN(s)&&sN(t)?i[a]=e(s,t):sN(t)?i[a]=e({},t):sT(t)?i[a]=t.slice():o&&sS(t)||(i[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||sO(n)||(sQ(n,r),"object"!=typeof n||sT(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];s5.call(n,t)&&r(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:o}={})=>(sQ(t,(t,o)=>{n&&sR(t)?Object.defineProperty(e,o,{__proto__:null,value:sF(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let i,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)a=i[r],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&sy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sA,kindOfTest:sC,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(sT(e))return e;let t=e.length;if(!sB(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[sw]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:s4,hasOwnProperty:sE,hasOwnProp:sE,hasOwnInPrototypeChain:sL,getSafeProp:(e,t)=>null!=e&&sL(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=sy(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(sx(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),o=Object.create(null),i=[],r=e;for(;null!=r&&-1===i.indexOf(r);){i.push(r);let a=r===e?t:sy(r);if(sM(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!sx(t)&&(sE(o,t)||(n[t]=e[t],o[t]=!0));r=a}return n},reduceDescriptors:s3,freezeMethods:e=>{s3(e,(t,n)=>{if(sR(e)&&["arguments","caller","callee"].includes(n))return!1;if(sR(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(sT(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:sZ,global:s0,isContextDefined:s1,isSpecCompliantForm:function(e){return!!(e&&sR(e.append)&&"FormData"===e[sk]&&e[sw])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(sP(e)){if(t.has(e))return;if(sO(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),s$(e))for(let t of(o=[],e)){let e=n(t);sS(e)||o.push(e)}else o=sT(e)?[]:{},sQ(e,(e,t)=>{let i=n(e);sS(i)||(o[t]=i)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:s8,isThenable:e=>e&&(sP(e)||sR(e))&&sR(e.then)&&sR(e.catch),setImmediate:s7,asap:s9,isIterable:de,isSafeIterable:e=>null!=e&&sL(e,sw)&&de(e)},dn=dt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),di=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),dr=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function da(e,t){return dt.isArray(e)?e.map(e=>da(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ds(e){let t=Object.create(null);return dt.forEach(e.toJSON(),(e,n)=>{t[n]=da(e,dr)}),t}let dd=Symbol("internals");function dl(e){return e&&String(e).trim().toLowerCase()}function dc(e){return!1===e||null==e?e:dt.isArray(e)?e.map(dc):da(String(e),di)}let dm=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function du(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function df(e,t,n,o,i){if(dt.isFunction(o))return o.call(this,t,n);if(i&&(t=n),dt.isString(t)){if(dt.isString(o))return -1!==t.indexOf(o);if(dt.isRegExp(o))return o.test(t)}}class dh{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function i(e,t,n){let i=dl(t);if(!i)return;let r=dt.findKey(o,i);r&&void 0!==o[r]&&!0!==n&&(void 0!==n||!1===o[r])||(o[r||t]=dc(e))}let r=(e,t)=>dt.forEach(e,(e,n)=>i(e,n,t));if(dt.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let o;if(dt.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,i,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),o=e.substring(i+1).trim();let t=dt.hasOwnProp(s,n);!n||t&&dt.hasOwnProp(dn,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(dt.isObject(e)&&dt.isSafeIterable(e)){let n=Object.create(null),o,i;for(let t of e){if(!dt.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],dt.hasOwnProp(n,i)?(o=n[i],n[i]=dt.isArray(o)?[...o,t[1]]:[o,t[1]]):n[i]=t[1]}r(n,t)}else null!=e&&i(t,e,n)}return this}get(e,t){if(e=dl(e)){let n=dt.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(dt.isFunction(t))return t.call(this,e,n);if(dt.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dl(e)){let n=dt.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||df(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function i(e){if(e=dl(e)){let i=dt.findKey(n,e);i&&(!t||df(n,n[i],i,t))&&(delete n[i],o=!0)}}return dt.isArray(e)?e.forEach(i):i(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let i=t[n];(!e||df(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let t=this,n={};return dt.forEach(this,(o,i)=>{let r=dt.findKey(n,i);if(r){t[r]=dc(o),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=dc(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return dt.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&dt.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return dt.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),o=0,i=!1,r=!1;function a(e){let i=du(n.slice(o,e)),r=i.indexOf("=");if(r<1)return;let a=du(i.slice(0,r));if(!dm.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=du(i.slice(r+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let o=1;o<t;o++){let i=e.charCodeAt(o);if(34===i||92===i&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?r?r=!1:92===t?r=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(a(e),o=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[dd]=this[dd]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=dl(e);if(!t[o]){let i;i=dt.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{__proto__:null,value:function(n,o,i){return this[t].call(this,e,n,o,i)},configurable:!0})}),t[o]=!0}}return dt.isArray(e)?e.forEach(o):o(e),this}}dh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dt.reduceDescriptors(dh.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),dt.freezeMethods(dh);let dp="[REDACTED ****]";function db(e){try{return String(e)}catch(e){return""}}class d_ extends Error{static from(e,t,n,o,i,r){let a=e.message;!a&&dt.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?db(e.message):db(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new d_(a,t||e.code,n,o,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),r&&Object.assign(s,r),s}constructor(e,t,n,o,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){let e,t,n,o=this.config,i=o&&dt.hasOwnProp(o,"redact")?o.redact:void 0,r=dt.isArray(i)&&i.length>0?(e=new Set(i.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let i;if(null===o||"object"!=typeof o||dt.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof dh&&(o=o.toJSON()),t.push(o),dt.isArray(o))i=[],o.forEach((e,t)=>{let o=n(e);dt.isUndefined(o)||(i[t]=o)});else{if(!dt.isPlainObject(o)&&function(e){if(dt.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(dt.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,r]of(i=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?dp:n(r);dt.isUndefined(o)||(i[t]=o)}}return t.pop(),i}})(o)):dt.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}d_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",d_.ERR_BAD_OPTION="ERR_BAD_OPTION",d_.ECONNABORTED="ECONNABORTED",d_.ETIMEDOUT="ETIMEDOUT",d_.ECONNREFUSED="ECONNREFUSED",d_.ERR_NETWORK="ERR_NETWORK",d_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",d_.ERR_DEPRECATED="ERR_DEPRECATED",d_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",d_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",d_.ERR_CANCELED="ERR_CANCELED",d_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",d_.ERR_INVALID_URL="ERR_INVALID_URL",d_.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dg=d_;function dF(e){return dt.isPlainObject(e)||dt.isArray(e)}function dv(e){return dt.endsWith(e,"[]")?e.slice(0,-2):e}function dy(e,t,n){return e?e.concat(t).map(function(e,t){return e=dv(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let dw=dt.toFlatObject(dt,{},null,function(e){return/^is[A-Z]/.test(e)}),dk=function(e,t,n){if(!dt.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=dt.getSafeProp(n,e);return dt.isUndefined(o)?t:o},i=o("metaTokens",!0),r=o("visitor")||h,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,l=o("maxDepth",100),c=d&&dt.isSpecCompliantForm(t),m=[];if(!dt.isFunction(r))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(dt.isDate(e))return e.toISOString();if(dt.isBoolean(e))return e.toString();if(!c&&dt.isBlob(e))throw new dg("Blob is not supported. Use a Buffer instead.");if(dt.isArrayBuffer(e)||dt.isTypedArray(e)){if(c&&"function"==typeof d)return new d([e]);throw new dg("Blob is not supported. Use a Buffer instead.",dg.ERR_NOT_SUPPORT)}return e}function f(e){if(e>l)throw new dg("Object is too deeply nested ("+e+" levels). Max depth: "+l,dg.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,o){let r=e;if(dt.isReactNative(t)&&dt.isReactNativeBlob(e))return t.append(dy(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(dt.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!dt.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(dt.isArray(e)&&(d=e,dt.isArray(d)&&!d.some(dF))||(dt.isFileList(e)||dt.endsWith(n,"[]"))&&(r=dt.toArray(e)))return n=dv(n),r.forEach(function(e,o){dt.isUndefined(e)||null===e||t.append(!0===s?dy([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!dF(e)||(t.append(dy(o,n,a),u(e)),!1)}let p=Object.assign(dw,{defaultVisitor:h,convertValue:u,isVisitable:dF});if(!dt.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!dt.isUndefined(n)){if(f(i),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),dt.forEach(n,function(n,a){!0===(!(dt.isUndefined(n)||null===n)&&r.call(t,n,dt.isString(a)?a.trim():a,o,p))&&e(n,o?o.concat(a):[a],i+1)}),m.pop()}}(e),t};function dE(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dx(e,t){this._pairs=[],e&&dk(e,this,t)}let dM=dx.prototype;function dL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dA(e,t,n){let o;if(!t)return e;e=e||"";let i=dt.isFunction(n)?{serialize:n}:n,r=dt.getSafeProp(i,"encode")||dL,a=dt.getSafeProp(i,"serialize");if(o=a?a(t,i):dt.isURLSearchParams(t)?t.toString():new dx(t,i).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}dM.append=function(e,t){this._pairs.push([e,t])},dM.toString=function(e){let t=e?t=>e.call(this,t,dE):dE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dC=Symbol("internals");function dD(e){return e?e.length:0}function dT(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function dS(e,t){let n=e.handlers,o=dD(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):o!==t.handlersLength&&(o?t.handlerEntries.forEach(function(e,o){n[e.index]!==e.handler&&t.handlerEntries.delete(o)}):t.handlerEntries.clear()),t.handlersLength=o}let dO=class{constructor(){this.handlers=[],this[dC]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let o={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},i=this[dC];null==this.handlers&&(this.handlers=[]),dS(this,i);let r=i.nextId++;return this.handlers.push(o),i.handlerEntries.set(r,{handler:o,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,r}eject(e){let t=this[dC];dS(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(dT(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],dS(this,this[dC]))}forEach(e){let t=this[dC];dS(this,t),t.iterationDepth++;try{dt.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(dS(this,t),dT(this.handlers),t.handlersLength=dD(this.handlers))}}},dI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dY="u">typeof URLSearchParams?URLSearchParams:dx,dR="u">typeof FormData?FormData:null,dB="u">typeof Blob?Blob:null,dP="u">typeof window&&"u">typeof document,dN="object"==typeof navigator&&navigator||void 0,dj=dP&&(!dN||0>["ReactNative","NativeScript","NS"].indexOf(dN.product)),dH="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dz=dP&&window.location.href||"http://localhost",dU={...tI,isBrowser:!0,classes:{URLSearchParams:dY,FormData:dR,Blob:dB},protocols:["http","https","file","blob","url","data"]};function d$(e){if(e>100)throw new dg("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dg.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dW=function(e){if(dt.isFormData(e)&&dt.isFunction(e.entries)){let t={};return dt.forEachEntry(e,(e,n)=>{!function e(t,n,o,i){d$(i);let r=t[i++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=i>=t.length;return(r=!r&&dt.isArray(o)?o.length:r,s)?dt.hasOwnProp(o,r)?o[r]=dt.isArray(o[r])?o[r].concat(n):[o[r],n]:o[r]=n:(dt.hasOwnProp(o,r)&&dt.isObject(o[r])||(o[r]=[]),e(t,n,o[r],i)&&dt.isArray(o[r])&&(o[r]=function(e){let t,n,o={},i=Object.keys(e),r=i.length;for(t=0;t<r;t++)o[n=i[t]]=e[n];return o}(o[r]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)d$(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dV=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),dq=(e,t)=>null!=e&&dt.hasOwnProp(e,t)?e[t]:void 0,dG={transitional:dI,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",i=o.indexOf("application/json")>-1,r=dt.isObject(e);if(r&&dt.isHTMLForm(e)&&(e=new FormData(e)),dt.isFormData(e))return i?JSON.stringify(dW(e)):e;if(dt.isArrayBuffer(e)||dt.isBuffer(e)||dt.isStream(e)||dt.isFile(e)||dt.isBlob(e)||dt.isReadableStream(e))return e;if(dt.isArrayBufferView(e))return e.buffer;if(dt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dq(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return dk(e,new dU.classes.URLSearchParams,{visitor:function(e,t,n,o){return dU.isNode&&dt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=dt.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=dq(this,"env"),i=o&&o.FormData;return dk(n?{"files[]":e}:e,i&&new i,t)}}if(r||i){t.setContentType("application/json",!1);var a=e;if(dt.isString(a))try{return(0,JSON.parse)(a),dt.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dq(this,"transitional")||dG.transitional,n=t&&t.forcedJSONParsing,o=dq(this,"responseType"),i="json"===o;if(dt.isResponse(e)||dt.isReadableStream(e))return e;if(e&&dt.isString(e)&&(n&&!o||i)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dq(this,"parseReviver"))}catch(e){if(!n&&i){if("SyntaxError"===e.name)throw dg.from(e,dg.ERR_BAD_RESPONSE,this,null,dq(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dU.classes.FormData,Blob:dU.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dK(e,t){let n=this||dG,o=t||n,i=dh.from(o.headers),r=o.data;return dt.forEach(e,function(e){r=e.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function dJ(e){return!!(e&&e.__CANCEL__)}dt.forEach(dV,e=>{dG.headers[e]={}});let dX=class extends dg{constructor(e,t,n){super(null==e?"canceled":e,dg.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dQ(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new dg("Request failed with status code "+n.status,n.status>=400&&n.status<500?dg.ERR_BAD_REQUEST:dg.ERR_BAD_RESPONSE,n.config,n.request,n))}let dZ=/[\t\n\r]/g;function d0(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(dZ,"")}function d1(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let d2=function(e,t){let n,o=Array(e=e||10),i=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),l=i[a];n||(n=d),o[r]=s,i[r]=d;let c=a,m=0;for(;c!==r;)m+=o[c++],c%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=l&&d-l;return u?Math.round(1e3*m/u):void 0}},d4=function(e,t){let n,o,i=0,r=1e3/t,a=(t,r=Date.now())=>{i=r,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=r?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},d5=(e,t,n=3)=>{let o=0,i=d2(50,250);return d4(n=>{if(!n||!dt.isNumber(n.loaded))return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(r,a):r),d=Math.max(0,s-o),l=i(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},d6=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},d3=(e,t=dt.asap)=>(...n)=>t(()=>e(...n)),d8=dU.hasStandardBrowserEnv?(d=new URL(dU.origin),l=dU.navigator&&/(msie|trident)/i.test(dU.navigator.userAgent),e=>(e=new URL(e,dU.origin),d.protocol===e.protocol&&d.host===e.host&&(l||d.port===e.port))):()=>!0,d7=dU.hasStandardBrowserEnv?{write(e,t,n,o,i,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];dt.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),dt.isString(o)&&s.push(`path=${o}`),dt.isString(i)&&s.push(`domain=${i}`),!0===r&&s.push("secure"),dt.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),i=o.indexOf("=");if(-1!==i&&o.slice(0,i)===e)try{return decodeURIComponent(o.slice(i+1))}catch(e){return o.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},d9=/^https?:(?!\/\/)/i;function le(e,t){if("string"==typeof e){let o=d0(e);if(d9.test(o)){var n;let e,i,r;throw new dg(`Invalid URL ${JSON.stringify((r=(-1===(i=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${dp}@`)).indexOf("#"))?e:e.slice(0,i)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${dp}`),-1===i?r:`${r}#${!(n=e.slice(i+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${dp}`)}`))}: missing "//" after protocol`,dg.ERR_INVALID_URL,t)}}}function lt(e,t,n,o){le(t,o);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===n)){le(e,o);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let ln=e=>e instanceof dh?{...e}:e;function lo(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function i(e,t,n,o){return dt.isPlainObject(e)&&dt.isPlainObject(t)?dt.merge.call({caseless:o},e,t):dt.isPlainObject(t)?dt.merge({},t):dt.isArray(t)?t.slice():t}function r(e,t,n,o){return dt.isUndefined(t)?dt.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function a(e,t){if(!dt.isUndefined(t))return i(void 0,t)}function s(e,t){return dt.isUndefined(t)?dt.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function d(n,o,r){return dt.hasOwnProp(t,r)?i(n,o):dt.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:d,headers:(e,t,n)=>r(ln(e),ln(t),n,!0)};return dt.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=dt.hasOwnProp(l,n)?l[n]:r,a=i(dt.hasOwnProp(e,n)?e[n]:void 0,dt.hasOwnProp(t,n)?t[n]:void 0,n);dt.isUndefined(a)&&i!==d||(o[n]=a)}),dt.hasOwnProp(t,"validateStatus")&&dt.isUndefined(t.validateStatus)&&!1===function(n){let o=dt.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!dt.isUndefined(o)){if(!dt.isPlainObject(o))return;else if(dt.hasOwnProp(o,n))return o[n]}let i=dt.hasOwnProp(e,"transitional")?e.transitional:void 0;if(dt.isPlainObject(i)&&dt.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(dt.hasOwnProp(e,"validateStatus")?o.validateStatus=i(void 0,e.validateStatus):delete o.validateStatus),o}let li=["content-type","content-length"],lr=function(e){let t=lo({},e),n=e=>dt.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),i=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),l=n("baseURL"),c=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=dh.from(s),t.url=dA(lt(l,m,c,t),n("params"),n("paramsSerializer")),d){let t=dt.getSafeProp(d,"username")||"",n=dt.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw dg.from(t,dg.ERR_BAD_OPTION_VALUE,e)}}if(dt.isFormData(o)){let e=dt.getSafeProp(o,"getHeaders");if(dU.hasStandardBrowserEnv||dU.hasStandardBrowserWebWorkerEnv||dt.isReactNative(o))s.setContentType(void 0);else{var u,f;dt.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{li.includes(e.toLowerCase())&&u.set(e,t)}))}}if(dU.hasStandardBrowserEnv&&(dt.isFunction(i)&&(i=i(t)),!0===i||null==i&&d8(t.url))){let e=r&&a&&d7.read(a);e&&s.set(r,e)}return t},la="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,i,r,a,s,d,l=lr(e),c=l.data,m=dh.from(l.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(o),l.signal&&l.signal.removeEventListener("abort",o)}let b=new XMLHttpRequest;function _(o){if(!b)return;if(0===b.status&&"file"!==(d1(d0(l.url))||d1(dU.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){n(new dg("Request aborted",dg.ECONNABORTED,e,b)),p(),b=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!b)return;let i=dh.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());dQ(function(e){t(e),p()},function(e){n(e),p()},{data:u&&"text"!==u&&"json"!==u?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:i,config:e,request:b}),b=null}b.open(l.method.toUpperCase(),l.url,!0),b.timeout=l.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new dg("Request aborted",dg.ECONNABORTED,e,b)),p(),b=null)},b.onerror=function(t){let o=new dg(t&&t.message?t.message:"Network Error",dg.ERR_NETWORK,e,b);o.event=t||null,n(o),p(),b=null},b.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||dI;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new dg(t,o.clarifyTimeoutError?dg.ETIMEDOUT:dg.ECONNABORTED,e,b)),p(),b=null},void 0===c&&m.setContentType(null),"setRequestHeader"in b&&dt.forEach(ds(m),function(e,t){b.setRequestHeader(t,e)}),dt.isUndefined(l.withCredentials)||(b.withCredentials=!!l.withCredentials),u&&"json"!==u&&(b.responseType=l.responseType),h&&([r,s,d]=d5(h,!0),b.addEventListener("progress",r)),f&&b.upload&&([i,a]=d5(f),b.upload.addEventListener("progress",i),b.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(o=t=>{b&&(n(!t||t.type?new dX(null,e,b):t),b.abort(),p(),b=null)},l.cancelToken&&l.cancelToken.subscribe(o),l.signal&&(l.signal.aborted?o():l.signal.addEventListener("abort",o)));let g=d1(l.url);if(g&&!dU.protocols.includes(g)){n(new dg("Unsupported protocol "+g+":",dg.ERR_BAD_REQUEST,e)),p();return}b.send(c||null)})},ls=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let i=0;for(;i<o;)n=i+t,yield e.slice(i,n),i=n},ld=async function*(e,t){for await(let n of ll(e))yield*ls(n,t)},ll=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},lc=(e,t,n,o)=>{let i,r=ld(e,t),a=0,s=e=>{!i&&(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await r.next();if(t){s(),e.close();return}let i=o.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},lm=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,lu=(e,t,n)=>t+2<n&&lm(e.charCodeAt(t+1))&&lm(e.charCodeAt(t+2)),lf=e=>e<=57?e-48:(223&e)-55,lh=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,lp=e=>9===e||10===e||12===e||13===e||32===e,lb=e=>{var t;let n,o,i=e.length,r=0,a=0,s=!1;for(let t=0;t<i;t++){let n=e.charCodeAt(t);if(37===n&&lu(e,t,i)&&(n=16*lf(e.charCodeAt(t+1))+lf(e.charCodeAt(t+2)),t+=2),!lp(n)){if(61===n){a++;continue}if(!lh(n)||a>0){s=!0;continue}r++}}if(s||a>2||a>0&&(r+a)%4!=0||r%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=r)/4),3*n+(2==(o=t%4)?1:2*(3===o))},l_={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:lg}=dt,lF=e=>{if(!dt.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},lv=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ly=e=>{let t,n=void 0!==dt.global&&null!==dt.global?dt.global:globalThis,{ReadableStream:o,TextEncoder:i}=n,{fetch:r,Request:a,Response:s}=e=dt.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=r?lg(r):"function"==typeof fetch,l=lg(a),c=lg(s);if(!d)return!1;let m=d&&lg(o),u=d&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=l&&m&&lv(()=>{let e=!1,t=new a(dU.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),h=c&&m&&lv(()=>dt.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new dg(`Response type '${e}' is not supported`,dg.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(dt.isBlob(e))return e.size;if(dt.isSpecCompliantForm(e)){let t=new a(dU.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dt.isArrayBufferView(e)||dt.isArrayBuffer(e)?e.byteLength:(dt.isURLSearchParams(e)&&(e+=""),dt.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=dt.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:c,cancelToken:u,timeout:g,onDownloadProgress:F,onUploadProgress:v,responseType:y,headers:w,withCredentials:k="same-origin",fetchOptions:E,maxContentLength:x,maxBodyLength:M,maxRedirects:L}=lr(e),A=dt.isNumber(x)&&x>-1,C=dt.isNumber(M)&&M>-1,D=r||fetch;y=y?(y+"").toLowerCase():"text";let T=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,i=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof dg?t:new dX(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,i(new dg(`timeout of ${t}ms exceeded`,dg.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>dt.asap(a),s})([c,u&&u.toAbortSignal()],g),S=null,O=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),I=null,Y=()=>new dg("Request body larger than maxBodyLength limit",dg.ERR_BAD_REQUEST,e,S);try{var R,B;let r,c,u,g,P=(c="auth",dt.hasOwnProp(e,c)?e[c]:void 0);if(P){let e=dt.getSafeProp(P,"username")||"",t=dt.getSafeProp(P,"password")||"";r={username:e,password:t}}if(u=(R=n).indexOf("://"),g=R,-1!==u&&(g=g.slice(u+3)),g.includes("@")||g.includes(":")){let e=new URL(n,dU.origin);if(!r&&(e.username||e.password)){let t=lF(e.username),n=lF(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;w.delete("authorization"),w.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")){let t;if(B=n,t="string"==typeof B?B.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let o=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(o))return t(i);let r=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&lu(i,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r})(-1===t?B:B.slice(0,t),lb)>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S)}if(C&&"get"!==o&&"head"!==o){let e=await b(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>M))throw Y()}let N=C&&(dt.isReadableStream(d)||dt.isStream(d)),j=(e,t,n)=>lc(e,65536,e=>{if(C&&e>M)throw I=Y();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(v||N)){if(t=null==t?await _(w,d):t,0!==t||N){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(dt.isFormData(d)&&(e=o.headers.get("content-type"))&&w.setContentType(e),o.body){let[e,n]=v&&d6(t,d5(d3(v)))||[];d=j(o.body,e,n)}}}else if(N&&!l&&m&&"get"!==o&&"head"!==o)d=j(d);else if(N&&l&&!f&&"get"!==o&&"head"!==o)throw new dg("Stream request bodies are not supported by the current fetch implementation",dg.ERR_NOT_SUPPORT,e,S);dt.isString(k)||(k=k?"include":"omit");let H=l&&"credentials"in a.prototype;if(dt.isFormData(d)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);let z=null==E?E:Object.assign(Object.create(null),E);z&&(delete z.body,delete z.headers,delete z.method,delete z.signal,delete z.duplex,delete z.credentials);let U=Object.assign(Object.create(null),z,{signal:T,method:o.toUpperCase(),headers:ds(w.normalize()),body:d,duplex:"half",credentials:H?k:void 0});l&&(dt.forEach(l_,(e,t)=>{void 0===U[t]&&(U[t]=e)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===L&&(U.redirect="manual",z&&(z.redirect="manual")),S=l&&new a(n,U);let $=await (l?D(S,z):D(n,U)),W=dh.from($.headers);if(A){let t=dt.toFiniteNumber(W.getContentLength());if(null!=t&&t>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S)}let V=h&&("stream"===y||"response"===y);if(h&&$.body&&(F||A||V&&O)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=$[e]});let n=dt.toFiniteNumber(W.getContentLength()),[o,i]=F&&d6(n,d5(d3(F),!0))||[];$=new s(lc($.body,65536,t=>{if(A&&t>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S);o&&o(t)},()=>{i&&i(),O&&O()}),t)}y=y||"text";let q=await p[dt.findKey(p,y)||"text"]($,e);if(A&&!h&&!V){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>x)throw new dg("maxContentLength size of "+x+" exceeded",dg.ERR_BAD_RESPONSE,e,S)}return!V&&O&&O(),await new Promise((t,n)=>{dQ(t,n,{data:q,headers:dh.from($.headers),status:$.status,statusText:$.statusText,config:e,request:S})})}catch(t){if(O&&O(),T&&T.aborted&&T.reason instanceof dg){let n=T.reason;throw n.config=e,S&&(n.request=S),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw S&&!I.request&&(I.request=S),I;if(t instanceof dg)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dg("Network Error",dg.ERR_NETWORK,e,S,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dg.from(t,t&&t.code,e,S,t&&t.response)}}},lw=new Map,lk=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:i}=t,r=[o,i,n],a=r.length,s,d,l=lw;for(;a--;)s=r[a],void 0===(d=l.get(s))&&l.set(s,d=a?new Map:ly(t)),l=d;return d};lk();let lE={http:null,xhr:la,fetch:{get:lk}};dt.forEach(lE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let lx=e=>`- ${e}`,lM=e=>dt.isFunction(e)||null===e||!1===e,lL=function(e,t){let n,o,{length:i}=e=dt.isArray(e)?e:[e],r={};for(let a=0;a<i;a++){let i;if(o=n=e[a],!lM(n)&&void 0===(o=lE[(i=String(n)).toLowerCase()]))throw new dg(`Unknown adapter '${i}'`);if(o&&(dt.isFunction(o)||(o=o.get(t))))break;r[i||"#"+a]=o}if(!o){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new dg("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(lx).join("\n"):" "+lx(e[0]):"as no adapter specified"),dg.ERR_NOT_SUPPORT)}return o};function lA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dX(null,e)}function lC(e){let t=dt.toSafeFlatObject(e);return lA(t),t.headers=dh.from(dt.getSafeProp(t,"headers")),t.data=dK.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),lL(t.adapter||dG.adapter,t)(t).then(function(e){lA(t),t.response=e;try{e.data=dK.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=dh.from(e.headers),e},function(e){if(!dJ(e)&&(lA(t),e&&e.response)){t.response=e.response;try{e.response.data=dK.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=dh.from(e.response.headers)}return Promise.reject(e)})}let lD={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lD[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let lT={};lD.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,r)=>{if(!1===e)throw new dg(o(i," has been removed"+(t?" in "+t:"")),dg.ERR_DEPRECATED);return t&&!lT[i]&&(lT[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,r)}},lD.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let lS=function(e,t,n){if("object"!=typeof e||null===e)throw new dg("options must be an object",dg.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),i=o.length;for(;i-- >0;){let r=o[i],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new dg("option "+r+" must be "+n,dg.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dg("Unknown option "+r,dg.ERR_BAD_OPTION)}};class lO{constructor(e){this.defaults=e||{},this.interceptors={request:new dO,response:new dO}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,o="";if("string"==typeof n){let e=n.indexOf("\n");o=-1===e?"":n.slice(e+1)}if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),i=-1===n?"":o.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:r,headers:a}=t=lo(this.defaults,t);void 0!==i&&lS(i,{silentJSONParsing:lD.transitional(lD.boolean),forcedJSONParsing:lD.transitional(lD.boolean),clarifyTimeoutError:lD.transitional(lD.boolean),legacyInterceptorReqResOrdering:lD.transitional(lD.boolean),advertiseZstdAcceptEncoding:lD.transitional(lD.boolean),validateStatusUndefinedResolves:lD.transitional(lD.boolean)},!1),null!=r&&(dt.isFunction(r)?t.paramsSerializer={serialize:r}:lS(r,{encode:lD.function,serialize:lD.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lS(t,{baseUrl:lD.spelling("baseURL"),withXsrfToken:lD.spelling("withXSRFToken")},!0),t.method=(dt.getSafeProp(t,"method")||dt.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&dt.merge(a.common,a[t.method]);a&&dt.forEach(dV.concat("common"),e=>{delete a[e]}),t.headers=dh.concat(s,a);let d=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let n=t.transitional||dI;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let m=0;if(!l){let e=[lC.bind(this),void 0];for(e.unshift(...d),e.push(...c),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let o=t.call(this,e);dt.isThenable(o)&&(n=Promise.resolve(o).then(()=>lC.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=lC.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=c.length;m<o;)n=n.then(c[m++],c[m++]);return n}getUri(e){return dA(lt((e=lo(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}dt.forEach(["delete","get","head","options"],function(e){lO.prototype[e]=function(t,n){return this.request(lo(n||{},{method:e,url:t,data:n&&dt.hasOwnProp(n,"data")?n.data:void 0}))}}),dt.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,i){return this.request(lo(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}lO.prototype[e]=t(),"query"!==e&&(lO.prototype[e+"Form"]=t(!0))});let lI=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,i){n.reason||(n.reason=new dX(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},lY={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lY).forEach(([e,t])=>{void 0===lY[t]&&(lY[t]=e)});let lR=function e(t){let n=new lO(t),o=sF(lO.prototype.request,n);return dt.extend(o,lO.prototype,n,{allOwnKeys:!0}),dt.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(lo(t,n))},o}(dG);lR.Axios=lO,lR.CanceledError=dX,lR.CancelToken=lI,lR.isCancel=dJ,lR.VERSION="1.20.0",lR.toFormData=dk,lR.AxiosError=dg,lR.Cancel=lR.CanceledError,lR.all=function(e){return Promise.all(e)},lR.spread=function(e){return function(t){return e.apply(null,t)}},lR.isAxiosError=function(e){return dt.isObject(e)&&!0===e.isAxiosError},lR.mergeConfig=lo,lR.AxiosHeaders=dh,lR.formToJSON=e=>dW(dt.isHTMLForm(e)?new FormData(e):e),lR.getAdapter=lL,lR.HttpStatusCode=lY,lR.default=lR;class lB{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l6`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`asset/predicted/${e}/${t}`,data:n,options:o})}}class lP{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:l6`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:l6`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:l6`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:l6`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:l6`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:l6`notification/${e}/delivered`,queryParams:t,options:n})}}class lN{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l6`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:l6`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:l6`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l6`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:l6`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l6`realm/${e}`,data:t,options:n})}}class lj{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:l6`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:l6`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:l6`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:l6`provisioning/${e}`,data:t,options:n})}}class lH{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:l6`console/register`,data:e,options:t})}}class lz{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:l6`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:l6`configuration/manager`,data:e,options:t})}imageUpload(e,t,n){return this.httpClient.request({method:"POST",url:l6`configuration/manager/image`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:l6`configuration/manager/image/${e}`,options:t})}}class lU{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l6`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:l6`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:l6`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l6`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:l6`dashboard/${e}/${t}`,options:n})}}class l${constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l6`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:l6`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:l6`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class lW{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:l6`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:l6`info`,options:e})}}class lV{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:l6`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:l6`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:l6`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:l6`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,i){return this.httpClient.request({method:"GET",url:l6`gateway/tunnel/${e}/${t}/${n}/${o}`,options:i})}}class lq{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:l6`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:l6`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:l6`flow/${e}`,options:t})}}class lG{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:l6`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:l6`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:l6`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:l6`syslog/event`,queryParams:e,options:t})}}class lK{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:l6`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:l6`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:l6`apps/info`,options:e})}}class lJ{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:l6`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:l6`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:l6`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:l6`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:l6`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:l6`map/upload`,queryParams:e,options:t})}}class lX{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:l6`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:l6`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:l6`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:l6`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:l6`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:l6`service/${e}/${t}`,options:n})}}class lQ{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:l6`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:l6`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:l6`asset/datapoint/${e}/${t}`,data:n,options:o})}}class lZ{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:l6`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:l6`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:l6`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:l6`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:l6`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:l6`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:l6`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:l6`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:l6`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:l6`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l6`user/${e}/userRoles/${t}/${n}`,data:o,options:i})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:l6`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l6`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:l6`user/${e}/${t}`,options:n})}}class l0{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:l6`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:l6`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:l6`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l6`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l6`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:l6`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:l6`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l6`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:l6`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:l6`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:l6`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:l6`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l6`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:l6`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:l6`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:l6`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:l6`rules/${e}`,data:t,options:n})}}class l1{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:l6`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:l6`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:l6`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:l6`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:l6`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:l6`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:l6`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:l6`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:l6`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:l6`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l6`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:l6`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:l6`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:l6`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:l6`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:l6`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:l6`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:l6`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,i){return this.httpClient.request({method:"PUT",url:l6`asset/${e}/attribute/${t}/${n}`,data:o,options:i})}exportConfigurationTemplate(e,t,n){return this.httpClient.request({method:"GET",url:l6`asset/${e}/configurationTemplate`,queryParams:t,options:n})}previewConfigurationTemplateImport(e,t,n){return this.httpClient.request({method:"POST",url:l6`asset/${e}/configurationTemplate/import`,data:t,options:n})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:l6`asset/${e}/child`,queryParams:t,options:n})}}class l2{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:l6`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:l6`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:l6`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:l6`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:l6`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:l6`model/valueDescriptors`,queryParams:e,options:t})}}class l4{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:l6`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:l6`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:l6`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:l6`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:l6`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:l6`gateway/status/${e}`,options:t})}}class l5{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:l6`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:l6`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:l6`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:l6`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:l6`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:l6`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:l6`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:l6`alarm/${e}/assets`,queryParams:t,options:n})}}function l6(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class l3{constructor(e,t=lR.create()){this._assetPredictedDatapointResource=new l7(e,t),this._notificationResource=new l9(e,t),this._realmResource=new ce(e,t),this._provisioningResource=new ct(e,t),this._consoleResource=new cn(e,t),this._configurationResource=new co(e,t),this._dashboardResource=new ci(e,t),this._agentResource=new cr(e,t),this._statusResource=new ca(e,t),this._gatewayServiceResource=new cs(e,t),this._flowResource=new cd(e,t),this._syslogResource=new cl(e,t),this._appResource=new cc(e,t),this._mapResource=new cm(e,t),this._externalServiceResource=new cu(e,t),this._assetDatapointResource=new cf(e,t),this._userResource=new ch(e,t),this._rulesResource=new cp(e,t),this._assetResource=new cb(e,t),this._assetModelResource=new c_(e,t),this._gatewayClientResource=new cg(e,t),this._alarmResource=new cF(e,t),this._assetResource=new cb(e,t)}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get NotificationResource(){return this._notificationResource}get RealmResource(){return this._realmResource}get ProvisioningResource(){return this._provisioningResource}get ConsoleResource(){return this._consoleResource}get ConfigurationResource(){return this._configurationResource}get DashboardResource(){return this._dashboardResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get GatewayServiceResource(){return this._gatewayServiceResource}get FlowResource(){return this._flowResource}get SyslogResource(){return this._syslogResource}get AppResource(){return this._appResource}get MapResource(){return this._mapResource}get ExternalServiceResource(){return this._externalServiceResource}get AssetDatapointResource(){return this._assetDatapointResource}get UserResource(){return this._userResource}get RulesResource(){return this._rulesResource}get AssetResource(){return this._assetResource}get AssetModelResource(){return this._assetModelResource}get GatewayClientResource(){return this._gatewayClientResource}get AlarmResource(){return this._alarmResource}}class l8{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class l7 extends lB{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class l9 extends lP{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ce extends lN{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ct extends lj{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cn extends lH{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class co extends lz{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ci extends lU{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cr extends l${constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ca extends lW{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cs extends lV{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cd extends lq{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cl extends lG{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cc extends lK{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cm extends lJ{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cu extends lX{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cf extends lQ{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class ch extends lZ{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cp extends l0{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cb extends l1{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class c_ extends l2{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cg extends l4{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}class cF extends l5{constructor(e,t=lR.create()){t.defaults.baseURL=e,super(new l8(t))}}var cv=n(8183),cy=n.n(cv);lR.isAxiosError;let cw=new class{get api(){return this._client}constructor(){this._axiosInstance=lR.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cy().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new l3(e,this._axiosInstance)}};var ck=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{d(o.next(e))}catch(e){r(e)}}function s(e){try{d(o.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ek=tA||(tA={})).DISCONNECTED="DISCONNECTED",ek.CONNECTED="CONNECTED",ek.CONNECTING="CONNECTING";let cE="SUBSCRIBED:",cx="UNAUTHORIZED:",cM="TRIGGERED:",cL="EVENT:";class cA{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=cC.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){sr(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tA.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tA.CONNECTING),this._connectingDeferred=new so,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=cC.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new so};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,t.cancelled?this._doUnsubscribe(e):this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;if(this._pendingSubscription=null,this._processNextSubscription(),t.cancelled)return void this._resolveCancelledSubscription(t);let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ck(this,void 0,void 0,function*(){var t;if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);let n=this._queuedSubscriptions.find(t=>t.eventSubscription.subscriptionId===e);if(n){sr(this._queuedSubscriptions,n),this._resolveCancelledSubscription(n);return}if((null==(t=this._pendingSubscription)?void 0:t.eventSubscription.subscriptionId)===e){this._pendingSubscription.cancelled=!0;return}if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ck(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,i="AssetEvent"+cA._subscriptionCounter++;if(!this._assetEventPromise){let e;mr.authenticated||(e={filterType:"asset",realm:mr.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))}).catch(e=>{throw this._assetEventPromise=void 0,e})}return this._assetEventCallbackMap.set(i,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===mr.displayRealm&&n(e)}),this._assetEventPromise.catch(()=>this._assetEventCallbackMap.delete(i)),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+i,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(i)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),i&&this.unsubscribe(i),t}return i})})}subscribeAttributeEvents(e,t,n){return ck(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],i=o?e.map(e=>e.id):e,r=o?e:void 0,a="AttributeEvent"+cA._subscriptionCounter++;if(!this._attributeEventPromise){let e;mr.authenticated||(e={filterType:"asset",realm:mr.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))}).catch(e=>{throw this._attributeEventPromise=void 0,e})}let s=t=>{let r=t.ref;o?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):i?i.find(e=>r.id===e)&&n(t):t.realm===mr.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.catch(()=>this._attributeEventCallbackMap.delete(a)),this._attributeEventPromise.then(()=>{try{if(t&&i){let e={messageID:"read-assets:"+i.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){this._subscriptionMap.forEach(e=>this._queuedSubscriptions.unshift(e)),this._subscriptionMap.clear(),this._processNextSubscription()}_onDisconnect(){if(this._status===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription){let e=this._pendingSubscription;this._pendingSubscription=null,e.cancelled?this._resolveCancelledSubscription(e):this._queuedSubscriptions.unshift(e)}this._onStatusChanged(tA.CONNECTING),this._scheduleReconnect()}_resolveCancelledSubscription(e){var t;null==(t=e.deferred)||t.resolve(e.eventSubscription.subscriptionId),e.deferred=null}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<cC.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(cC.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}cA.MIN_RECONNECT_DELAY=0,cA.MAX_RECONNECT_DELAY=3e4,cA._subscriptionCounter=0;class cC extends cA{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){this._discardWebSocket();let e=this._endpointUrl+"?Realm="+mr.config.realm;return this._connectDeferred=new so,(mr.authenticated?mr.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(cE)){let e=JSON.parse(t.substring(cE.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(cx)){let e=JSON.parse(t.substring(cx.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(cM)){let e=JSON.parse(t.substring(cM.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cL)){let e=JSON.parse(t.substring(cL.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_discardWebSocket(){this._webSocket&&(this._webSocket.onopen=null,this._webSocket.onerror=null,this._webSocket.onclose=null,this._webSocket.onmessage=null,this._webSocket.close(),this._webSocket=void 0)}_beforeDisconnect(){this._subscribeDeferred=null,this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new so,e.subscriptionId||(e.subscriptionId=cC._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=cL+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new so;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cL+JSON.stringify(e)),t.promise}}cC._subscriptionCounter=1;let cD=["__proto__","constructor","prototype"];function cT(e){return!("string"!=typeof e||0===e.length||e.length>128||cD.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:&=;\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cS(e){return!(!cT(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let cO={lng:cS,ns:function(e){return!(!cT(e)||e.indexOf("//")>-1)}};function cI(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cY(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cR=/\{\{(.+?)\}\}/g,cB=/^[/\\]{2}/;function cP(e,t){let n=!1,o=e.replace(cR,(e,o)=>{let i=o.trim();if(cD.indexOf(i)>-1)return e;let r=t[i];if(null==r)return e;let a=cO[i]||cS,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n||cB.test(o)&&!cB.test(e)?null:o}let cN="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?r=fetch:cN&&"function"==typeof cN.fetch&&(r=cN.fetch);let cj=cY()&&cN?cN.XMLHttpRequest:void 0,cH="function"==typeof ActiveXObject&&cN?cN.ActiveXObject:void 0,cz=["__proto__","constructor","prototype"],cU=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))cz.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},c$=(e,t,n,o)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(o){let r=o(e,t);if(r instanceof Promise)return void r.then(i).catch(n)}"function"==typeof fetch?fetch(e,t).then(i).catch(n):r(e,t).then(i).catch(n)},cW=(e,t,n,o)=>{if("function"==typeof n&&(o=n,n=void 0),o=o||(()=>{}),r&&0!==t.indexOf("file:")){var i=t,a=n,s=o;e.queryStringParams&&(i=cU(i,e.queryStringParams));let r={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(r["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(r["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,l={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:r,...e._omitFetchOptions?{}:d},c="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{c$(i,l,s,c)}catch(t){if(!d||0===Object.keys(d).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(d).forEach(e=>{delete l[e]}),c$(i,l,s,c),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(cY()||"function"==typeof ActiveXObject){var d=t,l=n,c=o;l&&"object"==typeof l&&(l=cU("",l).slice(1)),e.queryStringParams&&(d=cU(d,e.queryStringParams));try{let t=cj?new cj:new cH("MSXML2.XMLHTTP.3.0");t.open(l?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,l&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=e.customHeaders;if(n="function"==typeof n?n():n)for(let e of Object.keys(n))cz.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&c(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(l)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var cV=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:cW,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,i){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return i(null,{});let a=cP(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return i(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cI).join(", ")+"] namespaces=["+n.map(cI).join(", ")+"]"),!1);this.loadUrl(a,i,t,o)})}loadUrl(e,t,n,o){let i=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),r=cI(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,i,(e,i)=>{let a,s;if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+r+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+r+"; status code: "+i.status,!1);if(!i&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+cI(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof i.data?this.options.parse(i.data,n,o):i.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,i){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let l=cP(o,{lng:n,ns:t});if(null==l){a+=1,i&&a===e.length&&i(s,d);return}this.options.request(this.options,l,r,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof i&&i(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let i=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>i.indexOf(e)&&i.push(e)})};r(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),i.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(i,r)=>{i&&n.warn(`loading namespace ${o} for language ${t} failed`,i),!i&&r&&n.log(`loaded namespace ${o} for language ${t}`,r),e.loaded(`${t}|${o}`,i,r)})})})}};cV.type="backend";class cq extends rn{constructor(e){if(super(e),this.it=nb,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nb||null==e)return this._t=void 0,this.it=e;if(e===np)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cq.directiveName="unsafeHTML",cq.resultType=1,rt(cq);class cG extends cq{}cG.directiveName="unsafeSVG",cG.resultType=2;let cK=rt(cG),cJ={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var cX=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class cQ extends CustomEvent{constructor(){super(cQ.NAME,{bubbles:!0,composed:!0})}}cQ.NAME="or-iconset-added";let cZ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cQ)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nh``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),i=this._defaultIconSet;return(o&&(i=this.getIconSet(o)),n&&i)?i.getIconTemplate(n):nh``}},c0=class extends nR{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tH`
1609
1609
  :host {
1610
1610
  --internal-or-icon-width: var(--or-icon-width, 24px);
1611
1611
  --internal-or-icon-height: var(--or-icon-height, 24px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-asset-tree",
3
- "version": "1.35.0-snapshot.20261124123208",
3
+ "version": "1.35.0",
4
4
  "description": "OpenRemote Asset Tree",
5
5
  "customElements": "build/custom-elements.json",
6
6
  "main": "build/dist/umd/index.bundle.js",
@@ -28,19 +28,19 @@
28
28
  "license": "AGPL-3.0-or-later",
29
29
  "dependencies": {
30
30
  "@mdi/js": "^5.9.55",
31
- "@openremote/core": "1.35.0-snapshot.20261124123208",
32
- "@openremote/model": "1.35.0-snapshot.20261124123208",
33
- "@openremote/or-element": "1.35.0-snapshot.20261124123208",
34
- "@openremote/or-icon": "1.35.0-snapshot.20261124123208",
35
- "@openremote/or-mwc-components": "1.35.0-snapshot.20261124123208",
36
- "@openremote/or-translate": "1.35.0-snapshot.20261124123208",
37
- "@openremote/or-vaadin-components": "1.35.0-snapshot.20261124123208",
31
+ "@openremote/core": "1.35.0",
32
+ "@openremote/model": "1.35.0",
33
+ "@openremote/or-element": "1.35.0",
34
+ "@openremote/or-icon": "1.35.0",
35
+ "@openremote/or-mwc-components": "1.35.0",
36
+ "@openremote/or-translate": "1.35.0",
37
+ "@openremote/or-vaadin-components": "1.35.0",
38
38
  "lit": "^3.3.1",
39
39
  "lodash.debounce": "^4.0.8",
40
40
  "qs": "^6.16.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@openremote/util": "1.35.0-snapshot.20261124123208",
43
+ "@openremote/util": "1.35.0",
44
44
  "@types/lodash.debounce": "^4"
45
45
  },
46
46
  "publishConfig": {