@openremote/or-attribute-input 1.30.0-snapshot.20260902122509 → 1.30.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.
@@ -73,7 +73,7 @@ ${s.shaderPreludeCode.vertexSource}`,define:s.shaderDefine},defaultProjectionDat
73
73
  :host([hidden]) {
74
74
  display: none;
75
75
  }
76
- `,t7([eV({type:String})],t9.prototype,"value",void 0),t7([eV({type:Object})],t9.prototype,"options",void 0),t9=t7([ez("or-translate")],t9),(hU=pJ||(pJ={})).CREATE="CREATE",hU.UPDATE="UPDATE",hU.DELETE="DELETE",(hH=pQ||(pQ={})).LOW="LOW",hH.MEDIUM="MEDIUM",hH.HIGH="HIGH",(hq=p0||(p0={})).MANUAL="MANUAL",hq.CLIENT="CLIENT",hq.GLOBAL_RULESET="GLOBAL_RULESET",hq.REALM_RULESET="REALM_RULESET",hq.ASSET_RULESET="ASSET_RULESET",hq.AGENT="AGENT",(hW=p1||(p1={})).OPEN="OPEN",hW.ACKNOWLEDGED="ACKNOWLEDGED",hW.IN_PROGRESS="IN_PROGRESS",hW.RESOLVED="RESOLVED",hW.CLOSED="CLOSED",(hG=p2||(p2={})).BOTTOM_LEFT="BOTTOM_LEFT",hG.BOTTOM_RIGHT="BOTTOM_RIGHT",hG.TOP_LEFT="TOP_LEFT",hG.TOP_RIGHT="TOP_RIGHT",(hY=p5||(p5={})).CREATE="CREATE",hY.READ="READ",hY.UPDATE="UPDATE",hY.DELETE="DELETE",(hK=p3||(p3={})).NONE="NONE",hK.FORECAST="FORECAST",hK.SETPOINT="SETPOINT",(hX=p4||(p4={})).DISCONNECTED="DISCONNECTED",hX.CONNECTING="CONNECTING",hX.DISCONNECTING="DISCONNECTING",hX.CONNECTED="CONNECTED",hX.DISABLED="DISABLED",hX.WAITING="WAITING",hX.ERROR="ERROR",hX.STOPPED="STOPPED",(hZ=p6||(p6={})).REQUEST_START="REQUEST_START",hZ.REQUEST_REPEATING="REQUEST_REPEATING",hZ.REQUEST_CANCEL="REQUEST_CANCEL",hZ.READY="READY",hZ.COMPLETED="COMPLETED",hZ.RUNNING="RUNNING",hZ.CANCELLED="CANCELLED",(hJ=p8||(p8={})).TOGGLE="TOGGLE",hJ.INCREMENT="INCREMENT",hJ.DECREMENT="DECREMENT",hJ.NEGATE="NEGATE",(hQ=p7||(p7={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",hQ.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",hQ.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",hQ.INVALID_VALUE="INVALID_VALUE",hQ.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",hQ.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",hQ.CANNOT_PROCESS="CANNOT_PROCESS",hQ.QUEUE_FULL="QUEUE_FULL",hQ.UNKNOWN="UNKNOWN",hQ.ASSET_ID_MISSING="ASSET_ID_MISSING",hQ.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(h0=p9||(p9={})).PUBLIC="PUBLIC",h0.SHARED="SHARED",h0.PRIVATE="PRIVATE",(h1=me||(me={})).OFF="OFF",h1.ONE_MIN="ONE_MIN",h1.FIVE_MIN="FIVE_MIN",h1.QUARTER="QUARTER",h1.ONE_HOUR="ONE_HOUR",(h2=mt||(mt={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",h2.KEEP_LAYOUT="KEEP_LAYOUT",h2.REDIRECT="REDIRECT",h2.BLOCK_DEVICE="BLOCK_DEVICE",(h5=mn||(mn={})).CSV="CSV",h5.CSV_CROSSTAB="CSV_CROSSTAB",h5.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(h3=mi||(mi={})).MINUTE="MINUTE",h3.HOUR="HOUR",h3.DAY="DAY",h3.WEEK="WEEK",h3.MONTH="MONTH",h3.YEAR="YEAR",(h4=mr||(mr={})).MIN="MIN",h4.AVG="AVG",h4.MAX="MAX",h4.DIFFERENCE="DIFFERENCE",h4.COUNT="COUNT",h4.SUM="SUM",h4.MODE="MODE",h4.MEDIAN="MEDIAN",(h6=mo||(mo={})).TERMINATING="TERMINATING",h6.DISABLED="DISABLED",h6.ALREADY_CONNECTED="ALREADY_CONNECTED",h6.UNRECOGNISED="UNRECOGNISED",h6.PERMANENT_ERROR="PERMANENT_ERROR",h6.SYNC_ERROR="SYNC_ERROR",(h8=ma||(ma={})).HTTPS="HTTPS",h8.HTTP="HTTP",h8.TCP="TCP",(h7=ms||(ms={})).GET="GET",h7.POST="POST",h7.PUT="PUT",h7.DELETE="DELETE",h7.OPTIONS="OPTIONS",h7.PATCH="PATCH",(h9=ml||(ml={})).KEYCLOAK="KEYCLOAK",h9.NONE="NONE",(pe=mc||(mc={})).WEBSOCKET="WEBSOCKET",pe.POLLING="POLLING",(pt=md||(md={})).INTERNAL="INTERNAL",pt.CLIENT="CLIENT",pt.GLOBAL_RULESET="GLOBAL_RULESET",pt.REALM_RULESET="REALM_RULESET",pt.ASSET_RULESET="ASSET_RULESET",(pn=mu||(mu={})).REALM="REALM",pn.USER="USER",pn.ASSET="ASSET",pn.CUSTOM="CUSTOM",(pi=mh||(mh={})).NORMAL="NORMAL",pi.HIGH="HIGH",(pr=mp||(mp={})).DEVICE="DEVICE",pr.TOPIC="TOPIC",pr.CONDITION="CONDITION",(po=mm||(mm={})).ALWAYS="ALWAYS",po.ONCE="ONCE",po.HOURLY="HOURLY",po.DAILY="DAILY",po.WEEKLY="WEEKLY",po.MONTHLY="MONTHLY",po.ANNUALLY="ANNUALLY",(pa=mf||(mf={})).TITLE="TITLE",pa.SOURCE="SOURCE",pa.STATUS="STATUS",pa.SENT_ON="SENT_ON",pa.DELIVERED_ON="DELIVERED_ON",(ps=mg||(mg={})).MESSAGE_INVALID="MESSAGE_INVALID",ps.CERTIFICATE_INVALID="CERTIFICATE_INVALID",ps.UNAUTHORIZED="UNAUTHORIZED",ps.FORBIDDEN="FORBIDDEN",ps.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",ps.CONFIG_DISABLED="CONFIG_DISABLED",ps.USER_DISABLED="USER_DISABLED",ps.SERVER_ERROR="SERVER_ERROR",ps.ASSET_ERROR="ASSET_ERROR",ps.SERVER_BUSY="SERVER_BUSY",(pl=mb||(mb={})).PRIVATE="PRIVATE",pl.PROTECTED="PROTECTED",pl.PUBLIC="PUBLIC",(pc=mv||(mv={})).EXACT="EXACT",pc.BEGIN="BEGIN",pc.END="END",pc.CONTAINS="CONTAINS",(pd=m_||(m_={})).EQUALS="EQUALS",pd.GREATER_THAN="GREATER_THAN",pd.GREATER_EQUALS="GREATER_EQUALS",pd.LESS_THAN="LESS_THAN",pd.LESS_EQUALS="LESS_EQUALS",pd.BETWEEN="BETWEEN",(pu=my||(my={})).CREATED_ON="CREATED_ON",pu.NAME="NAME",pu.ASSET_TYPE="ASSET_TYPE",pu.PARENT_ID="PARENT_ID",pu.REALM="REALM",(ph=mx||(mx={})).RESTRICTED="RESTRICTED",ph.LINKED="LINKED",ph.REALM="REALM",(pp=mw||(mw={})).AT_LEAST_ONE="AT_LEAST_ONE",pp.ALL="ALL",pp.NONE="NONE",(pm=mF||(mF={})).AND="AND",pm.OR="OR",(pf=mE||(mE={})).CREATED_ON="CREATED_ON",pf.FIRST_NAME="FIRST_NAME",pf.LAST_NAME="LAST_NAME",pf.USERNAME="USERNAME",pf.EMAIL="EMAIL",(pg=mk||(mk={})).STOPPED="STOPPED",pg.RUNNING="RUNNING",pg.ERROR="ERROR",(pb=mC||(mC={})).JAVASCRIPT="JAVASCRIPT",pb.GROOVY="GROOVY",pb.JSON="JSON",pb.FLOW="FLOW",(pv=mA||(mA={})).READY="READY",pv.DEPLOYED="DEPLOYED",pv.COMPILATION_ERROR="COMPILATION_ERROR",pv.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",pv.EXECUTION_ERROR="EXECUTION_ERROR",pv.LOOP_ERROR="LOOP_ERROR",pv.DISABLED="DISABLED",pv.PAUSED="PAUSED",pv.EXPIRED="EXPIRED",pv.REMOVED="REMOVED",pv.EMPTY="EMPTY",(p_=mT||(mT={})).SUNRISE="SUNRISE",p_.SUNSET="SUNSET",p_.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",p_.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",p_.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",p_.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",p_.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",p_.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",p_.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",p_.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",p_.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",p_.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",p_.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",p_.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",p_.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",p_.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",p_.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",p_.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",p_.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",p_.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(py=mS||(mS={})).NUMBER="NUMBER",py.NUMBER_ARRAY="NUMBER_ARRAY",py.STRING="STRING",py.BOOLEAN="BOOLEAN",py.TRIGGER="TRIGGER",py.COLOR="COLOR",py.ANY="ANY",(px=mI||(mI={})).NEW_LINE="NEW_LINE",px.SPACER="SPACER",(pw=mD||(mD={})).INPUT="INPUT",pw.PROCESSOR="PROCESSOR",pw.OUTPUT="OUTPUT",pw.THEN="THEN",(pF=mM||(mM={})).TEXT="TEXT",pF.MULTILINE="MULTILINE",pF.NUMBER="NUMBER",pF.DROPDOWN="DROPDOWN",pF.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",pF.CHECKBOX="CHECKBOX",pF.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",pF.COLOR="COLOR",pF.DATE="DATE",(pE=mR||(mR={})).ADD="ADD",pE.ADD_OR_REPLACE="ADD_OR_REPLACE",pE.REPLACE="REPLACE",pE.DELETE="DELETE",pE.CLEAR="CLEAR",(pk=mO||(mO={})).PER_ASSET="PER_ASSET",pk.GLOBAL="GLOBAL",(pC=mL||(mL={})).READ_ADMIN="read:admin",pC.READ_LOGS="read:logs",pC.READ_USERS="read:users",pC.READ_MAP="read:map",pC.READ_ASSETS="read:assets",pC.READ_RULES="read:rules",pC.READ_INSIGHTS="read:insights",pC.READ_ALARMS="read:alarms",pC.READ_NOTIFICATIONS="read:notifications",pC.READ_SERVICES="read:services",pC.WRITE_SERVICES="write:services",pC.WRITE_USER="write:user",pC.WRITE_ADMIN="write:admin",pC.WRITE_LOGS="write:logs",pC.WRITE_ASSETS="write:assets",pC.WRITE_ATTRIBUTES="write:attributes",pC.WRITE_RULES="write:rules",pC.WRITE_INSIGHTS="write:insights",pC.WRITE_ALARMS="write:alarms",pC.WRITE_NOTIFICATIONS="write:notifications",pC.READ="read",pC.WRITE="write",(pA=mP||(mP={})).REGISTER="REGISTER",pA.UPDATE="UPDATE",pA.DEREGISTER="DEREGISTER",(pT=m$||(m$={})).AVAILABLE="AVAILABLE",pT.UNAVAILABLE="UNAVAILABLE",(pS=mB||(mB={})).ASSET="ASSET",pS.AGENT="AGENT",pS.NOTIFICATION="NOTIFICATION",pS.ALARM="ALARM",pS.RULES="RULES",pS.PROTOCOL="PROTOCOL",pS.GATEWAY="GATEWAY",pS.MODEL_AND_VALUES="MODEL_AND_VALUES",pS.API="API",pS.DATA="DATA",(pI=mN||(mN={})).INFO="INFO",pI.WARN="WARN",pI.ERROR="ERROR",(pD=mz||(mz={})).NUMERIC="numeric",pD.DIGIT_2="2-digit",pD.FULL="full",pD.LONG="long",pD.MEDIUM="medium",pD.SHORT="short",pD.NARROW="narrow",(pM=mj||(mj={})).SECONDLY="SECONDLY",pM.MINUTELY="MINUTELY",pM.HOURLY="HOURLY",pM.DAILY="DAILY",pM.WEEKLY="WEEKLY",pM.MONTHLY="MONTHLY",pM.YEARLY="YEARLY",(pR=mV||(mV={})).OMIT="OMIT",pR.BACKWARD="BACKWARD",pR.FORWARD="FORWARD",(pO=mU||(mU={})).JAPANESE="JAPANESE",pO.BUDDHIST="BUDDHIST",pO.ROC="ROC",pO.ISLAMIC="ISLAMIC",pO.ISO8601="ISO8601",pO.CHINESE="CHINESE",pO.ETHIOPIC="ETHIOPIC",pO.HEBREW="HEBREW",pO.GREGORIAN="GREGORIAN",(pL=mH||(mH={})).SU="SU",pL.MO="MO",pL.TU="TU",pL.WE="WE",pL.TH="TH",pL.FR="FR",pL.SA="SA",(pP=mq||(mq={})).PEOPLECOUNTERASSET="PeopleCounterAsset",pP.MAILAGENT="MailAgent",pP.UDPAGENT="UDPAgent",pP.ROOMASSET="RoomAsset",pP.CITYASSET="CityAsset",pP.VENTILATIONASSET="VentilationAsset",pP.TRADFRILIGHTASSET="TradfriLightAsset",pP.CONSOLEASSET="ConsoleAsset",pP.PRESENCESENSORASSET="PresenceSensorAsset",pP.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",pP.LIGHTASSET="LightAsset",pP.KNXAGENT="KNXAgent",pP.THETHINGSSTACKAGENT="TheThingsStackAgent",pP.PLUGASSET="PlugAsset",pP.CHIRPSTACKAGENT="ChirpStackAgent",pP.WEATHERASSET="WeatherAsset",pP.THINGASSET="ThingAsset",pP.WEBSOCKETAGENT="WebsocketAgent",pP.TCPAGENT="TCPAgent",pP.GATEWAYASSET="GatewayAsset",pP.SERIALAGENT="SerialAgent",pP.BLUETOOTHMESHAGENT="BluetoothMeshAgent",pP.PARKINGASSET="ParkingAsset",pP.TRADFRIPLUGASSET="TradfriPlugAsset",pP.SIMULATORAGENT="SimulatorAgent",pP.SNMPAGENT="SNMPAgent",pP.GROUPASSET="GroupAsset",pP.BUILDINGASSET="BuildingAsset",pP.MODBUSSERIALAGENT="ModbusSerialAgent",pP.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",pP.MQTTAGENT="MQTTAgent",pP.VELBUSTCPAGENT="VelbusTCPAgent",pP.ARTNETLIGHTASSET="ArtnetLightAsset",pP.VELBUSSERIALAGENT="VelbusSerialAgent",pP.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",pP.MICROPHONEASSET="MicrophoneAsset",pP.MODBUSTCPAGENT="ModbusTcpAgent",pP.ZWAVEAGENT="ZWaveAgent",pP.HTTPAGENT="HTTPAgent",pP.DOORASSET="DoorAsset",pP.THERMOSTATASSET="ThermostatAsset",pP.SHIPASSET="ShipAsset",(p$=mW||(mW={})).COLOURRGB="colourRGB",p$.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",p$.PRICEHOURLY="priceHourly",p$.MQTTPORT="MQTTPort",p$.PINGDISABLED="pingDisabled",p$.FLOW="flow",p$.CHILDASSETTYPE="childAssetType",p$.LASTACCESS="lastAccess",p$.POSITION="position",p$.NETWORKKEY="networkKey",p$.UNIVERSE="universe",p$.ROUTINGMODE="routingMode",p$.MSSINUMBER="MSSINumber",p$.LASTWILLRETAIN="lastWillRetain",p$.LASTWILLTOPIC="lastWillTopic",p$.SERIALBAUDRATE="serialBaudrate",p$.SUBSCRIBEQOS="subscribeQos",p$.LEDCOUNT="lEDCount",p$.LOCKED="locked",p$.CLOUDCOVERAGE="cloudCoverage",p$.BASEURL="baseURL",p$.PROTOCOL="protocol",p$.REQUIREDVALUES="requiredValues",p$.REGION="region",p$.CONSOLEPLATFORM="consolePlatform",p$.GATEWAYSTATUS="gatewayStatus",p$.NO2LEVEL="NO2Level",p$.ATMOSPHERICPRESSURE="atmosphericPressure",p$.SERIALPORT="serialPort",p$.APPLICATIONID="applicationId",p$.TAGS="tags",p$.UNLOCK="unlock",p$.CHECKINTERVALSECONDS="checkIntervalSeconds",p$.LOCATION="location",p$.CLIENTSECRET="clientSecret",p$.WINDDIRECTION="windDirection",p$.WINDSPEED="windSpeed",p$.PARTICLESPM10="particlesPM10",p$.APPLICATIONKEY="applicationKey",p$.LENGTH="length",p$.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",p$.USERNAMEPASSWORD="usernamePassword",p$.WATERLEVEL="waterLevel",p$.CONNECTHEADERS="connectHeaders",p$.CONSOLENAME="consoleName",p$.WEBSOCKETQUERY="websocketQuery",p$.PREFERHTML="preferHTML",p$.PARITY="parity",p$.COOLING="cooling",p$.POLLINGMILLIS="pollingMillis",p$.SOILTEMPERATURE="soilTemperature",p$.SUNIRRADIANCE="sunIrradiance",p$.MESSAGEMAXLENGTH="messageMaxLength",p$.WINDGUSTSPEED="windGustSpeed",p$.LIGHTID="lightId",p$.PROXYADDRESS="proxyAddress",p$.REQUESTQUERYPARAMETERS="requestQueryParameters",p$.MQTTHOST="MQTTHost",p$.SECUREGRPC="secureGRPC",p$.MODEL="model",p$.STREET="street",p$.MANUFACTURER="manufacturer",p$.DELETEPROCESSEDMAIL="deleteProcessedMail",p$.RESUMESESSION="resumeSession",p$.ONOFF="onOff",p$.APIKEY="ApiKey",p$.CITY="city",p$.PRESENCE="presence",p$.SPACESOCCUPIED="spacesOccupied",p$.STARTTLS="startTLS",p$.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",p$.WEBSOCKETPATH="websocketPath",p$.AGENTSTATUS="agentStatus",p$.PRICEDAILY="priceDaily",p$.COUNTGROWTHMINUTE="countGrowthMinute",p$.IMONUMBER="IMONumber",p$.ATTRIBUTION="Attribution",p$.TENANTID="tenantId",p$.REQUESTHEADERS="requestHeaders",p$.HOST="host",p$.COUNTOUTMINUTE="countOutMinute",p$.MESSAGECHARSET="messageCharset",p$.CERTIFICATEALIAS="certificateAlias",p$.EMAIL="email",p$.BINDPORT="bindPort",p$.CONSOLEVERSION="consoleVersion",p$.PARTICLESPM1="particlesPM1",p$.MTU="mtu",p$.SPEED="speed",p$.MESSAGESTRIPDELIMITER="messageStripDelimiter",p$.AREA="area",p$.COUNTRY="country",p$.SHIPTYPE="shipType",p$.CONNECTSUBSCRIPTIONS="connectSubscriptions",p$.RELATIVEHUMIDITY="relativeHumidity",p$.SOURCEADDRESS="sourceAddress",p$.RAINFALL="rainfall",p$.OAUTHGRANT="oAuthGrant",p$.OZONELEVEL="ozoneLevel",p$.SEQUENCENUMBER="sequenceNumber",p$.COUNTINMINUTE="countInMinute",p$.PORT="port",p$.SUNALTITUDE="sunAltitude",p$.COUNTOUT="countOut",p$.ROOMNUMBER="roomNumber",p$.TUNNELINGSUPPORTED="tunnelingSupported",p$.ENINUMBER="ENINumber",p$.PARTICLESPM2_5="particlesPM2_5",p$.AGENTDISABLED="agentDisabled",p$.DISABLED="disabled",p$.COUNTIN="countIn",p$.MESSAGESOURCEADDRESS="messageSourceAddress",p$.PROVISIONWEATHERASSET="ProvisionWeatherAsset",p$.TIMEINJECTIONINTERVAL="timeInjectionInterval",p$.TEMPERATURESETPOINT="temperatureSetpoint",p$.CONSOLEPROVIDERS="consoleProviders",p$.COUNTTOTAL="countTotal",p$.SPACESBUFFER="spacesBuffer",p$.DEVICECONFIG="deviceConfig",p$.SPACESTOTAL="spacesTotal",p$.BINDHOST="bindHost",p$.FANSPEED="fanSpeed",p$.MESSAGECONVERTBINARY="messageConvertBinary",p$.NOTES="notes",p$.MAILFOLDERNAME="mailFolderName",p$.MESSAGEDELIMITERS="messageDelimiters",p$.TEMPERATURE="temperature",p$.SUNZENITH="sunZenith",p$.SNMPVERSIONVALUE="SNMPVersionValue",p$.BRIGHTNESS="brightness",p$.POSTALCODE="postalCode",p$.SPACESOPEN="spacesOpen",p$.HUMIDITY="humidity",p$.SOUNDLEVEL="soundLevel",p$.SECUREMODE="secureMode",p$.DIRECTION="direction",p$.STOPBITS="stopbits",p$.UVINDEX="uVIndex",p$.CONNECTURL="connectURL",p$.CLIENTID="clientId",p$.NATMODE="NATMode",p$.UPDATEONWRITE="updateOnWrite",p$.LASTWILLPAYLOAD="lastWillPayload",p$.GROUPID="groupId",p$.FOLLOWREDIRECTS="followRedirects",p$.SUNAZIMUTH="sunAzimuth",p$.MESSAGECONVERTHEX="messageConvertHex",p$.WEBSOCKETMODE="websocketMode",p$.COLOURTEMPERATURE="colourTemperature",p$.PUBLISHQOS="publishQos",p$.DATABITS="dataBits",(pB=mG||(mG={})).FORMAT="format",pB.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",pB.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",pB.SECRET="secret",pB.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",pB.ATTRIBUTELINKS="attributeLinks",pB.RULERESETIMMEDIATE="ruleResetImmediate",pB.RULESTATE="ruleState",pB.AGENTLINKCONFIG="agentLinkConfig",pB.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",pB.FORECAST="forecast",pB.STOREDATAPOINTS="storeDataPoints",pB.LABEL="label",pB.CONSTRAINTS="constraints",pB.UNITS="units",pB.USERCONNECTED="userConnected",pB.SHOWONDASHBOARD="showOnDashboard",pB.READONLY="readOnly",pB.MULTILINE="multiline",pB.ACCESSPUBLICWRITE="accessPublicWrite",pB.MOMENTARY="momentary",pB.AGENTLINK="agentLink",pB.ACCESSRESTRICTEDREAD="accessRestrictedRead",pB.ACCESSPUBLICREAD="accessPublicRead",(pN=mY||(mY={})).ASSETQUERY="assetQuery",pN.WSURL="WS_URL",pN.COLOURRGB="colourRGB",pN.VALUEFORMAT="valueFormat",pN.TEXT="text",pN.BYTE="byte",pN.USERNAMEANDPASSWORD="usernameAndPassword",pN.HTTPURL="HTTP_URL",pN.ATTRIBUTELINK="attributeLink",pN.ASSETID="assetID",pN.NUMBERMAP="numberMap",pN.HTTPMETHOD="HTTPMethod",pN.ATTRIBUTESTATE="attributeState",pN.POSITIVENUMBER="positiveNumber",pN.POSITIVEINTEGER="positiveInteger",pN.EXECUTIONSTATUS="executionStatus",pN.BIGINTEGER="bigInteger",pN.VALUEDESCRIPTOR="valueDescriptor",pN.PERIODDURATIONISO8601="periodDurationISO8601",pN.LONG="long",pN.DATEANDTIME="dateAndTime",pN.BOOLEANMAP="booleanMap",pN.MQTTQOS="MQTTQos",pN.NEGATIVEINTEGER="negativeInteger",pN.TCPIPPORTNUMBER="TCP_IPPortNumber",pN.GEOJSONPOINT="GEO_JSONPoint",pN.SNMPVERSION="SNMPVersion",pN.ASSETTYPE="assetType",pN.JSONOBJECT="JSONObject",pN.INTEGERMAP="integerMap",pN.BIGNUMBER="bigNumber",pN.IPADDRESS="IPAddress",pN.EMAIL="email",pN.TIMESTAMP="timestamp",pN.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",pN.ATTRIBUTEREFERENCE="attributeReference",pN.UUID="UUID",pN.INTEGER="integer",pN.OAUTHGRANT="oAuthGrant",pN.NUMBER="number",pN.DEVICECONFIGMAP="DeviceConfigMap",pN.TEXTMAP="textMap",pN.WEBSOCKETSUBSCRIPTION="websocketSubscription",pN.BOOLEAN="boolean",pN.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",pN.FORECASTCONFIGURATION="forecastConfiguration",pN.TIMEDURATIONISO8601="timeDurationISO8601",pN.TIMESTAMPISO8601="timestampISO8601",pN.CONSOLEPROVIDERS="consoleProviders",pN.MULTIVALUEDTEXTMAP="multivaluedTextMap",pN.NEGATIVENUMBER="negativeNumber",pN.PARITYBIT="Paritybit",pN.JSON="JSON",pN.CRONEXPRESSION="CRONExpression",pN.INTEGERBYTE="integerByte",pN.AGENTLINK="agentLink",pN.DIRECTION="direction",pN.HOSTORIPADDRESS="hostOrIPAddress",pN.STOPBITS="Stopbits",pN.CALENDAREVENT="calendarEvent",pN.CONNECTIONSTATUS="connectionStatus",pN.VALUECONSTRAINT="valueConstraint",(pz=mK||(mK={})).MONTH="month",pz.MILE_SCANDINAVIAN="mile_scandinavian",pz.VAR="var",pz.OUNCE="ounce",pz.HECTARE="hectare",pz.YARD="yard",pz.YEAR="year",pz.GIGA="giga",pz.JOULE="joule",pz.VOLT="volt",pz.HERTZ="hertz",pz.MILE="mile",pz.DEGREE="degree",pz.KILO="kilo",pz.BTU="btu",pz.TERA="tera",pz.FOOT="foot",pz.MEGA="mega",pz.KELVIN="kelvin",pz.CARBON="carbon",pz.DECIBEL_ATTENUATED="decibel_attenuated",pz.INCH="inch",pz.SQUARED="squared",pz.PERCENTAGE="percentage",pz.IN_HG="inch_mercury",pz.CENTI="centi",pz.GRAM="gram",pz.CUBED="cubed",pz.DAY="day",pz.RADIAN="radian",pz.OHM="ohm",pz.MINUTE="minute",pz.PART_PER_MILLION="ppm",pz.AMP="amp",pz.MASS_POUND="pound",pz.KNOT="knot",pz.METRE="metre",pz.LITRE="litre",pz.FLUID_OUNCE="fluid_ounce",pz.HOUR="hour",pz.ACRE="acre",pz.CELSIUS="celsius",pz.RPM="rpm",pz.PASCAL="pascal",pz.DECIBEL="decibel",pz.LUMEN="lumen",pz.WEEK="week",pz.FAHRENHEIT="fahrenheit",pz.WATT="watt",pz.GALLON="gallon",pz.LUX="lux",pz.MILLI="milli",pz.BAR="bar",pz.HECTO="hecto",pz.PEAK="peak",pz.SECOND="second",pz.MICRO="micro",pz.PER="per",pz.STONE="stone",mX||(mX={});class ne{static getAssetDescriptors(){return ne._assetTypeInfos.map(t=>t.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(t){if(t)return t.assetDescriptor?t:("string"!=typeof t&&(t=t.name),this._assetTypeInfos.find(n=>n.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let n=this._assetTypeInfos.find(n=>n.assetDescriptor.name===t);return n?n.assetDescriptor:void 0}static getAttributeDescriptor(t,n){if(!t)return;let i=this.getAssetTypeInfo(n||"ThingAsset");if(i&&i.attributeDescriptors)return i.attributeDescriptors.find(n=>n.name===t)}static getValueDescriptor(t){let n;if(!t)return;if(t.endsWith("[]"))for(n=0;t.endsWith("[]");)t=t.substring(0,t.length-2),n++;let i=this._valueDescriptors.find(n=>n.name===t);return i&&n&&(i=Object.assign(Object.assign({},i),{arrayDimensions:n})),i}static resolveValueDescriptor(t,n){let i;return n&&("string"==typeof n&&(i=ne.getValueDescriptor(n)),i=n.jsonType?n:ne.getValueDescriptor(n.type)),!i&&t&&(i=ne.getValueDescriptor("JSON")),i}static resolveValueTypeFromValue(t){if(null!=t){if("number"==typeof t)return"number";if("string"==typeof t)return"text";if("boolean"==typeof t)return"boolean";if(Array.isArray(t)){let n=1,i=t.find(t=>null!=t);for(;Array.isArray(i);)i=i.find(t=>null!=t),n++;let r=this.resolveValueTypeFromValue(i);if(!r)return;for(;n>0;)r+="[]",n--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,n,i){let r,o;if(n&&"string"!=typeof n)r=n;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof n&&(r=this.getAttributeDescriptor(n,o)),!r&&i&&(r={type:i.type,name:i.name,meta:i.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(n=>n.name===t)}static getAssetDescriptorColour(t,n){let i=this.getAssetDescriptor(t);return i&&i.colour?i.colour:n}static getAssetDescriptorIcon(t,n){let i=this.getAssetDescriptor(t);return i&&i.icon?i.icon:n}}ne._assetTypeInfos=[],ne._metaItemDescriptors=[],ne._valueDescriptors=[],o(4532);var nt=o(4867),nn=o.n(nt);o(3472);class ni{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n}),Object.freeze(this)}}function nr(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){if(Array.isArray(t))return t.every((t,i)=>nr(t,n[i]));let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>nr(t[i],n[i]))}return!1}function no(t){if(null==t)return"";let n=!1;return t.split(/([A-Z]|\d)/).map((t,i,r)=>{if(!t)return t;if(!n)return n=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let n=!r[i-1]||"_"===r[i-1],o=i+1<r.length&&r[i+1]&&"_"!==r[i+1],a=i+3>r.length||!r[i+1]&&!r[i+3];(!n||o)&&(t=" "+t),!o&&(n||a)||(t=t.toLowerCase())}return t}).join("").trim()}function na(t,n,i){let r="string"==typeof t?t:t.name;return n&&n.meta&&n.meta.hasOwnProperty(r)?n.meta[r]:i&&i.meta?i.meta[r]:void 0}function ns(t){return("string"==typeof t&&(t=ne.getAssetDescriptor(t)),t)?t8.t("label.asset."+t.name,{defaultValue:no(t.name)}):""}function nl(t,n){let i="string"==typeof t?ne.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:ne.resolveValueTypeFromValue(n),value:n}}function nc(t,n,i,r,o,a){let s=nm("label",t,n,i,o),l="";if(s||(s=na("label",t,n&&n.meta?n:void 0)),r&&(l=nh(np("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?no(i):void 0)}return s?s+(l?" ("+l+")":""):l}function nd(t,n,i,r,o,a){let s=nu(t?t.value:void 0,()=>np("format",t,n,i,o),void 0,a),l=np("units",t,n,i,!0);return r&&l&&l.length&&(s=nh(np("units",t,n,i,o),s)),s}function nu(t,n,i,r){let o="";if(null==t)o=r||"";else if("string"==typeof t)o=t;else if("number"==typeof t||"boolean"==typeof t||t instanceof Date){let r=n&&n();if(r&&0!==Object.keys(r).length)switch("number"==typeof t?r.asBoolean?t=!!t:r.asDate&&(t=new Date(t)):"boolean"==typeof t&&r.asNumber&&(t=+!!t),typeof t){case"number":o=new Intl.NumberFormat(i||t8.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t8.t("on"):t8.t("off")),r.asOpenClosed&&(o=t?t8.t("open"):t8.t("closed")),r.asPressedReleased&&(o=t?t8.t("pressed"):t8.t("released"));break;case"object":if(r.momentJsFormat)o=nn()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let n,i=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),n=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-n.getTime())/864e5+1)/7));o="2-digit"===r.week?String(i).padStart(2,"0"):Number(i).toString(10)}else o=new Intl.DateTimeFormat(i||t8.language,r).format(t)}else o=Object(t).toString()}return o}function nh(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t8.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t8.language,{currency:t,style:"currency"}).formatToParts();if(0!==i||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!n)return r[0].value;n=r[0].value+n}}).join("");return n.length>0?n+" "+i:i}function np(t,n,i,r,o){let a,s=[],l=nm(t,n&&"string"==typeof n?n:n?n.name:i?"string"==typeof i?i:i.name:void 0,i,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(n&&n.meta&&(a=na(t,n,i)))if("format"!==t)return a;else s.push(a);if(i&&"string"!=typeof i&&i.hasOwnProperty(t)){if(a=i[t],"format"!==t)return a;s.push(a)}if(i&&i.type){if(a=ne.getValueDescriptor(i.type)[t],"format"!==t)return a;s.push(a)}if("format"!==t||0===s.length)return a;let c={};return s.reverse().forEach(t=>{c=Object.assign(Object.assign({},c),t)}),c}function nm(t,n,i,r,o,a){let s;if(n?s="string"==typeof n?n:n.name:i&&(s="string"==typeof i?i:i.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),i&&"string"!=typeof i&&(l.push(c+i.type+"."+s),l.push(c+i.type)),l.push(c+s),l.length>0)return t8.t(l,{defaultValue:a||""})}function nf(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}class ng{constructor(t){t&&Object.assign(this,t)}matches(t){var n,i,r,o,a,s,l;if((null==(n=this.ids)?void 0:n.length)&&(!t.id||!this.ids.includes(t.id))||(null==(i=this.types)?void 0:i.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(n=>!n.id||t.parentId===n.id))return!1;if(null==(a=this.paths)?void 0:a.length){let n=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var i;return(null!=(i=t.path)?i:[]).every((t,i)=>n[i]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(n=>ng._evalValuePredicate(t.name,n)))&&(!this.attributes||ng._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!ng._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?ng._collectNames(this.attributes):[]}static _evalValuePredicate(t,n){var i;switch(n.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==n.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==n.caseSensitive?n.value:null==(i=n.value)?void 0:i.toLowerCase();switch(n.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return n.negate?!r:r}case"boolean":return t===n.value;case"number":{let i;if("number"!=typeof t)return!1;switch(n.operator){case"GREATER_THAN":i=t>n.value;break;case"GREATER_EQUALS":i=t>=n.value;break;case"LESS_THAN":i=t<n.value;break;case"LESS_EQUALS":i=t<=n.value;break;case"BETWEEN":i=t>=n.value&&t<=n.rangeValue;break;default:i=t===n.value}return n.negate?!i:i}}return!1}static _evalPredicate(t,n){var i,r;let o=null==(i=n.name)?void 0:i.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!n.negated;let s=!n.value||ng._evalValuePredicate(a.value,n.value);return n.negated?!s:s}static _evalGroup(t,n){var i,r,o;let a=null!=(i=n.operator)?i:"AND",s=[...(null!=(r=n.items)?r:[]).map(n=>ng._evalPredicate(t,n)),...(null!=(o=n.groups)?o:[]).map(n=>ng._evalGroup(t,n))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var n,i;return[...(null!=(n=t.items)?n:[]).map(t=>{var n;return null==(n=t.name)?void 0:n.value}).filter(t=>!!t),...(null!=(i=t.groups)?i:[]).flatMap(t=>ng._collectNames(t))]}}ng._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nb=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};let nv=o(4461);class n_{constructor(t,n,i){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=n,this._enableCompleteCallback=i,window.OpenRemoteConsole=this;let r=new URLSearchParams(window.location.search),o=r.get("consoleName"),a=r.get("consoleVersion"),s=r.get("consolePlatform"),l=r.get("consoleProviders"),c=r.get("consoleAutoEnable"),d=l&&l.length>0?l.split(" "):["push"];this._pendingProviderEnables=d;let u=n_._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=u.providers;for(let t of(u.providers={},d)){let n=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};u.providers[t]=n}let m=o0.getAppName();m.length>0&&0>u.apps.indexOf(m)&&u.apps.push(m),this._registration=u,o&&(u.name=o),a&&(u.version=a),s&&(u.platform=s),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let t=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return t&&("iP"===t.substring(0,2)||"Mac"===t.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nb(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);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(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let t=this._pendingProviderEnables.length-1;t>-1;t--){let n=this._pendingProviderEnables[t];yield this.enableProvider(n)}})}enableProvider(t,n){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: disabling provider '"+t+"'");let n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,n})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,n){return nb(this,void 0,void 0,function*(){if("storage"!==t.provider&&!this._registration.providers.hasOwnProperty(t.provider))throw console.debug("Invalid console provider '"+t.provider+"'"),Error("Invalid console provider '"+t.provider+"'");if(!n)return void this._doSendProviderMessage(t);let i=t.provider+t.action;if(this._pendingProviderPromises[i])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new ni,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>nb(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),n(t)}}))})}_sendRegistration(t){return nb(this,void 0,void 0,function*(){this._normaliseRegistration();let n=!!this._registration.id;try{let t=yield o0.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(i){if(t&&n&&n_._isStaleRegistrationResponse(i)){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 i}})}_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(t){let n=t&&t.response?t.response.status:void 0;return 403===n||409===n}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nb(this,void 0,void 0,function*(){let n=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([n,new Promise((t,n)=>setTimeout(n,2e3))]);if(t&&t.value){let n=t.value;return"null"===n?void 0:n}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,n){this._providerMessageListeners[t.provider+t.action]=n}removeProviderMessageListener(t){delete this._providerMessageListeners[t.provider+t.action]}_postNativeShellMessage(t){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(t));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(t)}catch(t){console.error("Failed to send shell message towards console",t)}}_doSendGenericMessage(t,n){let i={type:t,data:n};this.isMobile?this._postNativeShellMessage(i):console.warn("Failed to send generic message to console.",i)}_doSendProviderMessage(t){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:t});else{if(!t.provider||!t.action)return;switch(t.provider.trim().toUpperCase()){case"PUSH":switch(t.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 '"+t.provider+"' and action '"+t.action+"'")}break;case"STORAGE":switch(t.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 n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(n):window.localStorage.setItem(n,JSON.stringify(t.value))}break;case"RETRIEVE":{let n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'retrieve' action requires a `key`");let i=window.localStorage.getItem(n);if(null!==i)try{i=JSON.parse(i)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:n,value:i}))}break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;default:console.error("Unsupported provider: "+t.provider)}}}_handleProviderResponse(t){if(!t)return;let n=JSON.parse(t),i=n.provider,r=n.action,o=this._pendingProviderPromises[i+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[i+r],o[0].resolve(n));let a=this._providerMessageListeners[i+r];a&&a(n)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:nv.name,version:nv.version,platform:nv.os.toString(),apps:[],model:((nv.manufacturer?nv.manufacturer+" ":"")+(nv.product?nv.product:"")).trim()}}_initialiseProvider(t){return nb(this,void 0,void 0,function*(){let n;console.debug("Console: initialising provider '"+t+"'");try{n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=n.version,this._registration.providers[t].requiresPermission=n.requiresPermission,this._registration.providers[t].hasPermission=n.hasPermission,this._registration.providers[t].success=n.success,this._registration.providers[t].enabled=n.enabled,this._registration.providers[t].disabled=n.disabled,this._registration.providers[t].data=n.data}catch(t){console.error(t),n={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(n.success||(console.debug("Provider initialisation failed: '"+t+"'"),n.disabled=!0,this._registration.providers[t].disabled=!0),n.disabled||n.enabled){let n=this._pendingProviderEnables.indexOf(t);n>=0&&this._pendingProviderEnables.splice(n,1)}})}}function ny(t,n){return function(){return t.apply(n,arguments)}}let{toString:nx}=Object.prototype,{getPrototypeOf:nw}=Object,{iterator:nF,toStringTag:nE}=Symbol,nk=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),nC=(t,n)=>{let i=t,r=[];for(;null!=i&&i!==Object.prototype&&-1===r.indexOf(i);){if(r.push(i),nk(i,n))return!0;i=nw(i)}return!1},nA=(u=Object.create(null),t=>{let n=nx.call(t);return u[n]||(u[n]=n.slice(8,-1).toLowerCase())}),nT=t=>(t=t.toLowerCase(),n=>nA(n)===t),nS=t=>n=>typeof n===t,{isArray:nI}=Array,nD=nS("undefined");function nM(t){return null!==t&&!nD(t)&&null!==t.constructor&&!nD(t.constructor)&&nL(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nR=nT("ArrayBuffer"),nO=nS("string"),nL=nS("function"),nP=nS("number"),n$=t=>null!==t&&"object"==typeof t,nB=t=>{if(!n$(t))return!1;let n=nw(t);return(null===n||n===Object.prototype||null===nw(n))&&!nC(t,nE)&&!nC(t,nF)},nN=nT("Date"),nz=nT("File"),nj=nT("Blob"),nV=nT("FileList"),nU="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nH=void 0!==nU.FormData?nU.FormData:void 0,nq=nT("URLSearchParams"),[nW,nG,nY,nK]=["ReadableStream","Request","Response","Headers"].map(nT);function nX(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nI(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nM(t))return;let a=i?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],n.call(null,t[o],o,t)}}function nZ(t,n){let i;if(nM(t))return null;n=n.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(n===(i=r[o]).toLowerCase())return i;return null}let nJ="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nQ=t=>!nD(t)&&t!==nJ,n0=(h="u">typeof Uint8Array&&nw(Uint8Array),t=>h&&t instanceof h),n1=nT("HTMLFormElement"),{propertyIsEnumerable:n2}=Object.prototype,n5=nT("RegExp"),n3=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nX(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},n4=nT("AsyncFunction"),n6=(hN="function"==typeof setImmediate,hz=nL(nJ.postMessage),hN?setImmediate:hz?(hj=`axios@${Math.random()}`,hV=[],nJ.addEventListener("message",({source:t,data:n})=>{t===nJ&&n===hj&&hV.length&&hV.shift()()},!1),t=>{hV.push(t),nJ.postMessage(hj,"*")}):t=>setTimeout(t)),n8="u">typeof queueMicrotask?queueMicrotask.bind(nJ):"u">typeof process&&process.nextTick||n6,n7=t=>null!=t&&nL(t[nF]),n9={isArray:nI,isArrayBuffer:nR,isBuffer:nM,isFormData:t=>{if(!t)return!1;if(nH&&t instanceof nH)return!0;let n=nw(t);if(!n||n===Object.prototype||!nL(t.append))return!1;let i=nA(t);return"formdata"===i||"object"===i&&nL(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nR(t.buffer)},isString:nO,isNumber:nP,isBoolean:t=>!0===t||!1===t,isObject:n$,isPlainObject:nB,isEmptyObject:t=>{if(!n$(t)||nM(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nW,isRequest:nG,isResponse:nY,isHeaders:nK,isUndefined:nD,isDate:nN,isFile:nz,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nj,isRegExp:n5,isFunction:nL,isStream:t=>n$(t)&&nL(t.pipe),isURLSearchParams:nq,isTypedArray:n0,isFileList:nV,forEach:nX,merge:function t(...n){let{caseless:i,skipUndefined:r}=nQ(this)&&this||{},o={},a=(n,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=i&&"string"==typeof a&&nZ(o,a)||a,l=nk(o,s)?o[s]:void 0;nB(l)&&nB(n)?o[s]=t(l,n):nB(n)?o[s]=t({},n):nI(n)?o[s]=n.slice():r&&nD(n)||(o[s]=n)};for(let t=0,i=n.length;t<i;t++){let i=n[t];if(!i||nM(i)||(nX(i,a),"object"!=typeof i||nI(i)))continue;let r=Object.getOwnPropertySymbols(i);for(let t=0;t<r.length;t++){let n=r[t];n2.call(i,n)&&a(i[n],n)}}return o},extend:(t,n,i,{allOwnKeys:r}={})=>(nX(n,(n,r)=>{i&&nL(n)?Object.defineProperty(t,r,{__proto__:null,value:ny(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,i,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&nw(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nA,kindOfTest:nT,endsWith:(t,n,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=n.length;let r=t.indexOf(n,i);return -1!==r&&r===i},toArray:t=>{if(!t)return null;if(nI(t))return t;let n=t.length;if(!nP(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nF]).call(t);for(;(i=r.next())&&!i.done;){let r=i.value;n.call(t,r[0],r[1])}},matchAll:(t,n)=>{let i,r=[];for(;null!==(i=t.exec(n));)r.push(i);return r},isHTMLForm:n1,hasOwnProperty:nk,hasOwnProp:nk,hasOwnInPrototypeChain:nC,getSafeProp:(t,n)=>null!=t&&nC(t,n)?t[n]:void 0,reduceDescriptors:n3,freezeMethods:t=>{n3(t,(n,i)=>{if(nL(t)&&["arguments","caller","callee"].includes(i))return!1;if(nL(t[i])){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,n)=>{let i={};return(nI(t)?t:String(t).split(n)).forEach(t=>{i[t]=!0}),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t*=1)?t:n,findKey:nZ,global:nJ,isContextDefined:nQ,isSpecCompliantForm:function(t){return!!(t&&nL(t.append)&&"FormData"===t[nE]&&t[nF])},toJSONObject:t=>{let n=new WeakSet,i=t=>{if(n$(t)){if(n.has(t))return;if(nM(t))return t;if(!("toJSON"in t)){n.add(t);let r=nI(t)?[]:{};return nX(t,(t,n)=>{let o=i(t);nD(o)||(r[n]=o)}),n.delete(t),r}}return t};return i(t)},isAsyncFn:n4,isThenable:t=>t&&(n$(t)||nL(t))&&nL(t.then)&&nL(t.catch),setImmediate:n6,asap:n8,isIterable:n7,isSafeIterable:t=>null!=t&&nC(t,nF)&&n7(t)},ie=n9.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"]),it=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ii=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ir(t,n){return n9.isArray(t)?t.map(t=>ir(t,n)):function(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}(String(t).replace(n,""))}function io(t){let n=Object.create(null);return n9.forEach(t.toJSON(),(t,i)=>{n[i]=ir(t,ii)}),n}let ia=Symbol("internals");function is(t){return t&&String(t).trim().toLowerCase()}function il(t){return!1===t||null==t?t:n9.isArray(t)?t.map(il):ir(String(t),it)}function ic(t,n,i,r,o){if(n9.isFunction(r))return r.call(this,n,i);if(o&&(n=i),n9.isString(n)){if(n9.isString(r))return -1!==n.indexOf(r);if(n9.isRegExp(r))return r.test(n)}}class id{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=is(n);if(!o)return;let a=n9.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=il(t))}let a=(t,n)=>n9.forEach(t,(t,i)=>o(t,i,n));if(n9.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(n9.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&ie[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(n9.isObject(t)&&n9.isSafeIterable(t)){let i=Object.create(null),r,o;for(let n of t){if(!n9.isArray(n))throw TypeError("Object iterator must return a key-value pair");o=n[0],n9.hasOwnProp(i,o)?(r=i[o],i[o]=n9.isArray(r)?[...r,n[1]]:[r,n[1]]):i[o]=n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=is(t)){let i=n9.findKey(this,t);if(i){let t=this[i];if(!n)return t;if(!0===n){let n,i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=r.exec(t);)i[n[1]]=n[2];return i}if(n9.isFunction(n))return n.call(this,t,i);if(n9.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=is(t)){let i=n9.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||ic(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=is(t)){let o=n9.findKey(i,t);o&&(!n||ic(i,i[o],o,n))&&(delete i[o],r=!0)}}return n9.isArray(t)?t.forEach(o):o(t),r}clear(t){let n=Object.keys(this),i=n.length,r=!1;for(;i--;){let o=n[i];(!t||ic(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return n9.forEach(this,(r,o)=>{let a=n9.findKey(i,o);if(a){n[a]=il(r),delete n[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i):String(o).trim();s!==o&&delete n[o],n[s]=il(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return n9.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&n9.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[ia]=this[ia]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=is(t);if(!n[r]){let o;o=n9.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{__proto__:null,value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return n9.isArray(t)?t.forEach(r):r(t),this}}id.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n9.reduceDescriptors(id.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),n9.freezeMethods(id);class iu extends Error{static from(t,n,i,r,o,a){let s=new iu(t.message,n||t.code,i,r,o);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,n,i,r=this.config,o=r&&n9.hasOwnProp(r,"redact")?r.redact:void 0,a=n9.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),n=[],(i=r=>{let o;if(null===r||"object"!=typeof r||n9.isBuffer(r))return r;if(-1===n.indexOf(r)){if(r instanceof id&&(r=r.toJSON()),n.push(r),n9.isArray(r))o=[],r.forEach((t,n)=>{let r=i(t);n9.isUndefined(r)||(o[n]=r)});else{if(!n9.isPlainObject(r)&&function(t){if(n9.hasOwnProp(t,"toJSON"))return!0;let n=Object.getPrototypeOf(t);for(;n&&n!==Object.prototype;){if(n9.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}(r))return n.pop(),r;for(let[n,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(n.toLowerCase())?"[REDACTED ****]":i(a);n9.isUndefined(r)||(o[n]=r)}}return n.pop(),o}})(r)):n9.toJSONObject(r);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:a,code:this.code,status:this.status}}}iu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",iu.ERR_BAD_OPTION="ERR_BAD_OPTION",iu.ECONNABORTED="ECONNABORTED",iu.ETIMEDOUT="ETIMEDOUT",iu.ECONNREFUSED="ECONNREFUSED",iu.ERR_NETWORK="ERR_NETWORK",iu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",iu.ERR_DEPRECATED="ERR_DEPRECATED",iu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",iu.ERR_BAD_REQUEST="ERR_BAD_REQUEST",iu.ERR_CANCELED="ERR_CANCELED",iu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",iu.ERR_INVALID_URL="ERR_INVALID_URL",iu.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let ih=iu;function ip(t){return n9.isPlainObject(t)||n9.isArray(t)}function im(t){return n9.endsWith(t,"[]")?t.slice(0,-2):t}function ig(t,n,i){return t?t.concat(n).map(function(t,n){return t=im(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}let ib=n9.toFlatObject(n9,{},null,function(t){return/^is[A-Z]/.test(t)}),iv=function(t,n,i){if(!n9.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=n9.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!n9.isUndefined(n[t])})).metaTokens,o=i.visitor||m,a=i.dots,s=i.indexes,l=i.Blob||"u">typeof Blob&&Blob,c=void 0===i.maxDepth?100:i.maxDepth,d=l&&n9.isSpecCompliantForm(n),u=[];if(!n9.isFunction(o))throw TypeError("visitor must be a function");function h(t){if(null===t)return"";if(n9.isDate(t))return t.toISOString();if(n9.isBoolean(t))return t.toString();if(!d&&n9.isBlob(t))throw new ih("Blob is not supported. Use a Buffer instead.");if(n9.isArrayBuffer(t)||n9.isTypedArray(t)){if(d&&"function"==typeof l)return new l([t]);if("u">typeof Buffer)return Buffer.from(t);throw new ih("Blob is not supported. Use a Buffer instead.",ih.ERR_NOT_SUPPORT)}return t}function p(t){if(t>c)throw new ih("Object is too deeply nested ("+t+" levels). Max depth: "+c,ih.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(t,i,o){let l=t;if(n9.isReactNative(n)&&n9.isReactNativeBlob(t))return n.append(ig(o,i,a),h(t)),!1;if(t&&!o&&"object"==typeof t)if(n9.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=function(t){if(1/0===c)return JSON.stringify(t);let n=[];return JSON.stringify(t,function(t,i){if(!n9.isObject(i))return i;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(i),p(1+n.length-1),i})}(t);else{var d;if(n9.isArray(t)&&(d=t,n9.isArray(d)&&!d.some(ip))||(n9.isFileList(t)||n9.endsWith(i,"[]"))&&(l=n9.toArray(t)))return i=im(i),l.forEach(function(t,r){n9.isUndefined(t)||null===t||n.append(!0===s?ig([i],r,a):null===s?i:i+"[]",h(t))}),!1}return!!ip(t)||(n.append(ig(o,i,a),h(t)),!1)}let f=Object.assign(ib,{defaultVisitor:m,convertValue:h,isVisitable:ip});if(!n9.isObject(t))throw TypeError("data must be an object");return!function t(i,r,a=0){if(!n9.isUndefined(i)){if(p(a),-1!==u.indexOf(i))throw Error("Circular reference detected in "+r.join("."));u.push(i),n9.forEach(i,function(i,s){!0===(!(n9.isUndefined(i)||null===i)&&o.call(n,i,n9.isString(s)?s.trim():s,r,f))&&t(i,r?r.concat(s):[s],a+1)}),u.pop()}}(t),n};function i_(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return n[t]})}function iy(t,n){this._pairs=[],t&&iv(t,this,n)}let ix=iy.prototype;function iw(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iF(t,n,i){let r;if(!n)return t;t=t||"";let o=n9.isFunction(i)?{serialize:i}:i,a=n9.getSafeProp(o,"encode")||iw,s=n9.getSafeProp(o,"serialize");if(r=s?s(n,o):n9.isURLSearchParams(n)?n.toString():new iy(n,o).toString(a)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}ix.append=function(t,n){this._pairs.push([t,n])},ix.toString=function(t){let n=t?n=>t.call(this,n,i_):i_;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let iE=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n9.forEach(this.handlers,function(n){null!==n&&t(n)})}},ik={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},iC="u">typeof URLSearchParams?URLSearchParams:iy,iA="u">typeof FormData?FormData:null,iT="u">typeof Blob?Blob:null,iS="u">typeof window&&"u">typeof document,iI="object"==typeof navigator&&navigator||void 0,iD=iS&&(!iI||0>["ReactNative","NativeScript","NS"].indexOf(iI.product)),iM="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,iR=iS&&window.location.href||"http://localhost",iO={...k,isBrowser:!0,classes:{URLSearchParams:iC,FormData:iA,Blob:iT},protocols:["http","https","file","blob","url","data"]};function iL(t){if(t>100)throw new ih("FormData field is too deeply nested ("+t+" levels). Max depth: 100",ih.ERR_FORM_DATA_DEPTH_EXCEEDED)}let iP=function(t){if(n9.isFormData(t)&&n9.isFunction(t.entries)){let n={};return n9.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){iL(o);let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&n9.isArray(r)?r.length:a,l)?n9.hasOwnProp(r,a)?r[a]=n9.isArray(r[a])?r[a].concat(i):[r[a],i]:r[a]=i:(n9.hasOwnProp(r,a)&&n9.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&n9.isArray(r[a])&&(r[a]=function(t){let n,i,r={},o=Object.keys(t),a=o.length;for(n=0;n<a;n++)r[i=o[n]]=t[i];return r}(r[a]))),!s}(function(t){let n,i=[],r=/\w+|\[(\w*)]/g;for(;null!==(n=r.exec(t));)iL(i.length),i.push("[]"===n[0]?"":n[1]||n[0]);return i}(t),i,n,0)}),n}return null},i$=(t,n)=>null!=t&&n9.hasOwnProp(t,n)?t[n]:void 0,iB={transitional:ik,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=n9.isObject(t);if(a&&n9.isHTMLForm(t)&&(t=new FormData(t)),n9.isFormData(t))return o?JSON.stringify(iP(t)):t;if(n9.isArrayBuffer(t)||n9.isBuffer(t)||n9.isStream(t)||n9.isFile(t)||n9.isBlob(t)||n9.isReadableStream(t))return t;if(n9.isArrayBufferView(t))return t.buffer;if(n9.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let n=i$(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return iv(t,new iO.classes.URLSearchParams,{visitor:function(t,n,i,r){return iO.isNode&&n9.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n}).toString();if((i=n9.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=i$(this,"env"),o=r&&r.FormData;return iv(i?{"files[]":t}:t,o&&new o,n)}}if(a||o){n.setContentType("application/json",!1);var s=t;if(n9.isString(s))try{return(0,JSON.parse)(s),n9.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let n=i$(this,"transitional")||iB.transitional,i=n&&n.forcedJSONParsing,r=i$(this,"responseType"),o="json"===r;if(n9.isResponse(t)||n9.isReadableStream(t))return t;if(t&&n9.isString(t)&&(i&&!r||o)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,i$(this,"parseReviver"))}catch(t){if(!i&&o){if("SyntaxError"===t.name)throw ih.from(t,ih.ERR_BAD_RESPONSE,this,null,i$(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iO.classes.FormData,Blob:iO.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function iN(t,n){let i=this||iB,r=n||i,o=id.from(r.headers),a=r.data;return n9.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iz(t){return!!(t&&t.__CANCEL__)}n9.forEach(["delete","get","head","post","put","patch","query"],t=>{iB.headers[t]={}});let ij=class extends ih{constructor(t,n,i){super(null==t?"canceled":t,ih.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function iV(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new ih("Request failed with status code "+i.status,i.status>=400&&i.status<500?ih.ERR_BAD_REQUEST:ih.ERR_BAD_RESPONSE,i.config,i.request,i))}let iU=function(t,n){let i,r=Array(t=t||10),o=Array(t),a=0,s=0;return n=void 0!==n?n:1e3,function(l){let c=Date.now(),d=o[s];i||(i=c),r[a]=l,o[a]=c;let u=s,h=0;for(;u!==a;)h+=r[u++],u%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-i<n)return;let p=d&&c-d;return p?Math.round(1e3*h/p):void 0}},iH=function(t,n){let i,r,o=0,a=1e3/n,s=(n,a=Date.now())=>{o=a,i=null,r&&(clearTimeout(r),r=null),t(...n)};return[(...t)=>{let n=Date.now(),l=n-o;l>=a?s(t,n):(i=t,r||(r=setTimeout(()=>{r=null,s(i)},a-l)))},()=>i&&s(i)]},iq=(t,n,i=3)=>{let r=0,o=iU(50,250);return iH(i=>{if(!i||"number"!=typeof i.loaded)return;let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=null!=s?Math.min(a,s):a,c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iW=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iG=t=>(...n)=>n9.asap(()=>t(...n)),iY=iO.hasStandardBrowserEnv?(p=new URL(iO.origin),m=iO.navigator&&/(msie|trident)/i.test(iO.navigator.userAgent),t=>(t=new URL(t,iO.origin),p.protocol===t.protocol&&p.host===t.host&&(m||p.port===t.port))):()=>!0,iK=iO.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];n9.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),n9.isString(r)&&l.push(`path=${r}`),n9.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),n9.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},iX=/^https?:(?!\/\/)/i,iZ=/[\t\n\r]/g;function iJ(t,n){if("string"==typeof t&&iX.test((function(t){let n=0;for(;n<t.length&&32>=t.charCodeAt(n);)n++;return t.slice(n)})(t).replace(iZ,"")))throw new ih('Invalid URL: missing "//" after protocol',ih.ERR_INVALID_URL,n)}function iQ(t,n,i,r){iJ(n,r);let o=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));return t&&(o||!1===i)?(iJ(t,r),n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t):n}let i0=t=>t instanceof id?{...t}:t;function i1(t,n){t=t||{},n=n||{};let i=Object.create(null);function r(t,n,i,r){return n9.isPlainObject(t)&&n9.isPlainObject(n)?n9.merge.call({caseless:r},t,n):n9.isPlainObject(n)?n9.merge({},n):n9.isArray(n)?n.slice():n}function o(t,n,i,o){return n9.isUndefined(n)?n9.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!n9.isUndefined(n))return r(void 0,n)}function s(t,n){return n9.isUndefined(n)?n9.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return n9.hasOwnProp(n,a)?r(i,o):n9.hasOwnProp(t,a)?r(void 0,i):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage: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:l,headers:(t,n,i)=>o(i0(t),i0(n),i,!0)};return n9.forEach(Object.keys({...t,...n}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n9.hasOwnProp(c,r)?c[r]:o,s=a(n9.hasOwnProp(t,r)?t[r]:void 0,n9.hasOwnProp(n,r)?n[r]:void 0,r);n9.isUndefined(s)&&a!==l||(i[r]=s)}),n9.hasOwnProp(n,"validateStatus")&&n9.isUndefined(n.validateStatus)&&!1===function(i){let r=n9.hasOwnProp(n,"transitional")?n.transitional:void 0;if(!n9.isUndefined(r)){if(!n9.isPlainObject(r))return;else if(n9.hasOwnProp(r,i))return r[i]}let o=n9.hasOwnProp(t,"transitional")?t.transitional:void 0;if(n9.isPlainObject(o)&&n9.hasOwnProp(o,i))return o[i]}("validateStatusUndefinedResolves")&&(n9.hasOwnProp(t,"validateStatus")?i.validateStatus=r(void 0,t.validateStatus):delete i.validateStatus),i}let i2=["content-type","content-length"],i5=function(t){let n=i1({},t),i=t=>n9.hasOwnProp(n,t)?n[t]:void 0,r=i("data"),o=i("withXSRFToken"),a=i("xsrfHeaderName"),s=i("xsrfCookieName"),l=i("headers"),c=i("auth"),d=i("baseURL"),u=i("allowAbsoluteUrls"),h=i("url");if(n.headers=l=id.from(l),n.url=iF(iQ(d,h,u,n),i("params"),i("paramsSerializer")),c){let n=n9.getSafeProp(c,"username")||"",i=n9.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(n+":"+(i?encodeURIComponent(i).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))):"")))}catch(n){throw ih.from(n,ih.ERR_BAD_OPTION_VALUE,t)}}if(n9.isFormData(r))if(iO.hasStandardBrowserEnv||iO.hasStandardBrowserWebWorkerEnv||n9.isReactNative(r))l.setContentType(void 0);else{var p,m;n9.isFunction(r.getHeaders)&&(p=l,m=r.getHeaders(),"content-only"!==i("formDataHeaderPolicy")?p.set(m):Object.entries(m||{}).forEach(([t,n])=>{i2.includes(t.toLowerCase())&&p.set(t,n)}))}if(iO.hasStandardBrowserEnv&&(n9.isFunction(o)&&(o=o(n)),!0===o||null==o&&iY(n.url))){let t=a&&s&&iK.read(s);t&&l.set(a,t)}return n},i3="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,u=i5(t),h=u.data,p=id.from(u.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=u;function b(){l&&l(),c&&c(),u.cancelToken&&u.cancelToken.unsubscribe(o),u.signal&&u.signal.removeEventListener("abort",o)}let v=new XMLHttpRequest;function _(){if(!v)return;let r=id.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());iV(function(t){n(t),b()},function(t){i(t),b()},{data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v}),v=null}v.open(u.method.toUpperCase(),u.url,!0),v.timeout=u.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(i(new ih("Request aborted",ih.ECONNABORTED,t,v)),b(),v=null)},v.onerror=function(n){let r=new ih(n&&n.message?n.message:"Network Error",ih.ERR_NETWORK,t,v);r.event=n||null,i(r),b(),v=null},v.ontimeout=function(){let n=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||ik;u.timeoutErrorMessage&&(n=u.timeoutErrorMessage),i(new ih(n,r.clarifyTimeoutError?ih.ETIMEDOUT:ih.ECONNABORTED,t,v)),b(),v=null},void 0===h&&p.setContentType(null),"setRequestHeader"in v&&n9.forEach(io(p),function(t,n){v.setRequestHeader(n,t)}),n9.isUndefined(u.withCredentials)||(v.withCredentials=!!u.withCredentials),m&&"json"!==m&&(v.responseType=u.responseType),g&&([s,c]=iq(g,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,l]=iq(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",l)),(u.cancelToken||u.signal)&&(o=n=>{v&&(i(!n||n.type?new ij(null,t,v):n),v.abort(),b(),v=null)},u.cancelToken&&u.cancelToken.subscribe(o),u.signal&&(u.signal.aborted?o():u.signal.addEventListener("abort",o)));let y=(r=u.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r))&&d[1]||"");if(y&&!iO.protocols.includes(y)){i(new ih("Unsupported protocol "+y+":",ih.ERR_BAD_REQUEST,t)),b();return}v.send(h||null)})},i4=function*(t,n){let i,r=t.byteLength;if(!n||r<n)return void(yield t);let o=0;for(;o<r;)i=o+n,yield t.slice(o,i),o=i},i6=async function*(t,n){for await(let i of i8(t))yield*i4(i,n)},i8=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let n=t.getReader();try{for(;;){let{done:t,value:i}=await n.read();if(t)break;yield i}}finally{await n.cancel()}},i7=(t,n,i,r)=>{let o,a=i6(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},i9=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,re=(t,n,i)=>n+2<i&&i9(t.charCodeAt(n+1))&&i9(t.charCodeAt(n+2)),{isFunction:rt}=n9,rn=t=>{if(!n9.isString(t))return t;try{return decodeURIComponent(t)}catch(n){return t}},ri=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},rr=t=>{let n,i=void 0!==n9.global&&null!==n9.global?n9.global:globalThis,{ReadableStream:r,TextEncoder:o}=i,{fetch:a,Request:s,Response:l}=t=n9.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},t),c=a?rt(a):"function"==typeof fetch,d=rt(s),u=rt(l);if(!c)return!1;let h=c&&rt(r),p=c&&("function"==typeof o?(n=new o,t=>n.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&h&&ri(()=>{let t=!1,n=new s(iO.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),i=n.headers.has("Content-Type");return null!=n.body&&n.body.cancel(),t&&!i}),f=u&&h&&ri(()=>n9.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new ih(`Response type '${t}' is not supported`,ih.ERR_NOT_SUPPORT,i)})});let b=async t=>{if(null==t)return 0;if(n9.isBlob(t))return t.size;if(n9.isSpecCompliantForm(t)){let n=new s(iO.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return n9.isArrayBufferView(t)||n9.isArrayBuffer(t)?t.byteLength:(n9.isURLSearchParams(t)&&(t+=""),n9.isString(t))?(await p(t)).byteLength:void 0},v=async(t,n)=>{let i=n9.toFiniteNumber(t.getContentLength());return null==i?b(n):i};return async t=>{let n,{url:i,method:r,data:c,signal:u,cancelToken:p,timeout:_,onDownloadProgress:y,onUploadProgress:x,responseType:w,headers:F,withCredentials:E="same-origin",fetchOptions:k,maxContentLength:C,maxBodyLength:A}=i5(t),T=n9.isNumber(C)&&C>-1,S=n9.isNumber(A)&&A>-1,I=a||fetch;w=w?(w+"").toLowerCase():"text";let D=((t,n)=>{if(t=t?t.filter(Boolean):[],!n&&!t.length)return;let i=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let n=t instanceof Error?t:this.reason;i.abort(n instanceof ih?n:new ij(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new ih(`timeout of ${n}ms exceeded`,ih.ETIMEDOUT))},n),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o,{once:!0}));let{signal:l}=i;return l.unsubscribe=()=>n9.asap(s),l})([u,p&&p.toAbortSignal()],_),M=null,R=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),O=null,L=()=>new ih("Request body larger than maxBodyLength limit",ih.ERR_BAD_REQUEST,t,M);try{var P;let a,u,p,_,$=(u="auth",n9.hasOwnProp(t,u)?t[u]:void 0);if($){let t=n9.getSafeProp($,"username")||"",n=n9.getSafeProp($,"password")||"";a={username:t,password:n}}if(p=(P=i).indexOf("://"),_=P,-1!==p&&(_=_.slice(p+3)),_.includes("@")||_.includes(":")){let t=new URL(i,iO.origin);if(!a&&(t.username||t.password)){let n=rn(t.username),i=rn(t.password);a={username:n,password:i}}(t.username||t.password)&&(t.username="",t.password="",i=t.href)}if(a){let t;F.delete("authorization"),F.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))))))}if(T&&"string"==typeof i&&i.startsWith("data:")&&function(t){if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let i=t.slice(5,n),r=t.slice(n+1);if(/;base64/i.test(i)){let t=r.length,n=r.length;for(let i=0;i<n;i++)if(37===r.charCodeAt(i)&&i+2<n){let n=r.charCodeAt(i+1),o=r.charCodeAt(i+2);i9(n)&&i9(o)&&(t-=2,i+=2)}let i=0,o=n-1,a=t=>t>=2&&37===r.charCodeAt(t-2)&&51===r.charCodeAt(t-1)&&(68===r.charCodeAt(t)||100===r.charCodeAt(t));o>=0&&(61===r.charCodeAt(o)?(i++,o--):a(o)&&(i++,o-=3)),1===i&&o>=0&&(61===r.charCodeAt(o)?i++:a(o)&&i++);let s=3*Math.floor(t/4)-(i||0);return s>0?s:0}let o=0;for(let t=0,n=r.length;t<n;t++){let i=r.charCodeAt(t);if(37===i&&re(r,t,n))o+=1,t+=2;else if(i<128)o+=1;else if(i<2048)o+=2;else if(i>=55296&&i<=56319&&t+1<n){let n=r.charCodeAt(t+1);n>=56320&&n<=57343?(o+=4,t++):o+=3}else o+=3}return o}(i)>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M);if(S&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(n=t,t>A))throw L()}let B=S&&(n9.isReadableStream(c)||n9.isStream(c)),N=(t,n,i)=>i7(t,65536,t=>{if(S&&t>A)throw O=L();n&&n(t)},i);if(m&&"get"!==r&&"head"!==r&&(x||B)){if(n=null==n?await v(F,c):n,0!==n||B){let t,r=new s(i,{method:"POST",body:c,duplex:"half"});if(n9.isFormData(c)&&(t=r.headers.get("content-type"))&&F.setContentType(t),r.body){let[t,i]=x&&iW(n,iq(iG(x)))||[];c=N(r.body,t,i)}}}else if(B&&!d&&h&&"get"!==r&&"head"!==r)c=N(c);else if(B&&d&&!m&&"get"!==r&&"head"!==r)throw new ih("Stream request bodies are not supported by the current fetch implementation",ih.ERR_NOT_SUPPORT,t,M);n9.isString(E)||(E=E?"include":"omit");let z=d&&"credentials"in s.prototype;if(n9.isFormData(c)){let t=F.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:D,method:r.toUpperCase(),headers:io(F.normalize()),body:c,duplex:"half",credentials:z?E:void 0};M=d&&new s(i,j);let V=await (d?I(M,k):I(i,j)),U=id.from(V.headers);if(T){let n=n9.toFiniteNumber(U.getContentLength());if(null!=n&&n>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M)}let H=f&&("stream"===w||"response"===w);if(f&&V.body&&(y||T||H&&R)){let n={};["status","statusText","headers"].forEach(t=>{n[t]=V[t]});let i=n9.toFiniteNumber(U.getContentLength()),[r,o]=y&&iW(i,iq(iG(y),!0))||[];V=new l(i7(V.body,65536,n=>{if(T&&n>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M);r&&r(n)},()=>{o&&o(),R&&R()}),n)}w=w||"text";let q=await g[n9.findKey(g,w)||"text"](V,t);if(T&&!f&&!H){let n;if(null!=q&&("number"==typeof q.byteLength?n=q.byteLength:"number"==typeof q.size?n=q.size:"string"==typeof q&&(n="function"==typeof o?new o().encode(q).byteLength:q.length)),"number"==typeof n&&n>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M)}return!H&&R&&R(),await new Promise((n,i)=>{iV(n,i,{data:q,headers:id.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:M})})}catch(n){if(R&&R(),D&&D.aborted&&D.reason instanceof ih){let i=D.reason;throw i.config=t,M&&(i.request=M),n!==i&&Object.defineProperty(i,"cause",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),i}if(O)throw M&&!O.request&&(O.request=M),O;if(n instanceof ih)throw M&&!n.request&&(n.request=M),n;if(n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message)){let i=new ih("Network Error",ih.ERR_NETWORK,t,M,n&&n.response);throw Object.defineProperty(i,"cause",{__proto__:null,value:n.cause||n,writable:!0,enumerable:!1,configurable:!0}),i}throw ih.from(n,n&&n.code,t,M,n&&n.response)}}},ro=new Map,ra=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=ro;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:rr(n)),d=c;return c};ra();let rs={http:null,xhr:i3,fetch:{get:ra}};n9.forEach(rs,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});let rl=t=>`- ${t}`,rc=t=>n9.isFunction(t)||null===t||!1===t,rd=function(t,n){let i,r,{length:o}=t=n9.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!rc(i)&&void 0===(r=rs[(o=String(i)).toLowerCase()]))throw new ih(`Unknown adapter '${o}'`);if(r&&(n9.isFunction(r)||(r=r.get(n))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new ih("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rl).join("\n"):" "+rl(t[0]):"as no adapter specified"),ih.ERR_NOT_SUPPORT)}return r};function ru(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ij(null,t)}function rh(t){return ru(t),t.headers=id.from(t.headers),t.data=iN.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rd(t.adapter||iB.adapter,t)(t).then(function(n){ru(t),t.response=n;try{n.data=iN.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=id.from(n.headers),n},function(n){if(!iz(n)&&(ru(t),n&&n.response)){t.response=n.response;try{n.response.data=iN.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=id.from(n.response.headers)}return Promise.reject(n)})}let rp={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{rp[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rm={};rp.transitional=function(t,n,i){function r(t,n){return"[Axios v1.18.1] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new ih(r(o," has been removed"+(n?" in "+n:"")),ih.ERR_DEPRECATED);return n&&!rm[o]&&(rm[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,o,a)}},rp.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let rf=function(t,n,i){if("object"!=typeof t||null===t)throw new ih("options must be an object",ih.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new ih("option "+a+" must be "+i,ih.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new ih("Unknown option "+a,ih.ERR_BAD_OPTION)}};class rg{constructor(t){this.defaults=t||{},this.interceptors={request:new iE,response:new iE}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=(()=>{if(!n.stack)return"";let t=n.stack.indexOf("\n");return -1===t?"":n.stack.slice(t+1)})();try{if(t.stack){if(i){let n=i.indexOf("\n"),r=-1===n?-1:i.indexOf("\n",n+1),o=-1===r?"":i.slice(r+1);String(t.stack).endsWith(o)||(t.stack+="\n"+i)}}else t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=i1(this.defaults,n);void 0!==o&&rf(o,{silentJSONParsing:rp.transitional(rp.boolean),forcedJSONParsing:rp.transitional(rp.boolean),clarifyTimeoutError:rp.transitional(rp.boolean),legacyInterceptorReqResOrdering:rp.transitional(rp.boolean),advertiseZstdAcceptEncoding:rp.transitional(rp.boolean),validateStatusUndefinedResolves:rp.transitional(rp.boolean)},!1),null!=a&&(n9.isFunction(a)?n.paramsSerializer={serialize:a}:rf(a,{encode:rp.function,serialize:rp.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rf(n,{baseUrl:rp.spelling("baseURL"),withXsrfToken:rp.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&n9.merge(s.common,s[n.method]);s&&n9.forEach(["delete","get","head","post","put","patch","query","common"],t=>{delete s[t]}),n.headers=id.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(n))return;d=d&&t.synchronous;let i=n.transitional||ik;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[rh.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,i=Promise.resolve(n);h<r;)i=i.then(t[h++],t[h++]);return i}r=c.length;let p=n;for(;h<r;){let t=c[h++],n=c[h++];try{p=t(p)}catch(t){n.call(this,t);break}}try{i=rh.call(this,p)}catch(t){return Promise.reject(t)}for(h=0,r=u.length;h<r;)i=i.then(u[h++],u[h++]);return i}getUri(t){return iF(iQ((t=i1(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}n9.forEach(["delete","get","head","options"],function(t){rg.prototype[t]=function(n,i){return this.request(i1(i||{},{method:t,url:n,data:i&&n9.hasOwnProp(i,"data")?i.data:void 0}))}}),n9.forEach(["post","put","patch","query"],function(t){function n(n){return function(i,r,o){return this.request(i1(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}rg.prototype[t]=n(),"query"!==t&&(rg.prototype[t+"Form"]=n(!0))});let rb=class t{constructor(t){let n;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){n=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](t);i._listeners=null}),this.promise.then=t=>{let n,r=new Promise(t=>{i.subscribe(t),n=t}).then(t);return r.cancel=function(){i.unsubscribe(n)},r},t(function(t,r,o){i.reason||(i.reason=new ij(t,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let n;return{token:new t(function(t){n=t}),cancel:n}}},rv={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rv).forEach(([t,n])=>{rv[n]=t});let r_=function t(n){let i=new rg(n),r=ny(rg.prototype.request,i);return n9.extend(r,rg.prototype,i,{allOwnKeys:!0}),n9.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(i1(n,i))},r}(iB);r_.Axios=rg,r_.CanceledError=ij,r_.CancelToken=rb,r_.isCancel=iz,r_.VERSION="1.18.1",r_.toFormData=iv,r_.AxiosError=ih,r_.Cancel=r_.CanceledError,r_.all=function(t){return Promise.all(t)},r_.spread=function(t){return function(n){return t.apply(null,n)}},r_.isAxiosError=function(t){return n9.isObject(t)&&!0===t.isAxiosError},r_.mergeConfig=i1,r_.AxiosHeaders=id,r_.formToJSON=t=>iP(n9.isHTMLForm(t)?new FormData(t):t),r_.getAdapter=rd,r_.HttpStatusCode=rv,r_.default=r_;class ry{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rV`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`asset/predicted/${t}/${n}`,data:i,options:r})}}class rx{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rV`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rV`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rV`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rV`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rV`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rV`map/upload`,queryParams:t,options:n})}}class rw{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rV`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rV`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rV`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rV`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rV`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rV`realm/${t}`,data:n,options:i})}}class rF{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rV`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rV`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rV`flow/${t}`,options:n})}}class rE{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rV`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rV`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rV`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rV`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rV`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rV`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rV`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rV`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rV`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rV`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rV`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rV`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rV`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rV`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rV`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rV`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`rules/${t}`,data:n,options:i})}}class rk{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rV`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rV`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rV`apps/info`,options:t})}}class rC{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rV`console/register`,data:t,options:n})}}class rA{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rV`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rV`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rV`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rV`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rV`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rV`service/${t}/${n}`,options:i})}}class rT{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rV`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rV`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rV`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rV`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rV`dashboard/${t}/${n}`,options:i})}}class rS{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rV`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rV`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rV`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rV`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rV`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rV`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rV`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rV`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rV`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rV`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rV`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rV`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rV`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/${n}`,options:i})}}class rI{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rV`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rV`info`,options:t})}}class rD{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rV`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rV`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rV`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rV`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rV`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rV`gateway/status/${t}`,options:n})}}class rM{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rV`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rV`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rV`notification/alert`,data:t,options:n})}getNotificationsCount(t,n){return this.httpClient.request({method:"GET",url:rV`notification/count`,queryParams:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rV`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rV`notification/${t}/delivered`,queryParams:n,options:i})}}class rR{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rV`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rV`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rV`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rV`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rV`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rV`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rV`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rV`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rV`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rV`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rV`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rV`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rV`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rV`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rV`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rV`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`asset/${t}/attribute/${n}`,data:i,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rV`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rV`asset/${t}/child`,queryParams:n,options:i})}}class rO{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rV`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rV`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rV`asset/datapoint/${t}/${n}`,data:i,options:r})}}class rL{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rV`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rV`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rV`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rV`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rV`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rP{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rV`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rV`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rV`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rV`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rV`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rV`model/valueDescriptors`,queryParams:t,options:n})}}class r${constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rV`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rV`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rV`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rV`syslog/event`,queryParams:t,options:n})}}class rB{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rV`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rV`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rV`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rV`provisioning/${t}`,data:n,options:i})}}class rN{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rV`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rV`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rV`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rV`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rV`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rV`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rV`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rV`alarm/${t}/assets`,queryParams:n,options:i})}}class rz{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rV`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rV`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rV`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class rj{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rV`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rV`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rV`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rV`configuration/manager/image/${t}`,options:n})}}function rV(t,...n){let i="";for(let r=0;r<n.length;r++)i+=t[r],i+=encodeURIComponent(n[r]);return i+t[t.length-1]}class rU{constructor(t,n=r_.create()){this._assetPredictedDatapointResource=new rq(t,n),this._mapResource=new rW(t,n),this._realmResource=new rG(t,n),this._flowResource=new rY(t,n),this._rulesResource=new rK(t,n),this._appResource=new rX(t,n),this._consoleResource=new rZ(t,n),this._externalServiceResource=new rJ(t,n),this._dashboardResource=new rQ(t,n),this._userResource=new r0(t,n),this._statusResource=new r1(t,n),this._gatewayClientResource=new r2(t,n),this._notificationResource=new r5(t,n),this._assetResource=new r3(t,n),this._assetDatapointResource=new r4(t,n),this._gatewayServiceResource=new r6(t,n),this._assetModelResource=new r8(t,n),this._syslogResource=new r7(t,n),this._provisioningResource=new r9(t,n),this._alarmResource=new oe(t,n),this._agentResource=new ot(t,n),this._configurationResource=new on(t,n),this._assetResource=new r3(t,n)}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get MapResource(){return this._mapResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get AppResource(){return this._appResource}get ConsoleResource(){return this._consoleResource}get ExternalServiceResource(){return this._externalServiceResource}get DashboardResource(){return this._dashboardResource}get UserResource(){return this._userResource}get StatusResource(){return this._statusResource}get GatewayClientResource(){return this._gatewayClientResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get AssetDatapointResource(){return this._assetDatapointResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}get SyslogResource(){return this._syslogResource}get ProvisioningResource(){return this._provisioningResource}get AlarmResource(){return this._alarmResource}get AgentResource(){return this._agentResource}get ConfigurationResource(){return this._configurationResource}}class rH{constructor(t){this.axios=t}request(t){let n={};n.method=t.method,n.url=t.url,n.params=t.queryParams,n.data=t.data,function(t,n){if(void 0!=n)for(let i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}(n,t.options);let i=t.copyFn;return this.axios.request(n).then(t=>(i&&t.data&&(t.originalData=t.data,t.data=i(t.data)),t))}}class rq extends ry{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rW extends rx{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rG extends rw{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rY extends rF{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rK extends rE{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rX extends rk{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rZ extends rC{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rJ extends rA{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rQ extends rT{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r0 extends rS{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r1 extends rI{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r2 extends rD{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r5 extends rM{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r3 extends rR{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r4 extends rO{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r6 extends rL{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r8 extends rP{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r7 extends r${constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r9 extends rB{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class oe extends rN{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class ot extends rz{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class on extends rj{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}var oi=o(8183),or=o.n(oi);r_.isAxiosError;let oo=new class{get api(){return this._client}constructor(){this._axiosInstance=r_.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>or().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rU(t,this._axiosInstance)}};var oa=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};(pj=mZ||(mZ={})).DISCONNECTED="DISCONNECTED",pj.CONNECTED="CONNECTED",pj.CONNECTING="CONNECTING";let os="SUBSCRIBED:",ol="UNAUTHORIZED:",oc="TRIGGERED:",od="EVENT:";class ou{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=mZ.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(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===mZ.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(mZ.CONNECTING),this._connectingDeferred=new ni,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._onStatusChanged(mZ.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),n.resolve(t)}}).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!==mZ.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new ni};return null!=this._pendingSubscription||this._status!==mZ.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return oa(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===mZ.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==mZ.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+ou._subscriptionCounter++;if(!this._assetEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let n={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(n,t=>{this._assetEventCallbackMap.forEach(n=>n(t))})}return this._assetEventCallbackMap.set(o,t=>{let n=t.asset.id;r?r.find(t=>n===t)&&i(t):t.asset.realm===o0.displayRealm&&i(t)}),this._assetEventPromise.then(()=>{try{if(r&&n){let t={messageID:"read-assets:"+r.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(t).then(t=>{t.assets&&this._assetEventCallbackMap.has(o)&&t.assets.forEach(t=>{i({eventType:"asset",asset:t,cause:"READ"})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),n}return o})})}subscribeAttributeEvents(t,n,i){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+ou._subscriptionCounter++;if(!this._attributeEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let n={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(n,t=>{this._attributeEventCallbackMap.forEach(n=>n(t))})}let l=n=>{let a=n.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&i(n)}):o?o.find(t=>a.id===t)&&i(n):n.realm===o0.displayRealm&&i(n)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(n&&o){let t={messageID:"read-assets:"+o.join(",")+":"+s,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(t).then(t=>{t.assets&&this._attributeEventCallbackMap.has(s)&&t.assets.forEach(t=>{t.attributes&&Object.entries(t.attributes).forEach(([n,i])=>{(!a||a.find(i=>i.id===t.id&&i.name===n))&&l({eventType:"attribute",timestamp:i.timestamp,value:i.value,ref:{id:t.id,name:n}})})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),n}return s})})}_processNextSubscription(){this._status===mZ.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(n=>{let i=t.deferred;t.deferred=null,i&&i.resolve(n)},n=>{let i=t.deferred;t.deferred=null,i&&i.reject(n)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(n=>n(t))},0))}_onMessageReceived(t,n){let i=this._subscriptionMap.get(t);i&&i.callback(n)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let t in this._subscriptionMap)this._subscriptionMap.has(t)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(t));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===mZ.CONNECTED&&this._onStatusChanged(mZ.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(mZ.CONNECTING),this._scheduleReconnect()}_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<oh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ou.MIN_RECONNECT_DELAY=0,ou.MAX_RECONNECT_DELAY=3e4,ou._subscriptionCounter=0;class oh extends ou{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+o0.config.realm;return this._connectDeferred=new ni,(o0.authenticated?o0.retrieveAuthorizationHeader().then(n=>{t+="&Authorization="+n}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.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 t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(os)){let t=JSON.parse(n.substring(os.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(ol)){let t=JSON.parse(n.substring(ol.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),i.reject("Unauthorized"))}else if(n.startsWith(oc)){let t=JSON.parse(n.substring(oc.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(od)){let t=JSON.parse(n.substring(od.length));if(t.messageID){let n=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),n&&n.resolve(t)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var t;null==(t=this._webSocket)||t.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(t){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new ni,t.subscriptionId||(t.subscriptionId=oh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let n=od+JSON.stringify(t);this._webSocket.send(n)}_doSendWithReply(t){if(t.messageID||(t.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(t.messageID))return Promise.reject("There's already a pending send and reply with this ID");let n=new ni;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(od+JSON.stringify(t)),n.promise}}oh._subscriptionCounter=1;let op=["__proto__","constructor","prototype"];function om(t){return!("string"!=typeof t||0===t.length||t.length>128||op.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function of(t){return!(!om(t)||t.indexOf("/")>-1)}let og={lng:of,ns:function(t){return om(t)}};function ob(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function ov(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let o_=/\{\{(.+?)\}\}/g;function oy(t,n){let i=!1,r=t.replace(o_,(t,r)=>{let o=r.trim();if(op.indexOf(o)>-1)return t;let a=n[o];if(null==a)return t;let s=og[o]||of,l=String(a).split("+");for(let n of l)if(!s(n))return i=!0,t;return l.join("+")});return i?null:r}let ox="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:ox&&"function"==typeof ox.fetch&&(t=ox.fetch);let ow=ov()&&ox?ox.XMLHttpRequest:void 0,oF="function"==typeof ActiveXObject&&ox?ox.ActiveXObject:void 0,oE=["__proto__","constructor","prototype"],ok=(t,n)=>{if(n&&"object"==typeof n){let i="";for(let t of Object.keys(n))oE.indexOf(t)>-1||(i+="&"+encodeURIComponent(t)+"="+encodeURIComponent(n[t]));if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oC=(n,i,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(n=>{r(null,{status:t.status,data:n})}).catch(r)};if(o){let t=o(n,i);if(t instanceof Promise)return void t.then(a).catch(r)}"function"==typeof fetch?fetch(n,i).then(a).catch(r):t(n,i).then(a).catch(r)},oA=(n,i,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),t&&0!==i.indexOf("file:")){var a=i,s=r,l=o;n.queryStringParams&&(a=ok(a,n.queryStringParams));let t={..."function"==typeof n.customHeaders?n.customHeaders():n.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(t["Content-Type"]="application/json");let c="function"==typeof n.requestOptions?n.requestOptions(s):n.requestOptions,d={method:s?"POST":"GET",body:s?n.stringify(s):void 0,headers:t,...n._omitFetchOptions?{}:c},u="function"==typeof n.alternateFetch&&n.alternateFetch.length>=1?n.alternateFetch:void 0;try{oC(a,d,l,u)}catch(t){if(!c||0===Object.keys(c).length||!t.message||0>t.message.indexOf("not implemented"))return l(t);try{Object.keys(c).forEach(t=>{delete d[t]}),oC(a,d,l,u),n._omitFetchOptions=!0}catch(t){l(t)}}return}if(ov()||"function"==typeof ActiveXObject){var c=i,d=r,u=o;d&&"object"==typeof d&&(d=ok("",d).slice(1)),n.queryStringParams&&(c=ok(c,n.queryStringParams));try{let t=ow?new ow:new oF("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",c,1),n.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!n.withCredentials,d&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let i=n.customHeaders;if(i="function"==typeof i?i():i)for(let n of Object.keys(i))oE.indexOf(n)>-1||t.setRequestHeader(n,i[n]);t.onreadystatechange=()=>{t.readyState>3&&u(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var oT=class{constructor(t,n={},i={}){this.services=t,this.options=n,this.allOptions=i,this.type="backend",this.init(t,n,i)}init(t,n={},i={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,n,i)=>({[n]:i||""}),parseLoadPayload:(t,n)=>void 0,request:oA,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...n},this.allOptions=i,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,n,i){this._readAny(t,t,n,n,i)}read(t,n,i){this._readAny([t],t,[n],n,i)}_readAny(t,n,i,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,i)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=oy(a,{lng:t.join("+"),ns:i.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(ob).join(", ")+"] namespaces=["+i.map(ob).join(", ")+"]"),!1);this.loadUrl(s,o,n,r)})}loadUrl(t,n,i,r){let o=this.options.parseLoadPayload("string"==typeof i?[i]:i,"string"==typeof r?[r]:r),a=ob(function(t){if("string"!=typeof t||0===t.length)return t;try{let n=new URL(t);if(n.username||n.password)return n.username="",n.password="",n.toString();return t}catch(n){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return n("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return n("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let i=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>i.indexOf(t)>-1))return n("failed loading "+a+": "+ob(t.message),!0)}if(t)return n(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,i,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return n(l,!1);n(null,s)})}create(t,n,i,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(n,i,r),s=0,l=[],c=[];t.forEach(i=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(i,n));let d=oy(r,{lng:i,ns:n});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(n,i)=>{s+=1,l.push(n),c.push(i),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:n,logger:i}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{n.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(n=>{this.allOptions.ns.forEach(r=>{t.read(n,r,"read",null,null,(o,a)=>{o&&i.warn(`loading namespace ${r} for language ${n} failed`,o),!o&&a&&i.log(`loaded namespace ${r} for language ${n}`,a),t.loaded(`${n}|${r}`,o,a)})})})}};oT.type="backend";class oS extends eY{constructor(t){if(super(t),this.it=e_,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===e_||null==t)return this._t=void 0,this.it=t;if(t===ev)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}oS.directiveName="unsafeHTML",oS.resultType=1,eG(oS);class oI extends oS{}oI.directiveName="unsafeSVG",oI.resultType=2;let oD=eG(oI),oM={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 oR=function(t,n,i,r){var o,a=arguments.length,s=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,i,s):o(n,i))||s);return a>3&&s&&Object.defineProperty(n,i,s),s};class oO extends CustomEvent{constructor(){super(oO.NAME,{bubbles:!0,composed:!0})}}oO.NAME="or-iconset-added";let oL=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oO)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return eg``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):eg``}},oP=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[M`
76
+ `,t7([eV({type:String})],t9.prototype,"value",void 0),t7([eV({type:Object})],t9.prototype,"options",void 0),t9=t7([ez("or-translate")],t9),(hU=pJ||(pJ={})).CREATE="CREATE",hU.UPDATE="UPDATE",hU.DELETE="DELETE",(hH=pQ||(pQ={})).LOW="LOW",hH.MEDIUM="MEDIUM",hH.HIGH="HIGH",(hq=p0||(p0={})).MANUAL="MANUAL",hq.CLIENT="CLIENT",hq.GLOBAL_RULESET="GLOBAL_RULESET",hq.REALM_RULESET="REALM_RULESET",hq.ASSET_RULESET="ASSET_RULESET",hq.AGENT="AGENT",(hW=p1||(p1={})).OPEN="OPEN",hW.ACKNOWLEDGED="ACKNOWLEDGED",hW.IN_PROGRESS="IN_PROGRESS",hW.RESOLVED="RESOLVED",hW.CLOSED="CLOSED",(hG=p2||(p2={})).BOTTOM_LEFT="BOTTOM_LEFT",hG.BOTTOM_RIGHT="BOTTOM_RIGHT",hG.TOP_LEFT="TOP_LEFT",hG.TOP_RIGHT="TOP_RIGHT",(hY=p5||(p5={})).CREATE="CREATE",hY.READ="READ",hY.UPDATE="UPDATE",hY.DELETE="DELETE",(hK=p3||(p3={})).NONE="NONE",hK.FORECAST="FORECAST",hK.SETPOINT="SETPOINT",(hX=p4||(p4={})).DISCONNECTED="DISCONNECTED",hX.CONNECTING="CONNECTING",hX.DISCONNECTING="DISCONNECTING",hX.CONNECTED="CONNECTED",hX.DISABLED="DISABLED",hX.WAITING="WAITING",hX.ERROR="ERROR",hX.STOPPED="STOPPED",(hZ=p6||(p6={})).REQUEST_START="REQUEST_START",hZ.REQUEST_REPEATING="REQUEST_REPEATING",hZ.REQUEST_CANCEL="REQUEST_CANCEL",hZ.READY="READY",hZ.COMPLETED="COMPLETED",hZ.RUNNING="RUNNING",hZ.CANCELLED="CANCELLED",(hJ=p8||(p8={})).TOGGLE="TOGGLE",hJ.INCREMENT="INCREMENT",hJ.DECREMENT="DECREMENT",hJ.NEGATE="NEGATE",(hQ=p7||(p7={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",hQ.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",hQ.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",hQ.INVALID_VALUE="INVALID_VALUE",hQ.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",hQ.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",hQ.CANNOT_PROCESS="CANNOT_PROCESS",hQ.QUEUE_FULL="QUEUE_FULL",hQ.UNKNOWN="UNKNOWN",hQ.ASSET_ID_MISSING="ASSET_ID_MISSING",hQ.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(h0=p9||(p9={})).PUBLIC="PUBLIC",h0.SHARED="SHARED",h0.PRIVATE="PRIVATE",(h1=me||(me={})).OFF="OFF",h1.ONE_MIN="ONE_MIN",h1.FIVE_MIN="FIVE_MIN",h1.QUARTER="QUARTER",h1.ONE_HOUR="ONE_HOUR",(h2=mt||(mt={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",h2.KEEP_LAYOUT="KEEP_LAYOUT",h2.REDIRECT="REDIRECT",h2.BLOCK_DEVICE="BLOCK_DEVICE",(h5=mn||(mn={})).CSV="CSV",h5.CSV_CROSSTAB="CSV_CROSSTAB",h5.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(h3=mi||(mi={})).MINUTE="MINUTE",h3.HOUR="HOUR",h3.DAY="DAY",h3.WEEK="WEEK",h3.MONTH="MONTH",h3.YEAR="YEAR",(h4=mr||(mr={})).MIN="MIN",h4.AVG="AVG",h4.MAX="MAX",h4.DIFFERENCE="DIFFERENCE",h4.COUNT="COUNT",h4.SUM="SUM",h4.MODE="MODE",h4.MEDIAN="MEDIAN",(h6=mo||(mo={})).TERMINATING="TERMINATING",h6.DISABLED="DISABLED",h6.ALREADY_CONNECTED="ALREADY_CONNECTED",h6.UNRECOGNISED="UNRECOGNISED",h6.PERMANENT_ERROR="PERMANENT_ERROR",h6.SYNC_ERROR="SYNC_ERROR",(h8=ma||(ma={})).HTTPS="HTTPS",h8.HTTP="HTTP",h8.TCP="TCP",(h7=ms||(ms={})).GET="GET",h7.POST="POST",h7.PUT="PUT",h7.DELETE="DELETE",h7.OPTIONS="OPTIONS",h7.PATCH="PATCH",(h9=ml||(ml={})).KEYCLOAK="KEYCLOAK",h9.NONE="NONE",(pe=mc||(mc={})).WEBSOCKET="WEBSOCKET",pe.POLLING="POLLING",(pt=md||(md={})).INTERNAL="INTERNAL",pt.CLIENT="CLIENT",pt.GLOBAL_RULESET="GLOBAL_RULESET",pt.REALM_RULESET="REALM_RULESET",pt.ASSET_RULESET="ASSET_RULESET",(pn=mu||(mu={})).REALM="REALM",pn.USER="USER",pn.ASSET="ASSET",pn.CUSTOM="CUSTOM",(pi=mh||(mh={})).NORMAL="NORMAL",pi.HIGH="HIGH",(pr=mp||(mp={})).DEVICE="DEVICE",pr.TOPIC="TOPIC",pr.CONDITION="CONDITION",(po=mm||(mm={})).ALWAYS="ALWAYS",po.ONCE="ONCE",po.HOURLY="HOURLY",po.DAILY="DAILY",po.WEEKLY="WEEKLY",po.MONTHLY="MONTHLY",po.ANNUALLY="ANNUALLY",(pa=mf||(mf={})).TITLE="TITLE",pa.SOURCE="SOURCE",pa.STATUS="STATUS",pa.SENT_ON="SENT_ON",pa.DELIVERED_ON="DELIVERED_ON",(ps=mg||(mg={})).MESSAGE_INVALID="MESSAGE_INVALID",ps.CERTIFICATE_INVALID="CERTIFICATE_INVALID",ps.UNAUTHORIZED="UNAUTHORIZED",ps.FORBIDDEN="FORBIDDEN",ps.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",ps.CONFIG_DISABLED="CONFIG_DISABLED",ps.USER_DISABLED="USER_DISABLED",ps.SERVER_ERROR="SERVER_ERROR",ps.ASSET_ERROR="ASSET_ERROR",ps.SERVER_BUSY="SERVER_BUSY",(pl=mb||(mb={})).PRIVATE="PRIVATE",pl.PROTECTED="PROTECTED",pl.PUBLIC="PUBLIC",(pc=mv||(mv={})).EXACT="EXACT",pc.BEGIN="BEGIN",pc.END="END",pc.CONTAINS="CONTAINS",(pd=m_||(m_={})).EQUALS="EQUALS",pd.GREATER_THAN="GREATER_THAN",pd.GREATER_EQUALS="GREATER_EQUALS",pd.LESS_THAN="LESS_THAN",pd.LESS_EQUALS="LESS_EQUALS",pd.BETWEEN="BETWEEN",(pu=my||(my={})).CREATED_ON="CREATED_ON",pu.NAME="NAME",pu.ASSET_TYPE="ASSET_TYPE",pu.PARENT_ID="PARENT_ID",pu.REALM="REALM",(ph=mx||(mx={})).RESTRICTED="RESTRICTED",ph.LINKED="LINKED",ph.REALM="REALM",(pp=mw||(mw={})).AT_LEAST_ONE="AT_LEAST_ONE",pp.ALL="ALL",pp.NONE="NONE",(pm=mF||(mF={})).AND="AND",pm.OR="OR",(pf=mE||(mE={})).CREATED_ON="CREATED_ON",pf.FIRST_NAME="FIRST_NAME",pf.LAST_NAME="LAST_NAME",pf.USERNAME="USERNAME",pf.EMAIL="EMAIL",(pg=mk||(mk={})).STOPPED="STOPPED",pg.RUNNING="RUNNING",pg.ERROR="ERROR",(pb=mC||(mC={})).JAVASCRIPT="JAVASCRIPT",pb.GROOVY="GROOVY",pb.JSON="JSON",pb.FLOW="FLOW",(pv=mA||(mA={})).READY="READY",pv.DEPLOYED="DEPLOYED",pv.COMPILATION_ERROR="COMPILATION_ERROR",pv.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",pv.EXECUTION_ERROR="EXECUTION_ERROR",pv.LOOP_ERROR="LOOP_ERROR",pv.DISABLED="DISABLED",pv.PAUSED="PAUSED",pv.EXPIRED="EXPIRED",pv.REMOVED="REMOVED",pv.EMPTY="EMPTY",(p_=mT||(mT={})).SUNRISE="SUNRISE",p_.SUNSET="SUNSET",p_.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",p_.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",p_.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",p_.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",p_.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",p_.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",p_.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",p_.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",p_.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",p_.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",p_.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",p_.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",p_.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",p_.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",p_.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",p_.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",p_.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",p_.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(py=mS||(mS={})).NUMBER="NUMBER",py.NUMBER_ARRAY="NUMBER_ARRAY",py.STRING="STRING",py.BOOLEAN="BOOLEAN",py.TRIGGER="TRIGGER",py.COLOR="COLOR",py.ANY="ANY",(px=mI||(mI={})).NEW_LINE="NEW_LINE",px.SPACER="SPACER",(pw=mD||(mD={})).INPUT="INPUT",pw.PROCESSOR="PROCESSOR",pw.OUTPUT="OUTPUT",pw.THEN="THEN",(pF=mM||(mM={})).TEXT="TEXT",pF.MULTILINE="MULTILINE",pF.NUMBER="NUMBER",pF.DROPDOWN="DROPDOWN",pF.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",pF.CHECKBOX="CHECKBOX",pF.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",pF.COLOR="COLOR",pF.DATE="DATE",(pE=mR||(mR={})).ADD="ADD",pE.ADD_OR_REPLACE="ADD_OR_REPLACE",pE.REPLACE="REPLACE",pE.DELETE="DELETE",pE.CLEAR="CLEAR",(pk=mO||(mO={})).PER_ASSET="PER_ASSET",pk.GLOBAL="GLOBAL",(pC=mL||(mL={})).READ_ADMIN="read:admin",pC.READ_LOGS="read:logs",pC.READ_USERS="read:users",pC.READ_MAP="read:map",pC.READ_ASSETS="read:assets",pC.READ_RULES="read:rules",pC.READ_INSIGHTS="read:insights",pC.READ_ALARMS="read:alarms",pC.READ_NOTIFICATIONS="read:notifications",pC.READ_SERVICES="read:services",pC.WRITE_SERVICES="write:services",pC.WRITE_USER="write:user",pC.WRITE_ADMIN="write:admin",pC.WRITE_LOGS="write:logs",pC.WRITE_ASSETS="write:assets",pC.WRITE_ATTRIBUTES="write:attributes",pC.WRITE_RULES="write:rules",pC.WRITE_INSIGHTS="write:insights",pC.WRITE_ALARMS="write:alarms",pC.WRITE_NOTIFICATIONS="write:notifications",pC.READ="read",pC.WRITE="write",(pA=mP||(mP={})).REGISTER="REGISTER",pA.UPDATE="UPDATE",pA.DEREGISTER="DEREGISTER",(pT=m$||(m$={})).AVAILABLE="AVAILABLE",pT.UNAVAILABLE="UNAVAILABLE",(pS=mB||(mB={})).ASSET="ASSET",pS.AGENT="AGENT",pS.NOTIFICATION="NOTIFICATION",pS.ALARM="ALARM",pS.RULES="RULES",pS.PROTOCOL="PROTOCOL",pS.GATEWAY="GATEWAY",pS.MODEL_AND_VALUES="MODEL_AND_VALUES",pS.API="API",pS.DATA="DATA",(pI=mN||(mN={})).INFO="INFO",pI.WARN="WARN",pI.ERROR="ERROR",(pD=mz||(mz={})).NUMERIC="numeric",pD.DIGIT_2="2-digit",pD.FULL="full",pD.LONG="long",pD.MEDIUM="medium",pD.SHORT="short",pD.NARROW="narrow",(pM=mj||(mj={})).SECONDLY="SECONDLY",pM.MINUTELY="MINUTELY",pM.HOURLY="HOURLY",pM.DAILY="DAILY",pM.WEEKLY="WEEKLY",pM.MONTHLY="MONTHLY",pM.YEARLY="YEARLY",(pR=mV||(mV={})).OMIT="OMIT",pR.BACKWARD="BACKWARD",pR.FORWARD="FORWARD",(pO=mU||(mU={})).JAPANESE="JAPANESE",pO.BUDDHIST="BUDDHIST",pO.ROC="ROC",pO.ISLAMIC="ISLAMIC",pO.ISO8601="ISO8601",pO.CHINESE="CHINESE",pO.ETHIOPIC="ETHIOPIC",pO.HEBREW="HEBREW",pO.GREGORIAN="GREGORIAN",(pL=mH||(mH={})).SU="SU",pL.MO="MO",pL.TU="TU",pL.WE="WE",pL.TH="TH",pL.FR="FR",pL.SA="SA",(pP=mq||(mq={})).PEOPLECOUNTERASSET="PeopleCounterAsset",pP.MAILAGENT="MailAgent",pP.UDPAGENT="UDPAgent",pP.ROOMASSET="RoomAsset",pP.CITYASSET="CityAsset",pP.VENTILATIONASSET="VentilationAsset",pP.TRADFRILIGHTASSET="TradfriLightAsset",pP.CONSOLEASSET="ConsoleAsset",pP.PRESENCESENSORASSET="PresenceSensorAsset",pP.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",pP.LIGHTASSET="LightAsset",pP.KNXAGENT="KNXAgent",pP.THETHINGSSTACKAGENT="TheThingsStackAgent",pP.PLUGASSET="PlugAsset",pP.CHIRPSTACKAGENT="ChirpStackAgent",pP.WEATHERASSET="WeatherAsset",pP.THINGASSET="ThingAsset",pP.WEBSOCKETAGENT="WebsocketAgent",pP.TCPAGENT="TCPAgent",pP.GATEWAYASSET="GatewayAsset",pP.SERIALAGENT="SerialAgent",pP.BLUETOOTHMESHAGENT="BluetoothMeshAgent",pP.PARKINGASSET="ParkingAsset",pP.TRADFRIPLUGASSET="TradfriPlugAsset",pP.SIMULATORAGENT="SimulatorAgent",pP.SNMPAGENT="SNMPAgent",pP.GROUPASSET="GroupAsset",pP.BUILDINGASSET="BuildingAsset",pP.MODBUSSERIALAGENT="ModbusSerialAgent",pP.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",pP.MQTTAGENT="MQTTAgent",pP.VELBUSTCPAGENT="VelbusTCPAgent",pP.ARTNETLIGHTASSET="ArtnetLightAsset",pP.VELBUSSERIALAGENT="VelbusSerialAgent",pP.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",pP.MICROPHONEASSET="MicrophoneAsset",pP.MODBUSTCPAGENT="ModbusTcpAgent",pP.ZWAVEAGENT="ZWaveAgent",pP.HTTPAGENT="HTTPAgent",pP.DOORASSET="DoorAsset",pP.THERMOSTATASSET="ThermostatAsset",pP.SHIPASSET="ShipAsset",(p$=mW||(mW={})).COLOURRGB="colourRGB",p$.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",p$.PRICEHOURLY="priceHourly",p$.MQTTPORT="MQTTPort",p$.PINGDISABLED="pingDisabled",p$.FLOW="flow",p$.CHILDASSETTYPE="childAssetType",p$.LASTACCESS="lastAccess",p$.POSITION="position",p$.NETWORKKEY="networkKey",p$.UNIVERSE="universe",p$.ROUTINGMODE="routingMode",p$.MSSINUMBER="MSSINumber",p$.LASTWILLRETAIN="lastWillRetain",p$.LASTWILLTOPIC="lastWillTopic",p$.SERIALBAUDRATE="serialBaudrate",p$.SUBSCRIBEQOS="subscribeQos",p$.LEDCOUNT="lEDCount",p$.LOCKED="locked",p$.CLOUDCOVERAGE="cloudCoverage",p$.BASEURL="baseURL",p$.PROTOCOL="protocol",p$.REQUIREDVALUES="requiredValues",p$.REGION="region",p$.CONSOLEPLATFORM="consolePlatform",p$.GATEWAYSTATUS="gatewayStatus",p$.NO2LEVEL="NO2Level",p$.ATMOSPHERICPRESSURE="atmosphericPressure",p$.SERIALPORT="serialPort",p$.APPLICATIONID="applicationId",p$.TAGS="tags",p$.UNLOCK="unlock",p$.CHECKINTERVALSECONDS="checkIntervalSeconds",p$.LOCATION="location",p$.CLIENTSECRET="clientSecret",p$.WINDDIRECTION="windDirection",p$.WINDSPEED="windSpeed",p$.PARTICLESPM10="particlesPM10",p$.APPLICATIONKEY="applicationKey",p$.LENGTH="length",p$.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",p$.USERNAMEPASSWORD="usernamePassword",p$.WATERLEVEL="waterLevel",p$.CONNECTHEADERS="connectHeaders",p$.CONSOLENAME="consoleName",p$.WEBSOCKETQUERY="websocketQuery",p$.PREFERHTML="preferHTML",p$.PARITY="parity",p$.COOLING="cooling",p$.POLLINGMILLIS="pollingMillis",p$.SOILTEMPERATURE="soilTemperature",p$.SUNIRRADIANCE="sunIrradiance",p$.MESSAGEMAXLENGTH="messageMaxLength",p$.WINDGUSTSPEED="windGustSpeed",p$.LIGHTID="lightId",p$.PROXYADDRESS="proxyAddress",p$.REQUESTQUERYPARAMETERS="requestQueryParameters",p$.MQTTHOST="MQTTHost",p$.SECUREGRPC="secureGRPC",p$.MODEL="model",p$.STREET="street",p$.MANUFACTURER="manufacturer",p$.DELETEPROCESSEDMAIL="deleteProcessedMail",p$.RESUMESESSION="resumeSession",p$.ONOFF="onOff",p$.APIKEY="ApiKey",p$.CITY="city",p$.PRESENCE="presence",p$.SPACESOCCUPIED="spacesOccupied",p$.STARTTLS="startTLS",p$.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",p$.WEBSOCKETPATH="websocketPath",p$.AGENTSTATUS="agentStatus",p$.PRICEDAILY="priceDaily",p$.COUNTGROWTHMINUTE="countGrowthMinute",p$.IMONUMBER="IMONumber",p$.ATTRIBUTION="Attribution",p$.TENANTID="tenantId",p$.REQUESTHEADERS="requestHeaders",p$.HOST="host",p$.COUNTOUTMINUTE="countOutMinute",p$.MESSAGECHARSET="messageCharset",p$.CERTIFICATEALIAS="certificateAlias",p$.EMAIL="email",p$.BINDPORT="bindPort",p$.CONSOLEVERSION="consoleVersion",p$.PARTICLESPM1="particlesPM1",p$.MTU="mtu",p$.SPEED="speed",p$.MESSAGESTRIPDELIMITER="messageStripDelimiter",p$.AREA="area",p$.COUNTRY="country",p$.SHIPTYPE="shipType",p$.CONNECTSUBSCRIPTIONS="connectSubscriptions",p$.RELATIVEHUMIDITY="relativeHumidity",p$.SOURCEADDRESS="sourceAddress",p$.RAINFALL="rainfall",p$.OAUTHGRANT="oAuthGrant",p$.OZONELEVEL="ozoneLevel",p$.SEQUENCENUMBER="sequenceNumber",p$.COUNTINMINUTE="countInMinute",p$.PORT="port",p$.SUNALTITUDE="sunAltitude",p$.COUNTOUT="countOut",p$.ROOMNUMBER="roomNumber",p$.TUNNELINGSUPPORTED="tunnelingSupported",p$.ENINUMBER="ENINumber",p$.PARTICLESPM2_5="particlesPM2_5",p$.AGENTDISABLED="agentDisabled",p$.DISABLED="disabled",p$.COUNTIN="countIn",p$.MESSAGESOURCEADDRESS="messageSourceAddress",p$.PROVISIONWEATHERASSET="ProvisionWeatherAsset",p$.TIMEINJECTIONINTERVAL="timeInjectionInterval",p$.TEMPERATURESETPOINT="temperatureSetpoint",p$.CONSOLEPROVIDERS="consoleProviders",p$.COUNTTOTAL="countTotal",p$.SPACESBUFFER="spacesBuffer",p$.DEVICECONFIG="deviceConfig",p$.SPACESTOTAL="spacesTotal",p$.BINDHOST="bindHost",p$.FANSPEED="fanSpeed",p$.MESSAGECONVERTBINARY="messageConvertBinary",p$.NOTES="notes",p$.MAILFOLDERNAME="mailFolderName",p$.MESSAGEDELIMITERS="messageDelimiters",p$.TEMPERATURE="temperature",p$.SUNZENITH="sunZenith",p$.SNMPVERSIONVALUE="SNMPVersionValue",p$.BRIGHTNESS="brightness",p$.POSTALCODE="postalCode",p$.SPACESOPEN="spacesOpen",p$.HUMIDITY="humidity",p$.SOUNDLEVEL="soundLevel",p$.SECUREMODE="secureMode",p$.DIRECTION="direction",p$.STOPBITS="stopbits",p$.UVINDEX="uVIndex",p$.CONNECTURL="connectURL",p$.CLIENTID="clientId",p$.NATMODE="NATMode",p$.UPDATEONWRITE="updateOnWrite",p$.LASTWILLPAYLOAD="lastWillPayload",p$.GROUPID="groupId",p$.FOLLOWREDIRECTS="followRedirects",p$.SUNAZIMUTH="sunAzimuth",p$.MESSAGECONVERTHEX="messageConvertHex",p$.WEBSOCKETMODE="websocketMode",p$.COLOURTEMPERATURE="colourTemperature",p$.PUBLISHQOS="publishQos",p$.DATABITS="dataBits",(pB=mG||(mG={})).FORMAT="format",pB.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",pB.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",pB.SECRET="secret",pB.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",pB.ATTRIBUTELINKS="attributeLinks",pB.RULERESETIMMEDIATE="ruleResetImmediate",pB.RULESTATE="ruleState",pB.AGENTLINKCONFIG="agentLinkConfig",pB.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",pB.FORECAST="forecast",pB.STOREDATAPOINTS="storeDataPoints",pB.LABEL="label",pB.CONSTRAINTS="constraints",pB.UNITS="units",pB.USERCONNECTED="userConnected",pB.SHOWONDASHBOARD="showOnDashboard",pB.READONLY="readOnly",pB.MULTILINE="multiline",pB.ACCESSPUBLICWRITE="accessPublicWrite",pB.MOMENTARY="momentary",pB.AGENTLINK="agentLink",pB.ACCESSRESTRICTEDREAD="accessRestrictedRead",pB.ACCESSPUBLICREAD="accessPublicRead",(pN=mY||(mY={})).ASSETQUERY="assetQuery",pN.WSURL="WS_URL",pN.COLOURRGB="colourRGB",pN.VALUEFORMAT="valueFormat",pN.TEXT="text",pN.BYTE="byte",pN.USERNAMEANDPASSWORD="usernameAndPassword",pN.HTTPURL="HTTP_URL",pN.ATTRIBUTELINK="attributeLink",pN.ASSETID="assetID",pN.NUMBERMAP="numberMap",pN.HTTPMETHOD="HTTPMethod",pN.ATTRIBUTESTATE="attributeState",pN.POSITIVENUMBER="positiveNumber",pN.POSITIVEINTEGER="positiveInteger",pN.EXECUTIONSTATUS="executionStatus",pN.BIGINTEGER="bigInteger",pN.VALUEDESCRIPTOR="valueDescriptor",pN.PERIODDURATIONISO8601="periodDurationISO8601",pN.LONG="long",pN.DATEANDTIME="dateAndTime",pN.BOOLEANMAP="booleanMap",pN.MQTTQOS="MQTTQos",pN.NEGATIVEINTEGER="negativeInteger",pN.TCPIPPORTNUMBER="TCP_IPPortNumber",pN.GEOJSONPOINT="GEO_JSONPoint",pN.SNMPVERSION="SNMPVersion",pN.ASSETTYPE="assetType",pN.JSONOBJECT="JSONObject",pN.INTEGERMAP="integerMap",pN.BIGNUMBER="bigNumber",pN.IPADDRESS="IPAddress",pN.EMAIL="email",pN.TIMESTAMP="timestamp",pN.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",pN.ATTRIBUTEREFERENCE="attributeReference",pN.UUID="UUID",pN.INTEGER="integer",pN.OAUTHGRANT="oAuthGrant",pN.NUMBER="number",pN.DEVICECONFIGMAP="DeviceConfigMap",pN.TEXTMAP="textMap",pN.WEBSOCKETSUBSCRIPTION="websocketSubscription",pN.BOOLEAN="boolean",pN.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",pN.FORECASTCONFIGURATION="forecastConfiguration",pN.TIMEDURATIONISO8601="timeDurationISO8601",pN.TIMESTAMPISO8601="timestampISO8601",pN.CONSOLEPROVIDERS="consoleProviders",pN.MULTIVALUEDTEXTMAP="multivaluedTextMap",pN.NEGATIVENUMBER="negativeNumber",pN.PARITYBIT="Paritybit",pN.JSON="JSON",pN.CRONEXPRESSION="CRONExpression",pN.INTEGERBYTE="integerByte",pN.AGENTLINK="agentLink",pN.DIRECTION="direction",pN.HOSTORIPADDRESS="hostOrIPAddress",pN.STOPBITS="Stopbits",pN.CALENDAREVENT="calendarEvent",pN.CONNECTIONSTATUS="connectionStatus",pN.VALUECONSTRAINT="valueConstraint",(pz=mK||(mK={})).MONTH="month",pz.MILE_SCANDINAVIAN="mile_scandinavian",pz.VAR="var",pz.OUNCE="ounce",pz.HECTARE="hectare",pz.YARD="yard",pz.YEAR="year",pz.GIGA="giga",pz.JOULE="joule",pz.VOLT="volt",pz.HERTZ="hertz",pz.MILE="mile",pz.DEGREE="degree",pz.KILO="kilo",pz.BTU="btu",pz.TERA="tera",pz.FOOT="foot",pz.MEGA="mega",pz.KELVIN="kelvin",pz.CARBON="carbon",pz.DECIBEL_ATTENUATED="decibel_attenuated",pz.INCH="inch",pz.SQUARED="squared",pz.PERCENTAGE="percentage",pz.IN_HG="inch_mercury",pz.CENTI="centi",pz.GRAM="gram",pz.CUBED="cubed",pz.DAY="day",pz.RADIAN="radian",pz.OHM="ohm",pz.MINUTE="minute",pz.PART_PER_MILLION="ppm",pz.AMP="amp",pz.MASS_POUND="pound",pz.KNOT="knot",pz.METRE="metre",pz.LITRE="litre",pz.FLUID_OUNCE="fluid_ounce",pz.HOUR="hour",pz.ACRE="acre",pz.CELSIUS="celsius",pz.RPM="rpm",pz.PASCAL="pascal",pz.DECIBEL="decibel",pz.LUMEN="lumen",pz.WEEK="week",pz.FAHRENHEIT="fahrenheit",pz.WATT="watt",pz.GALLON="gallon",pz.LUX="lux",pz.MILLI="milli",pz.BAR="bar",pz.HECTO="hecto",pz.PEAK="peak",pz.SECOND="second",pz.MICRO="micro",pz.PER="per",pz.STONE="stone",mX||(mX={});class ne{static getAssetDescriptors(){return ne._assetTypeInfos.map(t=>t.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(t){if(t)return t.assetDescriptor?t:("string"!=typeof t&&(t=t.name),this._assetTypeInfos.find(n=>n.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let n=this._assetTypeInfos.find(n=>n.assetDescriptor.name===t);return n?n.assetDescriptor:void 0}static getAttributeDescriptor(t,n){if(!t)return;let i=this.getAssetTypeInfo(n||"ThingAsset");if(i&&i.attributeDescriptors)return i.attributeDescriptors.find(n=>n.name===t)}static getValueDescriptor(t){let n;if(!t)return;if(t.endsWith("[]"))for(n=0;t.endsWith("[]");)t=t.substring(0,t.length-2),n++;let i=this._valueDescriptors.find(n=>n.name===t);return i&&n&&(i=Object.assign(Object.assign({},i),{arrayDimensions:n})),i}static resolveValueDescriptor(t,n){let i;return n&&("string"==typeof n&&(i=ne.getValueDescriptor(n)),i=n.jsonType?n:ne.getValueDescriptor(n.type)),!i&&t&&(i=ne.getValueDescriptor("JSON")),i}static resolveValueTypeFromValue(t){if(null!=t){if("number"==typeof t)return"number";if("string"==typeof t)return"text";if("boolean"==typeof t)return"boolean";if(Array.isArray(t)){let n=1,i=t.find(t=>null!=t);for(;Array.isArray(i);)i=i.find(t=>null!=t),n++;let r=this.resolveValueTypeFromValue(i);if(!r)return;for(;n>0;)r+="[]",n--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,n,i){let r,o;if(n&&"string"!=typeof n)r=n;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof n&&(r=this.getAttributeDescriptor(n,o)),!r&&i&&(r={type:i.type,name:i.name,meta:i.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(n=>n.name===t)}static getAssetDescriptorColour(t,n){let i=this.getAssetDescriptor(t);return i&&i.colour?i.colour:n}static getAssetDescriptorIcon(t,n){let i=this.getAssetDescriptor(t);return i&&i.icon?i.icon:n}}ne._assetTypeInfos=[],ne._metaItemDescriptors=[],ne._valueDescriptors=[],o(4532);var nt=o(4867),nn=o.n(nt);o(3472);class ni{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n}),Object.freeze(this)}}function nr(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){if(Array.isArray(t))return t.every((t,i)=>nr(t,n[i]));let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>nr(t[i],n[i]))}return!1}function no(t){if(null==t)return"";let n=!1;return t.split(/([A-Z]|\d)/).map((t,i,r)=>{if(!t)return t;if(!n)return n=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let n=!r[i-1]||"_"===r[i-1],o=i+1<r.length&&r[i+1]&&"_"!==r[i+1],a=i+3>r.length||!r[i+1]&&!r[i+3];(!n||o)&&(t=" "+t),!o&&(n||a)||(t=t.toLowerCase())}return t}).join("").trim()}function na(t,n,i){let r="string"==typeof t?t:t.name;return n&&n.meta&&n.meta.hasOwnProperty(r)?n.meta[r]:i&&i.meta?i.meta[r]:void 0}function ns(t){return("string"==typeof t&&(t=ne.getAssetDescriptor(t)),t)?t8.t("label.asset."+t.name,{defaultValue:no(t.name)}):""}function nl(t,n){let i="string"==typeof t?ne.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:ne.resolveValueTypeFromValue(n),value:n}}function nc(t,n,i,r,o,a){let s=nm("label",t,n,i,o),l="";if(s||(s=na("label",t,n&&n.meta?n:void 0)),r&&(l=nh(np("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?no(i):void 0)}return s?s+(l?" ("+l+")":""):l}function nd(t,n,i,r,o,a){let s=nu(t?t.value:void 0,()=>np("format",t,n,i,o),void 0,a),l=np("units",t,n,i,!0);return r&&l&&l.length&&(s=nh(np("units",t,n,i,o),s)),s}function nu(t,n,i,r){let o="";if(null==t)o=r||"";else if("string"==typeof t)o=t;else if("number"==typeof t||"boolean"==typeof t||t instanceof Date){let r=n&&n();if(r&&0!==Object.keys(r).length)switch("number"==typeof t?r.asBoolean?t=!!t:r.asDate&&(t=new Date(t)):"boolean"==typeof t&&r.asNumber&&(t=+!!t),typeof t){case"number":o=new Intl.NumberFormat(i||t8.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t8.t("on"):t8.t("off")),r.asOpenClosed&&(o=t?t8.t("open"):t8.t("closed")),r.asPressedReleased&&(o=t?t8.t("pressed"):t8.t("released"));break;case"object":if(r.momentJsFormat)o=nn()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let n,i=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),n=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-n.getTime())/864e5+1)/7));o="2-digit"===r.week?String(i).padStart(2,"0"):Number(i).toString(10)}else o=new Intl.DateTimeFormat(i||t8.language,r).format(t)}else o=Object(t).toString()}return o}function nh(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t8.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t8.language,{currency:t,style:"currency"}).formatToParts();if(0!==i||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!n)return r[0].value;n=r[0].value+n}}).join("");return n.length>0?n+" "+i:i}function np(t,n,i,r,o){let a,s=[],l=nm(t,n&&"string"==typeof n?n:n?n.name:i?"string"==typeof i?i:i.name:void 0,i,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(n&&n.meta&&(a=na(t,n,i)))if("format"!==t)return a;else s.push(a);if(i&&"string"!=typeof i&&i.hasOwnProperty(t)){if(a=i[t],"format"!==t)return a;s.push(a)}if(i&&i.type){if(a=ne.getValueDescriptor(i.type)[t],"format"!==t)return a;s.push(a)}if("format"!==t||0===s.length)return a;let c={};return s.reverse().forEach(t=>{c=Object.assign(Object.assign({},c),t)}),c}function nm(t,n,i,r,o,a){let s;if(n?s="string"==typeof n?n:n.name:i&&(s="string"==typeof i?i:i.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),i&&"string"!=typeof i&&(l.push(c+i.type+"."+s),l.push(c+i.type)),l.push(c+s),l.length>0)return t8.t(l,{defaultValue:a||""})}function nf(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}class ng{constructor(t){t&&Object.assign(this,t)}matches(t){var n,i,r,o,a,s,l;if((null==(n=this.ids)?void 0:n.length)&&(!t.id||!this.ids.includes(t.id))||(null==(i=this.types)?void 0:i.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(n=>!n.id||t.parentId===n.id))return!1;if(null==(a=this.paths)?void 0:a.length){let n=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var i;return(null!=(i=t.path)?i:[]).every((t,i)=>n[i]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(n=>ng._evalValuePredicate(t.name,n)))&&(!this.attributes||ng._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!ng._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?ng._collectNames(this.attributes):[]}static _evalValuePredicate(t,n){var i;switch(n.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==n.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==n.caseSensitive?n.value:null==(i=n.value)?void 0:i.toLowerCase();switch(n.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return n.negate?!r:r}case"boolean":return t===n.value;case"number":{let i;if("number"!=typeof t)return!1;switch(n.operator){case"GREATER_THAN":i=t>n.value;break;case"GREATER_EQUALS":i=t>=n.value;break;case"LESS_THAN":i=t<n.value;break;case"LESS_EQUALS":i=t<=n.value;break;case"BETWEEN":i=t>=n.value&&t<=n.rangeValue;break;default:i=t===n.value}return n.negate?!i:i}}return!1}static _evalPredicate(t,n){var i,r;let o=null==(i=n.name)?void 0:i.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!n.negated;let s=!n.value||ng._evalValuePredicate(a.value,n.value);return n.negated?!s:s}static _evalGroup(t,n){var i,r,o;let a=null!=(i=n.operator)?i:"AND",s=[...(null!=(r=n.items)?r:[]).map(n=>ng._evalPredicate(t,n)),...(null!=(o=n.groups)?o:[]).map(n=>ng._evalGroup(t,n))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var n,i;return[...(null!=(n=t.items)?n:[]).map(t=>{var n;return null==(n=t.name)?void 0:n.value}).filter(t=>!!t),...(null!=(i=t.groups)?i:[]).flatMap(t=>ng._collectNames(t))]}}ng._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nb=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};let nv=o(4461);class n_{constructor(t,n,i){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=n,this._enableCompleteCallback=i,window.OpenRemoteConsole=this;let r=new URLSearchParams(window.location.search),o=r.get("consoleName"),a=r.get("consoleVersion"),s=r.get("consolePlatform"),l=r.get("consoleProviders"),c=r.get("consoleAutoEnable"),d=l&&l.length>0?l.split(" "):["push"];this._pendingProviderEnables=d;let u=n_._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=u.providers;for(let t of(u.providers={},d)){let n=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};u.providers[t]=n}let m=o0.getAppName();m.length>0&&0>u.apps.indexOf(m)&&u.apps.push(m),this._registration=u,o&&(u.name=o),a&&(u.version=a),s&&(u.platform=s),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let t=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return t&&("iP"===t.substring(0,2)||"Mac"===t.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return nb(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);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(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let t=this._pendingProviderEnables.length-1;t>-1;t--){let n=this._pendingProviderEnables[t];yield this.enableProvider(n)}})}enableProvider(t,n){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return nb(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: disabling provider '"+t+"'");let n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,n})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,n){return nb(this,void 0,void 0,function*(){if("storage"!==t.provider&&!this._registration.providers.hasOwnProperty(t.provider))throw console.debug("Invalid console provider '"+t.provider+"'"),Error("Invalid console provider '"+t.provider+"'");if(!n)return void this._doSendProviderMessage(t);let i=t.provider+t.action;if(this._pendingProviderPromises[i])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new ni,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>nb(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),n(t)}}))})}_sendRegistration(t){return nb(this,void 0,void 0,function*(){this._normaliseRegistration();let n=!!this._registration.id;try{let t=yield o0.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(i){if(t&&n&&n_._isStaleRegistrationResponse(i)){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 i}})}_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(t){let n=t&&t.response?t.response.status:void 0;return 403===n||409===n}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nb(this,void 0,void 0,function*(){let n=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([n,new Promise((t,n)=>setTimeout(n,2e3))]);if(t&&t.value){let n=t.value;return"null"===n?void 0:n}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,n){this._providerMessageListeners[t.provider+t.action]=n}removeProviderMessageListener(t){delete this._providerMessageListeners[t.provider+t.action]}_postNativeShellMessage(t){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(t));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(t)}catch(t){console.error("Failed to send shell message towards console",t)}}_doSendGenericMessage(t,n){let i={type:t,data:n};this.isMobile?this._postNativeShellMessage(i):console.warn("Failed to send generic message to console.",i)}_doSendProviderMessage(t){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:t});else{if(!t.provider||!t.action)return;switch(t.provider.trim().toUpperCase()){case"PUSH":switch(t.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 '"+t.provider+"' and action '"+t.action+"'")}break;case"STORAGE":switch(t.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 n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(n):window.localStorage.setItem(n,JSON.stringify(t.value))}break;case"RETRIEVE":{let n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'retrieve' action requires a `key`");let i=window.localStorage.getItem(n);if(null!==i)try{i=JSON.parse(i)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:n,value:i}))}break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;default:console.error("Unsupported provider: "+t.provider)}}}_handleProviderResponse(t){if(!t)return;let n=JSON.parse(t),i=n.provider,r=n.action,o=this._pendingProviderPromises[i+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[i+r],o[0].resolve(n));let a=this._providerMessageListeners[i+r];a&&a(n)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:nv.name,version:nv.version,platform:nv.os.toString(),apps:[],model:((nv.manufacturer?nv.manufacturer+" ":"")+(nv.product?nv.product:"")).trim()}}_initialiseProvider(t){return nb(this,void 0,void 0,function*(){let n;console.debug("Console: initialising provider '"+t+"'");try{n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=n.version,this._registration.providers[t].requiresPermission=n.requiresPermission,this._registration.providers[t].hasPermission=n.hasPermission,this._registration.providers[t].success=n.success,this._registration.providers[t].enabled=n.enabled,this._registration.providers[t].disabled=n.disabled,this._registration.providers[t].data=n.data}catch(t){console.error(t),n={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(n.success||(console.debug("Provider initialisation failed: '"+t+"'"),n.disabled=!0,this._registration.providers[t].disabled=!0),n.disabled||n.enabled){let n=this._pendingProviderEnables.indexOf(t);n>=0&&this._pendingProviderEnables.splice(n,1)}})}}function ny(t,n){return function(){return t.apply(n,arguments)}}let{toString:nx}=Object.prototype,{getPrototypeOf:nw}=Object,{iterator:nF,toStringTag:nE}=Symbol,nk=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),nC=(t,n)=>{let i=t,r=[];for(;null!=i&&i!==Object.prototype&&-1===r.indexOf(i);){if(r.push(i),nk(i,n))return!0;i=nw(i)}return!1},nA=(u=Object.create(null),t=>{let n=nx.call(t);return u[n]||(u[n]=n.slice(8,-1).toLowerCase())}),nT=t=>(t=t.toLowerCase(),n=>nA(n)===t),nS=t=>n=>typeof n===t,{isArray:nI}=Array,nD=nS("undefined");function nM(t){return null!==t&&!nD(t)&&null!==t.constructor&&!nD(t.constructor)&&nL(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nR=nT("ArrayBuffer"),nO=nS("string"),nL=nS("function"),nP=nS("number"),n$=t=>null!==t&&"object"==typeof t,nB=t=>{if(!n$(t))return!1;let n=nw(t);return(null===n||n===Object.prototype||null===nw(n))&&!nC(t,nE)&&!nC(t,nF)},nN=nT("Date"),nz=nT("File"),nj=nT("Blob"),nV=nT("FileList"),nU="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nH=void 0!==nU.FormData?nU.FormData:void 0,nq=nT("URLSearchParams"),[nW,nG,nY,nK]=["ReadableStream","Request","Response","Headers"].map(nT);function nX(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nI(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nM(t))return;let a=i?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],n.call(null,t[o],o,t)}}function nZ(t,n){let i;if(nM(t))return null;n=n.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(n===(i=r[o]).toLowerCase())return i;return null}let nJ="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nQ=t=>!nD(t)&&t!==nJ,n0=(h="u">typeof Uint8Array&&nw(Uint8Array),t=>h&&t instanceof h),n1=nT("HTMLFormElement"),{propertyIsEnumerable:n2}=Object.prototype,n5=nT("RegExp"),n3=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nX(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},n4=nT("AsyncFunction"),n6=(hN="function"==typeof setImmediate,hz=nL(nJ.postMessage),hN?setImmediate:hz?(hj=`axios@${Math.random()}`,hV=[],nJ.addEventListener("message",({source:t,data:n})=>{t===nJ&&n===hj&&hV.length&&hV.shift()()},!1),t=>{hV.push(t),nJ.postMessage(hj,"*")}):t=>setTimeout(t)),n8="u">typeof queueMicrotask?queueMicrotask.bind(nJ):"u">typeof process&&process.nextTick||n6,n7=t=>null!=t&&nL(t[nF]),n9={isArray:nI,isArrayBuffer:nR,isBuffer:nM,isFormData:t=>{if(!t)return!1;if(nH&&t instanceof nH)return!0;let n=nw(t);if(!n||n===Object.prototype||!nL(t.append))return!1;let i=nA(t);return"formdata"===i||"object"===i&&nL(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nR(t.buffer)},isString:nO,isNumber:nP,isBoolean:t=>!0===t||!1===t,isObject:n$,isPlainObject:nB,isEmptyObject:t=>{if(!n$(t)||nM(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nW,isRequest:nG,isResponse:nY,isHeaders:nK,isUndefined:nD,isDate:nN,isFile:nz,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nj,isRegExp:n5,isFunction:nL,isStream:t=>n$(t)&&nL(t.pipe),isURLSearchParams:nq,isTypedArray:n0,isFileList:nV,forEach:nX,merge:function t(...n){let{caseless:i,skipUndefined:r}=nQ(this)&&this||{},o={},a=(n,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=i&&"string"==typeof a&&nZ(o,a)||a,l=nk(o,s)?o[s]:void 0;nB(l)&&nB(n)?o[s]=t(l,n):nB(n)?o[s]=t({},n):nI(n)?o[s]=n.slice():r&&nD(n)||(o[s]=n)};for(let t=0,i=n.length;t<i;t++){let i=n[t];if(!i||nM(i)||(nX(i,a),"object"!=typeof i||nI(i)))continue;let r=Object.getOwnPropertySymbols(i);for(let t=0;t<r.length;t++){let n=r[t];n2.call(i,n)&&a(i[n],n)}}return o},extend:(t,n,i,{allOwnKeys:r}={})=>(nX(n,(n,r)=>{i&&nL(n)?Object.defineProperty(t,r,{__proto__:null,value:ny(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,i,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&nw(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nA,kindOfTest:nT,endsWith:(t,n,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=n.length;let r=t.indexOf(n,i);return -1!==r&&r===i},toArray:t=>{if(!t)return null;if(nI(t))return t;let n=t.length;if(!nP(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nF]).call(t);for(;(i=r.next())&&!i.done;){let r=i.value;n.call(t,r[0],r[1])}},matchAll:(t,n)=>{let i,r=[];for(;null!==(i=t.exec(n));)r.push(i);return r},isHTMLForm:n1,hasOwnProperty:nk,hasOwnProp:nk,hasOwnInPrototypeChain:nC,getSafeProp:(t,n)=>null!=t&&nC(t,n)?t[n]:void 0,reduceDescriptors:n3,freezeMethods:t=>{n3(t,(n,i)=>{if(nL(t)&&["arguments","caller","callee"].includes(i))return!1;if(nL(t[i])){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,n)=>{let i={};return(nI(t)?t:String(t).split(n)).forEach(t=>{i[t]=!0}),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t*=1)?t:n,findKey:nZ,global:nJ,isContextDefined:nQ,isSpecCompliantForm:function(t){return!!(t&&nL(t.append)&&"FormData"===t[nE]&&t[nF])},toJSONObject:t=>{let n=new WeakSet,i=t=>{if(n$(t)){if(n.has(t))return;if(nM(t))return t;if(!("toJSON"in t)){n.add(t);let r=nI(t)?[]:{};return nX(t,(t,n)=>{let o=i(t);nD(o)||(r[n]=o)}),n.delete(t),r}}return t};return i(t)},isAsyncFn:n4,isThenable:t=>t&&(n$(t)||nL(t))&&nL(t.then)&&nL(t.catch),setImmediate:n6,asap:n8,isIterable:n7,isSafeIterable:t=>null!=t&&nC(t,nF)&&n7(t)},ie=n9.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"]),it=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ii=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ir(t,n){return n9.isArray(t)?t.map(t=>ir(t,n)):function(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}(String(t).replace(n,""))}function io(t){let n=Object.create(null);return n9.forEach(t.toJSON(),(t,i)=>{n[i]=ir(t,ii)}),n}let ia=Symbol("internals");function is(t){return t&&String(t).trim().toLowerCase()}function il(t){return!1===t||null==t?t:n9.isArray(t)?t.map(il):ir(String(t),it)}function ic(t,n,i,r,o){if(n9.isFunction(r))return r.call(this,n,i);if(o&&(n=i),n9.isString(n)){if(n9.isString(r))return -1!==n.indexOf(r);if(n9.isRegExp(r))return r.test(n)}}class id{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=is(n);if(!o)return;let a=n9.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=il(t))}let a=(t,n)=>n9.forEach(t,(t,i)=>o(t,i,n));if(n9.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(n9.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&ie[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(n9.isObject(t)&&n9.isSafeIterable(t)){let i=Object.create(null),r,o;for(let n of t){if(!n9.isArray(n))throw TypeError("Object iterator must return a key-value pair");o=n[0],n9.hasOwnProp(i,o)?(r=i[o],i[o]=n9.isArray(r)?[...r,n[1]]:[r,n[1]]):i[o]=n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=is(t)){let i=n9.findKey(this,t);if(i){let t=this[i];if(!n)return t;if(!0===n){let n,i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=r.exec(t);)i[n[1]]=n[2];return i}if(n9.isFunction(n))return n.call(this,t,i);if(n9.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=is(t)){let i=n9.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||ic(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=is(t)){let o=n9.findKey(i,t);o&&(!n||ic(i,i[o],o,n))&&(delete i[o],r=!0)}}return n9.isArray(t)?t.forEach(o):o(t),r}clear(t){let n=Object.keys(this),i=n.length,r=!1;for(;i--;){let o=n[i];(!t||ic(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return n9.forEach(this,(r,o)=>{let a=n9.findKey(i,o);if(a){n[a]=il(r),delete n[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i):String(o).trim();s!==o&&delete n[o],n[s]=il(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return n9.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&n9.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[ia]=this[ia]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=is(t);if(!n[r]){let o;o=n9.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{__proto__:null,value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return n9.isArray(t)?t.forEach(r):r(t),this}}id.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n9.reduceDescriptors(id.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),n9.freezeMethods(id);class iu extends Error{static from(t,n,i,r,o,a){let s=new iu(t.message,n||t.code,i,r,o);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,n,i,r=this.config,o=r&&n9.hasOwnProp(r,"redact")?r.redact:void 0,a=n9.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),n=[],(i=r=>{let o;if(null===r||"object"!=typeof r||n9.isBuffer(r))return r;if(-1===n.indexOf(r)){if(r instanceof id&&(r=r.toJSON()),n.push(r),n9.isArray(r))o=[],r.forEach((t,n)=>{let r=i(t);n9.isUndefined(r)||(o[n]=r)});else{if(!n9.isPlainObject(r)&&function(t){if(n9.hasOwnProp(t,"toJSON"))return!0;let n=Object.getPrototypeOf(t);for(;n&&n!==Object.prototype;){if(n9.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}(r))return n.pop(),r;for(let[n,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(n.toLowerCase())?"[REDACTED ****]":i(a);n9.isUndefined(r)||(o[n]=r)}}return n.pop(),o}})(r)):n9.toJSONObject(r);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:a,code:this.code,status:this.status}}}iu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",iu.ERR_BAD_OPTION="ERR_BAD_OPTION",iu.ECONNABORTED="ECONNABORTED",iu.ETIMEDOUT="ETIMEDOUT",iu.ECONNREFUSED="ECONNREFUSED",iu.ERR_NETWORK="ERR_NETWORK",iu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",iu.ERR_DEPRECATED="ERR_DEPRECATED",iu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",iu.ERR_BAD_REQUEST="ERR_BAD_REQUEST",iu.ERR_CANCELED="ERR_CANCELED",iu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",iu.ERR_INVALID_URL="ERR_INVALID_URL",iu.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let ih=iu;function ip(t){return n9.isPlainObject(t)||n9.isArray(t)}function im(t){return n9.endsWith(t,"[]")?t.slice(0,-2):t}function ig(t,n,i){return t?t.concat(n).map(function(t,n){return t=im(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}let ib=n9.toFlatObject(n9,{},null,function(t){return/^is[A-Z]/.test(t)}),iv=function(t,n,i){if(!n9.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=n9.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!n9.isUndefined(n[t])})).metaTokens,o=i.visitor||m,a=i.dots,s=i.indexes,l=i.Blob||"u">typeof Blob&&Blob,c=void 0===i.maxDepth?100:i.maxDepth,d=l&&n9.isSpecCompliantForm(n),u=[];if(!n9.isFunction(o))throw TypeError("visitor must be a function");function h(t){if(null===t)return"";if(n9.isDate(t))return t.toISOString();if(n9.isBoolean(t))return t.toString();if(!d&&n9.isBlob(t))throw new ih("Blob is not supported. Use a Buffer instead.");if(n9.isArrayBuffer(t)||n9.isTypedArray(t)){if(d&&"function"==typeof l)return new l([t]);if("u">typeof Buffer)return Buffer.from(t);throw new ih("Blob is not supported. Use a Buffer instead.",ih.ERR_NOT_SUPPORT)}return t}function p(t){if(t>c)throw new ih("Object is too deeply nested ("+t+" levels). Max depth: "+c,ih.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(t,i,o){let l=t;if(n9.isReactNative(n)&&n9.isReactNativeBlob(t))return n.append(ig(o,i,a),h(t)),!1;if(t&&!o&&"object"==typeof t)if(n9.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=function(t){if(1/0===c)return JSON.stringify(t);let n=[];return JSON.stringify(t,function(t,i){if(!n9.isObject(i))return i;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(i),p(1+n.length-1),i})}(t);else{var d;if(n9.isArray(t)&&(d=t,n9.isArray(d)&&!d.some(ip))||(n9.isFileList(t)||n9.endsWith(i,"[]"))&&(l=n9.toArray(t)))return i=im(i),l.forEach(function(t,r){n9.isUndefined(t)||null===t||n.append(!0===s?ig([i],r,a):null===s?i:i+"[]",h(t))}),!1}return!!ip(t)||(n.append(ig(o,i,a),h(t)),!1)}let f=Object.assign(ib,{defaultVisitor:m,convertValue:h,isVisitable:ip});if(!n9.isObject(t))throw TypeError("data must be an object");return!function t(i,r,a=0){if(!n9.isUndefined(i)){if(p(a),-1!==u.indexOf(i))throw Error("Circular reference detected in "+r.join("."));u.push(i),n9.forEach(i,function(i,s){!0===(!(n9.isUndefined(i)||null===i)&&o.call(n,i,n9.isString(s)?s.trim():s,r,f))&&t(i,r?r.concat(s):[s],a+1)}),u.pop()}}(t),n};function i_(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return n[t]})}function iy(t,n){this._pairs=[],t&&iv(t,this,n)}let ix=iy.prototype;function iw(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iF(t,n,i){let r;if(!n)return t;t=t||"";let o=n9.isFunction(i)?{serialize:i}:i,a=n9.getSafeProp(o,"encode")||iw,s=n9.getSafeProp(o,"serialize");if(r=s?s(n,o):n9.isURLSearchParams(n)?n.toString():new iy(n,o).toString(a)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}ix.append=function(t,n){this._pairs.push([t,n])},ix.toString=function(t){let n=t?n=>t.call(this,n,i_):i_;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let iE=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n9.forEach(this.handlers,function(n){null!==n&&t(n)})}},ik={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},iC="u">typeof URLSearchParams?URLSearchParams:iy,iA="u">typeof FormData?FormData:null,iT="u">typeof Blob?Blob:null,iS="u">typeof window&&"u">typeof document,iI="object"==typeof navigator&&navigator||void 0,iD=iS&&(!iI||0>["ReactNative","NativeScript","NS"].indexOf(iI.product)),iM="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,iR=iS&&window.location.href||"http://localhost",iO={...k,isBrowser:!0,classes:{URLSearchParams:iC,FormData:iA,Blob:iT},protocols:["http","https","file","blob","url","data"]};function iL(t){if(t>100)throw new ih("FormData field is too deeply nested ("+t+" levels). Max depth: 100",ih.ERR_FORM_DATA_DEPTH_EXCEEDED)}let iP=function(t){if(n9.isFormData(t)&&n9.isFunction(t.entries)){let n={};return n9.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){iL(o);let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&n9.isArray(r)?r.length:a,l)?n9.hasOwnProp(r,a)?r[a]=n9.isArray(r[a])?r[a].concat(i):[r[a],i]:r[a]=i:(n9.hasOwnProp(r,a)&&n9.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&n9.isArray(r[a])&&(r[a]=function(t){let n,i,r={},o=Object.keys(t),a=o.length;for(n=0;n<a;n++)r[i=o[n]]=t[i];return r}(r[a]))),!s}(function(t){let n,i=[],r=/\w+|\[(\w*)]/g;for(;null!==(n=r.exec(t));)iL(i.length),i.push("[]"===n[0]?"":n[1]||n[0]);return i}(t),i,n,0)}),n}return null},i$=(t,n)=>null!=t&&n9.hasOwnProp(t,n)?t[n]:void 0,iB={transitional:ik,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=n9.isObject(t);if(a&&n9.isHTMLForm(t)&&(t=new FormData(t)),n9.isFormData(t))return o?JSON.stringify(iP(t)):t;if(n9.isArrayBuffer(t)||n9.isBuffer(t)||n9.isStream(t)||n9.isFile(t)||n9.isBlob(t)||n9.isReadableStream(t))return t;if(n9.isArrayBufferView(t))return t.buffer;if(n9.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let n=i$(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return iv(t,new iO.classes.URLSearchParams,{visitor:function(t,n,i,r){return iO.isNode&&n9.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n}).toString();if((i=n9.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=i$(this,"env"),o=r&&r.FormData;return iv(i?{"files[]":t}:t,o&&new o,n)}}if(a||o){n.setContentType("application/json",!1);var s=t;if(n9.isString(s))try{return(0,JSON.parse)(s),n9.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let n=i$(this,"transitional")||iB.transitional,i=n&&n.forcedJSONParsing,r=i$(this,"responseType"),o="json"===r;if(n9.isResponse(t)||n9.isReadableStream(t))return t;if(t&&n9.isString(t)&&(i&&!r||o)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,i$(this,"parseReviver"))}catch(t){if(!i&&o){if("SyntaxError"===t.name)throw ih.from(t,ih.ERR_BAD_RESPONSE,this,null,i$(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iO.classes.FormData,Blob:iO.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function iN(t,n){let i=this||iB,r=n||i,o=id.from(r.headers),a=r.data;return n9.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iz(t){return!!(t&&t.__CANCEL__)}n9.forEach(["delete","get","head","post","put","patch","query"],t=>{iB.headers[t]={}});let ij=class extends ih{constructor(t,n,i){super(null==t?"canceled":t,ih.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function iV(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new ih("Request failed with status code "+i.status,i.status>=400&&i.status<500?ih.ERR_BAD_REQUEST:ih.ERR_BAD_RESPONSE,i.config,i.request,i))}let iU=function(t,n){let i,r=Array(t=t||10),o=Array(t),a=0,s=0;return n=void 0!==n?n:1e3,function(l){let c=Date.now(),d=o[s];i||(i=c),r[a]=l,o[a]=c;let u=s,h=0;for(;u!==a;)h+=r[u++],u%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-i<n)return;let p=d&&c-d;return p?Math.round(1e3*h/p):void 0}},iH=function(t,n){let i,r,o=0,a=1e3/n,s=(n,a=Date.now())=>{o=a,i=null,r&&(clearTimeout(r),r=null),t(...n)};return[(...t)=>{let n=Date.now(),l=n-o;l>=a?s(t,n):(i=t,r||(r=setTimeout(()=>{r=null,s(i)},a-l)))},()=>i&&s(i)]},iq=(t,n,i=3)=>{let r=0,o=iU(50,250);return iH(i=>{if(!i||"number"!=typeof i.loaded)return;let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=null!=s?Math.min(a,s):a,c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iW=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iG=t=>(...n)=>n9.asap(()=>t(...n)),iY=iO.hasStandardBrowserEnv?(p=new URL(iO.origin),m=iO.navigator&&/(msie|trident)/i.test(iO.navigator.userAgent),t=>(t=new URL(t,iO.origin),p.protocol===t.protocol&&p.host===t.host&&(m||p.port===t.port))):()=>!0,iK=iO.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];n9.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),n9.isString(r)&&l.push(`path=${r}`),n9.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),n9.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},iX=/^https?:(?!\/\/)/i,iZ=/[\t\n\r]/g;function iJ(t,n){if("string"==typeof t&&iX.test((function(t){let n=0;for(;n<t.length&&32>=t.charCodeAt(n);)n++;return t.slice(n)})(t).replace(iZ,"")))throw new ih('Invalid URL: missing "//" after protocol',ih.ERR_INVALID_URL,n)}function iQ(t,n,i,r){iJ(n,r);let o=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));return t&&(o||!1===i)?(iJ(t,r),n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t):n}let i0=t=>t instanceof id?{...t}:t;function i1(t,n){t=t||{},n=n||{};let i=Object.create(null);function r(t,n,i,r){return n9.isPlainObject(t)&&n9.isPlainObject(n)?n9.merge.call({caseless:r},t,n):n9.isPlainObject(n)?n9.merge({},n):n9.isArray(n)?n.slice():n}function o(t,n,i,o){return n9.isUndefined(n)?n9.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!n9.isUndefined(n))return r(void 0,n)}function s(t,n){return n9.isUndefined(n)?n9.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return n9.hasOwnProp(n,a)?r(i,o):n9.hasOwnProp(t,a)?r(void 0,i):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage: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:l,headers:(t,n,i)=>o(i0(t),i0(n),i,!0)};return n9.forEach(Object.keys({...t,...n}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n9.hasOwnProp(c,r)?c[r]:o,s=a(n9.hasOwnProp(t,r)?t[r]:void 0,n9.hasOwnProp(n,r)?n[r]:void 0,r);n9.isUndefined(s)&&a!==l||(i[r]=s)}),n9.hasOwnProp(n,"validateStatus")&&n9.isUndefined(n.validateStatus)&&!1===function(i){let r=n9.hasOwnProp(n,"transitional")?n.transitional:void 0;if(!n9.isUndefined(r)){if(!n9.isPlainObject(r))return;else if(n9.hasOwnProp(r,i))return r[i]}let o=n9.hasOwnProp(t,"transitional")?t.transitional:void 0;if(n9.isPlainObject(o)&&n9.hasOwnProp(o,i))return o[i]}("validateStatusUndefinedResolves")&&(n9.hasOwnProp(t,"validateStatus")?i.validateStatus=r(void 0,t.validateStatus):delete i.validateStatus),i}let i2=["content-type","content-length"],i5=function(t){let n=i1({},t),i=t=>n9.hasOwnProp(n,t)?n[t]:void 0,r=i("data"),o=i("withXSRFToken"),a=i("xsrfHeaderName"),s=i("xsrfCookieName"),l=i("headers"),c=i("auth"),d=i("baseURL"),u=i("allowAbsoluteUrls"),h=i("url");if(n.headers=l=id.from(l),n.url=iF(iQ(d,h,u,n),i("params"),i("paramsSerializer")),c){let n=n9.getSafeProp(c,"username")||"",i=n9.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(n+":"+(i?encodeURIComponent(i).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))):"")))}catch(n){throw ih.from(n,ih.ERR_BAD_OPTION_VALUE,t)}}if(n9.isFormData(r))if(iO.hasStandardBrowserEnv||iO.hasStandardBrowserWebWorkerEnv||n9.isReactNative(r))l.setContentType(void 0);else{var p,m;n9.isFunction(r.getHeaders)&&(p=l,m=r.getHeaders(),"content-only"!==i("formDataHeaderPolicy")?p.set(m):Object.entries(m||{}).forEach(([t,n])=>{i2.includes(t.toLowerCase())&&p.set(t,n)}))}if(iO.hasStandardBrowserEnv&&(n9.isFunction(o)&&(o=o(n)),!0===o||null==o&&iY(n.url))){let t=a&&s&&iK.read(s);t&&l.set(a,t)}return n},i3="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,u=i5(t),h=u.data,p=id.from(u.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=u;function b(){l&&l(),c&&c(),u.cancelToken&&u.cancelToken.unsubscribe(o),u.signal&&u.signal.removeEventListener("abort",o)}let v=new XMLHttpRequest;function _(){if(!v)return;let r=id.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());iV(function(t){n(t),b()},function(t){i(t),b()},{data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v}),v=null}v.open(u.method.toUpperCase(),u.url,!0),v.timeout=u.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(i(new ih("Request aborted",ih.ECONNABORTED,t,v)),b(),v=null)},v.onerror=function(n){let r=new ih(n&&n.message?n.message:"Network Error",ih.ERR_NETWORK,t,v);r.event=n||null,i(r),b(),v=null},v.ontimeout=function(){let n=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||ik;u.timeoutErrorMessage&&(n=u.timeoutErrorMessage),i(new ih(n,r.clarifyTimeoutError?ih.ETIMEDOUT:ih.ECONNABORTED,t,v)),b(),v=null},void 0===h&&p.setContentType(null),"setRequestHeader"in v&&n9.forEach(io(p),function(t,n){v.setRequestHeader(n,t)}),n9.isUndefined(u.withCredentials)||(v.withCredentials=!!u.withCredentials),m&&"json"!==m&&(v.responseType=u.responseType),g&&([s,c]=iq(g,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,l]=iq(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",l)),(u.cancelToken||u.signal)&&(o=n=>{v&&(i(!n||n.type?new ij(null,t,v):n),v.abort(),b(),v=null)},u.cancelToken&&u.cancelToken.subscribe(o),u.signal&&(u.signal.aborted?o():u.signal.addEventListener("abort",o)));let y=(r=u.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r))&&d[1]||"");if(y&&!iO.protocols.includes(y)){i(new ih("Unsupported protocol "+y+":",ih.ERR_BAD_REQUEST,t)),b();return}v.send(h||null)})},i4=function*(t,n){let i,r=t.byteLength;if(!n||r<n)return void(yield t);let o=0;for(;o<r;)i=o+n,yield t.slice(o,i),o=i},i6=async function*(t,n){for await(let i of i8(t))yield*i4(i,n)},i8=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let n=t.getReader();try{for(;;){let{done:t,value:i}=await n.read();if(t)break;yield i}}finally{await n.cancel()}},i7=(t,n,i,r)=>{let o,a=i6(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},i9=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,re=(t,n,i)=>n+2<i&&i9(t.charCodeAt(n+1))&&i9(t.charCodeAt(n+2)),{isFunction:rt}=n9,rn=t=>{if(!n9.isString(t))return t;try{return decodeURIComponent(t)}catch(n){return t}},ri=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},rr=t=>{let n,i=void 0!==n9.global&&null!==n9.global?n9.global:globalThis,{ReadableStream:r,TextEncoder:o}=i,{fetch:a,Request:s,Response:l}=t=n9.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},t),c=a?rt(a):"function"==typeof fetch,d=rt(s),u=rt(l);if(!c)return!1;let h=c&&rt(r),p=c&&("function"==typeof o?(n=new o,t=>n.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&h&&ri(()=>{let t=!1,n=new s(iO.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),i=n.headers.has("Content-Type");return null!=n.body&&n.body.cancel(),t&&!i}),f=u&&h&&ri(()=>n9.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new ih(`Response type '${t}' is not supported`,ih.ERR_NOT_SUPPORT,i)})});let b=async t=>{if(null==t)return 0;if(n9.isBlob(t))return t.size;if(n9.isSpecCompliantForm(t)){let n=new s(iO.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return n9.isArrayBufferView(t)||n9.isArrayBuffer(t)?t.byteLength:(n9.isURLSearchParams(t)&&(t+=""),n9.isString(t))?(await p(t)).byteLength:void 0},v=async(t,n)=>{let i=n9.toFiniteNumber(t.getContentLength());return null==i?b(n):i};return async t=>{let n,{url:i,method:r,data:c,signal:u,cancelToken:p,timeout:_,onDownloadProgress:y,onUploadProgress:x,responseType:w,headers:F,withCredentials:E="same-origin",fetchOptions:k,maxContentLength:C,maxBodyLength:A}=i5(t),T=n9.isNumber(C)&&C>-1,S=n9.isNumber(A)&&A>-1,I=a||fetch;w=w?(w+"").toLowerCase():"text";let D=((t,n)=>{if(t=t?t.filter(Boolean):[],!n&&!t.length)return;let i=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let n=t instanceof Error?t:this.reason;i.abort(n instanceof ih?n:new ij(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new ih(`timeout of ${n}ms exceeded`,ih.ETIMEDOUT))},n),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o,{once:!0}));let{signal:l}=i;return l.unsubscribe=()=>n9.asap(s),l})([u,p&&p.toAbortSignal()],_),M=null,R=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),O=null,L=()=>new ih("Request body larger than maxBodyLength limit",ih.ERR_BAD_REQUEST,t,M);try{var P;let a,u,p,_,$=(u="auth",n9.hasOwnProp(t,u)?t[u]:void 0);if($){let t=n9.getSafeProp($,"username")||"",n=n9.getSafeProp($,"password")||"";a={username:t,password:n}}if(p=(P=i).indexOf("://"),_=P,-1!==p&&(_=_.slice(p+3)),_.includes("@")||_.includes(":")){let t=new URL(i,iO.origin);if(!a&&(t.username||t.password)){let n=rn(t.username),i=rn(t.password);a={username:n,password:i}}(t.username||t.password)&&(t.username="",t.password="",i=t.href)}if(a){let t;F.delete("authorization"),F.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))))))}if(T&&"string"==typeof i&&i.startsWith("data:")&&function(t){if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let n=t.indexOf(",");if(n<0)return 0;let i=t.slice(5,n),r=t.slice(n+1);if(/;base64/i.test(i)){let t=r.length,n=r.length;for(let i=0;i<n;i++)if(37===r.charCodeAt(i)&&i+2<n){let n=r.charCodeAt(i+1),o=r.charCodeAt(i+2);i9(n)&&i9(o)&&(t-=2,i+=2)}let i=0,o=n-1,a=t=>t>=2&&37===r.charCodeAt(t-2)&&51===r.charCodeAt(t-1)&&(68===r.charCodeAt(t)||100===r.charCodeAt(t));o>=0&&(61===r.charCodeAt(o)?(i++,o--):a(o)&&(i++,o-=3)),1===i&&o>=0&&(61===r.charCodeAt(o)?i++:a(o)&&i++);let s=3*Math.floor(t/4)-(i||0);return s>0?s:0}let o=0;for(let t=0,n=r.length;t<n;t++){let i=r.charCodeAt(t);if(37===i&&re(r,t,n))o+=1,t+=2;else if(i<128)o+=1;else if(i<2048)o+=2;else if(i>=55296&&i<=56319&&t+1<n){let n=r.charCodeAt(t+1);n>=56320&&n<=57343?(o+=4,t++):o+=3}else o+=3}return o}(i)>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M);if(S&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(n=t,t>A))throw L()}let B=S&&(n9.isReadableStream(c)||n9.isStream(c)),N=(t,n,i)=>i7(t,65536,t=>{if(S&&t>A)throw O=L();n&&n(t)},i);if(m&&"get"!==r&&"head"!==r&&(x||B)){if(n=null==n?await v(F,c):n,0!==n||B){let t,r=new s(i,{method:"POST",body:c,duplex:"half"});if(n9.isFormData(c)&&(t=r.headers.get("content-type"))&&F.setContentType(t),r.body){let[t,i]=x&&iW(n,iq(iG(x)))||[];c=N(r.body,t,i)}}}else if(B&&!d&&h&&"get"!==r&&"head"!==r)c=N(c);else if(B&&d&&!m&&"get"!==r&&"head"!==r)throw new ih("Stream request bodies are not supported by the current fetch implementation",ih.ERR_NOT_SUPPORT,t,M);n9.isString(E)||(E=E?"include":"omit");let z=d&&"credentials"in s.prototype;if(n9.isFormData(c)){let t=F.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:D,method:r.toUpperCase(),headers:io(F.normalize()),body:c,duplex:"half",credentials:z?E:void 0};M=d&&new s(i,j);let V=await (d?I(M,k):I(i,j)),U=id.from(V.headers);if(T){let n=n9.toFiniteNumber(U.getContentLength());if(null!=n&&n>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M)}let H=f&&("stream"===w||"response"===w);if(f&&V.body&&(y||T||H&&R)){let n={};["status","statusText","headers"].forEach(t=>{n[t]=V[t]});let i=n9.toFiniteNumber(U.getContentLength()),[r,o]=y&&iW(i,iq(iG(y),!0))||[];V=new l(i7(V.body,65536,n=>{if(T&&n>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M);r&&r(n)},()=>{o&&o(),R&&R()}),n)}w=w||"text";let q=await g[n9.findKey(g,w)||"text"](V,t);if(T&&!f&&!H){let n;if(null!=q&&("number"==typeof q.byteLength?n=q.byteLength:"number"==typeof q.size?n=q.size:"string"==typeof q&&(n="function"==typeof o?new o().encode(q).byteLength:q.length)),"number"==typeof n&&n>C)throw new ih("maxContentLength size of "+C+" exceeded",ih.ERR_BAD_RESPONSE,t,M)}return!H&&R&&R(),await new Promise((n,i)=>{iV(n,i,{data:q,headers:id.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:M})})}catch(n){if(R&&R(),D&&D.aborted&&D.reason instanceof ih){let i=D.reason;throw i.config=t,M&&(i.request=M),n!==i&&Object.defineProperty(i,"cause",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),i}if(O)throw M&&!O.request&&(O.request=M),O;if(n instanceof ih)throw M&&!n.request&&(n.request=M),n;if(n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message)){let i=new ih("Network Error",ih.ERR_NETWORK,t,M,n&&n.response);throw Object.defineProperty(i,"cause",{__proto__:null,value:n.cause||n,writable:!0,enumerable:!1,configurable:!0}),i}throw ih.from(n,n&&n.code,t,M,n&&n.response)}}},ro=new Map,ra=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=ro;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:rr(n)),d=c;return c};ra();let rs={http:null,xhr:i3,fetch:{get:ra}};n9.forEach(rs,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});let rl=t=>`- ${t}`,rc=t=>n9.isFunction(t)||null===t||!1===t,rd=function(t,n){let i,r,{length:o}=t=n9.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!rc(i)&&void 0===(r=rs[(o=String(i)).toLowerCase()]))throw new ih(`Unknown adapter '${o}'`);if(r&&(n9.isFunction(r)||(r=r.get(n))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new ih("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rl).join("\n"):" "+rl(t[0]):"as no adapter specified"),ih.ERR_NOT_SUPPORT)}return r};function ru(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ij(null,t)}function rh(t){return ru(t),t.headers=id.from(t.headers),t.data=iN.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rd(t.adapter||iB.adapter,t)(t).then(function(n){ru(t),t.response=n;try{n.data=iN.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=id.from(n.headers),n},function(n){if(!iz(n)&&(ru(t),n&&n.response)){t.response=n.response;try{n.response.data=iN.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=id.from(n.response.headers)}return Promise.reject(n)})}let rp={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{rp[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rm={};rp.transitional=function(t,n,i){function r(t,n){return"[Axios v1.18.1] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new ih(r(o," has been removed"+(n?" in "+n:"")),ih.ERR_DEPRECATED);return n&&!rm[o]&&(rm[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,o,a)}},rp.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let rf=function(t,n,i){if("object"!=typeof t||null===t)throw new ih("options must be an object",ih.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new ih("option "+a+" must be "+i,ih.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new ih("Unknown option "+a,ih.ERR_BAD_OPTION)}};class rg{constructor(t){this.defaults=t||{},this.interceptors={request:new iE,response:new iE}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=(()=>{if(!n.stack)return"";let t=n.stack.indexOf("\n");return -1===t?"":n.stack.slice(t+1)})();try{if(t.stack){if(i){let n=i.indexOf("\n"),r=-1===n?-1:i.indexOf("\n",n+1),o=-1===r?"":i.slice(r+1);String(t.stack).endsWith(o)||(t.stack+="\n"+i)}}else t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=i1(this.defaults,n);void 0!==o&&rf(o,{silentJSONParsing:rp.transitional(rp.boolean),forcedJSONParsing:rp.transitional(rp.boolean),clarifyTimeoutError:rp.transitional(rp.boolean),legacyInterceptorReqResOrdering:rp.transitional(rp.boolean),advertiseZstdAcceptEncoding:rp.transitional(rp.boolean),validateStatusUndefinedResolves:rp.transitional(rp.boolean)},!1),null!=a&&(n9.isFunction(a)?n.paramsSerializer={serialize:a}:rf(a,{encode:rp.function,serialize:rp.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rf(n,{baseUrl:rp.spelling("baseURL"),withXsrfToken:rp.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&n9.merge(s.common,s[n.method]);s&&n9.forEach(["delete","get","head","post","put","patch","query","common"],t=>{delete s[t]}),n.headers=id.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(n))return;d=d&&t.synchronous;let i=n.transitional||ik;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[rh.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,i=Promise.resolve(n);h<r;)i=i.then(t[h++],t[h++]);return i}r=c.length;let p=n;for(;h<r;){let t=c[h++],n=c[h++];try{p=t(p)}catch(t){n.call(this,t);break}}try{i=rh.call(this,p)}catch(t){return Promise.reject(t)}for(h=0,r=u.length;h<r;)i=i.then(u[h++],u[h++]);return i}getUri(t){return iF(iQ((t=i1(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}n9.forEach(["delete","get","head","options"],function(t){rg.prototype[t]=function(n,i){return this.request(i1(i||{},{method:t,url:n,data:i&&n9.hasOwnProp(i,"data")?i.data:void 0}))}}),n9.forEach(["post","put","patch","query"],function(t){function n(n){return function(i,r,o){return this.request(i1(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}rg.prototype[t]=n(),"query"!==t&&(rg.prototype[t+"Form"]=n(!0))});let rb=class t{constructor(t){let n;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){n=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](t);i._listeners=null}),this.promise.then=t=>{let n,r=new Promise(t=>{i.subscribe(t),n=t}).then(t);return r.cancel=function(){i.unsubscribe(n)},r},t(function(t,r,o){i.reason||(i.reason=new ij(t,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let n;return{token:new t(function(t){n=t}),cancel:n}}},rv={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rv).forEach(([t,n])=>{rv[n]=t});let r_=function t(n){let i=new rg(n),r=ny(rg.prototype.request,i);return n9.extend(r,rg.prototype,i,{allOwnKeys:!0}),n9.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(i1(n,i))},r}(iB);r_.Axios=rg,r_.CanceledError=ij,r_.CancelToken=rb,r_.isCancel=iz,r_.VERSION="1.18.1",r_.toFormData=iv,r_.AxiosError=ih,r_.Cancel=r_.CanceledError,r_.all=function(t){return Promise.all(t)},r_.spread=function(t){return function(n){return t.apply(null,n)}},r_.isAxiosError=function(t){return n9.isObject(t)&&!0===t.isAxiosError},r_.mergeConfig=i1,r_.AxiosHeaders=id,r_.formToJSON=t=>iP(n9.isHTMLForm(t)?new FormData(t):t),r_.getAdapter=rd,r_.HttpStatusCode=rv,r_.default=r_;class ry{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rV`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rV`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rV`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rV`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rV`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rV`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rV`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rV`alarm/${t}/assets`,queryParams:n,options:i})}}class rx{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rV`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rV`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rV`apps/info`,options:t})}}class rw{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rV`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rV`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rV`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rV`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rV`dashboard/${t}/${n}`,options:i})}}class rF{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rV`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rV`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rV`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rV`syslog/event`,queryParams:t,options:n})}}class rE{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rV`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rV`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rV`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rV`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rV`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rV`gateway/status/${t}`,options:n})}}class rk{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rV`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rV`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rV`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rV`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rV`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rV`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rV`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rV`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rV`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rV`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rV`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rV`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rV`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rV`user/${t}/${n}`,options:i})}}class rC{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rV`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rV`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rV`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class rA{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rV`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rV`info`,options:t})}}class rT{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rV`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rV`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rV`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rV`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rV`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rV`realm/${t}`,data:n,options:i})}}class rS{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rV`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rV`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rV`flow/${t}`,options:n})}}class rI{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rV`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rV`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rV`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rV`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rV`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rV`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rV`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rV`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rV`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rV`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rV`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rV`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rV`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rV`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rV`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rV`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rV`rules/${t}`,data:n,options:i})}}class rD{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rV`console/register`,data:t,options:n})}}class rM{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rV`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rV`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rV`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rV`provisioning/${t}`,data:n,options:i})}}class rR{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rV`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rV`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rV`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rV`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rV`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rV`map/upload`,queryParams:t,options:n})}}class rO{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rV`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`asset/predicted/${t}/${n}`,data:i,options:r})}}class rL{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rV`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rV`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rV`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rV`configuration/manager/image/${t}`,options:n})}}class rP{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rV`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rV`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rV`asset/datapoint/${t}/${n}`,data:i,options:r})}}class r${constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rV`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rV`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rV`notification/alert`,data:t,options:n})}getNotificationsCount(t,n){return this.httpClient.request({method:"GET",url:rV`notification/count`,queryParams:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rV`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rV`notification/${t}/delivered`,queryParams:n,options:i})}}class rB{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rV`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rV`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rV`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rV`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rV`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rV`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rV`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rV`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rV`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rV`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rV`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rV`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rV`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rV`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rV`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rV`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rV`asset/${t}/attribute/${n}`,data:i,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rV`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rV`asset/${t}/child`,queryParams:n,options:i})}}class rN{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rV`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rV`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rV`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rV`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rV`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rV`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rV`service/${t}/${n}`,options:i})}}class rz{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rV`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rV`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rV`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rV`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rV`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rj{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rV`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rV`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rV`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rV`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rV`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rV`model/valueDescriptors`,queryParams:t,options:n})}}function rV(t,...n){let i="";for(let r=0;r<n.length;r++)i+=t[r],i+=encodeURIComponent(n[r]);return i+t[t.length-1]}class rU{constructor(t,n=r_.create()){this._alarmResource=new rq(t,n),this._appResource=new rW(t,n),this._dashboardResource=new rG(t,n),this._syslogResource=new rY(t,n),this._gatewayClientResource=new rK(t,n),this._userResource=new rX(t,n),this._agentResource=new rZ(t,n),this._statusResource=new rJ(t,n),this._realmResource=new rQ(t,n),this._flowResource=new r0(t,n),this._rulesResource=new r1(t,n),this._consoleResource=new r2(t,n),this._provisioningResource=new r5(t,n),this._mapResource=new r3(t,n),this._assetPredictedDatapointResource=new r4(t,n),this._configurationResource=new r6(t,n),this._assetDatapointResource=new r8(t,n),this._notificationResource=new r7(t,n),this._assetResource=new r9(t,n),this._externalServiceResource=new oe(t,n),this._gatewayServiceResource=new ot(t,n),this._assetModelResource=new on(t,n),this._assetResource=new r9(t,n)}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get ConsoleResource(){return this._consoleResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}}class rH{constructor(t){this.axios=t}request(t){let n={};n.method=t.method,n.url=t.url,n.params=t.queryParams,n.data=t.data,function(t,n){if(void 0!=n)for(let i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}(n,t.options);let i=t.copyFn;return this.axios.request(n).then(t=>(i&&t.data&&(t.originalData=t.data,t.data=i(t.data)),t))}}class rq extends ry{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rW extends rx{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rG extends rw{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rY extends rF{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rK extends rE{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rX extends rk{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rZ extends rC{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rJ extends rA{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class rQ extends rT{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r0 extends rS{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r1 extends rI{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r2 extends rD{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r5 extends rM{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r3 extends rR{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r4 extends rO{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r6 extends rL{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r8 extends rP{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r7 extends r${constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class r9 extends rB{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class oe extends rN{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class ot extends rz{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}class on extends rj{constructor(t,n=r_.create()){n.defaults.baseURL=t,super(new rH(n))}}var oi=o(8183),or=o.n(oi);r_.isAxiosError;let oo=new class{get api(){return this._client}constructor(){this._axiosInstance=r_.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>or().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rU(t,this._axiosInstance)}};var oa=function(t,n,i,r){return new(i||(i=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};(pj=mZ||(mZ={})).DISCONNECTED="DISCONNECTED",pj.CONNECTED="CONNECTED",pj.CONNECTING="CONNECTING";let os="SUBSCRIBED:",ol="UNAUTHORIZED:",oc="TRIGGERED:",od="EVENT:";class ou{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=mZ.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(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===mZ.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(mZ.CONNECTING),this._connectingDeferred=new ni,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._onStatusChanged(mZ.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),n.resolve(t)}}).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!==mZ.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new ni};return null!=this._pendingSubscription||this._status!==mZ.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return oa(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===mZ.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==mZ.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+ou._subscriptionCounter++;if(!this._assetEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let n={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(n,t=>{this._assetEventCallbackMap.forEach(n=>n(t))})}return this._assetEventCallbackMap.set(o,t=>{let n=t.asset.id;r?r.find(t=>n===t)&&i(t):t.asset.realm===o0.displayRealm&&i(t)}),this._assetEventPromise.then(()=>{try{if(r&&n){let t={messageID:"read-assets:"+r.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(t).then(t=>{t.assets&&this._assetEventCallbackMap.has(o)&&t.assets.forEach(t=>{i({eventType:"asset",asset:t,cause:"READ"})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),n}return o})})}subscribeAttributeEvents(t,n,i){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+ou._subscriptionCounter++;if(!this._attributeEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let n={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(n,t=>{this._attributeEventCallbackMap.forEach(n=>n(t))})}let l=n=>{let a=n.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&i(n)}):o?o.find(t=>a.id===t)&&i(n):n.realm===o0.displayRealm&&i(n)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(n&&o){let t={messageID:"read-assets:"+o.join(",")+":"+s,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(t).then(t=>{t.assets&&this._attributeEventCallbackMap.has(s)&&t.assets.forEach(t=>{t.attributes&&Object.entries(t.attributes).forEach(([n,i])=>{(!a||a.find(i=>i.id===t.id&&i.name===n))&&l({eventType:"attribute",timestamp:i.timestamp,value:i.value,ref:{id:t.id,name:n}})})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),n}return s})})}_processNextSubscription(){this._status===mZ.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(n=>{let i=t.deferred;t.deferred=null,i&&i.resolve(n)},n=>{let i=t.deferred;t.deferred=null,i&&i.reject(n)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(n=>n(t))},0))}_onMessageReceived(t,n){let i=this._subscriptionMap.get(t);i&&i.callback(n)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let t in this._subscriptionMap)this._subscriptionMap.has(t)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(t));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===mZ.CONNECTED&&this._onStatusChanged(mZ.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(mZ.CONNECTING),this._scheduleReconnect()}_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<oh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ou.MIN_RECONNECT_DELAY=0,ou.MAX_RECONNECT_DELAY=3e4,ou._subscriptionCounter=0;class oh extends ou{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+o0.config.realm;return this._connectDeferred=new ni,(o0.authenticated?o0.retrieveAuthorizationHeader().then(n=>{t+="&Authorization="+n}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.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 t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(os)){let t=JSON.parse(n.substring(os.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(ol)){let t=JSON.parse(n.substring(ol.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),i.reject("Unauthorized"))}else if(n.startsWith(oc)){let t=JSON.parse(n.substring(oc.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(od)){let t=JSON.parse(n.substring(od.length));if(t.messageID){let n=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),n&&n.resolve(t)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var t;null==(t=this._webSocket)||t.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(t){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new ni,t.subscriptionId||(t.subscriptionId=oh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let n=od+JSON.stringify(t);this._webSocket.send(n)}_doSendWithReply(t){if(t.messageID||(t.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(t.messageID))return Promise.reject("There's already a pending send and reply with this ID");let n=new ni;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(od+JSON.stringify(t)),n.promise}}oh._subscriptionCounter=1;let op=["__proto__","constructor","prototype"];function om(t){return!("string"!=typeof t||0===t.length||t.length>128||op.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function of(t){return!(!om(t)||t.indexOf("/")>-1)}let og={lng:of,ns:function(t){return om(t)}};function ob(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function ov(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let o_=/\{\{(.+?)\}\}/g;function oy(t,n){let i=!1,r=t.replace(o_,(t,r)=>{let o=r.trim();if(op.indexOf(o)>-1)return t;let a=n[o];if(null==a)return t;let s=og[o]||of,l=String(a).split("+");for(let n of l)if(!s(n))return i=!0,t;return l.join("+")});return i?null:r}let ox="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:ox&&"function"==typeof ox.fetch&&(t=ox.fetch);let ow=ov()&&ox?ox.XMLHttpRequest:void 0,oF="function"==typeof ActiveXObject&&ox?ox.ActiveXObject:void 0,oE=["__proto__","constructor","prototype"],ok=(t,n)=>{if(n&&"object"==typeof n){let i="";for(let t of Object.keys(n))oE.indexOf(t)>-1||(i+="&"+encodeURIComponent(t)+"="+encodeURIComponent(n[t]));if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oC=(n,i,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(n=>{r(null,{status:t.status,data:n})}).catch(r)};if(o){let t=o(n,i);if(t instanceof Promise)return void t.then(a).catch(r)}"function"==typeof fetch?fetch(n,i).then(a).catch(r):t(n,i).then(a).catch(r)},oA=(n,i,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),t&&0!==i.indexOf("file:")){var a=i,s=r,l=o;n.queryStringParams&&(a=ok(a,n.queryStringParams));let t={..."function"==typeof n.customHeaders?n.customHeaders():n.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(t["Content-Type"]="application/json");let c="function"==typeof n.requestOptions?n.requestOptions(s):n.requestOptions,d={method:s?"POST":"GET",body:s?n.stringify(s):void 0,headers:t,...n._omitFetchOptions?{}:c},u="function"==typeof n.alternateFetch&&n.alternateFetch.length>=1?n.alternateFetch:void 0;try{oC(a,d,l,u)}catch(t){if(!c||0===Object.keys(c).length||!t.message||0>t.message.indexOf("not implemented"))return l(t);try{Object.keys(c).forEach(t=>{delete d[t]}),oC(a,d,l,u),n._omitFetchOptions=!0}catch(t){l(t)}}return}if(ov()||"function"==typeof ActiveXObject){var c=i,d=r,u=o;d&&"object"==typeof d&&(d=ok("",d).slice(1)),n.queryStringParams&&(c=ok(c,n.queryStringParams));try{let t=ow?new ow:new oF("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",c,1),n.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!n.withCredentials,d&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let i=n.customHeaders;if(i="function"==typeof i?i():i)for(let n of Object.keys(i))oE.indexOf(n)>-1||t.setRequestHeader(n,i[n]);t.onreadystatechange=()=>{t.readyState>3&&u(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var oT=class{constructor(t,n={},i={}){this.services=t,this.options=n,this.allOptions=i,this.type="backend",this.init(t,n,i)}init(t,n={},i={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,n,i)=>({[n]:i||""}),parseLoadPayload:(t,n)=>void 0,request:oA,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...n},this.allOptions=i,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,n,i){this._readAny(t,t,n,n,i)}read(t,n,i){this._readAny([t],t,[n],n,i)}_readAny(t,n,i,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,i)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=oy(a,{lng:t.join("+"),ns:i.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(ob).join(", ")+"] namespaces=["+i.map(ob).join(", ")+"]"),!1);this.loadUrl(s,o,n,r)})}loadUrl(t,n,i,r){let o=this.options.parseLoadPayload("string"==typeof i?[i]:i,"string"==typeof r?[r]:r),a=ob(function(t){if("string"!=typeof t||0===t.length)return t;try{let n=new URL(t);if(n.username||n.password)return n.username="",n.password="",n.toString();return t}catch(n){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return n("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return n("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let i=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>i.indexOf(t)>-1))return n("failed loading "+a+": "+ob(t.message),!0)}if(t)return n(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,i,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return n(l,!1);n(null,s)})}create(t,n,i,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(n,i,r),s=0,l=[],c=[];t.forEach(i=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(i,n));let d=oy(r,{lng:i,ns:n});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(n,i)=>{s+=1,l.push(n),c.push(i),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:n,logger:i}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{n.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(n=>{this.allOptions.ns.forEach(r=>{t.read(n,r,"read",null,null,(o,a)=>{o&&i.warn(`loading namespace ${r} for language ${n} failed`,o),!o&&a&&i.log(`loaded namespace ${r} for language ${n}`,a),t.loaded(`${n}|${r}`,o,a)})})})}};oT.type="backend";class oS extends eY{constructor(t){if(super(t),this.it=e_,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===e_||null==t)return this._t=void 0,this.it=t;if(t===ev)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}oS.directiveName="unsafeHTML",oS.resultType=1,eG(oS);class oI extends oS{}oI.directiveName="unsafeSVG",oI.resultType=2;let oD=eG(oI),oM={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 oR=function(t,n,i,r){var o,a=arguments.length,s=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,i,s):o(n,i))||s);return a>3&&s&&Object.defineProperty(n,i,s),s};class oO extends CustomEvent{constructor(){super(oO.NAME,{bubbles:!0,composed:!0})}}oO.NAME="or-iconset-added";let oL=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oO)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return eg``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):eg``}},oP=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[M`
77
77
  :host {
78
78
  --internal-or-icon-width: var(--or-icon-width, 24px);
79
79
  --internal-or-icon-height: var(--or-icon-height, 24px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-attribute-input",
3
- "version": "1.30.0-snapshot.20260902122509",
3
+ "version": "1.30.0",
4
4
  "description": "OpenRemote attribute input",
5
5
  "customElements": "custom-elements.json",
6
6
  "main": "dist/umd/index.bundle.js",
@@ -21,21 +21,21 @@
21
21
  "author": "OpenRemote",
22
22
  "license": "AGPL-3.0-or-later",
23
23
  "dependencies": {
24
- "@openremote/core": "1.30.0-snapshot.20260902122509",
25
- "@openremote/model": "1.30.0-snapshot.20260902122509",
26
- "@openremote/or-components": "1.30.0-snapshot.20260902122509",
27
- "@openremote/or-element": "1.30.0-snapshot.20260902122509",
28
- "@openremote/or-icon": "1.30.0-snapshot.20260902122509",
29
- "@openremote/or-json-forms": "1.30.0-snapshot.20260902122509",
30
- "@openremote/or-map": "1.30.0-snapshot.20260902122509",
31
- "@openremote/or-mwc-components": "1.30.0-snapshot.20260902122509",
32
- "@openremote/or-scheduler": "1.30.0-snapshot.20260902122509",
33
- "@openremote/or-translate": "1.30.0-snapshot.20260902122509",
34
- "@openremote/or-vaadin-components": "1.30.0-snapshot.20260902122509",
24
+ "@openremote/core": "1.30.0",
25
+ "@openremote/model": "1.30.0",
26
+ "@openremote/or-components": "1.30.0",
27
+ "@openremote/or-element": "1.30.0",
28
+ "@openremote/or-icon": "1.30.0",
29
+ "@openremote/or-json-forms": "1.30.0",
30
+ "@openremote/or-map": "1.30.0",
31
+ "@openremote/or-mwc-components": "1.30.0",
32
+ "@openremote/or-scheduler": "1.30.0",
33
+ "@openremote/or-translate": "1.30.0",
34
+ "@openremote/or-vaadin-components": "1.30.0",
35
35
  "lit": "^3.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@openremote/util": "1.30.0-snapshot.20260902122509"
38
+ "@openremote/util": "1.30.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"