var H5P = H5P || {};

/**
 * Constructor.
 *
 * @param {Object} params Options for this library.
 * @param {Number} id Content identifier
 * @returns {undefined}
 */
(function ($) {
  H5P.Image = function (params, id, extras) {
    H5P.EventDispatcher.call(this);
    this.extras = extras;

    if (params.file === undefined || !(params.file instanceof Object)) {
      this.placeholder = true;
    }
    else {
      this.source = H5P.getPath(params.file.path, id);
      this.width = params.file.width;
      this.height = params.file.height;
    }

    this.alt = (!params.decorative && params.alt !== undefined) ?
      this.stripHTML(this.htmlDecode(params.alt)) :
      '';

    if (params.title !== undefined) {
      this.title = this.stripHTML(this.htmlDecode(params.title));
    }
  };

  H5P.Image.prototype = Object.create(H5P.EventDispatcher.prototype);
  H5P.Image.prototype.constructor = H5P.Image;

  /**
   * Wipe out the content of the wrapper and put our HTML in it.
   *
   * @param {jQuery} $wrapper
   * @returns {undefined}
   */
  H5P.Image.prototype.attach = function ($wrapper) {
    var self = this;
    var source = this.source;

    if (self.$img === undefined) {
      if(self.placeholder) {
        self.$img = $('<div>', {
          width: '100%',
          height: '100%',
          class: 'h5p-placeholder',
          title: this.title === undefined ? '' : this.title,
          on: {
            load: function () {
              self.trigger('loaded');
            }
          }
        });
      } else {
        self.$img = $('<img>', {
          width: '100%',
          height: '100%',
          src: source,
          alt: this.alt,
          title: this.title === undefined ? '' : this.title,
          on: {
            load: function () {
              self.trigger('loaded');
            }
          }
        });
      }
    }

    $wrapper.addClass('h5p-image').html(self.$img);
  };

  /**
   * Retrieve decoded HTML encoded string.
   *
   * @param {string} input HTML encoded string.
   * @returns {string} Decoded string.
   */
  H5P.Image.prototype.htmlDecode = function (input) {
    const dparser = new DOMParser().parseFromString(input, 'text/html');
    return dparser.documentElement.textContent;
  };

  /**
   * Retrieve string without HTML tags.
   *
   * @param {string} input Input string.
   * @returns {string} Output string.
   */
  H5P.Image.prototype.stripHTML = function (html) {
    const div = document.createElement('div');
    div.innerHTML = html;
    return div.textContent || div.innerText || '';
  };

  return H5P.Image;
}(H5P.jQuery));
;H5P.Column = (function (EventDispatcher) {

  /**
   * Column Constructor
   *
   * @class
   * @param {Object} params Describes task behavior
   * @param {number} id Content identifier
   * @param {Object} data User specific data to adapt behavior
   */
  function Column(params, id, data) {
    /** @alias H5P.Column# */
    var self = this;

    // We support events by extending this class
    EventDispatcher.call(self);

    // Add defaults
    params = params || {};
    if (params.useSeparators === undefined) {
      params.useSeparators = true;
    }

    this.contentData = data;

    // Column wrapper element
    var wrapper;

    // H5P content in the column
    var instances = [];
    var instanceContainers = [];

    // Number of tasks among instances
    var numTasks = 0;

    // Number of tasks that has been completed
    var numTasksCompleted = 0;

    // Keep track of result for each task
    var tasksResultEvent = [];

    // Keep track of last content's margin state
    var previousHasMargin;

    /**
     * Calculate score and trigger completed event.
     *
     * @private
     */
    var completed = function () {
      // Sum all scores
      var raw = 0;
      var max = 0;

      for (var i = 0; i < tasksResultEvent.length; i++) {
        var event = tasksResultEvent[i];
        raw += event.getScore();
        max += event.getMaxScore();
      }

      self.triggerXAPIScored(raw, max, 'completed');
    };

    /**
     * Generates an event handler for the given task index.
     *
     * @private
     * @param {number} taskIndex
     * @return {function} xAPI event handler
     */
    var trackScoring = function (taskIndex) {
      return function (event) {
        if (event.getScore() === null) {
          return; // Skip, not relevant
        }

        if (tasksResultEvent[taskIndex] === undefined) {
          // Update number of completed tasks
          numTasksCompleted++;
        }

        // Keep track of latest event with result
        tasksResultEvent[taskIndex] = event;

        // Track progress
        var progressed = self.createXAPIEventTemplate('progressed');
        progressed.data.statement.object.definition.extensions['http://id.tincanapi.com/extension/ending-point'] = taskIndex + 1;
        self.trigger(progressed);

        // Check to see if we're done
        if (numTasksCompleted === numTasks) {
          // Run this after the current event is sent
          setTimeout(function () {
            completed(); // Done
          }, 0);
        }
      };
    };

    /**
     * Creates a new ontent instance from the given content parameters and
     * then attaches it the wrapper. Sets up event listeners.
     *
     * @private
     * @param {Object} content Parameters
     * @param {Object} [contentData] Content Data
     */
    var addRunnable = function (content, contentData) {
      // Create container for content
      var container = document.createElement('div');
      container.classList.add('h5p-column-content');

      // Content overrides
      var library = content.library.split(' ')[0];
      if (library === 'H5P.Video') {
        // Prevent video from growing endlessly since height is unlimited.
        content.params.visuals.fit = false;
      }

      // Create content instance
      var instance = H5P.newRunnable(content, id, undefined, true, contentData);

      // Bubble resize events
      bubbleUp(instance, 'resize', self);

      // Check if instance is a task
      if (Column.isTask(instance)) {
        // Tasks requires completion

        instance.on('xAPI', trackScoring(numTasks));
        numTasks++;
      }

      if (library === 'H5P.Image') {
        // Resize when images are loaded

        instance.on('loaded', function () {
          self.trigger('resize');
        });
      }

      // Keep track of all instances
      instances.push(instance);
      instanceContainers.push({
        hasAttached: false,
        container: container,
        instanceIndex: instances.length - 1,
      });

      // Add to DOM wrapper
      wrapper.appendChild(container);
    };

    /**
     * Help get data for content at given index
     *
     * @private
     * @param {number} index
     * @returns {Object} Data object with previous state
     */
    var grabContentData = function (index) {
      var contentData = {
        parent: self
      };

      if (data.previousState && data.previousState.instances && data.previousState.instances[index]) {
        contentData.previousState = data.previousState.instances[index];
      }

      return contentData;
    };

    /**
     * Adds separator before the next content.
     *
     * @private
     * @param {string} libraryName Name of the next content type
     * @param {string} useSeparator
     */
    var addSeparator = function (libraryName, useSeparator) {
      // Determine separator spacing
      var thisHasMargin = (hasMargins.indexOf(libraryName) !== -1);

      // Only add if previous content exists
      if (previousHasMargin !== undefined) {

        // Create separator element
        var separator = document.createElement('div');
        //separator.classList.add('h5p-column-ruler');

        // If no margins, check for top margin only
        if (!thisHasMargin && (hasTopMargins.indexOf(libraryName) === -1)) {
          if (!previousHasMargin) {
            // None of them have margin

            // Only add separator if forced
            if (useSeparator === 'enabled') {
              // Add ruler
              separator.classList.add('h5p-column-ruler');

              // Add space both before and after the ruler
              separator.classList.add('h5p-column-space-before-n-after');
            }
            else {
              // Default is to separte using a single space, no ruler
              separator.classList.add('h5p-column-space-before');
            }
          }
          else {
            // We don't have any margin but the previous content does

            // Only add separator if forced
            if (useSeparator === 'enabled') {
              // Add ruler
              separator.classList.add('h5p-column-ruler');

              // Add space after the ruler
              separator.classList.add('h5p-column-space-after');
            }
          }
        }
        else if (!previousHasMargin) {
          // We have margin but not the previous content doesn't

          // Only add separator if forced
          if (useSeparator === 'enabled') {
            // Add ruler
            separator.classList.add('h5p-column-ruler');

            // Add space after the ruler
            separator.classList.add('h5p-column-space-before');
          }
        }
        else {
          // Both already have margin

          if (useSeparator !== 'disabled') {
            // Default is to add ruler unless its disabled
            separator.classList.add('h5p-column-ruler');
          }
        }

        // Insert into DOM
        wrapper.appendChild(separator);
      }

      // Keep track of spacing for next separator
      previousHasMargin = thisHasMargin || (hasBottomMargins.indexOf(libraryName) !== -1);
    };

    /**
     * Creates a wrapper and the column content the first time the column
     * is attached to the DOM.
     *
     * @private
     */
    var createHTML = function () {
      // Create wrapper
      wrapper = document.createElement('div');

      // Go though all contents
      for (var i = 0; i < params.content.length; i++) {
        var content = params.content[i];

        // In case the author has created an element without selecting any
        // library
        if (content.content === undefined) {
          continue;
        }

        if (params.useSeparators) { // (check for global override)

          // Add separator between contents
          addSeparator(content.content.library.split(' ')[0], content.useSeparator);
        }

        // Add content
        addRunnable(content.content, grabContentData(i));
      }
    };

    /**
     * Attach the column to the given container
     *
     * @param {H5P.jQuery} $container
     */
    self.attach = function ($container) {
      if (wrapper === undefined) {
        // Create wrapper and content
        createHTML();
      }

      // Attach instances that have not been attached
      instanceContainers.filter(function (container) { return !container.hasAttached })
        .forEach(function (container) {
          instances[container.instanceIndex]
            .attach(H5P.jQuery(container.container));

          // Remove any fullscreen buttons
          disableFullscreen(instances[container.instanceIndex]);
        });


      // Add to DOM
      $container.addClass('h5p-column').html('').append(wrapper);
    };

    /**
     * Create object containing information about the current state
     * of this content.
     *
     * @return {Object}
     */
    self.getCurrentState = function () {
      // Get previous state object or create new state object
      var state = (data.previousState ? data.previousState : {});
      if (!state.instances) {
        state.instances = [];
      }

      // Grab the current state for each instance
      for (var i = 0; i < instances.length; i++) {
        var instance = instances[i];

        if (instance.getCurrentState instanceof Function ||
            typeof instance.getCurrentState === 'function') {

          state.instances[i] = instance.getCurrentState();
        }
      }

      // Done
      return state;
    };

    /**
     * Get xAPI data.
     * Contract used by report rendering engine.
     *
     * @see contract at {@link https://h5p.org/documentation/developers/contracts#guides-header-6}
     */
    self.getXAPIData = function () {
      var xAPIEvent = self.createXAPIEventTemplate('answered');
      addQuestionToXAPI(xAPIEvent);
      xAPIEvent.setScoredResult(self.getScore(),
        self.getMaxScore(),
        self,
        true,
        self.getScore() === self.getMaxScore()
      );
      return {
        statement: xAPIEvent.data.statement,
        children: getXAPIDataFromChildren(instances)
      };
    };

    /**
     * Get score for all children
     * Contract used for getting the complete score of task.
     *
     * @return {number} Score for questions
     */
    self.getScore = function () {
      return instances.reduce(function (prev, instance) {
        return prev + (instance.getScore ? instance.getScore() : 0);
      }, 0);
    };

    /**
     * Get maximum score possible for all children instances
     * Contract.
     *
     * @return {number} Maximum score for questions
     */
    self.getMaxScore = function () {
      return instances.reduce(function (prev, instance) {
        return prev + (instance.getMaxScore ? instance.getMaxScore() : 0);
      }, 0);
    };

    /**
     * Get answer given
     * Contract.
     *
     * @return {boolean} True, if all answers have been given.
     */
    self.getAnswerGiven = function () {
      return instances.reduce(function (prev, instance) {
        return prev && (instance.getAnswerGiven ? instance.getAnswerGiven() : prev);
      }, true);
    };

    /**
     * Show solutions.
     * Contract.
     */
    self.showSolutions = function () {
      instances.forEach(function (instance) {
        if (instance.toggleReadSpeaker) {
          instance.toggleReadSpeaker(true);
        }
        if (instance.showSolutions) {
          instance.showSolutions();
        }
        if (instance.toggleReadSpeaker) {
          instance.toggleReadSpeaker(false);
        }
      });
    };

    /**
     * Reset task.
     * Contract.
     */
    self.resetTask = function () {
      instances.forEach(function (instance) {
        if (instance.resetTask) {
          instance.resetTask();
        }
      });
    };

    /**
     * Get instances for all children
     * TODO: This is not a good interface, we should provide handling needed
     * handling of the tasks instead of repeating them for each parent...
     *
     * @return {Object[]} array of instances
     */
    self.getInstances = function () {
      return instances;
    };

    /**
     * Get title, e.g. for xAPI when Column is subcontent.
     *
     * @return {string} Title.
     */
    self.getTitle = function () {
      return H5P.createTitle((self.contentData && self.contentData.metadata && self.contentData.metadata.title) ? self.contentData.metadata.title : 'Column');
    };

    /**
     * Add the question itself to the definition part of an xAPIEvent
     */
    var addQuestionToXAPI = function (xAPIEvent) {
      var definition = xAPIEvent.getVerifiedStatementValue(['object', 'definition']);
      H5P.jQuery.extend(definition, getxAPIDefinition());
    };

    /**
     * Generate xAPI object definition used in xAPI statements.
     * @return {Object}
     */
    var getxAPIDefinition = function () {
      var definition = {};

      definition.interactionType = 'compound';
      definition.type = 'http://adlnet.gov/expapi/activities/cmi.interaction';
      definition.description = {
        'en-US': ''
      };

      return definition;
    };

    /**
     * Get xAPI data from sub content types
     *
     * @param {Array} of H5P instances
     * @returns {Array} of xAPI data objects used to build a report
     */
    var getXAPIDataFromChildren = function (children) {
      return children.map(function (child) {
        if (typeof child.getXAPIData == 'function') {
          return child.getXAPIData();
        }
      }).filter(function (data) {
        return !!data;
      });
    };

    // Resize children to fit inside parent
    bubbleDown(self, 'resize', instances);

    if (wrapper === undefined) {
      // Create wrapper and content
      createHTML();
    }

    self.setActivityStarted();
  }

  Column.prototype = Object.create(EventDispatcher.prototype);
  Column.prototype.constructor = Column;

  /**
   * Makes it easy to bubble events from parent to children
   *
   * @private
   * @param {Object} origin Origin of the Event
   * @param {string} eventName Name of the Event
   * @param {Array} targets Targets to trigger event on
   */
  function bubbleDown(origin, eventName, targets) {
    origin.on(eventName, function (event) {
      if (origin.bubblingUpwards) {
        return; // Prevent send event back down.
      }

      for (var i = 0; i < targets.length; i++) {
        targets[i].trigger(eventName, event);
      }
    });
  }

  /**
   * Makes it easy to bubble events from child to parent
   *
   * @private
   * @param {Object} origin Origin of the Event
   * @param {string} eventName Name of the Event
   * @param {Object} target Target to trigger event on
   */
  function bubbleUp(origin, eventName, target) {
    origin.on(eventName, function (event) {
      // Prevent target from sending event back down
      target.bubblingUpwards = true;

      // Trigger event
      target.trigger(eventName, event);

      // Reset
      target.bubblingUpwards = false;
    });
  }

  /**
   * Definition of which content types are tasks
   */
  var isTasks = [
    'H5P.ImageHotspotQuestion',
    'H5P.Blanks',
    'H5P.Essay',
    'H5P.SingleChoiceSet',
    'H5P.MultiChoice',
    'H5P.TrueFalse',
    'H5P.DragQuestion',
    'H5P.Summary',
    'H5P.DragText',
    'H5P.MarkTheWords',
    'H5P.MemoryGame',
    'H5P.QuestionSet',
    'H5P.InteractiveVideo',
    'H5P.CoursePresentation',
    'H5P.DocumentationTool',
    'H5P.MultiMediaChoice'
  ];

  /**
   * Check if the given content instance is a task (will give a score)
   *
   * @param {Object} instance
   * @return {boolean}
   */
  Column.isTask = function (instance) {
    if (instance.isTask !== undefined) {
      return instance.isTask; // Content will determine self if it's a task
    }

    // Go through the valid task names
    for (var i = 0; i < isTasks.length; i++) {
      // Check against library info. (instanceof is broken in H5P.newRunnable)
      if (instance.libraryInfo.machineName === isTasks[i]) {
        return true;
      }
    }

    return false;
  }

  /**
   * Definition of which content type have margins
   */
  var hasMargins = [
    'H5P.AdvancedText',
    'H5P.AudioRecorder',
    'H5P.Essay',
    'H5P.Link',
    'H5P.Accordion',
    'H5P.Table',
    'H5P.GuessTheAnswer',
    'H5P.Blanks',
    'H5P.MultiChoice',
    'H5P.TrueFalse',
    'H5P.DragQuestion',
    'H5P.Summary',
    'H5P.DragText',
    'H5P.MarkTheWords',
    'H5P.ImageHotspotQuestion',
    'H5P.MemoryGame',
    'H5P.Dialogcards',
    'H5P.QuestionSet',
    'H5P.DocumentationTool'
  ];

  /**
   * Definition of which content type have top margins
   */
  var hasTopMargins = [
    'H5P.SingleChoiceSet'
  ];

  /**
   * Definition of which content type have bottom margins
   */
  var hasBottomMargins = [
    'H5P.CoursePresentation',
    'H5P.Dialogcards',
    'H5P.GuessTheAnswer',
    'H5P.ImageSlider'
  ];

  /**
   * Remove custom fullscreen buttons from sub content.
   * (A bit of a hack, there should have been some sort of override…)
   *
   * @param {Object} instance
   */
  function disableFullscreen(instance) {
    switch (instance.libraryInfo.machineName) {
      case 'H5P.CoursePresentation':
        if (instance.$fullScreenButton) {
          instance.$fullScreenButton.remove();
        }
        break;

      case 'H5P.InteractiveVideo':
        instance.on('controls', function () {
          if (instance.controls.$fullscreen) {
            instance.controls.$fullscreen.remove();
          }
        });
        break;
    }
  }

  return Column;
})(H5P.EventDispatcher);
;var H5P = H5P || {};
/**
 * Transition contains helper function relevant for transitioning
 */
H5P.Transition = (function ($) {

  /**
   * @class
   * @namespace H5P
   */
  Transition = {};

  /**
   * @private
   */
  Transition.transitionEndEventNames = {
    'WebkitTransition': 'webkitTransitionEnd',
    'transition':       'transitionend',
    'MozTransition':    'transitionend',
    'OTransition':      'oTransitionEnd',
    'msTransition':     'MSTransitionEnd'
  };

  /**
   * @private
   */
  Transition.cache = [];

  /**
   * Get the vendor property name for an event
   *
   * @function H5P.Transition.getVendorPropertyName
   * @static
   * @private
   * @param  {string} prop Generic property name
   * @return {string}      Vendor specific property name
   */
  Transition.getVendorPropertyName = function (prop) {

    if (Transition.cache[prop] !== undefined) {
      return Transition.cache[prop];
    }

    var div = document.createElement('div');

    // Handle unprefixed versions (FF16+, for example)
    if (prop in div.style) {
      Transition.cache[prop] = prop;
    }
    else {
      var prefixes = ['Moz', 'Webkit', 'O', 'ms'];
      var prop_ = prop.charAt(0).toUpperCase() + prop.substr(1);

      if (prop in div.style) {
        Transition.cache[prop] = prop;
      }
      else {
        for (var i = 0; i < prefixes.length; ++i) {
          var vendorProp = prefixes[i] + prop_;
          if (vendorProp in div.style) {
            Transition.cache[prop] = vendorProp;
            break;
          }
        }
      }
    }

    return Transition.cache[prop];
  };

  /**
   * Get the name of the transition end event
   *
   * @static
   * @private
   * @return {string}  description
   */
  Transition.getTransitionEndEventName = function () {
    return Transition.transitionEndEventNames[Transition.getVendorPropertyName('transition')] || undefined;
  };

  /**
   * Helper function for listening on transition end events
   *
   * @function H5P.Transition.onTransitionEnd
   * @static
   * @param  {domElement} $element The element which is transitioned
   * @param  {function} callback The callback to be invoked when transition is finished
   * @param  {number} timeout  Timeout in milliseconds. Fallback if transition event is never fired
   */
  Transition.onTransitionEnd = function ($element, callback, timeout) {
    // Fallback on 1 second if transition event is not supported/triggered
    timeout = timeout || 1000;
    Transition.transitionEndEventName = Transition.transitionEndEventName || Transition.getTransitionEndEventName();
    var callbackCalled = false;

    var doCallback = function () {
      if (callbackCalled) {
        return;
      }
      $element.off(Transition.transitionEndEventName, callback);
      callbackCalled = true;
      clearTimeout(timer);
      callback();
    };

    var timer = setTimeout(function () {
      doCallback();
    }, timeout);

    $element.on(Transition.transitionEndEventName, function () {
      doCallback();
    });
  };

  /**
   * Wait for a transition - when finished, invokes next in line
   *
   * @private
   *
   * @param {Object[]}    transitions             Array of transitions
   * @param {H5P.jQuery}  transitions[].$element  Dom element transition is performed on
   * @param {number=}     transitions[].timeout   Timeout fallback if transition end never is triggered
   * @param {bool=}       transitions[].break     If true, sequence breaks after this transition
   * @param {number}      index                   The index for current transition
   */
  var runSequence = function (transitions, index) {
    if (index >= transitions.length) {
      return;
    }

    var transition = transitions[index];
    H5P.Transition.onTransitionEnd(transition.$element, function () {
      if (transition.end) {
        transition.end();
      }
      if (transition.break !== true) {
        runSequence(transitions, index+1);
      }
    }, transition.timeout || undefined);
  };

  /**
   * Run a sequence of transitions
   *
   * @function H5P.Transition.sequence
   * @static
   * @param {Object[]}    transitions             Array of transitions
   * @param {H5P.jQuery}  transitions[].$element  Dom element transition is performed on
   * @param {number=}     transitions[].timeout   Timeout fallback if transition end never is triggered
   * @param {bool=}       transitions[].break     If true, sequence breaks after this transition
   */
  Transition.sequence = function (transitions) {
    runSequence(transitions, 0);
  };

  return Transition;
})(H5P.jQuery);
;var H5P = H5P || {};

/**
 * H5P audio module
 *
 * @external {jQuery} $ H5P.jQuery
 */
H5P.Audio = (function ($) {
  /**
  * @param {Object} params Options for this library.
  * @param {Number} id Content identifier.
  * @param {Object} extras Extras.
  * @returns {undefined}
  */
  function C(params, id, extras) {
    H5P.EventDispatcher.call(this);

    this.contentId = id;
    this.params = params;
    this.extras = extras;
    this.toggleButtonEnabled = true;

    // Retrieve previous state
    if (extras && extras.previousState !== undefined) {
      this.oldTime = extras.previousState.currentTime;
    }

    this.params = $.extend({}, {
      playerMode: 'minimalistic',
      fitToWrapper: false,
      controls: true,
      autoplay: false,
      audioNotSupported: "Your browser does not support this audio",
      playAudio: "Play audio",
      pauseAudio: "Pause audio",
      propagateButtonClickEvents: true
    }, params);

    // Required if e.g. used in CoursePresentation as area to click on
    if (this.params.playerMode === 'transparent') {
      this.params.fitToWrapper = true;
    }

    this.on('resize', this.resize, this);
  }

  C.prototype = Object.create(H5P.EventDispatcher.prototype);
  C.prototype.constructor = C;

  /**
   * Adds a minimalistic audio player with only "play" and "pause" functionality.
   *
   * @param {jQuery} $container Container for the player.
   * @param {boolean} transparentMode true: the player is only visible when hovering over it; false: player's UI always visible
   */
  C.prototype.addMinimalAudioPlayer = function ($container, transparentMode) {
    var INNER_CONTAINER = 'h5p-audio-inner';
    var AUDIO_BUTTON = 'h5p-audio-minimal-button';
    var PLAY_BUTTON = 'h5p-audio-minimal-play';
    var PLAY_BUTTON_PAUSED = 'h5p-audio-minimal-play-paused';
    var PAUSE_BUTTON = 'h5p-audio-minimal-pause';

    var self = this;
    this.$container = $container;

    self.$inner = $('<div/>', {
      'class': INNER_CONTAINER + (transparentMode ? ' h5p-audio-transparent' : '')
    }).appendTo($container);

    var audioButton = $('<button/>', {
      'class': AUDIO_BUTTON + " " + PLAY_BUTTON,
      'aria-label': this.params.playAudio
    }).appendTo(self.$inner)
      .click( function (event) {
        if (!self.params.propagateButtonClickEvents){
          event.stopPropagation();
        }

        if (!self.isEnabledToggleButton()) {
          return;
        }

        // Prevent ARIA from playing over audio on click
        this.setAttribute('aria-hidden', 'true');

        if (self.audio.paused) {
          self.play();
        }
        else {
          self.pause();
        }
      })
      .on('focusout', function () {
        // Restore ARIA, required when playing longer audio and tabbing out and back in
        this.setAttribute('aria-hidden', 'false');
      });

    // Fit to wrapper
    if (this.params.fitToWrapper) {
      audioButton.css({
        'width': '100%',
        'height': '100%'
      });
    }

    //Event listeners that change the look of the player depending on events.
    self.audio.addEventListener('ended', function () {
      audioButton
        .attr('aria-hidden', false)
        .attr('aria-label', self.params.playAudio)
        .removeClass(PAUSE_BUTTON)
        .removeClass(PLAY_BUTTON_PAUSED)
        .addClass(PLAY_BUTTON);
    });

    self.audio.addEventListener('play', function () {
      audioButton
        .attr('aria-label', self.params.pauseAudio)
        .removeClass(PLAY_BUTTON)
        .removeClass(PLAY_BUTTON_PAUSED)
        .addClass(PAUSE_BUTTON);
    });

    self.audio.addEventListener('pause', function () {
      // Don't override if initial look is set
      if (!audioButton.hasClass(PLAY_BUTTON)) {
        audioButton
          .attr('aria-hidden', false)
          .attr('aria-label', self.params.playAudio)
          .removeClass(PAUSE_BUTTON)
          .addClass(PLAY_BUTTON_PAUSED);
      }
    });

    H5P.Audio.MINIMAL_BUTTON = AUDIO_BUTTON + " " + PLAY_BUTTON;
    H5P.Audio.MINIMAL_BUTTON_PAUSED = AUDIO_BUTTON + " " + PLAY_BUTTON_PAUSED;

    this.$audioButton = audioButton;
    // Scale icon to container
    self.resize();
  };

  /**
   * Resizes the audio player icon when the wrapper is resized.
   */
  C.prototype.resize = function () {
    // Find the smallest value of height and width, and use it to choose the font size.
    if (this.params.fitToWrapper && this.$container && this.$container.width()) {
      var w = this.$container.width();
      var h = this.$container.height();
      if (w < h) {
        this.$audioButton.css({'font-size': w / 2 + 'px'});
      }
      else {
        this.$audioButton.css({'font-size': h / 2 + 'px'});
      }
    }
  };

  return C;
})(H5P.jQuery);

/**
 * Wipe out the content of the wrapper and put our HTML in it.
 *
 * @param {jQuery} $wrapper Our poor container.
 */
H5P.Audio.prototype.attach = function ($wrapper) {
  const self = this;
  $wrapper.addClass('h5p-audio-wrapper');

  // Check if browser supports audio.
  var audio = document.createElement('audio');
  if (audio.canPlayType === undefined) {
    this.attachNotSupportedMessage($wrapper);
    return;
  }

  // Add supported source files.
  if (this.params.files !== undefined && this.params.files instanceof Object) {
    for (var i = 0; i < this.params.files.length; i++) {
      var file = this.params.files[i];

      if (audio.canPlayType(file.mime)) {
        var source = document.createElement('source');
        source.src = H5P.getPath(file.path, this.contentId);
        source.type = file.mime;
        audio.appendChild(source);
      }
    }
  }

  if (!audio.children.length) {
    this.attachNotSupportedMessage($wrapper);
    return;
  }

  if (this.endedCallback !== undefined) {
    audio.addEventListener('ended', this.endedCallback, false);
  }

  audio.className = 'h5p-audio';
  audio.controls = this.params.controls === undefined ? true : this.params.controls;

  // Menu removed, because it's cut off if audio is used as H5P.Question intro
  const controlsList = 'nodownload noplaybackrate';
  audio.setAttribute('controlsList', controlsList);

  audio.preload = 'auto';
  audio.style.display = 'block';

  if (this.params.fitToWrapper === undefined || this.params.fitToWrapper) {
    audio.style.width = '100%';
    if (!this.isRoot()) {
      // Only set height if this isn't a root
      audio.style.height = '100%';
    }
  }

  this.audio = audio;

  if (this.params.playerMode === 'minimalistic') {
    audio.controls = false;
    this.addMinimalAudioPlayer($wrapper, false);
  }
  else if (this.params.playerMode === 'transparent') {
    audio.controls = false;
    this.addMinimalAudioPlayer($wrapper, true);
  }
  else {
    $wrapper.html(audio);
  }

  if (audio.controls) {
    $wrapper.addClass('h5p-audio-controls');
  }

  // Set time to saved time from previous run
  if (this.oldTime) {
    if (this.$audioButton) {
      this.$audioButton.attr('class', H5P.Audio.MINIMAL_BUTTON_PAUSED);
    }
    this.seekTo(this.oldTime);
  }

  // Avoid autoplaying in authoring tool
  if (window.H5PEditor === undefined) {
    // Keep record of autopauses.
    // I.e: we don't wanna autoplay if the user has excplicitly paused.
    self.autoPaused = true;

    // Set up intersection observer
    new IntersectionObserver(function (entries) {
      const entry = entries[0];

      if (entry.intersectionRatio == 0) {
        if (!self.audio.paused) {
          // Audio element is hidden, pause it
          self.autoPaused = true;
          self.audio.pause();
        }
      }
      else if (self.params.autoplay && self.autoPaused) {
        // Audio element is visible. Autoplay if autoplay is enabled and it was
        // not explicitly paused by a user
        self.autoPaused = false;
        self.play();
      }
    }, {
      root: document.documentElement,
      threshold: [0, 1] // Get events when it is shown and hidden
    }).observe($wrapper.get(0));
  }
};

/**
 * Attaches not supported message.
 *
 * @param {jQuery} $wrapper Our dear container.
 */
H5P.Audio.prototype.attachNotSupportedMessage = function ($wrapper) {
  $wrapper.addClass('h5p-audio-not-supported');
  $wrapper.html(
    '<div class="h5p-audio-inner">' +
      '<div class="h5p-audio-not-supported-icon"><span/></div>' +
      '<span>' + this.params.audioNotSupported + '</span>' +
    '</div>'
  );

  if (this.endedCallback !== undefined) {
    this.endedCallback();
  }
}

/**
 * Stop & reset playback.
 *
 * @returns {undefined}
 */
H5P.Audio.prototype.resetTask = function () {
  this.stop();
  this.seekTo(0);
  if (this.$audioButton) {
    this.$audioButton.attr('class', H5P.Audio.MINIMAL_BUTTON);
  }
};

/**
 * Stop the audio. TODO: Rename to pause?
 *
 * @returns {undefined}
 */
H5P.Audio.prototype.stop = function () {
  if (this.audio !== undefined) {
    this.audio.pause();
  }
};

/**
 * Play
 */
H5P.Audio.prototype.play = function () {
  if (this.audio !== undefined) {
    // play() returns a Promise that can fail, e.g. while autoplaying
    this.audio.play().catch((error) => {
      console.warn(error);
    });
  }
};

/**
 * @public
 * Pauses the audio.
 */
H5P.Audio.prototype.pause = function () {
  if (this.audio !== undefined) {
    this.audio.pause();
  }
};

/**
 * @public
 * Seek to audio position.
 *
 * @param {number} seekTo Time to seek to in seconds.
 */
H5P.Audio.prototype.seekTo = function (seekTo) {
  if (this.audio !== undefined) {
    this.audio.currentTime = seekTo;
  }
};

/**
 * @public
 * Get current state for resetting it later.
 *
 * @returns {object} Current state.
 */
H5P.Audio.prototype.getCurrentState = function () {
  if (this.audio !== undefined && this.audio.currentTime > 0) {
    const currentTime = this.audio.ended ? 0 : this.audio.currentTime;
    return {
      currentTime: currentTime
    };
  }
};

/**
 * @public
 * Disable button.
 * Not using disabled attribute to block button activation, because it will
 * implicitly set tabindex = -1 and confuse ChromeVox navigation. Clicks handled
 * using "pointer-events: none" in CSS.
 */
H5P.Audio.prototype.disableToggleButton = function () {
  this.toggleButtonEnabled = false;
  if (this.$audioButton) {
    this.$audioButton.addClass(H5P.Audio.BUTTON_DISABLED);
  }
};

/**
 * @public
 * Enable button.
 */
H5P.Audio.prototype.enableToggleButton = function () {
  this.toggleButtonEnabled = true;
  if (this.$audioButton) {
    this.$audioButton.removeClass(H5P.Audio.BUTTON_DISABLED);
  }
};

/**
 * @public
 * Check if button is enabled.
 * @return {boolean} True, if button is enabled. Else false.
 */
H5P.Audio.prototype.isEnabledToggleButton = function () {
  return this.toggleButtonEnabled;
};

/** @constant {string} */
H5P.Audio.BUTTON_DISABLED = 'h5p-audio-disabled';
;(()=>{var e={452:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{Z:()=>qi});const o=r("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function i(e){return!!e||""===e}function s(e){if(E(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=T(r)?l(r):s(r);if(o)for(const e in o)t[e]=o[e]}return t}return T(e)||P(e)?e:void 0}const a=/;(?![^(]*\))/g,c=/:(.+)/;function l(e){const t={};return e.split(a).forEach((e=>{if(e){const n=e.split(c);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function u(e){let t="";if(T(e))t=e;else if(E(e))for(let n=0;n<e.length;n++){const r=u(e[n]);r&&(t+=r+" ")}else if(P(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const p=e=>T(e)?e:null==e?"":E(e)||P(e)&&(e.toString===N||!j(e.toString))?JSON.stringify(e,f,2):String(e),f=(e,t)=>t&&t.__v_isRef?f(e,t.value):A(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:x(t)?{[`Set(${t.size})`]:[...t.values()]}:!P(t)||E(t)||I(t)?t:String(t),d={},h=[],y=()=>{},m=()=>!1,g=/^on[^a-z]/,v=e=>g.test(e),b=e=>e.startsWith("onUpdate:"),_=Object.assign,w=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,O=(e,t)=>S.call(e,t),E=Array.isArray,A=e=>"[object Map]"===L(e),x=e=>"[object Set]"===L(e),j=e=>"function"==typeof e,T=e=>"string"==typeof e,M=e=>"symbol"==typeof e,P=e=>null!==e&&"object"==typeof e,C=e=>P(e)&&j(e.then)&&j(e.catch),N=Object.prototype.toString,L=e=>N.call(e),I=e=>"[object Object]"===L(e),D=e=>T(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,R=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},U=/-(\w)/g,F=k((e=>e.replace(U,((e,t)=>t?t.toUpperCase():"")))),B=/\B([A-Z])/g,z=k((e=>e.replace(B,"-$1").toLowerCase())),V=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),G=k((e=>e?`on${V(e)}`:"")),H=(e,t)=>!Object.is(e,t),$=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},W=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},J=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let X;const Z=()=>X||(X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let q;class Q{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&q&&(this.parent=q,this.index=(q.scopes||(q.scopes=[])).push(this)-1)}run(e){if(this.active){const t=q;try{return q=this,e()}finally{q=t}}}on(){q=this}off(){q=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const K=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Y=e=>(e.w&oe)>0,ee=e=>(e.n&oe)>0,te=new WeakMap;let ne,re=0,oe=1;const ie=Symbol(""),se=Symbol("");class ae{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=q){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ne,t=le;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ne,ne=this,le=!0,oe=1<<++re,re<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=oe})(this):ce(this),this.fn()}finally{re<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Y(o)&&!ee(o)?o.delete(e):t[n++]=o,o.w&=~oe,o.n&=~oe}t.length=n}})(this),oe=1<<--re,ne=this.parent,le=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ne===this?this.deferStop=!0:this.active&&(ce(this),this.onStop&&this.onStop(),this.active=!1)}}function ce(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let le=!0;const ue=[];function pe(){ue.push(le),le=!1}function fe(){const e=ue.pop();le=void 0===e||e}function de(e,t,n){if(le&&ne){let t=te.get(e);t||te.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=K()),he(r)}}function he(e,t){let n=!1;re<=30?ee(e)||(e.n|=oe,n=!Y(e)):n=!e.has(ne),n&&(e.add(ne),ne.deps.push(e))}function ye(e,t,n,r,o,i){const s=te.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&E(e))s.forEach(((e,t)=>{("length"===t||t>=r)&&a.push(e)}));else switch(void 0!==n&&a.push(s.get(n)),t){case"add":E(e)?D(n)&&a.push(s.get("length")):(a.push(s.get(ie)),A(e)&&a.push(s.get(se)));break;case"delete":E(e)||(a.push(s.get(ie)),A(e)&&a.push(s.get(se)));break;case"set":A(e)&&a.push(s.get(ie))}if(1===a.length)a[0]&&me(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);me(K(e))}}function me(e,t){const n=E(e)?e:[...e];for(const e of n)e.computed&&ge(e);for(const e of n)e.computed||ge(e)}function ge(e,t){(e!==ne||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ve=r("__proto__,__v_isRef,__isVue"),be=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(M)),_e=Ae(),we=Ae(!1,!0),Se=Ae(!0),Oe=Ee();function Ee(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ct(this);for(let e=0,t=this.length;e<t;e++)de(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(ct)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){pe();const n=ct(this)[t].apply(this,e);return fe(),n}})),e}function Ae(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?et:Ye:t?Ke:Qe).get(n))return n;const i=E(n);if(!e&&i&&O(Oe,r))return Reflect.get(Oe,r,o);const s=Reflect.get(n,r,o);return(M(r)?be.has(r):ve(r))?s:(e||de(n,0,r),t?s:ft(s)?i&&D(r)?s:s.value:P(s)?e?nt(s):tt(s):s)}}function xe(e=!1){return function(t,n,r,o){let i=t[n];if(it(i)&&ft(i)&&!ft(r))return!1;if(!e&&!it(r)&&(st(r)||(r=ct(r),i=ct(i)),!E(t)&&ft(i)&&!ft(r)))return i.value=r,!0;const s=E(t)&&D(n)?Number(n)<t.length:O(t,n),a=Reflect.set(t,n,r,o);return t===ct(o)&&(s?H(r,i)&&ye(t,"set",n,r):ye(t,"add",n,r)),a}}const je={get:_e,set:xe(),deleteProperty:function(e,t){const n=O(e,t),r=(e[t],Reflect.deleteProperty(e,t));return r&&n&&ye(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return M(t)&&be.has(t)||de(e,0,t),n},ownKeys:function(e){return de(e,0,E(e)?"length":ie),Reflect.ownKeys(e)}},Te={get:Se,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Me=_({},je,{get:we,set:xe(!0)}),Pe=e=>e,Ce=e=>Reflect.getPrototypeOf(e);function Ne(e,t,n=!1,r=!1){const o=ct(e=e.__v_raw),i=ct(t);n||(t!==i&&de(o,0,t),de(o,0,i));const{has:s}=Ce(o),a=r?Pe:n?pt:ut;return s.call(o,t)?a(e.get(t)):s.call(o,i)?a(e.get(i)):void(e!==o&&e.get(t))}function Le(e,t=!1){const n=this.__v_raw,r=ct(n),o=ct(e);return t||(e!==o&&de(r,0,e),de(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ie(e,t=!1){return e=e.__v_raw,!t&&de(ct(e),0,ie),Reflect.get(e,"size",e)}function De(e){e=ct(e);const t=ct(this);return Ce(t).has.call(t,e)||(t.add(e),ye(t,"add",e,e)),this}function Re(e,t){t=ct(t);const n=ct(this),{has:r,get:o}=Ce(n);let i=r.call(n,e);i||(e=ct(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?H(t,s)&&ye(n,"set",e,t):ye(n,"add",e,t),this}function ke(e){const t=ct(this),{has:n,get:r}=Ce(t);let o=n.call(t,e);o||(e=ct(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&ye(t,"delete",e,void 0),i}function Ue(){const e=ct(this),t=0!==e.size,n=e.clear();return t&&ye(e,"clear",void 0,void 0),n}function Fe(e,t){return function(n,r){const o=this,i=o.__v_raw,s=ct(i),a=t?Pe:e?pt:ut;return!e&&de(s,0,ie),i.forEach(((e,t)=>n.call(r,a(e),a(t),o)))}}function Be(e,t,n){return function(...r){const o=this.__v_raw,i=ct(o),s=A(i),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,l=o[e](...r),u=n?Pe:t?pt:ut;return!t&&de(i,0,c?se:ie),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){return"delete"!==e&&this}}function Ve(){const e={get(e){return Ne(this,e)},get size(){return Ie(this)},has:Le,add:De,set:Re,delete:ke,clear:Ue,forEach:Fe(!1,!1)},t={get(e){return Ne(this,e,!1,!0)},get size(){return Ie(this)},has:Le,add:De,set:Re,delete:ke,clear:Ue,forEach:Fe(!1,!0)},n={get(e){return Ne(this,e,!0)},get size(){return Ie(this,!0)},has(e){return Le.call(this,e,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:Fe(!0,!1)},r={get(e){return Ne(this,e,!0,!0)},get size(){return Ie(this,!0)},has(e){return Le.call(this,e,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:Fe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=Be(o,!1,!1),n[o]=Be(o,!0,!1),t[o]=Be(o,!1,!0),r[o]=Be(o,!0,!0)})),[e,n,t,r]}const[Ge,He,$e,We]=Ve();function Je(e,t){const n=t?e?We:$e:e?He:Ge;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(O(n,r)&&r in t?n:t,r,o)}const Xe={get:Je(!1,!1)},Ze={get:Je(!1,!0)},qe={get:Je(!0,!1)},Qe=new WeakMap,Ke=new WeakMap,Ye=new WeakMap,et=new WeakMap;function tt(e){return it(e)?e:rt(e,!1,je,Xe,Qe)}function nt(e){return rt(e,!0,Te,qe,Ye)}function rt(e,t,n,r,o){if(!P(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>L(e).slice(8,-1))(a));var a;if(0===s)return e;const c=new Proxy(e,2===s?r:n);return o.set(e,c),c}function ot(e){return it(e)?ot(e.__v_raw):!(!e||!e.__v_isReactive)}function it(e){return!(!e||!e.__v_isReadonly)}function st(e){return!(!e||!e.__v_isShallow)}function at(e){return ot(e)||it(e)}function ct(e){const t=e&&e.__v_raw;return t?ct(t):e}function lt(e){return W(e,"__v_skip",!0),e}const ut=e=>P(e)?tt(e):e,pt=e=>P(e)?nt(e):e;function ft(e){return!(!e||!0!==e.__v_isRef)}const dt={get:(e,t,n)=>{return ft(r=Reflect.get(e,t,n))?r.value:r;var r},set:(e,t,n,r)=>{const o=e[t];return ft(o)&&!ft(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ht(e){return ot(e)?e:new Proxy(e,dt)}class yt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ae(e,(()=>{var e;this._dirty||(this._dirty=!0,(e=ct(e=this)).dep&&me(e.dep))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=ct(this);return t=e,le&&ne&&he((t=ct(t)).dep||(t.dep=K())),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value;var t}set value(e){this._setter(e)}}function mt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){vt(e,t,n)}return o}function gt(e,t,n,r){if(j(e)){const o=mt(e,t,n,r);return o&&C(o)&&o.catch((e=>{vt(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(gt(e[i],t,n,r));return o}function vt(e,t,n,r=!0){if(t&&t.vnode,t){let r=t.parent;const o=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const s=t.appContext.config.errorHandler;if(s)return void mt(s,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let bt=!1,_t=!1;const wt=[];let St=0;const Ot=[];let Et=null,At=0;const xt=[];let jt=null,Tt=0;const Mt=Promise.resolve();let Pt=null,Ct=null;function Nt(e){const t=Pt||Mt;return e?t.then(this?e.bind(this):e):t}function Lt(e){wt.length&&wt.includes(e,bt&&e.allowRecurse?St+1:St)||e===Ct||(null==e.id?wt.push(e):wt.splice(function(e){let t=St+1,n=wt.length;for(;t<n;){const r=t+n>>>1;Ut(wt[r])<e?t=r+1:n=r}return t}(e.id),0,e),It())}function It(){bt||_t||(_t=!0,Pt=Mt.then(Ft))}function Dt(e,t,n,r){E(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),It()}function Rt(e,t=null){if(Ot.length){for(Ct=t,Et=[...new Set(Ot)],Ot.length=0,At=0;At<Et.length;At++)Et[At]();Et=null,At=0,Ct=null,Rt(e,t)}}function kt(e){if(Rt(),xt.length){const e=[...new Set(xt)];if(xt.length=0,jt)return void jt.push(...e);for(jt=e,jt.sort(((e,t)=>Ut(e)-Ut(t))),Tt=0;Tt<jt.length;Tt++)jt[Tt]();jt=null,Tt=0}}const Ut=e=>null==e.id?1/0:e.id;function Ft(e){_t=!1,bt=!0,Rt(e),wt.sort(((e,t)=>Ut(e)-Ut(t)));try{for(St=0;St<wt.length;St++){const e=wt[St];e&&!1!==e.active&&mt(e,null,14)}}finally{St=0,wt.length=0,kt(),bt=!1,Pt=null,(wt.length||Ot.length||xt.length)&&Ft(e)}}new Set,new Map;let Bt,zt=[],Vt=!1;function Gt(e,...t){Bt?Bt.emit(e,...t):Vt||zt.push({event:e,args:t})}function Ht(e,t){var n,r;Bt=e,Bt?(Bt.enabled=!0,zt.forEach((({event:e,args:t})=>Bt.emit(e,...t))),zt=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Ht(e,t)})),setTimeout((()=>{Bt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vt=!0,zt=[])}),3e3)):(Vt=!0,zt=[])}const $t=Xt("component:added"),Wt=Xt("component:updated"),Jt=Xt("component:removed");function Xt(e){return t=>{Gt(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Zt(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||d;let o=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=r[e]||d;i&&(o=n.map((e=>e.trim()))),t&&(o=n.map(J))}let a;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Gt("component:emit",e.appContext.app,e,t,n)}(e,t,o);let c=r[a=G(t)]||r[a=G(F(t))];!c&&i&&(c=r[a=G(z(t))]),c&&gt(c,e,6,o);const l=r[a+"Once"];if(l){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,gt(l,e,6,o)}}function qt(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let s={},a=!1;if(__VUE_OPTIONS_API__&&!j(e)){const r=e=>{const n=qt(e,t,!0);n&&(a=!0,_(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||a?(E(i)?i.forEach((e=>s[e]=null)):_(s,i),r.set(e,s),s):(r.set(e,null),null)}function Qt(e,t){return!(!e||!v(t))&&(t=t.slice(2).replace(/Once$/,""),O(e,t[0].toLowerCase()+t.slice(1))||O(e,z(t))||O(e,t))}let Kt=null,Yt=null;function en(e){const t=Kt;return Kt=e,Yt=e&&e.type.__scopeId||null,t}function tn(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:a,attrs:c,emit:l,render:u,renderCache:p,data:f,setupState:d,ctx:h,inheritAttrs:y}=e;let m,g;const v=en(e);try{if(4&n.shapeFlag){const e=o||r;m=$r(u.call(e,e,p,i,d,f,h)),g=c}else{const e=t;m=$r(e.length>1?e(i,{attrs:c,slots:a,emit:l}):e(i,null)),g=t.props?c:nn(c)}}catch(t){jr.length=0,vt(t,e,1),m=zr(Ar)}let _=m;if(g&&!1!==y){const e=Object.keys(g),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(b)&&(g=rn(g,s)),_=Vr(_,g))}return n.dirs&&(_=Vr(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),m=_,en(v),m}const nn=e=>{let t;for(const n in e)("class"===n||"style"===n||v(n))&&((t||(t={}))[n]=e[n]);return t},rn=(e,t)=>{const n={};for(const r in e)b(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function on(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!Qt(n,i))return!0}return!1}function sn(e,t,n=!1){const r=Qr||Kt;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&j(t)?t.call(r.proxy):t}}const an={};function cn(e,t,n){return ln(e,t,n)}function ln(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=d){const a=Qr;let c,l,u=!1,p=!1;if(ft(e)?(c=()=>e.value,u=st(e)):ot(e)?(c=()=>e,r=!0):E(e)?(p=!0,u=e.some((e=>ot(e)||st(e))),c=()=>e.map((e=>ft(e)?e.value:ot(e)?fn(e):j(e)?mt(e,a,2):void 0))):c=j(e)?t?()=>mt(e,a,2):()=>{if(!a||!a.isUnmounted)return l&&l(),gt(e,a,3,[f])}:y,t&&r){const e=c;c=()=>fn(e())}let f=e=>{l=v.onStop=()=>{mt(e,a,4)}};if(no)return f=y,t?n&&gt(t,a,3,[c(),p?[]:void 0,f]):c(),y;let h=p?[]:an;const m=()=>{if(v.active)if(t){const e=v.run();(r||u||(p?e.some(((e,t)=>H(e,h[t]))):H(e,h)))&&(l&&l(),gt(t,a,3,[e,h===an?void 0:h,f]),h=e)}else v.run()};let g;m.allowRecurse=!!t,g="sync"===o?m:"post"===o?()=>br(m,a&&a.suspense):()=>function(e){Dt(e,Et,Ot,At)}(m);const v=new ae(c,g);return t?n?m():h=v.run():"post"===o?br(v.run.bind(v),a&&a.suspense):v.run(),()=>{v.stop(),a&&a.scope&&w(a.scope.effects,v)}}function un(e,t,n){const r=this.proxy,o=T(e)?e.includes(".")?pn(r,e):()=>r[e]:e.bind(r,r);let i;j(t)?i=t:(i=t.handler,n=t);const s=Qr;Yr(this);const a=ln(o,i.bind(r),n);return s?Yr(s):eo(),a}function pn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function fn(e,t){if(!P(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),ft(e))fn(e.value,t);else if(E(e))for(let n=0;n<e.length;n++)fn(e[n],t);else if(x(e)||A(e))e.forEach((e=>{fn(e,t)}));else if(I(e))for(const n in e)fn(e[n],t);return e}const dn=[Function,Array],hn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dn,onEnter:dn,onAfterEnter:dn,onEnterCancelled:dn,onBeforeLeave:dn,onLeave:dn,onAfterLeave:dn,onLeaveCancelled:dn,onBeforeAppear:dn,onAppear:dn,onAfterAppear:dn,onAppearCancelled:dn},setup(e,{slots:t}){const n=Kr(),r=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pn((()=>{e.isMounted=!0})),Ln((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const i=t.default&&_n(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==Ar){s=t,e=!0;break}}const a=ct(e),{mode:c}=a;if(r.isLeaving)return gn(s);const l=vn(s);if(!l)return gn(s);const u=mn(l,a,r,n);bn(l,u);const p=n.subTree,f=p&&vn(p);let d=!1;const{getTransitionKey:h}=l.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,d=!0)}if(f&&f.type!==Ar&&(!Rr(l,f)||d)){const e=mn(f,a,r,n);if(bn(f,e),"out-in"===c)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},gn(s);"in-out"===c&&l.type!==Ar&&(e.delayLeave=(e,t,n)=>{yn(r,f)[String(f.key)]=f,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function yn(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function mn(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:p,onLeave:f,onAfterLeave:d,onLeaveCancelled:h,onBeforeAppear:y,onAppear:m,onAfterAppear:g,onAppearCancelled:v}=t,b=String(e.key),_=yn(n,e),w=(e,t)=>{e&&gt(e,r,9,t)},S=(e,t)=>{const n=t[1];w(e,t),E(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},O={mode:i,persisted:s,beforeEnter(t){let r=a;if(!n.isMounted){if(!o)return;r=y||a}t._leaveCb&&t._leaveCb(!0);const i=_[b];i&&Rr(e,i)&&i.el._leaveCb&&i.el._leaveCb(),w(r,[t])},enter(e){let t=c,r=l,i=u;if(!n.isMounted){if(!o)return;t=m||c,r=g||l,i=v||u}let s=!1;const a=e._enterCb=t=>{s||(s=!0,w(t?i:r,[e]),O.delayedLeave&&O.delayedLeave(),e._enterCb=void 0)};t?S(t,[e,a]):a()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();w(p,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,r(),w(n?h:d,[t]),t._leaveCb=void 0,_[o]===e&&delete _[o])};_[o]=e,f?S(f,[t,s]):s()},clone:e=>mn(e,t,n,r)};return O}function gn(e){if(Sn(e))return(e=Vr(e)).children=null,e}function vn(e){return Sn(e)?e.children?e.children[0]:void 0:e}function bn(e,t){6&e.shapeFlag&&e.component?bn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _n(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===Or?(128&s.patchFlag&&o++,r=r.concat(_n(s.children,t,a))):(t||s.type!==Ar)&&r.push(null!=a?Vr(s,{key:a}):s)}if(o>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}const wn=e=>!!e.type.__asyncLoader,Sn=e=>e.type.__isKeepAlive;function On(e,t){An(e,"a",t)}function En(e,t){An(e,"da",t)}function An(e,t,n=Qr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(jn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Sn(e.parent.vnode)&&xn(r,t,n,e),e=e.parent}}function xn(e,t,n,r){const o=jn(t,e,r,!0);In((()=>{w(r[t],o)}),n)}function jn(e,t,n=Qr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;pe(),Yr(n);const o=gt(t,n,e,r);return eo(),fe(),o});return r?o.unshift(i):o.push(i),i}}RegExp,RegExp;const Tn=e=>(t,n=Qr)=>(!no||"sp"===e)&&jn(e,t,n),Mn=Tn("bm"),Pn=Tn("m"),Cn=Tn("bu"),Nn=Tn("u"),Ln=Tn("bum"),In=Tn("um"),Dn=Tn("sp"),Rn=Tn("rtg"),kn=Tn("rtc");function Un(e,t=Qr){jn("ec",e,t)}function Fn(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let c=a.dir[r];c&&(pe(),gt(c,n,8,[e.el,a,e,t]),fe())}}const Bn="components";function zn(e,t){return function(e,t,n=!0,r=!1){const o=Kt||Qr;if(o){const n=o.type;if(e===Bn){const e=function(e,t=!0){return j(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===F(t)||e===V(F(t))))return n}const i=Gn(o[e]||n[e],t)||Gn(o.appContext[e],t);return!i&&r?n:i}}(Bn,e,!0,t)||e}const Vn=Symbol();function Gn(e,t){return e&&(e[t]||e[F(t)]||e[V(F(t))])}const Hn=e=>e?to(e)?io(e)||e.proxy:Hn(e.parent):null,$n=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Hn(e.parent),$root:e=>Hn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?qn(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>Lt(e.update)),$nextTick:e=>e.n||(e.n=Nt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?un.bind(e):y}),Wn={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:c}=e;let l;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(r!==d&&O(r,t))return s[t]=1,r[t];if(o!==d&&O(o,t))return s[t]=2,o[t];if((l=e.propsOptions[0])&&O(l,t))return s[t]=3,i[t];if(n!==d&&O(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!Jn||(s[t]=0)}}const u=$n[t];let p,f;return u?("$attrs"===t&&de(e,0,t),u(e)):(p=a.__cssModules)&&(p=p[t])?p:n!==d&&O(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,O(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return o!==d&&O(o,t)?(o[t]=n,!0):r!==d&&O(r,t)?(r[t]=n,!0):!(O(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let a;return!!n[s]||e!==d&&O(e,s)||t!==d&&O(t,s)||(a=i[0])&&O(a,s)||O(r,s)||O($n,s)||O(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:O(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Jn=!0;function Xn(e,t,n){gt(E(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Zn(e,t,n,r){const o=r.includes(".")?pn(n,r):()=>n[r];if(T(e)){const n=t[e];j(n)&&cn(o,n)}else if(j(e))cn(o,e.bind(n));else if(P(e))if(E(e))e.forEach((e=>Zn(e,t,n,r)));else{const r=j(e.handler)?e.handler.bind(n):t[e.handler];j(r)&&cn(o,r,e)}}function qn(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let c;return a?c=a:o.length||n||r?(c={},o.length&&o.forEach((e=>Qn(c,e,s,!0))),Qn(c,t,s)):c=t,i.set(t,c),c}function Qn(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Qn(e,i,n,!0),o&&o.forEach((t=>Qn(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=Kn[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Kn={data:Yn,props:nr,emits:nr,methods:nr,computed:nr,beforeCreate:tr,created:tr,beforeMount:tr,mounted:tr,beforeUpdate:tr,updated:tr,beforeDestroy:tr,beforeUnmount:tr,destroyed:tr,unmounted:tr,activated:tr,deactivated:tr,errorCaptured:tr,serverPrefetch:tr,components:nr,directives:nr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=_(Object.create(null),e);for(const r in t)n[r]=tr(e[r],t[r]);return n},provide:Yn,inject:function(e,t){return nr(er(e),er(t))}};function Yn(e,t){return t?e?function(){return _(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function er(e){if(E(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function tr(e,t){return e?[...new Set([].concat(e,t))]:t}function nr(e,t){return e?_(_(Object.create(null),e),t):t}function rr(e,t,n,r){const[o,i]=e.propsOptions;let s,a=!1;if(t)for(let c in t){if(R(c))continue;const l=t[c];let u;o&&O(o,u=F(c))?i&&i.includes(u)?(s||(s={}))[u]=l:n[u]=l:Qt(e.emitsOptions,c)||c in r&&l===r[c]||(r[c]=l,a=!0)}if(i){const t=ct(n),r=s||d;for(let s=0;s<i.length;s++){const a=i[s];n[a]=or(o,t,a,r[a],e,!O(r,a))}}return a}function or(e,t,n,r,o,i){const s=e[n];if(null!=s){const e=O(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&j(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(Yr(o),r=i[n]=e.call(null,t),eo())}else r=e}s[0]&&(i&&!e?r=!1:!s[1]||""!==r&&r!==z(n)||(r=!0))}return r}function ir(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,s={},a=[];let c=!1;if(__VUE_OPTIONS_API__&&!j(e)){const r=e=>{c=!0;const[n,r]=ir(e,t,!0);_(s,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!c)return r.set(e,h),h;if(E(i))for(let e=0;e<i.length;e++){const t=F(i[e]);sr(t)&&(s[t]=d)}else if(i)for(const e in i){const t=F(e);if(sr(t)){const n=i[e],r=s[t]=E(n)||j(n)?{type:n}:n;if(r){const e=lr(Boolean,r.type),n=lr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||O(r,"default"))&&a.push(t)}}}const l=[s,a];return r.set(e,l),l}function sr(e){return"$"!==e[0]}function ar(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function cr(e,t){return ar(e)===ar(t)}function lr(e,t){return E(t)?t.findIndex((t=>cr(t,e))):j(t)&&cr(t,e)?0:-1}const ur=e=>"_"===e[0]||"$stable"===e,pr=e=>E(e)?e.map($r):[$r(e)],fr=(e,t,n)=>{if(t._n)return t;const r=function(e,t=Kt,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Cr(-1);const o=en(t),i=e(...n);return en(o),r._d&&Cr(1),__VUE_PROD_DEVTOOLS__&&Wt(t),i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>pr(t(...e))),n);return r._c=!1,r},dr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(ur(n))continue;const o=e[n];if(j(o))t[n]=fr(0,o,r);else if(null!=o){const e=pr(o);t[n]=()=>e}}},hr=(e,t)=>{const n=pr(t);e.slots.default=()=>n};function yr(){return{app:null,config:{isNativeTag:m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let mr=0;function gr(e,t){return function(n,r=null){j(n)||(n=Object.assign({},n)),null==r||P(r)||(r=null);const o=yr(),i=new Set;let s=!1;const a=o.app={_uid:mr++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:ao,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&j(e.install)?(i.add(e),e.install(a,...t)):j(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(__VUE_OPTIONS_API__&&(o.mixins.includes(e)||o.mixins.push(e)),a),component:(e,t)=>t?(o.components[e]=t,a):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,a):o.directives[e],mount(i,c,l){if(!s){const u=zr(n,r);return u.appContext=o,c&&t?t(u,i):e(u,i,l),s=!0,a._container=i,i.__vue_app__=a,__VUE_PROD_DEVTOOLS__&&(a._instance=u.component,function(e,t){Gt("app:init",e,t,{Fragment:Or,Text:Er,Comment:Ar,Static:xr})}(a,ao)),io(u.component)||u.component.proxy}},unmount(){s&&(e(null,a._container),__VUE_PROD_DEVTOOLS__&&(a._instance=null,function(e){Gt("app:unmount",e)}(a)),delete a._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,a)};return a}}function vr(e,t,n,r,o=!1){if(E(e))return void e.forEach(((e,i)=>vr(e,t&&(E(t)?t[i]:t),n,r,o)));if(wn(r)&&!o)return;const i=4&r.shapeFlag?io(r.component)||r.component.proxy:r.el,s=o?null:i,{i:a,r:c}=e,l=t&&t.r,u=a.refs===d?a.refs={}:a.refs,p=a.setupState;if(null!=l&&l!==c&&(T(l)?(u[l]=null,O(p,l)&&(p[l]=null)):ft(l)&&(l.value=null)),j(c))mt(c,a,12,[s,u]);else{const t=T(c),r=ft(c);if(t||r){const a=()=>{if(e.f){const n=t?u[c]:c.value;o?E(n)&&w(n,i):E(n)?n.includes(i)||n.push(i):t?(u[c]=[i],O(p,c)&&(p[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else t?(u[c]=s,O(p,c)&&(p[c]=s)):r&&(c.value=s,e.k&&(u[e.k]=s))};s?(a.id=-1,br(a,n)):a()}}}const br=function(e,t){t&&t.pendingBranch?E(e)?t.effects.push(...e):t.effects.push(e):Dt(e,jt,xt,Tt)};function _r(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&(Z().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Z().__VUE_PROD_DEVTOOLS__=!1);const n=Z();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Ht(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:c,setText:l,setElementText:u,parentNode:p,nextSibling:f,setScopeId:m=y,cloneNode:g,insertStaticContent:v}=e,b=(e,t,n,r=null,o=null,i=null,s=!1,a=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rr(e,t)&&(r=te(e),X(e,o,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:p}=t;switch(l){case Er:w(e,t,n,r);break;case Ar:S(e,t,n,r);break;case xr:null==e&&E(t,n,r,s);break;case Or:L(e,t,n,r,o,i,s,a,c);break;default:1&p?A(e,t,n,r,o,i,s,a,c):6&p?I(e,t,n,r,o,i,s,a,c):(64&p||128&p)&&l.process(e,t,n,r,o,i,s,a,c,re)}null!=u&&o&&vr(u,e&&e.ref,i,t||e,!t)},w=(e,t,n,o)=>{if(null==e)r(t.el=a(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},S=(e,t,n,o)=>{null==e?r(t.el=c(t.children||""),n,o):t.el=e.el},E=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},A=(e,t,n,r,o,i,s,a,c)=>{s=s||"svg"===t.type,null==e?x(t,n,r,o,i,s,a,c):M(e,t,o,i,s,a,c)},x=(e,t,n,o,a,c,l,p)=>{let f,d;const{type:h,props:y,shapeFlag:m,transition:v,patchFlag:b,dirs:_}=e;if(e.el&&void 0!==g&&-1===b)f=e.el=g(e.el);else{if(f=e.el=s(e.type,c,y&&y.is,y),8&m?u(f,e.children):16&m&&T(e.children,f,null,o,a,c&&"foreignObject"!==h,l,p),_&&Fn(e,null,o,"created"),y){for(const t in y)"value"===t||R(t)||i(f,t,null,y[t],c,e.children,o,a,ee);"value"in y&&i(f,"value",null,y.value),(d=y.onVnodeBeforeMount)&&Xr(d,o,e)}j(f,e,e.scopeId,l,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(f,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(f,"__vueParentComponent",{value:o,enumerable:!1})),_&&Fn(e,null,o,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;w&&v.beforeEnter(f),r(f,t,n),((d=y&&y.onVnodeMounted)||w||_)&&br((()=>{d&&Xr(d,o,e),w&&v.enter(f),_&&Fn(e,null,o,"mounted")}),a)},j=(e,t,n,r,o)=>{if(n&&m(e,n),r)for(let t=0;t<r.length;t++)m(e,r[t]);if(o&&t===o.subTree){const t=o.vnode;j(e,t,t.scopeId,t.slotScopeIds,o.parent)}},T=(e,t,n,r,o,i,s,a,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=a?Wr(e[l]):$r(e[l]);b(null,c,t,n,r,o,i,s,a)}},M=(e,t,n,r,o,s,a)=>{const c=t.el=e.el;let{patchFlag:l,dynamicChildren:p,dirs:f}=t;l|=16&e.patchFlag;const h=e.props||d,y=t.props||d;let m;n&&wr(n,!1),(m=y.onVnodeBeforeUpdate)&&Xr(m,n,t,e),f&&Fn(t,e,n,"beforeUpdate"),n&&wr(n,!0);const g=o&&"foreignObject"!==t.type;if(p?P(e.dynamicChildren,p,c,n,r,g,s):a||V(e,t,c,null,n,r,g,s,!1),l>0){if(16&l)N(c,t,h,y,n,r,o);else if(2&l&&h.class!==y.class&&i(c,"class",null,y.class,o),4&l&&i(c,"style",h.style,y.style,o),8&l){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const a=s[t],l=h[a],u=y[a];u===l&&"value"!==a||i(c,a,l,u,o,e.children,n,r,ee)}}1&l&&e.children!==t.children&&u(c,t.children)}else a||null!=p||N(c,t,h,y,n,r,o);((m=y.onVnodeUpdated)||f)&&br((()=>{m&&Xr(m,n,t,e),f&&Fn(t,e,n,"updated")}),r)},P=(e,t,n,r,o,i,s)=>{for(let a=0;a<t.length;a++){const c=e[a],l=t[a],u=c.el&&(c.type===Or||!Rr(c,l)||70&c.shapeFlag)?p(c.el):n;b(c,l,u,null,r,o,i,s,!0)}},N=(e,t,n,r,o,s,a)=>{if(n!==r){for(const c in r){if(R(c))continue;const l=r[c],u=n[c];l!==u&&"value"!==c&&i(e,c,u,l,a,t.children,o,s,ee)}if(n!==d)for(const c in n)R(c)||c in r||i(e,c,n[c],null,a,t.children,o,s,ee);"value"in r&&i(e,"value",n.value,r.value)}},L=(e,t,n,o,i,s,c,l,u)=>{const p=t.el=e?e.el:a(""),f=t.anchor=e?e.anchor:a("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:y}=t;y&&(l=l?l.concat(y):y),null==e?(r(p,n,o),r(f,n,o),T(t.children,n,f,i,s,c,l,u)):d>0&&64&d&&h&&e.dynamicChildren?(P(e.dynamicChildren,h,n,i,s,c,l),(null!=t.key||i&&t===i.subTree)&&Sr(e,t,!0)):V(e,t,n,f,i,s,c,l,u)},I=(e,t,n,r,o,i,s,a,c)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,c):D(t,n,r,o,i,s,c):k(e,t,c)},D=(e,t,n,r,o,i,s)=>{const a=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||Zr,i={uid:qr++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Q(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ir(r,o),emitsOptions:qt(r,o),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Zt.bind(null,i),e.ce&&e.ce(i),i}(e,r,o);if(Sn(e)&&(a.ctx.renderer=re),function(e,t=!1){no=t;const{props:n,children:r}=e.vnode,o=to(e);(function(e,t,n,r=!1){const o={},i={};W(i,kr,1),e.propsDefaults=Object.create(null),rr(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:rt(o,!1,Me,Ze,Ke):e.type.props?e.props=o:e.props=i,e.attrs=i})(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ct(t),W(t,"_",n)):dr(t,e.slots={})}else e.slots={},t&&hr(e,t);W(e.slots,kr,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=lt(new Proxy(e.ctx,Wn));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(de(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Yr(e),pe();const o=mt(r,e,0,[e.props,n]);if(fe(),eo(),C(o)){if(o.then(eo,eo),t)return o.then((n=>{ro(e,n,t)})).catch((t=>{vt(t,e,0)}));e.asyncDep=o}else ro(e,o,t)}else oo(e,t)}(e,t):void 0;no=!1}(a),a.asyncDep){if(o&&o.registerDep(a,U),!e.el){const e=a.subTree=zr(Ar);S(null,e,t,n)}}else U(a,e,t,n,o,i,s)},k=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!o&&!a||a&&a.$stable)||r!==s&&(r?!s||on(r,s,l):!!s);if(1024&c)return!0;if(16&c)return r?on(r,s,l):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==r[n]&&!Qt(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void B(r,t,n);r.next=t,function(e){const t=wt.indexOf(e);t>St&&wt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},U=(e,t,n,r,o,i,s)=>{const a=e.effect=new ae((()=>{if(e.isMounted){let t,{next:n,bu:r,u:a,parent:c,vnode:l}=e,u=n;wr(e,!1),n?(n.el=l.el,B(e,n,s)):n=l,r&&$(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Xr(t,c,n,l),wr(e,!0);const f=tn(e),d=e.subTree;e.subTree=f,b(d,f,p(d.el),te(d),e,o,i),n.el=f.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,f.el),a&&br(a,o),(t=n.props&&n.props.onVnodeUpdated)&&br((()=>Xr(t,c,n,l)),o),__VUE_PROD_DEVTOOLS__&&Wt(e)}else{let s;const{el:a,props:c}=t,{bm:l,m:u,parent:p}=e,f=wn(t);if(wr(e,!1),l&&$(l),!f&&(s=c&&c.onVnodeBeforeMount)&&Xr(s,p,t),wr(e,!0),a&&ie){const n=()=>{e.subTree=tn(e),ie(a,e.subTree,e,o,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=tn(e);b(null,s,n,r,e,o,i),t.el=s.el}if(u&&br(u,o),!f&&(s=c&&c.onVnodeMounted)){const e=t;br((()=>Xr(s,p,e)),o)}(256&t.shapeFlag||p&&wn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&br(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&$t(e),t=n=r=null}}),(()=>Lt(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,wr(e,!0),c()},B=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=ct(o),[c]=e.propsOptions;let l=!1;if(!(r||s>0)||16&s){let r;rr(e,t,o,i)&&(l=!0);for(const i in a)t&&(O(t,i)||(r=z(i))!==i&&O(t,r))||(c?!n||void 0===n[i]&&void 0===n[r]||(o[i]=or(c,a,i,void 0,e,!0)):delete o[i]);if(i!==a)for(const e in i)t&&O(t,e)||(delete i[e],l=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(Qt(e.emitsOptions,s))continue;const u=t[s];if(c)if(O(i,s))u!==i[s]&&(i[s]=u,l=!0);else{const t=F(s);o[t]=or(c,a,t,u,e,!1)}else u!==i[s]&&(i[s]=u,l=!0)}}l&&ye(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=d;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(_(o,t),n||1!==e||delete o._):(i=!t.$stable,dr(t,o)),s=t}else t&&(hr(e,t),s={default:1});if(i)for(const e in o)ur(e)||e in s||delete o[e]})(e,t.children,n),pe(),Rt(void 0,e.update),fe()},V=(e,t,n,r,o,i,s,a,c=!1)=>{const l=e&&e.children,p=e?e.shapeFlag:0,f=t.children,{patchFlag:d,shapeFlag:h}=t;if(d>0){if(128&d)return void H(l,f,n,r,o,i,s,a,c);if(256&d)return void G(l,f,n,r,o,i,s,a,c)}8&h?(16&p&&ee(l,o,i),f!==l&&u(n,f)):16&p?16&h?H(l,f,n,r,o,i,s,a,c):ee(l,o,i,!0):(8&p&&u(n,""),16&h&&T(f,n,r,o,i,s,a,c))},G=(e,t,n,r,o,i,s,a,c)=>{t=t||h;const l=(e=e||h).length,u=t.length,p=Math.min(l,u);let f;for(f=0;f<p;f++){const r=t[f]=c?Wr(t[f]):$r(t[f]);b(e[f],r,n,null,o,i,s,a,c)}l>u?ee(e,o,i,!0,!1,p):T(t,n,r,o,i,s,a,c,p)},H=(e,t,n,r,o,i,s,a,c)=>{let l=0;const u=t.length;let p=e.length-1,f=u-1;for(;l<=p&&l<=f;){const r=e[l],u=t[l]=c?Wr(t[l]):$r(t[l]);if(!Rr(r,u))break;b(r,u,n,null,o,i,s,a,c),l++}for(;l<=p&&l<=f;){const r=e[p],l=t[f]=c?Wr(t[f]):$r(t[f]);if(!Rr(r,l))break;b(r,l,n,null,o,i,s,a,c),p--,f--}if(l>p){if(l<=f){const e=f+1,p=e<u?t[e].el:r;for(;l<=f;)b(null,t[l]=c?Wr(t[l]):$r(t[l]),n,p,o,i,s,a,c),l++}}else if(l>f)for(;l<=p;)X(e[l],o,i,!0),l++;else{const d=l,y=l,m=new Map;for(l=y;l<=f;l++){const e=t[l]=c?Wr(t[l]):$r(t[l]);null!=e.key&&m.set(e.key,l)}let g,v=0;const _=f-y+1;let w=!1,S=0;const O=new Array(_);for(l=0;l<_;l++)O[l]=0;for(l=d;l<=p;l++){const r=e[l];if(v>=_){X(r,o,i,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(g=y;g<=f;g++)if(0===O[g-y]&&Rr(r,t[g])){u=g;break}void 0===u?X(r,o,i,!0):(O[u-y]=l+1,u>=S?S=u:w=!0,b(r,t[u],n,null,o,i,s,a,c),v++)}const E=w?function(e){const t=e.slice(),n=[0];let r,o,i,s,a;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<c?i=a+1:s=a;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(O):h;for(g=E.length-1,l=_-1;l>=0;l--){const e=y+l,p=t[e],f=e+1<u?t[e+1].el:r;0===O[l]?b(null,p,n,f,o,i,s,a,c):w&&(g<0||l!==E[g]?J(p,n,f,2):g--)}}},J=(e,t,n,o,i=null)=>{const{el:s,type:a,transition:c,children:l,shapeFlag:u}=e;if(6&u)J(e.component.subTree,t,n,o);else if(128&u)e.suspense.move(t,n,o);else if(64&u)a.move(e,t,n,re);else if(a!==Or)if(a!==xr)if(2!==o&&1&u&&c)if(0===o)c.beforeEnter(s),r(s,t,n),br((()=>c.enter(s)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=c,a=()=>r(s,t,n),l=()=>{e(s,(()=>{a(),i&&i()}))};o?o(s,a,l):l()}else r(s,t,n);else(({el:e,anchor:t},n,o)=>{let i;for(;e&&e!==t;)i=f(e),r(e,n,o),e=i;r(t,n,o)})(e,t,n);else{r(s,t,n);for(let e=0;e<l.length;e++)J(l[e],t,n,o);r(e.anchor,t,n)}},X=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:a,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:p,dirs:f}=e;if(null!=a&&vr(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const d=1&u&&f,h=!wn(e);let y;if(h&&(y=s&&s.onVnodeBeforeUnmount)&&Xr(y,t,e),6&u)Y(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);d&&Fn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,re,r):l&&(i!==Or||p>0&&64&p)?ee(l,t,n,!1,!0):(i===Or&&384&p||!o&&16&u)&&ee(c,t,n),r&&q(e)}(h&&(y=s&&s.onVnodeUnmounted)||d)&&br((()=>{y&&Xr(y,t,e),d&&Fn(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Or)return void K(n,r);if(t===xr)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),o(e),e=n;o(t)})(e);const s=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,s);r?r(e.el,s,o):o()}else s()},K=(e,t)=>{let n;for(;e!==t;)n=f(e),o(e),e=n;o(t)},Y=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:s,um:a}=e;r&&$(r),o.stop(),i&&(i.active=!1,X(s,e,t,n)),a&&br(a,t),br((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Jt(e)},ee=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s<e.length;s++)X(e[s],t,n,r,o)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&X(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),kt(),t._vnode=e},re={p:b,um:X,m:J,r:q,mt:D,mc:T,pc:V,pbc:P,n:te,o:e};let oe,ie;return t&&([oe,ie]=t(re)),{render:ne,hydrate:oe,createApp:gr(ne,oe)}}function wr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Sr(e,t,n=!1){const r=e.children,o=t.children;if(E(r)&&E(o))for(let e=0;e<r.length;e++){const t=r[e];let i=o[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=o[e]=Wr(o[e]),i.el=t.el),n||Sr(t,i))}}const Or=Symbol(void 0),Er=Symbol(void 0),Ar=Symbol(void 0),xr=Symbol(void 0),jr=[];let Tr=null;function Mr(e=!1){jr.push(Tr=e?null:[])}let Pr=1;function Cr(e){Pr+=e}function Nr(e){return e.dynamicChildren=Pr>0?Tr||h:null,jr.pop(),Tr=jr[jr.length-1]||null,Pr>0&&Tr&&Tr.push(e),e}function Lr(e,t,n,r,o,i){return Nr(Br(e,t,n,r,o,i,!0))}function Ir(e,t,n,r,o){return Nr(zr(e,t,n,r,o,!0))}function Dr(e){return!!e&&!0===e.__v_isVNode}function Rr(e,t){return e.type===t.type&&e.key===t.key}const kr="__vInternal",Ur=({key:e})=>null!=e?e:null,Fr=({ref:e,ref_key:t,ref_for:n})=>null!=e?T(e)||ft(e)||j(e)?{i:Kt,r:e,k:t,f:!!n}:e:null;function Br(e,t=null,n=null,r=0,o=null,i=(e===Or?0:1),s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ur(t),ref:t&&Fr(t),scopeId:Yt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return a?(Jr(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=T(n)?8:16),Pr>0&&!s&&Tr&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Tr.push(c),c}const zr=function(e,t=null,n=null,r=0,o=null,i=!1){if(e&&e!==Vn||(e=Ar),Dr(e)){const r=Vr(e,t,!0);return n&&Jr(r,n),Pr>0&&!i&&Tr&&(6&r.shapeFlag?Tr[Tr.indexOf(e)]=r:Tr.push(r)),r.patchFlag|=-2,r}if(a=e,j(a)&&"__vccOpts"in a&&(e=e.__vccOpts),t){t=function(e){return e?at(e)||kr in e?_({},e):e:null}(t);let{class:e,style:n}=t;e&&!T(e)&&(t.class=u(e)),P(n)&&(at(n)&&!E(n)&&(n=_({},n)),t.style=s(n))}var a;return Br(e,t,n,r,o,T(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:P(e)?4:j(e)?2:0,i,!0)};function Vr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,c=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=u([t.class,r.class]));else if("style"===e)t.style=s([t.style,r.style]);else if(v(e)){const n=t[e],o=r[e];!o||n===o||E(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ur(c),ref:t&&t.ref?n&&o?E(o)?o.concat(Fr(t)):[o,Fr(t)]:Fr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Or?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vr(e.ssContent),ssFallback:e.ssFallback&&Vr(e.ssFallback),el:e.el,anchor:e.anchor}}function Gr(e=" ",t=0){return zr(Er,null,e,t)}function Hr(e="",t=!1){return t?(Mr(),Ir(Ar,null,e)):zr(Ar,null,e)}function $r(e){return null==e||"boolean"==typeof e?zr(Ar):E(e)?zr(Or,null,e.slice()):"object"==typeof e?Wr(e):zr(Er,null,String(e))}function Wr(e){return null===e.el||e.memo?e:Vr(e)}function Jr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(E(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Jr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||kr in t?3===r&&Kt&&(1===Kt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Kt}}else j(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),64&r?(n=16,t=[Gr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xr(e,t,n,r=null){gt(e,t,7,[n,r])}const Zr=yr();let qr=0;let Qr=null;const Kr=()=>Qr||Kt,Yr=e=>{Qr=e,e.scope.on()},eo=()=>{Qr&&Qr.scope.off(),Qr=null};function to(e){return 4&e.vnode.shapeFlag}let no=!1;function ro(e,t,n){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:P(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=ht(t)),oo(e,n)}function oo(e,t,n){const r=e.type;e.render||(e.render=r.render||y),__VUE_OPTIONS_API__&&(Yr(e),pe(),function(e){const t=qn(e),n=e.proxy,r=e.ctx;Jn=!1,t.beforeCreate&&Xn(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:c,inject:l,created:u,beforeMount:p,mounted:f,beforeUpdate:d,updated:h,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:_,unmounted:w,render:S,renderTracked:O,renderTriggered:A,errorCaptured:x,serverPrefetch:T,expose:M,inheritAttrs:C,components:N,directives:L,filters:I}=t;if(l&&function(e,t,n=y,r=!1){E(e)&&(e=er(e));for(const n in e){const o=e[n];let i;i=P(o)?"default"in o?sn(o.from||n,o.default,!0):sn(o.from||n):sn(o),ft(i)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(l,r,null,e.appContext.config.unwrapInjectedRef),s)for(const e in s){const t=s[e];j(t)&&(r[e]=t.bind(n))}if(o){const t=o.call(n,n);P(t)&&(e.data=tt(t))}if(Jn=!0,i)for(const e in i){const t=i[e],o=j(t)?t.bind(n,n):j(t.get)?t.get.bind(n,n):y,s=!j(t)&&j(t.set)?t.set.bind(n):y,a=so({get:o,set:s});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)Zn(a[e],r,n,e);if(c){const e=j(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(Qr){let n=Qr.provides;const r=Qr.parent&&Qr.parent.provides;r===n&&(n=Qr.provides=Object.create(r)),n[e]=t}}(t,e[t])}))}function D(e,t){E(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Xn(u,e,"c"),D(Mn,p),D(Pn,f),D(Cn,d),D(Nn,h),D(On,m),D(En,g),D(Un,x),D(kn,O),D(Rn,A),D(Ln,b),D(In,w),D(Dn,T),E(M))if(M.length){const t=e.exposed||(e.exposed={});M.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===y&&(e.render=S),null!=C&&(e.inheritAttrs=C),N&&(e.components=N),L&&(e.directives=L)}(e),fe(),eo())}function io(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ht(lt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in $n?$n[n](e):void 0}))}const so=(e,t)=>function(e,t,n=!1){let r,o;const i=j(e);return i?(r=e,o=y):(r=e.get,o=e.set),new yt(r,o,i||!o,n)}(e,0,no);Symbol("");const ao="3.2.37",co="undefined"!=typeof document?document:null,lo=co&&co.createElement("template"),uo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?co.createElementNS("http://www.w3.org/2000/svg",e):co.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>co.createTextNode(e),createComment:e=>co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>co.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{lo.innerHTML=r?`<svg>${e}</svg>`:e;const o=lo.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},po=/\s*!important$/;function fo(e,t,n){if(E(n))n.forEach((n=>fo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=yo[t];if(n)return n;let r=F(t);if("filter"!==r&&r in e)return yo[t]=r;r=V(r);for(let n=0;n<ho.length;n++){const o=ho[n]+r;if(o in e)return yo[t]=o}return t}(e,t);po.test(n)?e.setProperty(z(r),n.replace(po,""),"important"):e[r]=n}}const ho=["Webkit","Moz","ms"],yo={},mo="http://www.w3.org/1999/xlink",[go,vo]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let bo=0;const _o=Promise.resolve(),wo=()=>{bo=0};const So=/(?:Once|Passive|Capture)$/,Oo=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const Eo="transition",Ao="animation",xo=(e,{slots:t})=>function(e,t,n){const r=arguments.length;return 2===r?P(t)&&!E(t)?Dr(t)?zr(e,null,[t]):zr(e,t):zr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Dr(n)&&(n=[n]),zr(e,t,n))}(hn,function(e){const t={};for(const n in e)n in jo||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=s,appearToClass:u=a,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(P(e))return[Po(e.enter),Po(e.leave)];{const t=Po(e);return[t,t]}}(o),y=h&&h[0],m=h&&h[1],{onBeforeEnter:g,onEnter:v,onEnterCancelled:b,onLeave:w,onLeaveCancelled:S,onBeforeAppear:O=g,onAppear:E=v,onAppearCancelled:A=b}=t,x=(e,t,n)=>{No(e,t?u:a),No(e,t?l:s),n&&n()},j=(e,t)=>{e._isLeaving=!1,No(e,p),No(e,d),No(e,f),t&&t()},T=e=>(t,n)=>{const o=e?E:v,s=()=>x(t,e,n);To(o,[t,s]),Lo((()=>{No(t,e?c:i),Co(t,e?u:a),Mo(o)||Do(t,r,y,s)}))};return _(t,{onBeforeEnter(e){To(g,[e]),Co(e,i),Co(e,s)},onBeforeAppear(e){To(O,[e]),Co(e,c),Co(e,l)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>j(e,t);Co(e,p),document.body.offsetHeight,Co(e,f),Lo((()=>{e._isLeaving&&(No(e,p),Co(e,d),Mo(w)||Do(e,r,m,n))})),To(w,[e,n])},onEnterCancelled(e){x(e,!1),To(b,[e])},onAppearCancelled(e){x(e,!0),To(A,[e])},onLeaveCancelled(e){j(e),To(S,[e])}})}(e),t);xo.displayName="Transition";const jo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},To=(xo.props=_({},hn.props,jo),(e,t=[])=>{E(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Mo=e=>!!e&&(E(e)?e.some((e=>e.length>1)):e.length>1);function Po(e){return J(e)}function Co(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function No(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Lo(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Io=0;function Do(e,t,n,r){const o=e._endId=++Io,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:c}=function(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r("transitionDelay"),i=r("transitionDuration"),s=Ro(o,i),a=r("animationDelay"),c=r("animationDuration"),l=Ro(a,c);let u=null,p=0,f=0;return t===Eo?s>0&&(u=Eo,p=s,f=i.length):t===Ao?l>0&&(u=Ao,p=l,f=c.length):(p=Math.max(s,l),u=p>0?s>l?Eo:Ao:null,f=u?u===Eo?i.length:c.length:0),{type:u,timeout:p,propCount:f,hasTransform:u===Eo&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!s)return r();const l=s+"end";let u=0;const p=()=>{e.removeEventListener(l,f),i()},f=t=>{t.target===e&&++u>=c&&p()};setTimeout((()=>{u<c&&p()}),a+1),e.addEventListener(l,f)}function Ro(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>ko(t)+ko(e[n]))))}function ko(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const Uo=_({patchProp:(e,t,n,r,s=!1,a,c,l,u)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){const r=e.style,o=T(n);if(n&&!o){for(const e in n)fo(r,e,n[e]);if(t&&!T(t))for(const e in t)null==n[e]&&fo(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):v(t)?b(t)||function(e,t,n,r,o=null){const i=e._vei||(e._vei={}),s=i[t];if(r&&s)s.value=r;else{const[n,a]=function(e){let t;if(So.test(e)){let n;for(t={};n=e.match(So);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[z(e.slice(2)),t]}(t);if(r){const s=i[t]=function(e,t){const n=e=>{const r=e.timeStamp||go();(vo||r>=n.attached-1)&&gt(function(e,t){if(E(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=bo||(_o.then(wo),bo=go()),n}(r,o);!function(e,t,n,r){e.addEventListener(t,n,r)}(e,n,s,a)}else s&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,a),i[t]=void 0)}}(e,t,0,r,c):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&Oo.test(t)&&j(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Oo.test(t)||!T(n))&&t in e))))}(e,t,r,s))?function(e,t,n,r,o,s,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,o,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let c=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=i(n):null==n&&"string"===r?(n="",c=!0):"number"===r&&(n=0,c=!0)}try{e[t]=n}catch(e){}c&&e.removeAttribute(t)}(e,t,r,a,c,l,u):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,s){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(mo,t.slice(6,t.length)):e.setAttributeNS(mo,t,n);else{const r=o(t);null==n||r&&!i(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,s))}},uo);let Fo;const Bo=(...e)=>{const t=(Fo||(Fo=_r(Uo))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(T(e))return document.querySelector(e);return e}(e);if(!r)return;const o=t._component;j(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};var zo={class:"h5p-audio-recorder-view"},Vo=["innerHTML"],Go=["innerHTML"],Ho={key:1,class:"h5p-audio-recorder-player"},$o={controls:"controls"},Wo=Gr(" Your browser does not support the "),Jo=Br("code",null,"audio",-1),Xo=Gr(" element. "),Zo=["src"],qo={key:3,class:"h5p-audio-recorder-download"},Qo={class:"button-row"},Ko={class:"button-row-double"},Yo=Br("span",{class:"fa-circle"},null,-1),ei=Br("span",{class:"fa-undo"},null,-1),ti={class:"label"},ni=Br("span",{class:"fa-pause"},null,-1),ri={class:"label"},oi=Br("span",{class:"fa-circle"},null,-1),ii={class:"label"},si=Br("span",{class:"fa-play-circle"},null,-1),ai={class:"label"},ci={class:"button-row-left"},li=["href","download"],ui=Br("span",{class:"icon-download"},null,-1),pi={class:"button-row-right"},fi=Br("span",{class:"fa-undo"},null,-1),di={class:"label"};const hi="unsupported",yi="blocked",mi="ready",gi="recording",vi="paused",bi="done",_i="insecure-not-allowed",wi="cant-create-audio-file";var Si={};Si[mi]="button-record",Si[gi]="button-pause",Si[vi]="button-continue",Si[bi]="button-download";const Oi={methods:{resize:function(){this.$el&&(this.viewState=this.$el.offsetWidth<=576?"small":"large")},record:function(){this.$emit(gi)},pause:function(){this.state=vi,this.$emit(this.state)},done:function(){this.state=bi,this.$emit(bi)},retry:function(){var e=this.$el;this.isSubcontent&&(e=function e(t){return t?-1!==t.className.indexOf("h5p-content")?t:e(t.parentNode):null}(this.$el)||this.$el);var t=new H5P.ConfirmationDialog({headerText:this.l10n.retryDialogHeaderText,dialogText:this.l10n.retryDialogBodyText,cancelText:this.l10n.retryDialogCancelText,confirmText:this.l10n.retryDialogConfirmText});t.appendTo(e),t.show();var n=this;t.on("confirmed",(function(){n.state=mi,n.$refs.timer&&n.$refs.timer.reset(),n.$emit("retry")}))}},computed:{unEscape:function(){return this.statusMessages[this.state].replace(/&#039;/g,"'")}},watch:{state:function(e){var t=this;Si[e]&&this.$nextTick((function(){return t.$refs[Si[e]].focus()})),this.$emit("resize")}}};n(338);var Ei=n(959);const Ai=(0,Ei.Z)(Oi,[["render",function(e,t,n,r,o,i){var s=zn("vuMeter"),a=zn("timer");return Mr(),Lr("div",zo,[zr(s,{avgMicFrequency:e.avgMicFrequency,enablePulse:"recording"===e.state},null,8,["avgMicFrequency","enablePulse"]),"done"!==e.state&&e.title?(Mr(),Lr("div",{key:0,class:"title",innerHTML:e.title},null,8,Vo)):Hr("",!0),Br("div",{role:"status",class:u(e.state),innerHTML:e.statusMessages[e.state]},null,10,Go),"done"===e.state&&""!==e.audioSrc?(Mr(),Lr("div",Ho,[Br("audio",$o,[Wo,Jo,Xo,Br("source",{src:e.audioSrc},null,8,Zo)])])):Hr("",!0),"unsupported"!==e.state&&"done"!==e.state&&"insecure-not-allowed"!==e.state?(Mr(),Ir(a,{key:2,ref:"timer",stopped:"recording"!==e.state},null,8,["stopped"])):Hr("",!0),"blocked"!==e.state&&"unsupported"!==e.state&&"done"===e.state?(Mr(),Lr("div",qo,p(e.l10n.downloadRecording),1)):Hr("",!0),Br("div",Qo,[Br("div",Ko,["ready"===e.state||"blocked"===e.state?(Mr(),Lr("button",{key:0,class:"button record",ref:"button-record",onClick:t[0]||(t[0]=function(){return i.record&&i.record.apply(i,arguments)})},[Yo,Gr(" "+p(e.l10n.recordAnswer),1)],512)):Hr("",!0),"recording"===e.state||"paused"===e.state?(Mr(),Lr("button",{key:1,class:u(["button retry small",{"small-screen":"small"===this.viewState}]),onClick:t[1]||(t[1]=function(){return i.retry&&i.retry.apply(i,arguments)})},[ei,Br("span",ti,p(e.l10n.retry),1)],2)):Hr("",!0),"recording"===e.state?(Mr(),Lr("button",{key:2,class:u(["button pause",{"small-screen":"small"===this.viewState}]),ref:"button-pause",onClick:t[2]||(t[2]=function(){return i.pause&&i.pause.apply(i,arguments)})},[ni,Br("span",ri,p(e.l10n.pause),1)],2)):Hr("",!0),"paused"===e.state?(Mr(),Lr("button",{key:3,class:u(["button record",{"small-screen":"small"===this.viewState}]),ref:"button-continue",onClick:t[3]||(t[3]=function(){return i.record&&i.record.apply(i,arguments)})},[oi,Br("span",ii,p(e.l10n.continue),1)],2)):Hr("",!0),"recording"===e.state||"paused"===e.state?(Mr(),Lr("button",{key:4,class:u(["button done small",{"small-screen":"small"===this.viewState}]),onClick:t[4]||(t[4]=function(){return i.done&&i.done.apply(i,arguments)})},[si,Br("span",ai,p(e.l10n.done),1)],2)):Hr("",!0)]),Br("span",ci,["done"===e.state?(Mr(),Lr("a",{key:0,class:"button download",ref:"button-download",href:e.audioSrc,download:e.audioFilename},[ui,Gr(" "+p(e.l10n.download),1)],8,li)):Hr("",!0)]),Br("span",pi,["done"===e.state||"cant-create-audio-file"===e.state?(Mr(),Lr("button",{key:0,class:"button retry",onClick:t[5]||(t[5]=function(){return i.retry&&i.retry.apply(i,arguments)})},[fi,Br("span",di,p(e.l10n.retry),1)])):Hr("",!0)])])])}]]);var xi={class:"recording-indicator-wrapper"},ji=Br("div",{class:"fa-microphone"},null,-1);const Ti={props:["avgMicFrequency","enablePulse"],computed:{pulseScale:function(){return function(e){e>30?e=30:e<4&&(e=4);var t=(e-4)/30*(1.3-.7)+.7;return.005*Math.round(t/.005)}(this.avgMicFrequency)}}};n(656);const Mi=(0,Ei.Z)(Ti,[["render",function(e,t,n,r,o,i){return Mr(),Lr("div",xi,[Br("div",{style:s({transform:"scale(".concat(i.pulseScale,")")}),class:u([[{hidden:!n.enablePulse}],"h5p-audio-recorder-vu-meter"])},null,6),ji])}]]);var Pi={role:"timer",class:"audio-recorder-timer"},Ci=n(277);const Ni={props:["stopped"],mounted:function(){var e=this;setInterval((function(){e.secondsPassed=e.timer.time()/1e3}),200)},data:function(){return{timer:new Ci,secondsPassed:0}},methods:{reset:function(){this.secondsPassed=0,this.timer=new Ci}},computed:{formatTime:function(){var e=function(e){return e<10?"0".concat(e):"".concat(e)},t=parseInt(this.secondsPassed,10),n=e(Math.floor(t/60)),r=e(t-60*n);return"".concat(n,":").concat(r)}},watch:{stopped:function(e){this.timer[e?"stop":"start"]()}}};n(680);const Li=(0,Ei.Z)(Ni,[["render",function(e,t,n,r,o,i){return Mr(),Lr("div",Pi,p(i.formatTime),1)}]]);function Ii(e){return Ii="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},Ii(e)}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ri(e,t){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ri(e,t)}function ki(e,t){if(t&&("object"===Ii(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ui(e){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ui(e)}var Fi="inactive",Bi="recording",zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&Ri(e,t)}(s,H5P.EventDispatcher);var t,n,r,o,i=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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,t=Ui(r);if(o){var n=Ui(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ki(this,e)});function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this)).config={bufferLength:4096,numChannels:1},e.state=Fi;var t=new Blob(["/**\n * This is a web worker responsible for recording/buffering the sound and\n * encoding it as wav.\n */\n\nvar recLength = 0;\nvar recBuffers = [];\nvar sampleRate;\nvar numChannels;\n\n// Listen to incoming messages\nthis.onmessage = function(e) {\n  switch(e.data.command){\n    case 'init':\n      init(e.data.config);\n      break;\n    case 'record':\n      record(e.data.buffer);\n      break;\n    case 'export-wav':\n      exportWAV();\n      break;\n    case 'clear':\n      clear();\n      break;\n  }\n};\n\n/**\n * Initialization\n *\n * @param  {Object} config\n */\nfunction init(config) {\n  sampleRate = config.sampleRate;\n  numChannels = config.numChannels;\n  initBuffers();\n}\n\n/**\n * Storing the data buffer\n *\n * @param  {Float32Array} inputBuffer\n */\nfunction record(inputBuffer) {\n  for (var channel = 0; channel < numChannels; channel++){\n    recBuffers[channel].push(inputBuffer[channel]);\n  }\n  recLength += inputBuffer[0].length;\n}\n\n/**\n * Export buffered data as a wav encoded blob\n */\nfunction exportWAV() {\n  var buffers = [];\n  for (var channel = 0; channel < numChannels; channel++){\n    buffers.push(mergeBuffers(recBuffers[channel], recLength));\n  }\n  if (numChannels === 2){\n      var interleaved = interleave(buffers[0], buffers[1]);\n  } else {\n      var interleaved = buffers[0];\n  }\n  var dataview = encodeWAV(interleaved);\n  var audioBlob = new Blob([dataview], { type: 'audio/wav' });\n\n  this.postMessage({\n    command: 'wav-delivered',\n    blob: audioBlob\n  });\n}\n\n/**\n * Clear the buffers\n */\nfunction clear() {\n  recLength = 0;\n  recBuffers = [];\n  initBuffers();\n}\n\n/**\n * Initialize the buffers\n */\nfunction initBuffers() {\n  for (var channel = 0; channel < numChannels; channel++){\n    recBuffers[channel] = [];\n  }\n}\n\n/**\n * Merge buffers\n *\n * @param {Array} recBuffers\n * @param {[type]} recLength\n * @return {Float32Array}\n */\nfunction mergeBuffers(recBuffers, recLength){\n  var result = new Float32Array(recLength);\n  var offset = 0;\n  for (var i = 0; i < recBuffers.length; i++){\n    result.set(recBuffers[i], offset);\n    offset += recBuffers[i].length;\n  }\n  return result;\n}\n\n/**\n * Interleave two channels\n *\n * @param {Array} inputL\n * @param {Array} inputR\n * @return {Float32Array}\n */\nfunction interleave(inputL, inputR){\n  var length = inputL.length + inputR.length;\n  var result = new Float32Array(length);\n\n  var index = 0,\n    inputIndex = 0;\n\n  while (index < length){\n    result[index++] = inputL[inputIndex];\n    result[index++] = inputR[inputIndex];\n    inputIndex++;\n  }\n  return result;\n}\n\n/**\n * Convert floats to 16 bit PCMs\n *\n * @param {DataView} output\n * @param {number} offset\n * @param {Array} input\n */\nfunction floatTo16BitPCM(output, offset, input) {\n  for (var i = 0; i < input.length; i++, offset+=2){\n    var s = Math.max(-1, Math.min(1, input[i]));\n    output.setInt16(offset, s < 0 ? s * 0x8000 : s * 0x7FFF, true);\n  }\n}\n\n/**\n * Write string to wav header\n *\n * @param {DataView} view\n * @param {number} offset\n * @param {string} string\n */\nfunction writeString(view, offset, string) {\n  for (var i = 0; i < string.length; i++){\n    view.setUint8(offset + i, string.charCodeAt(i));\n  }\n}\n\n/**\n * Encode as wav\n *\n * @param {Array} samples\n * @return {DataView}\n */\nfunction encodeWAV(samples) {\n  var buffer = new ArrayBuffer(44 + samples.length * 2);\n  var view = new DataView(buffer);\n\n  /* RIFF identifier */\n  writeString(view, 0, 'RIFF');\n  /* RIFF chunk length */\n  view.setUint32(4, 36 + samples.length * 2, true);\n  /* RIFF type */\n  writeString(view, 8, 'WAVE');\n  /* format chunk identifier */\n  writeString(view, 12, 'fmt ');\n  /* format chunk length */\n  view.setUint32(16, 16, true);\n  /* sample format (raw) */\n  view.setUint16(20, 1, true);\n  /* channel count */\n  view.setUint16(22, numChannels, true);\n  /* sample rate */\n  view.setUint32(24, sampleRate, true);\n  /* byte rate (sample rate * block align) */\n  view.setUint32(28, sampleRate * 2 * numChannels, true);\n  /* block align (channel count * bytes per sample) */\n  view.setUint16(32, numChannels * 2, true);\n  /* bits per sample */\n  view.setUint16(34, 16, true);\n  /* data chunk identifier */\n  writeString(view, 36, 'data');\n  /* data chunk length */\n  view.setUint32(40, samples.length * 2, true);\n\n  floatTo16BitPCM(view, 44, samples);\n\n  return view;\n}\n"],{type:"text/javascript"});return e.worker=new Worker(URL.createObjectURL(t)),e.worker.onmessage=function(t){e.trigger(t.data.command,t.data.blob)},e.worker.onerror=function(t){e.trigger("worker-error",t)},e}return t=s,n=[{key:"getWavURL",value:function(){var e=this;this.stop();var t=new Promise((function(t,n){e.once("wav-delivered",(function(e){t(URL.createObjectURL(e.data))})),e.once("worker-error",(function(e){n(e)}))}));return this.worker.postMessage({command:"export-wav"}),t}},{key:"_setupAudioProcessing",value:function(e){var t=this;this.stream=e;var n=window.AudioContext||window.webkitAudioContext;this.audioContext=new n,this.scriptProcessorNode=this.audioContext.createScriptProcessor(this.config.bufferLength,this.config.numChannels,this.config.numChannels),this.scriptProcessorNode.onaudioprocess=function(e){t.state===Bi&&t.worker.postMessage({command:"record",buffer:[e.inputBuffer.getChannelData(0)]})};var r=this.audioContext.createAnalyser();r.minDecibels=-90,r.maxDecibels=-10,r.smoothingTimeConstant=.85,r.fftSize=256,this.freqBufferLength=r.frequencyBinCount,this.freqDataArray=new Uint8Array(this.freqBufferLength),this.freqAnalyser=r,this.sourceNode=this.audioContext.createMediaStreamSource(e),this.sourceNode.connect(this.freqAnalyser),this.freqAnalyser.connect(this.scriptProcessorNode),this.scriptProcessorNode.connect(this.audioContext.destination)}},{key:"getAverageMicFrequency",value:function(){return this.freqAnalyser.getByteFrequencyData(this.freqDataArray),this.freqDataArray.reduce((function(e,t){return e+t}),0)/this.freqBufferLength}},{key:"grabMic",value:function(){var e=this;return this.supported()?(void 0===this.userMedia&&(this.userMedia=navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){e._setupAudioProcessing(t),e.worker.postMessage({command:"init",config:{sampleRate:e.sourceNode.context.sampleRate,numChannels:e.config.numChannels}})})).catch((function(t){var n="blocked";return t.name&&-1!==["NotSupportedError","NotSupportedError","NotAllowedError"].indexOf(t.name)&&(n="insecure-not-allowed"),delete e.userMedia,Promise.reject(n)}))),this.userMedia):Promise.reject()}},{key:"start",value:function(){var e=this;this.grabMic().then((function(){e._setState(Bi)})).catch((function(t){e.trigger(t)}))}},{key:"stop",value:function(){this._setState(Fi)}},{key:"supported",value:function(){return(void 0!==window.AudioContext||void 0!==window.webkitAudioContext)&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia}},{key:"releaseMic",value:function(){this._setState(Fi),this.worker.postMessage({command:"clear"}),this.stream.getAudioTracks().forEach((function(e){return e.stop()})),this.sourceNode.disconnect(),this.scriptProcessorNode.disconnect(),"closed"!==this.audioContext.state&&this.audioContext.close(),delete this.userMedia}},{key:"_setState",value:function(e){this.state=e,this.trigger(this.state)}}],n&&Di(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}();function Vi(e){return Vi="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},Vi(e)}function Gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const Hi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"extend",value:function(){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])arguments[e].hasOwnProperty(t)&&("object"===Vi(arguments[0][t])&&"object"===Vi(arguments[e][t])?this.extend(arguments[0][t],arguments[e][t]):arguments[0][t]=arguments[e][t]);return arguments[0]}}],null&&Gi(t.prototype,null),n&&Gi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){Ji(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zi(e,t,n){return t&&Xi(e.prototype,t),n&&Xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var qi=Zi((function e(t,n){var r=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),H5P.EventDispatcher.call(this),t=Hi.extend({l10n:{recordAnswer:"Record",pause:"Pause",continue:"Continue",download:"Download",done:"Done",retry:"Retry",microphoneNotSupported:"Microphone not supported. Make sure you are using a browser that allows microphone recording.",microphoneInaccessible:"Microphone is not accessible. Make sure that the browser microphone is enabled.",insecureNotAllowed:"Access to microphone is not allowed in your browser since this page is not served using HTTPS. Please contact the author, and ask him to make this available using HTTPS",statusReadyToRecord:"Press a button below to record your answer.",statusRecording:"Recording...",statusPaused:"Recording paused. Press a button to continue recording.",statusFinishedRecording:"You have successfully recorded your answer! Listen to the recording below.",downloadRecording:"Download this recording or retry.",retryDialogHeaderText:"Retry recording?",retryDialogBodyText:'By pressing "Retry" you will lose your current recording.',retryDialogConfirmText:"Retry",retryDialogCancelText:"Cancel",statusCantCreateTheAudioFile:"Can't create the audio file."}},t);var o=document.createElement("div");o.classList.add("h5p-audio-recorder");var i,s=this.recorder=new zi,a={};a[hi]=t.l10n.microphoneNotSupported,a[yi]=t.l10n.microphoneInaccessible,a[mi]=t.l10n.statusReadyToRecord,a[gi]=t.l10n.statusRecording,a[vi]=t.l10n.statusPaused,a[bi]=t.l10n.statusFinishedRecording,a[_i]=t.l10n.insecureNotAllowed,a[wi]=t.l10n.statusCantCreateTheAudioFile;var c=this;Ai.data=function(){return{title:t.title,state:s.supported()?mi:hi,statusMessages:a,l10n:t.l10n,audioSrc:"",audioFilename:"",avgMicFrequency:0,isSubcontent:!c.hasOwnProperty("isRoot")||!c.isRoot()}};var l=Bo(Wi(Wi({},Ai),{},{components:{timer:Li,vuMeter:Mi}}),{onRecording:function(){s.start()},onDone:function(){s.stop(),s.getWavURL().then((function(e){if(s.releaseMic(),i.$data.audioSrc=e,t.title&&t.title.length>0){var n=t.title.substr(0,20);i.$data.audioFilename=n.toLowerCase().replace(/ /g,"-")+".wav"}c.trigger("resize")})).catch((function(e){i.$data.state=wi,console.error(t.l10n.statusCantCreateTheAudioFile,e)}))},onRetry:function(){s.releaseMic(),i.$data.audioSrc=""},onPaused:function(){s.stop()},onResize:function(){c.trigger("resize")}});this.on("resize",(function(){i.resize()})),s.on("recording",(function(){i.$data.state=gi,r.updateMicFrequency()})),s.on("blocked",(function(){i.$data.state=yi})),s.on("insecure-not-allowed",(function(){i.$data.state=_i})),this.updateMicFrequency=function(){var e=this;i.$data.state===gi?(i.$data.avgMicFrequency=s.getAverageMicFrequency(),setTimeout((function(){e.animateVUMeter=window.requestAnimationFrame((function(){e.updateMicFrequency()}))}),10)):window.cancelAnimationFrame(this.animateVUMeter)},this.attach=function(e){e.get(0).appendChild(o),i=l.mount(o)}}))},737:(e,t,n)=>{"use strict";var r=n(750),o=n(573),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},573:(e,t,n)=>{"use strict";var r=n(132),o=n(750),i=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),a=o("%Reflect.apply%",!0)||r.call(s,i),c=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(r,s,arguments);if(c&&l){var n=c(t,"length");n.configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var p=function(){return a(r,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},833:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(933),o=n.n(r),i=n(476),s=n.n(i)()(o());s.push([e.id,'.h5p-content:not(.using-mouse) .h5p-audio-recorder-view .button:focus{outline:0;box-shadow:.06em 0 .6em .1em #7bc1f9}.h5p-audio-recorder-view{font-size:1em;padding:.9em;text-align:center;font-family:Arial,"Open Sans",sans-serif}.h5p-audio-recorder-view [class^=fa-]{font-family:"H5PFontAwesome4"}.h5p-audio-recorder-view .fa-microphone{width:60%;height:60%;left:50%;top:50%;transform:translate(-50%, -50%);position:absolute;font-size:2.5em;border-radius:50%;background-color:#fff;line-height:2.5em}.h5p-audio-recorder-view .h5p-audio-recorder-player{box-sizing:border-box;margin:1.25em 1em 0 1em}.h5p-audio-recorder-view .h5p-audio-recorder-player audio{width:100%}.h5p-audio-recorder-view .title{color:#000;font-size:1.25em;margin-bottom:1em;line-height:1.5em}.h5p-audio-recorder-view .icon-download:before{font-family:"H5PFontIcons";content:""}.h5p-audio-recorder-view [role=status]{background-color:#f8f8f8;color:#777;padding:.6em}.h5p-audio-recorder-view [role=status].recording{background-color:#f9e5e6;color:#da5254}.h5p-audio-recorder-view [role=status].done{background-color:#e0f9e3;color:#20603d}.h5p-audio-recorder-view [role=status].blocked,.h5p-audio-recorder-view [role=status].unsupported,.h5p-audio-recorder-view [role=status].insecure-not-allowed,.h5p-audio-recorder-view [role=status].cant-create-audio-file{background-color:#db8b8b;color:#000}.h5p-audio-recorder-view .h5p-audio-recorder-download{font-size:1.2em;padding:2em}.h5p-audio-recorder-view .h5p-confirmation-dialog-popup{top:5em;width:35em;max-width:100%;min-width:0}.h5p-audio-recorder-view .button-row{margin-bottom:1em}.h5p-audio-recorder-view .button-row .button-row-double{width:100%}.h5p-audio-recorder-view .button-row .button-row-left{text-align:right;flex:1}.h5p-audio-recorder-view .button-row .button-row-right{text-align:left;flex:1}.h5p-audio-recorder-view .button{font-size:1.042em;font-family:"Open Sans",sans-serif;padding:.708em 1.25em;border-radius:2em;margin:0 .5em;border:0;display:inline-block;cursor:pointer;text-decoration:none;font-weight:600;white-space:nowrap}.h5p-audio-recorder-view .button [class^=fa-]{font-weight:400}.h5p-audio-recorder-view .button.small{font-size:.85em}.h5p-audio-recorder-view .button.done{background-color:#fff;color:#1f824c;border:2px solid #1f824c;box-sizing:border-box}.h5p-audio-recorder-view .button.done:hover{color:#29ab64;border-color:#29ab64}.h5p-audio-recorder-view .button.done:active{color:#155934;border-color:#155934}.h5p-audio-recorder-view .button.done[disabled],.h5p-audio-recorder-view .button.done[aria-disabled]{color:#8ae3b2;border-color:#8ae3b2}.h5p-audio-recorder-view .button.retry{background-color:#5e5e5e;color:#fff;border-color:#5e5e5e;border:2px solid #5e5e5e;box-sizing:border-box}.h5p-audio-recorder-view .button.retry:hover{background-color:#515151;border-color:#515151}.h5p-audio-recorder-view .button.retry:active{background-color:#454545;border-color:#454545}.h5p-audio-recorder-view .button.retry[disabled]{background-color:#c4c4c4;border-color:#c4c4c4}.h5p-audio-recorder-view .button.record{background-color:#d95354;color:#fff;border-color:#d95354;border:2px solid #d95354;box-sizing:border-box}.h5p-audio-recorder-view .button.record:hover{background-color:#d43e3f;border-color:#d43e3f}.h5p-audio-recorder-view .button.record:active{background-color:#cc2d2e;border-color:#cc2d2e}.h5p-audio-recorder-view .button.record[disabled]{background-color:#fefafa;border-color:#fefafa}.h5p-audio-recorder-view .button.download{background-color:#1f824c;color:#fff;border-color:#1f824c;border:2px solid #1f824c;box-sizing:border-box}.h5p-audio-recorder-view .button.download:hover{background-color:#1a6d40;border-color:#1a6d40}.h5p-audio-recorder-view .button.download:active{background-color:#155934;border-color:#155934}.h5p-audio-recorder-view .button.download[disabled]{background-color:#8ae3b2;border-color:#8ae3b2}.h5p-audio-recorder-view .button.pause{background-color:#fff;color:#d95354;border:2px solid #d95354;box-sizing:border-box}.h5p-audio-recorder-view .button.pause:hover{color:#e27d7e;border-color:#e27d7e}.h5p-audio-recorder-view .button.pause:active{color:#cc2d2e;border-color:#cc2d2e}.h5p-audio-recorder-view .button.pause[disabled],.h5p-audio-recorder-view .button.pause[aria-disabled]{color:#fefafa;border-color:#fefafa}.h5p-audio-recorder-view .button.small-screen .label{display:none}.h5p-audio-recorder-view .button:not(.small-screen) [class^=fa-]{margin-right:.4em}.h5p-audio-recorder-view .button:not(.small-screen).record,.h5p-audio-recorder-view .button:not(.small-screen).pause{min-width:8.2em}',""]);const a=s},903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(933),o=n.n(r),i=n(476),s=n.n(i)()(o());s.push([e.id,'.audio-recorder-timer{font-family:"Open Sans",sans-serif;font-size:2.5em;font-weight:600;color:#8f8f8f;margin:1em 0}',""]);const a=s},867:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(933),o=n.n(r),i=n(476),s=n.n(i),a=n(678),c=n.n(a),l=new URL(n(945),n.b),u=s()(o()),p=c()(l);u.push([e.id,".recording-indicator-wrapper{height:9.375em;width:9.375em;margin-left:auto;margin-right:auto;line-height:9.375em;color:#8e8e8e;position:relative;margin-bottom:1em}.h5p-audio-recorder-vu-meter{height:100%;width:100%;background-image:url("+p+");position:absolute;transform:scale(0.8)}.h5p-audio-recorder-vu-meter.hidden{display:none}",""]);const f=u},476:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&s[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},678:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},933:e=>{"use strict";e.exports=function(e){return e[1]}},343:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,i,s,l;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},278:(e,t,n)=>{"use strict";var r=n(922),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,s=function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},a=function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},c=function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),"[object Array]"===o.call(e)?s(e,t,i):"string"==typeof e?a(e,t,i):c(e,t,i)}},458:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var s,a=n.call(arguments,1),c=function(){if(this instanceof s){var t=i.apply(this,a.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,a.concat(n.call(arguments)))},l=Math.max(0,i.length-a.length),u=[],p=0;p<l;p++)u.push("$"+p);if(s=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var f=function(){};f.prototype=i.prototype,s.prototype=new f,f.prototype=null}return s}},132:(e,t,n)=>{"use strict";var r=n(458);e.exports=Function.prototype.bind||r},750:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,s=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new s},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=n(679)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?r:f(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return y[t]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(132),b=n(492),_=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),O=v.call(Function.call,String.prototype.slice),E=v.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,j=function(e){var t=O(e,0,1),n=O(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return S(e,A,(function(e,t,n,o){r[r.length]=n?S(o,x,"$1"):t||e})),r},T=function(e,t){var n,r=e;if(b(g,r)&&(r="%"+(n=g[r])[0]+"%"),b(y,r)){var i=y[r];if(i===d&&(i=m(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=j(e),r=n.length>0?n[0]:"",i=T("%"+r+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(r=p[0],w(n,_([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],m=O(h,0,1),g=O(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),b(y,a="%"+(r+="."+h)+"%"))l=y[a];else if(null!=l){if(!(h in l)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var v=c(l,h);l=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[h]}else d=b(l,h),l=l[h];d&&!u&&(y[a]=l)}}return l}},679:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(186);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},186:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},698:(e,t,n)=>{"use strict";var r=n(186);e.exports=function(){return r()&&!!Symbol.toStringTag}},492:(e,t,n)=>{"use strict";var r=n(132);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},87:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},740:(e,t,n)=>{"use strict";var r=n(698)(),o=n(737)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},922:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},a=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=o?function(e){if(e===l)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!s(e)}:function(e){if(e===l)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)return function(e){try{return!s(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},265:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=n(698)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(s.test(i.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===o.call(e);if(!c)return!1;if(void 0===r){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&c(t)}return c(e)===r}},387:(e,t,n)=>{"use strict";var r=n(278),o=n(973),i=n(737),s=i("Object.prototype.toString"),a=n(698)(),c="undefined"==typeof globalThis?n.g:globalThis,l=o(),u=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},p=i("String.prototype.slice"),f={},d=n(828),h=Object.getPrototypeOf;a&&d&&h&&r(l,(function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=h(t),r=d(n,Symbol.toStringTag);if(!r){var o=h(n);r=d(o,Symbol.toStringTag)}f[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a||!(Symbol.toStringTag in e)){var t=p(s(e),8,-1);return u(l,t)>-1}return!!d&&function(e){var t=!1;return r(f,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},277:(e,t,n)=>{var r=n(343).EventEmitter,o=n(323).inherits;e.exports=s;var i={};function s(e){r.call(this),this._total=0,this._start=null,this._startCount=0,e&&this.start()}function a(){return(new Date).getTime()}o(s,r),s.get=function(e){return i[e]||(i[e]=new s),i[e]},s.destroy=function(e){return!!i[e]&&delete i[e]},s.prototype.time=function(){return this._total+this.timeFromStart()},s.prototype.emitTime=function(){var e=this.time();return this.emit("time",e),e},s.prototype.timeFromStart=function(){return this.isStarted()?a()-this._start:0},s.prototype.isStarted=function(){return!this.isStopped()},s.prototype.isStopped=function(){return null===this._start},s.prototype.start=function(){return++this._startCount,!!this.isStopped()&&(this._start=a(),this.emit("start"),!0)},s.prototype.stop=function(){return!!this.isStarted()&&(this._total+=this.timeFromStart(),this._start=null,this._stopCount=0,this.emit("stop"),!0)},s.prototype.stopParallel=function(){return!(!this.isStarted()||(--this._startCount,0!==this._startCount))&&this.stop()},s.prototype.toggle=function(){return this.start()||this.stop()},s.prototype.toString=function(){return this.time()+"ms"},s.prototype.valueOf=function(){return this.time()}},579:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},673:(e,t,n)=>{"use strict";var r=n(740),o=n(265),i=n(505),s=n(387);function a(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=a(Object.prototype.toString),p=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(c)var h=a(BigInt.prototype.valueOf);if(l)var y=a(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===u(e)}function v(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function _(e){return"[object WeakSet]"===u(e)}function w(e){return"[object ArrayBuffer]"===u(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function O(e){return"[object DataView]"===u(e)}function E(e){return"undefined"!=typeof DataView&&(O.working?O(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=S,O.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&O(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(e){return"[object SharedArrayBuffer]"===u(e)}function j(e){return void 0!==A&&(void 0===x.working&&(x.working=x(new A)),x.working?x(e):e instanceof A)}function T(e){return m(e,p)}function M(e){return m(e,f)}function P(e){return m(e,d)}function C(e){return c&&m(e,h)}function N(e){return l&&m(e,y)}t.isSharedArrayBuffer=j,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=T,t.isStringObject=M,t.isBooleanObject=P,t.isBigIntObject=C,t.isSymbolObject=N,t.isBoxedPrimitive=function(e){return T(e)||M(e)||P(e)||C(e)||N(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||j(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},323:(e,t,n)=>{var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])m(a)||!w(a)?s+=" "+a:s+=" "+c(a);return s},t.deprecate=function(e,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var i={},s=/^$/;if({GJS_DEBUG_TOPICS:"JS ERROR;JS LOG",LESSOPEN:"| /usr/bin/lesspipe %s",J2SDKDIR:"/usr/lib/jvm/java-8-oracle",USER:"paal",LC_TIME:"nb_NO.UTF-8",npm_config_user_agent:"npm/8.15.0 node/v16.17.0 linux x64 workspaces/false",TEXTDOMAIN:"im-config",XDG_SEAT:"seat0",SSH_AGENT_PID:"4774",XDG_SESSION_TYPE:"x11",npm_node_execpath:"/home/paal/.nvm/versions/node/v16.17.0/bin/node",J2REDIR:"/usr/lib/jvm/java-8-oracle/jre",SHLVL:"2",npm_config_noproxy:"",OLDPWD:"/home/paal/h5p-libs/joubel",QT4_IM_MODULE:"xim",HOME:"/home/paal",H5P_IGNORE_PATTERN:"^\\.|~$|LICENSE|\\.md|node_modules|gulpfile.js|package-lock.json|.*language\\/source.*$",DESKTOP_SESSION:"ubuntu",NVM_BIN:"/home/paal/.nvm/versions/node/v16.17.0/bin",NVM_NODEJS_ORG_MIRROR:"https://nodejs.org/dist",npm_package_json:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder/package.json",GNOME_SHELL_SESSION_MODE:"ubuntu",GTK_MODULES:"gail:atk-bridge",LC_MONETARY:"nb_NO.UTF-8",npm_config_userconfig:"/home/paal/.npmrc",npm_config_local_prefix:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",npm_config_engine_strict:"true",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/paal/.nvm",H5P_IGNORE_REPOS:"h5p-personality-quiz,h5p-editor-mini-course,h5p-editor-conditional,h5p-fullscreen-scroller",npm_config_metrics_registry:"https://registry.npmjs.org/",MANDATORY_PATH:"/usr/share/gconf/ubuntu.mandatory.path",QT_QPA_PLATFORMTHEME:"appmenu-qt5",IM_CONFIG_PHASE:"2",LOGNAME:"paal",GTK_IM_MODULE:"ibus",_:"/home/paal/.nvm/versions/node/v16.17.0/bin/npm",npm_config_prefix:"/home/paal/.nvm/versions/node/v16.17.0",DEFAULTS_PATH:"/usr/share/gconf/ubuntu.default.path",USERNAME:"paal",XDG_SESSION_ID:"5",TERM:"xterm-256color",npm_config_cache:"/home/paal/.npm",GNOME_DESKTOP_SESSION_ID:"this-is-deprecated",GTK2_MODULES:"overlay-scrollbar",WINDOWPATH:"2",npm_config_node_gyp:"/home/paal/.nvm/versions/node/v16.17.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder/node_modules/.bin:/home/paal/projects/h5p/libs/joubel/node_modules/.bin:/home/paal/projects/h5p/libs/node_modules/.bin:/home/paal/projects/h5p/node_modules/.bin:/home/paal/projects/node_modules/.bin:/home/paal/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/paal/.nvm/versions/node/v16.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/paal/.nvm/versions/node/v16.17.0/bin:/home/paal/.linuxbrew/bin:/home/paal/.composer/vendor/bin:~/.local/bin:/usr/local/go/bin:/home/paal/projects/h5pcom/h5pcom-tools:/home/paal/bin:/usr/bin:/home/paal/.config/composer/vendor/bin:/home/paal/.symfony/bin:/home/paal/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/paal/.gem/ruby/2.5.0/bin:/var/lib/gems/2.5.0/bin:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.5.0/bin:/usr/share/rubygems-integration/2.5.0/bin:/usr/share/rubygems-integration/all/bin:/usr/local/aws-cli/v2/current/bin/",H5P_IGNORE_MODIFIERS:"ig",DERBY_HOME:"/usr/lib/jvm/java-8-oracle/db",NVM_IOJS_ORG_MIRROR:"https://iojs.org/dist",PAPERSIZE:"a4",SESSION_MANAGER:"local/big:@/tmp/.ICE-unix/4684,unix/big:/tmp/.ICE-unix/4684",NODE:"/home/paal/.nvm/versions/node/v16.17.0/bin/node",npm_package_name:"h5p-audio-recorder",XDG_MENU_PREFIX:"gnome-",S_COLORS:"auto",GNOME_TERMINAL_SCREEN:"/org/gnome/Terminal/screen/062b8e11_67a7_4525_ab8b_4a95d6c737a9",LC_ADDRESS:"nb_NO.UTF-8",XDG_RUNTIME_DIR:"/run/user/1000",DISPLAY:":1",LANG:"en_US.UTF-8",XDG_CURRENT_DESKTOP:"ubuntu:GNOME",LC_TELEPHONE:"nb_NO.UTF-8",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",XDG_SESSION_DESKTOP:"ubuntu",XMODIFIERS:"@im=ibus",GNOME_TERMINAL_SERVICE:":1.88",XAUTHORITY:"/run/user/1000/gdm/Xauthority",npm_lifecycle_script:"cross-env NODE_ENV='production' webpack",SSH_AUTH_SOCK:"/run/user/1000/keyring/ssh",LC_NAME:"nb_NO.UTF-8",SHELL:"/bin/bash",npm_package_version:"1.0.0",npm_lifecycle_event:"build",QT_ACCESSIBILITY:"1",GDMSESSION:"ubuntu",LESSCLOSE:"/usr/bin/lesspipe %s %s",LC_MEASUREMENT:"nb_NO.UTF-8",TEXTDOMAINDIR:"/usr/share/locale/",GJS_DEBUG_OUTPUT:"stderr",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",LC_IDENTIFICATION:"nb_NO.UTF-8",XDG_VTNR:"2",QT_IM_MODULE:"ibus",npm_config_globalconfig:"/home/paal/.nvm/versions/node/v16.17.0/etc/npmrc",npm_config_init_module:"/home/paal/.npm-init.js",JAVA_HOME:"/usr/lib/jvm/java-8-oracle",PWD:"/home/paal/h5p-libs/joubel/h5p-audio-recorder",npm_execpath:"/home/paal/.nvm/versions/node/v16.17.0/lib/node_modules/npm/bin/npm-cli.js",CLUTTER_IM_MODULE:"xim",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",XDG_CONFIG_DIRS:"/etc/xdg/xdg-ubuntu:/etc/xdg",npm_config_global_prefix:"/home/paal/.nvm/versions/node/v16.17.0",LC_NUMERIC:"nb_NO.UTF-8",npm_command:"run-script",LC_PAPER:"nb_NO.UTF-8",VTE_VERSION:"5202",MANPATH:"/home/paal/.nvm/versions/node/v16.17.0/share/man:/home/paal/.linuxbrew/share/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/lib/jvm/java-8-oracle/man",INIT_CWD:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder",EDITOR:"vi",NODE_ENV:"production"}.NODE_DEBUG){var a={GJS_DEBUG_TOPICS:"JS ERROR;JS LOG",LESSOPEN:"| /usr/bin/lesspipe %s",J2SDKDIR:"/usr/lib/jvm/java-8-oracle",USER:"paal",LC_TIME:"nb_NO.UTF-8",npm_config_user_agent:"npm/8.15.0 node/v16.17.0 linux x64 workspaces/false",TEXTDOMAIN:"im-config",XDG_SEAT:"seat0",SSH_AGENT_PID:"4774",XDG_SESSION_TYPE:"x11",npm_node_execpath:"/home/paal/.nvm/versions/node/v16.17.0/bin/node",J2REDIR:"/usr/lib/jvm/java-8-oracle/jre",SHLVL:"2",npm_config_noproxy:"",OLDPWD:"/home/paal/h5p-libs/joubel",QT4_IM_MODULE:"xim",HOME:"/home/paal",H5P_IGNORE_PATTERN:"^\\.|~$|LICENSE|\\.md|node_modules|gulpfile.js|package-lock.json|.*language\\/source.*$",DESKTOP_SESSION:"ubuntu",NVM_BIN:"/home/paal/.nvm/versions/node/v16.17.0/bin",NVM_NODEJS_ORG_MIRROR:"https://nodejs.org/dist",npm_package_json:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder/package.json",GNOME_SHELL_SESSION_MODE:"ubuntu",GTK_MODULES:"gail:atk-bridge",LC_MONETARY:"nb_NO.UTF-8",npm_config_userconfig:"/home/paal/.npmrc",npm_config_local_prefix:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",npm_config_engine_strict:"true",COLORTERM:"truecolor",COLOR:"1",NVM_DIR:"/home/paal/.nvm",H5P_IGNORE_REPOS:"h5p-personality-quiz,h5p-editor-mini-course,h5p-editor-conditional,h5p-fullscreen-scroller",npm_config_metrics_registry:"https://registry.npmjs.org/",MANDATORY_PATH:"/usr/share/gconf/ubuntu.mandatory.path",QT_QPA_PLATFORMTHEME:"appmenu-qt5",IM_CONFIG_PHASE:"2",LOGNAME:"paal",GTK_IM_MODULE:"ibus",_:"/home/paal/.nvm/versions/node/v16.17.0/bin/npm",npm_config_prefix:"/home/paal/.nvm/versions/node/v16.17.0",DEFAULTS_PATH:"/usr/share/gconf/ubuntu.default.path",USERNAME:"paal",XDG_SESSION_ID:"5",TERM:"xterm-256color",npm_config_cache:"/home/paal/.npm",GNOME_DESKTOP_SESSION_ID:"this-is-deprecated",GTK2_MODULES:"overlay-scrollbar",WINDOWPATH:"2",npm_config_node_gyp:"/home/paal/.nvm/versions/node/v16.17.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder/node_modules/.bin:/home/paal/projects/h5p/libs/joubel/node_modules/.bin:/home/paal/projects/h5p/libs/node_modules/.bin:/home/paal/projects/h5p/node_modules/.bin:/home/paal/projects/node_modules/.bin:/home/paal/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/paal/.nvm/versions/node/v16.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/paal/.nvm/versions/node/v16.17.0/bin:/home/paal/.linuxbrew/bin:/home/paal/.composer/vendor/bin:~/.local/bin:/usr/local/go/bin:/home/paal/projects/h5pcom/h5pcom-tools:/home/paal/bin:/usr/bin:/home/paal/.config/composer/vendor/bin:/home/paal/.symfony/bin:/home/paal/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/paal/.gem/ruby/2.5.0/bin:/var/lib/gems/2.5.0/bin:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.5.0/bin:/usr/share/rubygems-integration/2.5.0/bin:/usr/share/rubygems-integration/all/bin:/usr/local/aws-cli/v2/current/bin/",H5P_IGNORE_MODIFIERS:"ig",DERBY_HOME:"/usr/lib/jvm/java-8-oracle/db",NVM_IOJS_ORG_MIRROR:"https://iojs.org/dist",PAPERSIZE:"a4",SESSION_MANAGER:"local/big:@/tmp/.ICE-unix/4684,unix/big:/tmp/.ICE-unix/4684",NODE:"/home/paal/.nvm/versions/node/v16.17.0/bin/node",npm_package_name:"h5p-audio-recorder",XDG_MENU_PREFIX:"gnome-",S_COLORS:"auto",GNOME_TERMINAL_SCREEN:"/org/gnome/Terminal/screen/062b8e11_67a7_4525_ab8b_4a95d6c737a9",LC_ADDRESS:"nb_NO.UTF-8",XDG_RUNTIME_DIR:"/run/user/1000",DISPLAY:":1",LANG:"en_US.UTF-8",XDG_CURRENT_DESKTOP:"ubuntu:GNOME",LC_TELEPHONE:"nb_NO.UTF-8",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",XDG_SESSION_DESKTOP:"ubuntu",XMODIFIERS:"@im=ibus",GNOME_TERMINAL_SERVICE:":1.88",XAUTHORITY:"/run/user/1000/gdm/Xauthority",npm_lifecycle_script:"cross-env NODE_ENV='production' webpack",SSH_AUTH_SOCK:"/run/user/1000/keyring/ssh",LC_NAME:"nb_NO.UTF-8",SHELL:"/bin/bash",npm_package_version:"1.0.0",npm_lifecycle_event:"build",QT_ACCESSIBILITY:"1",GDMSESSION:"ubuntu",LESSCLOSE:"/usr/bin/lesspipe %s %s",LC_MEASUREMENT:"nb_NO.UTF-8",TEXTDOMAINDIR:"/usr/share/locale/",GJS_DEBUG_OUTPUT:"stderr",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",LC_IDENTIFICATION:"nb_NO.UTF-8",XDG_VTNR:"2",QT_IM_MODULE:"ibus",npm_config_globalconfig:"/home/paal/.nvm/versions/node/v16.17.0/etc/npmrc",npm_config_init_module:"/home/paal/.npm-init.js",JAVA_HOME:"/usr/lib/jvm/java-8-oracle",PWD:"/home/paal/h5p-libs/joubel/h5p-audio-recorder",npm_execpath:"/home/paal/.nvm/versions/node/v16.17.0/lib/node_modules/npm/bin/npm-cli.js",CLUTTER_IM_MODULE:"xim",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",XDG_CONFIG_DIRS:"/etc/xdg/xdg-ubuntu:/etc/xdg",npm_config_global_prefix:"/home/paal/.nvm/versions/node/v16.17.0",LC_NUMERIC:"nb_NO.UTF-8",npm_command:"run-script",LC_PAPER:"nb_NO.UTF-8",VTE_VERSION:"5202",MANPATH:"/home/paal/.nvm/versions/node/v16.17.0/share/man:/home/paal/.linuxbrew/share/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/lib/jvm/java-8-oracle/man",INIT_CWD:"/home/paal/projects/h5p/libs/joubel/h5p-audio-recorder",EDITOR:"vi",NODE_ENV:"production"}.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function c(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),p(r,e,r.depth)}function l(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function u(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return v(o)||(o=p(e,o,r)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),O(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(E(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return f(n)}var l,u="",w=!1,A=["{","}"];return h(n)&&(w=!0,A=["[","]"]),E(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(u=" "+RegExp.prototype.toString.call(n)),S(n)&&(u=" "+Date.prototype.toUTCString.call(n)),O(n)&&(u=" "+f(n)),0!==s.length||w&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=w?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)M(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,w)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,u,A)):A[0]+u+A[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),M(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(c.value)<0?(a=m(n)?p(e,c.value,null):p(e,c.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return"   "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===A(e)}function w(e){return"object"==typeof e&&null!==e}function S(e){return w(e)&&"[object Date]"===A(e)}function O(e){return w(e)&&("[object Error]"===A(e)||e instanceof Error)}function E(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(s.test(e)){var n=process.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(673),t.isArray=h,t.isBoolean=y,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=w,t.isDate=S,t.types.isDate=S,t.isError=O,t.types.isNativeError=O,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(579);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=n(87),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then((function(e){process.nextTick(i.bind(null,null,e))}),(function(e){process.nextTick(C.bind(null,e,i))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},959:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},338:(e,t,n)=>{var r=n(833);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(441).Z)("5dcc9be9",r,!0,{})},680:(e,t,n)=>{var r=n(903);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(441).Z)("28c669e3",r,!0,{})},656:(e,t,n)=>{var r=n(867);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(441).Z)("4ca8745e",r,!0,{})},441:(e,t,n)=>{"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=i[0],a={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.d(t,{Z:()=>h});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},p=null,f="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){l=n,p=o||{};var s=r(e,t);return y(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(c=i[a.id]).refs--,n.push(c)}for(t?y(s=r(e,t)):s=[],o=0;o<n.length;o++){var c;if(0===(c=n[o]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}}function y(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(g(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(g(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function m(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function g(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var o=c++;r=a||(a=m()),t=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=m(),t=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var v,b=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function w(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),p.ssrId&&e.setAttribute(f,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},505:(e,t,n)=>{"use strict";var r=n(278),o=n(973),i=n(737),s=i("Object.prototype.toString"),a=n(698)(),c="undefined"==typeof globalThis?n.g:globalThis,l=o(),u=i("String.prototype.slice"),p={},f=n(828),d=Object.getPrototypeOf;a&&f&&d&&r(l,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var n=d(t),r=f(n,Symbol.toStringTag);if(!r){var o=d(n);r=f(o,Symbol.toStringTag)}p[e]=r.get}}}));var h=n(387);e.exports=function(e){return!!h(e)&&(a&&Symbol.toStringTag in e?function(e){var t=!1;return r(p,(function(n,r){if(!t)try{var o=n.call(e);o===r&&(t=o)}catch(e){}})),t}(e):u(s(e),8,-1))}},945:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMC4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMDUuNCAxMDUuNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTA1LjQgMTA1LjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiNFREFCQjA7fQ0KPC9zdHlsZT4NCjx0aXRsZT5BcnRib2FyZCAxPC90aXRsZT4NCjxnPg0KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01Mi43LDBDMjMuNiwwLDAsMjMuNiwwLDUyLjdzMjMuNiw1Mi43LDUyLjcsNTIuN2MyOS4xLDAsNTIuNy0yMy42LDUyLjctNTIuN0MxMDUuNCwyMy42LDgxLjgsMCw1Mi43LDB6DQoJCSBNNTIuNywxMDUuMmMtMjksMC01Mi41LTIzLjUtNTIuNS01Mi41UzIzLjcsMC4yLDUyLjcsMC4yczUyLjUsMjMuNSw1Mi41LDUyLjVDMTA1LjIsODEuNyw4MS43LDEwNS4yLDUyLjcsMTA1LjJ6Ii8+DQoJPHBhdGggY2xhc3M9InN0MCIgZD0iTTUyLjcsMTUuMkMzMiwxNS4yLDE1LjIsMzIsMTUuMiw1Mi43UzMyLDkwLjIsNTIuNyw5MC4yczM3LjUtMTYuOCwzNy41LTM3LjVjMCwwLDAsMCwwLDANCgkJQzkwLjEsMzIsNzMuNCwxNS4yLDUyLjcsMTUuMnoiLz4NCgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNTIuNyw3LjhDMjcuOSw3LjgsNy44LDI3LjksNy44LDUyLjdzMjAuMSw0NC45LDQ0LjksNDQuOWMyNC44LDAsNDQuOS0yMC4xLDQ0LjktNDQuOQ0KCQlDOTcuNiwyNy45LDc3LjUsNy44LDUyLjcsNy44eiBNNTIuNyw5Ni42Yy0yNC4yLDAtNDMuOS0xOS43LTQzLjktNDMuOWMwLTI0LjIsMTkuNy00My45LDQzLjktNDMuOWMyNC4yLDAsNDMuOSwxOS42LDQzLjksNDMuOQ0KCQlDOTYuNiw3Ni45LDc2LjksOTYuNiw1Mi43LDk2LjZ6Ii8+DQo8L2c+DQo8L3N2Zz4NCg=="},973:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},828:(e,t,n)=>{"use strict";var r=n(750)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,H5P=H5P||{},H5P.AudioRecorder=n(452).Z})();;var H5P = H5P || {};

/**
 * Class responsible for creating a help text dialog
 */
H5P.JoubelHelpTextDialog = (function ($) {

  var numInstances = 0;
  /**
   * Display a pop-up containing a message.
   *
   * @param {H5P.jQuery}  $container  The container which message dialog will be appended to
   * @param {string}      message     The message
   * @param {string}      closeButtonTitle The title for the close button
   * @return {H5P.jQuery}
   */
  function JoubelHelpTextDialog(header, message, closeButtonTitle) {
    H5P.EventDispatcher.call(this);

    var self = this;

    numInstances++;
    var headerId = 'joubel-help-text-header-' + numInstances;
    var helpTextId = 'joubel-help-text-body-' + numInstances;

    var $helpTextDialogBox = $('<div>', {
      'class': 'joubel-help-text-dialog-box',
      'role': 'dialog',
      'aria-labelledby': headerId,
      'aria-describedby': helpTextId
    });

    $('<div>', {
      'class': 'joubel-help-text-dialog-background'
    }).appendTo($helpTextDialogBox);

    var $helpTextDialogContainer = $('<div>', {
      'class': 'joubel-help-text-dialog-container'
    }).appendTo($helpTextDialogBox);

    $('<div>', {
      'class': 'joubel-help-text-header',
      'id': headerId,
      'role': 'header',
      'html': header
    }).appendTo($helpTextDialogContainer);

    $('<div>', {
      'class': 'joubel-help-text-body',
      'id': helpTextId,
      'html': message,
      'role': 'document',
      'tabindex': 0
    }).appendTo($helpTextDialogContainer);

    var handleClose = function () {
      $helpTextDialogBox.remove();
      self.trigger('closed');
    };

    var $closeButton = $('<div>', {
      'class': 'joubel-help-text-remove',
      'role': 'button',
      'title': closeButtonTitle,
      'tabindex': 1,
      'click': handleClose,
      'keydown': function (event) {
        // 32 - space, 13 - enter
        if ([32, 13].indexOf(event.which) !== -1) {
          event.preventDefault();
          handleClose();
        }
      }
    }).appendTo($helpTextDialogContainer);

    /**
     * Get the DOM element
     * @return {HTMLElement}
     */
    self.getElement = function () {
      return $helpTextDialogBox;
    };

    self.focus = function () {
      $closeButton.focus();
    };
  }

  JoubelHelpTextDialog.prototype = Object.create(H5P.EventDispatcher.prototype);
  JoubelHelpTextDialog.prototype.constructor = JoubelHelpTextDialog;

  return JoubelHelpTextDialog;
}(H5P.jQuery));
;var H5P = H5P || {};

/**
 * Class responsible for creating auto-disappearing dialogs
 */
H5P.JoubelMessageDialog = (function ($) {

  /**
   * Display a pop-up containing a message.
   *
   * @param {H5P.jQuery} $container The container which message dialog will be appended to
   * @param {string} message The message
   * @return {H5P.jQuery}
   */
  function JoubelMessageDialog ($container, message) {
    var timeout;

    var removeDialog = function () {
      $warning.remove();
      clearTimeout(timeout);
      $container.off('click.messageDialog');
    };

    // Create warning popup:
    var $warning = $('<div/>', {
      'class': 'joubel-message-dialog',
      text: message
    }).appendTo($container);

    // Remove after 3 seconds or if user clicks anywhere in $container:
    timeout = setTimeout(removeDialog, 3000);
    $container.on('click.messageDialog', removeDialog);

    return $warning;
  }

  return JoubelMessageDialog;
})(H5P.jQuery);
;var H5P = H5P || {};

/**
 * Class responsible for creating a circular progress bar
 */

H5P.JoubelProgressCircle = (function ($) {

  /**
   * Constructor for the Progress Circle
   *
   * @param {Number} number The amount of progress to display
   * @param {string} progressColor Color for the progress meter
   * @param {string} backgroundColor Color behind the progress meter
   */
  function ProgressCircle(number, progressColor, fillColor, backgroundColor) {
    progressColor = progressColor || '#1a73d9';
    fillColor = fillColor || '#f0f0f0';
    backgroundColor = backgroundColor || '#ffffff';
    var progressColorRGB = this.hexToRgb(progressColor);

    //Verify number
    try {
      number = Number(number);
      if (number === '') {
        throw 'is empty';
      }
      if (isNaN(number)) {
        throw 'is not a number';
      }
    } catch (e) {
      number = 'err';
    }

    //Draw circle
    if (number > 100) {
      number = 100;
    }

    // We can not use rgba, since they will stack on top of each other.
    // Instead we create the equivalent of the rgba color
    // and applies this to the activeborder and background color.
    var progressColorString = 'rgb(' + parseInt(progressColorRGB.r, 10) +
      ',' + parseInt(progressColorRGB.g, 10) +
      ',' + parseInt(progressColorRGB.b, 10) + ')';

    // Circle wrapper
    var $wrapper = $('<div/>', {
      'class': "joubel-progress-circle-wrapper"
    });

    //Active border indicates progress
    var $activeBorder = $('<div/>', {
      'class': "joubel-progress-circle-active-border"
    }).appendTo($wrapper);

    //Background circle
    var $backgroundCircle = $('<div/>', {
      'class': "joubel-progress-circle-circle"
    }).appendTo($activeBorder);

    //Progress text/number
    $('<span/>', {
      'text': number + '%',
      'class': "joubel-progress-circle-percentage"
    }).appendTo($backgroundCircle);

    var deg = number * 3.6;
    if (deg <= 180) {
      $activeBorder.css('background-image',
        'linear-gradient(' + (90 + deg) + 'deg, transparent 50%, ' + fillColor + ' 50%),' +
        'linear-gradient(90deg, ' + fillColor + ' 50%, transparent 50%)')
        .css('border', '2px solid' + backgroundColor)
        .css('background-color', progressColorString);
    } else {
      $activeBorder.css('background-image',
        'linear-gradient(' + (deg - 90) + 'deg, transparent 50%, ' + progressColorString + ' 50%),' +
        'linear-gradient(90deg, ' + fillColor + ' 50%, transparent 50%)')
        .css('border', '2px solid' + backgroundColor)
        .css('background-color', progressColorString);
    }

    this.$activeBorder = $activeBorder;
    this.$backgroundCircle = $backgroundCircle;
    this.$wrapper = $wrapper;

    this.initResizeFunctionality();

    return $wrapper;
  }

  /**
   * Initializes resize functionality for the progress circle
   */
  ProgressCircle.prototype.initResizeFunctionality = function () {
    var self = this;

    $(window).resize(function () {
      // Queue resize
      setTimeout(function () {
        self.resize();
      });
    });

    // First resize
    setTimeout(function () {
      self.resize();
    }, 0);
  };

  /**
   * Resize function makes progress circle grow or shrink relative to parent container
   */
  ProgressCircle.prototype.resize = function () {
    var $parent = this.$wrapper.parent();

    if ($parent !== undefined && $parent) {

      // Measurements
      var fontSize = parseInt($parent.css('font-size'), 10);

      // Static sizes
      var fontSizeMultiplum = 3.75;
      var progressCircleWidthPx = parseInt((fontSize / 4.5), 10) % 2 === 0 ? parseInt((fontSize / 4.5), 10) + 4 : parseInt((fontSize / 4.5), 10) + 5;
      var progressCircleOffset = progressCircleWidthPx / 2;

      var width = fontSize * fontSizeMultiplum;
      var height = fontSize * fontSizeMultiplum;
      this.$activeBorder.css({
        'width': width,
        'height': height
      });

      this.$backgroundCircle.css({
        'width': width - progressCircleWidthPx,
        'height': height - progressCircleWidthPx,
        'top': progressCircleOffset,
        'left': progressCircleOffset
      });
    }
  };

  /**
   * Hex to RGB conversion
   * @param hex
   * @returns {{r: Number, g: Number, b: Number}}
   */
  ProgressCircle.prototype.hexToRgb = function (hex) {
    var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
    return result ? {
      r: parseInt(result[1], 16),
      g: parseInt(result[2], 16),
      b: parseInt(result[3], 16)
    } : null;
  };

  return ProgressCircle;

}(H5P.jQuery));
;var H5P = H5P || {};

H5P.SimpleRoundedButton = (function ($) {

  /**
   * Creates a new tip
   */
  function SimpleRoundedButton(text) {

    var $simpleRoundedButton = $('<div>', {
      'class': 'joubel-simple-rounded-button',
      'title': text,
      'role': 'button',
      'tabindex': '0'
    }).keydown(function (e) {
      // 32 - space, 13 - enter
      if ([32, 13].indexOf(e.which) !== -1) {
        $(this).click();
        e.preventDefault();
      }
    });

    $('<span>', {
      'class': 'joubel-simple-rounded-button-text',
      'html': text
    }).appendTo($simpleRoundedButton);

    return $simpleRoundedButton;
  }

  return SimpleRoundedButton;
}(H5P.jQuery));
;var H5P = H5P || {};

/**
 * Class responsible for creating speech bubbles
 */
H5P.JoubelSpeechBubble = (function ($) {

  var $currentSpeechBubble;
  var $currentContainer;  
  var $tail;
  var $innerTail;
  var removeSpeechBubbleTimeout;
  var currentMaxWidth;

  var DEFAULT_MAX_WIDTH = 400;

  var iDevice = navigator.userAgent.match(/iPod|iPhone|iPad/g) ? true : false;

  /**
   * Creates a new speech bubble
   *
   * @param {H5P.jQuery} $container The speaking object
   * @param {string} text The text to display
   * @param {number} maxWidth The maximum width of the bubble
   * @return {H5P.JoubelSpeechBubble}
   */
  function JoubelSpeechBubble($container, text, maxWidth) {
    maxWidth = maxWidth || DEFAULT_MAX_WIDTH;
    currentMaxWidth = maxWidth;
    $currentContainer = $container;

    this.isCurrent = function ($tip) {
      return $tip.is($currentContainer);
    };

    this.remove = function () {
      remove();
    };

    var fadeOutSpeechBubble = function ($speechBubble) {
      if (!$speechBubble) {
        return;
      }

      // Stop removing bubble
      clearTimeout(removeSpeechBubbleTimeout);

      $speechBubble.removeClass('show');
      setTimeout(function () {
        if ($speechBubble) {
          $speechBubble.remove();
          $speechBubble = undefined;
        }
      }, 500);
    };

    if ($currentSpeechBubble !== undefined) {
      remove();
    }

    var $h5pContainer = getH5PContainer($container);

    // Make sure we fade out old speech bubble
    fadeOutSpeechBubble($currentSpeechBubble);

    // Create bubble
    $tail = $('<div class="joubel-speech-bubble-tail"></div>');
    $innerTail = $('<div class="joubel-speech-bubble-inner-tail"></div>');
    var $innerBubble = $(
      '<div class="joubel-speech-bubble-inner">' +
      '<div class="joubel-speech-bubble-text">' + text + '</div>' +
      '</div>'
    ).prepend($innerTail);

    $currentSpeechBubble = $(
      '<div class="joubel-speech-bubble" aria-live="assertive">'
    ).append([$tail, $innerBubble])
      .appendTo($h5pContainer);

    // Show speech bubble with transition
    setTimeout(function () {
      $currentSpeechBubble.addClass('show');
    }, 0);

    position($currentSpeechBubble, $currentContainer, maxWidth, $tail, $innerTail);

    // Handle click to close
    H5P.$body.on('mousedown.speechBubble', handleOutsideClick);

    // Handle window resizing
    H5P.$window.on('resize', '', handleResize);

    // Handle clicks when inside IV which blocks bubbling.
    $container.parents('.h5p-dialog')
      .on('mousedown.speechBubble', handleOutsideClick);

    if (iDevice) {
      H5P.$body.css('cursor', 'pointer');
    }

    return this;
  }

  // Remove speechbubble if it belongs to a dom element that is about to be hidden
  H5P.externalDispatcher.on('domHidden', function (event) {
    if ($currentSpeechBubble !== undefined && event.data.$dom.find($currentContainer).length !== 0) {
      remove();
    }
  });

  /**
   * Returns the closest h5p container for the given DOM element.
   * 
   * @param {object} $container jquery element
   * @return {object} the h5p container (jquery element)
   */
  function getH5PContainer($container) {
    var $h5pContainer = $container.closest('.h5p-frame');

    // Check closest h5p frame first, then check for container in case there is no frame.
    if (!$h5pContainer.length) {
      $h5pContainer = $container.closest('.h5p-container');
    }

    return $h5pContainer;
  }

  /**
   * Event handler that is called when the window is resized.
   */
  function handleResize() {
    position($currentSpeechBubble, $currentContainer, currentMaxWidth, $tail, $innerTail);
  }

  /**
   * Repositions the speech bubble according to the position of the container.
   * 
   * @param {object} $currentSpeechbubble the speech bubble that should be positioned   
   * @param {object} $container the container to which the speech bubble should point 
   * @param {number} maxWidth the maximum width of the speech bubble
   * @param {object} $tail the tail (the triangle that points to the referenced container)
   * @param {object} $innerTail the inner tail (the triangle that points to the referenced container)
   */
  function position($currentSpeechBubble, $container, maxWidth, $tail, $innerTail) {
    var $h5pContainer = getH5PContainer($container);

    // Calculate offset between the button and the h5p frame
    var offset = getOffsetBetween($h5pContainer, $container);

    var direction = (offset.bottom > offset.top ? 'bottom' : 'top');
    var tipWidth = offset.outerWidth * 0.9; // Var needs to be renamed to make sense
    var bubbleWidth = tipWidth > maxWidth ? maxWidth : tipWidth;

    var bubblePosition = getBubblePosition(bubbleWidth, offset);
    var tailPosition = getTailPosition(bubbleWidth, bubblePosition, offset, $container.width());
    // Need to set font-size, since element is appended to body.
    // Using same font-size as parent. In that way it will grow accordingly
    // when resizing
    var fontSize = 16;//parseFloat($parent.css('font-size'));

    // Set width and position of speech bubble
    $currentSpeechBubble.css(bubbleCSS(
      direction,
      bubbleWidth,
      bubblePosition,
      fontSize
    ));

    var preparedTailCSS = tailCSS(direction, tailPosition);
    $tail.css(preparedTailCSS);
    $innerTail.css(preparedTailCSS);
  }

  /**
   * Static function for removing the speechbubble
   */
  var remove = function () {
    H5P.$body.off('mousedown.speechBubble');
    H5P.$window.off('resize', '', handleResize);
    $currentContainer.parents('.h5p-dialog').off('mousedown.speechBubble');
    if (iDevice) {
      H5P.$body.css('cursor', '');
    }
    if ($currentSpeechBubble !== undefined) {
      // Apply transition, then remove speech bubble
      $currentSpeechBubble.removeClass('show');

      // Make sure we remove any old timeout before reassignment
      clearTimeout(removeSpeechBubbleTimeout);
      removeSpeechBubbleTimeout = setTimeout(function () {
        $currentSpeechBubble.remove();
        $currentSpeechBubble = undefined;
      }, 500);
    }
    // Don't return false here. If the user e.g. clicks a button when the bubble is visible,
    // we want the bubble to disapear AND the button to receive the event
  };

  /**
   * Remove the speech bubble and container reference
   */
  function handleOutsideClick(event) {
    if (event.target === $currentContainer[0]) {
      return; // Button clicks are not outside clicks
    }

    remove();
    // There is no current container when a container isn't clicked
    $currentContainer = undefined;
  }

  /**
   * Calculate position for speech bubble
   *
   * @param {number} bubbleWidth The width of the speech bubble
   * @param {object} offset
   * @return {object} Return position for the speech bubble
   */
  function getBubblePosition(bubbleWidth, offset) {
    var bubblePosition = {};

    var tailOffset = 9;
    var widthOffset = bubbleWidth / 2;

    // Calculate top position
    bubblePosition.top = offset.top + offset.innerHeight;

    // Calculate bottom position
    bubblePosition.bottom = offset.bottom + offset.innerHeight + tailOffset;

    // Calculate left position
    if (offset.left < widthOffset) {
      bubblePosition.left = 3;
    }
    else if ((offset.left + widthOffset) > offset.outerWidth) {
      bubblePosition.left = offset.outerWidth - bubbleWidth - 3;
    }
    else {
      bubblePosition.left = offset.left - widthOffset + (offset.innerWidth / 2);
    }

    return bubblePosition;
  }

  /**
   * Calculate position for speech bubble tail
   *
   * @param {number} bubbleWidth The width of the speech bubble
   * @param {object} bubblePosition Speech bubble position
   * @param {object} offset
   * @param {number} iconWidth The width of the tip icon
   * @return {object} Return position for the tail
   */
  function getTailPosition(bubbleWidth, bubblePosition, offset, iconWidth) {
    var tailPosition = {};
    // Magic numbers. Tuned by hand so that the tail fits visually within
    // the bounds of the speech bubble.
    var leftBoundary = 9;
    var rightBoundary = bubbleWidth - 20;

    tailPosition.left = offset.left - bubblePosition.left + (iconWidth / 2) - 6;
    if (tailPosition.left < leftBoundary) {
      tailPosition.left = leftBoundary;
    }
    if (tailPosition.left > rightBoundary) {
      tailPosition.left = rightBoundary;
    }

    tailPosition.top = -6;
    tailPosition.bottom = -6;

    return tailPosition;
  }

  /**
   * Return bubble CSS for the desired growth direction
   *
   * @param {string} direction The direction the speech bubble will grow
   * @param {number} width The width of the speech bubble
   * @param {object} position Speech bubble position
   * @param {number} fontSize The size of the bubbles font
   * @return {object} Return CSS
   */
  function bubbleCSS(direction, width, position, fontSize) {
    if (direction === 'top') {
      return {
        width: width + 'px',
        bottom: position.bottom + 'px',
        left: position.left + 'px',
        fontSize: fontSize + 'px',
        top: ''
      };
    }
    else {
      return {
        width: width + 'px',
        top: position.top + 'px',
        left: position.left + 'px',
        fontSize: fontSize + 'px',
        bottom: ''
      };
    }
  }

  /**
   * Return tail CSS for the desired growth direction
   *
   * @param {string} direction The direction the speech bubble will grow
   * @param {object} position Tail position
   * @return {object} Return CSS
   */
  function tailCSS(direction, position) {
    if (direction === 'top') {
      return {
        bottom: position.bottom + 'px',
        left: position.left + 'px',
        top: ''
      };
    }
    else {
      return {
        top: position.top + 'px',
        left: position.left + 'px',
        bottom: ''
      };
    }
  }

  /**
   * Calculates the offset between an element inside a container and the
   * container. Only works if all the edges of the inner element are inside the
   * outer element.
   * Width/height of the elements is included as a convenience.
   *
   * @param {H5P.jQuery} $outer
   * @param {H5P.jQuery} $inner
   * @return {object} Position offset
   */
  function getOffsetBetween($outer, $inner) {
    var outer = $outer[0].getBoundingClientRect();
    var inner = $inner[0].getBoundingClientRect();

    return {
      top: inner.top - outer.top,
      right: outer.right - inner.right,
      bottom: outer.bottom - inner.bottom,
      left: inner.left - outer.left,
      innerWidth: inner.width,
      innerHeight: inner.height,
      outerWidth: outer.width,
      outerHeight: outer.height
    };
  }

  return JoubelSpeechBubble;
})(H5P.jQuery);
;var H5P = H5P || {};

H5P.JoubelThrobber = (function ($) {

  /**
   * Creates a new tip
   */
  function JoubelThrobber() {

    // h5p-throbber css is described in core
    var $throbber = $('<div/>', {
      'class': 'h5p-throbber'
    });

    return $throbber;
  }

  return JoubelThrobber;
}(H5P.jQuery));
;H5P.JoubelTip = (function ($) {
  var $conv = $('<div/>');

  /**
   * Creates a new tip element.
   *
   * NOTE that this may look like a class but it doesn't behave like one.
   * It returns a jQuery object.
   *
   * @param {string} tipHtml The text to display in the popup
   * @param {Object} [behaviour] Options
   * @param {string} [behaviour.tipLabel] Set to use a custom label for the tip button (you want this for good A11Y)
   * @param {boolean} [behaviour.helpIcon] Set to 'true' to Add help-icon classname to Tip button (changes the icon)
   * @param {boolean} [behaviour.showSpeechBubble] Set to 'false' to disable functionality (you may this in the editor)
   * @param {boolean} [behaviour.tabcontrol] Set to 'true' if you plan on controlling the tabindex in the parent (tabindex="-1")
   * @return {H5P.jQuery|undefined} Tip button jQuery element or 'undefined' if invalid tip
   */
  function JoubelTip(tipHtml, behaviour) {

    // Keep track of the popup that appears when you click the Tip button
    var speechBubble;

    // Parse tip html to determine text
    var tipText = $conv.html(tipHtml).text().trim();
    if (tipText === '') {
      return; // The tip has no textual content, i.e. it's invalid.
    }

    // Set default behaviour
    behaviour = $.extend({
      tipLabel: tipText,
      helpIcon: false,
      showSpeechBubble: true,
      tabcontrol: false
    }, behaviour);

    // Create Tip button
    var $tipButton = $('<div/>', {
      class: 'joubel-tip-container' + (behaviour.showSpeechBubble ? '' : ' be-quiet'),
      'aria-label': behaviour.tipLabel,
      'aria-expanded': false,
      role: 'button',
      tabindex: (behaviour.tabcontrol ? -1 : 0),
      click: function (event) {
        // Toggle show/hide popup
        toggleSpeechBubble();
        event.preventDefault();
      },
      keydown: function (event) {
        if (event.which === 32 || event.which === 13) { // Space & enter key
          // Toggle show/hide popup
          toggleSpeechBubble();
          event.stopPropagation();
          event.preventDefault();
        }
        else { // Any other key
          // Toggle hide popup
          toggleSpeechBubble(false);
        }
      },
      // Add markup to render icon
      html: '<span class="joubel-icon-tip-normal ' + (behaviour.helpIcon ? ' help-icon': '') + '">' +
              '<span class="h5p-icon-shadow"></span>' +
              '<span class="h5p-icon-speech-bubble"></span>' +
              '<span class="h5p-icon-info"></span>' +
            '</span>'
      // IMPORTANT: All of the markup elements must have 'pointer-events: none;'
    });

    const $tipAnnouncer = $('<div>', {
      'class': 'hidden-but-read',
      'aria-live': 'polite',
      appendTo: $tipButton,
    });

    /**
     * Tip button interaction handler.
     * Toggle show or hide the speech bubble popup when interacting with the
     * Tip button.
     *
     * @private
     * @param {boolean} [force] 'true' shows and 'false' hides.
     */
    var toggleSpeechBubble = function (force) {
      if (speechBubble !== undefined && speechBubble.isCurrent($tipButton)) {
        // Hide current popup
        speechBubble.remove();
        speechBubble = undefined;

        $tipButton.attr('aria-expanded', false);
        $tipAnnouncer.html('');
      }
      else if (force !== false && behaviour.showSpeechBubble) {
        // Create and show new popup
        speechBubble = H5P.JoubelSpeechBubble($tipButton, tipHtml);
        $tipButton.attr('aria-expanded', true);
        $tipAnnouncer.html(tipHtml);
      }
    };

    return $tipButton;
  }

  return JoubelTip;
})(H5P.jQuery);
;var H5P = H5P || {};

H5P.JoubelSlider = (function ($) {

  /**
   * Creates a new Slider
   *
   * @param {object} [params] Additional parameters
   */
  function JoubelSlider(params) {
    H5P.EventDispatcher.call(this);

    this.$slider = $('<div>', $.extend({
      'class': 'h5p-joubel-ui-slider'
    }, params));

    this.$slides = [];
    this.currentIndex = 0;
    this.numSlides = 0;
  }
  JoubelSlider.prototype = Object.create(H5P.EventDispatcher.prototype);
  JoubelSlider.prototype.constructor = JoubelSlider;

  JoubelSlider.prototype.addSlide = function ($content) {
    $content.addClass('h5p-joubel-ui-slide').css({
      'left': (this.numSlides*100) + '%'
    });
    this.$slider.append($content);
    this.$slides.push($content);

    this.numSlides++;

    if(this.numSlides === 1) {
      $content.addClass('current');
    }
  };

  JoubelSlider.prototype.attach = function ($container) {
    $container.append(this.$slider);
  };

  JoubelSlider.prototype.move = function (index) {
    var self = this;

    if(index === 0) {
      self.trigger('first-slide');
    }
    if(index+1 === self.numSlides) {
      self.trigger('last-slide');
    }
    self.trigger('move');

    var $previousSlide = self.$slides[this.currentIndex];
    H5P.Transition.onTransitionEnd(this.$slider, function () {
      $previousSlide.removeClass('current');
      self.trigger('moved');
    });
    this.$slides[index].addClass('current');

    var translateX = 'translateX(' + (-index*100) + '%)';
    this.$slider.css({
      '-webkit-transform': translateX,
      '-moz-transform': translateX,
      '-ms-transform': translateX,
      'transform': translateX
    });

    this.currentIndex = index;
  };

  JoubelSlider.prototype.remove = function () {
    this.$slider.remove();
  };

  JoubelSlider.prototype.next = function () {
    if(this.currentIndex+1 >= this.numSlides) {
      return;
    }

    this.move(this.currentIndex+1);
  };

  JoubelSlider.prototype.previous = function () {
    this.move(this.currentIndex-1);
  };

  JoubelSlider.prototype.first = function () {
    this.move(0);
  };

  JoubelSlider.prototype.last = function () {
    this.move(this.numSlides-1);
  };

  return JoubelSlider;
})(H5P.jQuery);
;var H5P = H5P || {};

/**
 * @module
 */
H5P.JoubelScoreBar = (function ($) {

  /* Need to use an id for the star SVG since that is the only way to reference
     SVG filters  */
  var idCounter = 0;

  /**
   * Creates a score bar
   * @class H5P.JoubelScoreBar
   * @param {number} maxScore  Maximum score
   * @param {string} [label] Makes it easier for readspeakers to identify the scorebar
   * @param {string} [helpText] Score explanation
   * @param {string} [scoreExplanationButtonLabel] Label for score explanation button
   */
  function JoubelScoreBar(maxScore, label, helpText, scoreExplanationButtonLabel) {
    var self = this;

    self.maxScore = maxScore;
    self.score = 0;
    idCounter++;

    /**
     * @const {string}
     */
    self.STAR_MARKUP = '<svg tabindex="-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63.77 53.87" aria-hidden="true" focusable="false">' +
        '<title>star</title>' +
        '<filter tabindex="-1" id="h5p-joubelui-score-bar-star-inner-shadow-' + idCounter + '" x0="-50%" y0="-50%" width="200%" height="200%">' +
          '<feGaussianBlur in="SourceAlpha" stdDeviation="3" result="blur"></feGaussianBlur>' +
          '<feOffset dy="2" dx="4"></feOffset>' +
          '<feComposite in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite>' +
          '<feFlood flood-color="#ffe95c" flood-opacity="1"></feFlood>' +
          '<feComposite in2="shadowDiff" operator="in"></feComposite>' +
          '<feComposite in2="SourceGraphic" operator="over" result="firstfilter"></feComposite>' +
          '<feGaussianBlur in="firstfilter" stdDeviation="3" result="blur2"></feGaussianBlur>' +
          '<feOffset dy="-2" dx="-4"></feOffset>' +
          '<feComposite in2="firstfilter" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite>' +
          '<feFlood flood-color="#ffe95c" flood-opacity="1"></feFlood>' +
          '<feComposite in2="shadowDiff" operator="in"></feComposite>' +
          '<feComposite in2="firstfilter" operator="over"></feComposite>' +
        '</filter>' +
        '<path tabindex="-1" class="h5p-joubelui-score-bar-star-shadow" d="M35.08,43.41V9.16H20.91v0L9.51,10.85,9,10.93C2.8,12.18,0,17,0,21.25a11.22,11.22,0,0,0,3,7.48l8.73,8.53-1.07,6.16Z"/>' +
        '<g tabindex="-1">' +
          '<path tabindex="-1" class="h5p-joubelui-score-bar-star-border" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/>' +
          '<path tabindex="-1" class="h5p-joubelui-score-bar-star-fill" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/>' +
          '<path tabindex="-1" filter="url(#h5p-joubelui-score-bar-star-inner-shadow-' + idCounter + ')" class="h5p-joubelui-score-bar-star-fill-full-score" d="M61.36,22.8,49.72,34.11l2.78,16a2.6,2.6,0,0,1,.05.64c0,.85-.37,1.6-1.33,1.6A2.74,2.74,0,0,1,49.94,52L35.58,44.41,21.22,52a2.93,2.93,0,0,1-1.28.37c-.91,0-1.33-.75-1.33-1.6,0-.21.05-.43.05-.64l2.78-16L9.8,22.8A2.57,2.57,0,0,1,9,21.25c0-1,1-1.33,1.81-1.49l16.07-2.35L34.09,2.83c.27-.59.85-1.33,1.55-1.33s1.28.69,1.55,1.33l7.21,14.57,16.07,2.35c.75.11,1.81.53,1.81,1.49A3.07,3.07,0,0,1,61.36,22.8Z"/>' +
        '</g>' +
      '</svg>';

    /**
     * @function appendTo
     * @memberOf H5P.JoubelScoreBar#
     * @param {H5P.jQuery}  $wrapper  Dom container
     */
    self.appendTo = function ($wrapper) {
      self.$scoreBar.appendTo($wrapper);
    };

    /**
     * Create the text representation of the scorebar .
     *
     * @private
     * @return {string}
     */
    var createLabel = function (score) {
      if (!label) {
        return '';
      }

      return label.replace(':num', score).replace(':total', self.maxScore);
    };

    /**
     * Creates the html for this widget
     *
     * @method createHtml
     * @private
     */
    var createHtml = function () {
      // Container div
      self.$scoreBar = $('<div>', {
        'class': 'h5p-joubelui-score-bar',
      });

      var $visuals = $('<div>', {
        'class': 'h5p-joubelui-score-bar-visuals',
        appendTo: self.$scoreBar
      });

      // The progress bar wrapper
      self.$progressWrapper = $('<div>', {
        'class': 'h5p-joubelui-score-bar-progress-wrapper',
        appendTo: $visuals
      });

      self.$progress = $('<div>', {
        'class': 'h5p-joubelui-score-bar-progress',
        'html': createLabel(self.score),
        appendTo: self.$progressWrapper
      });

      // The star
      $('<div>', {
        'class': 'h5p-joubelui-score-bar-star',
        html: self.STAR_MARKUP
      }).appendTo($visuals);

      // The score container
      var $numerics = $('<div>', {
        'class': 'h5p-joubelui-score-numeric',
        appendTo: self.$scoreBar,
        'aria-hidden': true
      });

      // The current score
      self.$scoreCounter = $('<span>', {
        'class': 'h5p-joubelui-score-number h5p-joubelui-score-number-counter',
        text: 0,
        appendTo: $numerics
      });

      // The separator
      $('<span>', {
        'class': 'h5p-joubelui-score-number-separator',
        text: '/',
        appendTo: $numerics
      });

      // Max score
      self.$maxScore = $('<span>', {
        'class': 'h5p-joubelui-score-number h5p-joubelui-score-max',
        text: self.maxScore,
        appendTo: $numerics
      });

      if (helpText) {
        H5P.JoubelUI.createTip(helpText, {
          tipLabel: scoreExplanationButtonLabel ? scoreExplanationButtonLabel : helpText,
          helpIcon: true
        }).appendTo(self.$scoreBar);
        self.$scoreBar.addClass('h5p-score-bar-has-help');
      }
    };

    /**
     * Set the current score
     * @method setScore
     * @memberOf H5P.JoubelScoreBar#
     * @param  {number} score
     */
    self.setScore = function (score) {
      // Do nothing if score hasn't changed
      if (score === self.score) {
        return;
      }
      self.score = score > self.maxScore ? self.maxScore : score;
      self.updateVisuals();
    };

    /**
     * Increment score
     * @method incrementScore
     * @memberOf H5P.JoubelScoreBar#
     * @param  {number=}        incrementBy Optional parameter, defaults to 1
     */
    self.incrementScore = function (incrementBy) {
      self.setScore(self.score + (incrementBy || 1));
    };

    /**
     * Set the max score
     * @method setMaxScore
     * @memberOf H5P.JoubelScoreBar#
     * @param  {number}    maxScore The max score
     */
    self.setMaxScore = function (maxScore) {
      self.maxScore = maxScore;
    };

    /**
     * Updates the progressbar visuals
     * @memberOf H5P.JoubelScoreBar#
     * @method updateVisuals
     */
    self.updateVisuals = function () {
      self.$progress.html(createLabel(self.score));
      self.$scoreCounter.text(self.score);
      self.$maxScore.text(self.maxScore);

      setTimeout(function () {
        // Start the progressbar animation
        self.$progress.css({
          width: ((self.score / self.maxScore) * 100) + '%'
        });

        H5P.Transition.onTransitionEnd(self.$progress, function () {
          // If fullscore fill the star and start the animation
          self.$scoreBar.toggleClass('h5p-joubelui-score-bar-full-score', self.score === self.maxScore);
          self.$scoreBar.toggleClass('h5p-joubelui-score-bar-animation-active', self.score === self.maxScore);

          // Only allow the star animation to run once
          self.$scoreBar.one("animationend", function() {
            self.$scoreBar.removeClass("h5p-joubelui-score-bar-animation-active");
          });
        }, 600);
      }, 300);
    };

    /**
     * Removes all classes
     * @method reset
     */
    self.reset = function () {
      self.$scoreBar.removeClass('h5p-joubelui-score-bar-full-score');
    };

    createHtml();
  }

  return JoubelScoreBar;
})(H5P.jQuery);
;var H5P = H5P || {};

H5P.JoubelProgressbar = (function ($) {

  /**
   * Joubel progressbar class
   * @method JoubelProgressbar
   * @constructor
   * @param  {number}          steps Number of steps
   * @param {Object} [options] Additional options
   * @param {boolean} [options.disableAria] Disable readspeaker assistance
   * @param {string} [options.progressText] A progress text for describing
   *  current progress out of total progress for readspeakers.
   *  e.g. "Slide :num of :total"
   */
  function JoubelProgressbar(steps, options) {
    H5P.EventDispatcher.call(this);
    var self = this;
    this.options = $.extend({
      progressText: 'Slide :num of :total'
    }, options);
    this.currentStep = 0;
    this.steps = steps;

    this.$progressbar = $('<div>', {
      'class': 'h5p-joubelui-progressbar'
    });
    this.$background = $('<div>', {
      'class': 'h5p-joubelui-progressbar-background'
    }).appendTo(this.$progressbar);
  }

  JoubelProgressbar.prototype = Object.create(H5P.EventDispatcher.prototype);
  JoubelProgressbar.prototype.constructor = JoubelProgressbar;

  JoubelProgressbar.prototype.updateAria = function () {
    var self = this;
    if (this.options.disableAria) {
      return;
    }

    if (!this.$currentStatus) {
      this.$currentStatus = $('<div>', {
        'class': 'h5p-joubelui-progressbar-slide-status-text',
        'aria-live': 'assertive'
      }).appendTo(this.$progressbar);
    }
    var interpolatedProgressText = self.options.progressText
      .replace(':num', self.currentStep)
      .replace(':total', self.steps);
    this.$currentStatus.html(interpolatedProgressText);
  };

  /**
   * Appends to a container
   * @method appendTo
   * @param  {H5P.jquery} $container
   */
  JoubelProgressbar.prototype.appendTo = function ($container) {
    this.$progressbar.appendTo($container);
  };

  /**
   * Update progress
   * @method setProgress
   * @param  {number}    step
   */
  JoubelProgressbar.prototype.setProgress = function (step) {
    // Check for valid value:
    if (step > this.steps || step < 0) {
      return;
    }
    this.currentStep = step;
    this.$background.css({
      width: ((this.currentStep/this.steps)*100) + '%'
    });

    this.updateAria();
  };

  /**
   * Increment progress with 1
   * @method next
   */
  JoubelProgressbar.prototype.next = function () {
    this.setProgress(this.currentStep+1);
  };

  /**
   * Reset progressbar
   * @method reset
   */
  JoubelProgressbar.prototype.reset = function () {
    this.setProgress(0);
  };

  /**
   * Check if last step is reached
   * @method isLastStep
   * @return {Boolean}
   */
  JoubelProgressbar.prototype.isLastStep = function () {
    return this.steps === this.currentStep;
  };

  return JoubelProgressbar;
})(H5P.jQuery);
;var H5P = H5P || {};

/**
 * H5P Joubel UI library.
 *
 * This is a utility library, which does not implement attach. I.e, it has to bee actively used by
 * other libraries
 * @module
 */
H5P.JoubelUI = (function ($) {

  /**
   * The internal object to return
   * @class H5P.JoubelUI
   * @static
   */
  function JoubelUI() {}

  /* Public static functions */

  /**
   * Create a tip icon
   * @method H5P.JoubelUI.createTip
   * @param  {string}  text   The textual tip
   * @param  {Object}  params Parameters
   * @return {H5P.JoubelTip}
   */
  JoubelUI.createTip = function (text, params) {
    return new H5P.JoubelTip(text, params);
  };

  /**
   * Create message dialog
   * @method H5P.JoubelUI.createMessageDialog
   * @param  {H5P.jQuery}               $container The dom container
   * @param  {string}                   message    The message
   * @return {H5P.JoubelMessageDialog}
   */
  JoubelUI.createMessageDialog = function ($container, message) {
    return new H5P.JoubelMessageDialog($container, message);
  };

  /**
   * Create help text dialog
   * @method H5P.JoubelUI.createHelpTextDialog
   * @param  {string}             header  The textual header
   * @param  {string}             message The textual message
   * @param  {string}             closeButtonTitle The title for the close button
   * @return {H5P.JoubelHelpTextDialog}
   */
  JoubelUI.createHelpTextDialog = function (header, message, closeButtonTitle) {
    return new H5P.JoubelHelpTextDialog(header, message, closeButtonTitle);
  };

  /**
   * Create progress circle
   * @method H5P.JoubelUI.createProgressCircle
   * @param  {number}             number          The progress (0 to 100)
   * @param  {string}             progressColor   The progress color in hex value
   * @param  {string}             fillColor       The fill color in hex value
   * @param  {string}             backgroundColor The background color in hex value
   * @return {H5P.JoubelProgressCircle}
   */
  JoubelUI.createProgressCircle = function (number, progressColor, fillColor, backgroundColor) {
    return new H5P.JoubelProgressCircle(number, progressColor, fillColor, backgroundColor);
  };

  /**
   * Create throbber for loading
   * @method H5P.JoubelUI.createThrobber
   * @return {H5P.JoubelThrobber}
   */
  JoubelUI.createThrobber = function () {
    return new H5P.JoubelThrobber();
  };

  /**
   * Create simple rounded button
   * @method H5P.JoubelUI.createSimpleRoundedButton
   * @param  {string}                  text The button label
   * @return {H5P.SimpleRoundedButton}
   */
  JoubelUI.createSimpleRoundedButton = function (text) {
    return new H5P.SimpleRoundedButton(text);
  };

  /**
   * Create Slider
   * @method H5P.JoubelUI.createSlider
   * @param  {Object} [params] Parameters
   * @return {H5P.JoubelSlider}
   */
  JoubelUI.createSlider = function (params) {
    return new H5P.JoubelSlider(params);
  };

  /**
   * Create Score Bar
   * @method H5P.JoubelUI.createScoreBar
   * @param  {number=}       maxScore The maximum score
   * @param {string} [label] Makes it easier for readspeakers to identify the scorebar
   * @return {H5P.JoubelScoreBar}
   */
  JoubelUI.createScoreBar = function (maxScore, label, helpText, scoreExplanationButtonLabel) {
    return new H5P.JoubelScoreBar(maxScore, label, helpText, scoreExplanationButtonLabel);
  };

  /**
   * Create Progressbar
   * @method H5P.JoubelUI.createProgressbar
   * @param  {number=}       numSteps The total numer of steps
   * @param {Object} [options] Additional options
   * @param {boolean} [options.disableAria] Disable readspeaker assistance
   * @param {string} [options.progressText] A progress text for describing
   *  current progress out of total progress for readspeakers.
   *  e.g. "Slide :num of :total"
   * @return {H5P.JoubelProgressbar}
   */
  JoubelUI.createProgressbar = function (numSteps, options) {
    return new H5P.JoubelProgressbar(numSteps, options);
  };

  /**
   * Create standard Joubel button
   *
   * @method H5P.JoubelUI.createButton
   * @param {object} params
   *  May hold any properties allowed by jQuery. If href is set, an A tag
   *  is used, if not a button tag is used.
   * @return {H5P.jQuery} The jquery element created
   */
  JoubelUI.createButton = function(params) {
    var type = 'button';
    if (params.href) {
      type = 'a';
    }
    else {
      params.type = 'button';
    }
    if (params.class) {
      params.class += ' h5p-joubelui-button';
    }
    else {
      params.class = 'h5p-joubelui-button';
    }
    return $('<' + type + '/>', params);
  };

  /**
   * Fix for iframe scoll bug in IOS. When focusing an element that doesn't have
   * focus support by default the iframe will scroll the parent frame so that
   * the focused element is out of view. This varies dependening on the elements
   * of the parent frame.
   */
  if (H5P.isFramed && !H5P.hasiOSiframeScrollFix &&
      /iPad|iPhone|iPod/.test(navigator.userAgent)) {
    H5P.hasiOSiframeScrollFix = true;

    // Keep track of original focus function
    var focus = HTMLElement.prototype.focus;

    // Override the original focus
    HTMLElement.prototype.focus = function () {
      // Only focus the element if it supports it natively
      if ( (this instanceof HTMLAnchorElement ||
            this instanceof HTMLInputElement ||
            this instanceof HTMLSelectElement ||
            this instanceof HTMLTextAreaElement ||
            this instanceof HTMLButtonElement ||
            this instanceof HTMLIFrameElement ||
            this instanceof HTMLAreaElement) && // HTMLAreaElement isn't supported by Safari yet.
          !this.getAttribute('role')) { // Focus breaks if a different role has been set
          // In theory this.isContentEditable should be able to recieve focus,
          // but it didn't work when tested.

        // Trigger the original focus with the proper context
        focus.call(this);
      }
    };
  }

  return JoubelUI;
})(H5P.jQuery);
;/*! For license information please see h5p-interactive-book.js.LICENSE.txt */
(()=>{var t={2880:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6250:(t,e,r)=>{var n=r(2880),a=r(6852),o=Object.hasOwnProperty,i=Object.create(null);for(var s in n)o.call(n,s)&&(i[n[s]]=s);var c=t.exports={to:{},get:{}};function u(t,e,r){return Math.min(Math.max(e,t),r)}function l(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}c.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),r="hsl";break;case"hwb":e=c.get.hwb(t),r="hwb";break;default:e=c.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,r,a,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=e[2],e=e[1],r=0;r<3;r++){var s=2*r;i[r]=parseInt(e.slice(s,s+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(a=(e=e[1])[3],r=0;r<3;r++)i[r]=parseInt(e[r]+e[r],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)i[r]=parseInt(e[r+1],0);e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:o.call(n,e[1])?((i=n[e[1]])[3]=1,i):null:null;for(r=0;r<3;r++)i[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(r=0;r<3;r++)i[r]=u(i[r],0,255);return i[3]=u(i[3],0,1),i},c.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},c.to.hex=function(){var t=a(arguments);return"#"+l(t[0])+l(t[1])+l(t[2])+(t[3]<1?l(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=a(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=a(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},c.to.hsl=function(){var t=a(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=a(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return i[t.slice(0,3)]}},4308:(t,e,r)=>{const n=r(6250),a=r(8349),o=["keyword","gray","hex"],i={};for(const t of Object.keys(a))i[[...a[t].labels].sort().join("")]=t;const s={};function c(t,e){if(!(this instanceof c))return new c(t,e);if(e&&e in o&&(e=null),e&&!(e in a))throw new Error("Unknown model: "+e);let r,u;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof c)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=n.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,u=a[this.model].channels,this.color=e.value.slice(0,u),this.valpha="number"==typeof e.value[u]?e.value[u]:1}else if(t.length>0){this.model=e||"rgb",u=a[this.model].channels;const r=Array.prototype.slice.call(t,0,u);this.color=h(r,u),this.valpha="number"==typeof t[u]?t[u]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const n=e.sort().join("");if(!(n in i))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=i[n];const{labels:o}=a[this.model],s=[];for(r=0;r<o.length;r++)s.push(t[o[r]]);this.color=h(s)}if(s[this.model])for(u=a[this.model].channels,r=0;r<u;r++){const t=s[this.model][r];t&&(this.color[r]=t(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}c.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in n.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const r=1===e.valpha?e.color:[...e.color,this.valpha];return n.to[e.model](r)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:[...e.color,this.valpha];return n.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=a[this.model],{labels:r}=a[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new c([...this.color.map(u(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new c([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:l("rgb",0,p(255)),green:l("rgb",1,p(255)),blue:l("rgb",2,p(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:l("hsl",1,p(100)),lightness:l("hsl",2,p(100)),saturationv:l("hsv",1,p(100)),value:l("hsv",2,p(100)),chroma:l("hcg",1,p(100)),gray:l("hcg",2,p(100)),white:l("hwb",1,p(100)),wblack:l("hwb",2,p(100)),cyan:l("cmyk",0,p(100)),magenta:l("cmyk",1,p(100)),yellow:l("cmyk",2,p(100)),black:l("cmyk",3,p(100)),x:l("xyz",0,p(95.047)),y:l("xyz",1,p(100)),z:l("xyz",2,p(108.833)),l:l("lab",0,p(100)),a:l("lab",1),b:l("lab",2),keyword(t){return void 0!==t?new c(t):a[this.model].keyword(this.color)},hex(t){return void 0!==t?new c(t):n.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new c(t);const e=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(e)+r},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[r,n]of t.entries()){const t=n/255;e[r]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return c.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const r=t.rgb(),n=this.rgb(),a=void 0===e?.5:e,o=2*a-1,i=r.alpha()-n.alpha(),s=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,u=1-s;return c.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*a+n.alpha()*(1-a))}};for(const t of Object.keys(a)){if(o.includes(t))continue;const{channels:e}=a[t];c.prototype[t]=function(...e){return this.model===t?new c(this):e.length>0?new c(e,t):new c([...(r=a[this.model][t].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],t);var r},c[t]=function(...r){let n=r[0];return"number"==typeof n&&(n=h(r,e)),new c(n,t)}}function u(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function l(t,e,r){t=Array.isArray(t)?t:[t];for(const n of t)(s[n]||(s[n]=[]))[e]=r;return t=t[0],function(n){let a;return void 0!==n?(r&&(n=r(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],r&&(a=r(a)),a)}}function p(t){return function(e){return Math.max(0,Math.min(t,e))}}function h(t,e){for(let r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}t.exports=c},7252:(t,e,r)=>{const n=r(2037),a={};for(const t of Object.keys(n))a[n[t]]=t;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(const t of Object.keys(o)){if(!("channels"in o[t]))throw new Error("missing channels property: "+t);if(!("labels"in o[t]))throw new Error("missing channel labels property: "+t);if(o[t].labels.length!==o[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=o[t];delete o[t].channels,delete o[t].labels,Object.defineProperty(o[t],"channels",{value:e}),Object.defineProperty(o[t],"labels",{value:r})}o.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),o=Math.max(e,r,n),i=o-a;let s,c;o===a?s=0:e===o?s=(r-n)/i:r===o?s=2+(n-e)/i:n===o&&(s=4+(e-r)/i),s=Math.min(60*s,360),s<0&&(s+=360);const u=(a+o)/2;return c=o===a?0:u<=.5?i/(o+a):i/(2-o-a),[s,100*c,100*u]},o.rgb.hsv=function(t){let e,r,n,a,o;const i=t[0]/255,s=t[1]/255,c=t[2]/255,u=Math.max(i,s,c),l=u-Math.min(i,s,c),p=function(t){return(u-t)/6/l+.5};return 0===l?(a=0,o=0):(o=l/u,e=p(i),r=p(s),n=p(c),i===u?a=n-r:s===u?a=1/3+e-n:c===u&&(a=2/3+r-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*u]},o.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const a=o.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[a,100*i,100*n]},o.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-r,1-n);return[100*((1-e-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},o.rgb.keyword=function(t){const e=a[t];if(e)return e;let r,o=1/0;for(const e of Object.keys(n)){const a=n[e],c=(s=a,((i=t)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);c<o&&(o=c,r=e)}var i,s;return r},o.keyword.rgb=function(t){return n[t]},o.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},o.rgb.lab=function(t){const e=o.rgb.xyz(t);let r=e[0],n=e[1],a=e[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*n-16,500*(r-n),200*(n-a)]},o.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let a,o,i;if(0===r)return i=255*n,[i,i,i];a=n<.5?n*(1+r):n+r-n*r;const s=2*n-a,c=[0,0,0];for(let t=0;t<3;t++)o=e+1/3*-(t-1),o<0&&o++,o>1&&o--,i=6*o<1?s+6*(a-s)*o:2*o<1?a:3*o<2?s+(a-s)*(2/3-o)*6:s,c[t]=255*i;return c},o.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,a=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;return[e,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},o.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const a=Math.floor(e)%6,o=e-Math.floor(e),i=255*n*(1-r),s=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,c,i];case 1:return[s,n,i];case 2:return[i,n,c];case 3:return[i,s,n];case 4:return[c,i,n];case 5:return[n,i,s]}},o.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,a=Math.max(n,.01);let o,i;i=(2-r)*n;const s=(2-r)*a;return o=r*a,o/=s<=1?s:2-s,o=o||0,i/=2,[e,100*o,100*i]},o.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const a=r+n;let o;a>1&&(r/=a,n/=a);const i=Math.floor(6*e),s=1-n;o=6*e-i,1&i&&(o=1-o);const c=r+o*(s-r);let u,l,p;switch(i){default:case 6:case 0:u=s,l=c,p=r;break;case 1:u=c,l=s,p=r;break;case 2:u=r,l=s,p=c;break;case 3:u=r,l=c,p=s;break;case 4:u=c,l=r,p=s;break;case 5:u=s,l=r,p=c}return[255*u,255*l,255*p]},o.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},o.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let a,o,i;return a=3.2406*e+-1.5372*r+-.4986*n,o=-.9689*e+1.8758*r+.0415*n,i=.0557*e+-.204*r+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),[255*a,255*o,255*i]},o.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(e-r),200*(r-n)]},o.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const a=r**3,o=e**3,i=n**3;return r=a>.008856?a:(r-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},o.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let a;a=360*Math.atan2(n,r)/2/Math.PI,a<0&&(a+=360);return[e,Math.sqrt(r*r+n*n),a]},o.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},o.rgb.ansi16=function(t,e=null){const[r,n,a]=t;let i=null===e?o.rgb.hsv(t)[2]:e;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===i&&(s+=60),s},o.hsv.ansi16=function(t){return o.rgb.ansi16(o.hsv.rgb(t),t[2])},o.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},o.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},o.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},o.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),i=a-o;let s,c;return s=i<1?o/(1-i):0,c=i<=0?0:a===e?(r-n)/i%6:a===r?2+(n-e)/i:4+(e-r)/i,c/=6,c%=1,[360*c,100*i,100*s]},o.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let a=0;return n<1&&(a=(r-.5*n)/(1-n)),[t[0],100*n,100*a]},o.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let a=0;return n<1&&(a=(r-n)/(1-n)),[t[0],100*n,100*a]},o.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const a=[0,0,0],o=e%1*6,i=o%1,s=1-i;let c=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return c=(1-r)*n,[255*(r*a[0]+c),255*(r*a[1]+c),255*(r*a[2]+c)]},o.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},o.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},o.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},o.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let a=0;return n<1&&(a=(r-n)/(1-n)),[t[0],100*n,100*a]},o.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},o.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},o.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},o.gray.hsl=function(t){return[0,0,t[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(t){return[0,100,t[0]]},o.gray.cmyk=function(t){return[0,0,0,t[0]]},o.gray.lab=function(t){return[t[0],0,0]},o.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},8349:(t,e,r)=>{const n=r(7252),a=r(4196),o={};Object.keys(n).forEach((t=>{o[t]={},Object.defineProperty(o[t],"channels",{value:n[t].channels}),Object.defineProperty(o[t],"labels",{value:n[t].labels});const e=a(t);Object.keys(e).forEach((r=>{const n=e[r];o[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),o[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=o},4196:(t,e,r)=>{const n=r(7252);function a(t){const e=function(){const t={},e=Object.keys(n);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),a=Object.keys(n[t]);for(let n=a.length,o=0;o<n;o++){const n=a[o],i=e[n];-1===i.distance&&(i.distance=e[t].distance+1,i.parent=t,r.unshift(n))}}return e}function o(t,e){return function(r){return e(t(r))}}function i(t,e){const r=[e[t].parent,t];let a=n[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),a=o(n[e[i].parent][i],a),i=e[i].parent;return a.conversion=r,a}t.exports=function(t){const e=a(t),r={},n=Object.keys(e);for(let t=n.length,a=0;a<t;a++){const t=n[a];null!==e[t].parent&&(r[t]=i(t,e))}return r}},2037:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7853:(t,e,r)=>{var n=r(7424),a=r(2882),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(a(t)+" is not a function")}},2197:(t,e,r)=>{var n=r(7086),a=r(2882),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(a(t)+" is not a constructor")}},6637:(t,e,r)=>{var n=r(7424),a=String,o=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw o("Can't set "+a(t)+" as a prototype")}},990:(t,e,r)=>{var n=r(7166),a=r(3981),o=r(7614).f,i=n("unscopables"),s=Array.prototype;null==s[i]&&o(s,i,{configurable:!0,value:a(null)}),t.exports=function(t){s[i][t]=!0}},2577:(t,e,r)=>{"use strict";var n=r(520).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},1326:(t,e,r)=>{var n=r(6827),a=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw o(a(t)+" is not an object")}},3321:(t,e,r)=>{var n=r(8462);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},9352:(t,e,r)=>{"use strict";var n=r(5860).forEach,a=r(8809)("forEach");t.exports=a?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},1871:(t,e,r)=>{"use strict";var n=r(8273),a=r(5244),o=r(4440),i=r(9448),s=r(9254),c=r(7086),u=r(7825),l=r(1861),p=r(898),h=r(3054),d=Array;t.exports=function(t){var e=o(t),r=c(this),f=arguments.length,v=f>1?arguments[1]:void 0,m=void 0!==v;m&&(v=n(v,f>2?arguments[2]:void 0));var b,g,y,k,w,C,S=h(e),x=0;if(!S||this===d&&s(S))for(b=u(e),g=r?new this(b):d(b);b>x;x++)C=m?v(e[x],x):e[x],l(g,x,C);else for(w=(k=p(e,S)).next,g=r?new this:[];!(y=a(w,k)).done;x++)C=m?i(k,v,[y.value,x],!0):y.value,l(g,x,C);return g.length=x,g}},5254:(t,e,r)=>{var n=r(3016),a=r(847),o=r(7825),i=function(t){return function(e,r,i){var s,c=n(e),u=o(c),l=a(i,u);if(t&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},5860:(t,e,r)=>{var n=r(8273),a=r(9709),o=r(8188),i=r(4440),s=r(7825),c=r(5309),u=a([].push),l=function(t){var e=1==t,r=2==t,a=3==t,l=4==t,p=6==t,h=7==t,d=5==t||p;return function(f,v,m,b){for(var g,y,k=i(f),w=o(k),C=n(v,m),S=s(w),x=0,O=b||c,E=e?O(f,S):r||h?O(f,0):void 0;S>x;x++)if((d||x in w)&&(y=C(g=w[x],x,k),t))if(e)E[x]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return x;case 2:u(E,g)}else switch(t){case 4:return!1;case 7:u(E,g)}return p?-1:a||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},6894:(t,e,r)=>{var n=r(8462),a=r(7166),o=r(5649),i=a("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},8809:(t,e,r)=>{"use strict";var n=r(8462);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},9292:(t,e,r)=>{var n=r(847),a=r(7825),o=r(1861),i=Array,s=Math.max;t.exports=function(t,e,r){for(var c=a(t),u=n(e,c),l=n(void 0===r?c:r,c),p=i(s(l-u,0)),h=0;u<l;u++,h++)o(p,h,t[u]);return p.length=h,p}},3653:(t,e,r)=>{var n=r(9709);t.exports=n([].slice)},5384:(t,e,r)=>{var n=r(3115),a=r(7086),o=r(6827),i=r(7166)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(a(e)&&(e===s||n(e.prototype))||o(e)&&null===(e=e[i]))&&(e=void 0)),void 0===e?s:e}},5309:(t,e,r)=>{var n=r(5384);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},9448:(t,e,r)=>{var n=r(1326),a=r(872);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){a(t,"throw",e)}}},5239:(t,e,r)=>{var n=r(7166)("iterator"),a=!1;try{var o=0,i={next:function(){return{done:!!o++}},return:function(){a=!0}};i[n]=function(){return this},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(t){}return r}},661:(t,e,r)=>{var n=r(9709),a=n({}.toString),o=n("".slice);t.exports=function(t){return o(a(t),8,-1)}},9794:(t,e,r)=>{var n=r(3557),a=r(7424),o=r(661),i=r(7166)("toStringTag"),s=Object,c="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),i))?r:c?o(e):"Object"==(n=o(e))&&a(e.callee)?"Arguments":n}},9621:(t,e,r)=>{var n=r(5110),a=r(1804),o=r(172),i=r(7614);t.exports=function(t,e,r){for(var s=a(e),c=i.f,u=o.f,l=0;l<s.length;l++){var p=s[l];n(t,p)||r&&n(r,p)||c(t,p,u(e,p))}}},6036:(t,e,r)=>{var n=r(8462);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},3087:(t,e,r)=>{"use strict";var n=r(3774).IteratorPrototype,a=r(3981),o=r(9367),i=r(5142),s=r(7240),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=a(n,{next:o(+!u,r)}),i(t,l,!1,!0),s[l]=c,t}},4100:(t,e,r)=>{var n=r(6953),a=r(7614),o=r(9367);t.exports=n?function(t,e,r){return a.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},9367:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1861:(t,e,r)=>{"use strict";var n=r(8756),a=r(7614),o=r(9367);t.exports=function(t,e,r){var i=n(e);i in t?a.f(t,i,o(0,r)):t[i]=r}},2297:(t,e,r)=>{var n=r(7424),a=r(7614),o=r(5390),i=r(6530);t.exports=function(t,e,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(n(r)&&o(r,u,s),s.global)c?t[e]=r:i(e,r);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:a.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},6530:(t,e,r)=>{var n=r(2756),a=Object.defineProperty;t.exports=function(t,e){try{a(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},2527:(t,e,r)=>{"use strict";var n=r(5689),a=r(5244),o=r(7690),i=r(7707),s=r(7424),c=r(3087),u=r(6166),l=r(4322),p=r(5142),h=r(4100),d=r(2297),f=r(7166),v=r(7240),m=r(3774),b=i.PROPER,g=i.CONFIGURABLE,y=m.IteratorPrototype,k=m.BUGGY_SAFARI_ITERATORS,w=f("iterator"),C="keys",S="values",x="entries",O=function(){return this};t.exports=function(t,e,r,i,f,m,E){c(r,e,i);var L,P,A,T=function(t){if(t===f&&B)return B;if(!k&&t in M)return M[t];switch(t){case C:case S:case x:return function(){return new r(this,t)}}return function(){return new r(this)}},j=e+" Iterator",I=!1,M=t.prototype,F=M[w]||M["@@iterator"]||f&&M[f],B=!k&&F||T(f),R="Array"==e&&M.entries||F;if(R&&(L=u(R.call(new t)))!==Object.prototype&&L.next&&(o||u(L)===y||(l?l(L,y):s(L[w])||d(L,w,O)),p(L,j,!0,!0),o&&(v[j]=O)),b&&f==S&&F&&F.name!==S&&(!o&&g?h(M,"name",S):(I=!0,B=function(){return a(F,this)})),f)if(P={values:T(S),keys:m?B:T(C),entries:T(x)},E)for(A in P)(k||I||!(A in M))&&d(M,A,P[A]);else n({target:e,proto:!0,forced:k||I},P);return o&&!E||M[w]===B||d(M,w,B,{name:f}),v[e]=B,P}},4300:(t,e,r)=>{var n=r(8844),a=r(5110),o=r(766),i=r(7614).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});a(e,t)||i(e,t,{value:o.f(t)})}},6953:(t,e,r)=>{var n=r(8462);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3018:(t,e,r)=>{var n=r(2756),a=r(6827),o=n.document,i=a(o)&&a(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},4958:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},8993:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7891:(t,e,r)=>{var n=r(3018)("span").classList,a=n&&n.constructor&&n.constructor.prototype;t.exports=a===Object.prototype?void 0:a},5441:(t,e,r)=>{var n=r(5072);t.exports=n("navigator","userAgent")||""},5649:(t,e,r)=>{var n,a,o=r(2756),i=r(5441),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(a=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(a=+n[1]),t.exports=a},4798:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5689:(t,e,r)=>{var n=r(2756),a=r(172).f,o=r(4100),i=r(2297),s=r(6530),c=r(9621),u=r(5149);t.exports=function(t,e){var r,l,p,h,d,f=t.target,v=t.global,m=t.stat;if(r=v?n:m?n[f]||s(f,{}):(n[f]||{}).prototype)for(l in e){if(h=e[l],p=t.dontCallGetSet?(d=a(r,l))&&d.value:r[l],!u(v?l:f+(m?".":"#")+l,t.forced)&&void 0!==p){if(typeof h==typeof p)continue;c(h,p)}(t.sham||p&&p.sham)&&o(h,"sham",!0),i(r,l,h,t)}}},8462:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},6031:(t,e,r)=>{"use strict";r(3188);var n=r(9709),a=r(2297),o=r(5866),i=r(8462),s=r(7166),c=r(4100),u=s("species"),l=RegExp.prototype;t.exports=function(t,e,r,p){var h=s(t),d=!i((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=d&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return e=!0,null},r[h](""),!e}));if(!d||!f||r){var v=n(/./[h]),m=e(h,""[t],(function(t,e,r,a,i){var s=n(t),c=e.exec;return c===o||c===l.exec?d&&!i?{done:!0,value:v(e,r,a)}:{done:!0,value:s(r,e,a)}:{done:!1}}));a(String.prototype,t,m[0]),a(l,h,m[1])}p&&c(l[h],"sham",!0)}},9947:(t,e,r)=>{var n=r(8462);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},7322:(t,e,r)=>{var n=r(323),a=Function.prototype,o=a.apply,i=a.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},8273:(t,e,r)=>{var n=r(9709),a=r(7853),o=r(323),i=n(n.bind);t.exports=function(t,e){return a(t),void 0===e?t:o?i(t,e):function(){return t.apply(e,arguments)}}},323:(t,e,r)=>{var n=r(8462);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8631:(t,e,r)=>{"use strict";var n=r(9709),a=r(7853),o=r(6827),i=r(5110),s=r(3653),c=r(323),u=Function,l=n([].concat),p=n([].join),h={};t.exports=c?u.bind:function(t){var e=a(this),r=e.prototype,n=s(arguments,1),c=function(){var r=l(n,s(arguments));return this instanceof c?function(t,e,r){if(!i(h,e)){for(var n=[],a=0;a<e;a++)n[a]="a["+a+"]";h[e]=u("C,a","return new C("+p(n,",")+")")}return h[e](t,r)}(e,r.length,r):e.apply(t,r)};return o(r)&&(c.prototype=r),c}},5244:(t,e,r)=>{var n=r(323),a=Function.prototype.call;t.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},7707:(t,e,r)=>{var n=r(6953),a=r(5110),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,s=a(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&i(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},9709:(t,e,r)=>{var n=r(323),a=Function.prototype,o=a.bind,i=a.call,s=n&&o.bind(i,i);t.exports=n?function(t){return t&&s(t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},5072:(t,e,r)=>{var n=r(2756),a=r(7424);t.exports=function(t,e){return arguments.length<2?(r=n[t],a(r)?r:void 0):n[t]&&n[t][e];var r}},3054:(t,e,r)=>{var n=r(9794),a=r(125),o=r(7240),i=r(7166)("iterator");t.exports=function(t){if(null!=t)return a(t,i)||a(t,"@@iterator")||o[n(t)]}},898:(t,e,r)=>{var n=r(5244),a=r(7853),o=r(1326),i=r(2882),s=r(3054),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(a(r))return o(n(r,t));throw c(i(t)+" is not iterable")}},125:(t,e,r)=>{var n=r(7853);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},5285:(t,e,r)=>{var n=r(9709),a=r(4440),o=Math.floor,i=n("".charAt),s=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,p,h){var d=r+t.length,f=n.length,v=l;return void 0!==p&&(p=a(p),v=u),s(h,v,(function(a,s){var u;switch(i(s,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,r);case"'":return c(e,d);case"<":u=p[c(s,1,-1)];break;default:var l=+s;if(0===l)return a;if(l>f){var h=o(l/10);return 0===h?a:h<=f?void 0===n[h-1]?i(s,1):n[h-1]+i(s,1):a}u=n[l-1]}return void 0===u?"":u}))}},2756:(t,e,r)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},5110:(t,e,r)=>{var n=r(9709),a=r(4440),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(a(t),e)}},3472:t=>{t.exports={}},1198:(t,e,r)=>{var n=r(5072);t.exports=n("document","documentElement")},7106:(t,e,r)=>{var n=r(6953),a=r(8462),o=r(3018);t.exports=!n&&!a((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8188:(t,e,r)=>{var n=r(9709),a=r(8462),o=r(661),i=Object,s=n("".split);t.exports=a((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):i(t)}:i},1633:(t,e,r)=>{var n=r(9709),a=r(7424),o=r(410),i=n(Function.toString);a(o.inspectSource)||(o.inspectSource=function(t){return i(t)}),t.exports=o.inspectSource},2634:(t,e,r)=>{var n=r(5689),a=r(9709),o=r(3472),i=r(6827),s=r(5110),c=r(7614).f,u=r(4161),l=r(4113),p=r(5395),h=r(637),d=r(9947),f=!1,v=h("meta"),m=0,b=function(t){c(t,v,{value:{objectID:"O"+m++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},f=!0;var t=u.f,e=a([].splice),r={};r[v]=1,t(r).length&&(u.f=function(r){for(var n=t(r),a=0,o=n.length;a<o;a++)if(n[a]===v){e(n,a,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!p(t))return"F";if(!e)return"E";b(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!p(t))return!0;if(!e)return!1;b(t)}return t[v].weakData},onFreeze:function(t){return d&&f&&p(t)&&!s(t,v)&&b(t),t}};o[v]=!0},3962:(t,e,r)=>{var n,a,o,i=r(1602),s=r(2756),c=r(9709),u=r(6827),l=r(4100),p=r(5110),h=r(410),d=r(5868),f=r(3472),v="Object already initialized",m=s.TypeError,b=s.WeakMap;if(i||h.state){var g=h.state||(h.state=new b),y=c(g.get),k=c(g.has),w=c(g.set);n=function(t,e){if(k(g,t))throw new m(v);return e.facade=t,w(g,t,e),e},a=function(t){return y(g,t)||{}},o=function(t){return k(g,t)}}else{var C=d("state");f[C]=!0,n=function(t,e){if(p(t,C))throw new m(v);return e.facade=t,l(t,C,e),e},a=function(t){return p(t,C)?t[C]:{}},o=function(t){return p(t,C)}}t.exports={set:n,get:a,has:o,enforce:function(t){return o(t)?a(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=a(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return r}}}},9254:(t,e,r)=>{var n=r(7166),a=r(7240),o=n("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||i[o]===t)}},3115:(t,e,r)=>{var n=r(661);t.exports=Array.isArray||function(t){return"Array"==n(t)}},7424:t=>{t.exports=function(t){return"function"==typeof t}},7086:(t,e,r)=>{var n=r(9709),a=r(8462),o=r(7424),i=r(9794),s=r(5072),c=r(1633),u=function(){},l=[],p=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),f=!h.exec(u),v=function(t){if(!o(t))return!1;try{return p(u,l,t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,c(t))}catch(t){return!0}};m.sham=!0,t.exports=!p||a((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?m:v},5149:(t,e,r)=>{var n=r(8462),a=r(7424),o=/#|\.prototype\./,i=function(t,e){var r=c[s(t)];return r==l||r!=u&&(a(e)?n(e):!!e)},s=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},6827:(t,e,r)=>{var n=r(7424);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},7690:t=>{t.exports=!1},5237:(t,e,r)=>{var n=r(6827),a=r(661),o=r(7166)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==a(t))}},6396:(t,e,r)=>{var n=r(5072),a=r(7424),o=r(6830),i=r(4717),s=Object;t.exports=i?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return a(e)&&o(e.prototype,s(t))}},872:(t,e,r)=>{var n=r(5244),a=r(1326),o=r(125);t.exports=function(t,e,r){var i,s;a(t);try{if(!(i=o(t,"return"))){if("throw"===e)throw r;return r}i=n(i,t)}catch(t){s=!0,i=t}if("throw"===e)throw r;if(s)throw i;return a(i),r}},3774:(t,e,r)=>{"use strict";var n,a,o,i=r(8462),s=r(7424),c=r(3981),u=r(6166),l=r(2297),p=r(7166),h=r(7690),d=p("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(a=u(u(o)))!==Object.prototype&&(n=a):f=!0),null==n||i((function(){var t={};return n[d].call(t)!==t}))?n={}:h&&(n=c(n)),s(n[d])||l(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},7240:t=>{t.exports={}},7825:(t,e,r)=>{var n=r(9223);t.exports=function(t){return n(t.length)}},5390:(t,e,r)=>{var n=r(8462),a=r(7424),o=r(5110),i=r(6953),s=r(7707).CONFIGURABLE,c=r(1633),u=r(3962),l=u.enforce,p=u.get,h=Object.defineProperty,d=i&&!n((function(){return 8!==h((function(){}),"length",{value:8}).length})),f=String(String).split("String"),v=t.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(i?h(t,"name",{value:e,configurable:!0}):t.name=e),d&&r&&o(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?i&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return o(n,"source")||(n.source=f.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return a(this)&&p(this).source||c(this)}),"toString")},1298:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},3025:(t,e,r)=>{var n=r(3165);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},3165:(t,e,r)=>{var n=r(5649),a=r(8462);t.exports=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1602:(t,e,r)=>{var n=r(2756),a=r(7424),o=r(1633),i=n.WeakMap;t.exports=a(i)&&/native code/.test(o(i))},9484:(t,e,r)=>{"use strict";var n=r(6953),a=r(9709),o=r(5244),i=r(8462),s=r(4565),c=r(864),u=r(6492),l=r(4440),p=r(8188),h=Object.assign,d=Object.defineProperty,f=a([].concat);t.exports=!h||i((function(){if(n&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),a="abcdefghijklmnopqrst";return t[r]=7,a.split("").forEach((function(t){e[t]=t})),7!=h({},t)[r]||s(h({},e)).join("")!=a}))?function(t,e){for(var r=l(t),a=arguments.length,i=1,h=c.f,d=u.f;a>i;)for(var v,m=p(arguments[i++]),b=h?f(s(m),h(m)):s(m),g=b.length,y=0;g>y;)v=b[y++],n&&!o(d,m,v)||(r[v]=m[v]);return r}:h},3981:(t,e,r)=>{var n,a=r(1326),o=r(6434),i=r(4798),s=r(3472),c=r(1198),u=r(3018),l=r(5868),p="prototype",h="script",d=l("IE_PROTO"),f=function(){},v=function(t){return"<"+h+">"+t+"</"+h+">"},m=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;b="undefined"!=typeof document?document.domain&&n?m(n):(e=u("iframe"),r="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):m(n);for(var a=i.length;a--;)delete b[p][i[a]];return b()};s[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(f[p]=a(t),r=new f,f[p]=null,r[d]=t):r=b(),void 0===e?r:o.f(r,e)}},6434:(t,e,r)=>{var n=r(6953),a=r(5679),o=r(7614),i=r(1326),s=r(3016),c=r(4565);e.f=n&&!a?Object.defineProperties:function(t,e){i(t);for(var r,n=s(e),a=c(e),u=a.length,l=0;u>l;)o.f(t,r=a[l++],n[r]);return t}},7614:(t,e,r)=>{var n=r(6953),a=r(7106),o=r(5679),i=r(1326),s=r(8756),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";e.f=n?o?function(t,e,r){if(i(t),e=s(e),i(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=l(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(i(t),e=s(e),i(r),a)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},172:(t,e,r)=>{var n=r(6953),a=r(5244),o=r(6492),i=r(9367),s=r(3016),c=r(8756),u=r(5110),l=r(7106),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=s(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return i(!a(o.f,t,e),t[e])}},4113:(t,e,r)=>{var n=r(661),a=r(3016),o=r(4161).f,i=r(9292),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==n(t)?function(t){try{return o(t)}catch(t){return i(s)}}(t):o(a(t))}},4161:(t,e,r)=>{var n=r(9583),a=r(4798).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},864:(t,e)=>{e.f=Object.getOwnPropertySymbols},6166:(t,e,r)=>{var n=r(5110),a=r(7424),o=r(4440),i=r(5868),s=r(6036),c=i("IE_PROTO"),u=Object,l=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=o(t);if(n(e,c))return e[c];var r=e.constructor;return a(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},5395:(t,e,r)=>{var n=r(8462),a=r(6827),o=r(661),i=r(3321),s=Object.isExtensible,c=n((function(){s(1)}));t.exports=c||i?function(t){return!!a(t)&&((!i||"ArrayBuffer"!=o(t))&&(!s||s(t)))}:s},6830:(t,e,r)=>{var n=r(9709);t.exports=n({}.isPrototypeOf)},9583:(t,e,r)=>{var n=r(9709),a=r(5110),o=r(3016),i=r(5254).indexOf,s=r(3472),c=n([].push);t.exports=function(t,e){var r,n=o(t),u=0,l=[];for(r in n)!a(s,r)&&a(n,r)&&c(l,r);for(;e.length>u;)a(n,r=e[u++])&&(~i(l,r)||c(l,r));return l}},4565:(t,e,r)=>{var n=r(9583),a=r(4798);t.exports=Object.keys||function(t){return n(t,a)}},6492:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},4322:(t,e,r)=>{var n=r(9709),a=r(1326),o=r(6637);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return a(r),o(n),e?t(r,n):r.__proto__=n,r}}():void 0)},4536:(t,e,r)=>{"use strict";var n=r(3557),a=r(9794);t.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},4259:(t,e,r)=>{var n=r(5244),a=r(7424),o=r(6827),i=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&a(r=t.toString)&&!o(s=n(r,t)))return s;if(a(r=t.valueOf)&&!o(s=n(r,t)))return s;if("string"!==e&&a(r=t.toString)&&!o(s=n(r,t)))return s;throw i("Can't convert object to primitive value")}},1804:(t,e,r)=>{var n=r(5072),a=r(9709),o=r(4161),i=r(864),s=r(1326),c=a([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=i.f;return r?c(e,r(t)):e}},8844:(t,e,r)=>{var n=r(2756);t.exports=n},5805:(t,e,r)=>{var n=r(5244),a=r(1326),o=r(7424),i=r(661),s=r(5866),c=TypeError;t.exports=function(t,e){var r=t.exec;if(o(r)){var u=n(r,t,e);return null!==u&&a(u),u}if("RegExp"===i(t))return n(s,t,e);throw c("RegExp#exec called on incompatible receiver")}},5866:(t,e,r)=>{"use strict";var n,a,o=r(5244),i=r(9709),s=r(1670),c=r(4768),u=r(4124),l=r(3662),p=r(3981),h=r(3962).get,d=r(5976),f=r(6741),v=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,b=m,g=i("".charAt),y=i("".indexOf),k=i("".replace),w=i("".slice),C=(a=/b*/g,o(m,n=/a/,"a"),o(m,a,"a"),0!==n.lastIndex||0!==a.lastIndex),S=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(C||x||S||d||f)&&(b=function(t){var e,r,n,a,i,u,l,d=this,f=h(d),O=s(t),E=f.raw;if(E)return E.lastIndex=d.lastIndex,e=o(b,E,O),d.lastIndex=E.lastIndex,e;var L=f.groups,P=S&&d.sticky,A=o(c,d),T=d.source,j=0,I=O;if(P&&(A=k(A,"y",""),-1===y(A,"g")&&(A+="g"),I=w(O,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==g(O,d.lastIndex-1))&&(T="(?: "+T+")",I=" "+I,j++),r=new RegExp("^(?:"+T+")",A)),x&&(r=new RegExp("^"+T+"$(?!\\s)",A)),C&&(n=d.lastIndex),a=o(m,P?r:d,I),P?a?(a.input=w(a.input,j),a[0]=w(a[0],j),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:C&&a&&(d.lastIndex=d.global?a.index+a[0].length:n),x&&a&&a.length>1&&o(v,a[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(a[i]=void 0)})),a&&L)for(a.groups=u=p(null),i=0;i<L.length;i++)u[(l=L[i])[0]]=a[l[1]];return a}),t.exports=b},4768:(t,e,r)=>{"use strict";var n=r(1326);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},101:(t,e,r)=>{var n=r(5244),a=r(5110),o=r(6830),i=r(4768),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||a(t,"flags")||!o(s,t)?e:n(i,t)}},4124:(t,e,r)=>{var n=r(8462),a=r(2756).RegExp,o=n((function(){var t=a("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),i=o||n((function(){return!a("a","y").sticky})),s=o||n((function(){var t=a("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:i,UNSUPPORTED_Y:o}},5976:(t,e,r)=>{var n=r(8462),a=r(2756).RegExp;t.exports=n((function(){var t=a(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},6741:(t,e,r)=>{var n=r(8462),a=r(2756).RegExp;t.exports=n((function(){var t=a("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},5065:t=>{var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},5142:(t,e,r)=>{var n=r(7614).f,a=r(5110),o=r(7166)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!a(t,o)&&n(t,o,{configurable:!0,value:e})}},5868:(t,e,r)=>{var n=r(3662),a=r(637),o=n("keys");t.exports=function(t){return o[t]||(o[t]=a(t))}},410:(t,e,r)=>{var n=r(2756),a=r(6530),o="__core-js_shared__",i=n[o]||a(o,{});t.exports=i},3662:(t,e,r)=>{var n=r(7690),a=r(410);(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.3",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})},8576:(t,e,r)=>{var n=r(1326),a=r(2197),o=r(7166)("species");t.exports=function(t,e){var r,i=n(t).constructor;return void 0===i||null==(r=n(i)[o])?e:a(r)}},520:(t,e,r)=>{var n=r(9709),a=r(6372),o=r(1670),i=r(5065),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(t){return function(e,r){var n,l,p=o(i(e)),h=a(r),d=p.length;return h<0||h>=d?t?"":void 0:(n=c(p,h))<55296||n>56319||h+1===d||(l=c(p,h+1))<56320||l>57343?t?s(p,h):n:t?u(p,h,h+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},8961:(t,e,r)=>{var n=r(5244),a=r(5072),o=r(7166),i=r(2297);t.exports=function(){var t=a("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&i(e,s,(function(t){return n(r,this)}),{arity:1})}},847:(t,e,r)=>{var n=r(6372),a=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?a(r+e,0):o(r,e)}},3016:(t,e,r)=>{var n=r(8188),a=r(5065);t.exports=function(t){return n(a(t))}},6372:(t,e,r)=>{var n=r(1298);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},9223:(t,e,r)=>{var n=r(6372),a=Math.min;t.exports=function(t){return t>0?a(n(t),9007199254740991):0}},4440:(t,e,r)=>{var n=r(5065),a=Object;t.exports=function(t){return a(n(t))}},7806:(t,e,r)=>{var n=r(5244),a=r(6827),o=r(6396),i=r(125),s=r(4259),c=r(7166),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!a(t)||o(t))return t;var r,c=i(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!a(r)||o(r))return r;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},8756:(t,e,r)=>{var n=r(7806),a=r(6396);t.exports=function(t){var e=n(t,"string");return a(e)?e:e+""}},3557:(t,e,r)=>{var n={};n[r(7166)("toStringTag")]="z",t.exports="[object z]"===String(n)},1670:(t,e,r)=>{var n=r(9794),a=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},2882:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},637:(t,e,r)=>{var n=r(9709),a=0,o=Math.random(),i=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++a+o,36)}},4717:(t,e,r)=>{var n=r(3165);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5679:(t,e,r)=>{var n=r(6953),a=r(8462);t.exports=n&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},766:(t,e,r)=>{var n=r(7166);e.f=n},7166:(t,e,r)=>{var n=r(2756),a=r(3662),o=r(5110),i=r(637),s=r(3165),c=r(4717),u=a("wks"),l=n.Symbol,p=l&&l.for,h=c?l:l&&l.withoutSetter||i;t.exports=function(t){if(!o(u,t)||!s&&"string"!=typeof u[t]){var e="Symbol."+t;s&&o(l,t)?u[t]=l[t]:u[t]=c&&p?p(e):h(e)}return u[t]}},5423:(t,e,r)=>{"use strict";var n=r(5689),a=r(8462),o=r(3115),i=r(6827),s=r(4440),c=r(7825),u=r(4958),l=r(1861),p=r(5309),h=r(6894),d=r(7166),f=r(5649),v=d("isConcatSpreadable"),m=f>=51||!a((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),b=h("concat"),g=function(t){if(!i(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,arity:1,forced:!m||!b},{concat:function(t){var e,r,n,a,o,i=s(this),h=p(i,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(g(o=-1===e?i:arguments[e]))for(a=c(o),u(d+a),r=0;r<a;r++,d++)r in o&&l(h,d,o[r]);else u(d+1),l(h,d++,o);return h.length=d,h}})},8837:(t,e,r)=>{"use strict";var n=r(5689),a=r(5860).filter;n({target:"Array",proto:!0,forced:!r(6894)("filter")},{filter:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},5831:(t,e,r)=>{var n=r(5689),a=r(1871);n({target:"Array",stat:!0,forced:!r(5239)((function(t){Array.from(t)}))},{from:a})},2493:(t,e,r)=>{"use strict";var n=r(3016),a=r(990),o=r(7240),i=r(3962),s=r(7614).f,c=r(2527),u=r(7690),l=r(6953),p="Array Iterator",h=i.set,d=i.getterFor(p);t.exports=c(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");var f=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!u&&l&&"values"!==f.name)try{s(f,"name",{value:"values"})}catch(t){}},1055:(t,e,r)=>{"use strict";var n=r(5689),a=r(9709),o=r(8188),i=r(3016),s=r(8809),c=a([].join),u=o!=Object,l=s("join",",");n({target:"Array",proto:!0,forced:u||!l},{join:function(t){return c(i(this),void 0===t?",":t)}})},2417:(t,e,r)=>{"use strict";var n=r(5689),a=r(5860).map;n({target:"Array",proto:!0,forced:!r(6894)("map")},{map:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},653:(t,e,r)=>{"use strict";var n=r(5689),a=r(3115),o=r(7086),i=r(6827),s=r(847),c=r(7825),u=r(3016),l=r(1861),p=r(7166),h=r(6894),d=r(3653),f=h("slice"),v=p("species"),m=Array,b=Math.max;n({target:"Array",proto:!0,forced:!f},{slice:function(t,e){var r,n,p,h=u(this),f=c(h),g=s(t,f),y=s(void 0===e?f:e,f);if(a(h)&&(r=h.constructor,(o(r)&&(r===m||a(r.prototype))||i(r)&&null===(r=r[v]))&&(r=void 0),r===m||void 0===r))return d(h,g,y);for(n=new(void 0===r?m:r)(b(y-g,0)),p=0;g<y;g++,p++)g in h&&l(n,p,h[g]);return n.length=p,n}})},3145:(t,e,r)=>{var n=r(6953),a=r(7707).EXISTS,o=r(9709),i=r(7614).f,s=Function.prototype,c=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(u.exec);n&&!a&&i(s,"name",{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(t){return""}}})},6787:(t,e,r)=>{var n=r(5689),a=r(5072),o=r(7322),i=r(5244),s=r(9709),c=r(8462),u=r(3115),l=r(7424),p=r(6827),h=r(6396),d=r(3653),f=r(3165),v=a("JSON","stringify"),m=s(/./.exec),b=s("".charAt),g=s("".charCodeAt),y=s("".replace),k=s(1..toString),w=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,x=!f||c((function(){var t=a("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),O=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),E=function(t,e){var r=d(arguments),n=e;if((p(e)||void 0!==t)&&!h(t))return u(e)||(e=function(t,e){if(l(n)&&(e=i(n,this,t,e)),!h(e))return e}),r[1]=e,o(v,null,r)},L=function(t,e,r){var n=b(r,e-1),a=b(r,e+1);return m(C,t)&&!m(S,a)||m(S,t)&&!m(C,n)?"\\u"+k(g(t,0),16):t};v&&n({target:"JSON",stat:!0,arity:3,forced:x||O},{stringify:function(t,e,r){var n=d(arguments),a=o(x?E:v,null,n);return O&&"string"==typeof a?y(a,w,L):a}})},9206:(t,e,r)=>{var n=r(5689),a=r(9484);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},6988:(t,e,r)=>{var n=r(5689),a=r(9947),o=r(8462),i=r(6827),s=r(2634).onFreeze,c=Object.freeze;n({target:"Object",stat:!0,forced:o((function(){c(1)})),sham:!a},{freeze:function(t){return c&&i(t)?c(s(t)):t}})},2002:(t,e,r)=>{var n=r(5689),a=r(8462),o=r(3016),i=r(172).f,s=r(6953),c=a((function(){i(1)}));n({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return i(o(t),e)}})},9185:(t,e,r)=>{var n=r(5689),a=r(6953),o=r(1804),i=r(3016),s=r(172),c=r(1861);n({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var e,r,n=i(t),a=s.f,u=o(n),l={},p=0;u.length>p;)void 0!==(r=a(n,e=u[p++]))&&c(l,e,r);return l}})},3134:(t,e,r)=>{var n=r(5689),a=r(3165),o=r(8462),i=r(864),s=r(4440);n({target:"Object",stat:!0,forced:!a||o((function(){i.f(1)}))},{getOwnPropertySymbols:function(t){var e=i.f;return e?e(s(t)):[]}})},1240:(t,e,r)=>{var n=r(5689),a=r(8462),o=r(4440),i=r(6166),s=r(6036);n({target:"Object",stat:!0,forced:a((function(){i(1)})),sham:!s},{getPrototypeOf:function(t){return i(o(t))}})},8471:(t,e,r)=>{var n=r(5689),a=r(4440),o=r(4565);n({target:"Object",stat:!0,forced:r(8462)((function(){o(1)}))},{keys:function(t){return o(a(t))}})},570:(t,e,r)=>{var n=r(3557),a=r(2297),o=r(4536);n||a(Object.prototype,"toString",o,{unsafe:!0})},9834:(t,e,r)=>{var n=r(5689),a=r(5072),o=r(7322),i=r(8631),s=r(2197),c=r(1326),u=r(6827),l=r(3981),p=r(8462),h=a("Reflect","construct"),d=Object.prototype,f=[].push,v=p((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),m=!p((function(){h((function(){}))})),b=v||m;n({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(t,e){s(t),c(e);var r=arguments.length<3?t:s(arguments[2]);if(m&&!v)return h(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return o(f,n,e),new(o(i,t,n))}var a=r.prototype,p=l(u(a)?a:d),b=o(t,p,e);return u(b)?b:p}})},3188:(t,e,r)=>{"use strict";var n=r(5689),a=r(5866);n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},844:(t,e,r)=>{"use strict";var n=r(7707).PROPER,a=r(2297),o=r(1326),i=r(1670),s=r(8462),c=r(101),u="toString",l=RegExp.prototype[u],p=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),h=n&&l.name!=u;(p||h)&&a(RegExp.prototype,u,(function(){var t=o(this);return"/"+i(t.source)+"/"+i(c(t))}),{unsafe:!0})},3343:(t,e,r)=>{"use strict";var n=r(520).charAt,a=r(1670),o=r(3962),i=r(2527),s="String Iterator",c=o.set,u=o.getterFor(s);i(String,"String",(function(t){c(this,{type:s,string:a(t),index:0})}),(function(){var t,e=u(this),r=e.string,a=e.index;return a>=r.length?{value:void 0,done:!0}:(t=n(r,a),e.index+=t.length,{value:t,done:!1})}))},9297:(t,e,r)=>{"use strict";var n=r(7322),a=r(5244),o=r(9709),i=r(6031),s=r(8462),c=r(1326),u=r(7424),l=r(6372),p=r(9223),h=r(1670),d=r(5065),f=r(2577),v=r(125),m=r(5285),b=r(5805),g=r(7166)("replace"),y=Math.max,k=Math.min,w=o([].concat),C=o([].push),S=o("".indexOf),x=o("".slice),O="$0"==="a".replace(/./,"$0"),E=!!/./[g]&&""===/./[g]("a","$0");i("replace",(function(t,e,r){var o=E?"$":"$0";return[function(t,r){var n=d(this),o=null==t?void 0:v(t,g);return o?a(o,t,n,r):a(e,h(n),t,r)},function(t,a){var i=c(this),s=h(t);if("string"==typeof a&&-1===S(a,o)&&-1===S(a,"$<")){var d=r(e,i,s,a);if(d.done)return d.value}var v=u(a);v||(a=h(a));var g=i.global;if(g){var O=i.unicode;i.lastIndex=0}for(var E=[];;){var L=b(i,s);if(null===L)break;if(C(E,L),!g)break;""===h(L[0])&&(i.lastIndex=f(s,p(i.lastIndex),O))}for(var P,A="",T=0,j=0;j<E.length;j++){for(var I=h((L=E[j])[0]),M=y(k(l(L.index),s.length),0),F=[],B=1;B<L.length;B++)C(F,void 0===(P=L[B])?P:String(P));var R=L.groups;if(v){var N=w([I],F,M,s);void 0!==R&&C(N,R);var D=h(n(a,void 0,N))}else D=m(I,s,M,F,R,a);M>=T&&(A+=x(s,T,M)+D,T=M+I.length)}return A+x(s,T)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!O||E)},2773:(t,e,r)=>{"use strict";var n=r(7322),a=r(5244),o=r(9709),i=r(6031),s=r(5237),c=r(1326),u=r(5065),l=r(8576),p=r(2577),h=r(9223),d=r(1670),f=r(125),v=r(9292),m=r(5805),b=r(5866),g=r(4124),y=r(8462),k=g.UNSUPPORTED_Y,w=4294967295,C=Math.min,S=[].push,x=o(/./.exec),O=o(S),E=o("".slice);i("split",(function(t,e,r){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var o=d(u(this)),i=void 0===r?w:r>>>0;if(0===i)return[];if(void 0===t)return[o];if(!s(t))return a(e,o,t,i);for(var c,l,p,h=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),m=0,g=new RegExp(t.source,f+"g");(c=a(b,g,o))&&!((l=g.lastIndex)>m&&(O(h,E(o,m,c.index)),c.length>1&&c.index<o.length&&n(S,h,v(c,1)),p=c[0].length,m=l,h.length>=i));)g.lastIndex===c.index&&g.lastIndex++;return m===o.length?!p&&x(g,"")||O(h,""):O(h,E(o,m)),h.length>i?v(h,0,i):h}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:a(e,this,t,r)}:e,[function(e,r){var n=u(this),i=null==e?void 0:f(e,t);return i?a(i,e,n,r):a(o,d(n),e,r)},function(t,n){var a=c(this),i=d(t),s=r(o,a,i,n,o!==e);if(s.done)return s.value;var u=l(a,RegExp),f=a.unicode,v=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(k?"g":"y"),b=new u(k?"^(?:"+a.source+")":a,v),g=void 0===n?w:n>>>0;if(0===g)return[];if(0===i.length)return null===m(b,i)?[i]:[];for(var y=0,S=0,x=[];S<i.length;){b.lastIndex=k?0:S;var L,P=m(b,k?E(i,S):i);if(null===P||(L=C(h(b.lastIndex+(k?S:0)),i.length))===y)S=p(i,S,f);else{if(O(x,E(i,y,S)),x.length===g)return x;for(var A=1;A<=P.length-1;A++)if(O(x,P[A]),x.length===g)return x;S=y=L}}return O(x,E(i,y)),x}]}),!!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),k)},420:(t,e,r)=>{"use strict";var n=r(5689),a=r(2756),o=r(5244),i=r(9709),s=r(7690),c=r(6953),u=r(3165),l=r(8462),p=r(5110),h=r(6830),d=r(1326),f=r(3016),v=r(8756),m=r(1670),b=r(9367),g=r(3981),y=r(4565),k=r(4161),w=r(4113),C=r(864),S=r(172),x=r(7614),O=r(6434),E=r(6492),L=r(2297),P=r(3662),A=r(5868),T=r(3472),j=r(637),I=r(7166),M=r(766),F=r(4300),B=r(8961),R=r(5142),N=r(3962),D=r(5860).forEach,H=A("hidden"),_="Symbol",z="prototype",U=N.set,q=N.getterFor(_),W=Object[z],V=a.Symbol,$=V&&V[z],G=a.TypeError,X=a.QObject,J=S.f,Y=x.f,K=w.f,Q=E.f,Z=i([].push),tt=P("symbols"),et=P("op-symbols"),rt=P("wks"),nt=!X||!X[z]||!X[z].findChild,at=c&&l((function(){return 7!=g(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=J(W,e);n&&delete W[e],Y(t,e,r),n&&t!==W&&Y(W,e,n)}:Y,ot=function(t,e){var r=tt[t]=g($);return U(r,{type:_,tag:t,description:e}),c||(r.description=e),r},it=function(t,e,r){t===W&&it(et,e,r),d(t);var n=v(e);return d(r),p(tt,n)?(r.enumerable?(p(t,H)&&t[H][n]&&(t[H][n]=!1),r=g(r,{enumerable:b(0,!1)})):(p(t,H)||Y(t,H,b(1,{})),t[H][n]=!0),at(t,n,r)):Y(t,n,r)},st=function(t,e){d(t);var r=f(e),n=y(r).concat(pt(r));return D(n,(function(e){c&&!o(ct,r,e)||it(t,e,r[e])})),t},ct=function(t){var e=v(t),r=o(Q,this,e);return!(this===W&&p(tt,e)&&!p(et,e))&&(!(r||!p(this,e)||!p(tt,e)||p(this,H)&&this[H][e])||r)},ut=function(t,e){var r=f(t),n=v(e);if(r!==W||!p(tt,n)||p(et,n)){var a=J(r,n);return!a||!p(tt,n)||p(r,H)&&r[H][n]||(a.enumerable=!0),a}},lt=function(t){var e=K(f(t)),r=[];return D(e,(function(t){p(tt,t)||p(T,t)||Z(r,t)})),r},pt=function(t){var e=t===W,r=K(e?et:f(t)),n=[];return D(r,(function(t){!p(tt,t)||e&&!p(W,t)||Z(n,tt[t])})),n};u||(L($=(V=function(){if(h($,this))throw G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=j(t),r=function(t){this===W&&o(r,et,t),p(this,H)&&p(this[H],e)&&(this[H][e]=!1),at(this,e,b(1,t))};return c&&nt&&at(W,e,{configurable:!0,set:r}),ot(e,t)})[z],"toString",(function(){return q(this).tag})),L(V,"withoutSetter",(function(t){return ot(j(t),t)})),E.f=ct,x.f=it,O.f=st,S.f=ut,k.f=w.f=lt,C.f=pt,M.f=function(t){return ot(I(t),t)},c&&(Y($,"description",{configurable:!0,get:function(){return q(this).description}}),s||L(W,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),D(y(rt),(function(t){F(t)})),n({target:_,stat:!0,forced:!u},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?g(t):st(g(t),e)},defineProperty:it,defineProperties:st,getOwnPropertyDescriptor:ut}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt}),B(),R(V,_),T[H]=!0},4290:(t,e,r)=>{"use strict";var n=r(5689),a=r(6953),o=r(2756),i=r(9709),s=r(5110),c=r(7424),u=r(6830),l=r(1670),p=r(7614).f,h=r(9621),d=o.Symbol,f=d&&d.prototype;if(a&&c(d)&&(!("description"in f)||void 0!==d().description)){var v={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=u(f,this)?new d(t):void 0===t?d():d(t);return""===t&&(v[e]=!0),e};h(m,d),m.prototype=f,f.constructor=m;var b="Symbol(test)"==String(d("test")),g=i(f.toString),y=i(f.valueOf),k=/^Symbol\((.*)\)[^)]+$/,w=i("".replace),C=i("".slice);p(f,"description",{configurable:!0,get:function(){var t=y(this),e=g(t);if(s(v,t))return"";var r=b?C(e,7,-1):w(e,k,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:m})}},8727:(t,e,r)=>{var n=r(5689),a=r(5072),o=r(5110),i=r(1670),s=r(3662),c=r(3025),u=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=i(t);if(o(u,e))return u[e];var r=a("Symbol")(e);return u[e]=r,l[r]=e,r}})},9068:(t,e,r)=>{r(4300)("iterator")},4162:(t,e,r)=>{r(420),r(8727),r(1721),r(6787),r(3134)},1721:(t,e,r)=>{var n=r(5689),a=r(5110),o=r(6396),i=r(2882),s=r(3662),c=r(3025),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!o(t))throw TypeError(i(t)+" is not a symbol");if(a(u,t))return u[t]}})},4439:(t,e,r)=>{var n=r(2756),a=r(8993),o=r(7891),i=r(9352),s=r(4100),c=function(t){if(t&&t.forEach!==i)try{s(t,"forEach",i)}catch(e){t.forEach=i}};for(var u in a)a[u]&&c(n[u]&&n[u].prototype);c(o)},7046:(t,e,r)=>{var n=r(2756),a=r(8993),o=r(7891),i=r(2493),s=r(4100),c=r(7166),u=c("iterator"),l=c("toStringTag"),p=i.values,h=function(t,e){if(t){if(t[u]!==p)try{s(t,u,p)}catch(e){t[u]=p}if(t[l]||s(t,l,e),a[e])for(var r in i)if(t[r]!==i[r])try{s(t,r,i[r])}catch(e){t[r]=i[r]}}};for(var d in a)h(n[d]&&n[d].prototype,d);h(o,"DOMTokenList")},4373:()=>{var t;t=function(t){return t=+t,isNaN(t)||t==1/0||t==-1/0?0:t},Element.prototype.scroll||(Element.prototype.scroll=function(){var e,r,n=arguments.length,a=this.ownerDocument,o=a.defaultView,i="BackCompat"==a.compatMode,s=document.getElementsByTagName("BODY")[0],c={};if(a==window.document&&o&&0!==n){if(1===n){var u=arguments[0];if("object"!=typeof u)throw"Failed to execute 'scrollBy' on 'Element': parameter 1 ('options') is not an object.";"left"in u&&(c.left=t(u.left)),"top"in u&&(c.top=t(u.top)),e="left"in c?c.left:this.scrollLeft,r="top"in c?c.top:this.scrollTop}else c.left=e=t(arguments[0]),c.top=r=t(arguments[1]);if(this!=document.documentElement)this!=s||!i||function(t){t=t||document.getElementsByTagName("BODY")[0];var e=window.getComputedStyle(t),r=window.getComputedStyle(t.parent),n=e.overflowX,a=e.overflowY,o=r.overflowX,i=r.overflowY;return("table-column"==e.display||"table-column-group"==e.display)&&"visible"!=o&&"clip"!=o&&"visible"!=i&&"clip"!=i&&"visible"!=n&&"clip"!=n&&"visible"!=a&&"clip"!=a}(s)?(this.scrollLeft=e,this.scrollTop=r):o.scroll(c.left,c.top);else{if(i)return;o.scroll("scrollX"in o?o.scrollX:"pageXOffset"in o?o.pageXOffset:this.scrollLeft,r)}}}),Element.prototype.scrollTo||(Element.prototype.scrollTo=Element.prototype.scroll),Element.prototype.scrollBy||(Element.prototype.scrollBy=function(){var e=arguments.length,r={};if(0!==e){if(1===e){var n=arguments[0];if("object"!=typeof n)throw"Failed to execute 'scrollBy' on 'Element': parameter 1 ('options') is not an object.";"left"in n&&(r.left=t(n.left)),"top"in n&&(r.top=t(n.top))}else r.left=t(arguments[0]),r.top=t(arguments[1]);r.left="left"in r?r.left+this.scrollLeft:this.scrollLeft,r.top="top"in r?r.top+this.scrollTop:this.scrollTop,this.scroll(r)}})},5199:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},2683:(t,e,r)=>{var n,a,o;a=[r(648)],void 0===(o="function"==typeof(n=function(t){function e(t){this.init(t)}e.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:e,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(e){t.extend(this,e),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=t("<canvas>")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var e=this.canvas;if(e.width=this.size,e.height=this.size,this.ctx=e.getContext("2d"),window.devicePixelRatio>1){var r=window.devicePixelRatio;e.style.width=e.style.height=this.size+"px",e.width=e.height=this.size*r,this.ctx.scale(r,r)}},initFill:function(){var e,r=this,n=this.fill,a=this.ctx,o=this.size;if(!n)throw Error("The fill is not specified!");if("string"==typeof n&&(n={color:n}),n.color&&(this.arcFill=n.color),n.gradient){var i=n.gradient;if(1==i.length)this.arcFill=i[0];else if(i.length>1){for(var s=n.gradientAngle||0,c=n.gradientDirection||[o/2*(1-Math.cos(s)),o/2*(1+Math.sin(s)),o/2*(1+Math.cos(s)),o/2*(1-Math.sin(s))],u=a.createLinearGradient.apply(a,c),l=0;l<i.length;l++){var p=i[l],h=l/(i.length-1);t.isArray(p)&&(h=p[1],p=p[0]),u.addColorStop(h,p)}this.arcFill=u}}function d(){var n=t("<canvas>")[0];n.width=r.size,n.height=r.size,n.getContext("2d").drawImage(e,0,0,o,o),r.arcFill=r.ctx.createPattern(n,"no-repeat"),r.drawFrame(r.lastFrameValue)}n.image&&(n.image instanceof Image?e=n.image:(e=new Image).src=n.image,e.complete?d():e.onload=d)},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(t){this.lastFrameValue=t,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(t),this.drawArc(t)},drawArc:function(t){if(0!==t){var e=this.ctx,r=this.radius,n=this.getThickness(),a=this.startAngle;e.save(),e.beginPath(),this.reverse?e.arc(r,r,r-n/2,a-2*Math.PI*t,a):e.arc(r,r,r-n/2,a,a+2*Math.PI*t),e.lineWidth=n,e.lineCap=this.lineCap,e.strokeStyle=this.arcFill,e.stroke(),e.restore()}},drawEmptyArc:function(t){var e=this.ctx,r=this.radius,n=this.getThickness(),a=this.startAngle;t<1&&(e.save(),e.beginPath(),t<=0?e.arc(r,r,r-n/2,0,2*Math.PI):this.reverse?e.arc(r,r,r-n/2,a,a-2*Math.PI*t):e.arc(r,r,r-n/2,a+2*Math.PI*t,a),e.lineWidth=n,e.strokeStyle=this.emptyFill,e.stroke(),e.restore())},drawAnimated:function(e){var r=this,n=this.el,a=t(this.canvas);a.stop(!0,!1),n.trigger("circle-animation-start"),a.css({animationProgress:0}).animate({animationProgress:1},t.extend({},this.animation,{step:function(t){var a=r.animationStartValue*(1-t)+e*t;r.drawFrame(a),n.trigger("circle-animation-progress",[t,a])}})).promise().always((function(){n.trigger("circle-animation-end")}))},getThickness:function(){return t.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(t){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=t,this.draw()}},t.circleProgress={defaults:e.prototype},t.easing.circleProgressEasing=function(t){return t<.5?.5*(t*=2)*t*t:1-.5*(t=2-2*t)*t*t},t.fn.circleProgress=function(r,n){var a="circle-progress",o=this.data(a);if("widget"==r){if(!o)throw Error('Calling "widget" method on not initialized instance is forbidden');return o.canvas}if("value"==r){if(!o)throw Error('Calling "value" method on not initialized instance is forbidden');if(void 0===n)return o.getValue();var i=arguments[1];return this.each((function(){t(this).data(a).setValue(i)}))}return this.each((function(){var n=t(this),o=n.data(a),i=t.isPlainObject(r)?r:{};if(o)o.init(i);else{var s=t.extend({},n.data());"string"==typeof s.fill&&(s.fill=JSON.parse(s.fill)),"string"==typeof s.animation&&(s.animation=JSON.parse(s.animation)),(i=t.extend(s,i)).el=n,o=new e(i),n.data(a,o)}}))}})?n.apply(e,a):n)||(t.exports=o)},6852:(t,e,r)=>{"use strict";var n=r(5199),a=Array.prototype.concat,o=Array.prototype.slice,i=t.exports=function(t){for(var e=[],r=0,i=t.length;r<i;r++){var s=t[r];n(s)?e=a.call(e,o.call(s)):e.push(s)}return e};i.wrap=function(t){return function(){return t(i(arguments))}}},648:t=>{"use strict";t.exports=H5P.jQuery}},e={};function r(n){var a=e[n];if(void 0!==a)return a.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";r(9834),r(9206),r(8471),r(4162),r(2002),r(9185),r(4290),r(9068),r(2493),r(3343),r(7046),r(570),r(4439),r(2417),r(8837),r(5423),r(653),r(3188),r(9297),r(1240),r(2773),r(1055),r(844);function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}const e=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e)}var r,n,a;return r=e,a=[{key:"extractFragmentsFromURL",value:function(t,e){if(!e.location.hash)return{};var r={};return e.location.hash.replace("#","").split("&").forEach((function(t){if(-1!==t.indexOf("=")){var e=t.split("=");r[e[0]]=e[1]}})),"function"!=typeof t||t(r)?r:{}}},{key:"createFragmentsString",value:function(t){var e=[];for(var r in t)e.push("".concat(r,"=").concat(t[r]));return"#".concat(e.join("&"))}},{key:"areFragmentsEqual",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(var n in t)if(t.hasOwnProperty(n)){if(r.length>0&&-1===r.indexOf(n))continue;if(!e[n]||t[n].toString()!==e[n].toString())return!1}return!0}}],(n=null)&&t(r.prototype,n),a&&t(r,a),Object.defineProperty(r,"prototype",{writable:!1}),e}();r(6988),r(3145),r(5831);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,a=u(t);if(e){var o=u(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}const l=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(o,H5P.EventDispatcher);var t,e,r,n=c(o);function o(t,e,r,a){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(i=n.call(this)).id=e,i.parent=a,i.behaviour=t.behaviour,i.content=document.createElement("ul"),i.content.classList.add("navigation-list"),i.container=i.addSideBar(),i.l10n=t.l10n,i.chapters=i.findAllChapters(t.chapters),i.chapterNodes=i.getChapterNodes(),r&&(i.titleElem=i.addMainTitle(r),i.container.appendChild(i.titleElem)),i.chapterNodes.forEach((function(t){i.content.appendChild(t)})),i.chapters.length>20&&i.content.classList.add("large-navigation-list"),i.container.appendChild(i.content),i.addTransformListener(),i.initializeNavigationControls(),i}return t=o,e=[{key:"initializeNavigationControls",value:function(){var t=this,e=Object.freeze({UP:38,DOWN:40});this.chapterNodes.forEach((function(r,n){r.querySelector(".h5p-interactive-book-navigation-chapter-button").addEventListener("keydown",(function(r){switch(r.keyCode){case e.UP:t.setFocusToChapterItem(n,-1),r.preventDefault();break;case e.DOWN:t.setFocusToChapterItem(n,1),r.preventDefault()}}));for(var a=r.querySelectorAll(".h5p-interactive-book-navigation-section"),o=function(r){a[r].querySelector(".section-button").addEventListener("keydown",(function(a){switch(a.keyCode){case e.UP:t.setFocusToSectionItem(n,r,-1),a.preventDefault();break;case e.DOWN:t.setFocusToSectionItem(n,r,1),a.preventDefault()}}))},i=0;i<a.length;i++)o(i)}))}},{key:"focus",value:function(){this.content.querySelector("button").focus()}},{key:"setFocusToChapterItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t+e;if(r<0?r=this.chapterNodes.length-1:r>this.chapterNodes.length-1&&(r=0),e){var n=e>0?t:r,a=this.chapterNodes[n];if(!a.classList.contains("h5p-interactive-book-navigation-closed")){var o=a.querySelectorAll(".h5p-interactive-book-navigation-section");if(o.length){var i=e>0?0:o.length-1;return void this.setFocusToSectionItem(n,i)}}}var s=this.chapterNodes[r].querySelector(".h5p-interactive-book-navigation-chapter-button");this.setFocusToItem(s,r)}},{key:"setFocusToSectionItem",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.chapterNodes[t].querySelectorAll(".h5p-interactive-book-navigation-section"),a=e+r;if(a>n.length-1)this.setFocusToChapterItem(t+1);else if(a<0)this.setFocusToChapterItem(t);else{var o=n[a].querySelector(".section-button");this.setFocusToItem(o,t)}}},{key:"setFocusToItem",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.chapterNodes.forEach((function(t,r){var n=t.querySelector(".h5p-interactive-book-navigation-chapter-button");r===e?n.classList.add("h5p-interactive-book-navigation-current"):n.classList.remove("h5p-interactive-book-navigation-current"),n.setAttribute("tabindex","-1");for(var a=t.querySelectorAll(".h5p-interactive-book-navigation-section"),o=0;o<a.length;o++)a[o].querySelector(".section-button").setAttribute("tabindex","-1")})),t.setAttribute("tabindex","0"),this.focusedChapter=e,r||t.focus()}},{key:"addSideBar",value:function(){var t=document.createElement("div");return t.id="h5p-interactive-book-navigation-menu",t.classList.add("h5p-interactive-book-navigation"),t}},{key:"addMainTitle",value:function(t){var e=document.createElement("h2");e.classList.add("navigation-title"),e.innerHTML=t,e.setAttribute("title",t);var r=document.createElement("div");return r.classList.add("h5p-interactive-book-navigation-maintitle"),r.appendChild(e),r}},{key:"findSectionsInChapter",value:function(t){for(var e=[],r=t.params.content,n=0;n<r.length;n++){var a=r[n].content,o="";o="H5P.Link"===a.library.split(" ")[0]?a.params.title?a.params.title:"New link":a.metadata.title,e.push({title:o,id:a.subContentId?"h5p-interactive-book-section-".concat(a.subContentId):void 0})}return e}},{key:"findAllChapters",value:function(t){for(var e=[],r=0;r<t.length;r++){var n=this.findSectionsInChapter(t[r]),a=t[r].metadata.title,o="h5p-interactive-book-chapter-".concat(t[r].subContentId);e.push({sections:n,title:a,id:o,isSummary:!1})}return this.parent.hasSummary()&&e.push({sections:[],title:this.l10n.summaryHeader,id:"h5p-interactive-book-chapter-summary",isSummary:!0}),e}},{key:"toggleChapter",value:function(t,e){e=void 0!==e?e:!t.classList.contains("h5p-interactive-book-navigation-closed");var r=t.querySelector(".h5p-interactive-book-navigation-sectionlist"),n=t.getElementsByClassName("h5p-interactive-book-navigation-chapter-accordion")[0];t.querySelector(".h5p-interactive-book-navigation-chapter-button").setAttribute("aria-expanded",(!e).toString()),!0===e?(t.classList.add("h5p-interactive-book-navigation-closed"),n&&(n.classList.remove("icon-expanded"),n.classList.add("icon-collapsed"),r&&(r.setAttribute("aria-hidden",!0),r.setAttribute("tabindex","-1")))):(t.classList.remove("h5p-interactive-book-navigation-closed"),n&&(n.classList.remove("icon-collapsed"),n.classList.add("icon-expanded"),r&&(r.removeAttribute("aria-hidden"),r.removeAttribute("tabindex"))))}},{key:"redirectHandler",value:function(t){var e=this;if(this.chapterNodes.forEach((function(r,n){e.toggleChapter(r,n!==t)})),this.parent.trigger("resize"),t!==this.focusedChapter){var r=this.chapterNodes[t].querySelector(".h5p-interactive-book-navigation-chapter-button");this.setFocusToItem(r,t,!0)}}},{key:"resetIndicators",value:function(){var t=this;this.chapterNodes.forEach((function(e,r){t.updateChapterProgressIndicator(r,"BLANK");var n,o=a(e.getElementsByClassName("h5p-interactive-book-navigation-section"));try{for(o.s();!(n=o.n()).done;){var i=n.value.querySelector(".h5p-interactive-book-navigation-section-icon");i&&(i.classList.remove("icon-question-answered"),i.classList.add("icon-chapter-blank"))}}catch(t){o.e(t)}finally{o.f()}}))}},{key:"updateChapterProgressIndicator",value:function(t,e){if(this.behaviour.progressIndicators&&!this.chapters[t].isSummary){var r=this.chapterNodes[t].getElementsByClassName("h5p-interactive-book-navigation-chapter-progress")[0];"BLANK"===e?(r.classList.remove("icon-chapter-started"),r.classList.remove("icon-chapter-done"),r.classList.add("icon-chapter-blank")):"DONE"===e?(r.classList.remove("icon-chapter-blank"),r.classList.remove("icon-chapter-started"),r.classList.add("icon-chapter-done")):"STARTED"===e&&(r.classList.remove("icon-chapter-blank"),r.classList.remove("icon-chapter-done"),r.classList.add("icon-chapter-started"))}}},{key:"setSectionMarker",value:function(t,e){var r=this.chapterNodes[t].querySelector(".h5p-interactive-book-navigation-section-"+e+" .h5p-interactive-book-navigation-section-icon");r&&(r.classList.remove("icon-chapter-blank"),r.classList.add("icon-question-answered"))}},{key:"getNodesFromChapter",value:function(t,e){var r=this,n=document.createElement("li"),a="h5p-interactive-book-sectionlist-"+e;if(n.classList.add("h5p-interactive-book-navigation-chapter"),t.isSummary){n.classList.add("h5p-interactive-book-navigation-summary-button");var o=this.parent.chapters[e].instance.summaryMenuButton;return o.classList.add("h5p-interactive-book-navigation-chapter-button"),n.appendChild(o),n}var i=document.createElement("div");i.classList.add("h5p-interactive-book-navigation-chapter-accordion");var s=document.createElement("div");s.classList.add("h5p-interactive-book-navigation-chapter-title-text"),s.innerHTML=t.title,s.setAttribute("title",t.title);var c=document.createElement("div");this.behaviour.progressIndicators&&(c.classList.add("icon-chapter-blank"),c.classList.add("h5p-interactive-book-navigation-chapter-progress"));var u=document.createElement("button");u.setAttribute("tabindex",0===e?"0":"-1"),u.classList.add("h5p-interactive-book-navigation-chapter-button"),this.parent.activeChapter!==e?(i.classList.add("icon-collapsed"),u.setAttribute("aria-expanded","false")):(i.classList.add("icon-expanded"),u.setAttribute("aria-expanded","true")),u.setAttribute("aria-controls",a),u.onclick=function(t){var n=!t.currentTarget.querySelector(".h5p-interactive-book-navigation-chapter-accordion").classList.contains("hidden"),a="true"===t.currentTarget.getAttribute("aria-expanded");if(r.isOpenOnMobile()&&r.parent.trigger("toggleMenu"),r.isOpenOnMobile()||!n||!a){var o={h5pbookid:r.parent.contentId,chapter:r.chapters[e].id,section:0};r.parent.trigger("newChapter",o)}n&&(r.toggleChapter(t.currentTarget.parentElement),r.parent.trigger("resize"))},u.appendChild(i),u.appendChild(s),u.appendChild(c),n.appendChild(u),this.parent.activeChapter===e?n.querySelector(".h5p-interactive-book-navigation-chapter-button").classList.add("h5p-interactive-book-navigation-current"):this.toggleChapter(n,!0);var l=document.createElement("ul");l.classList.add("h5p-interactive-book-navigation-sectionlist"),l.id=a;for(var p=[],h=0;h<this.chapters[e].sections.length;h++)if(this.parent.chapters[e].sections[h].isTask){var d=this.createSectionLink(e,h);p.push(d),l.appendChild(d)}else{var f=this.parent.params.chapters[e].params.content[h].content;if("H5P.AdvancedText"===f.library.split(" ")[0]){var v=document.createElement("div");v.innerHTML=f.params.text;for(var m=v.querySelectorAll("h2, h3"),b=0;b<m.length;b++){var g=m[b],y=this.createSectionLink(e,h,g.textContent,b);p.push(y),l.appendChild(y)}}}if(t.tasksLeft&&(t.maxTasks=t.tasksLeft),0===p.length){var k=n.querySelector(".h5p-interactive-book-navigation-chapter-accordion");k&&k.classList.add("hidden")}return n.appendChild(l),n}},{key:"createSectionLink",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=this.chapters[t].sections[e],i=document.createElement("div");i.innerHTML=n||o.title,i.setAttribute("title",n||o.title),i.classList.add("h5p-interactive-book-navigation-section-title");var s=document.createElement("div");s.classList.add("h5p-interactive-book-navigation-section-icon"),s.classList.add("icon-chapter-blank"),this.parent.chapters[t].sections[e].isTask&&s.classList.add("h5p-interactive-book-navigation-section-task");var c=document.createElement("button");c.classList.add("section-button"),c.setAttribute("tabindex","-1"),c.onclick=function(e){var n={h5pbookid:r.parent.contentId,chapter:r.chapters[t].id,section:o.id};null!==a&&(n.headerNumber=a),r.parent.trigger("newChapter",n),r.isOpenOnMobile()&&r.parent.trigger("toggleMenu"),e.preventDefault()},c.appendChild(s),c.appendChild(i);var u=document.createElement("li");return u.classList.add("h5p-interactive-book-navigation-section"),u.classList.add("h5p-interactive-book-navigation-section-"+e),u.appendChild(c),u}},{key:"getChapterNodes",value:function(){var t=this;return this.chapters.map((function(e,r){return t.getNodesFromChapter(e,r)}))}},{key:"isOpenOnMobile",value:function(){return this.parent.isMenuOpen()&&this.parent.isSmallSurface()}},{key:"addTransformListener",value:function(){var t=this;this.container.addEventListener("transitionend",(function(e){"flex-basis"===e.propertyName&&t.parent.trigger("resize")}))}}],e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}();function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},h.apply(this,arguments)}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=m(t);if(e){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}const b=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(a,H5P.EventDispatcher);var t,e,r,n=v(a);function a(t,e,r,o,i){var s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(s=n.call(this)).id=t,s.parent=r,s.params=o||{},s.params.l10n=o.l10n,s.params.a11y=h({progress:"Page @page of @total",menu:"Toggle navigation menu"},s.params.a11y||{}),s.totalChapters=e,s.arrows=s.addArrows(),s.progressBar=s.createProgressBar(),s.progressIndicator=s.createProgressIndicator(),s.chapterTitle=s.createChapterTitle(),s.menuToggleButton=s.createMenuToggleButton();var c=document.createElement("div");return c.classList.add("h5p-interactive-book-status"),s.params.displayToTopButton&&c.appendChild(s.createToTopButton()),s.params.displayFullScreenButton&&H5P.fullscreenSupported&&c.appendChild(s.createFullScreenButton()),c.appendChild(s.arrows.buttonWrapperNext),c.appendChild(s.arrows.buttonWrapperPrevious),s.params.displayMenuToggleButton&&c.appendChild(s.menuToggleButton),c.appendChild(s.progressIndicator.wrapper),c.appendChild(s.chapterTitle.wrapper),s.wrapper=document.createElement("div"),s.wrapper.classList.add(i),s.wrapper.setAttribute("tabindex","-1"),s.wrapper.appendChild(s.progressBar.wrapper),s.wrapper.appendChild(c),s.on("updateStatusBar",s.updateStatusBar),s.on("seqChapter",(function(t){var e={h5pbookid:s.parent.contentId};t.data.toTop&&(e.section="top"),"next"===t.data.direction?s.parent.activeChapter+1<s.parent.chapters.length?e.chapter="h5p-interactive-book-chapter-".concat(s.parent.chapters[s.parent.activeChapter+1].instance.subContentId):s.parent.hasSummary()&&s.parent.activeChapter+1===s.parent.chapters.length&&s.parent.trigger("viewSummary",e):"prev"===t.data.direction&&s.parent.activeChapter>0&&(e.chapter="h5p-interactive-book-chapter-".concat(s.parent.chapters[s.parent.activeChapter-1].instance.subContentId)),e.chapter&&s.parent.trigger("newChapter",e)})),s}return t=a,(e=[{key:"updateProgressBar",value:function(t){var e="".concat(t/this.totalChapters*100,"%");this.progressBar.progress.style.width=e;var r=this.params.a11y.progress.replace("@page",t).replace("@total",this.totalChapters);this.progressBar.progress.title=r}},{key:"updateA11yProgress",value:function(t){this.progressIndicator.hiddenButRead.innerHTML=this.params.a11y.progress.replace("@page",t).replace("@total",this.totalChapters)}},{key:"updateStatusBar",value:function(){var t=this.parent.getActiveChapter()+1,e=this.parent.chapters[t-1].title;this.progressIndicator.current.innerHTML=t,this.updateA11yProgress(t),this.updateProgressBar(t),this.chapterTitle.text.innerHTML=e,this.chapterTitle.text.setAttribute("title",e),this.parent.activeChapter<=0?this.setButtonStatus("Previous",!0):this.setButtonStatus("Previous",!1),this.parent.activeChapter+1>=this.totalChapters?this.setButtonStatus("Next",!0):this.setButtonStatus("Next",!1)}},{key:"addArrows",value:function(){var t=this,e={};return e.buttonPrevious=document.createElement("div"),e.buttonPrevious.classList.add("navigation-button","icon-previous"),e.buttonPrevious.setAttribute("title",this.params.l10n.previousPage),e.buttonWrapperPrevious=document.createElement("button"),e.buttonWrapperPrevious.classList.add("h5p-interactive-book-status-arrow","h5p-interactive-book-status-button","previous"),e.buttonWrapperPrevious.setAttribute("aria-label",this.params.l10n.previousPage),e.buttonWrapperPrevious.onclick=function(){t.trigger("seqChapter",{direction:"prev",toTop:!0})},e.buttonWrapperPrevious.appendChild(e.buttonPrevious),e.buttonNext=document.createElement("div"),e.buttonNext.classList.add("navigation-button","icon-next"),e.buttonNext.setAttribute("title",this.params.l10n.nextPage),e.buttonWrapperNext=document.createElement("button"),e.buttonWrapperNext.classList.add("h5p-interactive-book-status-arrow","h5p-interactive-book-status-button","next"),e.buttonWrapperNext.setAttribute("aria-label",this.params.l10n.nextPage),e.buttonWrapperNext.onclick=function(){t.trigger("seqChapter",{direction:"next",toTop:!0})},e.buttonWrapperNext.appendChild(e.buttonNext),e}},{key:"createMenuToggleButton",value:function(){var t=this,e=document.createElement("a");e.classList.add("icon-menu");var r=document.createElement("button");return r.classList.add("h5p-interactive-book-status-menu"),r.classList.add("h5p-interactive-book-status-button"),r.setAttribute("aria-label",this.params.a11y.menu),r.setAttribute("aria-expanded","false"),r.setAttribute("aria-controls","h5p-interactive-book-navigation-menu"),r.onclick=function(){t.parent.trigger("toggleMenu")},r.appendChild(e),r}},{key:"isMenuOpen",value:function(){return this.menuToggleButton.classList.contains("h5p-interactive-book-status-menu-active")}},{key:"createProgressBar",value:function(){var t=document.createElement("div");t.classList.add("h5p-interactive-book-status-progressbar-front"),t.setAttribute("tabindex","-1");var e=document.createElement("div");return e.classList.add("h5p-interactive-book-status-progressbar-back"),e.appendChild(t),{wrapper:e,progress:t}}},{key:"createChapterTitle",value:function(){var t=document.createElement("h1");t.classList.add("title");var e=document.createElement("div");return e.classList.add("h5p-interactive-book-status-chapter"),e.appendChild(t),{wrapper:e,text:t}}},{key:"createToTopButton",value:function(){var t=this,e=document.createElement("div");e.classList.add("icon-up"),e.classList.add("navigation-button");var r=document.createElement("button");return r.classList.add("h5p-interactive-book-status-to-top"),r.classList.add("h5p-interactive-book-status-button"),r.classList.add("h5p-interactive-book-status-arrow"),r.setAttribute("aria-label",this.params.l10n.navigateToTop),r.addEventListener("click",(function(){t.parent.trigger("scrollToTop"),document.querySelector(".h5p-interactive-book-status-menu").focus()})),r.appendChild(e),r}},{key:"setVisibility",value:function(t){t?this.wrapper.classList.add("footer-hidden"):this.wrapper.classList.remove("footer-hidden")}},{key:"createProgressIndicator",value:function(){var t=document.createElement("span");t.classList.add("h5p-interactive-book-status-progress-number"),t.setAttribute("aria-hidden","true");var e=document.createElement("span");e.classList.add("h5p-interactive-book-status-progress-divider"),e.innerHTML=" / ",e.setAttribute("aria-hidden","true");var r=document.createElement("span");r.classList.add("h5p-interactive-book-status-progress-number"),r.innerHTML=this.totalChapters,r.setAttribute("aria-hidden","true");var n=document.createElement("p");n.classList.add("hidden-but-read");var a=document.createElement("p");a.classList.add("h5p-interactive-book-status-progress"),a.appendChild(t),a.appendChild(e),a.appendChild(r),a.appendChild(n);var o=document.createElement("div");return o.classList.add("h5p-interactive-book-status-progress-wrapper"),o.appendChild(a),{wrapper:o,current:t,total:r,divider:e,progressText:a,hiddenButRead:n}}},{key:"setButtonStatus",value:function(t,e){e?(this.arrows["buttonWrapper"+t].setAttribute("disabled","disabled"),this.arrows["button"+t].classList.add("disabled")):(this.arrows["buttonWrapper"+t].removeAttribute("disabled"),this.arrows["button"+t].classList.remove("disabled"))}},{key:"createFullScreenButton",value:function(){var t=this,e=function(){!0===H5P.isFullscreen?H5P.exitFullScreen():H5P.fullScreen(t.parent.mainWrapper,t.parent)},r=document.createElement("button");return r.classList.add("h5p-interactive-book-status-fullscreen"),r.classList.add("h5p-interactive-book-status-button"),r.classList.add("h5p-interactive-book-enter-fullscreen"),r.setAttribute("title",this.params.l10n.fullscreen),r.setAttribute("aria-label",this.params.l10n.fullscreen),r.addEventListener("click",e),r.addEventListener("keyPress",(function(t){13!==t.which&&32!==t.which||(e(),t.preventDefault())})),this.parent.on("enterFullScreen",(function(){t.parent.isFullscreen=!0,r.classList.remove("h5p-interactive-book-enter-fullscreen"),r.classList.add("h5p-interactive-book-exit-fullscreen"),r.setAttribute("title",t.params.l10n.exitFullscreen),r.setAttribute("aria-label",t.params.l10n.exitFullScreen),t.parent.pageContent.updateFooter()})),this.parent.on("exitFullScreen",(function(){t.parent.isFullscreen=!1,r.classList.remove("h5p-interactive-book-exit-fullscreen"),r.classList.add("h5p-interactive-book-enter-fullscreen"),r.setAttribute("title",t.params.l10n.fullscreen),r.setAttribute("aria-label",t.params.l10n.fullscreen),t.parent.pageContent.updateFooter()})),r}}])&&d(t.prototype,e),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=C(t);if(e){var a=C(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}const S=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}(a,H5P.EventDispatcher);var t,e,r,n=w(a);function a(t,e,r,o,i){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(s=n.call(this)).parent=i,s.params=t,s.contentId=o,s.container=s.createContainer(),t.coverMedium?(s.visuals=s.createVisualsElement(t.coverMedium),s.visuals&&s.container.appendChild(s.visuals)):s.container.classList.add("h5p-cover-nographics"),s.container.appendChild(s.createTitleElement(e)),t.coverDescription&&s.container.appendChild(s.createDescriptionElement(t.coverDescription)),s.container.appendChild(s.createReadButton(r)),s}return t=a,(e=[{key:"createContainer",value:function(){var t=document.createElement("div");return t.classList.add("h5p-interactive-book-cover"),t}},{key:"createVisualsElement",value:function(t){if(!t||!t.params)return null;var e=document.createElement("div");return e.classList.add("h5p-interactive-book-cover-graphics"),e}},{key:"initMedia",value:function(){if(this.visuals&&this.params.coverMedium){var t=this.params.coverMedium;"H5P.Video"===(t.library||"").split(" ")[0]&&(t.params.visuals.fit=!1);var e=H5P.newRunnable(t,this.contentId,H5P.jQuery(this.visuals),!1,{metadata:t.medatata});if(this.bubbleUp(e,"resize",this.parent),this.bubbleDown(this.parent,"resize",[e]),"H5P.Image"===(t.library||"").split(" ")[0]){var r=this.visuals.querySelector("img")||this.visuals.querySelector(".h5p-placeholder");r.style.height="auto",r.style.width="auto"}this.visuals.appendChild(this.createCoverBar())}}},{key:"bubbleUp",value:function(t,e,r){t.on(e,(function(t){r.bubblingUpwards=!0,r.trigger(e,t),r.bubblingUpwards=!1}))}},{key:"bubbleDown",value:function(t,e,r){t.on(e,(function(n){t.bubblingUpwards||r.forEach((function(t){t.trigger(e,n)}))}))}},{key:"createImage",value:function(t,e,r){var n=document.createElement("img");return n.classList.add("h5p-interactive-book-cover-image"),n.src=H5P.getPath(t,e),n.setAttribute("draggable","false"),r&&(n.alt=r),n}},{key:"createCoverBar",value:function(){var t=document.createElement("div");return t.classList.add("h5p-interactive-book-cover-bar"),t}},{key:"createTitleElement",value:function(t){var e=document.createElement("p");e.innerHTML=t;var r=document.createElement("div");return r.classList.add("h5p-interactive-book-cover-title"),r.appendChild(e),r}},{key:"createDescriptionElement",value:function(t){if(!t)return null;var e=document.createElement("div");return e.classList.add("h5p-interactive-book-cover-description"),e.innerHTML=t,e}},{key:"createReadButton",value:function(t){var e=this,r=document.createElement("button");r.innerHTML=t,r.onclick=function(){e.removeCover()};var n=document.createElement("div");return n.classList.add("h5p-interactive-book-cover-readbutton"),n.appendChild(r),n}},{key:"removeCover",value:function(){this.container.parentElement&&(this.container.parentElement.classList.remove("covered"),this.container.parentElement.removeChild(this.container)),this.hidden=!0,this.parent.trigger("coverRemoved")}}])&&y(t.prototype,e),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();r(2683);var x=r(4308),O=r.n(x);function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var L=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,n;return e=t,n=[{key:"setBase",value:function(e){e&&(t.colorBase=O()(e),t.colorText=[t.DEFAULT_COLOR_BG,t.computeContrastColor(t.colorBase),t.computeContrastColor(t.colorBase,t.DEFAULT_COLOR_BG)].map((function(e){return{color:e,contrast:t.colorBase.contrast(e)}})).reduce((function(t,e){return e.contrast>t.contrast?e:t}),{contrast:0}).color)}},{key:"getColor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e.opacity&&/^([0-9]|[1-8][0-9]|9[0-9]|100)(\.\d+)?\s?%$/.test(e.opacity)&&(e.opacity=parseInt(e.opacity)/100),"number"!=typeof e.opacity||e.opacity<0||e.opacity>1)return t;var r=O()("#ffffff").rgb().array();return O().rgb(t.rgb().array().map((function(t,n){return e.opacity*t+(1-e.opacity)*r[n]})))}},{key:"isBaseColor",value:function(e){return O()(e).hex()===t.colorBase.hex()}},{key:"computeContrastColor",value:function(e,r){for(var n,a=(r=r||e).luminosity(),o=function(o){if((n=O().rgb(e.rgb().array().map((function(t){return t*(a>.5?1-o:1+o)})))).contrast(r)>=t.MINIMUM_ACCEPTABLE_CONTRAST)return"break"},i=0;i<=1&&"break"!==o(i);i+=.05);return n}},{key:"getContentTypeCSS",value:function(e){return t.COLOR_OVERRIDES[e]?t.COLOR_OVERRIDES[e].getCSS():""}},{key:"getCSS",value:function(){return":root{\n      --color-base: ".concat(t.colorBase,";\n      --color-base-5: ").concat(t.getColor(t.colorBase,{opacity:.05}),";\n      --color-base-10: ").concat(t.getColor(t.colorBase,{opacity:.1}),";\n      --color-base-20: ").concat(t.getColor(t.colorBase,{opacity:.2}),";\n      --color-base-75: ").concat(t.getColor(t.colorBase,{opacity:.75}),";\n      --color-base-80: ").concat(t.getColor(t.colorBase,{opacity:.8}),";\n      --color-base-85: ").concat(t.getColor(t.colorBase,{opacity:.85}),";\n      --color-base-90: ").concat(t.getColor(t.colorBase,{opacity:.9}),";\n      --color-base-95: ").concat(t.getColor(t.colorBase,{opacity:.95}),";\n      --color-text: ").concat(t.colorText,";\n      --color-contrast: ").concat(t.computeContrastColor(t.colorBase,t.DEFAULT_COLOR_BG),";\n    }")}}],(r=null)&&E(e.prototype,r),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function A(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){s=!0,o=t},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function j(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=F(t);if(e){var a=F(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}L.DEFAULT_COLOR_BASE=O()("#1768c4"),L.DEFAULT_COLOR_BG=O()("#ffffff"),L.MINIMUM_ACCEPTABLE_CONTRAST=4.5,L.colorBase=L.DEFAULT_COLOR_BASE,L.colorText=L.DEFAULT_COLOR_BG;const B=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(a,H5P.EventDispatcher);var t,e,r,n=M(a);function a(t,e,r){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(o=n.call(this)).parent=e,o.behaviour=t.behaviour,o.l10n=t.l10n,o.chapters=r||[],o.subContentId="summary",o.wrapper=null,o.summaryMenuButton=o.createSummaryButton(),o.filterActionAll="all",o.filterActionUnanswered="unanswered",o.bookCompleted=!1,o.tempState=JSON.stringify(o.parent.previousState&&o.parent.previousState.chapters?o.parent.previousState.chapters:o.getChapterStats()),e.on("bookCompleted",(function(t){return o.setBookComplete(t.data.completed)})),e.on("toggleMenu",(function(){var t=document.querySelector(".h5p-interactive-book-summary-footer");t&&o.bookCompleted&&(o.parent.isMenuOpen()?t.classList.add("menu-open"):t.classList.remove("menu-open"))})),o}return t=a,e=[{key:"setBookComplete",value:function(t){var e=this.parent.mainWrapper?this.parent.mainWrapper[0].querySelector(".h5p-interactive-book-summary-footer"):null;!e&&this.parent.isSmallSurface()&&((e=document.createElement("div")).classList.add("h5p-interactive-book-summary-footer"),e.appendChild(this.createSummaryButton()),this.parent.mainWrapper.append(e)),e&&t&&setTimeout((function(){return e.classList.add("show-footer")}),0),this.bookCompleted=t,Array.from(document.querySelectorAll(".h5p-interactive-book-summary-menu-button")).forEach((function(e){return e.setAttribute("data-book-completed",t.toString())}))}},{key:"setChapters",value:function(t){this.chapters=Array.isArray(t)?t:[]}},{key:"setSummaryMenuButtonDisabled",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.summaryMenuButton.disabled=t}},{key:"setFilter",value:function(t){var e=this,r=this.wrapper.querySelector(".h5p-interactive-book-summary-overview-list"),n=Array.from(r.querySelectorAll(".h5p-interactive-book-summary-overview-section"));n.forEach((function(t){t.classList.remove("h5p-interactive-book-summary-top-section"),t.classList.remove("h5p-interactive-book-summary-bottom-section")}));var a=r.querySelector(".h5p-interactive-book-summary-overview-list-empty");if(a.style.display="none",t===this.filterActionUnanswered){r.classList.add("h5p-interactive-book-summary-overview-list-only-unanswered");var o=n.filter((function(t){return!t.classList.contains("h5p-interactive-book-summary-no-interactions")}));o.length?(o[0].classList.add("h5p-interactive-book-summary-top-section"),o[o.length-1].classList.add("h5p-interactive-book-summary-bottom-section")):a.style.display="block"}else t===this.filterActionAll&&r.classList.remove("h5p-interactive-book-summary-overview-list-only-unanswered");setTimeout((function(){return e.trigger("resize")}),1)}},{key:"createSummaryButton",value:function(){var t=this,e=document.createElement("button");e.classList.add("h5p-interactive-book-summary-menu-button"),e.onclick=function(){var e={h5pbookid:t.parent.contentId,chapter:"h5p-interactive-book-chapter-summary",section:"top"};t.parent.trigger("newChapter",e),t.parent.isMenuOpen()&&t.parent.isSmallSurface()&&t.parent.trigger("toggleMenu")};var r=document.createElement("span");r.classList.add("h5p-interactive-book-summary-icon"),r.classList.add("icon-paper"),r.setAttribute("aria-hidden","true");var n=document.createElement("span");n.classList.add("h5p-interactive-book-summary-text"),n.innerHTML=this.l10n.summaryAndSubmit;var a=document.createElement("span");return a.classList.add("h5p-interactive-book-summary-menu-button-arrow"),a.classList.add("icon-up"),a.setAttribute("aria-hidden","true"),e.appendChild(r),e.appendChild(n),e.appendChild(a),e}},{key:"createCircle",value:function(t){var e=L.computeContrastColor(L.colorBase,L.DEFAULT_COLOR_BG),r=document.createElement("div");return r.classList.add("h5p-interactive-book-summary-progress-circle"),r.setAttribute("data-value",t),r.setAttribute("data-start-angle",-Math.PI/3),r.setAttribute("data-thickness",13),r.setAttribute("data-empty-fill","rgba(".concat(e.rgb().array().join(", "),", .1)")),r.setAttribute("data-fill",JSON.stringify({color:e.hex()})),r}},{key:"createProgress",value:function(t,e,r,n){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,s=document.createElement("div"),c=document.createElement("h3");c.innerHTML=t;var u=100*r/n;void 0===o&&(o=r),void 0===i&&(i=n);var l=document.createElement("p");if(l.classList.add("h5p-interactive-book-summary-progressbox-bigtext"),l.innerHTML=Math.round(u)+"%",a){var p=document.createElement("span");p.classList.add("absolute-value"),p.innerHTML=r;var h=document.createElement("span");h.classList.add("separator"),h.innerHTML="/";var d=document.createElement("span");d.classList.add("absolute-value"),d.innerHTML=n,l.innerHTML="",l.appendChild(p),l.appendChild(h),l.appendChild(d)}var f=document.createElement("span");f.classList.add("h5p-interactive-book-summary-progressbox-smalltext"),f.innerHTML=e.replace("@count",o).replace("@total",i),s.appendChild(c),s.appendChild(l),s.appendChild(f);var v=document.createElement("div");return v.appendChild(s),v.appendChild(this.createCircle(r/n)),v}},{key:"addScoreProgress",value:function(){var t,e=0,r=0,n=A(this.chapters);try{for(n.s();!(t=n.n()).done;){var a=t.value;e+=a.maxTasks,r+=a.tasksLeft}}catch(t){n.e(t)}finally{n.f()}var o=this.createProgress(this.l10n.totalScoreLabel,this.l10n.interactionsProgressSubtext,this.parent.getScore(),this.parent.getMaxScore(),!0,Math.max(e-r,0),e);o.classList.add("h5p-interactive-book-summary-progress-container"),o.classList.add("h5p-interactive-book-summary-score-progress");var i=o.querySelector(".h5p-interactive-book-summary-progress-circle");return i.setAttribute("data-empty-fill","rgb(198, 220, 212)"),i.setAttribute("data-fill",JSON.stringify({color:"#0e7c57"})),o}},{key:"addBookProgress",value:function(){var t=this.createProgress(this.l10n.bookProgress,this.l10n.bookProgressSubtext,this.chapters.filter((function(t){return t.completed})).length,this.chapters.length);return t.classList.add("h5p-interactive-book-summary-progress-container"),t.classList.add("h5p-interactive-book-summary-book-progress"),t}},{key:"addInteractionsProgress",value:function(){var t,e=0,r=0,n=A(this.chapters);try{for(n.s();!(t=n.n()).done;){var a=t.value;e+=a.maxTasks,r+=a.tasksLeft}}catch(t){n.e(t)}finally{n.f()}var o=this.createProgress(this.l10n.interactionsProgress,this.l10n.interactionsProgressSubtext,Math.max(e-r,0),e);return o.classList.add("h5p-interactive-book-summary-progress-container"),o.classList.add("h5p-interactive-book-summary-interactions-progress"),o}},{key:"addProgressIndicators",value:function(){if(this.behaviour.progressIndicators){var t=document.createElement("div");t.classList.add("h5p-interactive-box-summary-progress"),t.appendChild(this.addScoreProgress()),t.appendChild(this.addBookProgress()),t.appendChild(this.addInteractionsProgress()),setTimeout((function(){return H5P.jQuery(".h5p-interactive-book-summary-progress-circle").circleProgress()}),100),this.wrapper.appendChild(t)}}},{key:"addActionButtons",value:function(){var t=this,e=document.createElement("div");if(e.classList.add("h5p-interactive-book-summary-buttons"),this.checkTheAnswerIsUpdated(),this.parent.isSubmitButtonEnabled&&this.parent.isAnswerUpdated){var r=this.addButton("icon-paper-pencil",this.l10n.submitReport);r.classList.add("h5p-interactive-book-summary-submit"),r.onclick=function(){t.trigger("submitted"),t.parent.triggerXAPIScored(t.parent.getScore(),t.parent.getMaxScore(),"completed"),e.classList.add("submitted"),e.querySelector(".answers-submitted").focus(),t.tempState=JSON.stringify(t.getChapterStats()),t.parent.isAnswerUpdated=!1},e.appendChild(r)}this.behaviour.enableRetry&&e.appendChild(this.createRestartButton()),e.appendChild(this.createSubmittedConfirmation()),this.wrapper.appendChild(e)}},{key:"createRestartButton",value:function(){var t=this,e=this.addButton("icon-restart",this.l10n.restartLabel);return e.classList.add("h5p-interactive-book-summary-restart"),e.onclick=function(){return t.parent.resetTask()},e}},{key:"createSubmittedConfirmation",value:function(){var t=document.createElement("div");t.classList.add("h5p-interactive-book-summary-submitted");var e=document.createElement("span");e.classList.add("icon-chapter-done"),e.classList.add("icon-check-mark"),t.appendChild(e);var r=document.createElement("p");return r.innerHTML=this.l10n.yourAnswersAreSubmittedForReview,r.tabIndex=-1,r.classList.add("answers-submitted"),t.appendChild(r),this.behaviour.enableRetry&&t.appendChild(this.createRestartButton()),t}},{key:"addButton",value:function(t,e){var r=document.createElement("button");r.type="button",r.classList.add("h5p-interactive-book-summary-button"),r.innerHTML=e;var n=document.createElement("span");return n.classList.add(t),n.setAttribute("aria-hidden","true"),r.appendChild(n),r}},{key:"createSectionList",value:function(t,e){var r,n=this,a=[],o=!1,i=A(t);try{var s=function(){var t=r.value,i=document.createElement("li");if(i.classList.add("h5p-interactive-book-summary-overview-section-details"),n.behaviour.progressIndicators){var s=document.createElement("span");s.classList.add("h5p-interactive-book-summary-section-icon"),s.classList.add(t.taskDone?"icon-chapter-done":"icon-chapter-blank"),i.appendChild(s)}var c=document.createElement("button");c.type="button",c.classList.add("h5p-interactive-book-summary-section-title"),c.onclick=function(){var r={h5pbookid:n.parent.contentId,chapter:"h5p-interactive-book-chapter-".concat(e),section:"h5p-interactive-book-section-".concat(t.instance.subContentId)};n.parent.trigger("newChapter",r)};var u=t.instance.contentData&&t.instance.contentData.metadata&&t.instance.contentData.metadata.title,l=t.content&&t.content.metadata&&t.content.metadata.title;c.innerHTML=u||l||"Untitled";var p=document.createElement("div");p.classList.add("h5p-interactive-book-summary-section-score"),p.innerHTML="-","function"==typeof t.instance.getScore&&(p.innerHTML=n.l10n.scoreText.replace("@score",t.instance.getScore()).replace("@maxscore",t.instance.getMaxScore())),t.taskDone?i.classList.add("h5p-interactive-book-summary-overview-section-details-task-done"):o=!0,i.appendChild(c),i.appendChild(p),a.push(i)};for(i.s();!(r=i.n()).done;)s()}catch(t){i.e(t)}finally{i.f()}if(a.length){var c=document.createElement("div");c.classList.add("h5p-interactive-book-summary-overview-section-score-header");var u=document.createElement("div");u.innerHTML=this.l10n.score,c.appendChild(u),a.unshift(c)}return{hasUnansweredInteractions:o,sectionElements:a}}},{key:"createChapterOverview",value:function(t){var e=this,r=document.createElement("li");r.classList.add("h5p-interactive-book-summary-overview-section");var n=document.createElement("h4");n.onclick=function(){var r={h5pbookid:e.parent.contentId,chapter:"h5p-interactive-book-chapter-".concat(t.instance.subContentId),section:"top"};e.parent.trigger("newChapter",r)};var a=document.createElement("span");if(a.innerHTML=t.title,n.appendChild(a),this.behaviour.progressIndicators){var o=document.createElement("span"),i=this.parent.getChapterStatus(t);o.classList.add("icon-chapter-".concat(i.toLowerCase())),n.appendChild(o)}r.appendChild(n);var s=this.createSectionList(t.sections.filter((function(t){return t.isTask})),t.instance.subContentId),c=s.sectionElements;!1===s.hasUnansweredInteractions&&r.classList.add("h5p-interactive-book-summary-no-interactions");var u=document.createElement("div");u.classList.add("h5p-interactive-book-summary-chapter-subheader"),t.maxTasks?u.innerHTML=this.l10n.leftOutOfTotalCompleted.replace("@left",Math.max(t.maxTasks-t.tasksLeft,0)).replace("@max",t.maxTasks):u.innerHTML=this.l10n.noInteractions,r.appendChild(u);var l=document.createElement("ul");return c.length&&c.map((function(t){return l.appendChild(t)})),r.appendChild(l),r}},{key:"createFilterDropdown",value:function(){var t=this,e=function(e,o){var i=document.createElement("li");i.role="menuitem";var s=document.createElement("button");return s.textContent=e,s.type="button",s.onclick=function(e){t.setFilter(o),r.removeAttribute("active"),n.setAttribute("aria-expanded","false"),a.textContent=e.currentTarget.innerHTML},i.appendChild(s),i},r=document.createElement("div");r.classList.add("h5p-interactive-book-summary-dropdown");var n=document.createElement("button");n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-expanded","false"),n.type="button",n.onclick=function(){r.hasAttribute("active")?(r.removeAttribute("active"),n.setAttribute("aria-expanded","false")):(r.setAttribute("active",""),n.setAttribute("aria-expanded","true"),n.focus())};var a=document.createElement("span");a.textContent=this.l10n.allInteractions,n.appendChild(a);var o=document.createElement("span");o.classList.add("h5p-interactive-book-summary-dropdown-icon"),o.classList.add("icon-expanded"),o.setAttribute("aria-hidden","true"),n.appendChild(o);var i=document.createElement("ul");i.role="menu",i.classList.add("h5p-interactive-book-summary-dropdown-menu");var s=e(this.l10n.allInteractions,this.filterActionAll),c=e(this.l10n.unansweredInteractions,this.filterActionUnanswered);return i.appendChild(s),i.appendChild(c),r.appendChild(n),r.appendChild(i),r}},{key:"addSummaryOverview",value:function(){var t=document.createElement("ul");t.classList.add("h5p-interactive-book-summary-list");var e=document.createElement("li");e.classList.add("h5p-interactive-book-summary-overview-header");var r=document.createElement("h3");r.innerHTML=this.l10n.summaryHeader,e.appendChild(r),e.appendChild(this.createFilterDropdown()),t.appendChild(e);var n=document.createElement("ol");n.classList.add("h5p-interactive-book-summary-overview-list");var a,o=A(this.chapters);try{for(o.s();!(a=o.n()).done;){var i=a.value;n.appendChild(this.createChapterOverview(i))}}catch(t){o.e(t)}finally{o.f()}var s=document.createElement("p");s.classList.add("h5p-interactive-book-summary-overview-list-empty"),s.classList.add("h5p-interactive-book-summary-top-section"),s.classList.add("h5p-interactive-book-summary-bottom-section"),s.innerHTML=this.l10n.noInteractions,n.appendChild(s),t.appendChild(n),this.wrapper.appendChild(t)}},{key:"addScoreBar",value:function(){var t=document.createElement("div");t.classList.add("h5p-interactive-book-summary-score-bar");var e=H5P.JoubelUI.createScoreBar(this.parent.getMaxScore());e.setScore(this.parent.getScore()),e.appendTo(t),this.wrapper.appendChild(t)}},{key:"noChapterInteractions",value:function(){var t=document.createElement("div");t.classList.add("h5p-interactive-book-summary-no-chapter-interactions");var e=document.createElement("p");e.innerHTML=this.l10n.noChapterInteractionBoldText;var r=document.createElement("p");r.classList.add("h5p-interactive-book-summary-no-initialized-chapters"),r.innerHTML=this.l10n.noChapterInteractionText,t.appendChild(e),t.appendChild(r),this.wrapper.appendChild(t)}},{key:"addSummaryPage",value:function(t){if(this.wrapper=document.createElement("div"),this.wrapper.classList.add("h5p-interactive-book-summary-page"),this.chapters.filter((function(t){return t.isInitialized})).length>0||this.chapters.some((function(t){return t.sections.some((function(t){return t.taskDone}))}))){if(this.parent.pageContent&&this.parent.chapters[this.parent.getChapterId(this.parent.pageContent.targetPage.chapter)].isSummary||0===this.parent.chapters.length){if(this.parent.chapters.length>0)for(var e in this.chapters)this.parent.pageContent.initializeChapter(e);this.addProgressIndicators(),this.addActionButtons(),this.addSummaryOverview(),this.addScoreBar()}}else this.noChapterInteractions();return Array.from(document.querySelectorAll(".h5p-interactive-book-summary-footer")).forEach((function(t){return t.remove()})),t.append(this.wrapper),t}},{key:"checkTheAnswerIsUpdated",value:function(){var t,e=this.getChapterStats(),r=JSON.parse(this.tempState),n=A(e.keys());try{for(n.s();!(t=n.n()).done;){var a,o=t.value,i=r[o].state.instances,s=e[o].state.instances,c=e[o].sections,u=A(i.keys());try{for(u.s();!(a=u.n()).done;){var l=a.value;null!==i[l]&&void 0!==i[l]&&(Array.isArray(i[l])&&!this.compareStates(i[l],s[l])&&c[l].taskDone&&(this.parent.isAnswerUpdated=!0),"object"===P(i[l])&&!Array.isArray(i[l])&&JSON.stringify(i[l])!==JSON.stringify(s[l])&&c[l].taskDone&&(this.parent.isAnswerUpdated=!0))}}catch(t){u.e(t)}finally{u.f()}if(this.parent.isAnswerUpdated)break}}catch(t){n.e(t)}finally{n.f()}}},{key:"getChapterStats",value:function(){return this.chapters.filter((function(t){return!t.isSummary})).map((function(t){return{sections:t.sections.map((function(t){return{taskDone:t.taskDone}})),state:t.instance.getCurrentState()}}))}},{key:"compareStates",value:function(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((function(t,r){return t===e[r]||""===e[r]}))}}],e&&j(t.prototype,e),r&&j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){H(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function H(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(){return _=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_.apply(this,arguments)}function z(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}function q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=W(t);if(e){var a=W(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W(t)}const V=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&U(t,e)}(o,H5P.EventDispatcher);var t,r,n,a=q(o);function o(t,e,r,n,i){var s;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(s=a.call(this)).parent=n,s.behaviour=t.behaviour,s.params=i,s.targetPage={},s.targetPage.redirectFromComponent=!1,s.columnNodes=[],s.chapters=[],s.l10n=t.l10n,s.sidebarIsOpen=!1,s.previousState=r.previousState&&Object.keys(r.previousState).length>0?r.previousState:null,n.hasValidChapters()){var c=s.createColumns(t,e,r);s.preloadChapter(c)}return s.content=s.createPageContent(),s.container=document.createElement("div"),s.container.classList.add("h5p-interactive-book-main","h5p-interactive-book-navigation-hidden"),s.container.appendChild(s.content),s}return t=o,r=[{key:"getChapters",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.chapters.filter((function(e){return!e.isSummary||e.isSummary&&!!t}))}},{key:"resetChapters",value:function(){this.behaviour.progressIndicators&&!this.behaviour.progressAuto&&this.columnNodes.forEach((function(t){Array.from(t.querySelectorAll(".h5p-interactive-book-status-progress-marker > input[type=checkbox]")).forEach((function(t){return t.checked=!1}))}))}},{key:"createPageContent",value:function(){var t=document.createElement("div");return t.classList.add("h5p-interactive-book-content"),this.columnNodes.forEach((function(e){t.appendChild(e)})),this.setChapterOrder(this.parent.getActiveChapter()),t}},{key:"setChapterOrder",value:function(t){t<0||t>this.columnNodes.length-1||this.columnNodes.forEach((function(e,r){e.classList.remove("h5p-interactive-book-previous"),e.classList.remove("h5p-interactive-book-current"),e.classList.remove("h5p-interactive-book-next"),r===t-1||r===t&&e.classList.add("h5p-interactive-book-current")}))}},{key:"createChapterReadCheckbox",value:function(t){var e=this,r=document.createElement("input");r.setAttribute("type","checkbox"),r.checked=t,r.onclick=function(t){e.parent.setChapterRead(void 0,t.target.checked)};var n=document.createElement("p");n.innerHTML=this.params.l10n.markAsFinished;var a=document.createElement("label");return a.classList.add("h5p-interactive-book-status-progress-marker"),a.appendChild(r),a.appendChild(n),a}},{key:"injectSectionId",value:function(t,e){for(var r=e.getElementsByClassName("h5p-column-content"),n=0;n<t.length;n++)r[n].id="h5p-interactive-book-section-".concat(t[n].instance.subContentId)}},{key:"preloadChapter",value:function(t){this.initializeChapter(t),this.initializeChapter(t+1)}},{key:"initializeChapter",value:function(t){if(!(t<0||t>this.chapters.length-1)){var e=this.chapters[t];if(e.isSummary){var r=this.columnNodes[t];return e.isInitialized&&(e.instance.setChapters(this.getChapters(!1)),r.innerHTML=""),e.instance.addSummaryPage(H5P.jQuery(r)),void(e.isInitialized=!0)}if(!e.isInitialized){var n,a,o=this.columnNodes[t];e.instance.attach(H5P.jQuery(o)),this.injectSectionId(e.sections,o),this.behaviour.progressIndicators&&!this.behaviour.progressAuto&&o.appendChild(this.createChapterReadCheckbox(!(null===(n=this.previousState)||void 0===n||null===(a=n.chapters)||void 0===a||!a[t].completed))),e.isInitialized=!0}}}},{key:"createColumns",value:function(t,r,n){var a=this,o=(n=_({},n)).previousState&&Object.keys(n.previousState).length>0?n.previousState:null,i=e.extractFragmentsFromURL(this.parent.validateFragments,this.parent.hashWindow);0===Object.keys(i).length&&n&&o&&o.urlFragments&&(i=o.urlFragments);var s=[];this.chapters=s;for(var c=function(e){var i=document.createElement("div"),c=D(D({},n),{},{metadata:D({},n.metadata),previousState:o?o.chapters[e].state:{}}),u=H5P.newRunnable(t.chapters[e],r,void 0,void 0,c);a.parent.bubbleUp(u,"resize",a.parent);var l={isInitialized:!1,instance:u,title:t.chapters[e].metadata.title,completed:!!o&&o.chapters[e].completed,tasksLeft:o?o.chapters[e].tasksLeft:0,isSummary:!1,sections:u.getInstances().map((function(r,n){return{content:t.chapters[e].params.content[n].content,instance:r,isTask:!1}}))};i.classList.add("h5p-interactive-book-chapter"),i.id="h5p-interactive-book-chapter-".concat(u.subContentId),l.maxTasks=0,l.tasksLeft=0,l.sections.forEach((function(t,r){H5P.Column.isTask(t.instance)&&(t.isTask=!0,l.maxTasks++,l.tasksLeft++,a.behaviour.progressIndicators&&(t.taskDone=!!o&&o.chapters[e].sections[r].taskDone,t.taskDone&&l.tasksLeft--))})),s.push(l),a.columnNodes.push(i)},u=0;u<t.chapters.length;u++)c(u);if(this.parent.hasSummary(s)){var l=document.createElement("div"),p=new B(D({},t),this.parent,this.getChapters(!1));this.parent.bubbleUp(p,"resize",this.parent);var h={isInitialized:!1,instance:p,title:this.l10n.summaryHeader,isSummary:!0,sections:[]};l.classList.add("h5p-interactive-book-chapter"),l.id="h5p-interactive-book-chapter-summary",h.maxTasks=h.tasksLeft,s.push(h),this.columnNodes.push(l)}if(i.chapter&&i.h5pbookid==this.parent.contentId){var d=this.findChapterIndex(i.chapter);if(-1===d)return 0;if(this.parent.setActiveChapter(d),i.section){var f=i.headerNumber;window.requestAnimationFrame((function(){a.redirectSection(i.section,f),a.parent.hasCover()&&a.parent.cover.removeCover()}))}return d}return 0}},{key:"redirectSection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("top"===t)this.parent.trigger("scrollToTop");else{var r=document.getElementById(t);if(r){if(null!==e){var n=r.querySelectorAll("h2, h3");n[e]&&(r=n[e])}var a=document.createElement("div");a.setAttribute("tabindex","-1"),r.parentNode.insertBefore(a,r),a.focus(),a.addEventListener("blur",(function(){a.parentNode.removeChild(a)})),this.targetPage.redirectFromComponent=!1,setTimeout((function(){r.scrollIntoView(!0)}),100)}}}},{key:"findChapterIndex",value:function(t){var e=-1;return this.columnNodes.forEach((function(r,n){-1===e&&r.id===t&&(e=n)})),e}},{key:"changeChapter",value:function(t,e){var r=this;if(!this.columnNodes[this.parent.getActiveChapter()].classList.contains("h5p-interactive-book-animate")){this.targetPage=e;var n=this.parent.getActiveChapter(),a=this.parent.getChapterId(this.targetPage.chapter),o=n!==a;if(t||this.parent.updateChapterProgress(n,o),this.preloadChapter(a),a<this.columnNodes.length){var i=this.columnNodes[n],s=this.columnNodes[a];if(o&&!t){this.parent.setActiveChapter(a);var c=n<a?"next":"previous";s.classList.add("h5p-interactive-book-".concat(c)),s.classList.add("h5p-interactive-book-animate"),i.classList.add("h5p-interactive-book-animate"),setTimeout((function(){"previous"===c?i.classList.add("h5p-interactive-book-next"):(i.classList.remove("h5p-interactive-book-current"),i.classList.add("h5p-interactive-book-previous")),s.classList.remove("h5p-interactive-book-".concat(c))}),1),setTimeout((function(){i.classList.remove("h5p-interactive-book-next"),i.classList.remove("h5p-interactive-book-previous"),i.classList.remove("h5p-interactive-book-current"),s.classList.add("h5p-interactive-book-current"),s.classList.remove("h5p-interactive-book-animate"),i.classList.remove("h5p-interactive-book-animate"),r.redirectSection(r.targetPage.section,r.targetPage.headerNumber),r.parent.trigger("resize")}),250)}else this.parent.cover&&!this.parent.cover.hidden?this.parent.on("coverRemoved",(function(){r.redirectSection(r.targetPage.section,r.targetPage.headerNumber)})):this.redirectSection(this.targetPage.section,this.targetPage.headerNumber);this.parent.sideBar.redirectHandler(a)}}}},{key:"updateFooter",value:function(){if(0!==this.chapters.length){var t=this.parent.getActiveChapter(),e=this.columnNodes[t],r=this.parent.shouldFooterBeHidden(e.clientHeight),n=this.parent.statusBarFooter.wrapper.parentNode;r?n!==this.content&&this.content.appendChild(this.parent.statusBarFooter.wrapper):n!==this.parent.$wrapper&&this.parent.$wrapper.append(this.parent.statusBarFooter.wrapper)}}},{key:"toggleNavigationMenu",value:function(){var t=this;this.sidebarIsOpen?(H5P.Transition.onTransitionEnd(H5P.jQuery(this.container),(function(){t.container.classList.add("h5p-interactive-book-navigation-hidden")}),500),this.container.classList.remove("h5p-interactive-book-navigation-open")):(this.container.classList.remove("h5p-interactive-book-navigation-hidden"),setTimeout((function(){t.container.classList.add("h5p-interactive-book-navigation-open")}),1)),this.sidebarIsOpen=!this.sidebarIsOpen}}],r&&z(t.prototype,r),n&&z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}();r(4373);function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var G=["read","displayTOC","hideTOC","nextPage","previousPage","chapterCompleted","partCompleted","incompleteChapter","navigateToTop","markAsFinished","fullscreen","exitFullscreen","bookProgressSubtext","interactionsProgressSubtext","submitReport","restartLabel","summaryHeader","allInteractions","unansweredInteractions","scoreText","leftOutOfTotalCompleted","noInteractions","score","summaryAndSubmit","noChapterInteractionBoldText","noChapterInteractionText","yourAnswersAreSubmittedForReview","bookProgress","interactionsProgress","totalScoreLabel"];function X(t,e){if(null==t)return{};var r,n,a=function(t,e){if(null==t)return{};var r,n,a={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){K(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function K(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Q.apply(this,arguments)}function Z(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function tt(t,e){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tt(t,e)}function et(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=nt(t);if(e){var a=nt(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===$(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rt(t)}(this,r)}}function rt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nt(t)}var at=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tt(t,e)}(o,H5P.EventDispatcher);var t,r,n,a=et(o);function o(t,r){var n,i,s,c,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var p=rt(c=a.call(this));if(c.contentId=r,c.previousState=u.previousState,t&&t.behaviour&&t.behaviour.baseColor&&!L.isBaseColor(t.behaviour.baseColor)){L.setBase(t.behaviour.baseColor);var h=document.createElement("style");h.styleSheet?h.styleSheet.cssText=L.getCSS():h.appendChild(document.createTextNode(L.getCSS())),document.head.appendChild(h)}c.activeChapter=0,c.newHandler={},c.completed=!1,c.params=o.sanitizeConfig(t),c.l10n=c.params.l10n,c.params.behaviour=c.params.behaviour||{},c.mainWrapper=null,c.currentRatio=null,c.smallSurface="h5p-interactive-book-small",c.mediumSurface="h5p-interactive-book-medium",c.largeSurface="h5p-interactive-book-large",c.chapters=[],c.isSubmitButtonEnabled=!1,c.isAnswerUpdated=!0,void 0!==u.isScoringEnabled||void 0!==u.isReportingEnabled?c.isSubmitButtonEnabled=u.isScoringEnabled||u.isReportingEnabled:void 0!==H5PIntegration.reportingIsEnabled&&(c.isSubmitButtonEnabled=H5PIntegration.reportingIsEnabled),c.params.behaviour.enableSolutionsButton=!1,c.params.behaviour.enableRetry=null===(n=c.params.behaviour.enableRetry)||void 0===n||n,c.getAnswerGiven=function(){return c.chapters.reduce((function(t,e){return"function"==typeof e.instance.getAnswerGiven?t&&e.instance.getAnswerGiven():t}),!0)},c.getScore=function(){return c.chapters.length>0?c.chapters.reduce((function(t,e){return"function"==typeof e.instance.getScore?t+e.instance.getScore():t}),0):c.previousState&&c.previousState.score||0},c.getMaxScore=function(){return c.chapters.length>0?c.chapters.reduce((function(t,e){return"function"==typeof e.instance.getMaxScore?t+e.instance.getMaxScore():t}),0):c.previousState&&c.previousState.maxScore||0},c.showSolutions=function(){c.chapters.forEach((function(t){"function"==typeof t.instance.toggleReadSpeaker&&t.instance.toggleReadSpeaker(!0),"function"==typeof t.instance.showSolutions&&t.instance.showSolutions(),"function"==typeof t.instance.toggleReadSpeaker&&t.instance.toggleReadSpeaker(!1)}))},c.resetTask=function(){if(c.hasValidChapters()){for(var t in c.chapters.forEach((function(t,e){"function"==typeof t.instance.resetTask&&t.instance.resetTask(),t.completed=!1,t.tasksLeft=t.maxTasks,t.sections.forEach((function(t){return t.taskDone=!1})),c.setChapterRead(e,!1)})),c.previousState)delete c.previousState[t];c.hashWindow.location.hash="";var e=c.getActiveChapter();c.redirectChapter({h5pbookid:c.contentId,chapter:c.pageContent.columnNodes[0].id,section:"top"}),c.chapters[e].completed=!1,c.hasCover()&&c.displayCover(c.mainWrapper),c.isAnswerUpdated=!1,c.setActivityStarted(!0),c.pageContent.resetChapters(),c.sideBar.resetIndicators()}},c.getXAPIData=function(){var t=c.createXAPIEventTemplate("answered");return c.addQuestionToXAPI(t),t.setScoredResult(c.getScore(),c.getMaxScore(),rt(c),!0,c.getScore()===c.getMaxScore()),{statement:t.data.statement,children:c.getXAPIDataFromChildren(c.chapters.map((function(t){return t.instance})))}},c.getXAPIDataFromChildren=function(t){return t.map((function(t){if("function"==typeof t.getXAPIData)return t.getXAPIData()})).filter((function(t){return!!t}))},c.addQuestionToXAPI=function(t){Q(t.getVerifiedStatementValue(["object","definition"]),c.getxAPIDefinition())},c.getxAPIDefinition=function(){return{interactionType:"compound",type:"http://adlnet.gov/expapi/activities/cmi.interaction",description:{"en-US":""}}},c.getCurrentState=function(){var t,r=c.chapters.filter((function(t){return!t.isSummary})).map((function(t){return{completed:t.completed||null,sections:t.sections.map((function(t){return{taskDone:t.taskDone||null}})),state:t.instance.getCurrentState()||null}})),n={urlFragments:!c.hashWindow.location.hash&&null!==(t=c.previousState)&&void 0!==t&&t.urlFragments?c.previousState.urlFragments:e.extractFragmentsFromURL(c.validateFragments,c.hashWindow),chapters:r};return c.activeChapter>0&&(n.score=c.getScore(),n.maxScore=c.getMaxScore()),n},c.getContext=function(){return c.cover&&!c.cover.hidden?{}:{type:"page",value:c.activeChapter+1}},c.hasCover=function(){return c.cover&&c.cover.container},c.hasSummary=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.chapters;return c.hasChaptersTasks(t)&&c.params.behaviour.displaySummary&&!0===c.params.behaviour.displaySummary},c.hasChaptersTasks=function(t){return t.filter((function(t){return t.sections.filter((function(t){return!0===t.isTask})).length>0})).length>0},c.hasValidChapters=function(){return c.params.chapters.length>0},c.getActiveChapter=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?c.chapters[c.activeChapter]:c.activeChapter},c.setActiveChapter=function(t){t=parseInt(t),isNaN(t)||(c.activeChapter=t)},c.validateFragments=function(t){return void 0!==t.chapter&&String(t.h5pbookid)===String(p.contentId)},c.bubbleUp=function(t,e,r){t.on(e,(function(t){r.bubblingUpwards=!0,r.trigger(e,t),r.bubblingUpwards=!1}))},c.isMenuOpen=function(){return c.statusBarHeader.isMenuOpen()},c.isSmallSurface=function(){return c.mainWrapper&&c.mainWrapper.hasClass(c.smallSurface)},c.getRatio=function(){return c.mainWrapper.width()/parseFloat(c.mainWrapper.css("font-size"))},c.setWrapperClassFromRatio=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.getRatio();e!==c.currentRatio&&(c.breakpoints().forEach((function(t){t.shouldAdd(e)?c.mainWrapper.addClass(t.className):c.mainWrapper.removeClass(t.className)})),c.currentRatio=e)},c.resize=function(){if(c.pageContent&&c.hasValidChapters()&&c.mainWrapper){c.setWrapperClassFromRatio(c.mainWrapper);var t=c.getActiveChapter(),e=c.pageContent.columnNodes[t];null!==e.offsetParent&&(c.bubblingUpwards||c.pageContent.chapters[t].instance.trigger("resize"),c.pageContent.content.style.height==="".concat(e.offsetHeight,"px")||e.classList.contains("h5p-interactive-book-animate")||(c.pageContent.content.style.height="".concat(e.offsetHeight,"px"),c.pageContent.updateFooter(),setTimeout((function(){c.trigger("resize")}),10),window.clearTimeout(c.extraResizeTimeout),c.extraResizeTimeout=window.setTimeout((function(){c.trigger("resize")}),200)))}},c.on("resize",c.resize,rt(c)),c.on("toggleMenu",(function(t){var e;c.sideBar.container.addEventListener("transitionend",(function(){c.trigger("resize")}));var r=!(null!==(e=t.data)&&void 0!==e&&e.shouldNotFocusNav);c.pageContent.toggleNavigationMenu(),c.statusBarHeader.menuToggleButton.setAttribute("aria-expanded",c.statusBarHeader.menuToggleButton.classList.toggle("h5p-interactive-book-status-menu-active")?"true":"false"),c.pageContent.sidebarIsOpen&&r&&c.sideBar.focus()})),c.on("scrollToTop",(function(){if(!0===H5P.isFullscreen){var t=c.pageContent.container;t.scrollBy(0,-t.scrollHeight)}else"lti"!==H5PIntegration.context&&c.statusBarHeader.wrapper.scrollIntoView(!0)})),c.on("newChapter",(function(t){if(!c.pageContent.columnNodes[c.getActiveChapter()].classList.contains("h5p-interactive-book-animate")){if(c.newHandler=t.data,t.data.newHash=e.createFragmentsString(c.newHandler),c.newHandler.redirectFromComponent=!0,c.getChapterId(t.data.chapter)===c.activeChapter)if(e.areFragmentsEqual(t.data,e.extractFragmentsFromURL(c.validateFragments,c.hashWindow),["h5pbookid","chapter","section","headerNumber"]))return void c.pageContent.changeChapter(!1,t.data);if(c.params.behaviour.progressAuto){var r=c.getChapterId(c.newHandler.chapter);c.isFinalChapterWithoutTask(r)&&c.setChapterRead(r)}H5P.trigger(rt(c),"changeHash",t.data),H5P.trigger(rt(c),"scrollToTop")}})),c.isCurrentChapterRead=function(){return c.isChapterRead(c.chapters[c.activeChapter],c.params.behaviour.progressAuto)},c.isChapterRead=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.params.behaviour.progressAuto;return t.completed||e&&0===t.tasksLeft},c.isFinalChapterWithoutTask=function(t){return 0===c.chapters[t].maxTasks&&c.chapters.slice(0,t).concat(c.chapters.slice(t+1)).every((function(t){return 0===t.tasksLeft}))},c.setChapterRead=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.activeChapter,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];c.handleChapterCompletion(t,e),c.sideBar.updateChapterProgressIndicator(t,e?"DONE":c.hasChapterStartedTasks(c.chapters[t])?"STARTED":"BLANK")},c.hasChapterStartedTasks=function(t){return t.sections.filter((function(t){return t.taskDone})).length>0},c.getChapterStatus=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.params.behaviour.progressAuto,r="BLANK";return c.isChapterRead(t,e)?r="DONE":c.hasChapterStartedTasks(t)&&(r="STARTED"),r},c.updateChapterProgress=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(c.params.behaviour.progressIndicators){var r,n=c.chapters[t];"DONE"===(r=n.maxTasks?c.getChapterStatus(n):c.isChapterRead(n)&&e?"DONE":"BLANK")&&c.handleChapterCompletion(t),c.sideBar.updateChapterProgressIndicator(t,r)}},c.getChapterId=function(t){t=t.replace("h5p-interactive-book-chapter-","");var e=c.chapters.map((function(t){return t.instance.subContentId})).indexOf(t);return-1===e?0:e},c.handleChapterCompletion=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=c.chapters[t];if(!0!==r.isSummary){if(!e)return r.completed=!1,c.completed=!1,void c.trigger("bookCompleted",{completed:c.completed});r.completed||(r.completed=!0,r.instance.triggerXAPIScored(r.instance.getScore(),r.instance.getMaxScore(),"completed")),!c.completed&&c.chapters.filter((function(t){return!t.isSummary})).every((function(t){return t.completed}))&&(c.completed=!0,c.trigger("bookCompleted",{completed:c.completed}))}},c.shouldFooterBeHidden=function(){return c.isFullscreen},c.getContainerWidth=function(){return c.pageContent&&c.pageContent.container?c.pageContent.container.offsetWidth:0},c.changeChapter=function(t){c.pageContent.changeChapter(t,c.newHandler),c.statusBarHeader.updateStatusBar(),c.statusBarFooter.updateStatusBar(),c.newHandler.redirectFromComponent=!1},c.breakpoints=function(){return[{className:c.smallSurface,shouldAdd:function(t){return t<43}},{className:c.mediumSurface,shouldAdd:function(t){return t>=43&&t<60}},{className:c.largeSurface,shouldAdd:function(t){return t>=60}}]},H5P.on(rt(c),"respondChangeHash",(function(){var t=e.extractFragmentsFromURL(p.validateFragments,c.hashWindow);t.h5pbookid&&String(t.h5pbookid)===String(p.contentId)&&c.redirectChapter(t)})),H5P.on(rt(c),"changeHash",(function(t){String(t.data.h5pbookid)===String(c.contentId)&&(c.hashWindow.location.hash=t.data.newHash)})),H5P.externalDispatcher.on("xAPI",(function(t){var e=["answered","completed","interacted","attempted"].indexOf(t.getVerb())>-1,r=p.chapters.length;if(p!==this&&e&&r){var n,a=this.subContentId||(null===(n=this.contentData)||void 0===n?void 0:n.subContentId);if(!a)return;p.setSectionStatusByID(a,p.activeChapter)}})),c.redirectChapter=function(t){c.newHandler.redirectFromComponent||(t.h5pbookid&&String(t.h5pbookid)===String(p.contentId)?p.newHandler=t:p.newHandler={chapter:"h5p-interactive-book-chapter-".concat(p.chapters[0].instance.subContentId),h5pbookid:p.h5pbookid}),p.changeChapter(!1)},c.setSectionStatusByID=function(t,e){c.chapters[e].sections.forEach((function(r,n){var a=r.instance;a.subContentId!==t||r.taskDone||(r.taskDone=!a.getAnswerGiven||a.getAnswerGiven(),c.sideBar.setSectionMarker(e,n),r.taskDone&&(c.chapters[e].tasksLeft-=1),c.updateChapterProgress(e))}))},c.addHashListener=function(t){t.addEventListener("hashchange",(function(t){H5P.trigger(rt(c),"respondChangeHash",t)})),c.hashWindow=t};try{c.addHashListener(top)}catch(t){if(!(t instanceof DOMException))throw t;c.addHashListener(window)}c.displayCover=function(t){c.hideAllElements(!0),t.append(c.cover.container),t.addClass("covered"),c.cover.initMedia()},c.attach=function(t){c.mainWrapper=t,t.addClass("h5p-interactive-book h5p-scrollable-fullscreen"),c.isEdge18orEarlier()&&t.addClass("edge-18"),c.setWrapperClassFromRatio(c.mainWrapper),c.cover&&c.shouldShowCover&&c.displayCover(t),t.append(c.statusBarHeader.wrapper);var e=c.pageContent.container.firstChild;e&&c.pageContent.container.insertBefore(c.sideBar.container,e),t.append(c.pageContent.container),t.append(c.statusBarFooter.wrapper),c.$wrapper=t,c.params.behaviour.defaultTableOfContents&&!c.isSmallSurface()&&c.trigger("toggleMenu",{shouldNotFocusNav:!0}),c.pageContent.updateFooter()},c.isEdge18orEarlier=function(){var t=window.navigator.userAgent,e=t.indexOf("Edge/");if(e<0)return!1;var r=t.substring(e+5,t.indexOf(".",e));return parseInt(r)<=18},c.hideAllElements=function(t){var e=[this.statusBarHeader.wrapper,this.statusBarFooter.wrapper,this.pageContent.container];t?e.forEach((function(t){t.classList.add("h5p-content-hidden"),t.classList.add("h5p-interactive-book-cover-present")})):e.forEach((function(t){t.classList.remove("h5p-content-hidden"),t.classList.remove("h5p-interactive-book-cover-present")}))};var d=e.extractFragmentsFromURL(c.validateFragments,c.hashWindow);c.shouldShowCover=c.params.showCoverPage&&!(d.chapter||null!==(i=u.previousState)&&void 0!==i&&null!==(s=i.urlFragments)&&void 0!==s&&s.chapter),c.params.showCoverPage&&(c.cover=new S(c.params.bookCover,u.metadata.title,c.l10n.read,r,rt(c)));var f=Y(Y({},u),{},{parent:rt(c)});return c.pageContent=new V(c.params,r,f,rt(c),{l10n:{markAsFinished:c.l10n.markAsFinished},behaviour:c.params.behaviour}),c.chapters=c.pageContent.getChapters(),c.sideBar=new l(c.params,r,u.metadata.title,rt(c)),c.chapters.forEach((function(t,e){c.setChapterRead(e,t.completed)})),c.statusBarHeader=new b(r,c.chapters.length,rt(c),{l10n:c.l10n,a11y:c.params.a11y,behaviour:c.params.behaviour,displayFullScreenButton:!0,displayMenuToggleButton:!0},"h5p-interactive-book-status-header"),c.statusBarFooter=new b(r,c.chapters.length,rt(c),{l10n:c.l10n,a11y:c.params.a11y,behaviour:c.params.behaviour,displayToTopButton:!0},"h5p-interactive-book-status-footer"),c.hasCover()?(c.hideAllElements(!0),c.on("coverRemoved",(function(){var t;c.hideAllElements(!1),null!==(t=c.params.chapters[c.activeChapter])&&void 0!==t&&t.subContentId&&c.trigger("newChapter",{h5pbookid:c.contentId,chapter:"h5p-interactive-book-chapter-".concat(c.params.chapters[c.activeChapter].subContentId),section:0}),c.trigger("resize"),c.setActivityStarted(),"lti"!==H5PIntegration.context&&c.statusBarHeader.progressBar.progress.focus()}))):c.setActivityStarted(),c.hasValidChapters()&&(c.statusBarHeader.updateStatusBar(),c.statusBarFooter.updateStatusBar()),c}return t=o,n=[{key:"sanitizeConfig",value:function(t){var e=t.read,r=void 0===e?"Read":e,n=t.displayTOC,a=void 0===n?"Display &#039;Table of contents&#039;":n,o=t.hideTOC,i=void 0===o?"Hide &#039;Table of contents&#039;":o,s=t.nextPage,c=void 0===s?"Next page":s,u=t.previousPage,l=void 0===u?"Previous page":u,p=t.chapterCompleted,h=void 0===p?"Page completed!":p,d=t.partCompleted,f=void 0===d?"@pages of @total completed":d,v=t.incompleteChapter,m=void 0===v?"Incomplete page":v,b=t.navigateToTop,g=void 0===b?"Navigate to the top":b,y=t.markAsFinished,k=void 0===y?"I have finished this page":y,w=t.fullscreen,C=void 0===w?"Fullscreen":w,S=t.exitFullscreen,x=void 0===S?"Exit fullscreen":S,O=t.bookProgressSubtext,E=void 0===O?"@count of @total pages":O,L=t.interactionsProgressSubtext,P=void 0===L?"@count of @total interactions":L,A=t.submitReport,T=void 0===A?"Submit Report":A,j=t.restartLabel,I=void 0===j?"Restart":j,M=t.summaryHeader,F=void 0===M?"Summary":M,B=t.allInteractions,R=void 0===B?"All interactions":B,N=t.unansweredInteractions,D=void 0===N?"Unanswered interactions":N,H=t.scoreText,_=void 0===H?"@score / @maxscore":H,z=t.leftOutOfTotalCompleted,U=void 0===z?"@left of @max interactinos completed":z,q=t.noInteractions,W=void 0===q?"No interactions":q,V=t.score,$=void 0===V?"Score":V,J=t.summaryAndSubmit,Y=void 0===J?"Summary & submit":J,K=t.noChapterInteractionBoldText,Q=void 0===K?"You have not interacted with any pages.":K,Z=t.noChapterInteractionText,tt=void 0===Z?"You have to interact with at least one page before you can see the summary.":Z,et=t.yourAnswersAreSubmittedForReview,rt=void 0===et?"Your answers are submitted for review!":et,nt=t.bookProgress,at=void 0===nt?"Book progress":nt,ot=t.interactionsProgress,it=void 0===ot?"Interactions progress":ot,st=t.totalScoreLabel,ct=void 0===st?"Total score":st,ut=X(t,G);return ut.chapters=ut.chapters.map((function(t){return t.params.content=t.params.content.filter((function(t){return t.content})),t})).filter((function(t){return t.params.content&&t.params.content.length>0})),ut.behaviour.displaySummary=void 0===ut.behaviour.displaySummary||ut.behaviour.displaySummary,ut.l10n={read:r,displayTOC:a,hideTOC:i,nextPage:c,previousPage:l,chapterCompleted:h,partCompleted:f,incompleteChapter:m,navigateToTop:g,markAsFinished:k,fullscreen:C,exitFullscreen:x,bookProgressSubtext:E,interactionsProgressSubtext:P,submitReport:T,restartLabel:I,summaryHeader:F,allInteractions:R,unansweredInteractions:D,scoreText:_,leftOutOfTotalCompleted:U,noInteractions:W,score:$,summaryAndSubmit:Y,noChapterInteractionBoldText:Q,noChapterInteractionText:tt,yourAnswersAreSubmittedForReview:rt,bookProgress:at,interactionsProgress:it,totalScoreLabel:ct},ut}}],(r=null)&&Z(t.prototype,r),n&&Z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}();H5P=H5P||{},H5P.InteractiveBook=at})()})();;		(function(xopen, fetch, dataurls) {

			switch(location.protocol.split(':')[0]) {
				case 'http':
				case 'https':
					return;
			};

			const url2data	= function(oldurl) {
					switch(oldurl.split(':')[0]) {
						case 'blob':
							console.log('blob', oldurl);
						case 'data':
							return oldurl;
					}
					let urltoks	 = oldurl.replace(H5PIntegration.url, '.').split('/');
					if(urltoks[0] == '.') {
						urltoks.shift();
						const url	= urltoks.join('/');
						if(typeof dataurls[url]!=='undefined') {
							if(dataurls[url][0]=='application/json') {
								return 'data:application/json;text,' + dataurls[url][1];
							}
							return 'data:' + dataurls[url].join(';base64,');
						}
					}
					console.error('url not found:', oldurl);
					return "data:;text,";
			};
			window.fetch = function() {
				arguments[0]	= url2data(arguments[0]);
				return fetch.apply(this, arguments);
			};
			XMLHttpRequest.prototype.open = function() {
				arguments[1]	= url2data(arguments[1]);
				return xopen.apply(this, arguments);
			};
		})(XMLHttpRequest.prototype.open, window.fetch, {"libraries\/H5P.Image-1.1\/library.json":["application\/json","{\"title\":\"Image\",\"contentType\":\"Media\",\"description\":\"Simple library that displays an image.\",\"majorVersion\":1,\"minorVersion\":1,\"patchVersion\":22,\"runnable\":0,\"machineName\":\"H5P.Image\",\"author\":\"Joubel\",\"coreApi\":{\"majorVersion\":1,\"minorVersion\":19},\"preloadedJs\":[{\"path\":\"image.js\"}],\"preloadedCss\":[{\"path\":\"image.css\"}],\"metadataSettings\":{\"disable\":0,\"disableExtraTitleField\":1},\"editorDependencies\":[{\"machineName\":\"H5PEditor.ShowWhen\",\"majorVersion\":1,\"minorVersion\":0}]}"],"libraries\/H5PEditor.ShowWhen-1.0\/library.json":["application\/json","{\"machineName\":\"H5PEditor.ShowWhen\",\"title\":\"Toggle visibility of a field based on rules\",\"license\":\"MIT\",\"author\":\"fnoks\",\"majorVersion\":1,\"minorVersion\":0,\"patchVersion\":9,\"runnable\":0,\"preloadedJs\":[{\"path\":\"h5p-show-when.js\"}],\"preloadedCss\":[{\"path\":\"h5p-show-when.css\"}]}"],"libraries\/H5P.Audio-1.5\/library.json":["application\/json","{\"title\":\"Audio\",\"contentType\":\"Media\",\"description\":\"Simple library that displays an audio player.\",\"majorVersion\":1,\"minorVersion\":5,\"patchVersion\":12,\"runnable\":1,\"machineName\":\"H5P.Audio\",\"embedTypes\":[\"iframe\"],\"author\":\"Joubel\",\"coreApi\":{\"majorVersion\":1,\"minorVersion\":19},\"preloadedJs\":[{\"path\":\"scripts\\\/audio.js\"}],\"preloadedCss\":[{\"path\":\"styles\\\/audio.css\"}],\"preloadedDependencies\":[{\"machineName\":\"FontAwesome\",\"majorVersion\":4,\"minorVersion\":5}],\"editorDependencies\":[{\"machineName\":\"H5PEditor.ShowWhen\",\"majorVersion\":1,\"minorVersion\":0}]}"],"libraries\/FontAwesome-4.5\/library.json":["application\/json","{\"title\":\"Font Awesome\",\"contentType\":\"Font\",\"majorVersion\":4,\"minorVersion\":5,\"patchVersion\":4,\"runnable\":0,\"machineName\":\"FontAwesome\",\"license\":\"MIT\",\"author\":\"Dave Gandy\",\"preloadedCss\":[{\"path\":\"h5p-font-awesome.min.css\"}]}"],"libraries\/H5P.AudioRecorder-1.0\/library.json":["application\/json","{\"title\":\"Audio Recorder\",\"description\":\"Record audio and download it\",\"machineName\":\"H5P.AudioRecorder\",\"majorVersion\":1,\"minorVersion\":0,\"patchVersion\":32,\"runnable\":1,\"author\":\"Joubel\",\"license\":\"MIT\",\"embedTypes\":[\"iframe\"],\"preloadedCss\":[{\"path\":\"fonts\\\/h5p-audio-recorder-font-open-sans.css\"}],\"preloadedJs\":[{\"path\":\"dist\\\/h5p-audio-recorder.js\"}],\"preloadedDependencies\":[{\"machineName\":\"FontAwesome\",\"majorVersion\":4,\"minorVersion\":5},{\"machineName\":\"H5P.FontIcons\",\"majorVersion\":1,\"minorVersion\":0}]}"],"libraries\/H5P.FontIcons-1.0\/library.json":["application\/json","{\"title\":\"H5P.FontIcons\",\"majorVersion\":1,\"minorVersion\":0,\"patchVersion\":11,\"runnable\":0,\"machineName\":\"H5P.FontIcons\",\"author\":\"Joubel\",\"preloadedCss\":[{\"path\":\"styles\\\/h5p-font-icons.css\"}]}"],"libraries\/H5P.Column-1.18\/library.json":["application\/json","{\"machineName\":\"H5P.Column\",\"title\":\"Column\",\"description\":\"Content holder displaying content in a column.\",\"contentType\":\"instructional\",\"license\":\"MIT\",\"author\":\"Joubel\",\"majorVersion\":1,\"minorVersion\":18,\"patchVersion\":1,\"runnable\":1,\"fullscreen\":0,\"embedTypes\":[\"iframe\"],\"coreApi\":{\"majorVersion\":1,\"minorVersion\":27},\"preloadedJs\":[{\"path\":\"scripts\\\/h5p-column.js\"}],\"preloadedCss\":[{\"path\":\"styles\\\/h5p-column.css\"}]}"],"libraries\/H5P.InteractiveBook-1.11\/library.json":["application\/json","{\"title\":\"Interactive Book\",\"description\":\"An interactive book which displays content in pages and sections\",\"majorVersion\":1,\"minorVersion\":11,\"patchVersion\":2,\"runnable\":1,\"fullscreen\":1,\"coreApi\":{\"majorVersion\":1,\"minorVersion\":27},\"author\":\"Joubel\",\"license\":\"MIT\",\"machineName\":\"H5P.InteractiveBook\",\"embedTypes\":[\"iframe\"],\"preloadedJs\":[{\"path\":\"dist\\\/h5p-interactive-book.js\"}],\"preloadedCss\":[{\"path\":\"dist\\\/h5p-interactive-book.css\"}],\"preloadedDependencies\":[{\"machineName\":\"FontAwesome\",\"majorVersion\":4,\"minorVersion\":5},{\"machineName\":\"H5P.JoubelUI\",\"majorVersion\":1,\"minorVersion\":3}],\"editorDependencies\":[{\"machineName\":\"H5PEditor.VerticalTabs\",\"majorVersion\":1,\"minorVersion\":3},{\"machineName\":\"H5PEditor.ShowWhen\",\"majorVersion\":1,\"minorVersion\":0},{\"machineName\":\"H5PEditor.ColorSelector\",\"majorVersion\":1,\"minorVersion\":3}]}"],"libraries\/H5P.JoubelUI-1.3\/library.json":["application\/json","{\"title\":\"Joubel UI\",\"contentType\":\"Utility\",\"description\":\"UI utility library\",\"majorVersion\":1,\"minorVersion\":3,\"patchVersion\":19,\"runnable\":0,\"coreApi\":{\"majorVersion\":1,\"minorVersion\":3},\"machineName\":\"H5P.JoubelUI\",\"author\":\"Joubel\",\"preloadedJs\":[{\"path\":\"js\\\/joubel-help-dialog.js\"},{\"path\":\"js\\\/joubel-message-dialog.js\"},{\"path\":\"js\\\/joubel-progress-circle.js\"},{\"path\":\"js\\\/joubel-simple-rounded-button.js\"},{\"path\":\"js\\\/joubel-speech-bubble.js\"},{\"path\":\"js\\\/joubel-throbber.js\"},{\"path\":\"js\\\/joubel-tip.js\"},{\"path\":\"js\\\/joubel-slider.js\"},{\"path\":\"js\\\/joubel-score-bar.js\"},{\"path\":\"js\\\/joubel-progressbar.js\"},{\"path\":\"js\\\/joubel-ui.js\"}],\"preloadedCss\":[{\"path\":\"css\\\/joubel-help-dialog.css\"},{\"path\":\"css\\\/joubel-message-dialog.css\"},{\"path\":\"css\\\/joubel-progress-circle.css\"},{\"path\":\"css\\\/joubel-simple-rounded-button.css\"},{\"path\":\"css\\\/joubel-speech-bubble.css\"},{\"path\":\"css\\\/joubel-tip.css\"},{\"path\":\"css\\\/joubel-slider.css\"},{\"path\":\"css\\\/joubel-score-bar.css\"},{\"path\":\"css\\\/joubel-progressbar.css\"},{\"path\":\"css\\\/joubel-ui.css\"},{\"path\":\"css\\\/joubel-icon.css\"}],\"preloadedDependencies\":[{\"machineName\":\"FontAwesome\",\"majorVersion\":4,\"minorVersion\":5},{\"machineName\":\"H5P.Transition\",\"majorVersion\":1,\"minorVersion\":0},{\"machineName\":\"H5P.FontIcons\",\"majorVersion\":1,\"minorVersion\":0}]}"],"libraries\/H5P.Transition-1.0\/library.json":["application\/json","{\"machineName\":\"H5P.Transition\",\"title\":\"Transition\",\"description\":\"Contains helper function relevant for transitioning\",\"license\":\"MIT\",\"author\":\"Joubel\",\"majorVersion\":1,\"minorVersion\":0,\"patchVersion\":4,\"runnable\":0,\"preloadedJs\":[{\"path\":\"transition.js\"}]}"],"libraries\/H5PEditor.VerticalTabs-1.3\/library.json":["application\/json","{\"machineName\":\"H5PEditor.VerticalTabs\",\"title\":\"H5P Editor Vertical Tabs\",\"license\":\"MIT\",\"author\":\"Joubel\",\"majorVersion\":1,\"minorVersion\":3,\"patchVersion\":9,\"runnable\":0,\"coreApi\":{\"majorVersion\":1,\"minorVersion\":24},\"preloadedJs\":[{\"path\":\"vertical-tabs.js\"}],\"preloadedCss\":[{\"path\":\"styles\\\/css\\\/vertical-tabs.css\"}],\"preloadedDependencies\":[{\"machineName\":\"FontAwesome\",\"majorVersion\":4,\"minorVersion\":5}]}"],"libraries\/H5PEditor.ColorSelector-1.3\/library.json":["application\/json","{\"title\":\"H5PEditor.ColorSelector\",\"majorVersion\":1,\"minorVersion\":3,\"patchVersion\":1,\"runnable\":0,\"machineName\":\"H5PEditor.ColorSelector\",\"coreApi\":{\"majorVersion\":1,\"minorVersion\":24},\"author\":\"Joubel\",\"preloadedJs\":[{\"path\":\"scripts\\\/spectrum.js\"},{\"path\":\"scripts\\\/color-selector.js\"}],\"preloadedCss\":[{\"path\":\"styles\\\/spectrum.css\"},{\"path\":\"styles\\\/color-selector.css\"}]}"]});		H5PIntegration	= (function(x){
			let url	= window.location.href.split('/');
			url.pop();
			x.url	= url.join('/');
			return x;
		})({"baseUrl":"","url":"","siteUrl":"","l10n":{"H5P":{"fullscreen":"Vollbild","disableFullscreen":"Kein Vollbild","download":"Download","copyrights":"Nutzungsrechte","embed":"Einbetten","size":"Size","showAdvanced":"Show advanced","hideAdvanced":"Hide advanced","advancedHelp":"Include this script on your website if you want dynamic sizing of the embedded content:","copyrightInformation":"Nutzungsrechte","close":"Schlie\u00dfen","title":"Titel","author":"Autor","year":"Jahr","source":"Quelle","license":"Lizenz","thumbnail":"Thumbnail","noCopyrights":"Keine Copyright-Informationen vorhanden","reuse":"Wiederverwenden","reuseContent":"Verwende Inhalt","reuseDescription":"Verwende Inhalt.","downloadDescription":"Lade den Inhalt als H5P-Datei herunter.","copyrightsDescription":"Zeige Urheberinformationen an.","embedDescription":"Zeige den Code f\u00fcr die Einbettung an.","h5pDescription":"Visit H5P.org to check out more cool content.","contentChanged":"Dieser Inhalt hat sich seit Ihrer letzten Nutzung ver\u00e4ndert.","startingOver":"Sie beginnen von vorne.","by":"von","showMore":"Zeige mehr","showLess":"Zeige weniger","subLevel":"Sublevel","confirmDialogHeader":"Best\u00e4tige Aktion","confirmDialogBody":"Please confirm that you wish to proceed. This action is not reversible.","cancelLabel":"Abbrechen","confirmLabel":"Best\u00e4tigen","licenseU":"Undisclosed","licenseCCBY":"Attribution","licenseCCBYSA":"Attribution-ShareAlike","licenseCCBYND":"Attribution-NoDerivs","licenseCCBYNC":"Attribution-NonCommercial","licenseCCBYNCSA":"Attribution-NonCommercial-ShareAlike","licenseCCBYNCND":"Attribution-NonCommercial-NoDerivs","licenseCC40":"4.0 International","licenseCC30":"3.0 Unported","licenseCC25":"2.5 Generic","licenseCC20":"2.0 Generic","licenseCC10":"1.0 Generic","licenseGPL":"General Public License","licenseV3":"Version 3","licenseV2":"Version 2","licenseV1":"Version 1","licensePD":"Public Domain","licenseCC010":"CC0 1.0 Universal (CC0 1.0) Public Domain Dedication","licensePDM":"Public Domain Mark","licenseC":"Copyright","contentType":"Inhaltstyp","licenseExtras":"License Extras","changes":"Changelog","contentCopied":"Inhalt wurde ins Clipboard kopiert","connectionLost":"Connection lost. Results will be stored and sent when you regain connection.","connectionReestablished":"Connection reestablished.","resubmitScores":"Attempting to submit stored results.","offlineDialogHeader":"Your connection to the server was lost","offlineDialogBody":"We were unable to send information about your completion of this task. Please check your internet connection.","offlineDialogRetryMessage":"Versuche es wieder in :num....","offlineDialogRetryButtonLabel":"Jetzt nochmal probieren","offlineSuccessfulSubmit":"Erfolgreich Ergebnisse gesendet."}},"hubIsEnabled":false,"reportingIsEnabled":false,"libraryConfig":null,"crossorigin":null,"crossoriginCacheBuster":null,"pluginCacheBuster":"","libraryUrl":".\/libraries\/h5pcore\/js","contents":{"cid-\u03a3\u03c5\u03bd\u03ad\u03bd\u03c4\u03b5\u03c5\u03be\u03b7 \u03b1\u03c0\u03cc \u03c4\u03bf\u03c5\u03c2 \u03bc\u03b9\u03ba\u03c1\u03bf\u03cd\u03c2 \u03b5\u03b8\u03b5\u03bb\u03bf\u03bd\u03c4\u03ad\u03c2":{"displayOptions":{"copy":false,"copyright":false,"embed":false,"export":false,"frame":false,"icon":false},"embedCode":"","exportUrl":false,"fullScreen":false,"contentUserData":[],"metadata":{"title":"\u03a3\u03c5\u03bd\u03ad\u03bd\u03c4\u03b5\u03c5\u03be\u03b7 \u03b1\u03c0\u03cc \u03c4\u03bf\u03c5\u03c2 \u03bc\u03b9\u03ba\u03c1\u03bf\u03cd\u03c2 \u03b5\u03b8\u03b5\u03bb\u03bf\u03bd\u03c4\u03ad\u03c2","license":null},"library":"H5P.InteractiveBook 1.11","jsonContent":"{\"showCoverPage\":true,\"bookCover\":{\"coverDescription\":\"<p style=\\\"text-align: center;\\\"><\\\/p>\",\"coverMedium\":{\"params\":{\"decorative\":false,\"contentName\":\"\\u0395\\u03b9\\u03ba\\u03cc\\u03bd\\u03b1\",\"expandImage\":\"Expand Image\",\"minimizeImage\":\"Minimize Image\",\"file\":{\"path\":\"images\\\/file-674b5f73c888a.png\",\"mime\":\"image\\\/png\",\"copyright\":{\"license\":\"U\"},\"width\":1280,\"height\":720}},\"library\":\"H5P.Image 1.1\",\"metadata\":{\"contentType\":\"Image\",\"license\":\"U\",\"title\":\"Untitled Image\"},\"subContentId\":\"f4cf49e6-4f63-4adf-bc38-5c713cb0daca\"}},\"chapters\":[{\"params\":{\"content\":[{\"content\":{\"params\":{\"playerMode\":\"minimalistic\",\"fitToWrapper\":false,\"controls\":true,\"autoplay\":true,\"playAudio\":\"\\u0391\\u03bd\\u03b1\\u03c0\\u03b1\\u03c1\\u03b1\\u03b3\\u03c9\\u03b3\\u03ae \\u03ae\\u03c7\\u03bf\\u03c5\",\"pauseAudio\":\"\\u03a0\\u03b1\\u03cd\\u03c3\\u03b7 \\u03ae\\u03c7\\u03bf\\u03c5\",\"contentName\":\"\\u0389\\u03c7\\u03bf\\u03c2\",\"audioNotSupported\":\"\\u039f \\u03c6\\u03c5\\u03bb\\u03bb\\u03bf\\u03bc\\u03b5\\u03c4\\u03c1\\u03b7\\u03c4\\u03ae\\u03c2 \\u03b4\\u03b5\\u03bd \\u03c5\\u03c0\\u03bf\\u03c3\\u03c4\\u03b7\\u03c1\\u03af\\u03b6\\u03b5\\u03b9 \\u03c4\\u03bf \\u03c3\\u03c5\\u03b3\\u03ba\\u03b5\\u03ba\\u03c1\\u03b9\\u03bc\\u03ad\\u03bd\\u03bf \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf \\u03ae\\u03c7\\u03bf\\u03c5\",\"files\":[{\"path\":\"audios\\\/files-674b5de013d8c.m4a\",\"mime\":\"audio\\\/mp4\",\"copyright\":{\"license\":\"U\"}}]},\"library\":\"H5P.Audio 1.5\",\"metadata\":{\"contentType\":\"Audio\",\"license\":\"U\",\"title\":\"\\u03a3\\u03c5\\u03bd\\u03ad\\u03bd\\u03c4\\u03b5\\u03c5\\u03be\\u03b7 \\u03b1\\u03c0\\u03cc \\u03c4\\u03bf\\u03c5\\u03c2 \\u03bc\\u03b9\\u03ba\\u03c1\\u03bf\\u03cd\\u03c2 \\u03b5\\u03b8\\u03b5\\u03bb\\u03bf\\u03bd\\u03c4\\u03ad\\u03c2\"},\"subContentId\":\"b7681225-3c98-402c-accf-a9d61709de69\"},\"useSeparator\":\"auto\"},{\"content\":{\"params\":{\"l10n\":{\"recordAnswer\":\"\\u0397\\u03c7\\u03bf\\u03b3\\u03c1\\u03ac\\u03c6\\u03b7\\u03c3\\u03b7\",\"pause\":\"\\u03a0\\u03b1\\u03cd\\u03c3\\u03b7\",\"continue\":\"\\u03a3\\u03c5\\u03bd\\u03ad\\u03c7\\u03b5\\u03b9\\u03b1\",\"download\":\"\\u039b\\u03ae\\u03c8\\u03b7\",\"done\":\"\\u039f\\u03bb\\u03bf\\u03ba\\u03bb\\u03ae\\u03c1\\u03c9\\u03c3\\u03b7\",\"retry\":\"\\u0395\\u03c0\\u03b1\\u03bd\\u03ac\\u03bb\\u03b7\\u03c8\\u03b7\",\"microphoneNotSupported\":\"\\u03a4\\u03bf \\u03bc\\u03b9\\u03ba\\u03c1\\u03cc\\u03c6\\u03c9\\u03bd\\u03bf \\u03b4\\u03b5\\u03bd \\u03c5\\u03c0\\u03bf\\u03c3\\u03c4\\u03b7\\u03c1\\u03af\\u03b6\\u03b5\\u03c4\\u03b1\\u03b9. \\u0392\\u03b5\\u03b2\\u03b1\\u03b9\\u03c9\\u03b8\\u03b5\\u03af\\u03c4\\u03b5 \\u03cc\\u03c4\\u03b9 \\u03c7\\u03c1\\u03b7\\u03c3\\u03b9\\u03bc\\u03bf\\u03c0\\u03bf\\u03b9\\u03b5\\u03af\\u03c4\\u03b5 \\u03ad\\u03bd\\u03b1 \\u03c0\\u03c1\\u03cc\\u03b3\\u03c1\\u03b1\\u03bc\\u03bc\\u03b1 \\u03c0\\u03b5\\u03c1\\u03b9\\u03ae\\u03b3\\u03b7\\u03c3\\u03b7\\u03c2 \\u03c0\\u03bf\\u03c5 \\u03b5\\u03c0\\u03b9\\u03c4\\u03c1\\u03ad\\u03c0\\u03b5\\u03b9 \\u03c4\\u03b7\\u03bd \\u03ba\\u03b1\\u03c4\\u03b1\\u03b3\\u03c1\\u03b1\\u03c6\\u03ae \\u03ae\\u03c7\\u03bf\\u03c5 \\u03b1\\u03c0\\u03cc \\u03bc\\u03b9\\u03ba\\u03c1\\u03cc\\u03c6\\u03c9\\u03bd\\u03bf.\",\"microphoneInaccessible\":\"\\u03a4\\u03bf \\u03bc\\u03b9\\u03ba\\u03c1\\u03cc\\u03c6\\u03c9\\u03bd\\u03bf \\u03b4\\u03b5\\u03bd \\u03b5\\u03af\\u03bd\\u03b1\\u03b9 \\u03c0\\u03c1\\u03bf\\u03c3\\u03b2\\u03ac\\u03c3\\u03b9\\u03bc\\u03bf. \\u0392\\u03b5\\u03b2\\u03b1\\u03b9\\u03c9\\u03b8\\u03b5\\u03af\\u03c4\\u03b5 \\u03cc\\u03c4\\u03b9 \\u03c4\\u03bf \\u03bc\\u03b9\\u03ba\\u03c1\\u03cc\\u03c6\\u03c9\\u03bd\\u03bf \\u03c4\\u03bf\\u03c5 \\u03c6\\u03c5\\u03bb\\u03bb\\u03bf\\u03bc\\u03b5\\u03c4\\u03c1\\u03b7\\u03c4\\u03ae \\u03b5\\u03af\\u03bd\\u03b1\\u03b9 \\u03b5\\u03bd\\u03b5\\u03c1\\u03b3\\u03bf\\u03c0\\u03bf\\u03b9\\u03b7\\u03bc\\u03ad\\u03bd\\u03bf.\",\"insecureNotAllowed\":\"\\u0397 \\u03c0\\u03c1\\u03cc\\u03c3\\u03b2\\u03b1\\u03c3\\u03b7 \\u03c3\\u03c4\\u03bf \\u03bc\\u03b9\\u03ba\\u03c1\\u03cc\\u03c6\\u03c9\\u03bd\\u03bf \\u03b4\\u03b5\\u03bd \\u03b5\\u03c0\\u03b9\\u03c4\\u03c1\\u03ad\\u03c0\\u03b5\\u03c4\\u03b1\\u03b9 \\u03c3\\u03c4\\u03bf\\u03bd \\u03c6\\u03c5\\u03bb\\u03bb\\u03bf\\u03bc\\u03b5\\u03c4\\u03c1\\u03b7\\u03c4\\u03ae \\u03c3\\u03b1\\u03c2, \\u03ba\\u03b1\\u03b8\\u03ce\\u03c2 \\u03b1\\u03c5\\u03c4\\u03ae \\u03b7 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1 \\u03b4\\u03b5\\u03bd \\u03b5\\u03bc\\u03c6\\u03b1\\u03bd\\u03af\\u03b6\\u03b5\\u03c4\\u03b1\\u03b9 \\u03bc\\u03b5 HTTPS. \\u0395\\u03c0\\u03b9\\u03ba\\u03bf\\u03b9\\u03bd\\u03c9\\u03bd\\u03ae\\u03c3\\u03c4\\u03b5 \\u03bc\\u03b5 \\u03c4\\u03bf\\u03bd \\u03b4\\u03b7\\u03bc\\u03b9\\u03bf\\u03c5\\u03c1\\u03b3\\u03cc \\u03ba\\u03b1\\u03b9 \\u03b6\\u03b7\\u03c4\\u03ae\\u03c3\\u03c4\\u03b5 \\u03c4\\u03bf\\u03c5 \\u03bd\\u03b1 \\u03ba\\u03ac\\u03bd\\u03b5\\u03b9 \\u03b4\\u03b9\\u03b1\\u03b8\\u03ad\\u03c3\\u03b9\\u03bc\\u03bf \\u03c4\\u03bf \\u03c0\\u03b5\\u03c1\\u03b9\\u03b5\\u03c7\\u03cc\\u03bc\\u03b5\\u03bd\\u03bf \\u03c7\\u03c1\\u03b7\\u03c3\\u03b9\\u03bc\\u03bf\\u03c0\\u03bf\\u03b9\\u03ce\\u03bd\\u03c4\\u03b1\\u03c2 HTTPS\",\"statusReadyToRecord\":\"\\u03a0\\u03b1\\u03c4\\u03ae\\u03c3\\u03c4\\u03b5 \\u03c4\\u03bf \\u03c0\\u03b1\\u03c1\\u03b1\\u03ba\\u03ac\\u03c4\\u03c9 \\u03ba\\u03bf\\u03c5\\u03bc\\u03c0\\u03af \\u03b3\\u03b9\\u03b1 \\u03bd\\u03b1 \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03b1\\u03c6\\u03ae\\u03c3\\u03b5\\u03c4\\u03b5 \\u03c4\\u03b7\\u03bd \\u03b1\\u03c0\\u03ac\\u03bd\\u03c4\\u03b7\\u03c3\\u03ae \\u03c3\\u03b1\\u03c2.\",\"statusRecording\":\"\\u0397\\u03c7\\u03bf\\u03b3\\u03c1\\u03ac\\u03c6\\u03b7\\u03c3\\u03b7...\",\"statusPaused\":\"\\u0397 \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03ac\\u03c6\\u03b7\\u03c3\\u03b7 \\u03ad\\u03c7\\u03b5\\u03b9 \\u03c3\\u03c4\\u03b1\\u03bc\\u03b1\\u03c4\\u03ae\\u03c3\\u03b5\\u03b9. \\u03a0\\u03b1\\u03c4\\u03ae\\u03c3\\u03c4\\u03b5 \\u03c4\\u03bf \\u03ba\\u03bf\\u03c5\\u03bc\\u03c0\\u03af \\u03b3\\u03b9\\u03b1 \\u03bd\\u03b1 \\u03c4\\u03b7 \\u03c3\\u03c5\\u03bd\\u03b5\\u03c7\\u03af\\u03c3\\u03b5\\u03c4\\u03b5.\",\"statusFinishedRecording\":\"\\u0388\\u03c7\\u03b5\\u03c4\\u03b5 \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03b1\\u03c6\\u03ae\\u03c3\\u03b5\\u03b9 \\u03b5\\u03c0\\u03b9\\u03c4\\u03c5\\u03c7\\u03ce\\u03c2 \\u03c4\\u03b7\\u03bd \\u03b1\\u03c0\\u03ac\\u03bd\\u03c4\\u03b7\\u03c3\\u03ae \\u03c3\\u03b1\\u03c2! \\u0391\\u03ba\\u03bf\\u03cd\\u03c3\\u03c4\\u03b5 \\u03c0\\u03b1\\u03c1\\u03b1\\u03ba\\u03ac\\u03c4\\u03c9 \\u03c4\\u03b7\\u03bd \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03ac\\u03c6\\u03b7\\u03c3\\u03ae \\u03c3\\u03b1\\u03c2.\",\"downloadRecording\":\"\\u039a\\u03b1\\u03c4\\u03b5\\u03b2\\u03ac\\u03c3\\u03c4\\u03b5 \\u03c4\\u03b7\\u03bd \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03ac\\u03c6\\u03b7\\u03c3\\u03b7 \\u03ae \\u03c0\\u03c1\\u03bf\\u03c3\\u03c0\\u03b1\\u03b8\\u03ae\\u03c3\\u03c4\\u03b5 \\u03be\\u03b1\\u03bd\\u03ac.\",\"retryDialogHeaderText\":\"\\u0395\\u03c0\\u03b1\\u03bd\\u03ac\\u03bb\\u03b7\\u03c8\\u03b7 \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03ac\\u03c6\\u03b7\\u03c3\\u03b7\\u03c2;\",\"retryDialogBodyText\":\"\\u0395\\u03c0\\u03b9\\u03bb\\u03ad\\u03b3\\u03bf\\u03bd\\u03c4\\u03b1\\u03c2 &quot;\\u0395\\u03c0\\u03b1\\u03bd\\u03ac\\u03bb\\u03b7\\u03c8\\u03b7&quot; \\u03b7 \\u03c4\\u03c1\\u03ad\\u03c7\\u03bf\\u03c5\\u03c3\\u03b1 \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03ac\\u03c6\\u03b7\\u03c3\\u03ae \\u03c3\\u03b1\\u03c2 \\u03b8\\u03b1 \\u03c7\\u03b1\\u03b8\\u03b5\\u03af.\",\"retryDialogConfirmText\":\"\\u0395\\u03c0\\u03b1\\u03bd\\u03ac\\u03bb\\u03b7\\u03c8\\u03b7\",\"retryDialogCancelText\":\"\\u0391\\u03ba\\u03cd\\u03c1\\u03c9\\u03c3\\u03b7\",\"statusCantCreateTheAudioFile\":\"\\u0394\\u03b5\\u03bd \\u03b5\\u03af\\u03bd\\u03b1\\u03b9 \\u03b4\\u03c5\\u03bd\\u03b1\\u03c4\\u03ae \\u03b7 \\u03b4\\u03b7\\u03bc\\u03b9\\u03bf\\u03c5\\u03c1\\u03b3\\u03af\\u03b1 \\u03c4\\u03bf\\u03c5 \\u03b1\\u03c1\\u03c7\\u03b5\\u03af\\u03bf\\u03c5 \\u03ae\\u03c7\\u03bf\\u03c5.\"},\"title\":\"\\u03a6\\u03b1\\u03bd\\u03c4\\u03b1\\u03c3\\u03c4\\u03b5\\u03af\\u03c4\\u03b5 \\u03c0\\u03c9\\u03c2 \\u03b5\\u03af\\u03c3\\u03c4\\u03b5 \\u03b5\\u03b8\\u03b5\\u03bb\\u03bf\\u03bd\\u03c4\\u03ad\\u03c2. \\u0391\\u03ba\\u03bf\\u03cd\\u03c3\\u03c4\\u03b5 \\u03c0\\u03c1\\u03bf\\u03c3\\u03b5\\u03ba\\u03c4\\u03b9\\u03ba\\u03ac \\u03c4\\u03b9\\u03c2 \\u03b5\\u03c1\\u03c9\\u03c4\\u03ae\\u03c3\\u03b5\\u03b9\\u03c2 \\u03c4\\u03b7\\u03c2 \\u03c3\\u03c5\\u03bd\\u03ad\\u03bd\\u03c4\\u03b5\\u03c5\\u03be\\u03b7\\u03c2 \\u03ba\\u03b1\\u03b9 \\u03b1\\u03c0\\u03b1\\u03bd\\u03c4\\u03ae\\u03c3\\u03c4\\u03b5 \\u03c0\\u03c1\\u03bf\\u03c6\\u03bf\\u03c1\\u03b9\\u03ba\\u03ac \\u03b7\\u03c7\\u03bf\\u03b3\\u03c1\\u03b1\\u03c6\\u03ce\\u03bd\\u03c4\\u03b1\\u03c2 \\u03c4\\u03b9\\u03c2 \\u03b1\\u03c0\\u03b1\\u03bd\\u03c4\\u03ae\\u03c3\\u03b5\\u03b9\\u03c2 \\u03c3\\u03b1\\u03c2. \\u0395\\u03bd\\u03b1\\u03bb\\u03bb\\u03b1\\u03ba\\u03c4\\u03b9\\u03ba\\u03ac \\u03bc\\u03c0\\u03bf\\u03c1\\u03b5\\u03af\\u03c4\\u03b5 \\u03bd\\u03b1 \\u03ba\\u03b1\\u03c4\\u03b1\\u03b3\\u03c1\\u03ac\\u03c8\\u03b5\\u03c4\\u03b5 \\u03c4\\u03b9\\u03c2 \\u03b1\\u03c0\\u03b1\\u03bd\\u03c4\\u03ae\\u03c3\\u03b5\\u03b9\\u03c2 \\u03c3\\u03b5 \\u03ad\\u03bd\\u03b1 \\u03c4\\u03b5\\u03c4\\u03c1\\u03ac\\u03b4\\u03b9\\u03bf \\u03ba\\u03b1\\u03b9 \\u03bd\\u03b1 \\u03b4\\u03c1\\u03b1\\u03bc\\u03b1\\u03c4\\u03bf\\u03c0\\u03bf\\u03b9\\u03ae\\u03c3\\u03b5\\u03c4\\u03b5 \\u03c4\\u03b7 \\u03c3\\u03c5\\u03bd\\u03ad\\u03bd\\u03c4\\u03b5\\u03c5\\u03be\\u03b7 \\u03c3\\u03c4\\u03b7\\u03bd \\u03c4\\u03ac\\u03be\\u03b7 \\u03bc\\u03bf\\u03b9\\u03c1\\u03ac\\u03b6\\u03bf\\u03bd\\u03c4\\u03b1\\u03c2 \\u03c1\\u03cc\\u03bb\\u03bf\\u03c5\\u03c2.\"},\"library\":\"H5P.AudioRecorder 1.0\",\"metadata\":{\"contentType\":\"Audio Recorder\",\"license\":\"U\",\"title\":\"Untitled Audio Recorder\"},\"subContentId\":\"1e556a9f-50a2-4778-907a-ea8cd5db0168\"},\"useSeparator\":\"auto\"}]},\"library\":\"H5P.Column 1.18\",\"subContentId\":\"129eaeff-ed91-4a4d-a5ec-fe9b4a68f310\",\"metadata\":{\"contentType\":\"Column\",\"license\":\"U\",\"title\":\"\\u0395\\u03c1\\u03c9\\u03c4\\u03ae\\u03c3\\u03b5\\u03b9\\u03c2 \\u03c4\\u03b7\\u03c2 \\u03a3\\u03c5\\u03bd\\u03ad\\u03bd\\u03c4\\u03b5\\u03c5\\u03be\\u03b7\\u03c2\"}}],\"behaviour\":{\"baseColor\":\"#1768c4\",\"defaultTableOfContents\":true,\"progressIndicators\":true,\"progressAuto\":true,\"displaySummary\":true,\"enableRetry\":true},\"read\":\"\\u0391\\u03bd\\u03ac\\u03b3\\u03bd\\u03c9\\u03c3\\u03b7\",\"displayTOC\":\"\\u03a0\\u03c1\\u03bf\\u03b2\\u03bf\\u03bb\\u03ae &#039;\\u03a0\\u03af\\u03bd\\u03b1\\u03ba\\u03b1 \\u03a0\\u03b5\\u03c1\\u03b9\\u03b5\\u03c7\\u03bf\\u03bc\\u03ad\\u03bd\\u03c9\\u03bd&#039;\",\"hideTOC\":\"\\u0391\\u03c0\\u03cc\\u03ba\\u03c1\\u03c5\\u03c8\\u03b7 &#039;\\u03a0\\u03af\\u03bd\\u03b1\\u03ba\\u03b1 \\u03a0\\u03b5\\u03c1\\u03b9\\u03b5\\u03c7\\u03bf\\u03bc\\u03ad\\u03bd\\u03c9\\u03bd&#039;\",\"nextPage\":\"\\u0395\\u03c0\\u03cc\\u03bc\\u03b5\\u03bd\\u03b7 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1\",\"previousPage\":\"\\u03a0\\u03c1\\u03bf\\u03b7\\u03b3\\u03bf\\u03cd\\u03bc\\u03b5\\u03bd\\u03b7 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1\",\"chapterCompleted\":\"\\u039f\\u03bb\\u03bf\\u03ba\\u03bb\\u03b7\\u03c1\\u03c9\\u03bc\\u03ad\\u03bd\\u03b7 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1!\",\"partCompleted\":\"@pages \\u03b1\\u03c0\\u03cc @total \\u03ad\\u03c7\\u03bf\\u03c5\\u03bd \\u03bf\\u03bb\\u03bf\\u03ba\\u03bb\\u03b7\\u03c1\\u03c9\\u03b8\\u03b5\\u03af\",\"incompleteChapter\":\"\\u039c\\u03b7 \\u03bf\\u03bb\\u03bf\\u03ba\\u03bb\\u03b7\\u03c1\\u03c9\\u03bc\\u03ad\\u03bd\\u03b7 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1\",\"navigateToTop\":\"\\u039c\\u03b5\\u03c4\\u03ac\\u03b2\\u03b1\\u03c3\\u03b7 \\u03c3\\u03c4\\u03b7\\u03bd \\u03ba\\u03bf\\u03c1\\u03c5\\u03c6\\u03ae\",\"markAsFinished\":\"\\u0388\\u03c7\\u03c9 \\u03bf\\u03bb\\u03bf\\u03ba\\u03bb\\u03b7\\u03c1\\u03ce\\u03c3\\u03b5\\u03b9 \\u03b1\\u03c5\\u03c4\\u03ae\\u03bd \\u03c4\\u03b7 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1\",\"fullscreen\":\"\\u03a0\\u03bb\\u03ae\\u03c1\\u03b7\\u03c2 \\u03bf\\u03b8\\u03cc\\u03bd\\u03b7\",\"exitFullscreen\":\"\\u0388\\u03be\\u03bf\\u03b4\\u03bf\\u03c2 \\u03b1\\u03c0\\u03cc \\u03c0\\u03c1\\u03cc\\u03b2\\u03bf\\u03bb\\u03ae \\u03c0\\u03bb\\u03ae\\u03c1\\u03bf\\u03c5\\u03c2 \\u03bf\\u03b8\\u03cc\\u03bd\\u03b7\\u03c2\",\"bookProgressSubtext\":\"@count \\u03b1\\u03c0\\u03cc @total \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b5\\u03c2\",\"interactionsProgressSubtext\":\"@count \\u03b1\\u03c0\\u03cc @total \\u03b4\\u03c1\\u03b1\\u03c3\\u03c4\\u03b7\\u03c1\\u03b9\\u03bf\\u03c4\\u03ae\\u03c4\\u03c9\\u03bd\",\"submitReport\":\"\\u03a5\\u03c0\\u03bf\\u03b2\\u03bf\\u03bb\\u03ae \\u0391\\u03bd\\u03b1\\u03c6\\u03bf\\u03c1\\u03ac\\u03c2\",\"restartLabel\":\"\\u0395\\u03c0\\u03b1\\u03bd\\u03b5\\u03ba\\u03ba\\u03af\\u03bd\\u03b7\\u03c3\\u03b7\",\"summaryHeader\":\"\\u03a0\\u03b5\\u03c1\\u03af\\u03bb\\u03b7\\u03c8\\u03b7\",\"allInteractions\":\"\\u038c\\u03bb\\u03b5\\u03c2 \\u03bf\\u03b9 \\u03b4\\u03b9\\u03b1\\u03b4\\u03c1\\u03ac\\u03c3\\u03b5\\u03b9\\u03c2\",\"unansweredInteractions\":\"\\u0394\\u03b9\\u03b1\\u03b4\\u03c1\\u03ac\\u03c3\\u03b5\\u03b9\\u03c2 \\u03c0\\u03bf\\u03c5 \\u03b4\\u03b5\\u03bd \\u03b1\\u03c0\\u03b1\\u03bd\\u03c4\\u03ae\\u03b8\\u03b7\\u03ba\\u03b1\\u03bd\",\"scoreText\":\"@score \\\/ @maxscore\",\"leftOutOfTotalCompleted\":\"@left \\u03b1\\u03c0\\u03cc @max \\u03b4\\u03b9\\u03b1\\u03b4\\u03c1\\u03ac\\u03c3\\u03b5\\u03b9\\u03c2 \\u03ad\\u03c7\\u03bf\\u03c5\\u03bd \\u03bf\\u03bb\\u03bf\\u03ba\\u03bb\\u03b7\\u03c1\\u03c9\\u03b8\\u03b5\\u03af\",\"noInteractions\":\"\\u0394\\u03b5\\u03bd \\u03c5\\u03c0\\u03ac\\u03c1\\u03c7\\u03bf\\u03c5\\u03bd \\u03b4\\u03b9\\u03b1\\u03b4\\u03c1\\u03ac\\u03c3\\u03b5\\u03b9\\u03c2\",\"score\":\"\\u0392\\u03b1\\u03b8\\u03bc\\u03bf\\u03bb\\u03bf\\u03b3\\u03af\\u03b1\",\"summaryAndSubmit\":\"\\u03a0\\u03b5\\u03c1\\u03af\\u03bb\\u03b7\\u03c8\\u03b7 &amp; \\u03c5\\u03c0\\u03bf\\u03b2\\u03bf\\u03bb\\u03ae\",\"noChapterInteractionBoldText\":\"\\u0394\\u03b5\\u03bd \\u03ad\\u03c7\\u03b5\\u03c4\\u03b5 \\u03bf\\u03bb\\u03bf\\u03ba\\u03bb\\u03b7\\u03c1\\u03ce\\u03c3\\u03b5\\u03b9 \\u03ba\\u03b1\\u03bc\\u03af\\u03b1 \\u03b4\\u03b9\\u03ac\\u03b4\\u03c1\\u03b1\\u03c3\\u03b7 \\u03c3\\u03b5 \\u03ba\\u03b1\\u03bc\\u03af\\u03b1 \\u03b1\\u03c0\\u03cc \\u03c4\\u03b9\\u03c2 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b5\\u03c2.\",\"noChapterInteractionText\":\"\\u03a0\\u03c1\\u03ad\\u03c0\\u03b5\\u03b9 \\u03bd\\u03b1 \\u03ad\\u03c7\\u03b5\\u03c4\\u03b5 \\u03bf\\u03bb\\u03bf\\u03ba\\u03bb\\u03b7\\u03c1\\u03ce\\u03c3\\u03b5\\u03b9 \\u03c4\\u03bf\\u03c5\\u03bb\\u03ac\\u03c7\\u03b9\\u03c3\\u03c4\\u03bf\\u03bd \\u03bc\\u03b9\\u03b1 \\u03b4\\u03b9\\u03ac\\u03b4\\u03c1\\u03b1\\u03c3\\u03b7 \\u03c3\\u03b5 \\u03c4\\u03bf\\u03c5\\u03bb\\u03ac\\u03c7\\u03b9\\u03c3\\u03c4\\u03bf\\u03bd \\u03bc\\u03b9\\u03b1 \\u03c3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1 \\u03b3\\u03b9\\u03b1 \\u03bd\\u03b1 \\u03bc\\u03c0\\u03bf\\u03c1\\u03ad\\u03c3\\u03b5\\u03c4\\u03b5 \\u03bd\\u03b1 \\u03c0\\u03c1\\u03bf\\u03b2\\u03ac\\u03bb\\u03b5\\u03c4\\u03b5 \\u03c4\\u03b7\\u03bd \\u03c0\\u03b5\\u03c1\\u03af\\u03bb\\u03b7\\u03c8\\u03b7.\",\"yourAnswersAreSubmittedForReview\":\"\\u039f\\u03b9 \\u03b1\\u03c0\\u03b1\\u03bd\\u03c4\\u03ae\\u03c3\\u03b5\\u03b9\\u03c2 \\u03c3\\u03b1\\u03c2 \\u03ad\\u03c7\\u03bf\\u03c5\\u03bd \\u03c5\\u03c0\\u03bf\\u03b2\\u03bb\\u03b7\\u03b8\\u03b5\\u03af \\u03b3\\u03b9\\u03b1 \\u03ad\\u03bb\\u03b5\\u03b3\\u03c7\\u03bf!\",\"bookProgress\":\"\\u03a0\\u03c1\\u03cc\\u03bf\\u03b4\\u03bf\\u03c2 \\u03c3\\u03c4\\u03bf \\u03b2\\u03b9\\u03b2\\u03bb\\u03af\\u03bf\",\"interactionsProgress\":\"\\u03a0\\u03c1\\u03cc\\u03bf\\u03b4\\u03bf\\u03c2 \\u03b4\\u03b9\\u03b1\\u03b4\\u03c1\\u03ac\\u03c3\\u03b5\\u03c9\\u03bd\",\"totalScoreLabel\":\"\\u03a3\\u03c5\\u03bd\\u03bf\\u03bb\\u03b9\\u03ba\\u03ae \\u03b2\\u03b1\\u03b8\\u03bc\\u03bf\\u03bb\\u03bf\\u03b3\\u03af\\u03b1\",\"a11y\":{\"progress\":\"\\u03a3\\u03b5\\u03bb\\u03af\\u03b4\\u03b1 @page \\u03b1\\u03c0\\u03cc @total.\",\"menu\":\"\\u0395\\u03bd\\u03b1\\u03bb\\u03bb\\u03b1\\u03b3\\u03ae \\u03bc\\u03b5\\u03bd\\u03bf\\u03cd \\u03c0\\u03bb\\u03bf\\u03ae\\u03b3\\u03b7\\u03c3\\u03b7\\u03c2\"}}"}}});