@openremote/or-tree-menu 1.29.0-snapshot.20260810071738 → 1.29.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.
@@ -7,7 +7,7 @@
7
7
  font-weight: 600;
8
8
  line-height: 125.303%;
9
9
  }
10
- `;class nS extends nA{static finalizeStyles(e){return[nC,...super.finalizeStyles(e)]}}let nx=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nY={attribute:!0,type:String,converter:tJ,reflect:!1,hasChanged:tX};function nO(e){return(t,n)=>{let o;return"object"==typeof n?((e=nY,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}let nB=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nR(t){return(n,o)=>nB(n,o,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function nP(e){return(t,n)=>{let{slot:o,selector:r}=e??{},i="slot"+(o?`[name=${o}]`:":not([name])");return nB(t,n,{get(){let t=this.renderRoot?.querySelector(i),n=t?.assignedElements(e)??[];return void 0===r?n:n.filter(e=>e.matches(r))}})}}function*nN(e,t){if(void 0!==e){let n=0;for(let o of e)yield t(o,n++)}}n(4532),(f=eL||(eL={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",(b=eD||(eD={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eA||(eA={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eT||(eT={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(_=eC||(eC={})).BOTTOM_LEFT="BOTTOM_LEFT",_.BOTTOM_RIGHT="BOTTOM_RIGHT",_.TOP_LEFT="TOP_LEFT",_.TOP_RIGHT="TOP_RIGHT",(F=eS||(eS={})).CREATE="CREATE",F.READ="READ",F.UPDATE="UPDATE",F.DELETE="DELETE",(g=ex||(ex={})).NONE="NONE",g.FORECAST="FORECAST",g.SETPOINT="SETPOINT",(y=eY||(eY={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(v=eO||(eO={})).REQUEST_START="REQUEST_START",v.REQUEST_REPEATING="REQUEST_REPEATING",v.REQUEST_CANCEL="REQUEST_CANCEL",v.READY="READY",v.COMPLETED="COMPLETED",v.RUNNING="RUNNING",v.CANCELLED="CANCELLED",(k=eB||(eB={})).TOGGLE="TOGGLE",k.INCREMENT="INCREMENT",k.DECREMENT="DECREMENT",k.NEGATE="NEGATE",(w=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",w.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",w.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",w.INVALID_VALUE="INVALID_VALUE",w.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",w.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",w.CANNOT_PROCESS="CANNOT_PROCESS",w.QUEUE_FULL="QUEUE_FULL",w.UNKNOWN="UNKNOWN",w.ASSET_ID_MISSING="ASSET_ID_MISSING",w.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(M=eP||(eP={})).PUBLIC="PUBLIC",M.SHARED="SHARED",M.PRIVATE="PRIVATE",(E=eN||(eN={})).OFF="OFF",E.ONE_MIN="ONE_MIN",E.FIVE_MIN="FIVE_MIN",E.QUARTER="QUARTER",E.ONE_HOUR="ONE_HOUR",(L=ej||(ej={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",L.KEEP_LAYOUT="KEEP_LAYOUT",L.REDIRECT="REDIRECT",L.BLOCK_DEVICE="BLOCK_DEVICE",(D=eI||(eI={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(A=eH||(eH={})).MINUTE="MINUTE",A.HOUR="HOUR",A.DAY="DAY",A.WEEK="WEEK",A.MONTH="MONTH",A.YEAR="YEAR",(T=eU||(eU={})).MIN="MIN",T.AVG="AVG",T.MAX="MAX",T.DIFFERENCE="DIFFERENCE",T.COUNT="COUNT",T.SUM="SUM",T.MODE="MODE",T.MEDIAN="MEDIAN",(C=eW||(eW={})).TERMINATING="TERMINATING",C.DISABLED="DISABLED",C.ALREADY_CONNECTED="ALREADY_CONNECTED",C.UNRECOGNISED="UNRECOGNISED",C.PERMANENT_ERROR="PERMANENT_ERROR",C.SYNC_ERROR="SYNC_ERROR",(S=ez||(ez={})).HTTPS="HTTPS",S.HTTP="HTTP",S.TCP="TCP",(x=e$||(e$={})).GET="GET",x.POST="POST",x.PUT="PUT",x.DELETE="DELETE",x.OPTIONS="OPTIONS",x.PATCH="PATCH",(Y=eG||(eG={})).KEYCLOAK="KEYCLOAK",Y.NONE="NONE",(O=eq||(eq={})).WEBSOCKET="WEBSOCKET",O.POLLING="POLLING",(B=eV||(eV={})).INTERNAL="INTERNAL",B.CLIENT="CLIENT",B.GLOBAL_RULESET="GLOBAL_RULESET",B.REALM_RULESET="REALM_RULESET",B.ASSET_RULESET="ASSET_RULESET",(R=eK||(eK={})).REALM="REALM",R.USER="USER",R.ASSET="ASSET",R.CUSTOM="CUSTOM",(P=eJ||(eJ={})).NORMAL="NORMAL",P.HIGH="HIGH",(N=eX||(eX={})).DEVICE="DEVICE",N.TOPIC="TOPIC",N.CONDITION="CONDITION",(j=eQ||(eQ={})).ALWAYS="ALWAYS",j.ONCE="ONCE",j.HOURLY="HOURLY",j.DAILY="DAILY",j.WEEKLY="WEEKLY",j.MONTHLY="MONTHLY",j.ANNUALLY="ANNUALLY",(I=eZ||(eZ={})).TITLE="TITLE",I.SOURCE="SOURCE",I.STATUS="STATUS",I.SENT_ON="SENT_ON",I.DELIVERED_ON="DELIVERED_ON",(H=e0||(e0={})).MESSAGE_INVALID="MESSAGE_INVALID",H.CERTIFICATE_INVALID="CERTIFICATE_INVALID",H.UNAUTHORIZED="UNAUTHORIZED",H.FORBIDDEN="FORBIDDEN",H.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",H.CONFIG_DISABLED="CONFIG_DISABLED",H.USER_DISABLED="USER_DISABLED",H.SERVER_ERROR="SERVER_ERROR",H.ASSET_ERROR="ASSET_ERROR",H.SERVER_BUSY="SERVER_BUSY",(U=e1||(e1={})).PRIVATE="PRIVATE",U.PROTECTED="PROTECTED",U.PUBLIC="PUBLIC",(W=e2||(e2={})).EXACT="EXACT",W.BEGIN="BEGIN",W.END="END",W.CONTAINS="CONTAINS",(z=e4||(e4={})).EQUALS="EQUALS",z.GREATER_THAN="GREATER_THAN",z.GREATER_EQUALS="GREATER_EQUALS",z.LESS_THAN="LESS_THAN",z.LESS_EQUALS="LESS_EQUALS",z.BETWEEN="BETWEEN",($=e3||(e3={})).CREATED_ON="CREATED_ON",$.NAME="NAME",$.ASSET_TYPE="ASSET_TYPE",$.PARENT_ID="PARENT_ID",$.REALM="REALM",(G=e5||(e5={})).RESTRICTED="RESTRICTED",G.LINKED="LINKED",G.REALM="REALM",(q=e6||(e6={})).AT_LEAST_ONE="AT_LEAST_ONE",q.ALL="ALL",q.NONE="NONE",(V=e8||(e8={})).AND="AND",V.OR="OR",(K=e7||(e7={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=e9||(e9={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(X=te||(te={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=tt||(tt={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=tn||(tn={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=to||(to={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=tr||(tr={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(en=ti||(ti={})).INPUT="INPUT",en.PROCESSOR="PROCESSOR",en.OUTPUT="OUTPUT",en.THEN="THEN",(eo=ta||(ta={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(er=ts||(ts={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=td||(td={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tc||(tc={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.READ="read",ea.WRITE="write",(es=tl||(tl={})).REGISTER="REGISTER",es.UPDATE="UPDATE",es.DEREGISTER="DEREGISTER",(ed=tm||(tm={})).AVAILABLE="AVAILABLE",ed.UNAVAILABLE="UNAVAILABLE",(ec=tu||(tu={})).ASSET="ASSET",ec.AGENT="AGENT",ec.NOTIFICATION="NOTIFICATION",ec.ALARM="ALARM",ec.RULES="RULES",ec.PROTOCOL="PROTOCOL",ec.GATEWAY="GATEWAY",ec.MODEL_AND_VALUES="MODEL_AND_VALUES",ec.API="API",ec.DATA="DATA",(el=tf||(tf={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(em=tb||(tb={})).NUMERIC="numeric",em.DIGIT_2="2-digit",em.FULL="full",em.LONG="long",em.MEDIUM="medium",em.SHORT="short",em.NARROW="narrow",(eu=th||(th={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(ef=tp||(tp={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.FORWARD="FORWARD",(eb=t_||(t_={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=tF||(tF={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tg||(tg={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(e_=ty||(ty={})).COLOURRGB="colourRGB",e_.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",e_.PRICEHOURLY="priceHourly",e_.MQTTPORT="MQTTPort",e_.PINGDISABLED="pingDisabled",e_.FLOW="flow",e_.CHILDASSETTYPE="childAssetType",e_.LASTACCESS="lastAccess",e_.POSITION="position",e_.NETWORKKEY="networkKey",e_.UNIVERSE="universe",e_.ROUTINGMODE="routingMode",e_.MSSINUMBER="MSSINumber",e_.LASTWILLRETAIN="lastWillRetain",e_.LASTWILLTOPIC="lastWillTopic",e_.SERIALBAUDRATE="serialBaudrate",e_.SUBSCRIBEQOS="subscribeQos",e_.LEDCOUNT="lEDCount",e_.LOCKED="locked",e_.CLOUDCOVERAGE="cloudCoverage",e_.BASEURL="baseURL",e_.PROTOCOL="protocol",e_.REQUIREDVALUES="requiredValues",e_.REGION="region",e_.CONSOLEPLATFORM="consolePlatform",e_.GATEWAYSTATUS="gatewayStatus",e_.NO2LEVEL="NO2Level",e_.ATMOSPHERICPRESSURE="atmosphericPressure",e_.SERIALPORT="serialPort",e_.APPLICATIONID="applicationId",e_.TAGS="tags",e_.UNLOCK="unlock",e_.CHECKINTERVALSECONDS="checkIntervalSeconds",e_.LOCATION="location",e_.CLIENTSECRET="clientSecret",e_.WINDDIRECTION="windDirection",e_.WINDSPEED="windSpeed",e_.PARTICLESPM10="particlesPM10",e_.APPLICATIONKEY="applicationKey",e_.LENGTH="length",e_.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",e_.USERNAMEPASSWORD="usernamePassword",e_.WATERLEVEL="waterLevel",e_.CONNECTHEADERS="connectHeaders",e_.CONSOLENAME="consoleName",e_.WEBSOCKETQUERY="websocketQuery",e_.PREFERHTML="preferHTML",e_.PARITY="parity",e_.COOLING="cooling",e_.POLLINGMILLIS="pollingMillis",e_.SOILTEMPERATURE="soilTemperature",e_.SUNIRRADIANCE="sunIrradiance",e_.MESSAGEMAXLENGTH="messageMaxLength",e_.WINDGUSTSPEED="windGustSpeed",e_.LIGHTID="lightId",e_.PROXYADDRESS="proxyAddress",e_.REQUESTQUERYPARAMETERS="requestQueryParameters",e_.MQTTHOST="MQTTHost",e_.SECUREGRPC="secureGRPC",e_.MODEL="model",e_.STREET="street",e_.MANUFACTURER="manufacturer",e_.DELETEPROCESSEDMAIL="deleteProcessedMail",e_.RESUMESESSION="resumeSession",e_.ONOFF="onOff",e_.APIKEY="ApiKey",e_.CITY="city",e_.PRESENCE="presence",e_.SPACESOCCUPIED="spacesOccupied",e_.STARTTLS="startTLS",e_.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",e_.WEBSOCKETPATH="websocketPath",e_.AGENTSTATUS="agentStatus",e_.PRICEDAILY="priceDaily",e_.COUNTGROWTHMINUTE="countGrowthMinute",e_.IMONUMBER="IMONumber",e_.ATTRIBUTION="Attribution",e_.TENANTID="tenantId",e_.REQUESTHEADERS="requestHeaders",e_.HOST="host",e_.COUNTOUTMINUTE="countOutMinute",e_.MESSAGECHARSET="messageCharset",e_.CERTIFICATEALIAS="certificateAlias",e_.EMAIL="email",e_.BINDPORT="bindPort",e_.CONSOLEVERSION="consoleVersion",e_.PARTICLESPM1="particlesPM1",e_.MTU="mtu",e_.SPEED="speed",e_.MESSAGESTRIPDELIMITER="messageStripDelimiter",e_.AREA="area",e_.COUNTRY="country",e_.SHIPTYPE="shipType",e_.CONNECTSUBSCRIPTIONS="connectSubscriptions",e_.RELATIVEHUMIDITY="relativeHumidity",e_.SOURCEADDRESS="sourceAddress",e_.RAINFALL="rainfall",e_.OAUTHGRANT="oAuthGrant",e_.OZONELEVEL="ozoneLevel",e_.SEQUENCENUMBER="sequenceNumber",e_.COUNTINMINUTE="countInMinute",e_.PORT="port",e_.SUNALTITUDE="sunAltitude",e_.COUNTOUT="countOut",e_.ROOMNUMBER="roomNumber",e_.TUNNELINGSUPPORTED="tunnelingSupported",e_.ENINUMBER="ENINumber",e_.PARTICLESPM2_5="particlesPM2_5",e_.AGENTDISABLED="agentDisabled",e_.DISABLED="disabled",e_.COUNTIN="countIn",e_.MESSAGESOURCEADDRESS="messageSourceAddress",e_.PROVISIONWEATHERASSET="ProvisionWeatherAsset",e_.TIMEINJECTIONINTERVAL="timeInjectionInterval",e_.TEMPERATURESETPOINT="temperatureSetpoint",e_.CONSOLEPROVIDERS="consoleProviders",e_.COUNTTOTAL="countTotal",e_.SPACESBUFFER="spacesBuffer",e_.DEVICECONFIG="deviceConfig",e_.SPACESTOTAL="spacesTotal",e_.BINDHOST="bindHost",e_.FANSPEED="fanSpeed",e_.MESSAGECONVERTBINARY="messageConvertBinary",e_.NOTES="notes",e_.MAILFOLDERNAME="mailFolderName",e_.MESSAGEDELIMITERS="messageDelimiters",e_.TEMPERATURE="temperature",e_.SUNZENITH="sunZenith",e_.SNMPVERSIONVALUE="SNMPVersionValue",e_.BRIGHTNESS="brightness",e_.POSTALCODE="postalCode",e_.SPACESOPEN="spacesOpen",e_.HUMIDITY="humidity",e_.SOUNDLEVEL="soundLevel",e_.SECUREMODE="secureMode",e_.DIRECTION="direction",e_.STOPBITS="stopbits",e_.UVINDEX="uVIndex",e_.CONNECTURL="connectURL",e_.CLIENTID="clientId",e_.NATMODE="NATMode",e_.UPDATEONWRITE="updateOnWrite",e_.LASTWILLPAYLOAD="lastWillPayload",e_.GROUPID="groupId",e_.FOLLOWREDIRECTS="followRedirects",e_.SUNAZIMUTH="sunAzimuth",e_.MESSAGECONVERTHEX="messageConvertHex",e_.WEBSOCKETMODE="websocketMode",e_.COLOURTEMPERATURE="colourTemperature",e_.PUBLISHQOS="publishQos",e_.DATABITS="dataBits",(eF=tv||(tv={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(eg=tk||(tk={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tw||(tw={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tM||(tM={});class nj{static getAssetDescriptors(){return nj._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nj.getValueDescriptor(t)),n=t.jsonType?t:nj.getValueDescriptor(t.type)),!n&&e&&(n=nj.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}function nI(e){return(nI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nH(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function nU(e){var t=function(e,t){if("object"!=nI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nI(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nI(t)?t:t+""}function nW(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nU(o.key),o)}}function nz(e,t,n){return t&&nW(e.prototype,t),n&&nW(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n$(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nG(e,t){return(nG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nq(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nG(e,t)}function nV(e,t){if(t&&("object"==nI(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return n$(e)}function nK(e){return(nK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nJ(e,t,n){return(t=nU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function nQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function nZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nQ(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}nj._assetTypeInfos=[],nj._metaItemDescriptors=[],nj._valueDescriptors=[];var n0={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},n1=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nH(this,e),this.init(t,n)}return nz(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||n0,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,nZ(nZ({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),n2=function(){function e(){nH(this,e),this.observers={}}return nz(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function n4(){var e,t,n=new Promise(function(n,o){e=n,t=o});return n.resolve=e,n.reject=t,n}function n3(e){return null==e?"":""+e}function n5(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:o(i.shift())}}function n6(e,t,n){var o=n5(e,t,Object);o.obj[o.k]=n}function n8(e,t){var n=n5(e,t),o=n.obj,r=n.k;if(o)return o[r]}function n7(e,t,n){var o=n8(e,n);return void 0!==o?o:n8(t,n)}function n9(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ot(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return oe[e]}):e}var on="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,oo=[" ",",","?","!",";"];function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oa=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return nH(this,o),t=n.call(this),on&&n2.call(n$(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return nz(o,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=n8(this.data,a);return s||!i||"string"!=typeof n?s:function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var r=n.split(o),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var s=2,d=r.slice(a,a+s).join(o),c=i[d];void 0===c&&r.length>a+s;)s++,c=i[d=r.slice(a,a+s).join(o)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(d)){if("string"==typeof c)return c;if(d&&"string"==typeof c[d])return c[d]}var l=r.slice(a+s).join(o);if(l)return e(c,l,o);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),n6(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);var s=n8(this.data,a)||{};o?function e(t,n,o){for(var r in n)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof n[r]||n[r]instanceof String?o&&(t[r]=n[r]):e(t[r],n[r],o):t[r]=n[r]);return t}(s,n,r):s=oi(oi({},s),n),n6(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?oi(oi({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),o}(n2),os={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))}),t}};function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?od(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ol={},om=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nH(this,o),i=n.call(this),on&&n2.call(n$(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=n$(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=n1.create("translator"),i}return nz(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var o=oo.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===o.length)return!0;var r=new RegExp("(".concat(o.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,n,o);if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:r};var d=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(d[0])>-1)&&(r=d.shift()),e=d.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==nI(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),d=s.key,c=s.namespaces,l=c[c.length-1],m=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&"cimode"===m.toLowerCase()){if(u){var f=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(l).concat(f).concat(d),b):"".concat(l).concat(f).concat(d)}return i?(b.res=d,b):d}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||d,_=b&&b.exactUsedKey||d,F=Object.prototype.toString.apply(h),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(F)&&("string"!=typeof g||"[object Array]"!==F)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,oc(oc({},t),{},{ns:c})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=k,b):k}if(a){var w="[object Array]"===F,M=w?[]:{},E=w?_:p;for(var L in h)if(Object.prototype.hasOwnProperty.call(h,L)){var D="".concat(E).concat(a).concat(L);M[L]=this.translate(D,oc(oc({},t),{joinArrays:!1,ns:c})),M[L]===D&&(M[L]=h[L])}h=M}}else if(y&&"string"==typeof g&&"[object Array]"===F)(h=h.join(g))&&(h=this.extendTranslation(h,e,t,n));else{var A=!1,T=!1,C=void 0!==t.count&&"string"!=typeof t.count,S=o.hasDefaultValue(t),x=C?this.pluralResolver.getSuffix(m,t.count,t):"",Y=t["defaultValue".concat(x)]||t.defaultValue;!this.isValidLookup(h)&&S&&(A=!0,h=Y),this.isValidLookup(h)||(T=!0,h=d);var O=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:h,B=S&&Y!==h&&this.options.updateMissing;if(T||A||B){if(this.logger.log(B?"updateKey":"missingKey",m,l,d,B?Y:h),a){var R=this.resolve(d,oc(oc({},t),{},{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var j=0;j<N.length;j++)P.push(N[j]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(t.lng||this.language):P.push(t.lng||this.language);var I=function(e,n,o){var i=S&&o!==h?o:O;r.options.missingKeyHandler?r.options.missingKeyHandler(e,l,n,i,B,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,l,n,i,B,t),r.emit("missingKey",e,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?P.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(n){I([e],d+n,t["defaultValue".concat(n)]||Y)})}):I(P,d,Y))}h=this.extendTranslation(h,e,t,b,n),T&&h===d&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(d)),(T||A)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(d):d,A?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,n,o,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,oc(oc({},this.options.interpolation.defaultVariables),n),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(oc(oc({},n),{interpolation:oc(oc({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var d=e.match(this.interpolator.nestingRegexp);a=d&&d.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=oc(oc({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,o=Array(e),a=0;a<e;a++)o[a]=arguments[a];return r&&r[0]===o[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):i.translate.apply(i,o.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var m=n.postProcess||this.options.postProcess,u="string"==typeof m?[m]:m;return null!=e&&u&&u.length&&!1!==n.applyPostProcessor&&(e=os.handle(u,e,t,this.options&&this.options.postProcessPassResolved?oc({i18nResolved:o},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var d=a.extractFromKey(e,s),c=d.key;n=c;var l=d.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var m=void 0!==s.count&&"string"!=typeof s.count,u=m&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,b=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach(function(e){a.isValidLookup(t)||(i=e,!ol["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(ol["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(function(n){if(!a.isValidLookup(t)){r=n;var i,d=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(d,c,n,e,s);else{m&&(l=a.pluralResolver.getSuffix(n,s.count,s));var l,b="".concat(a.options.pluralSeparator,"zero");if(m&&(d.push(c+l),u&&d.push(c+b)),f){var h="".concat(c).concat(a.options.contextSeparator).concat(s.context);d.push(h),m&&(d.push(h+l),u&&d.push(h+b))}}for(;i=d.pop();)a.isValidLookup(t)||(o=i,t=a.getResource(n,e,i,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(n2);function ou(e){return e.charAt(0).toUpperCase()+e.slice(1)}var of=function(){function e(t){nH(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n1.create("languageUtils")}return nz(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ou(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ou(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ou(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var o=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(o))&&(t=o)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(o))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),o.forEach(function(e){0>r.indexOf(e)&&i(n.formatLanguageCode(e))}),r}}]),e}(),ob=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],oh={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},op=["v1","v2","v3"],o_={zero:0,one:1,two:2,few:3,many:4,other:5},oF=function(){function e(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nH(this,e),this.languageUtils=t,this.options=o,this.logger=n1.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},ob.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:oh[e.fc]}})}),n)}return nz(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(e,t){return o_[e]-o_[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):o.numbers.map(function(o){return t.getSuffix(e,o,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(t)):this.getSuffixRetroCompatible(o,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,o=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!op.includes(this.options.compatibilityJSON)}}]),e}();function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ov=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nH(this,e),this.logger=n1.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return nz(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ot,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?n9(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?n9(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?n9(t.nestingPrefix):t.nestingPrefixEscaped||n9("$t("),this.nestingSuffix=t.nestingSuffix?n9(t.nestingSuffix):t.nestingSuffixEscaped||n9(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,s=this,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(0>e.indexOf(s.formatSeparator)){var r=n7(t,d,e);return s.alwaysFormat?s.format(r,void 0,n,oy(oy(oy({},o),t),{},{interpolationkey:e})):r}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(n7(t,d,a),c,n,oy(oy(oy({},o),t),{},{interpolationkey:a}))};this.resetRegExp();var m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,u=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(i=l(n)))if("function"==typeof m){var d=m(e,r,o);i="string"==typeof d?d:""}else if(o&&o.hasOwnProperty(n))i="";else if(u){i=r[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i="";else"string"==typeof i||s.useRawValueToEscape||(i=n3(i));var c=t.safeValue(i);if(e=e.replace(r[0],c),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,o,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=oy({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0];var i=(r=this.interpolate(r,a)).match(/'/g),s=r.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=oy(oy({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var d=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=l.shift(),d=l,c=!0}if((o=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=n3(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=d.reduce(function(e,t){return r.format(e,t,i.lng,oy(oy({},i),{},{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oM(e){var t={};return function(n,o,r){var i=o+JSON.stringify(r),a=t[i];return a||(a=e(o,r),t[i]=a),a(n)}}var oE=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nH(this,e),this.logger=n1.create("formatter"),this.options=t,this.formats={number:oM(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:oM(function(e,t){var n=new Intl.NumberFormat(e,ow(ow({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:oM(function(e,t){var n=new Intl.DateTimeFormat(e,ow({},t));return function(e){return n.format(e)}}),relativetime:oM(function(e,t){var n=new Intl.RelativeTimeFormat(e,ow({},t));return function(e){return n.format(e,t.range||"day")}}),list:oM(function(e,t){var n=new Intl.ListFormat(e,ow({},t));return function(e){return n.format(e)}})},this.init(t)}return nz(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=oM(t)}},{key:"format",value:function(e,t,n,o){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var o=e.split("(");t=o[0].toLowerCase().trim();var r=o[1].substring(0,o[1].length-1);"currency"===t&&0>r.indexOf(":")?n.currency||(n.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?n.range||(n.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,o=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return nX(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?nX(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=o[0],i=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}(t),a=i.formatName,s=i.formatOptions;if(r.formats[a]){var d=e;try{var c=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},l=c.locale||c.lng||o.locale||o.lng||n;d=r.formats[a](e,l,ow(ow(ow({},s),o),c))}catch(e){r.logger.warn(e)}return d}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function oL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oL(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oA=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return nH(this,o),i=n.call(this),on&&n2.call(n$(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=n1.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return nz(o,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i={},a={},s={},d={};return e.forEach(function(e){var o=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===a[s]&&(a[s]=!0):(r.state[s]=1,o=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===d[t]&&(d[t]=!0)))}),o||(s[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var o,s,d,c;o=n.loaded,(d=(s=n5(o,[r],Object)).obj)[c=s.k]=d[c]||[],d[c].push(i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,d){if(o.readingCalls--,o.waitingReads.length>0){var c=o.waitingReads.shift();o.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&d&&r<o.maxRetries?setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i):a(s,d)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,function(o,a){o&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(r," failed"),o),!o&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,o,a)})}},{key:"saveMissing",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,oD(oD({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),o}(n2);function oT(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function oC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oC(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ox(){}var oY=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(nH(this,o),t=n.call(this),on&&n2.call(n$(t)),t.options=oT(r),t.services={},t.logger=n1,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=n$(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),nV(t,n$(t));setTimeout(function(){t.init(r,i)},0)}return t}return nz(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var o={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===nI(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===nI(e[2])||"object"===nI(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=oS(oS(oS({},o),this.options),oT(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=oS(oS({},o.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?n1.init(r(this.modules.logger),this.options):n1.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=oE);var i,a=new of(this.options);this.store=new oa(this.options.resources,this.options);var s=this.services;s.logger=n1,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new oF(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(s.formatter=r(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ov(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new oA(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new om(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=ox),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&"dev"!==d[0]&&(this.options.lng=d[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=n4(),l=function(){var t=function(t,o){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(o),n(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ox,o=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),o(e)})}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=n4();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ox),this.services.backendConnector.reload(e,t,function(e){o.resolve(),n(e)}),o}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&os.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=n4();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(e,i){i?(r(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,o.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var o="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);o&&(n.language||r(o),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,function(e){i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t,n){var o=this,r=function e(t,r){if("object"!==nI(r)){for(var i,a=arguments.length,s=Array(a>2?a-2:0),d=2;d<a;d++)s[d-2]=arguments[d];i=o.options.overloadTranslationOptionHandler([t,r].concat(s))}else i=oS({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var c=o.options.keySeparator||".",l=i.keyPrefix?"".concat(i.keyPrefix).concat(c).concat(t):t;return o.t(l,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===o||2===o};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=n4();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=n4();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter(function(e){return 0>o.indexOf(e)});return r.length?(this.options.preload=o.concat(r),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ox,r=oS(oS(oS({},this.options),t),{isClone:!0}),i=new o(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=oS({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new om(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.emit.apply(i,[e].concat(n))}),i.init(r,n),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(n2);nJ(oY,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new oY(e,t)});var oO=oY.createInstance();oO.createInstance=oY.createInstance,oO.createInstance,oO.init,oO.loadResources,oO.reloadResources,oO.use,oO.changeLanguage,oO.getFixedT,oO.t,oO.exists,oO.setDefaultNamespace,oO.hasLoadedNamespace,oO.loadNamespaces,oO.loadLanguages;let oB=oO;var oR=n(8183),oP=n.n(oR),oN=n(4867),oj=n.n(oN);n(3472);class oI{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function oH(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class oU{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>oU._evalValuePredicate(e.name,t)))&&(!this.attributes||oU._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!oU._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?oU._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||oU._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>oU._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>oU._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>oU._collectNames(e))]}}oU._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var oW=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let oz=n(4461);class o${constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let l=o$._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=l.providers;for(let e of(l.providers={},c)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let f=sd.getAppName();f.length>0&&0>l.apps.indexOf(f)&&l.apps.push(f),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return oW(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 e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return oW(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return oW(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return oW(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return oW(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new oI,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>oW(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return oW(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield sd.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&o$._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return oW(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:oz.name,version:oz.version,platform:oz.os.toString(),apps:[],model:((oz.manufacturer?oz.manufacturer+" ":"")+(oz.product?oz.product:"")).trim()}}_initialiseProvider(e){return oW(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function oG(e,t){return function(){return e.apply(t,arguments)}}let{toString:oq}=Object.prototype,{getPrototypeOf:oV}=Object,{iterator:oK,toStringTag:oJ}=Symbol,oX=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oQ=(e,t)=>{let n=e,o=[];for(;null!=n&&n!==Object.prototype&&-1===o.indexOf(n);){if(o.push(n),oX(n,t))return!0;n=oV(n)}return!1},oZ=(i=Object.create(null),e=>{let t=oq.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),o0=e=>(e=e.toLowerCase(),t=>oZ(t)===e),o1=e=>t=>typeof t===e,{isArray:o2}=Array,o4=o1("undefined");function o3(e){return null!==e&&!o4(e)&&null!==e.constructor&&!o4(e.constructor)&&o8(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let o5=o0("ArrayBuffer"),o6=o1("string"),o8=o1("function"),o7=o1("number"),o9=e=>null!==e&&"object"==typeof e,re=e=>{if(!o9(e))return!1;let t=oV(e);return(null===t||t===Object.prototype||null===oV(t))&&!oQ(e,oJ)&&!oQ(e,oK)},rt=o0("Date"),rn=o0("File"),ro=o0("Blob"),rr=o0("FileList"),ri="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ra=void 0!==ri.FormData?ri.FormData:void 0,rs=o0("URLSearchParams"),[rd,rc,rl,rm]=["ReadableStream","Request","Response","Headers"].map(o0);function ru(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),o2(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(o3(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function rf(e,t){let n;if(o3(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let rb="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rh=e=>!o4(e)&&e!==rb,rp=(a="u">typeof Uint8Array&&oV(Uint8Array),e=>a&&e instanceof a),r_=o0("HTMLFormElement"),{propertyIsEnumerable:rF}=Object.prototype,rg=o0("RegExp"),ry=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};ru(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},rv=o0("AsyncFunction"),rk=(c="function"==typeof setImmediate,l=o8(rb.postMessage),c?setImmediate:l?(m=`axios@${Math.random()}`,u=[],rb.addEventListener("message",({source:e,data:t})=>{e===rb&&t===m&&u.length&&u.shift()()},!1),e=>{u.push(e),rb.postMessage(m,"*")}):e=>setTimeout(e)),rw="u">typeof queueMicrotask?queueMicrotask.bind(rb):"u">typeof process&&process.nextTick||rk,rM=e=>null!=e&&o8(e[oK]),rE={isArray:o2,isArrayBuffer:o5,isBuffer:o3,isFormData:e=>{if(!e)return!1;if(ra&&e instanceof ra)return!0;let t=oV(e);if(!t||t===Object.prototype||!o8(e.append))return!1;let n=oZ(e);return"formdata"===n||"object"===n&&o8(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&o5(e.buffer)},isString:o6,isNumber:o7,isBoolean:e=>!0===e||!1===e,isObject:o9,isPlainObject:re,isEmptyObject:e=>{if(!o9(e)||o3(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rd,isRequest:rc,isResponse:rl,isHeaders:rm,isUndefined:o4,isDate:rt,isFile:rn,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:ro,isRegExp:rg,isFunction:o8,isStream:e=>o9(e)&&o8(e.pipe),isURLSearchParams:rs,isTypedArray:rp,isFileList:rr,forEach:ru,merge:function e(...t){let{caseless:n,skipUndefined:o}=rh(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&rf(r,i)||i,s=oX(r,a)?r[a]:void 0;re(s)&&re(t)?r[a]=e(s,t):re(t)?r[a]=e({},t):o2(t)?r[a]=t.slice():o&&o4(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||o3(n)||(ru(n,i),"object"!=typeof n||o2(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];rF.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(ru(t,(t,o)=>{n&&o8(t)?Object.defineProperty(e,o,{__proto__:null,value:oG(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&oV(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oZ,kindOfTest:o0,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(o2(e))return e;let t=e.length;if(!o7(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[oK]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:r_,hasOwnProperty:oX,hasOwnProp:oX,hasOwnInPrototypeChain:oQ,getSafeProp:(e,t)=>null!=e&&oQ(e,t)?e[t]:void 0,reduceDescriptors:ry,freezeMethods:e=>{ry(e,(t,n)=>{if(o8(e)&&["arguments","caller","callee"].includes(n))return!1;if(o8(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(o2(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:rf,global:rb,isContextDefined:rh,isSpecCompliantForm:function(e){return!!(e&&o8(e.append)&&"FormData"===e[oJ]&&e[oK])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(o9(e)){if(t.has(e))return;if(o3(e))return e;if(!("toJSON"in e)){t.add(e);let o=o2(e)?[]:{};return ru(e,(e,t)=>{let r=n(e);o4(r)||(o[t]=r)}),t.delete(e),o}}return e};return n(e)},isAsyncFn:rv,isThenable:e=>e&&(o9(e)||o8(e))&&o8(e.then)&&o8(e.catch),setImmediate:rk,asap:rw,isIterable:rM,isSafeIterable:e=>null!=e&&oQ(e,oK)&&rM(e)},rL=rE.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"]),rD=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rA=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rT(e,t){return rE.isArray(e)?e.map(e=>rT(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function rC(e){let t=Object.create(null);return rE.forEach(e.toJSON(),(e,n)=>{t[n]=rT(e,rA)}),t}let rS=Symbol("internals");function rx(e){return e&&String(e).trim().toLowerCase()}function rY(e){return!1===e||null==e?e:rE.isArray(e)?e.map(rY):rT(String(e),rD)}function rO(e,t,n,o,r){if(rE.isFunction(o))return o.call(this,t,n);if(r&&(t=n),rE.isString(t)){if(rE.isString(o))return -1!==t.indexOf(o);if(rE.isRegExp(o))return o.test(t)}}class rB{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=rx(t);if(!r)return;let i=rE.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=rY(e))}let i=(e,t)=>rE.forEach(e,(e,n)=>r(e,n,t));if(rE.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(rE.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||s[n]&&rL[n]||("set-cookie"===n?s[n]?s[n].push(o):s[n]=[o]:s[n]=s[n]?s[n]+", "+o:o)}),s),t)}else if(rE.isObject(e)&&rE.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!rE.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rE.hasOwnProp(n,r)?(o=n[r],n[r]=rE.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=rx(e)){let n=rE.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(rE.isFunction(t))return t.call(this,e,n);if(rE.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rx(e)){let n=rE.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||rO(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=rx(e)){let r=rE.findKey(n,e);r&&(!t||rO(n,n[r],r,t))&&(delete n[r],o=!0)}}return rE.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||rO(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return rE.forEach(this,(o,r)=>{let i=rE.findKey(n,r);if(i){t[i]=rY(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=rY(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rE.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&rE.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[rS]=this[rS]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=rx(e);if(!t[o]){let r;r=rE.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return rE.isArray(e)?e.forEach(o):o(e),this}}rB.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rE.reduceDescriptors(rB.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),rE.freezeMethods(rB);class rR extends Error{static from(e,t,n,o,r,i){let a=new rR(e.message,t||e.code,n,o,r);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&rE.hasOwnProp(o,"redact")?o.redact:void 0,i=rE.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||rE.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rB&&(o=o.toJSON()),t.push(o),rE.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);rE.isUndefined(o)||(r[t]=o)});else{if(!rE.isPlainObject(o)&&function(e){if(rE.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rE.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?"[REDACTED ****]":n(i);rE.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):rE.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rR.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rR.ERR_BAD_OPTION="ERR_BAD_OPTION",rR.ECONNABORTED="ECONNABORTED",rR.ETIMEDOUT="ETIMEDOUT",rR.ECONNREFUSED="ECONNREFUSED",rR.ERR_NETWORK="ERR_NETWORK",rR.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rR.ERR_DEPRECATED="ERR_DEPRECATED",rR.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rR.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rR.ERR_CANCELED="ERR_CANCELED",rR.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rR.ERR_INVALID_URL="ERR_INVALID_URL",rR.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rP=rR;function rN(e){return rE.isPlainObject(e)||rE.isArray(e)}function rj(e){return rE.endsWith(e,"[]")?e.slice(0,-2):e}function rI(e,t,n){return e?e.concat(t).map(function(e,t){return e=rj(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let rH=rE.toFlatObject(rE,{},null,function(e){return/^is[A-Z]/.test(e)}),rU=function(e,t,n){if(!rE.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(n=rE.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rE.isUndefined(t[e])})).metaTokens,r=n.visitor||f,i=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,d=void 0===n.maxDepth?100:n.maxDepth,c=s&&rE.isSpecCompliantForm(t),l=[];if(!rE.isFunction(r))throw TypeError("visitor must be a function");function m(e){if(null===e)return"";if(rE.isDate(e))return e.toISOString();if(rE.isBoolean(e))return e.toString();if(!c&&rE.isBlob(e))throw new rP("Blob is not supported. Use a Buffer instead.");if(rE.isArrayBuffer(e)||rE.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rP("Blob is not supported. Use a Buffer instead.",rP.ERR_NOT_SUPPORT)}return e}function u(e){if(e>d)throw new rP("Object is too deeply nested ("+e+" levels). Max depth: "+d,rP.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,r){let s=e;if(rE.isReactNative(t)&&rE.isReactNativeBlob(e))return t.append(rI(r,n,i),m(e)),!1;if(e&&!r&&"object"==typeof e)if(rE.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(d===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!rE.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),u(1+t.length-1),n})}(e);else{var c;if(rE.isArray(e)&&(c=e,rE.isArray(c)&&!c.some(rN))||(rE.isFileList(e)||rE.endsWith(n,"[]"))&&(s=rE.toArray(e)))return n=rj(n),s.forEach(function(e,o){rE.isUndefined(e)||null===e||t.append(!0===a?rI([n],o,i):null===a?n:n+"[]",m(e))}),!1}return!!rN(e)||(t.append(rI(r,n,i),m(e)),!1)}let b=Object.assign(rH,{defaultVisitor:f,convertValue:m,isVisitable:rN});if(!rE.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!rE.isUndefined(n)){if(u(i),-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),rE.forEach(n,function(n,a){!0===(!(rE.isUndefined(n)||null===n)&&r.call(t,n,rE.isString(a)?a.trim():a,o,b))&&e(n,o?o.concat(a):[a],i+1)}),l.pop()}}(e),t};function rW(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rz(e,t){this._pairs=[],e&&rU(e,this,t)}let r$=rz.prototype;function rG(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rq(e,t,n){let o;if(!t)return e;e=e||"";let r=rE.isFunction(n)?{serialize:n}:n,i=rE.getSafeProp(r,"encode")||rG,a=rE.getSafeProp(r,"serialize");if(o=a?a(t,r):rE.isURLSearchParams(t)?t.toString():new rz(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}r$.append=function(e,t){this._pairs.push([e,t])},r$.toString=function(e){let t=e?t=>e.call(this,t,rW):rW;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rV=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rE.forEach(this.handlers,function(t){null!==t&&e(t)})}},rK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rJ="u">typeof URLSearchParams?URLSearchParams:rz,rX="u">typeof FormData?FormData:null,rQ="u">typeof Blob?Blob:null,rZ="u">typeof window&&"u">typeof document,r0="object"==typeof navigator&&navigator||void 0,r1=rZ&&(!r0||0>["ReactNative","NativeScript","NS"].indexOf(r0.product)),r2="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,r4=rZ&&window.location.href||"http://localhost",r3={...tC,isBrowser:!0,classes:{URLSearchParams:rJ,FormData:rX,Blob:rQ},protocols:["http","https","file","blob","url","data"]};function r5(e){if(e>100)throw new rP("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rP.ERR_FORM_DATA_DEPTH_EXCEEDED)}let r6=function(e){if(rE.isFormData(e)&&rE.isFunction(e.entries)){let t={};return rE.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){r5(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&rE.isArray(o)?o.length:i,s)?rE.hasOwnProp(o,i)?o[i]=rE.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(rE.hasOwnProp(o,i)&&rE.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&rE.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/\w+|\[(\w*)]/g;for(;null!==(t=o.exec(e));)r5(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},r8=(e,t)=>null!=e&&rE.hasOwnProp(e,t)?e[t]:void 0,r7={transitional:rK,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=rE.isObject(e);if(i&&rE.isHTMLForm(e)&&(e=new FormData(e)),rE.isFormData(e))return r?JSON.stringify(r6(e)):e;if(rE.isArrayBuffer(e)||rE.isBuffer(e)||rE.isStream(e)||rE.isFile(e)||rE.isBlob(e)||rE.isReadableStream(e))return e;if(rE.isArrayBufferView(e))return e.buffer;if(rE.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=r8(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rU(e,new r3.classes.URLSearchParams,{visitor:function(e,t,n,o){return r3.isNode&&rE.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=rE.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=r8(this,"env"),r=o&&o.FormData;return rU(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rE.isString(a))try{return(0,JSON.parse)(a),rE.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=r8(this,"transitional")||r7.transitional,n=t&&t.forcedJSONParsing,o=r8(this,"responseType"),r="json"===o;if(rE.isResponse(e)||rE.isReadableStream(e))return e;if(e&&rE.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,r8(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rP.from(e,rP.ERR_BAD_RESPONSE,this,null,r8(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r3.classes.FormData,Blob:r3.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function r9(e,t){let n=this||r7,o=t||n,r=rB.from(o.headers),i=o.data;return rE.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function ie(e){return!!(e&&e.__CANCEL__)}rE.forEach(["delete","get","head","post","put","patch","query"],e=>{r7.headers[e]={}});let it=class extends rP{constructor(e,t,n){super(null==e?"canceled":e,rP.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function io(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rP("Request failed with status code "+n.status,n.status>=400&&n.status<500?rP.ERR_BAD_REQUEST:rP.ERR_BAD_RESPONSE,n.config,n.request,n))}let ir=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),c=r[a];n||(n=d),o[i]=s,r[i]=d;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=c&&d-c;return u?Math.round(1e3*m/u):void 0}},ii=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n)]},ia=(e,t,n=3)=>{let o=0,r=ir(50,250);return ii(n=>{if(!n||"number"!=typeof n.loaded)return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,d=Math.max(0,s-o),c=r(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},is=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},id=e=>(...t)=>rE.asap(()=>e(...t)),ic=r3.hasStandardBrowserEnv?(s=new URL(r3.origin),d=r3.navigator&&/(msie|trident)/i.test(r3.navigator.userAgent),e=>(e=new URL(e,r3.origin),s.protocol===e.protocol&&s.host===e.host&&(d||s.port===e.port))):()=>!0,il=r3.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];rE.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),rE.isString(o)&&s.push(`path=${o}`),rE.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),rE.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},im=/^https?:(?!\/\/)/i,iu=/[\t\n\r]/g;function ib(e,t){if("string"==typeof e&&im.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(iu,"")))throw new rP('Invalid URL: missing "//" after protocol',rP.ERR_INVALID_URL,t)}function ih(e,t,n,o){ib(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===n)?(ib(e,o),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let ip=e=>e instanceof rB?{...e}:e;function i_(e,t){e=e||{},t=t||{};let n=Object.create(null);function o(e,t,n,o){return rE.isPlainObject(e)&&rE.isPlainObject(t)?rE.merge.call({caseless:o},e,t):rE.isPlainObject(t)?rE.merge({},t):rE.isArray(t)?t.slice():t}function r(e,t,n,r){return rE.isUndefined(t)?rE.isUndefined(e)?void 0:o(void 0,e,n,r):o(e,t,n,r)}function i(e,t){if(!rE.isUndefined(t))return o(void 0,t)}function a(e,t){return rE.isUndefined(t)?rE.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,i){return rE.hasOwnProp(t,i)?o(n,r):rE.hasOwnProp(e,i)?o(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>r(ip(e),ip(t),n,!0)};return rE.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;let i=rE.hasOwnProp(d,o)?d[o]:r,a=i(rE.hasOwnProp(e,o)?e[o]:void 0,rE.hasOwnProp(t,o)?t[o]:void 0,o);rE.isUndefined(a)&&i!==s||(n[o]=a)}),rE.hasOwnProp(t,"validateStatus")&&rE.isUndefined(t.validateStatus)&&!1===function(n){let o=rE.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rE.isUndefined(o)){if(!rE.isPlainObject(o))return;else if(rE.hasOwnProp(o,n))return o[n]}let r=rE.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rE.isPlainObject(r)&&rE.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(rE.hasOwnProp(e,"validateStatus")?n.validateStatus=o(void 0,e.validateStatus):delete n.validateStatus),n}let iF=["content-type","content-length"],ig=function(e){let t=i_({},e),n=e=>rE.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rB.from(s),t.url=rq(ih(c,m,l,t),n("params"),n("paramsSerializer")),d){let t=rE.getSafeProp(d,"username")||"",n=rE.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rP.from(t,rP.ERR_BAD_OPTION_VALUE,e)}}if(rE.isFormData(o))if(r3.hasStandardBrowserEnv||r3.hasStandardBrowserWebWorkerEnv||rE.isReactNative(o))s.setContentType(void 0);else{var u,f;rE.isFunction(o.getHeaders)&&(u=s,f=o.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{iF.includes(e.toLowerCase())&&u.set(e,t)}))}if(r3.hasStandardBrowserEnv&&(rE.isFunction(r)&&(r=r(t)),!0===r||null==r&&ic(t.url))){let e=i&&a&&il.read(a);e&&s.set(i,e)}return t},iy="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var o;let r,i,a,s,d,c,l=ig(e),m=l.data,u=rB.from(l.headers).normalize(),{responseType:f,onUploadProgress:b,onDownloadProgress:h}=l;function p(){s&&s(),d&&d(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let _=new XMLHttpRequest;function F(){if(!_)return;let o=rB.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());io(function(e){t(e),p()},function(e){n(e),p()},{data:f&&"text"!==f&&"json"!==f?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:o,config:e,request:_}),_=null}_.open(l.method.toUpperCase(),l.url,!0),_.timeout=l.timeout,"onloadend"in _?_.onloadend=F:_.onreadystatechange=function(){!_||4!==_.readyState||(0!==_.status||_.responseURL&&_.responseURL.startsWith("file:"))&&setTimeout(F)},_.onabort=function(){_&&(n(new rP("Request aborted",rP.ECONNABORTED,e,_)),p(),_=null)},_.onerror=function(t){let o=new rP(t&&t.message?t.message:"Network Error",rP.ERR_NETWORK,e,_);o.event=t||null,n(o),p(),_=null},_.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||rK;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new rP(t,o.clarifyTimeoutError?rP.ETIMEDOUT:rP.ECONNABORTED,e,_)),p(),_=null},void 0===m&&u.setContentType(null),"setRequestHeader"in _&&rE.forEach(rC(u),function(e,t){_.setRequestHeader(t,e)}),rE.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),f&&"json"!==f&&(_.responseType=l.responseType),h&&([a,d]=ia(h,!0),_.addEventListener("progress",a)),b&&_.upload&&([i,s]=ia(b),_.upload.addEventListener("progress",i),_.upload.addEventListener("loadend",s)),(l.cancelToken||l.signal)&&(r=t=>{_&&(n(!t||t.type?new it(null,e,_):t),_.abort(),p(),_=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let g=(o=l.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(o))&&c[1]||"");if(g&&!r3.protocols.includes(g)){n(new rP("Unsupported protocol "+g+":",rP.ERR_BAD_REQUEST,e)),p();return}_.send(m||null)})},iv=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ik=async function*(e,t){for await(let n of iw(e))yield*iv(n,t)},iw=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},iM=(e,t,n,o)=>{let r,i=ik(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},iE=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iL=(e,t,n)=>t+2<n&&iE(e.charCodeAt(t+1))&&iE(e.charCodeAt(t+2)),{isFunction:iD}=rE,iA=e=>{if(!rE.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iT=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iC=e=>{let t,n=void 0!==rE.global&&null!==rE.global?rE.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=rE.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=i?iD(i):"function"==typeof fetch,c=iD(a),l=iD(s);if(!d)return!1;let m=d&&iD(o),u=d&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&m&&iT(()=>{let e=!1,t=new a(r3.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&iT(()=>rE.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rP(`Response type '${e}' is not supported`,rP.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(rE.isBlob(e))return e.size;if(rE.isSpecCompliantForm(e)){let t=new a(r3.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rE.isArrayBufferView(e)||rE.isArrayBuffer(e)?e.byteLength:(rE.isURLSearchParams(e)&&(e+=""),rE.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=rE.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:l,cancelToken:u,timeout:F,onDownloadProgress:g,onUploadProgress:y,responseType:v,headers:k,withCredentials:w="same-origin",fetchOptions:M,maxContentLength:E,maxBodyLength:L}=ig(e),D=rE.isNumber(E)&&E>-1,A=rE.isNumber(L)&&L>-1,T=i||fetch;v=v?(v+"").toLowerCase():"text";let C=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rP?t:new it(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rP(`timeout of ${t}ms exceeded`,rP.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>rE.asap(a),s})([l,u&&u.toAbortSignal()],F),S=null,x=C&&C.unsubscribe&&(()=>{C.unsubscribe()}),Y=null,O=()=>new rP("Request body larger than maxBodyLength limit",rP.ERR_BAD_REQUEST,e,S);try{var B;let i,l,u,F,R=(l="auth",rE.hasOwnProp(e,l)?e[l]:void 0);if(R){let e=rE.getSafeProp(R,"username")||"",t=rE.getSafeProp(R,"password")||"";i={username:e,password:t}}if(u=(B=n).indexOf("://"),F=B,-1!==u&&(F=F.slice(u+3)),F.includes("@")||F.includes(":")){let e=new URL(n,r3.origin);if(!i&&(e.username||e.password)){let t=iA(e.username),n=iA(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;k.delete("authorization"),k.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(D&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length,t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){let t=o.charCodeAt(n+1),r=o.charCodeAt(n+2);iE(t)&&iE(r)&&(e-=2,n+=2)}let n=0,r=t-1,i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));r>=0&&(61===o.charCodeAt(r)?(n++,r--):i(r)&&(n++,r-=3)),1===n&&r>=0&&(61===o.charCodeAt(r)?n++:i(r)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&iL(o,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=o.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(n)>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S);if(A&&"get"!==o&&"head"!==o){let e=await p(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>L))throw O()}let P=A&&(rE.isReadableStream(d)||rE.isStream(d)),N=(e,t,n)=>iM(e,65536,e=>{if(A&&e>L)throw Y=O();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(y||P)){if(t=null==t?await _(k,d):t,0!==t||P){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(rE.isFormData(d)&&(e=o.headers.get("content-type"))&&k.setContentType(e),o.body){let[e,n]=y&&is(t,ia(id(y)))||[];d=N(o.body,e,n)}}}else if(P&&!c&&m&&"get"!==o&&"head"!==o)d=N(d);else if(P&&c&&!f&&"get"!==o&&"head"!==o)throw new rP("Stream request bodies are not supported by the current fetch implementation",rP.ERR_NOT_SUPPORT,e,S);rE.isString(w)||(w=w?"include":"omit");let j=c&&"credentials"in a.prototype;if(rE.isFormData(d)){let e=k.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&k.delete("content-type")}k.set("User-Agent","axios/1.18.1",!1);let I={...M,signal:C,method:o.toUpperCase(),headers:rC(k.normalize()),body:d,duplex:"half",credentials:j?w:void 0};S=c&&new a(n,I);let H=await (c?T(S,M):T(n,I)),U=rB.from(H.headers);if(D){let t=rE.toFiniteNumber(U.getContentLength());if(null!=t&&t>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S)}let W=b&&("stream"===v||"response"===v);if(b&&H.body&&(g||D||W&&x)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=H[e]});let n=rE.toFiniteNumber(U.getContentLength()),[o,r]=g&&is(n,ia(id(g),!0))||[];H=new s(iM(H.body,65536,t=>{if(D&&t>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S);o&&o(t)},()=>{r&&r(),x&&x()}),t)}v=v||"text";let z=await h[rE.findKey(h,v)||"text"](H,e);if(D&&!b&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof r?new r().encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S)}return!W&&x&&x(),await new Promise((t,n)=>{io(t,n,{data:z,headers:rB.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:S})})}catch(t){if(x&&x(),C&&C.aborted&&C.reason instanceof rP){let n=C.reason;throw n.config=e,S&&(n.request=S),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(Y)throw S&&!Y.request&&(Y.request=S),Y;if(t instanceof rP)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rP("Network Error",rP.ERR_NETWORK,e,S,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rP.from(t,t&&t.code,e,S,t&&t.response)}}},iS=new Map,ix=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,d,c=iS;for(;a--;)s=i[a],void 0===(d=c.get(s))&&c.set(s,d=a?new Map:iC(t)),c=d;return d};ix();let iY={http:null,xhr:iy,fetch:{get:ix}};rE.forEach(iY,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iO=e=>`- ${e}`,iB=e=>rE.isFunction(e)||null===e||!1===e,iR=function(e,t){let n,o,{length:r}=e=rE.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!iB(n)&&void 0===(o=iY[(r=String(n)).toLowerCase()]))throw new rP(`Unknown adapter '${r}'`);if(o&&(rE.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rP("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iO).join("\n"):" "+iO(e[0]):"as no adapter specified"),rP.ERR_NOT_SUPPORT)}return o};function iP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function iN(e){return iP(e),e.headers=rB.from(e.headers),e.data=r9.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iR(e.adapter||r7.adapter,e)(e).then(function(t){iP(e),e.response=t;try{t.data=r9.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rB.from(t.headers),t},function(t){if(!ie(t)&&(iP(e),t&&t.response)){e.response=t.response;try{t.response.data=r9.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rB.from(t.response.headers)}return Promise.reject(t)})}let ij={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ij[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iI={};ij.transitional=function(e,t,n){function o(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rP(o(r," has been removed"+(t?" in "+t:"")),rP.ERR_DEPRECATED);return t&&!iI[r]&&(iI[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},ij.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let iH=function(e,t,n){if("object"!=typeof e||null===e)throw new rP("options must be an object",rP.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rP("option "+i+" must be "+n,rP.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rP("Unknown option "+i,rP.ERR_BAD_OPTION)}};class iU{constructor(e){this.defaults=e||{},this.interceptors={request:new rV,response:new rV}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),o=-1===t?-1:n.indexOf("\n",t+1),r=-1===o?"":n.slice(o+1);String(e.stack).endsWith(r)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=i_(this.defaults,t);void 0!==r&&iH(r,{silentJSONParsing:ij.transitional(ij.boolean),forcedJSONParsing:ij.transitional(ij.boolean),clarifyTimeoutError:ij.transitional(ij.boolean),legacyInterceptorReqResOrdering:ij.transitional(ij.boolean),advertiseZstdAcceptEncoding:ij.transitional(ij.boolean),validateStatusUndefinedResolves:ij.transitional(ij.boolean)},!1),null!=i&&(rE.isFunction(i)?t.paramsSerializer={serialize:i}:iH(i,{encode:ij.function,serialize:ij.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iH(t,{baseUrl:ij.spelling("baseURL"),withXsrfToken:ij.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&rE.merge(a.common,a[t.method]);a&&rE.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=rB.concat(s,a);let d=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||rK;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!c){let e=[iN.bind(this),void 0];for(e.unshift(...d),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e(u)}catch(e){t.call(this,e);break}}try{n=iN.call(this,u)}catch(e){return Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rq(ih((e=i_(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rE.forEach(["delete","get","head","options"],function(e){iU.prototype[e]=function(t,n){return this.request(i_(n||{},{method:e,url:t,data:n&&rE.hasOwnProp(n,"data")?n.data:void 0}))}}),rE.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(i_(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iU.prototype[e]=t(),"query"!==e&&(iU.prototype[e+"Form"]=t(!0))});class iW{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new it(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new iW(function(t){e=t}),cancel:e}}}let iz={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(iz).forEach(([e,t])=>{iz[t]=e});let i$=function e(t){let n=new iU(t),o=oG(iU.prototype.request,n);return rE.extend(o,iU.prototype,n,{allOwnKeys:!0}),rE.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(i_(t,n))},o}(r7);i$.Axios=iU,i$.CanceledError=it,i$.CancelToken=iW,i$.isCancel=ie,i$.VERSION="1.18.1",i$.toFormData=rU,i$.AxiosError=rP,i$.Cancel=i$.CanceledError,i$.all=function(e){return Promise.all(e)},i$.spread=function(e){return function(t){return e.apply(null,t)}},i$.isAxiosError=function(e){return rE.isObject(e)&&!0===e.isAxiosError},i$.mergeConfig=i_,i$.AxiosHeaders=rB,i$.formToJSON=e=>r6(rE.isHTMLForm(e)?new FormData(e):e),i$.getAdapter=iR,i$.HttpStatusCode=iz,i$.default=i$;class iG{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:ar`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:ar`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:ar`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:ar`syslog/event`,queryParams:e,options:t})}}class iq{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:ar`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:ar`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:ar`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:ar`provisioning/${e}`,data:t,options:n})}}class iV{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:ar`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:ar`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:ar`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:ar`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ar`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:ar`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:ar`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ar`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:ar`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ar`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:ar`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:ar`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ar`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:ar`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ar`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:ar`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`rules/${e}`,data:t,options:n})}}class iK{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:ar`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:ar`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:ar`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:ar`configuration/manager/image/${e}`,options:t})}}class iJ{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:ar`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:ar`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:ar`asset/datapoint/${e}/${t}`,data:n,options:o})}}class iX{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:ar`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:ar`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:ar`flow/${e}`,options:t})}}class iQ{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:ar`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:ar`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:ar`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:ar`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:ar`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:ar`model/valueDescriptors`,queryParams:e,options:t})}}class iZ{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:ar`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:ar`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:ar`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:ar`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:ar`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:ar`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:ar`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:ar`alarm/${e}/assets`,queryParams:t,options:n})}}class i0{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:ar`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:ar`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:ar`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class i1{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:ar`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:ar`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:ar`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:ar`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:ar`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:ar`service/${e}/${t}`,options:n})}}class i2{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ar`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:ar`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:ar`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ar`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:ar`dashboard/${e}/${t}`,options:n})}}class i4{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:ar`console/register`,data:e,options:t})}}class i3{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ar`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ar`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:ar`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:ar`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:ar`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:ar`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:ar`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:ar`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:ar`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:ar`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ar`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:ar`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ar`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:ar`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:ar`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:ar`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:ar`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:ar`asset/${e}/child`,queryParams:t,options:n})}}class i5{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:ar`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:ar`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:ar`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:ar`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:ar`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:ar`notification/${e}/delivered`,queryParams:t,options:n})}}class i6{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:ar`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:ar`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:ar`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:ar`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:ar`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class i8{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:ar`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`asset/predicted/${e}/${t}`,data:n,options:o})}}class i7{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:ar`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:ar`info`,options:e})}}class i9{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ar`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:ar`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:ar`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ar`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:ar`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:ar`realm/${e}`,data:t,options:n})}}class ae{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:ar`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:ar`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:ar`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:ar`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:ar`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:ar`gateway/status/${e}`,options:t})}}class at{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:ar`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ar`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:ar`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:ar`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:ar`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:ar`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:ar`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:ar`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:ar`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:ar`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:ar`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:ar`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:ar`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/${t}`,options:n})}}class an{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:ar`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:ar`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:ar`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:ar`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:ar`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:ar`map/upload`,queryParams:e,options:t})}}class ao{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:ar`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:ar`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:ar`apps/info`,options:e})}}function ar(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class ai{constructor(e,t=i$.create()){this._syslogResource=new as(e,t),this._provisioningResource=new ad(e,t),this._rulesResource=new ac(e,t),this._configurationResource=new al(e,t),this._assetDatapointResource=new am(e,t),this._flowResource=new au(e,t),this._assetModelResource=new af(e,t),this._alarmResource=new ab(e,t),this._agentResource=new ah(e,t),this._externalServiceResource=new ap(e,t),this._dashboardResource=new a_(e,t),this._consoleResource=new aF(e,t),this._assetResource=new ag(e,t),this._notificationResource=new ay(e,t),this._gatewayServiceResource=new av(e,t),this._assetPredictedDatapointResource=new ak(e,t),this._statusResource=new aw(e,t),this._realmResource=new aM(e,t),this._gatewayClientResource=new aE(e,t),this._userResource=new aL(e,t),this._mapResource=new aD(e,t),this._appResource=new aA(e,t),this._assetResource=new ag(e,t)}get SyslogResource(){return this._syslogResource}get ProvisioningResource(){return this._provisioningResource}get RulesResource(){return this._rulesResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get FlowResource(){return this._flowResource}get AssetModelResource(){return this._assetModelResource}get AlarmResource(){return this._alarmResource}get AgentResource(){return this._agentResource}get ExternalServiceResource(){return this._externalServiceResource}get DashboardResource(){return this._dashboardResource}get ConsoleResource(){return this._consoleResource}get AssetResource(){return this._assetResource}get NotificationResource(){return this._notificationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get MapResource(){return this._mapResource}get AppResource(){return this._appResource}}class aa{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class as extends iG{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ad extends iq{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ac extends iV{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class al extends iK{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class am extends iJ{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class au extends iX{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class af extends iQ{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ab extends iZ{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ah extends i0{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ap extends i1{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class a_ extends i2{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aF extends i4{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ag extends i3{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ay extends i5{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class av extends i6{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ak extends i8{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aw extends i7{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aM extends i9{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aE extends ae{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aL extends at{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aD extends an{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aA extends ao{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}i$.isAxiosError;let aT=new class{get api(){return this._client}constructor(){this._axiosInstance=i$.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>oP().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new ai(e,this._axiosInstance)}};var aC=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ev=tE||(tE={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let aS="SUBSCRIBED:",ax="UNAUTHORIZED:",aY="TRIGGERED:",aO="EVENT:";class aB{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aR.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tE.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tE.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(tE.CONNECTING),this._connectingDeferred=new oI,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aR.MIN_RECONNECT_DELAY,this._onStatusChanged(tE.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tE.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new oI};return null!=this._pendingSubscription||this._status!==tE.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return aC(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tE.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tE.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return aC(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aB._subscriptionCounter++;if(!this._assetEventPromise){let e;sd.authenticated||(e={filterType:"asset",realm:sd.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===sd.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return aC(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aB._subscriptionCounter++;if(!this._attributeEventPromise){let e;sd.authenticated||(e={filterType:"asset",realm:sd.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===sd.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tE.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tE.CONNECTED&&this._onStatusChanged(tE.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tE.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<aR.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aR.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aB.MIN_RECONNECT_DELAY=0,aB.MAX_RECONNECT_DELAY=3e4,aB._subscriptionCounter=0;class aR extends aB{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+sd.config.realm;return this._connectDeferred=new oI,(sd.authenticated?sd.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(aS)){let e=JSON.parse(t.substring(aS.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(ax)){let e=JSON.parse(t.substring(ax.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(aY)){let e=JSON.parse(t.substring(aY.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aO)){let e=JSON.parse(t.substring(aO.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new oI,e.subscriptionId||(e.subscriptionId=aR._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aO+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new oI;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aO+JSON.stringify(e)),t.promise}}aR._subscriptionCounter=1;let aP=["__proto__","constructor","prototype"];function aN(e){return!("string"!=typeof e||0===e.length||e.length>128||aP.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aj(e){return!(!aN(e)||e.indexOf("/")>-1)}let aI={lng:aj,ns:function(e){return aN(e)}};function aH(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aU(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aW=/\{\{(.+?)\}\}/g;function az(e,t){let n=!1,o=e.replace(aW,(e,o)=>{let r=o.trim();if(aP.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aI[r]||aj,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let a$="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:a$&&"function"==typeof a$.fetch&&(t=a$.fetch);let aG=aU()&&a$?a$.XMLHttpRequest:void 0,aq="function"==typeof ActiveXObject&&a$?a$.ActiveXObject:void 0,aV=["__proto__","constructor","prototype"],aK=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aV.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aJ=(e,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let t=r(e,n);if(t instanceof Promise)return void t.then(i).catch(o)}"function"==typeof fetch?fetch(e,n).then(i).catch(o):t(e,n).then(i).catch(o)},aX=(e,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),t&&0!==n.indexOf("file:")){var i=n,a=o,s=r;e.queryStringParams&&(i=aK(i,e.queryStringParams));let t={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,c={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:d},l="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aJ(i,c,s,l)}catch(t){if(!d||0===Object.keys(d).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(d).forEach(e=>{delete c[e]}),aJ(i,c,s,l),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(aU()||"function"==typeof ActiveXObject){var d=n,c=o,l=r;c&&"object"==typeof c&&(c=aK("",c).slice(1)),e.queryStringParams&&(d=aK(d,e.queryStringParams));try{let t=aG?new aG:new aq("MSXML2.XMLHTTP.3.0");t.open(c?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,c&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=e.customHeaders;if(n="function"==typeof n?n():n)for(let e of Object.keys(n))aV.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&l(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(c)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var aQ=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aX,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=az(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aH).join(", ")+"] namespaces=["+n.map(aH).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=aH(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+aH(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let c=az(o,{lng:n,ns:t});if(null==c){a+=1,r&&a===e.length&&r(s,d);return}this.options.request(this.options,c,i,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof r&&r(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};aQ.type="backend";let aZ=e=>(...t)=>({_$litDirective$:e,values:t});class a0{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a1 extends a0{constructor(e){if(super(e),this.it=nu,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nu||null==e)return this._t=void 0,this.it=e;if(e===nm)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a1.directiveName="unsafeHTML",a1.resultType=1,aZ(a1);class a2 extends a1{}a2.directiveName="unsafeSVG",a2.resultType=2;let a4=aZ(a2),a3={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 a5=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class a6 extends CustomEvent{constructor(){super(a6.NAME,{bubbles:!0,composed:!0})}}a6.NAME="or-iconset-added";let a8=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new a6)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nl``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):nl``}},a7=class extends nS{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tP`
10
+ `;class nS extends nA{static finalizeStyles(e){return[nC,...super.finalizeStyles(e)]}}let nx=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nY={attribute:!0,type:String,converter:tJ,reflect:!1,hasChanged:tX};function nO(e){return(t,n)=>{let o;return"object"==typeof n?((e=nY,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}let nB=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nR(t){return(n,o)=>nB(n,o,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function nP(e){return(t,n)=>{let{slot:o,selector:r}=e??{},i="slot"+(o?`[name=${o}]`:":not([name])");return nB(t,n,{get(){let t=this.renderRoot?.querySelector(i),n=t?.assignedElements(e)??[];return void 0===r?n:n.filter(e=>e.matches(r))}})}}function*nN(e,t){if(void 0!==e){let n=0;for(let o of e)yield t(o,n++)}}n(4532),(f=eL||(eL={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",(b=eD||(eD={})).LOW="LOW",b.MEDIUM="MEDIUM",b.HIGH="HIGH",(h=eA||(eA={})).MANUAL="MANUAL",h.CLIENT="CLIENT",h.GLOBAL_RULESET="GLOBAL_RULESET",h.REALM_RULESET="REALM_RULESET",h.ASSET_RULESET="ASSET_RULESET",h.AGENT="AGENT",(p=eT||(eT={})).OPEN="OPEN",p.ACKNOWLEDGED="ACKNOWLEDGED",p.IN_PROGRESS="IN_PROGRESS",p.RESOLVED="RESOLVED",p.CLOSED="CLOSED",(_=eC||(eC={})).BOTTOM_LEFT="BOTTOM_LEFT",_.BOTTOM_RIGHT="BOTTOM_RIGHT",_.TOP_LEFT="TOP_LEFT",_.TOP_RIGHT="TOP_RIGHT",(F=eS||(eS={})).CREATE="CREATE",F.READ="READ",F.UPDATE="UPDATE",F.DELETE="DELETE",(g=ex||(ex={})).NONE="NONE",g.FORECAST="FORECAST",g.SETPOINT="SETPOINT",(y=eY||(eY={})).DISCONNECTED="DISCONNECTED",y.CONNECTING="CONNECTING",y.DISCONNECTING="DISCONNECTING",y.CONNECTED="CONNECTED",y.DISABLED="DISABLED",y.WAITING="WAITING",y.ERROR="ERROR",y.STOPPED="STOPPED",(v=eO||(eO={})).REQUEST_START="REQUEST_START",v.REQUEST_REPEATING="REQUEST_REPEATING",v.REQUEST_CANCEL="REQUEST_CANCEL",v.READY="READY",v.COMPLETED="COMPLETED",v.RUNNING="RUNNING",v.CANCELLED="CANCELLED",(k=eB||(eB={})).TOGGLE="TOGGLE",k.INCREMENT="INCREMENT",k.DECREMENT="DECREMENT",k.NEGATE="NEGATE",(w=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",w.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",w.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",w.INVALID_VALUE="INVALID_VALUE",w.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",w.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",w.CANNOT_PROCESS="CANNOT_PROCESS",w.QUEUE_FULL="QUEUE_FULL",w.UNKNOWN="UNKNOWN",w.ASSET_ID_MISSING="ASSET_ID_MISSING",w.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(M=eP||(eP={})).PUBLIC="PUBLIC",M.SHARED="SHARED",M.PRIVATE="PRIVATE",(E=eN||(eN={})).OFF="OFF",E.ONE_MIN="ONE_MIN",E.FIVE_MIN="FIVE_MIN",E.QUARTER="QUARTER",E.ONE_HOUR="ONE_HOUR",(L=ej||(ej={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",L.KEEP_LAYOUT="KEEP_LAYOUT",L.REDIRECT="REDIRECT",L.BLOCK_DEVICE="BLOCK_DEVICE",(D=eI||(eI={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(A=eH||(eH={})).MINUTE="MINUTE",A.HOUR="HOUR",A.DAY="DAY",A.WEEK="WEEK",A.MONTH="MONTH",A.YEAR="YEAR",(T=eU||(eU={})).MIN="MIN",T.AVG="AVG",T.MAX="MAX",T.DIFFERENCE="DIFFERENCE",T.COUNT="COUNT",T.SUM="SUM",T.MODE="MODE",T.MEDIAN="MEDIAN",(C=eW||(eW={})).TERMINATING="TERMINATING",C.DISABLED="DISABLED",C.ALREADY_CONNECTED="ALREADY_CONNECTED",C.UNRECOGNISED="UNRECOGNISED",C.PERMANENT_ERROR="PERMANENT_ERROR",C.SYNC_ERROR="SYNC_ERROR",(S=ez||(ez={})).HTTPS="HTTPS",S.HTTP="HTTP",S.TCP="TCP",(x=e$||(e$={})).GET="GET",x.POST="POST",x.PUT="PUT",x.DELETE="DELETE",x.OPTIONS="OPTIONS",x.PATCH="PATCH",(Y=eG||(eG={})).KEYCLOAK="KEYCLOAK",Y.NONE="NONE",(O=eq||(eq={})).WEBSOCKET="WEBSOCKET",O.POLLING="POLLING",(B=eV||(eV={})).INTERNAL="INTERNAL",B.CLIENT="CLIENT",B.GLOBAL_RULESET="GLOBAL_RULESET",B.REALM_RULESET="REALM_RULESET",B.ASSET_RULESET="ASSET_RULESET",(R=eK||(eK={})).REALM="REALM",R.USER="USER",R.ASSET="ASSET",R.CUSTOM="CUSTOM",(P=eJ||(eJ={})).NORMAL="NORMAL",P.HIGH="HIGH",(N=eX||(eX={})).DEVICE="DEVICE",N.TOPIC="TOPIC",N.CONDITION="CONDITION",(j=eQ||(eQ={})).ALWAYS="ALWAYS",j.ONCE="ONCE",j.HOURLY="HOURLY",j.DAILY="DAILY",j.WEEKLY="WEEKLY",j.MONTHLY="MONTHLY",j.ANNUALLY="ANNUALLY",(I=eZ||(eZ={})).TITLE="TITLE",I.SOURCE="SOURCE",I.STATUS="STATUS",I.SENT_ON="SENT_ON",I.DELIVERED_ON="DELIVERED_ON",(H=e0||(e0={})).MESSAGE_INVALID="MESSAGE_INVALID",H.CERTIFICATE_INVALID="CERTIFICATE_INVALID",H.UNAUTHORIZED="UNAUTHORIZED",H.FORBIDDEN="FORBIDDEN",H.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",H.CONFIG_DISABLED="CONFIG_DISABLED",H.USER_DISABLED="USER_DISABLED",H.SERVER_ERROR="SERVER_ERROR",H.ASSET_ERROR="ASSET_ERROR",H.SERVER_BUSY="SERVER_BUSY",(U=e1||(e1={})).PRIVATE="PRIVATE",U.PROTECTED="PROTECTED",U.PUBLIC="PUBLIC",(W=e2||(e2={})).EXACT="EXACT",W.BEGIN="BEGIN",W.END="END",W.CONTAINS="CONTAINS",(z=e4||(e4={})).EQUALS="EQUALS",z.GREATER_THAN="GREATER_THAN",z.GREATER_EQUALS="GREATER_EQUALS",z.LESS_THAN="LESS_THAN",z.LESS_EQUALS="LESS_EQUALS",z.BETWEEN="BETWEEN",($=e3||(e3={})).CREATED_ON="CREATED_ON",$.NAME="NAME",$.ASSET_TYPE="ASSET_TYPE",$.PARENT_ID="PARENT_ID",$.REALM="REALM",(G=e5||(e5={})).RESTRICTED="RESTRICTED",G.LINKED="LINKED",G.REALM="REALM",(q=e6||(e6={})).AT_LEAST_ONE="AT_LEAST_ONE",q.ALL="ALL",q.NONE="NONE",(V=e8||(e8={})).AND="AND",V.OR="OR",(K=e7||(e7={})).CREATED_ON="CREATED_ON",K.FIRST_NAME="FIRST_NAME",K.LAST_NAME="LAST_NAME",K.USERNAME="USERNAME",K.EMAIL="EMAIL",(J=e9||(e9={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(X=te||(te={})).JAVASCRIPT="JAVASCRIPT",X.GROOVY="GROOVY",X.JSON="JSON",X.FLOW="FLOW",(Q=tt||(tt={})).READY="READY",Q.DEPLOYED="DEPLOYED",Q.COMPILATION_ERROR="COMPILATION_ERROR",Q.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",Q.EXECUTION_ERROR="EXECUTION_ERROR",Q.LOOP_ERROR="LOOP_ERROR",Q.DISABLED="DISABLED",Q.PAUSED="PAUSED",Q.EXPIRED="EXPIRED",Q.REMOVED="REMOVED",Q.EMPTY="EMPTY",(Z=tn||(tn={})).SUNRISE="SUNRISE",Z.SUNSET="SUNSET",Z.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Z.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Z.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Z.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Z.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Z.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Z.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Z.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Z.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Z.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Z.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Z.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Z.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Z.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Z.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Z.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Z.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Z.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(ee=to||(to={})).NUMBER="NUMBER",ee.NUMBER_ARRAY="NUMBER_ARRAY",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.TRIGGER="TRIGGER",ee.COLOR="COLOR",ee.ANY="ANY",(et=tr||(tr={})).NEW_LINE="NEW_LINE",et.SPACER="SPACER",(en=ti||(ti={})).INPUT="INPUT",en.PROCESSOR="PROCESSOR",en.OUTPUT="OUTPUT",en.THEN="THEN",(eo=ta||(ta={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(er=ts||(ts={})).ADD="ADD",er.ADD_OR_REPLACE="ADD_OR_REPLACE",er.REPLACE="REPLACE",er.DELETE="DELETE",er.CLEAR="CLEAR",(ei=td||(td={})).PER_ASSET="PER_ASSET",ei.GLOBAL="GLOBAL",(ea=tc||(tc={})).READ_ADMIN="read:admin",ea.READ_LOGS="read:logs",ea.READ_USERS="read:users",ea.READ_MAP="read:map",ea.READ_ASSETS="read:assets",ea.READ_RULES="read:rules",ea.READ_INSIGHTS="read:insights",ea.READ_ALARMS="read:alarms",ea.READ_NOTIFICATIONS="read:notifications",ea.READ_SERVICES="read:services",ea.WRITE_SERVICES="write:services",ea.WRITE_USER="write:user",ea.WRITE_ADMIN="write:admin",ea.WRITE_LOGS="write:logs",ea.WRITE_ASSETS="write:assets",ea.WRITE_ATTRIBUTES="write:attributes",ea.WRITE_RULES="write:rules",ea.WRITE_INSIGHTS="write:insights",ea.WRITE_ALARMS="write:alarms",ea.WRITE_NOTIFICATIONS="write:notifications",ea.READ="read",ea.WRITE="write",(es=tl||(tl={})).REGISTER="REGISTER",es.UPDATE="UPDATE",es.DEREGISTER="DEREGISTER",(ed=tm||(tm={})).AVAILABLE="AVAILABLE",ed.UNAVAILABLE="UNAVAILABLE",(ec=tu||(tu={})).ASSET="ASSET",ec.AGENT="AGENT",ec.NOTIFICATION="NOTIFICATION",ec.ALARM="ALARM",ec.RULES="RULES",ec.PROTOCOL="PROTOCOL",ec.GATEWAY="GATEWAY",ec.MODEL_AND_VALUES="MODEL_AND_VALUES",ec.API="API",ec.DATA="DATA",(el=tf||(tf={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(em=tb||(tb={})).NUMERIC="numeric",em.DIGIT_2="2-digit",em.FULL="full",em.LONG="long",em.MEDIUM="medium",em.SHORT="short",em.NARROW="narrow",(eu=th||(th={})).SECONDLY="SECONDLY",eu.MINUTELY="MINUTELY",eu.HOURLY="HOURLY",eu.DAILY="DAILY",eu.WEEKLY="WEEKLY",eu.MONTHLY="MONTHLY",eu.YEARLY="YEARLY",(ef=tp||(tp={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.FORWARD="FORWARD",(eb=t_||(t_={})).JAPANESE="JAPANESE",eb.BUDDHIST="BUDDHIST",eb.ROC="ROC",eb.ISLAMIC="ISLAMIC",eb.ISO8601="ISO8601",eb.CHINESE="CHINESE",eb.ETHIOPIC="ETHIOPIC",eb.HEBREW="HEBREW",eb.GREGORIAN="GREGORIAN",(eh=tF||(tF={})).SU="SU",eh.MO="MO",eh.TU="TU",eh.WE="WE",eh.TH="TH",eh.FR="FR",eh.SA="SA",(ep=tg||(tg={})).PEOPLECOUNTERASSET="PeopleCounterAsset",ep.MAILAGENT="MailAgent",ep.UDPAGENT="UDPAgent",ep.ROOMASSET="RoomAsset",ep.CITYASSET="CityAsset",ep.VENTILATIONASSET="VentilationAsset",ep.TRADFRILIGHTASSET="TradfriLightAsset",ep.CONSOLEASSET="ConsoleAsset",ep.PRESENCESENSORASSET="PresenceSensorAsset",ep.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",ep.LIGHTASSET="LightAsset",ep.KNXAGENT="KNXAgent",ep.THETHINGSSTACKAGENT="TheThingsStackAgent",ep.PLUGASSET="PlugAsset",ep.CHIRPSTACKAGENT="ChirpStackAgent",ep.WEATHERASSET="WeatherAsset",ep.THINGASSET="ThingAsset",ep.WEBSOCKETAGENT="WebsocketAgent",ep.TCPAGENT="TCPAgent",ep.GATEWAYASSET="GatewayAsset",ep.SERIALAGENT="SerialAgent",ep.BLUETOOTHMESHAGENT="BluetoothMeshAgent",ep.PARKINGASSET="ParkingAsset",ep.TRADFRIPLUGASSET="TradfriPlugAsset",ep.SIMULATORAGENT="SimulatorAgent",ep.SNMPAGENT="SNMPAgent",ep.GROUPASSET="GroupAsset",ep.BUILDINGASSET="BuildingAsset",ep.MODBUSSERIALAGENT="ModbusSerialAgent",ep.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",ep.MQTTAGENT="MQTTAgent",ep.VELBUSTCPAGENT="VelbusTCPAgent",ep.ARTNETLIGHTASSET="ArtnetLightAsset",ep.VELBUSSERIALAGENT="VelbusSerialAgent",ep.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",ep.MICROPHONEASSET="MicrophoneAsset",ep.MODBUSTCPAGENT="ModbusTcpAgent",ep.ZWAVEAGENT="ZWaveAgent",ep.HTTPAGENT="HTTPAgent",ep.DOORASSET="DoorAsset",ep.THERMOSTATASSET="ThermostatAsset",ep.SHIPASSET="ShipAsset",(e_=ty||(ty={})).COLOURRGB="colourRGB",e_.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",e_.PRICEHOURLY="priceHourly",e_.MQTTPORT="MQTTPort",e_.PINGDISABLED="pingDisabled",e_.FLOW="flow",e_.CHILDASSETTYPE="childAssetType",e_.LASTACCESS="lastAccess",e_.POSITION="position",e_.NETWORKKEY="networkKey",e_.UNIVERSE="universe",e_.ROUTINGMODE="routingMode",e_.MSSINUMBER="MSSINumber",e_.LASTWILLRETAIN="lastWillRetain",e_.LASTWILLTOPIC="lastWillTopic",e_.SERIALBAUDRATE="serialBaudrate",e_.SUBSCRIBEQOS="subscribeQos",e_.LEDCOUNT="lEDCount",e_.LOCKED="locked",e_.CLOUDCOVERAGE="cloudCoverage",e_.BASEURL="baseURL",e_.PROTOCOL="protocol",e_.REQUIREDVALUES="requiredValues",e_.REGION="region",e_.CONSOLEPLATFORM="consolePlatform",e_.GATEWAYSTATUS="gatewayStatus",e_.NO2LEVEL="NO2Level",e_.ATMOSPHERICPRESSURE="atmosphericPressure",e_.SERIALPORT="serialPort",e_.APPLICATIONID="applicationId",e_.TAGS="tags",e_.UNLOCK="unlock",e_.CHECKINTERVALSECONDS="checkIntervalSeconds",e_.LOCATION="location",e_.CLIENTSECRET="clientSecret",e_.WINDDIRECTION="windDirection",e_.WINDSPEED="windSpeed",e_.PARTICLESPM10="particlesPM10",e_.APPLICATIONKEY="applicationKey",e_.LENGTH="length",e_.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",e_.USERNAMEPASSWORD="usernamePassword",e_.WATERLEVEL="waterLevel",e_.CONNECTHEADERS="connectHeaders",e_.CONSOLENAME="consoleName",e_.WEBSOCKETQUERY="websocketQuery",e_.PREFERHTML="preferHTML",e_.PARITY="parity",e_.COOLING="cooling",e_.POLLINGMILLIS="pollingMillis",e_.SOILTEMPERATURE="soilTemperature",e_.SUNIRRADIANCE="sunIrradiance",e_.MESSAGEMAXLENGTH="messageMaxLength",e_.WINDGUSTSPEED="windGustSpeed",e_.LIGHTID="lightId",e_.PROXYADDRESS="proxyAddress",e_.REQUESTQUERYPARAMETERS="requestQueryParameters",e_.MQTTHOST="MQTTHost",e_.SECUREGRPC="secureGRPC",e_.MODEL="model",e_.STREET="street",e_.MANUFACTURER="manufacturer",e_.DELETEPROCESSEDMAIL="deleteProcessedMail",e_.RESUMESESSION="resumeSession",e_.ONOFF="onOff",e_.APIKEY="ApiKey",e_.CITY="city",e_.PRESENCE="presence",e_.SPACESOCCUPIED="spacesOccupied",e_.STARTTLS="startTLS",e_.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",e_.WEBSOCKETPATH="websocketPath",e_.AGENTSTATUS="agentStatus",e_.PRICEDAILY="priceDaily",e_.COUNTGROWTHMINUTE="countGrowthMinute",e_.IMONUMBER="IMONumber",e_.ATTRIBUTION="Attribution",e_.TENANTID="tenantId",e_.REQUESTHEADERS="requestHeaders",e_.HOST="host",e_.COUNTOUTMINUTE="countOutMinute",e_.MESSAGECHARSET="messageCharset",e_.CERTIFICATEALIAS="certificateAlias",e_.EMAIL="email",e_.BINDPORT="bindPort",e_.CONSOLEVERSION="consoleVersion",e_.PARTICLESPM1="particlesPM1",e_.MTU="mtu",e_.SPEED="speed",e_.MESSAGESTRIPDELIMITER="messageStripDelimiter",e_.AREA="area",e_.COUNTRY="country",e_.SHIPTYPE="shipType",e_.CONNECTSUBSCRIPTIONS="connectSubscriptions",e_.RELATIVEHUMIDITY="relativeHumidity",e_.SOURCEADDRESS="sourceAddress",e_.RAINFALL="rainfall",e_.OAUTHGRANT="oAuthGrant",e_.OZONELEVEL="ozoneLevel",e_.SEQUENCENUMBER="sequenceNumber",e_.COUNTINMINUTE="countInMinute",e_.PORT="port",e_.SUNALTITUDE="sunAltitude",e_.COUNTOUT="countOut",e_.ROOMNUMBER="roomNumber",e_.TUNNELINGSUPPORTED="tunnelingSupported",e_.ENINUMBER="ENINumber",e_.PARTICLESPM2_5="particlesPM2_5",e_.AGENTDISABLED="agentDisabled",e_.DISABLED="disabled",e_.COUNTIN="countIn",e_.MESSAGESOURCEADDRESS="messageSourceAddress",e_.PROVISIONWEATHERASSET="ProvisionWeatherAsset",e_.TIMEINJECTIONINTERVAL="timeInjectionInterval",e_.TEMPERATURESETPOINT="temperatureSetpoint",e_.CONSOLEPROVIDERS="consoleProviders",e_.COUNTTOTAL="countTotal",e_.SPACESBUFFER="spacesBuffer",e_.DEVICECONFIG="deviceConfig",e_.SPACESTOTAL="spacesTotal",e_.BINDHOST="bindHost",e_.FANSPEED="fanSpeed",e_.MESSAGECONVERTBINARY="messageConvertBinary",e_.NOTES="notes",e_.MAILFOLDERNAME="mailFolderName",e_.MESSAGEDELIMITERS="messageDelimiters",e_.TEMPERATURE="temperature",e_.SUNZENITH="sunZenith",e_.SNMPVERSIONVALUE="SNMPVersionValue",e_.BRIGHTNESS="brightness",e_.POSTALCODE="postalCode",e_.SPACESOPEN="spacesOpen",e_.HUMIDITY="humidity",e_.SOUNDLEVEL="soundLevel",e_.SECUREMODE="secureMode",e_.DIRECTION="direction",e_.STOPBITS="stopbits",e_.UVINDEX="uVIndex",e_.CONNECTURL="connectURL",e_.CLIENTID="clientId",e_.NATMODE="NATMode",e_.UPDATEONWRITE="updateOnWrite",e_.LASTWILLPAYLOAD="lastWillPayload",e_.GROUPID="groupId",e_.FOLLOWREDIRECTS="followRedirects",e_.SUNAZIMUTH="sunAzimuth",e_.MESSAGECONVERTHEX="messageConvertHex",e_.WEBSOCKETMODE="websocketMode",e_.COLOURTEMPERATURE="colourTemperature",e_.PUBLISHQOS="publishQos",e_.DATABITS="dataBits",(eF=tv||(tv={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(eg=tk||(tk={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tw||(tw={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tM||(tM={});class nj{static getAssetDescriptors(){return nj._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nj.getValueDescriptor(t)),n=t.jsonType?t:nj.getValueDescriptor(t.type)),!n&&e&&(n=nj.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}function nI(e){return(nI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nH(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function nU(e){var t=function(e,t){if("object"!=nI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nI(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nI(t)?t:t+""}function nW(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nU(o.key),o)}}function nz(e,t,n){return t&&nW(e.prototype,t),n&&nW(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n$(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nG(e,t){return(nG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nq(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nG(e,t)}function nV(e,t){if(t&&("object"==nI(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return n$(e)}function nK(e){return(nK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nJ(e,t,n){return(t=nU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function nQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function nZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nQ(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}nj._assetTypeInfos=[],nj._metaItemDescriptors=[],nj._valueDescriptors=[];var n0={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},n1=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nH(this,e),this.init(t,n)}return nz(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||n0,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,nZ(nZ({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),n2=function(){function e(){nH(this,e),this.observers={}}return nz(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function n4(){var e,t,n=new Promise(function(n,o){e=n,t=o});return n.resolve=e,n.reject=t,n}function n3(e){return null==e?"":""+e}function n5(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:o(i.shift())}}function n6(e,t,n){var o=n5(e,t,Object);o.obj[o.k]=n}function n8(e,t){var n=n5(e,t),o=n.obj,r=n.k;if(o)return o[r]}function n7(e,t,n){var o=n8(e,n);return void 0!==o?o:n8(t,n)}function n9(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ot(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return oe[e]}):e}var on="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,oo=[" ",",","?","!",";"];function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oa=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return nH(this,o),t=n.call(this),on&&n2.call(n$(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return nz(o,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=n8(this.data,a);return s||!i||"string"!=typeof n?s:function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var r=n.split(o),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var s=2,d=r.slice(a,a+s).join(o),c=i[d];void 0===c&&r.length>a+s;)s++,c=i[d=r.slice(a,a+s).join(o)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(d)){if("string"==typeof c)return c;if(d&&"string"==typeof c[d])return c[d]}var l=r.slice(a+s).join(o);if(l)return e(c,l,o);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),n6(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);var s=n8(this.data,a)||{};o?function e(t,n,o){for(var r in n)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof n[r]||n[r]instanceof String?o&&(t[r]=n[r]):e(t[r],n[r],o):t[r]=n[r]);return t}(s,n,r):s=oi(oi({},s),n),n6(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?oi(oi({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),o}(n2),os={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))}),t}};function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?od(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ol={},om=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nH(this,o),i=n.call(this),on&&n2.call(n$(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=n$(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=n1.create("translator"),i}return nz(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var o=oo.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===o.length)return!0;var r=new RegExp("(".concat(o.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,n,o);if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:r};var d=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(d[0])>-1)&&(r=d.shift()),e=d.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==nI(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),d=s.key,c=s.namespaces,l=c[c.length-1],m=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&"cimode"===m.toLowerCase()){if(u){var f=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(l).concat(f).concat(d),b):"".concat(l).concat(f).concat(d)}return i?(b.res=d,b):d}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||d,_=b&&b.exactUsedKey||d,F=Object.prototype.toString.apply(h),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(F)&&("string"!=typeof g||"[object Array]"!==F)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,oc(oc({},t),{},{ns:c})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=k,b):k}if(a){var w="[object Array]"===F,M=w?[]:{},E=w?_:p;for(var L in h)if(Object.prototype.hasOwnProperty.call(h,L)){var D="".concat(E).concat(a).concat(L);M[L]=this.translate(D,oc(oc({},t),{joinArrays:!1,ns:c})),M[L]===D&&(M[L]=h[L])}h=M}}else if(y&&"string"==typeof g&&"[object Array]"===F)(h=h.join(g))&&(h=this.extendTranslation(h,e,t,n));else{var A=!1,T=!1,C=void 0!==t.count&&"string"!=typeof t.count,S=o.hasDefaultValue(t),x=C?this.pluralResolver.getSuffix(m,t.count,t):"",Y=t["defaultValue".concat(x)]||t.defaultValue;!this.isValidLookup(h)&&S&&(A=!0,h=Y),this.isValidLookup(h)||(T=!0,h=d);var O=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:h,B=S&&Y!==h&&this.options.updateMissing;if(T||A||B){if(this.logger.log(B?"updateKey":"missingKey",m,l,d,B?Y:h),a){var R=this.resolve(d,oc(oc({},t),{},{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var P=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var j=0;j<N.length;j++)P.push(N[j]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(t.lng||this.language):P.push(t.lng||this.language);var I=function(e,n,o){var i=S&&o!==h?o:O;r.options.missingKeyHandler?r.options.missingKeyHandler(e,l,n,i,B,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,l,n,i,B,t),r.emit("missingKey",e,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?P.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(n){I([e],d+n,t["defaultValue".concat(n)]||Y)})}):I(P,d,Y))}h=this.extendTranslation(h,e,t,b,n),T&&h===d&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(d)),(T||A)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(d):d,A?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,n,o,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,oc(oc({},this.options.interpolation.defaultVariables),n),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(oc(oc({},n),{interpolation:oc(oc({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var d=e.match(this.interpolator.nestingRegexp);a=d&&d.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=oc(oc({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,o=Array(e),a=0;a<e;a++)o[a]=arguments[a];return r&&r[0]===o[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):i.translate.apply(i,o.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var m=n.postProcess||this.options.postProcess,u="string"==typeof m?[m]:m;return null!=e&&u&&u.length&&!1!==n.applyPostProcessor&&(e=os.handle(u,e,t,this.options&&this.options.postProcessPassResolved?oc({i18nResolved:o},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var d=a.extractFromKey(e,s),c=d.key;n=c;var l=d.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var m=void 0!==s.count&&"string"!=typeof s.count,u=m&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,b=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach(function(e){a.isValidLookup(t)||(i=e,!ol["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(ol["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(function(n){if(!a.isValidLookup(t)){r=n;var i,d=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(d,c,n,e,s);else{m&&(l=a.pluralResolver.getSuffix(n,s.count,s));var l,b="".concat(a.options.pluralSeparator,"zero");if(m&&(d.push(c+l),u&&d.push(c+b)),f){var h="".concat(c).concat(a.options.contextSeparator).concat(s.context);d.push(h),m&&(d.push(h+l),u&&d.push(h+b))}}for(;i=d.pop();)a.isValidLookup(t)||(o=i,t=a.getResource(n,e,i,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(n2);function ou(e){return e.charAt(0).toUpperCase()+e.slice(1)}var of=function(){function e(t){nH(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n1.create("languageUtils")}return nz(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ou(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ou(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ou(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var o=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(o))&&(t=o)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(o))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),o.forEach(function(e){0>r.indexOf(e)&&i(n.formatLanguageCode(e))}),r}}]),e}(),ob=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],oh={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},op=["v1","v2","v3"],o_={zero:0,one:1,two:2,few:3,many:4,other:5},oF=function(){function e(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nH(this,e),this.languageUtils=t,this.options=o,this.logger=n1.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},ob.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:oh[e.fc]}})}),n)}return nz(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(e,t){return o_[e]-o_[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):o.numbers.map(function(o){return t.getSuffix(e,o,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(t)):this.getSuffixRetroCompatible(o,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,o=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!op.includes(this.options.compatibilityJSON)}}]),e}();function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ov=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nH(this,e),this.logger=n1.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return nz(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ot,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?n9(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?n9(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?n9(t.nestingPrefix):t.nestingPrefixEscaped||n9("$t("),this.nestingSuffix=t.nestingSuffix?n9(t.nestingSuffix):t.nestingSuffixEscaped||n9(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,s=this,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(0>e.indexOf(s.formatSeparator)){var r=n7(t,d,e);return s.alwaysFormat?s.format(r,void 0,n,oy(oy(oy({},o),t),{},{interpolationkey:e})):r}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(n7(t,d,a),c,n,oy(oy(oy({},o),t),{},{interpolationkey:a}))};this.resetRegExp();var m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,u=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(i=l(n)))if("function"==typeof m){var d=m(e,r,o);i="string"==typeof d?d:""}else if(o&&o.hasOwnProperty(n))i="";else if(u){i=r[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i="";else"string"==typeof i||s.useRawValueToEscape||(i=n3(i));var c=t.safeValue(i);if(e=e.replace(r[0],c),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,o,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=oy({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0];var i=(r=this.interpolate(r,a)).match(/'/g),s=r.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=oy(oy({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var d=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=l.shift(),d=l,c=!0}if((o=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=n3(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=d.reduce(function(e,t){return r.format(e,t,i.lng,oy(oy({},i),{},{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oM(e){var t={};return function(n,o,r){var i=o+JSON.stringify(r),a=t[i];return a||(a=e(o,r),t[i]=a),a(n)}}var oE=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nH(this,e),this.logger=n1.create("formatter"),this.options=t,this.formats={number:oM(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:oM(function(e,t){var n=new Intl.NumberFormat(e,ow(ow({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:oM(function(e,t){var n=new Intl.DateTimeFormat(e,ow({},t));return function(e){return n.format(e)}}),relativetime:oM(function(e,t){var n=new Intl.RelativeTimeFormat(e,ow({},t));return function(e){return n.format(e,t.range||"day")}}),list:oM(function(e,t){var n=new Intl.ListFormat(e,ow({},t));return function(e){return n.format(e)}})},this.init(t)}return nz(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=oM(t)}},{key:"format",value:function(e,t,n,o){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var o=e.split("(");t=o[0].toLowerCase().trim();var r=o[1].substring(0,o[1].length-1);"currency"===t&&0>r.indexOf(":")?n.currency||(n.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?n.range||(n.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,o=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return nX(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?nX(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=o[0],i=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}(t),a=i.formatName,s=i.formatOptions;if(r.formats[a]){var d=e;try{var c=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},l=c.locale||c.lng||o.locale||o.lng||n;d=r.formats[a](e,l,ow(ow(ow({},s),o),c))}catch(e){r.logger.warn(e)}return d}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function oL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oL(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oA=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return nH(this,o),i=n.call(this),on&&n2.call(n$(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=n1.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return nz(o,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i={},a={},s={},d={};return e.forEach(function(e){var o=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===a[s]&&(a[s]=!0):(r.state[s]=1,o=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===d[t]&&(d[t]=!0)))}),o||(s[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var o,s,d,c;o=n.loaded,(d=(s=n5(o,[r],Object)).obj)[c=s.k]=d[c]||[],d[c].push(i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,d){if(o.readingCalls--,o.waitingReads.length>0){var c=o.waitingReads.shift();o.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&d&&r<o.maxRetries?setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i):a(s,d)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,function(o,a){o&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(r," failed"),o),!o&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,o,a)})}},{key:"saveMissing",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,oD(oD({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),o}(n2);function oT(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function oC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oC(Object(n),!0).forEach(function(t){nJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ox(){}var oY=function(e){nq(o,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nK(o);return e=t?Reflect.construct(n,arguments,nK(this).constructor):n.apply(this,arguments),nV(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(nH(this,o),t=n.call(this),on&&n2.call(n$(t)),t.options=oT(r),t.services={},t.logger=n1,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=n$(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),nV(t,n$(t));setTimeout(function(){t.init(r,i)},0)}return t}return nz(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var o={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===nI(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===nI(e[2])||"object"===nI(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=oS(oS(oS({},o),this.options),oT(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=oS(oS({},o.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?n1.init(r(this.modules.logger),this.options):n1.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=oE);var i,a=new of(this.options);this.store=new oa(this.options.resources,this.options);var s=this.services;s.logger=n1,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new oF(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(s.formatter=r(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ov(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new oA(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new om(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=ox),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&"dev"!==d[0]&&(this.options.lng=d[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=n4(),l=function(){var t=function(t,o){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(o),n(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ox,o=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),o(e)})}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=n4();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ox),this.services.backendConnector.reload(e,t,function(e){o.resolve(),n(e)}),o}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&os.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=n4();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(e,i){i?(r(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,o.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var o="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);o&&(n.language||r(o),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,function(e){i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t,n){var o=this,r=function e(t,r){if("object"!==nI(r)){for(var i,a=arguments.length,s=Array(a>2?a-2:0),d=2;d<a;d++)s[d-2]=arguments[d];i=o.options.overloadTranslationOptionHandler([t,r].concat(s))}else i=oS({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var c=o.options.keySeparator||".",l=i.keyPrefix?"".concat(i.keyPrefix).concat(c).concat(t):t;return o.t(l,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===o||2===o};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=n4();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=n4();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter(function(e){return 0>o.indexOf(e)});return r.length?(this.options.preload=o.concat(r),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ox,r=oS(oS(oS({},this.options),t),{isClone:!0}),i=new o(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=oS({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new om(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.emit.apply(i,[e].concat(n))}),i.init(r,n),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(n2);nJ(oY,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new oY(e,t)});var oO=oY.createInstance();oO.createInstance=oY.createInstance,oO.createInstance,oO.init,oO.loadResources,oO.reloadResources,oO.use,oO.changeLanguage,oO.getFixedT,oO.t,oO.exists,oO.setDefaultNamespace,oO.hasLoadedNamespace,oO.loadNamespaces,oO.loadLanguages;let oB=oO;var oR=n(8183),oP=n.n(oR),oN=n(4867),oj=n.n(oN);n(3472);class oI{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function oH(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}class oU{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>oU._evalValuePredicate(e.name,t)))&&(!this.attributes||oU._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!oU._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?oU._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||oU._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>oU._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>oU._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>oU._collectNames(e))]}}oU._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var oW=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let oz=n(4461);class o${constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let l=o$._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=l.providers;for(let e of(l.providers={},c)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let f=sd.getAppName();f.length>0&&0>l.apps.indexOf(f)&&l.apps.push(f),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return oW(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 e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return oW(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return oW(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return oW(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return oW(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new oI,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>oW(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return oW(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield sd.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&o$._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return oW(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:oz.name,version:oz.version,platform:oz.os.toString(),apps:[],model:((oz.manufacturer?oz.manufacturer+" ":"")+(oz.product?oz.product:"")).trim()}}_initialiseProvider(e){return oW(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function oG(e,t){return function(){return e.apply(t,arguments)}}let{toString:oq}=Object.prototype,{getPrototypeOf:oV}=Object,{iterator:oK,toStringTag:oJ}=Symbol,oX=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oQ=(e,t)=>{let n=e,o=[];for(;null!=n&&n!==Object.prototype&&-1===o.indexOf(n);){if(o.push(n),oX(n,t))return!0;n=oV(n)}return!1},oZ=(i=Object.create(null),e=>{let t=oq.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),o0=e=>(e=e.toLowerCase(),t=>oZ(t)===e),o1=e=>t=>typeof t===e,{isArray:o2}=Array,o4=o1("undefined");function o3(e){return null!==e&&!o4(e)&&null!==e.constructor&&!o4(e.constructor)&&o8(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let o5=o0("ArrayBuffer"),o6=o1("string"),o8=o1("function"),o7=o1("number"),o9=e=>null!==e&&"object"==typeof e,re=e=>{if(!o9(e))return!1;let t=oV(e);return(null===t||t===Object.prototype||null===oV(t))&&!oQ(e,oJ)&&!oQ(e,oK)},rt=o0("Date"),rn=o0("File"),ro=o0("Blob"),rr=o0("FileList"),ri="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ra=void 0!==ri.FormData?ri.FormData:void 0,rs=o0("URLSearchParams"),[rd,rc,rl,rm]=["ReadableStream","Request","Response","Headers"].map(o0);function ru(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),o2(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(o3(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function rf(e,t){let n;if(o3(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let rb="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rh=e=>!o4(e)&&e!==rb,rp=(a="u">typeof Uint8Array&&oV(Uint8Array),e=>a&&e instanceof a),r_=o0("HTMLFormElement"),{propertyIsEnumerable:rF}=Object.prototype,rg=o0("RegExp"),ry=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};ru(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},rv=o0("AsyncFunction"),rk=(c="function"==typeof setImmediate,l=o8(rb.postMessage),c?setImmediate:l?(m=`axios@${Math.random()}`,u=[],rb.addEventListener("message",({source:e,data:t})=>{e===rb&&t===m&&u.length&&u.shift()()},!1),e=>{u.push(e),rb.postMessage(m,"*")}):e=>setTimeout(e)),rw="u">typeof queueMicrotask?queueMicrotask.bind(rb):"u">typeof process&&process.nextTick||rk,rM=e=>null!=e&&o8(e[oK]),rE={isArray:o2,isArrayBuffer:o5,isBuffer:o3,isFormData:e=>{if(!e)return!1;if(ra&&e instanceof ra)return!0;let t=oV(e);if(!t||t===Object.prototype||!o8(e.append))return!1;let n=oZ(e);return"formdata"===n||"object"===n&&o8(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&o5(e.buffer)},isString:o6,isNumber:o7,isBoolean:e=>!0===e||!1===e,isObject:o9,isPlainObject:re,isEmptyObject:e=>{if(!o9(e)||o3(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rd,isRequest:rc,isResponse:rl,isHeaders:rm,isUndefined:o4,isDate:rt,isFile:rn,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:ro,isRegExp:rg,isFunction:o8,isStream:e=>o9(e)&&o8(e.pipe),isURLSearchParams:rs,isTypedArray:rp,isFileList:rr,forEach:ru,merge:function e(...t){let{caseless:n,skipUndefined:o}=rh(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&rf(r,i)||i,s=oX(r,a)?r[a]:void 0;re(s)&&re(t)?r[a]=e(s,t):re(t)?r[a]=e({},t):o2(t)?r[a]=t.slice():o&&o4(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||o3(n)||(ru(n,i),"object"!=typeof n||o2(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];rF.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(ru(t,(t,o)=>{n&&o8(t)?Object.defineProperty(e,o,{__proto__:null,value:oG(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&oV(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oZ,kindOfTest:o0,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(o2(e))return e;let t=e.length;if(!o7(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[oK]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:r_,hasOwnProperty:oX,hasOwnProp:oX,hasOwnInPrototypeChain:oQ,getSafeProp:(e,t)=>null!=e&&oQ(e,t)?e[t]:void 0,reduceDescriptors:ry,freezeMethods:e=>{ry(e,(t,n)=>{if(o8(e)&&["arguments","caller","callee"].includes(n))return!1;if(o8(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(o2(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:rf,global:rb,isContextDefined:rh,isSpecCompliantForm:function(e){return!!(e&&o8(e.append)&&"FormData"===e[oJ]&&e[oK])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(o9(e)){if(t.has(e))return;if(o3(e))return e;if(!("toJSON"in e)){t.add(e);let o=o2(e)?[]:{};return ru(e,(e,t)=>{let r=n(e);o4(r)||(o[t]=r)}),t.delete(e),o}}return e};return n(e)},isAsyncFn:rv,isThenable:e=>e&&(o9(e)||o8(e))&&o8(e.then)&&o8(e.catch),setImmediate:rk,asap:rw,isIterable:rM,isSafeIterable:e=>null!=e&&oQ(e,oK)&&rM(e)},rL=rE.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"]),rD=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rA=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rT(e,t){return rE.isArray(e)?e.map(e=>rT(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function rC(e){let t=Object.create(null);return rE.forEach(e.toJSON(),(e,n)=>{t[n]=rT(e,rA)}),t}let rS=Symbol("internals");function rx(e){return e&&String(e).trim().toLowerCase()}function rY(e){return!1===e||null==e?e:rE.isArray(e)?e.map(rY):rT(String(e),rD)}function rO(e,t,n,o,r){if(rE.isFunction(o))return o.call(this,t,n);if(r&&(t=n),rE.isString(t)){if(rE.isString(o))return -1!==t.indexOf(o);if(rE.isRegExp(o))return o.test(t)}}class rB{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=rx(t);if(!r)return;let i=rE.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=rY(e))}let i=(e,t)=>rE.forEach(e,(e,n)=>r(e,n,t));if(rE.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(rE.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||s[n]&&rL[n]||("set-cookie"===n?s[n]?s[n].push(o):s[n]=[o]:s[n]=s[n]?s[n]+", "+o:o)}),s),t)}else if(rE.isObject(e)&&rE.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!rE.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rE.hasOwnProp(n,r)?(o=n[r],n[r]=rE.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=rx(e)){let n=rE.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(rE.isFunction(t))return t.call(this,e,n);if(rE.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rx(e)){let n=rE.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||rO(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=rx(e)){let r=rE.findKey(n,e);r&&(!t||rO(n,n[r],r,t))&&(delete n[r],o=!0)}}return rE.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||rO(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return rE.forEach(this,(o,r)=>{let i=rE.findKey(n,r);if(i){t[i]=rY(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=rY(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rE.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&rE.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[rS]=this[rS]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=rx(e);if(!t[o]){let r;r=rE.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return rE.isArray(e)?e.forEach(o):o(e),this}}rB.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rE.reduceDescriptors(rB.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),rE.freezeMethods(rB);class rR extends Error{static from(e,t,n,o,r,i){let a=new rR(e.message,t||e.code,n,o,r);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&rE.hasOwnProp(o,"redact")?o.redact:void 0,i=rE.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||rE.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rB&&(o=o.toJSON()),t.push(o),rE.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);rE.isUndefined(o)||(r[t]=o)});else{if(!rE.isPlainObject(o)&&function(e){if(rE.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rE.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?"[REDACTED ****]":n(i);rE.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):rE.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rR.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rR.ERR_BAD_OPTION="ERR_BAD_OPTION",rR.ECONNABORTED="ECONNABORTED",rR.ETIMEDOUT="ETIMEDOUT",rR.ECONNREFUSED="ECONNREFUSED",rR.ERR_NETWORK="ERR_NETWORK",rR.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rR.ERR_DEPRECATED="ERR_DEPRECATED",rR.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rR.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rR.ERR_CANCELED="ERR_CANCELED",rR.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rR.ERR_INVALID_URL="ERR_INVALID_URL",rR.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rP=rR;function rN(e){return rE.isPlainObject(e)||rE.isArray(e)}function rj(e){return rE.endsWith(e,"[]")?e.slice(0,-2):e}function rI(e,t,n){return e?e.concat(t).map(function(e,t){return e=rj(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let rH=rE.toFlatObject(rE,{},null,function(e){return/^is[A-Z]/.test(e)}),rU=function(e,t,n){if(!rE.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(n=rE.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rE.isUndefined(t[e])})).metaTokens,r=n.visitor||f,i=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,d=void 0===n.maxDepth?100:n.maxDepth,c=s&&rE.isSpecCompliantForm(t),l=[];if(!rE.isFunction(r))throw TypeError("visitor must be a function");function m(e){if(null===e)return"";if(rE.isDate(e))return e.toISOString();if(rE.isBoolean(e))return e.toString();if(!c&&rE.isBlob(e))throw new rP("Blob is not supported. Use a Buffer instead.");if(rE.isArrayBuffer(e)||rE.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rP("Blob is not supported. Use a Buffer instead.",rP.ERR_NOT_SUPPORT)}return e}function u(e){if(e>d)throw new rP("Object is too deeply nested ("+e+" levels). Max depth: "+d,rP.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,r){let s=e;if(rE.isReactNative(t)&&rE.isReactNativeBlob(e))return t.append(rI(r,n,i),m(e)),!1;if(e&&!r&&"object"==typeof e)if(rE.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(d===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!rE.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),u(1+t.length-1),n})}(e);else{var c;if(rE.isArray(e)&&(c=e,rE.isArray(c)&&!c.some(rN))||(rE.isFileList(e)||rE.endsWith(n,"[]"))&&(s=rE.toArray(e)))return n=rj(n),s.forEach(function(e,o){rE.isUndefined(e)||null===e||t.append(!0===a?rI([n],o,i):null===a?n:n+"[]",m(e))}),!1}return!!rN(e)||(t.append(rI(r,n,i),m(e)),!1)}let b=Object.assign(rH,{defaultVisitor:f,convertValue:m,isVisitable:rN});if(!rE.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!rE.isUndefined(n)){if(u(i),-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),rE.forEach(n,function(n,a){!0===(!(rE.isUndefined(n)||null===n)&&r.call(t,n,rE.isString(a)?a.trim():a,o,b))&&e(n,o?o.concat(a):[a],i+1)}),l.pop()}}(e),t};function rW(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rz(e,t){this._pairs=[],e&&rU(e,this,t)}let r$=rz.prototype;function rG(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rq(e,t,n){let o;if(!t)return e;e=e||"";let r=rE.isFunction(n)?{serialize:n}:n,i=rE.getSafeProp(r,"encode")||rG,a=rE.getSafeProp(r,"serialize");if(o=a?a(t,r):rE.isURLSearchParams(t)?t.toString():new rz(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}r$.append=function(e,t){this._pairs.push([e,t])},r$.toString=function(e){let t=e?t=>e.call(this,t,rW):rW;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rV=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rE.forEach(this.handlers,function(t){null!==t&&e(t)})}},rK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rJ="u">typeof URLSearchParams?URLSearchParams:rz,rX="u">typeof FormData?FormData:null,rQ="u">typeof Blob?Blob:null,rZ="u">typeof window&&"u">typeof document,r0="object"==typeof navigator&&navigator||void 0,r1=rZ&&(!r0||0>["ReactNative","NativeScript","NS"].indexOf(r0.product)),r2="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,r4=rZ&&window.location.href||"http://localhost",r3={...tC,isBrowser:!0,classes:{URLSearchParams:rJ,FormData:rX,Blob:rQ},protocols:["http","https","file","blob","url","data"]};function r5(e){if(e>100)throw new rP("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rP.ERR_FORM_DATA_DEPTH_EXCEEDED)}let r6=function(e){if(rE.isFormData(e)&&rE.isFunction(e.entries)){let t={};return rE.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){r5(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&rE.isArray(o)?o.length:i,s)?rE.hasOwnProp(o,i)?o[i]=rE.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(rE.hasOwnProp(o,i)&&rE.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&rE.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/\w+|\[(\w*)]/g;for(;null!==(t=o.exec(e));)r5(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},r8=(e,t)=>null!=e&&rE.hasOwnProp(e,t)?e[t]:void 0,r7={transitional:rK,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=rE.isObject(e);if(i&&rE.isHTMLForm(e)&&(e=new FormData(e)),rE.isFormData(e))return r?JSON.stringify(r6(e)):e;if(rE.isArrayBuffer(e)||rE.isBuffer(e)||rE.isStream(e)||rE.isFile(e)||rE.isBlob(e)||rE.isReadableStream(e))return e;if(rE.isArrayBufferView(e))return e.buffer;if(rE.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=r8(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rU(e,new r3.classes.URLSearchParams,{visitor:function(e,t,n,o){return r3.isNode&&rE.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=rE.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=r8(this,"env"),r=o&&o.FormData;return rU(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rE.isString(a))try{return(0,JSON.parse)(a),rE.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=r8(this,"transitional")||r7.transitional,n=t&&t.forcedJSONParsing,o=r8(this,"responseType"),r="json"===o;if(rE.isResponse(e)||rE.isReadableStream(e))return e;if(e&&rE.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,r8(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rP.from(e,rP.ERR_BAD_RESPONSE,this,null,r8(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r3.classes.FormData,Blob:r3.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function r9(e,t){let n=this||r7,o=t||n,r=rB.from(o.headers),i=o.data;return rE.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function ie(e){return!!(e&&e.__CANCEL__)}rE.forEach(["delete","get","head","post","put","patch","query"],e=>{r7.headers[e]={}});let it=class extends rP{constructor(e,t,n){super(null==e?"canceled":e,rP.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function io(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rP("Request failed with status code "+n.status,n.status>=400&&n.status<500?rP.ERR_BAD_REQUEST:rP.ERR_BAD_RESPONSE,n.config,n.request,n))}let ir=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),c=r[a];n||(n=d),o[i]=s,r[i]=d;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=c&&d-c;return u?Math.round(1e3*m/u):void 0}},ii=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n)]},ia=(e,t,n=3)=>{let o=0,r=ir(50,250);return ii(n=>{if(!n||"number"!=typeof n.loaded)return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,d=Math.max(0,s-o),c=r(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},is=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},id=e=>(...t)=>rE.asap(()=>e(...t)),ic=r3.hasStandardBrowserEnv?(s=new URL(r3.origin),d=r3.navigator&&/(msie|trident)/i.test(r3.navigator.userAgent),e=>(e=new URL(e,r3.origin),s.protocol===e.protocol&&s.host===e.host&&(d||s.port===e.port))):()=>!0,il=r3.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];rE.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),rE.isString(o)&&s.push(`path=${o}`),rE.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),rE.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},im=/^https?:(?!\/\/)/i,iu=/[\t\n\r]/g;function ib(e,t){if("string"==typeof e&&im.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(iu,"")))throw new rP('Invalid URL: missing "//" after protocol',rP.ERR_INVALID_URL,t)}function ih(e,t,n,o){ib(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===n)?(ib(e,o),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let ip=e=>e instanceof rB?{...e}:e;function i_(e,t){e=e||{},t=t||{};let n=Object.create(null);function o(e,t,n,o){return rE.isPlainObject(e)&&rE.isPlainObject(t)?rE.merge.call({caseless:o},e,t):rE.isPlainObject(t)?rE.merge({},t):rE.isArray(t)?t.slice():t}function r(e,t,n,r){return rE.isUndefined(t)?rE.isUndefined(e)?void 0:o(void 0,e,n,r):o(e,t,n,r)}function i(e,t){if(!rE.isUndefined(t))return o(void 0,t)}function a(e,t){return rE.isUndefined(t)?rE.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,i){return rE.hasOwnProp(t,i)?o(n,r):rE.hasOwnProp(e,i)?o(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>r(ip(e),ip(t),n,!0)};return rE.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;let i=rE.hasOwnProp(d,o)?d[o]:r,a=i(rE.hasOwnProp(e,o)?e[o]:void 0,rE.hasOwnProp(t,o)?t[o]:void 0,o);rE.isUndefined(a)&&i!==s||(n[o]=a)}),rE.hasOwnProp(t,"validateStatus")&&rE.isUndefined(t.validateStatus)&&!1===function(n){let o=rE.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rE.isUndefined(o)){if(!rE.isPlainObject(o))return;else if(rE.hasOwnProp(o,n))return o[n]}let r=rE.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rE.isPlainObject(r)&&rE.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(rE.hasOwnProp(e,"validateStatus")?n.validateStatus=o(void 0,e.validateStatus):delete n.validateStatus),n}let iF=["content-type","content-length"],ig=function(e){let t=i_({},e),n=e=>rE.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rB.from(s),t.url=rq(ih(c,m,l,t),n("params"),n("paramsSerializer")),d){let t=rE.getSafeProp(d,"username")||"",n=rE.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rP.from(t,rP.ERR_BAD_OPTION_VALUE,e)}}if(rE.isFormData(o))if(r3.hasStandardBrowserEnv||r3.hasStandardBrowserWebWorkerEnv||rE.isReactNative(o))s.setContentType(void 0);else{var u,f;rE.isFunction(o.getHeaders)&&(u=s,f=o.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{iF.includes(e.toLowerCase())&&u.set(e,t)}))}if(r3.hasStandardBrowserEnv&&(rE.isFunction(r)&&(r=r(t)),!0===r||null==r&&ic(t.url))){let e=i&&a&&il.read(a);e&&s.set(i,e)}return t},iy="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var o;let r,i,a,s,d,c,l=ig(e),m=l.data,u=rB.from(l.headers).normalize(),{responseType:f,onUploadProgress:b,onDownloadProgress:h}=l;function p(){s&&s(),d&&d(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let _=new XMLHttpRequest;function F(){if(!_)return;let o=rB.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());io(function(e){t(e),p()},function(e){n(e),p()},{data:f&&"text"!==f&&"json"!==f?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:o,config:e,request:_}),_=null}_.open(l.method.toUpperCase(),l.url,!0),_.timeout=l.timeout,"onloadend"in _?_.onloadend=F:_.onreadystatechange=function(){!_||4!==_.readyState||(0!==_.status||_.responseURL&&_.responseURL.startsWith("file:"))&&setTimeout(F)},_.onabort=function(){_&&(n(new rP("Request aborted",rP.ECONNABORTED,e,_)),p(),_=null)},_.onerror=function(t){let o=new rP(t&&t.message?t.message:"Network Error",rP.ERR_NETWORK,e,_);o.event=t||null,n(o),p(),_=null},_.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||rK;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new rP(t,o.clarifyTimeoutError?rP.ETIMEDOUT:rP.ECONNABORTED,e,_)),p(),_=null},void 0===m&&u.setContentType(null),"setRequestHeader"in _&&rE.forEach(rC(u),function(e,t){_.setRequestHeader(t,e)}),rE.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),f&&"json"!==f&&(_.responseType=l.responseType),h&&([a,d]=ia(h,!0),_.addEventListener("progress",a)),b&&_.upload&&([i,s]=ia(b),_.upload.addEventListener("progress",i),_.upload.addEventListener("loadend",s)),(l.cancelToken||l.signal)&&(r=t=>{_&&(n(!t||t.type?new it(null,e,_):t),_.abort(),p(),_=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let g=(o=l.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(o))&&c[1]||"");if(g&&!r3.protocols.includes(g)){n(new rP("Unsupported protocol "+g+":",rP.ERR_BAD_REQUEST,e)),p();return}_.send(m||null)})},iv=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ik=async function*(e,t){for await(let n of iw(e))yield*iv(n,t)},iw=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},iM=(e,t,n,o)=>{let r,i=ik(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},iE=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iL=(e,t,n)=>t+2<n&&iE(e.charCodeAt(t+1))&&iE(e.charCodeAt(t+2)),{isFunction:iD}=rE,iA=e=>{if(!rE.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iT=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iC=e=>{let t,n=void 0!==rE.global&&null!==rE.global?rE.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=rE.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=i?iD(i):"function"==typeof fetch,c=iD(a),l=iD(s);if(!d)return!1;let m=d&&iD(o),u=d&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&m&&iT(()=>{let e=!1,t=new a(r3.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&iT(()=>rE.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rP(`Response type '${e}' is not supported`,rP.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(rE.isBlob(e))return e.size;if(rE.isSpecCompliantForm(e)){let t=new a(r3.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rE.isArrayBufferView(e)||rE.isArrayBuffer(e)?e.byteLength:(rE.isURLSearchParams(e)&&(e+=""),rE.isString(e))?(await u(e)).byteLength:void 0},_=async(e,t)=>{let n=rE.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:l,cancelToken:u,timeout:F,onDownloadProgress:g,onUploadProgress:y,responseType:v,headers:k,withCredentials:w="same-origin",fetchOptions:M,maxContentLength:E,maxBodyLength:L}=ig(e),D=rE.isNumber(E)&&E>-1,A=rE.isNumber(L)&&L>-1,T=i||fetch;v=v?(v+"").toLowerCase():"text";let C=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rP?t:new it(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rP(`timeout of ${t}ms exceeded`,rP.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>rE.asap(a),s})([l,u&&u.toAbortSignal()],F),S=null,x=C&&C.unsubscribe&&(()=>{C.unsubscribe()}),Y=null,O=()=>new rP("Request body larger than maxBodyLength limit",rP.ERR_BAD_REQUEST,e,S);try{var B;let i,l,u,F,R=(l="auth",rE.hasOwnProp(e,l)?e[l]:void 0);if(R){let e=rE.getSafeProp(R,"username")||"",t=rE.getSafeProp(R,"password")||"";i={username:e,password:t}}if(u=(B=n).indexOf("://"),F=B,-1!==u&&(F=F.slice(u+3)),F.includes("@")||F.includes(":")){let e=new URL(n,r3.origin);if(!i&&(e.username||e.password)){let t=iA(e.username),n=iA(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;k.delete("authorization"),k.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(D&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length,t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){let t=o.charCodeAt(n+1),r=o.charCodeAt(n+2);iE(t)&&iE(r)&&(e-=2,n+=2)}let n=0,r=t-1,i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));r>=0&&(61===o.charCodeAt(r)?(n++,r--):i(r)&&(n++,r-=3)),1===n&&r>=0&&(61===o.charCodeAt(r)?n++:i(r)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&iL(o,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=o.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(n)>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S);if(A&&"get"!==o&&"head"!==o){let e=await p(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>L))throw O()}let P=A&&(rE.isReadableStream(d)||rE.isStream(d)),N=(e,t,n)=>iM(e,65536,e=>{if(A&&e>L)throw Y=O();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(y||P)){if(t=null==t?await _(k,d):t,0!==t||P){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(rE.isFormData(d)&&(e=o.headers.get("content-type"))&&k.setContentType(e),o.body){let[e,n]=y&&is(t,ia(id(y)))||[];d=N(o.body,e,n)}}}else if(P&&!c&&m&&"get"!==o&&"head"!==o)d=N(d);else if(P&&c&&!f&&"get"!==o&&"head"!==o)throw new rP("Stream request bodies are not supported by the current fetch implementation",rP.ERR_NOT_SUPPORT,e,S);rE.isString(w)||(w=w?"include":"omit");let j=c&&"credentials"in a.prototype;if(rE.isFormData(d)){let e=k.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&k.delete("content-type")}k.set("User-Agent","axios/1.18.1",!1);let I={...M,signal:C,method:o.toUpperCase(),headers:rC(k.normalize()),body:d,duplex:"half",credentials:j?w:void 0};S=c&&new a(n,I);let H=await (c?T(S,M):T(n,I)),U=rB.from(H.headers);if(D){let t=rE.toFiniteNumber(U.getContentLength());if(null!=t&&t>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S)}let W=b&&("stream"===v||"response"===v);if(b&&H.body&&(g||D||W&&x)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=H[e]});let n=rE.toFiniteNumber(U.getContentLength()),[o,r]=g&&is(n,ia(id(g),!0))||[];H=new s(iM(H.body,65536,t=>{if(D&&t>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S);o&&o(t)},()=>{r&&r(),x&&x()}),t)}v=v||"text";let z=await h[rE.findKey(h,v)||"text"](H,e);if(D&&!b&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof r?new r().encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new rP("maxContentLength size of "+E+" exceeded",rP.ERR_BAD_RESPONSE,e,S)}return!W&&x&&x(),await new Promise((t,n)=>{io(t,n,{data:z,headers:rB.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:S})})}catch(t){if(x&&x(),C&&C.aborted&&C.reason instanceof rP){let n=C.reason;throw n.config=e,S&&(n.request=S),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(Y)throw S&&!Y.request&&(Y.request=S),Y;if(t instanceof rP)throw S&&!t.request&&(t.request=S),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rP("Network Error",rP.ERR_NETWORK,e,S,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rP.from(t,t&&t.code,e,S,t&&t.response)}}},iS=new Map,ix=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,d,c=iS;for(;a--;)s=i[a],void 0===(d=c.get(s))&&c.set(s,d=a?new Map:iC(t)),c=d;return d};ix();let iY={http:null,xhr:iy,fetch:{get:ix}};rE.forEach(iY,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iO=e=>`- ${e}`,iB=e=>rE.isFunction(e)||null===e||!1===e,iR=function(e,t){let n,o,{length:r}=e=rE.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!iB(n)&&void 0===(o=iY[(r=String(n)).toLowerCase()]))throw new rP(`Unknown adapter '${r}'`);if(o&&(rE.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rP("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iO).join("\n"):" "+iO(e[0]):"as no adapter specified"),rP.ERR_NOT_SUPPORT)}return o};function iP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function iN(e){return iP(e),e.headers=rB.from(e.headers),e.data=r9.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iR(e.adapter||r7.adapter,e)(e).then(function(t){iP(e),e.response=t;try{t.data=r9.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rB.from(t.headers),t},function(t){if(!ie(t)&&(iP(e),t&&t.response)){e.response=t.response;try{t.response.data=r9.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rB.from(t.response.headers)}return Promise.reject(t)})}let ij={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ij[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iI={};ij.transitional=function(e,t,n){function o(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rP(o(r," has been removed"+(t?" in "+t:"")),rP.ERR_DEPRECATED);return t&&!iI[r]&&(iI[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},ij.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let iH=function(e,t,n){if("object"!=typeof e||null===e)throw new rP("options must be an object",rP.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rP("option "+i+" must be "+n,rP.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rP("Unknown option "+i,rP.ERR_BAD_OPTION)}};class iU{constructor(e){this.defaults=e||{},this.interceptors={request:new rV,response:new rV}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),o=-1===t?-1:n.indexOf("\n",t+1),r=-1===o?"":n.slice(o+1);String(e.stack).endsWith(r)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=i_(this.defaults,t);void 0!==r&&iH(r,{silentJSONParsing:ij.transitional(ij.boolean),forcedJSONParsing:ij.transitional(ij.boolean),clarifyTimeoutError:ij.transitional(ij.boolean),legacyInterceptorReqResOrdering:ij.transitional(ij.boolean),advertiseZstdAcceptEncoding:ij.transitional(ij.boolean),validateStatusUndefinedResolves:ij.transitional(ij.boolean)},!1),null!=i&&(rE.isFunction(i)?t.paramsSerializer={serialize:i}:iH(i,{encode:ij.function,serialize:ij.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iH(t,{baseUrl:ij.spelling("baseURL"),withXsrfToken:ij.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&rE.merge(a.common,a[t.method]);a&&rE.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=rB.concat(s,a);let d=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||rK;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!c){let e=[iN.bind(this),void 0];for(e.unshift(...d),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e(u)}catch(e){t.call(this,e);break}}try{n=iN.call(this,u)}catch(e){return Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rq(ih((e=i_(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rE.forEach(["delete","get","head","options"],function(e){iU.prototype[e]=function(t,n){return this.request(i_(n||{},{method:e,url:t,data:n&&rE.hasOwnProp(n,"data")?n.data:void 0}))}}),rE.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(i_(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iU.prototype[e]=t(),"query"!==e&&(iU.prototype[e+"Form"]=t(!0))});class iW{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new it(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new iW(function(t){e=t}),cancel:e}}}let iz={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(iz).forEach(([e,t])=>{iz[t]=e});let i$=function e(t){let n=new iU(t),o=oG(iU.prototype.request,n);return rE.extend(o,iU.prototype,n,{allOwnKeys:!0}),rE.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(i_(t,n))},o}(r7);i$.Axios=iU,i$.CanceledError=it,i$.CancelToken=iW,i$.isCancel=ie,i$.VERSION="1.18.1",i$.toFormData=rU,i$.AxiosError=rP,i$.Cancel=i$.CanceledError,i$.all=function(e){return Promise.all(e)},i$.spread=function(e){return function(t){return e.apply(null,t)}},i$.isAxiosError=function(e){return rE.isObject(e)&&!0===e.isAxiosError},i$.mergeConfig=i_,i$.AxiosHeaders=rB,i$.formToJSON=e=>r6(rE.isHTMLForm(e)?new FormData(e):e),i$.getAdapter=iR,i$.HttpStatusCode=iz,i$.default=i$;class iG{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ar`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:ar`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:ar`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ar`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:ar`dashboard/${e}/${t}`,options:n})}}class iq{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:ar`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:ar`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:ar`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:ar`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ar`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:ar`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:ar`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ar`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:ar`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:ar`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:ar`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:ar`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ar`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:ar`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:ar`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:ar`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`rules/${e}`,data:t,options:n})}}class iV{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:ar`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:ar`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:ar`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:ar`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:ar`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class iK{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:ar`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`asset/predicted/${e}/${t}`,data:n,options:o})}}class iJ{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:ar`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:ar`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:ar`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:ar`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:ar`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:ar`service/${e}/${t}`,options:n})}}class iX{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:ar`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:ar`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:ar`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:ar`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:ar`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:ar`model/valueDescriptors`,queryParams:e,options:t})}}class iQ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ar`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:ar`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:ar`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ar`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:ar`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:ar`realm/${e}`,data:t,options:n})}}class iZ{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:ar`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:ar`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:ar`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:ar`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:ar`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:ar`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:ar`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:ar`alarm/${e}/assets`,queryParams:t,options:n})}}class i0{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:ar`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:ar`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:ar`flow/${e}`,options:t})}}class i1{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:ar`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:ar`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:ar`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:ar`provisioning/${e}`,data:t,options:n})}}class i2{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:ar`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:ar`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:ar`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:ar`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:ar`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:ar`map/upload`,queryParams:e,options:t})}}class i4{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:ar`console/register`,data:e,options:t})}}class i3{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:ar`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:ar`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:ar`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:ar`syslog/event`,queryParams:e,options:t})}}class i5{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:ar`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:ar`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:ar`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:ar`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:ar`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:ar`gateway/status/${e}`,options:t})}}class i6{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:ar`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:ar`info`,options:e})}}class i8{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:ar`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:ar`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:ar`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:ar`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:ar`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:ar`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:ar`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:ar`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:ar`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:ar`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:ar`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:ar`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:ar`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:ar`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:ar`user/${e}/${t}`,options:n})}}class i7{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:ar`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:ar`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:ar`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:ar`configuration/manager/image/${e}`,options:t})}}class i9{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:ar`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:ar`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:ar`asset/datapoint/${e}/${t}`,data:n,options:o})}}class ae{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:ar`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:ar`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:ar`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class at{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:ar`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:ar`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:ar`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:ar`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:ar`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:ar`notification/${e}/delivered`,queryParams:t,options:n})}}class an{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:ar`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:ar`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:ar`apps/info`,options:e})}}class ao{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:ar`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:ar`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:ar`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:ar`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:ar`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:ar`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:ar`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:ar`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:ar`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:ar`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ar`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:ar`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:ar`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:ar`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:ar`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:ar`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:ar`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:ar`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:ar`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:ar`asset/${e}/child`,queryParams:t,options:n})}}function ar(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class ai{constructor(e,t=i$.create()){this._dashboardResource=new as(e,t),this._rulesResource=new ad(e,t),this._gatewayServiceResource=new ac(e,t),this._assetPredictedDatapointResource=new al(e,t),this._externalServiceResource=new am(e,t),this._assetModelResource=new au(e,t),this._realmResource=new af(e,t),this._alarmResource=new ab(e,t),this._flowResource=new ah(e,t),this._provisioningResource=new ap(e,t),this._mapResource=new a_(e,t),this._consoleResource=new aF(e,t),this._syslogResource=new ag(e,t),this._gatewayClientResource=new ay(e,t),this._statusResource=new av(e,t),this._userResource=new ak(e,t),this._configurationResource=new aw(e,t),this._assetDatapointResource=new aM(e,t),this._agentResource=new aE(e,t),this._notificationResource=new aL(e,t),this._appResource=new aD(e,t),this._assetResource=new aA(e,t),this._assetResource=new aA(e,t)}get DashboardResource(){return this._dashboardResource}get RulesResource(){return this._rulesResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ExternalServiceResource(){return this._externalServiceResource}get AssetModelResource(){return this._assetModelResource}get RealmResource(){return this._realmResource}get AlarmResource(){return this._alarmResource}get FlowResource(){return this._flowResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get ConsoleResource(){return this._consoleResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get AgentResource(){return this._agentResource}get NotificationResource(){return this._notificationResource}get AppResource(){return this._appResource}get AssetResource(){return this._assetResource}}class aa{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class as extends iG{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ad extends iq{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ac extends iV{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class al extends iK{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class am extends iJ{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class au extends iX{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class af extends iQ{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ab extends iZ{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ah extends i0{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ap extends i1{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class a_ extends i2{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aF extends i4{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ag extends i3{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ay extends i5{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class av extends i6{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class ak extends i8{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aw extends i7{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aM extends i9{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aE extends ae{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aL extends at{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aD extends an{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}class aA extends ao{constructor(e,t=i$.create()){t.defaults.baseURL=e,super(new aa(t))}}i$.isAxiosError;let aT=new class{get api(){return this._client}constructor(){this._axiosInstance=i$.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>oP().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new ai(e,this._axiosInstance)}};var aC=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ev=tE||(tE={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let aS="SUBSCRIBED:",ax="UNAUTHORIZED:",aY="TRIGGERED:",aO="EVENT:";class aB{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aR.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tE.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tE.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(tE.CONNECTING),this._connectingDeferred=new oI,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aR.MIN_RECONNECT_DELAY,this._onStatusChanged(tE.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tE.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new oI};return null!=this._pendingSubscription||this._status!==tE.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return aC(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tE.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tE.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return aC(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aB._subscriptionCounter++;if(!this._assetEventPromise){let e;sd.authenticated||(e={filterType:"asset",realm:sd.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===sd.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return aC(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aB._subscriptionCounter++;if(!this._attributeEventPromise){let e;sd.authenticated||(e={filterType:"asset",realm:sd.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===sd.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tE.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tE.CONNECTED&&this._onStatusChanged(tE.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tE.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<aR.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aR.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aB.MIN_RECONNECT_DELAY=0,aB.MAX_RECONNECT_DELAY=3e4,aB._subscriptionCounter=0;class aR extends aB{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+sd.config.realm;return this._connectDeferred=new oI,(sd.authenticated?sd.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(aS)){let e=JSON.parse(t.substring(aS.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(ax)){let e=JSON.parse(t.substring(ax.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(aY)){let e=JSON.parse(t.substring(aY.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aO)){let e=JSON.parse(t.substring(aO.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new oI,e.subscriptionId||(e.subscriptionId=aR._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aO+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new oI;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aO+JSON.stringify(e)),t.promise}}aR._subscriptionCounter=1;let aP=["__proto__","constructor","prototype"];function aN(e){return!("string"!=typeof e||0===e.length||e.length>128||aP.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aj(e){return!(!aN(e)||e.indexOf("/")>-1)}let aI={lng:aj,ns:function(e){return aN(e)}};function aH(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aU(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aW=/\{\{(.+?)\}\}/g;function az(e,t){let n=!1,o=e.replace(aW,(e,o)=>{let r=o.trim();if(aP.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aI[r]||aj,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let a$="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:a$&&"function"==typeof a$.fetch&&(t=a$.fetch);let aG=aU()&&a$?a$.XMLHttpRequest:void 0,aq="function"==typeof ActiveXObject&&a$?a$.ActiveXObject:void 0,aV=["__proto__","constructor","prototype"],aK=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aV.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aJ=(e,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let t=r(e,n);if(t instanceof Promise)return void t.then(i).catch(o)}"function"==typeof fetch?fetch(e,n).then(i).catch(o):t(e,n).then(i).catch(o)},aX=(e,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),t&&0!==n.indexOf("file:")){var i=n,a=o,s=r;e.queryStringParams&&(i=aK(i,e.queryStringParams));let t={..."function"==typeof e.customHeaders?e.customHeaders():e.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(t["Content-Type"]="application/json");let d="function"==typeof e.requestOptions?e.requestOptions(a):e.requestOptions,c={method:a?"POST":"GET",body:a?e.stringify(a):void 0,headers:t,...e._omitFetchOptions?{}:d},l="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aJ(i,c,s,l)}catch(t){if(!d||0===Object.keys(d).length||!t.message||0>t.message.indexOf("not implemented"))return s(t);try{Object.keys(d).forEach(e=>{delete c[e]}),aJ(i,c,s,l),e._omitFetchOptions=!0}catch(e){s(e)}}return}if(aU()||"function"==typeof ActiveXObject){var d=n,c=o,l=r;c&&"object"==typeof c&&(c=aK("",c).slice(1)),e.queryStringParams&&(d=aK(d,e.queryStringParams));try{let t=aG?new aG:new aq("MSXML2.XMLHTTP.3.0");t.open(c?"POST":"GET",d,1),e.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!e.withCredentials,c&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=e.customHeaders;if(n="function"==typeof n?n():n)for(let e of Object.keys(n))aV.indexOf(e)>-1||t.setRequestHeader(e,n[e]);t.onreadystatechange=()=>{t.readyState>3&&l(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(c)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var aQ=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aX,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=az(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aH).join(", ")+"] namespaces=["+n.map(aH).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=aH(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+aH(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let c=az(o,{lng:n,ns:t});if(null==c){a+=1,r&&a===e.length&&r(s,d);return}this.options.request(this.options,c,i,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof r&&r(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};aQ.type="backend";let aZ=e=>(...t)=>({_$litDirective$:e,values:t});class a0{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a1 extends a0{constructor(e){if(super(e),this.it=nu,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nu||null==e)return this._t=void 0,this.it=e;if(e===nm)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}a1.directiveName="unsafeHTML",a1.resultType=1,aZ(a1);class a2 extends a1{}a2.directiveName="unsafeSVG",a2.resultType=2;let a4=aZ(a2),a3={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 a5=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class a6 extends CustomEvent{constructor(){super(a6.NAME,{bubbles:!0,composed:!0})}}a6.NAME="or-iconset-added";let a8=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new a6)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nl``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):nl``}},a7=class extends nS{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tP`
11
11
  :host {
12
12
  --internal-or-icon-width: var(--or-icon-width, 24px);
13
13
  --internal-or-icon-height: var(--or-icon-height, 24px);