(function (_, dev_icerock_moko_resources_internal_messageFormat_MessageFormat_rhgpjd, $module$bcp_47_7qe1cl, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat) {
  'use strict';
  //region block: imports
  var imul = Math.imul;
  var parse = $module$bcp_47_7qe1cl.parse;
  var asList = kotlin_kotlin.$_$.p7;
  var CoroutineImpl = kotlin_kotlin.$_$.md;
  var Unit_getInstance = kotlin_kotlin.$_$.g6;
  var protoOf = kotlin_kotlin.$_$.tf;
  var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.xc;
  var classMeta = kotlin_kotlin.$_$.ee;
  var setMetadataFor = kotlin_kotlin.$_$.uf;
  var VOID = kotlin_kotlin.$_$.g;
  var SuspendFunction0 = kotlin_kotlin.$_$.nd;
  var THROW_CCE = kotlin_kotlin.$_$.cm;
  var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
  var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
  var SuspendFunction1 = kotlin_kotlin.$_$.od;
  var interfaceMeta = kotlin_kotlin.$_$.ue;
  var getStringHashCode = kotlin_kotlin.$_$.re;
  var copyToArray = kotlin_kotlin.$_$.z8;
  var hashCode = kotlin_kotlin.$_$.se;
  var equals = kotlin_kotlin.$_$.ie;
  var objectMeta = kotlin_kotlin.$_$.sf;
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.f2;
  var isArray = kotlin_kotlin.$_$.ve;
  var toList = kotlin_kotlin.$_$.jc;
  var emptyList = kotlin_kotlin.$_$.d9;
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.a1;
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.q;
  var collectionSizeOrDefault = kotlin_kotlin.$_$.z7;
  var mapCapacity = kotlin_kotlin.$_$.ra;
  var coerceAtLeast = kotlin_kotlin.$_$.lg;
  var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.z;
  var ensureNotNull = kotlin_kotlin.$_$.xm;
  var List = kotlin_kotlin.$_$.z6;
  var channelFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
  var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
  var isInterface = kotlin_kotlin.$_$.df;
  var EventListener = kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.$_$.a;
  var IntCompanionObject_getInstance = kotlin_kotlin.$_$.r5;
  var Long = kotlin_kotlin.$_$.vl;
  var until = kotlin_kotlin.$_$.yg;
  var printStackTrace = kotlin_kotlin.$_$.in;
  var Exception = kotlin_kotlin.$_$.rl;
  var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
  var numberToLong = kotlin_kotlin.$_$.qf;
  var coerceAtMost = kotlin_kotlin.$_$.ng;
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.p;
  var to = kotlin_kotlin.$_$.un;
  var json = kotlin_kotlin.$_$.if;
  var plus = kotlin_kotlin.$_$.ya;
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f2;
  var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p2;
  var plus_0 = kotlin_kotlin.$_$.gb;
  var awaitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
  var toString = kotlin_kotlin.$_$.yf;
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l2;
  var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
  var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.d3;
  var listOf = kotlin_kotlin.$_$.qa;
  var Companion_getInstance = kotlin_kotlin.$_$.b6;
  var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.v3;
  var createFailure = kotlin_kotlin.$_$.wm;
  var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.w3;
  var throwOnFailure = kotlin_kotlin.$_$.nn;
  var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.y3;
  var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.on;
  //endregion
  //region block: pre-declaration
  setMetadataFor(AssetResource$getText$slambda, 'AssetResource$getText$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]);
  setMetadataFor(AssetResource, 'AssetResource', classMeta, VOID, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ColorResource$getColorFlow$o$collect$slambda, 'ColorResource$getColorFlow$o$collect$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]);
  setMetadataFor($collectCOROUTINE$0, '$collectCOROUTINE$0', classMeta, CoroutineImpl);
  setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]);
  setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta, VOID, [Flow], VOID, VOID, VOID, [1]);
  setMetadataFor(ColorResource, 'ColorResource', classMeta);
  setMetadataFor(FileResource$getText$slambda, 'FileResource$getText$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]);
  setMetadataFor(FileResource, 'FileResource', classMeta, VOID, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(FontResource, 'FontResource', classMeta);
  setMetadataFor(ImageResource, 'ImageResource', classMeta);
  setMetadataFor(PluralsResource, 'PluralsResource', classMeta);
  setMetadataFor(ResourceContainer, 'ResourceContainer', interfaceMeta);
  setMetadataFor(StringResource, 'StringResource', classMeta);
  setMetadataFor($localizedCOROUTINE$1, '$localizedCOROUTINE$1', classMeta, CoroutineImpl);
  setMetadataFor(StringDesc, 'StringDesc', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PluralFormattedStringDesc, 'PluralFormattedStringDesc', classMeta, VOID, [StringDesc], VOID, VOID, VOID, [0]);
  setMetadataFor(LocaleType, 'LocaleType', classMeta);
  setMetadataFor(System, 'System', objectMeta, LocaleType);
  setMetadataFor(Custom, 'Custom', classMeta, LocaleType);
  setMetadataFor(Companion, 'Companion', objectMeta);
  setMetadataFor(CachedLocale, 'CachedLocale', classMeta);
  setMetadataFor(ParsedLocale, 'ParsedLocale', classMeta);
  setMetadataFor(RemoteJsStringLoaderHolder, 'RemoteJsStringLoaderHolder', interfaceMeta);
  setMetadataFor(SupportedLocale, 'SupportedLocale', classMeta);
  setMetadataFor(SupportedLocales, 'SupportedLocales', classMeta, VOID, [List]);
  setMetadataFor(getDarkModeFlow$slambda, 'getDarkModeFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]);
  setMetadataFor($retryIOCOROUTINE$2, '$retryIOCOROUTINE$2', classMeta, CoroutineImpl);
  setMetadataFor(CompiledVariableString, 'CompiledVariableString', classMeta);
  setMetadataFor(CompiledPlural, 'CompiledPlural', classMeta);
  setMetadataFor(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda, 'RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]);
  setMetadataFor(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1, 'RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]);
  function plus_1(other) {
    var tmp = JsStringProvider$plus$lambda(this, other);
    return new sam$dev_icerock_moko_resources_provider_JsStringProvider$0_0(tmp);
  }
  setMetadataFor(JsStringProvider, 'JsStringProvider', interfaceMeta);
  setMetadataFor(sam$dev_icerock_moko_resources_provider_JsStringProvider$0, 'sam$dev_icerock_moko_resources_provider_JsStringProvider$0', classMeta, VOID, [JsStringProvider]);
  setMetadataFor(RemoteJsStringLoader$Impl$getOrLoad$slambda, 'RemoteJsStringLoader$Impl$getOrLoad$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]);
  setMetadataFor($loadLocalizationFileCOROUTINE$3, '$loadLocalizationFileCOROUTINE$3', classMeta, CoroutineImpl);
  setMetadataFor($getOrLoadCOROUTINE$4, '$getOrLoadCOROUTINE$4', classMeta, CoroutineImpl);
  setMetadataFor($downloadLocaleFileCOROUTINE$5, '$downloadLocaleFileCOROUTINE$5', classMeta, CoroutineImpl);
  setMetadataFor($downloadFallbackFileCOROUTINE$6, '$downloadFallbackFileCOROUTINE$6', classMeta, CoroutineImpl);
  setMetadataFor(RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda, 'RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]);
  setMetadataFor(RemoteJsStringLoader$Composition$getOrLoad$slambda, 'RemoteJsStringLoader$Composition$getOrLoad$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]);
  setMetadataFor($getOrLoadCOROUTINE$7, '$getOrLoadCOROUTINE$7', classMeta, CoroutineImpl);
  function plus_2(other) {
    return new Composition(listOf([this, other]));
  }
  setMetadataFor(RemoteJsStringLoader, 'RemoteJsStringLoader', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(Impl, 'Impl', classMeta, VOID, [RemoteJsStringLoader], VOID, VOID, VOID, [1, 0]);
  setMetadataFor(Composition, 'Composition', classMeta, VOID, [RemoteJsStringLoader], VOID, VOID, VOID, [0]);
  setMetadataFor(Companion_0, 'Companion', objectMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(sam$dev_icerock_moko_resources_provider_JsStringProvider$0_0, 'sam$dev_icerock_moko_resources_provider_JsStringProvider$0', classMeta, VOID, [JsStringProvider]);
  setMetadataFor(RemoteJsStringLoaderBuilder, 'RemoteJsStringLoaderBuilder', classMeta, VOID, VOID, RemoteJsStringLoaderBuilder);
  //endregion
  function format(_this__u8e3s4, number, args) {
    return PluralFormatted(Companion_getInstance_0(), _this__u8e3s4, number, asList(args));
  }
  function PluralFormatted(_this__u8e3s4, pluralsRes, number, args) {
    return new PluralFormattedStringDesc(pluralsRes, number, args);
  }
  function AssetResource$getText$slambda(this$0, resultContinuation) {
    this.this$0__1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(AssetResource$getText$slambda).invoke_5dq5ij_k$ = function ($completion) {
    var tmp = this.create_d196fn_k$($completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(AssetResource$getText$slambda).invoke_ib42db_k$ = function ($completion) {
    return this.invoke_5dq5ij_k$($completion);
  };
  protoOf(AssetResource$getText$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(3);
            this.set_state_rjd8d0_k$(1);
            suspendResult = await_0(window.fetch(this.this$0__1.originalPath_1), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ARGUMENT0__1 = suspendResult;
            this.ARGUMENT1__1 = this.ARGUMENT0__1.text();
            this.set_state_rjd8d0_k$(2);
            suspendResult = await_0(this.ARGUMENT1__1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            return suspendResult;
          case 3:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 3) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(AssetResource$getText$slambda).create_d196fn_k$ = function (completion) {
    return new AssetResource$getText$slambda(this.this$0__1, completion);
  };
  function AssetResource$getText$slambda_0(this$0, resultContinuation) {
    var i = new AssetResource$getText$slambda(this$0, resultContinuation);
    var l = function ($completion) {
      return i.invoke_5dq5ij_k$($completion);
    };
    l.$arity = 0;
    return l;
  }
  function AssetResource(originalPath, rawPath) {
    this.originalPath_1 = originalPath;
    this.rawPath_1 = rawPath;
  }
  protoOf(AssetResource).get_originalPath_v4q49t_k$ = function () {
    return this.originalPath_1;
  };
  protoOf(AssetResource).get_rawPath_hkd0n8_k$ = function () {
    return this.rawPath_1;
  };
  protoOf(AssetResource).getText_ld3wbk_k$ = function ($completion) {
    return retryIO(VOID, VOID, VOID, VOID, AssetResource$getText$slambda_0(this, null), $completion);
  };
  function ColorResource$getColorFlow$o$collect$slambda($$this$unsafeFlow, this$0, $window, resultContinuation) {
    this.$$this$unsafeFlow_1 = $$this$unsafeFlow;
    this.this$0__1 = this$0;
    this.$window_1 = $window;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ColorResource$getColorFlow$o$collect$slambda).invoke_f29lti_k$ = function (value, $completion) {
    var tmp = this.create_vh5neu_k$(value, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(ColorResource$getColorFlow$o$collect$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
    return this.invoke_f29lti_k$((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ColorResource$getColorFlow$o$collect$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            var tmp_0 = this;
            tmp_0.$this$unsafeTransform0__1 = this.$$this$unsafeFlow_1;
            var tmp_1 = this;
            tmp_1.value1__1 = this.value_1;
            this.set_state_rjd8d0_k$(1);
            this.value1__1;
            suspendResult = this.$this$unsafeTransform0__1.emit_t92u1f_k$(this.this$0__1.getColor_j3zz82_k$(this.$window_1), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_getInstance();
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(ColorResource$getColorFlow$o$collect$slambda).create_vh5neu_k$ = function (value, completion) {
    var i = new ColorResource$getColorFlow$o$collect$slambda(this.$$this$unsafeFlow_1, this.this$0__1, this.$window_1, completion);
    i.value_1 = value;
    return i;
  };
  protoOf(ColorResource$getColorFlow$o$collect$slambda).create_wyq9v6_k$ = function (value, completion) {
    return this.create_vh5neu_k$((!(value == null) ? typeof value === 'boolean' : false) ? value : THROW_CCE(), completion);
  };
  function ColorResource$getColorFlow$o$collect$slambda_0($$this$unsafeFlow, this$0, $window, resultContinuation) {
    var i = new ColorResource$getColorFlow$o$collect$slambda($$this$unsafeFlow, this$0, $window, resultContinuation);
    var l = function (value, $completion) {
      return i.invoke_f29lti_k$(value, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this._this__u8e3s4__1 = _this__u8e3s4;
    this.collector_1 = collector;
  }
  protoOf($collectCOROUTINE$0).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            var tmp_0 = this;
            tmp_0.$this$unsafeFlow0__1 = this.collector_1;
            this.set_state_rjd8d0_k$(1);
            var tmp_1 = ColorResource$getColorFlow$o$collect$slambda_0(this.$this$unsafeFlow0__1, this._this__u8e3s4__1.this$0__1, this._this__u8e3s4__1.$window_1, null);
            suspendResult = this._this__u8e3s4__1.$this_1.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_getInstance();
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
    this.function_1 = function_0;
  }
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).emit_t92u1f_k$ = function (value, $completion) {
    return this.function_1(value, $completion);
  };
  function _no_name_provided__qut3iv($this, this$0, $window) {
    this.$this_1 = $this;
    this.this$0__1 = this$0;
    this.$window_1 = $window;
  }
  protoOf(_no_name_provided__qut3iv).collect_uu19qe_k$ = function (collector, $completion) {
    var tmp = new $collectCOROUTINE$0(this, collector, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(_no_name_provided__qut3iv).collect_aksokr_k$ = function (collector, $completion) {
    return this.collect_uu19qe_k$(collector, $completion);
  };
  function ColorResource(lightColor, darkColor) {
    this.lightColor_1 = lightColor;
    this.darkColor_1 = darkColor;
  }
  protoOf(ColorResource).get_lightColor_o1wo7e_k$ = function () {
    return this.lightColor_1;
  };
  protoOf(ColorResource).get_darkColor_mjnajg_k$ = function () {
    return this.darkColor_1;
  };
  protoOf(ColorResource).getColor_j3zz82_k$ = function (window_0) {
    return isDarkMode(window_0) ? this.darkColor_1 : this.lightColor_1;
  };
  protoOf(ColorResource).getColorFlow_w27c5g_k$ = function (window_0) {
    // Inline function 'kotlinx.coroutines.flow.map' call
    // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
    var this_0 = getDarkModeFlow(window_0);
    // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
    return new _no_name_provided__qut3iv(this_0, this, window_0);
  };
  function FileResource$getText$slambda(this$0, resultContinuation) {
    this.this$0__1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(FileResource$getText$slambda).invoke_5dq5ij_k$ = function ($completion) {
    var tmp = this.create_d196fn_k$($completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(FileResource$getText$slambda).invoke_ib42db_k$ = function ($completion) {
    return this.invoke_5dq5ij_k$($completion);
  };
  protoOf(FileResource$getText$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(3);
            this.set_state_rjd8d0_k$(1);
            suspendResult = await_0(window.fetch(this.this$0__1.fileUrl_1), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ARGUMENT0__1 = suspendResult;
            this.ARGUMENT1__1 = this.ARGUMENT0__1.text();
            this.set_state_rjd8d0_k$(2);
            suspendResult = await_0(this.ARGUMENT1__1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            return suspendResult;
          case 3:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 3) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(FileResource$getText$slambda).create_d196fn_k$ = function (completion) {
    return new FileResource$getText$slambda(this.this$0__1, completion);
  };
  function FileResource$getText$slambda_0(this$0, resultContinuation) {
    var i = new FileResource$getText$slambda(this$0, resultContinuation);
    var l = function ($completion) {
      return i.invoke_5dq5ij_k$($completion);
    };
    l.$arity = 0;
    return l;
  }
  function FileResource(fileUrl) {
    this.fileUrl_1 = fileUrl;
  }
  protoOf(FileResource).get_fileUrl_cvhvo6_k$ = function () {
    return this.fileUrl_1;
  };
  protoOf(FileResource).getText_ld3wbk_k$ = function ($completion) {
    return retryIO(VOID, VOID, VOID, VOID, FileResource$getText$slambda_0(this, null), $completion);
  };
  function FontResource(fileUrl, fontFamily) {
    this.fileUrl_1 = fileUrl;
    this.fontFamily_1 = fontFamily;
  }
  protoOf(FontResource).get_fileUrl_cvhvo6_k$ = function () {
    return this.fileUrl_1;
  };
  protoOf(FontResource).get_fontFamily_ulphcs_k$ = function () {
    return this.fontFamily_1;
  };
  function ImageResource(fileName, fileUrl) {
    this.fileName_1 = fileName;
    this.fileUrl_1 = fileUrl;
  }
  protoOf(ImageResource).get_fileName_r258mo_k$ = function () {
    return this.fileName_1;
  };
  protoOf(ImageResource).get_fileUrl_cvhvo6_k$ = function () {
    return this.fileUrl_1;
  };
  function _get_key__e6bh8y($this) {
    return $this.key_1;
  }
  function PluralsResource(key, loader) {
    this.key_1 = key;
    this.loader_1 = loader;
  }
  protoOf(PluralsResource).get_loader_g9cie4_k$ = function () {
    return this.loader_1;
  };
  protoOf(PluralsResource).localized_4maffz_k$ = function (provider, locale, quantity) {
    var pluralString = provider.provideString_2xwqld_k$(this.key_1, locale);
    var pluralLocale = locale == null ? currentLocale() : locale;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = [pluralLocale];
    var compiledPlural = (new dev_icerock_moko_resources_internal_messageFormat_MessageFormat_rhgpjd(tmp$ret$2)).compile(pluralString);
    return CompiledPlural__evaluate_impl_gca2wx(_CompiledPlural___init__impl__m1vc38(compiledPlural), quantity, []);
  };
  protoOf(PluralsResource).localized_gubvca_k$ = function (provider, locale, quantity, args) {
    var pluralString = provider.provideString_2xwqld_k$(this.key_1, locale);
    var pluralLocale = locale == null ? currentLocale() : locale;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = [pluralLocale];
    var compiledPlural = _CompiledPlural___init__impl__m1vc38((new dev_icerock_moko_resources_internal_messageFormat_MessageFormat_rhgpjd(tmp$ret$2)).compile(pluralString));
    return CompiledPlural__evaluate_impl_gca2wx(compiledPlural, quantity, args.slice());
  };
  function ResourceContainer() {
  }
  function _get_key__e6bh8y_0($this) {
    return $this.key_1;
  }
  function StringResource(key, loader) {
    this.key_1 = key;
    this.loader_1 = loader;
  }
  protoOf(StringResource).get_loader_g9cie4_k$ = function () {
    return this.loader_1;
  };
  protoOf(StringResource).localized_o7fm9j_k$ = function (provider, locale) {
    return provider.provideString_2xwqld_k$(this.key_1, locale);
  };
  protoOf(StringResource).localized_gklrw0_k$ = function (provider, locale, args) {
    var rawString = provider.provideString_2xwqld_k$(this.key_1, locale);
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = [locale == null ? currentLocale() : locale];
    var compiled = _CompiledVariableString___init__impl__gl5jz1((new dev_icerock_moko_resources_internal_messageFormat_MessageFormat_rhgpjd(tmp$ret$2)).compile(rawString));
    return CompiledVariableString__evaluate_impl_iy6o3u(compiled, args.slice());
  };
  protoOf(StringResource).equals = function (other) {
    if (!(other instanceof StringResource))
      return false;
    if (!(this.key_1 === other.key_1))
      return false;
    return true;
  };
  protoOf(StringResource).hashCode = function () {
    return getStringHashCode(this.key_1);
  };
  function $localizedCOROUTINE$1(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this._this__u8e3s4__1 = _this__u8e3s4;
  }
  protoOf($localizedCOROUTINE$1).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            suspendResult = this._this__u8e3s4__1.pluralsRes_1.get_loader_g9cie4_k$().getOrLoad_qcgnvx_k$(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return this._this__u8e3s4__1.localized_t71ipc_k$(ARGUMENT);
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function PluralFormattedStringDesc(pluralsRes, number, args) {
    this.pluralsRes_1 = pluralsRes;
    this.number_1 = number;
    this.args_1 = args;
  }
  protoOf(PluralFormattedStringDesc).get_pluralsRes_azgp8m_k$ = function () {
    return this.pluralsRes_1;
  };
  protoOf(PluralFormattedStringDesc).get_number_hay53m_k$ = function () {
    return this.number_1;
  };
  protoOf(PluralFormattedStringDesc).get_args_woj09y_k$ = function () {
    return this.args_1;
  };
  protoOf(PluralFormattedStringDesc).localized_x0ik3c_k$ = function ($completion) {
    var tmp = new $localizedCOROUTINE$1(this, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(PluralFormattedStringDesc).localized_t71ipc_k$ = function (provider) {
    var tmp = Companion_getInstance_0().get_localeType_1gop4t_k$().get_locale_g9dqar_k$();
    // Inline function 'kotlin.collections.toTypedArray' call
    var this_0 = this.args_1;
    var tmp$ret$0 = copyToArray(this_0);
    return this.pluralsRes_1.localized_gubvca_k$(provider, tmp, this.number_1, tmp$ret$0.slice());
  };
  protoOf(PluralFormattedStringDesc).component1_7eebsc_k$ = function () {
    return this.pluralsRes_1;
  };
  protoOf(PluralFormattedStringDesc).component2_7eebsb_k$ = function () {
    return this.number_1;
  };
  protoOf(PluralFormattedStringDesc).component3_7eebsa_k$ = function () {
    return this.args_1;
  };
  protoOf(PluralFormattedStringDesc).copy_no4gx3_k$ = function (pluralsRes, number, args) {
    return new PluralFormattedStringDesc(pluralsRes, number, args);
  };
  protoOf(PluralFormattedStringDesc).copy$default_3gw4hh_k$ = function (pluralsRes, number, args, $super) {
    pluralsRes = pluralsRes === VOID ? this.pluralsRes_1 : pluralsRes;
    number = number === VOID ? this.number_1 : number;
    args = args === VOID ? this.args_1 : args;
    return $super === VOID ? this.copy_no4gx3_k$(pluralsRes, number, args) : $super.copy_no4gx3_k$.call(this, pluralsRes, number, args);
  };
  protoOf(PluralFormattedStringDesc).toString = function () {
    return 'PluralFormattedStringDesc(pluralsRes=' + this.pluralsRes_1 + ', number=' + this.number_1 + ', args=' + this.args_1 + ')';
  };
  protoOf(PluralFormattedStringDesc).hashCode = function () {
    var result = hashCode(this.pluralsRes_1);
    result = imul(result, 31) + this.number_1 | 0;
    result = imul(result, 31) + hashCode(this.args_1) | 0;
    return result;
  };
  protoOf(PluralFormattedStringDesc).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PluralFormattedStringDesc))
      return false;
    var tmp0_other_with_cast = other instanceof PluralFormattedStringDesc ? other : THROW_CCE();
    if (!equals(this.pluralsRes_1, tmp0_other_with_cast.pluralsRes_1))
      return false;
    if (!(this.number_1 === tmp0_other_with_cast.number_1))
      return false;
    if (!equals(this.args_1, tmp0_other_with_cast.args_1))
      return false;
    return true;
  };
  function System() {
    System_instance = this;
    LocaleType.call(this);
  }
  protoOf(System).get_locale_g9dqar_k$ = function () {
    return currentLocale();
  };
  var System_instance;
  function System_getInstance() {
    if (System_instance == null)
      new System();
    return System_instance;
  }
  function Custom(locale) {
    LocaleType.call(this);
    this.locale_1 = locale;
  }
  protoOf(Custom).get_locale_g9dqar_k$ = function () {
    return this.locale_1;
  };
  function LocaleType() {
  }
  function Companion() {
    Companion_instance = this;
    this.localeType_1 = System_getInstance();
  }
  protoOf(Companion).set_localeType_c2yc2j_k$ = function (_set____db54di) {
    this.localeType_1 = _set____db54di;
  };
  protoOf(Companion).get_localeType_1gop4t_k$ = function () {
    return this.localeType_1;
  };
  var Companion_instance;
  function Companion_getInstance_0() {
    if (Companion_instance == null)
      new Companion();
    return Companion_instance;
  }
  function StringDesc() {
  }
  function currentLocale() {
    return window.navigator.language;
  }
  function set_cachedLocale(_set____db54di) {
    cachedLocale = _set____db54di;
  }
  function get_cachedLocale() {
    return cachedLocale;
  }
  var cachedLocale;
  function CachedLocale(usedLanguages, locale) {
    this.usedLanguages_1 = usedLanguages;
    this.locale_1 = locale;
  }
  protoOf(CachedLocale).get_usedLanguages_uuezzp_k$ = function () {
    return this.usedLanguages_1;
  };
  protoOf(CachedLocale).get_locale_g9dqar_k$ = function () {
    return this.locale_1;
  };
  function ParsedLocale(parseResult) {
    var tmp = this;
    var tmp_0 = parseResult['language'];
    var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null;
    var tmp_1;
    if (tmp0_elvis_lhs == null) {
      throw IllegalArgumentException_init_$Create$('Primary language tags must not be empty');
    } else {
      tmp_1 = tmp0_elvis_lhs;
    }
    tmp.primaryLanguageTag_1 = tmp_1;
    var tmp_2 = this;
    // Inline function 'kotlin.collections.orEmpty' call
    var tmp_3 = parseResult['extendedLanguageSubtags'];
    var tmp0_safe_receiver = (!(tmp_3 == null) ? isArray(tmp_3) : false) ? tmp_3 : null;
    var tmp0_elvis_lhs_0 = tmp0_safe_receiver == null ? null : toList(tmp0_safe_receiver);
    tmp_2.extendedLanguageSubtag_1 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
    var tmp_4 = this;
    // Inline function 'kotlin.text.orEmpty' call
    var tmp_5 = parseResult['script'];
    var tmp0_elvis_lhs_1 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : null;
    tmp_4.script_1 = tmp0_elvis_lhs_1 == null ? '' : tmp0_elvis_lhs_1;
    var tmp_6 = this;
    // Inline function 'kotlin.text.orEmpty' call
    var tmp_7 = parseResult['region'];
    var tmp0_elvis_lhs_2 = (!(tmp_7 == null) ? typeof tmp_7 === 'string' : false) ? tmp_7 : null;
    tmp_6.region_1 = tmp0_elvis_lhs_2 == null ? '' : tmp0_elvis_lhs_2;
    var tmp_8 = this;
    // Inline function 'kotlin.collections.orEmpty' call
    var tmp_9 = parseResult['variants'];
    var tmp0_safe_receiver_0 = (!(tmp_9 == null) ? isArray(tmp_9) : false) ? tmp_9 : null;
    var tmp0_elvis_lhs_3 = tmp0_safe_receiver_0 == null ? null : toList(tmp0_safe_receiver_0);
    tmp_8.variants_1 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
    var tmp_10 = this;
    // Inline function 'kotlin.collections.orEmpty' call
    var tmp_11 = parseResult['extensions'];
    var tmp0_safe_receiver_1 = (!(tmp_11 == null) ? isArray(tmp_11) : false) ? tmp_11 : null;
    var tmp0_elvis_lhs_4 = tmp0_safe_receiver_1 == null ? null : toList(tmp0_safe_receiver_1);
    tmp_10.extensions_1 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
    var tmp_12 = this;
    // Inline function 'kotlin.collections.orEmpty' call
    var tmp_13 = parseResult['privateuse'];
    var tmp0_safe_receiver_2 = (!(tmp_13 == null) ? isArray(tmp_13) : false) ? tmp_13 : null;
    var tmp0_elvis_lhs_5 = tmp0_safe_receiver_2 == null ? null : toList(tmp0_safe_receiver_2);
    tmp_12.privateuse_1 = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
  }
  protoOf(ParsedLocale).get_primaryLanguageTag_r5ttbr_k$ = function () {
    return this.primaryLanguageTag_1;
  };
  protoOf(ParsedLocale).get_extendedLanguageSubtag_xtzbsk_k$ = function () {
    return this.extendedLanguageSubtag_1;
  };
  protoOf(ParsedLocale).get_script_jedas4_k$ = function () {
    return this.script_1;
  };
  protoOf(ParsedLocale).get_region_iy88ot_k$ = function () {
    return this.region_1;
  };
  protoOf(ParsedLocale).get_variants_ik7l93_k$ = function () {
    return this.variants_1;
  };
  protoOf(ParsedLocale).get_extensions_kxksyl_k$ = function () {
    return this.extensions_1;
  };
  protoOf(ParsedLocale).get_privateuse_jtx57x_k$ = function () {
    return this.privateuse_1;
  };
  function parseBcpLocale(tag) {
    return new ParsedLocale(parse(tag));
  }
  function RemoteJsStringLoaderHolder() {
  }
  function SupportedLocale(locale, fileUrl) {
    this.locale_1 = locale;
    this.fileUrl_1 = fileUrl;
    this.parsedLocale_1 = parseBcpLocale(this.locale_1);
  }
  protoOf(SupportedLocale).get_locale_g9dqar_k$ = function () {
    return this.locale_1;
  };
  protoOf(SupportedLocale).get_fileUrl_cvhvo6_k$ = function () {
    return this.fileUrl_1;
  };
  protoOf(SupportedLocale).get_parsedLocale_teauqc_k$ = function () {
    return this.parsedLocale_1;
  };
  protoOf(SupportedLocale).component1_7eebsc_k$ = function () {
    return this.locale_1;
  };
  protoOf(SupportedLocale).component2_7eebsb_k$ = function () {
    return this.fileUrl_1;
  };
  protoOf(SupportedLocale).copy_plwnsl_k$ = function (locale, fileUrl) {
    return new SupportedLocale(locale, fileUrl);
  };
  protoOf(SupportedLocale).copy$default_b4v9zj_k$ = function (locale, fileUrl, $super) {
    locale = locale === VOID ? this.locale_1 : locale;
    fileUrl = fileUrl === VOID ? this.fileUrl_1 : fileUrl;
    return $super === VOID ? this.copy_plwnsl_k$(locale, fileUrl) : $super.copy_plwnsl_k$.call(this, locale, fileUrl);
  };
  protoOf(SupportedLocale).toString = function () {
    return 'SupportedLocale(locale=' + this.locale_1 + ', fileUrl=' + this.fileUrl_1 + ')';
  };
  protoOf(SupportedLocale).hashCode = function () {
    var result = getStringHashCode(this.locale_1);
    result = imul(result, 31) + getStringHashCode(this.fileUrl_1) | 0;
    return result;
  };
  protoOf(SupportedLocale).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof SupportedLocale))
      return false;
    var tmp0_other_with_cast = other instanceof SupportedLocale ? other : THROW_CCE();
    if (!(this.locale_1 === tmp0_other_with_cast.locale_1))
      return false;
    if (!(this.fileUrl_1 === tmp0_other_with_cast.fileUrl_1))
      return false;
    return true;
  };
  function _get_locales__4fnhgo($this) {
    return $this.locales_1;
  }
  function _get_languageMap__78pgpf($this) {
    return $this.languageMap_1;
  }
  function _get_localeMap__6nsf($this) {
    return $this.localeMap_1;
  }
  function SupportedLocales(locales) {
    this.locales_1 = locales;
    var tmp = this;
    // Inline function 'kotlin.collections.groupBy' call
    // Inline function 'kotlin.collections.groupByTo' call
    var this_0 = this.locales_1;
    var destination = LinkedHashMap_init_$Create$();
    var tmp0_iterator = this_0.iterator_jk1svi_k$();
    while (tmp0_iterator.hasNext_bitz1p_k$()) {
      var element = tmp0_iterator.next_20eer_k$();
      // Inline function 'dev.icerock.moko.resources.internal.SupportedLocales.languageMap.<anonymous>' call
      var key = element.get_parsedLocale_teauqc_k$().get_primaryLanguageTag_r5ttbr_k$();
      // Inline function 'kotlin.collections.getOrPut' call
      var value = destination.get_wei43m_k$(key);
      var tmp_0;
      if (value == null) {
        // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
        var answer = ArrayList_init_$Create$();
        destination.put_4fpzoq_k$(key, answer);
        tmp_0 = answer;
      } else {
        tmp_0 = value;
      }
      var list = tmp_0;
      list.add_utx5q5_k$(element);
    }
    tmp.languageMap_1 = destination;
    var tmp_1 = this;
    // Inline function 'kotlin.collections.associateBy' call
    var this_1 = this.locales_1;
    var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
    // Inline function 'kotlin.collections.associateByTo' call
    var destination_0 = LinkedHashMap_init_$Create$_0(capacity);
    var tmp0_iterator_0 = this_1.iterator_jk1svi_k$();
    while (tmp0_iterator_0.hasNext_bitz1p_k$()) {
      var element_0 = tmp0_iterator_0.next_20eer_k$();
      // Inline function 'dev.icerock.moko.resources.internal.SupportedLocales.localeMap.<anonymous>' call
      var tmp$ret$5 = element_0.get_locale_g9dqar_k$();
      destination_0.put_4fpzoq_k$(tmp$ret$5, element_0);
    }
    tmp_1.localeMap_1 = destination_0;
  }
  protoOf(SupportedLocales).get_size_woubt6_k$ = function () {
    return this.locales_1.get_size_woubt6_k$();
  };
  protoOf(SupportedLocales).contains_2zeea5_k$ = function (element) {
    return this.locales_1.contains_aljjnj_k$(element);
  };
  protoOf(SupportedLocales).contains_aljjnj_k$ = function (element) {
    if (!(element instanceof SupportedLocale))
      return false;
    return this.contains_2zeea5_k$(element instanceof SupportedLocale ? element : THROW_CCE());
  };
  protoOf(SupportedLocales).containsAll_cm265a_k$ = function (elements) {
    return this.locales_1.containsAll_xk45sd_k$(elements);
  };
  protoOf(SupportedLocales).containsAll_xk45sd_k$ = function (elements) {
    return this.containsAll_cm265a_k$(elements);
  };
  protoOf(SupportedLocales).get_c1px32_k$ = function (index) {
    return this.locales_1.get_c1px32_k$(index);
  };
  protoOf(SupportedLocales).indexOf_csd8hj_k$ = function (element) {
    return this.locales_1.indexOf_si1fv9_k$(element);
  };
  protoOf(SupportedLocales).indexOf_si1fv9_k$ = function (element) {
    if (!(element instanceof SupportedLocale))
      return -1;
    return this.indexOf_csd8hj_k$(element instanceof SupportedLocale ? element : THROW_CCE());
  };
  protoOf(SupportedLocales).isEmpty_y1axqb_k$ = function () {
    return this.locales_1.isEmpty_y1axqb_k$();
  };
  protoOf(SupportedLocales).iterator_jk1svi_k$ = function () {
    return this.locales_1.iterator_jk1svi_k$();
  };
  protoOf(SupportedLocales).lastIndexOf_hnbpq9_k$ = function (element) {
    return this.locales_1.lastIndexOf_v2p1fv_k$(element);
  };
  protoOf(SupportedLocales).lastIndexOf_v2p1fv_k$ = function (element) {
    if (!(element instanceof SupportedLocale))
      return -1;
    return this.lastIndexOf_hnbpq9_k$(element instanceof SupportedLocale ? element : THROW_CCE());
  };
  protoOf(SupportedLocales).listIterator_xjshxw_k$ = function () {
    return this.locales_1.listIterator_xjshxw_k$();
  };
  protoOf(SupportedLocales).listIterator_70e65o_k$ = function (index) {
    return this.locales_1.listIterator_70e65o_k$(index);
  };
  protoOf(SupportedLocales).subList_xle3r2_k$ = function (fromIndex, toIndex) {
    return this.locales_1.subList_xle3r2_k$(fromIndex, toIndex);
  };
  protoOf(SupportedLocales).getLocalesForLanguage_jmya90_k$ = function (primaryLanguageSubtag) {
    var tmp0_elvis_lhs = this.languageMap_1.get_wei43m_k$(primaryLanguageSubtag);
    return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
  };
  protoOf(SupportedLocales).getForLocale_likc3_k$ = function (locale) {
    return ensureNotNull(this.localeMap_1.get_wei43m_k$(locale));
  };
  function isDarkMode(_this__u8e3s4) {
    return _this__u8e3s4.matchMedia('(prefers-color-scheme: dark)').matches;
  }
  function getDarkModeFlow(_this__u8e3s4) {
    return channelFlow(getDarkModeFlow$slambda_0(_this__u8e3s4, null));
  }
  function get_MEDIA_DARK_SCHEME() {
    return MEDIA_DARK_SCHEME;
  }
  var MEDIA_DARK_SCHEME;
  function getDarkModeFlow$slambda$lambda($this_channelFlow, $this_getDarkModeFlow) {
    return function (it) {
      $this_channelFlow.trySend_62dpg8_k$(isDarkMode($this_getDarkModeFlow));
      return Unit_getInstance();
    };
  }
  function getDarkModeFlow$slambda$lambda_0($mediaList, $listener) {
    return function (it) {
      $mediaList.removeListener($listener);
      return Unit_getInstance();
    };
  }
  function getDarkModeFlow$slambda($this_getDarkModeFlow, resultContinuation) {
    this.$this_getDarkModeFlow_1 = $this_getDarkModeFlow;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(getDarkModeFlow$slambda).invoke_jmuksp_k$ = function ($this$channelFlow, $completion) {
    var tmp = this.create_r8of0l_k$($this$channelFlow, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(getDarkModeFlow$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
    return this.invoke_jmuksp_k$((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(getDarkModeFlow$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        if (tmp === 0) {
          this.set_exceptionState_fex74n_k$(1);
          var mediaList = this.$this_getDarkModeFlow_1.window.matchMedia('(prefers-color-scheme: dark)');
          var listener = EventListener(getDarkModeFlow$slambda$lambda(this.$this$channelFlow_1, this.$this_getDarkModeFlow_1));
          mediaList.addListener(listener);
          this.$this$channelFlow_1.invokeOnClose_xlde4o_k$(getDarkModeFlow$slambda$lambda_0(mediaList, listener));
          return Unit_getInstance();
        } else if (tmp === 1) {
          throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        throw e;
      }
     while (true);
  };
  protoOf(getDarkModeFlow$slambda).create_r8of0l_k$ = function ($this$channelFlow, completion) {
    var i = new getDarkModeFlow$slambda(this.$this_getDarkModeFlow_1, completion);
    i.$this$channelFlow_1 = $this$channelFlow;
    return i;
  };
  protoOf(getDarkModeFlow$slambda).create_wyq9v6_k$ = function (value, completion) {
    return this.create_r8of0l_k$((!(value == null) ? isInterface(value, ProducerScope) : false) ? value : THROW_CCE(), completion);
  };
  function getDarkModeFlow$slambda_0($this_getDarkModeFlow, resultContinuation) {
    var i = new getDarkModeFlow$slambda($this_getDarkModeFlow, resultContinuation);
    var l = function ($this$channelFlow, $completion) {
      return i.invoke_jmuksp_k$($this$channelFlow, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function retryIO(times, initialDelay, maxDelay, factor, block, $completion) {
    times = times === VOID ? IntCompanionObject_getInstance().get_MAX_VALUE_54a9lf_k$() : times;
    initialDelay = initialDelay === VOID ? new Long(100, 0) : initialDelay;
    maxDelay = maxDelay === VOID ? new Long(1000, 0) : maxDelay;
    factor = factor === VOID ? 2.0 : factor;
    var tmp = new $retryIOCOROUTINE$2(times, initialDelay, maxDelay, factor, block, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  }
  function $retryIOCOROUTINE$2(times, initialDelay, maxDelay, factor, block, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.times_1 = times;
    this.initialDelay_1 = initialDelay;
    this.maxDelay_1 = maxDelay;
    this.factor_1 = factor;
    this.block_1 = block;
  }
  protoOf($retryIOCOROUTINE$2).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(8);
            this.currentDelay0__1 = this.initialDelay_1;
            var tmp_0 = this;
            tmp_0.times1__1 = this.times_1 - 1 | 0;
            this.tmp0_iterator2__1 = until(0, this.times1__1).iterator_jk1svi_k$();
            this.set_state_rjd8d0_k$(1);
            continue $sm;
          case 1:
            if (!this.tmp0_iterator2__1.hasNext_bitz1p_k$()) {
              this.set_state_rjd8d0_k$(6);
              continue $sm;
            }

            this.index3__1 = this.tmp0_iterator2__1.next_20eer_k$();
            var tmp_1 = this;
            tmp_1.it4__1 = this.index3__1;
            this.set_exceptionState_fex74n_k$(3);
            this.set_state_rjd8d0_k$(2);
            suspendResult = this.block_1(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            return suspendResult;
          case 3:
            this.set_exceptionState_fex74n_k$(8);
            var tmp_2 = this.get_exception_x0n6w6_k$();
            if (tmp_2 instanceof Exception) {
              this.e5__1 = this.get_exception_x0n6w6_k$();
              printStackTrace(this.e5__1);
              this.set_state_rjd8d0_k$(4);
              continue $sm;
            } else {
              throw this.get_exception_x0n6w6_k$();
            }

          case 4:
            this.set_exceptionState_fex74n_k$(8);
            this.set_state_rjd8d0_k$(5);
            suspendResult = delay(this.currentDelay0__1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var tmp_3 = this;
            var this_0 = this.currentDelay0__1;
            var other = this.factor_1;
            tmp_3.currentDelay0__1 = coerceAtMost(numberToLong(this_0.toDouble_ygsx0s_k$() * other), this.maxDelay_1);
            this.set_state_rjd8d0_k$(1);
            continue $sm;
          case 6:
            this.set_state_rjd8d0_k$(7);
            suspendResult = this.block_1(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 7:
            return suspendResult;
          case 8:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 8) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function _CompiledVariableString___init__impl__gl5jz1(function_0) {
    return function_0;
  }
  function _get_function__m6jw1f($this) {
    return $this;
  }
  function CompiledVariableString__evaluate_impl_iy6o3u($this, args) {
    // Inline function 'kotlin.collections.mapIndexed' call
    // Inline function 'kotlin.collections.mapIndexedTo' call
    var destination = ArrayList_init_$Create$_0(args.length);
    var index = 0;
    var inductionVariable = 0;
    var last = args.length;
    while (inductionVariable < last) {
      var item = args[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      // Inline function 'dev.icerock.moko.resources.internal.messageFormat.CompiledVariableString.evaluate.<anonymous>' call
      var tmp1 = index;
      index = tmp1 + 1 | 0;
      var tmp$ret$0 = to('' + tmp1, item);
      destination.add_utx5q5_k$(tmp$ret$0);
    }
    var keyValues = destination;
    // Inline function 'kotlin.collections.toTypedArray' call
    var tmp$ret$3 = copyToArray(keyValues);
    var json_0 = json(tmp$ret$3.slice());
    return _get_function__m6jw1f($this)(json_0);
  }
  function CompiledVariableString__toString_impl_jaurgj($this) {
    return 'CompiledVariableString(function=' + $this + ')';
  }
  function CompiledVariableString__hashCode_impl_2gb5cc($this) {
    return hashCode($this);
  }
  function CompiledVariableString__equals_impl_9rppcg($this, other) {
    if (!(other instanceof CompiledVariableString))
      return false;
    var tmp0_other_with_cast = other instanceof CompiledVariableString ? other.function_1 : THROW_CCE();
    if (!equals($this, tmp0_other_with_cast))
      return false;
    return true;
  }
  function CompiledVariableString(function_0) {
    this.function_1 = function_0;
  }
  protoOf(CompiledVariableString).toString = function () {
    return CompiledVariableString__toString_impl_jaurgj(this.function_1);
  };
  protoOf(CompiledVariableString).hashCode = function () {
    return CompiledVariableString__hashCode_impl_2gb5cc(this.function_1);
  };
  protoOf(CompiledVariableString).equals = function (other) {
    return CompiledVariableString__equals_impl_9rppcg(this.function_1, other);
  };
  function _CompiledPlural___init__impl__m1vc38(function_0) {
    return function_0;
  }
  function _get_function__m6jw1f_0($this) {
    return $this;
  }
  function CompiledPlural__evaluate_impl_gca2wx($this, quantity, args) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = [to('PLURAL', quantity)];
    // Inline function 'kotlin.collections.mapIndexed' call
    // Inline function 'kotlin.collections.mapIndexedTo' call
    var destination = ArrayList_init_$Create$_0(args.length);
    var index = 0;
    var inductionVariable = 0;
    var last = args.length;
    while (inductionVariable < last) {
      var item = args[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      // Inline function 'dev.icerock.moko.resources.internal.messageFormat.CompiledPlural.evaluate.<anonymous>' call
      var tmp1 = index;
      index = tmp1 + 1 | 0;
      var tmp$ret$3 = to('' + tmp1, item);
      destination.add_utx5q5_k$(tmp$ret$3);
    }
    var keyValues = plus(tmp, destination);
    var json_0 = json(keyValues.slice());
    return _get_function__m6jw1f_0($this)(json_0);
  }
  function CompiledPlural__toString_impl_lwrcng($this) {
    return 'CompiledPlural(function=' + $this + ')';
  }
  function CompiledPlural__hashCode_impl_5lful($this) {
    return hashCode($this);
  }
  function CompiledPlural__equals_impl_1omj1j($this, other) {
    if (!(other instanceof CompiledPlural))
      return false;
    var tmp0_other_with_cast = other instanceof CompiledPlural ? other.function_1 : THROW_CCE();
    if (!equals($this, tmp0_other_with_cast))
      return false;
    return true;
  }
  function CompiledPlural(function_0) {
    this.function_1 = function_0;
  }
  protoOf(CompiledPlural).toString = function () {
    return CompiledPlural__toString_impl_lwrcng(this.function_1);
  };
  protoOf(CompiledPlural).hashCode = function () {
    return CompiledPlural__hashCode_impl_5lful(this.function_1);
  };
  protoOf(CompiledPlural).equals = function (other) {
    return CompiledPlural__equals_impl_1omj1j(this.function_1, other);
  };
  function RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda(this$0, $it, resultContinuation) {
    this.this$0__1 = this$0;
    this.$it_1 = $it;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda).invoke_d9fzmj_k$ = function ($this$async, $completion) {
    var tmp = this.create_rcuf4x_k$($this$async, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
    return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            suspendResult = downloadLocaleFile(this.this$0__1, this.$it_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_getInstance();
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda).create_rcuf4x_k$ = function ($this$async, completion) {
    var i = new RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda(this.this$0__1, this.$it_1, completion);
    i.$this$async_1 = $this$async;
    return i;
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda).create_wyq9v6_k$ = function (value, completion) {
    return this.create_rcuf4x_k$((!(value == null) ? isInterface(value, CoroutineScope) : false) ? value : THROW_CCE(), completion);
  };
  function RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_0(this$0, $it, resultContinuation) {
    var i = new RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda(this$0, $it, resultContinuation);
    var l = function ($this$async, $completion) {
      return i.invoke_d9fzmj_k$($this$async, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1(this$0, resultContinuation) {
    this.this$0__1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1).invoke_d9fzmj_k$ = function ($this$async, $completion) {
    var tmp = this.create_rcuf4x_k$($this$async, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1).invoke_qns8j1_k$ = function (p1, $completion) {
    return this.invoke_d9fzmj_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            suspendResult = downloadFallbackFile(this.this$0__1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_getInstance();
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1).create_rcuf4x_k$ = function ($this$async, completion) {
    var i = new RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1(this.this$0__1, completion);
    i.$this$async_1 = $this$async;
    return i;
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1).create_wyq9v6_k$ = function (value, completion) {
    return this.create_rcuf4x_k$((!(value == null) ? isInterface(value, CoroutineScope) : false) ? value : THROW_CCE(), completion);
  };
  function RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_2(this$0, resultContinuation) {
    var i = new RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_1(this$0, resultContinuation);
    var l = function ($this$async, $completion) {
      return i.invoke_d9fzmj_k$($this$async, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function _get_supportedLocales__hr5f8g($this) {
    return $this.supportedLocales_1;
  }
  function _get_fallbackFileUri__1d7e83($this) {
    return $this.fallbackFileUri_1;
  }
  function _get_cachedLocalizationFiles__j47sxh($this) {
    return $this.cachedLocalizationFiles_1;
  }
  function _set_cachedFallbackFile__j2iko9($this, _set____db54di) {
    $this.cachedFallbackFile_1 = _set____db54di;
  }
  function _get_cachedFallbackFile__i0q66j($this) {
    return $this.cachedFallbackFile_1;
  }
  function loadLocalizationFile($this, fileUri, $completion) {
    var tmp = new $loadLocalizationFileCOROUTINE$3($this, fileUri, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  }
  function downloadLocaleFile($this, locale, $completion) {
    var tmp = new $downloadLocaleFileCOROUTINE$5($this, locale, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  }
  function downloadFallbackFile($this, $completion) {
    var tmp = new $downloadFallbackFileCOROUTINE$6($this, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  }
  function sam$dev_icerock_moko_resources_provider_JsStringProvider$0(function_0) {
    this.function_1 = function_0;
  }
  protoOf(sam$dev_icerock_moko_resources_provider_JsStringProvider$0).provideString_2xwqld_k$ = function (id, locale) {
    return this.function_1(id, locale);
  };
  function RemoteJsStringLoader$Impl$getOrLoad$slambda(this$0, resultContinuation) {
    this.this$0__1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda).invoke_pvnt3t_k$ = function ($this$coroutineScope, $completion) {
    var tmp = this.create_rcuf4x_k$($this$coroutineScope, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
    return this.invoke_pvnt3t_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            var this_0 = this.this$0__1.supportedLocales_1;
            var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
            var tmp0_iterator = this_0.iterator_jk1svi_k$();
            while (tmp0_iterator.hasNext_bitz1p_k$()) {
              var item = tmp0_iterator.next_20eer_k$();
              destination.add_utx5q5_k$(async(this.$this$coroutineScope_1, VOID, VOID, RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_0(this.this$0__1, item, null)));
            }

            suspendResult = awaitAll(plus_0(destination, async(this.$this$coroutineScope_1, VOID, VOID, RemoteJsStringLoader$Impl$getOrLoad$slambda$slambda_2(this.this$0__1, null))), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda).create_rcuf4x_k$ = function ($this$coroutineScope, completion) {
    var i = new RemoteJsStringLoader$Impl$getOrLoad$slambda(this.this$0__1, completion);
    i.$this$coroutineScope_1 = $this$coroutineScope;
    return i;
  };
  protoOf(RemoteJsStringLoader$Impl$getOrLoad$slambda).create_wyq9v6_k$ = function (value, completion) {
    return this.create_rcuf4x_k$((!(value == null) ? isInterface(value, CoroutineScope) : false) ? value : THROW_CCE(), completion);
  };
  function RemoteJsStringLoader$Impl$getOrLoad$slambda_0(this$0, resultContinuation) {
    var i = new RemoteJsStringLoader$Impl$getOrLoad$slambda(this$0, resultContinuation);
    var l = function ($this$coroutineScope, $completion) {
      return i.invoke_pvnt3t_k$($this$coroutineScope, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function RemoteJsStringLoader$Impl$getOrLoad$lambda(this$0) {
    return function (id, locale) {
      var tmp;
      if (locale == null) {
        tmp = null;
      } else {
        // Inline function 'kotlin.let' call
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'dev.icerock.moko.resources.provider.Impl.getOrLoad.<anonymous>.<anonymous>' call
        tmp = this$0.cachedLocalizationFiles_1.get_wei43m_k$(locale);
      }
      var tmp1_elvis_lhs = tmp;
      var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? this$0.cachedFallbackFile_1 : tmp1_elvis_lhs;
      var tmp_0;
      if (tmp2_elvis_lhs == null) {
        var message = 'Invalid state after download';
        throw IllegalStateException_init_$Create$(toString(message));
      } else {
        tmp_0 = tmp2_elvis_lhs;
      }
      var localeFile = tmp_0;
      var tmp3_safe_receiver = localeFile[id];
      var tmp6_elvis_lhs = tmp3_safe_receiver == null ? null : toString(tmp3_safe_receiver);
      var tmp_1;
      if (tmp6_elvis_lhs == null) {
        var tmp4_safe_receiver = this$0.cachedFallbackFile_1;
        var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver[id];
        tmp_1 = tmp5_safe_receiver == null ? null : toString(tmp5_safe_receiver);
      } else {
        tmp_1 = tmp6_elvis_lhs;
      }
      var tmp7_elvis_lhs = tmp_1;
      var tmp_2;
      if (tmp7_elvis_lhs == null) {
        var message_0 = id + ' string resource not found';
        throw IllegalStateException_init_$Create$(toString(message_0));
      } else {
        tmp_2 = tmp7_elvis_lhs;
      }
      return tmp_2;
    };
  }
  function $loadLocalizationFileCOROUTINE$3(_this__u8e3s4, fileUri, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this._this__u8e3s4__1 = _this__u8e3s4;
    this.fileUri_1 = fileUri;
  }
  protoOf($loadLocalizationFileCOROUTINE$3).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(3);
            this.set_state_rjd8d0_k$(1);
            suspendResult = await_0(window.fetch(this.fileUri_1), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.response0__1 = suspendResult;
            if (!this.response0__1.ok) {
              var message = 'response not ok for ' + this.fileUri_1 + ' - ' + this.response0__1.statusText + ' ' + this.response0__1.body;
              throw IllegalStateException_init_$Create$(toString(message));
            }

            this.set_state_rjd8d0_k$(2);
            suspendResult = await_0(this.response0__1.json(), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            var json = (suspendResult == null ? true : !(suspendResult == null)) ? suspendResult : THROW_CCE();
            var tmp_0;
            if (json == null) {
              var message_0 = 'Could not read json at ' + this.fileUri_1;
              throw IllegalStateException_init_$Create$(toString(message_0));
            } else {
              tmp_0 = json;
            }

            return tmp_0;
          case 3:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 3) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function $getOrLoadCOROUTINE$4(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this._this__u8e3s4__1 = _this__u8e3s4;
  }
  protoOf($getOrLoadCOROUTINE$4).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            suspendResult = coroutineScope(RemoteJsStringLoader$Impl$getOrLoad$slambda_0(this._this__u8e3s4__1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var tmp_0 = RemoteJsStringLoader$Impl$getOrLoad$lambda(this._this__u8e3s4__1);
            return new sam$dev_icerock_moko_resources_provider_JsStringProvider$0(tmp_0);
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function $downloadLocaleFileCOROUTINE$5(_this__u8e3s4, locale, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this._this__u8e3s4__1 = _this__u8e3s4;
    this.locale_1 = locale;
  }
  protoOf($downloadLocaleFileCOROUTINE$5).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            if (!(this._this__u8e3s4__1.cachedLocalizationFiles_1.get_wei43m_k$(this.locale_1.get_locale_g9dqar_k$()) == null))
              return Unit_getInstance();
            var tmp_0 = this;
            tmp_0.this0__1 = this._this__u8e3s4__1.cachedLocalizationFiles_1;
            var tmp_1 = this;
            tmp_1.key1__1 = this.locale_1.get_locale_g9dqar_k$();
            this.set_state_rjd8d0_k$(1);
            suspendResult = loadLocalizationFile(this._this__u8e3s4__1, this.locale_1.get_fileUrl_cvhvo6_k$(), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var value = suspendResult;
            this.this0__1.put_4fpzoq_k$(this.key1__1, value);
            return Unit_getInstance();
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function $downloadFallbackFileCOROUTINE$6(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this._this__u8e3s4__1 = _this__u8e3s4;
  }
  protoOf($downloadFallbackFileCOROUTINE$6).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            if (!(this._this__u8e3s4__1.cachedFallbackFile_1 == null))
              return Unit_getInstance();
            this.set_state_rjd8d0_k$(1);
            suspendResult = loadLocalizationFile(this._this__u8e3s4__1, this._this__u8e3s4__1.fallbackFileUri_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            this._this__u8e3s4__1.cachedFallbackFile_1 = ARGUMENT;
            return Unit_getInstance();
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda($it, resultContinuation) {
    this.$it_1 = $it;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda).invoke_yfdx9i_k$ = function ($this$async, $completion) {
    var tmp = this.create_rcuf4x_k$($this$async, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
    return this.invoke_yfdx9i_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            suspendResult = this.$it_1.getOrLoad_qcgnvx_k$(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda).create_rcuf4x_k$ = function ($this$async, completion) {
    var i = new RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda(this.$it_1, completion);
    i.$this$async_1 = $this$async;
    return i;
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda).create_wyq9v6_k$ = function (value, completion) {
    return this.create_rcuf4x_k$((!(value == null) ? isInterface(value, CoroutineScope) : false) ? value : THROW_CCE(), completion);
  };
  function RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda_0($it, resultContinuation) {
    var i = new RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda($it, resultContinuation);
    var l = function ($this$async, $completion) {
      return i.invoke_yfdx9i_k$($this$async, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function RemoteJsStringLoader$Composition$getOrLoad$slambda(this$0, resultContinuation) {
    this.this$0__1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda).invoke_i7wo98_k$ = function ($this$coroutineScope, $completion) {
    var tmp = this.create_rcuf4x_k$($this$coroutineScope, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
    return this.invoke_i7wo98_k$((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            var this_0 = this.this$0__1.loaders_1;
            var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
            var tmp0_iterator = this_0.iterator_jk1svi_k$();
            while (tmp0_iterator.hasNext_bitz1p_k$()) {
              var item = tmp0_iterator.next_20eer_k$();
              destination.add_utx5q5_k$(async(this.$this$coroutineScope_1, VOID, VOID, RemoteJsStringLoader$Composition$getOrLoad$slambda$slambda_0(item, null)));
            }

            suspendResult = awaitAll(destination, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda).create_rcuf4x_k$ = function ($this$coroutineScope, completion) {
    var i = new RemoteJsStringLoader$Composition$getOrLoad$slambda(this.this$0__1, completion);
    i.$this$coroutineScope_1 = $this$coroutineScope;
    return i;
  };
  protoOf(RemoteJsStringLoader$Composition$getOrLoad$slambda).create_wyq9v6_k$ = function (value, completion) {
    return this.create_rcuf4x_k$((!(value == null) ? isInterface(value, CoroutineScope) : false) ? value : THROW_CCE(), completion);
  };
  function RemoteJsStringLoader$Composition$getOrLoad$slambda_0(this$0, resultContinuation) {
    var i = new RemoteJsStringLoader$Composition$getOrLoad$slambda(this$0, resultContinuation);
    var l = function ($this$coroutineScope, $completion) {
      return i.invoke_i7wo98_k$($this$coroutineScope, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $getOrLoadCOROUTINE$7(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this._this__u8e3s4__1 = _this__u8e3s4;
  }
  protoOf($getOrLoadCOROUTINE$7).doResume_5yljmg_k$ = function () {
    var suspendResult = this.get_result_iyg5d2_k$();
    $sm: do
      try {
        var tmp = this.get_state_iypx7s_k$();
        switch (tmp) {
          case 0:
            this.set_exceptionState_fex74n_k$(2);
            this.set_state_rjd8d0_k$(1);
            suspendResult = coroutineScope(RemoteJsStringLoader$Composition$getOrLoad$slambda_0(this._this__u8e3s4__1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var providers = suspendResult;
            var iterator = providers.iterator_jk1svi_k$();
            if (!iterator.hasNext_bitz1p_k$())
              throw UnsupportedOperationException_init_$Create$("Empty collection can't be reduced.");
            var accumulator = iterator.next_20eer_k$();
            while (iterator.hasNext_bitz1p_k$()) {
              var acc = accumulator;
              var jsStringProvider = iterator.next_20eer_k$();
              accumulator = acc.plus_pzh6i7_k$(jsStringProvider);
            }

            return accumulator;
          case 2:
            throw this.get_exception_x0n6w6_k$();
        }
      } catch ($p) {
        var e = $p;
        if (this.get_exceptionState_wflpxn_k$() === 2) {
          throw e;
        } else {
          this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$());
          this.set_exception_px07aa_k$(e);
        }
      }
     while (true);
  };
  function Impl(supportedLocales, fallbackFileUri) {
    this.supportedLocales_1 = supportedLocales;
    this.fallbackFileUri_1 = fallbackFileUri;
    var tmp = this;
    // Inline function 'kotlin.collections.mutableMapOf' call
    tmp.cachedLocalizationFiles_1 = LinkedHashMap_init_$Create$();
    this.cachedFallbackFile_1 = null;
  }
  protoOf(Impl).getOrLoad_qcgnvx_k$ = function ($completion) {
    var tmp = new $getOrLoadCOROUTINE$4(this, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  function Composition(loaders) {
    this.loaders_1 = loaders;
  }
  protoOf(Composition).get_loaders_6tzgev_k$ = function () {
    return this.loaders_1;
  };
  protoOf(Composition).getOrLoad_qcgnvx_k$ = function ($completion) {
    var tmp = new $getOrLoadCOROUTINE$7(this, $completion);
    tmp.set_result_xj64lm_k$(Unit_getInstance());
    tmp.set_exception_px07aa_k$(null);
    return tmp.doResume_5yljmg_k$();
  };
  function RemoteJsStringLoader() {
  }
  function Companion_0() {
    Companion_instance_0 = this;
  }
  protoOf(Companion_0).loader_9isunm_k$ = function (builder) {
    // Inline function 'kotlin.apply' call
    var this_0 = new RemoteJsStringLoaderBuilder();
    // Inline function 'kotlin.contracts.contract' call
    builder(this_0);
    return this_0.build_1k0s4u_k$();
  };
  protoOf(Companion_0).load_4gwdu7_k$ = function (builder, $completion) {
    return this.loader_9isunm_k$(builder).getOrLoad_qcgnvx_k$($completion);
  };
  var Companion_instance_0;
  function Companion_getInstance_1() {
    if (Companion_instance_0 == null)
      new Companion_0();
    return Companion_instance_0;
  }
  function sam$dev_icerock_moko_resources_provider_JsStringProvider$0_0(function_0) {
    this.function_1 = function_0;
  }
  protoOf(sam$dev_icerock_moko_resources_provider_JsStringProvider$0_0).provideString_2xwqld_k$ = function (id, locale) {
    return this.function_1(id, locale);
  };
  function JsStringProvider$plus$lambda(this$0, $other) {
    return function (id, locale) {
      // Inline function 'kotlin.getOrThrow' call
      // Inline function 'kotlin.recover' call
      // Inline function 'kotlin.runCatching' call
      var this_0 = this$0;
      var tmp;
      try {
        // Inline function 'kotlin.Companion.success' call
        Companion_getInstance();
        // Inline function 'dev.icerock.moko.resources.provider.JsStringProvider.plus.<anonymous>.<anonymous>' call
        var value = this_0.provideString_2xwqld_k$(id, locale);
        tmp = _Result___init__impl__xyqfz8(value);
      } catch ($p) {
        var tmp_0;
        if ($p instanceof Error) {
          var e = $p;
          // Inline function 'kotlin.Companion.failure' call
          Companion_getInstance();
          tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
        } else {
          throw $p;
        }
        tmp = tmp_0;
      }
      var this_1 = tmp;
      // Inline function 'kotlin.contracts.contract' call
      var exception = Result__exceptionOrNull_impl_p6xea9(this_1);
      var tmp_1;
      if (exception == null) {
        tmp_1 = this_1;
      } else {
        // Inline function 'kotlin.Companion.success' call
        Companion_getInstance();
        // Inline function 'dev.icerock.moko.resources.provider.JsStringProvider.plus.<anonymous>.<anonymous>' call
        var value_0 = $other.provideString_2xwqld_k$(id, locale);
        tmp_1 = _Result___init__impl__xyqfz8(value_0);
      }
      var this_2 = tmp_1;
      throwOnFailure(this_2);
      var tmp_2 = _Result___get_value__impl__bjfvqg(this_2);
      return (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
    };
  }
  function JsStringProvider() {
  }
  function _get_supportedLocales__hr5f8g_0($this) {
    return $this.supportedLocales_1;
  }
  function RemoteJsStringLoaderBuilder() {
    var tmp = this;
    // Inline function 'kotlin.collections.mutableListOf' call
    tmp.supportedLocales_1 = ArrayList_init_$Create$();
  }
  protoOf(RemoteJsStringLoaderBuilder).set_fallbackFileUri_271tev_k$ = function (_set____db54di) {
    this.fallbackFileUri_1 = _set____db54di;
  };
  protoOf(RemoteJsStringLoaderBuilder).get_fallbackFileUri_mi4un9_k$ = function () {
    var tmp = this.fallbackFileUri_1;
    if (!(tmp == null))
      return tmp;
    else {
      throwUninitializedPropertyAccessException('fallbackFileUri');
    }
  };
  protoOf(RemoteJsStringLoaderBuilder).locale_ofikhi_k$ = function (name, fileUri) {
    // Inline function 'kotlin.collections.plusAssign' call
    var this_0 = this.supportedLocales_1;
    var element = new SupportedLocale(name, fileUri);
    this_0.add_utx5q5_k$(element);
  };
  protoOf(RemoteJsStringLoaderBuilder).build_1k0s4u_k$ = function () {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!!(this.fallbackFileUri_1 == null)) {
      // Inline function 'dev.icerock.moko.resources.provider.RemoteJsStringLoaderBuilder.build.<anonymous>' call
      var message = 'Fallback file uri was not initialized';
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    return new Impl(new SupportedLocales(this.supportedLocales_1), this.get_fallbackFileUri_mi4un9_k$());
  };
  //region block: post-declaration
  protoOf(sam$dev_icerock_moko_resources_provider_JsStringProvider$0).plus_pzh6i7_k$ = plus_1;
  protoOf(Impl).plus_tu7pk7_k$ = plus_2;
  protoOf(Composition).plus_tu7pk7_k$ = plus_2;
  protoOf(sam$dev_icerock_moko_resources_provider_JsStringProvider$0_0).plus_pzh6i7_k$ = plus_1;
  //endregion
  //region block: init
  cachedLocale = null;
  MEDIA_DARK_SCHEME = '(prefers-color-scheme: dark)';
  //endregion
  //region block: exports
  _.$_$ = _.$_$ || {};
  _.$_$.a = RemoteJsStringLoaderHolder;
  _.$_$.b = SupportedLocales;
  _.$_$.c = SupportedLocale;
  _.$_$.d = Impl;
  _.$_$.e = ColorResource;
  _.$_$.f = ImageResource;
  _.$_$.g = PluralsResource;
  _.$_$.h = ResourceContainer;
  _.$_$.i = StringResource;
  _.$_$.j = format;
  //endregion
  return _;
}(module.exports, require('@messageformat/core'), require('bcp-47'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js')));

//# sourceMappingURL=moko-resources-resources.js.map
