H5PIntegration = {
  ajax: { setFinished: "", contentUserData: "" },
  ajaxPath: "/h5p/ajax?action=",
  contents: {
    "cid-1540343995": {
      displayOptions: {
        copy: false,
        copyright: true,
        embed: false,
        export: false,
        frame: true,
        icon: false,
      },
      fullScreen: "0",
      jsonContent:
        '{"branchingScenario":{"content":[{"type":{"library":"H5P.Image 1.1","params":{"contentName":"Εικόνα","file":{"path":"resources/image-VSCKRsN8.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":1900,"height":1300},"alt":"Οικονομικό κύκλωμα. Ανακάλυψε τις σχέσεις που διέπουν τις οικονομικές μονάδες.","title":"Οικονομικό κύκλωμα","decorative":false,"expandImage":"Expand Image","minimizeImage":"Minimize Image"},"subContentId":"45f762e4-60b2-4782-9972-fe593e629286","metadata":{"contentType":"Image","license":"U","title":"Οικονομικό κύκλωμα","authors":[{"name":"ΚΟΥΤΕΛΙΔΑ ΑΝΤΩΝΙΑ","role":"Author"}],"changes":[]}},"showContentTitle":false,"feedback":{"subtitle":"","title":" "},"nextContentId":1,"contentId":0},{"type":{"library":"H5P.BranchingQuestion 1.0","params":{"branchingQuestion":{"alternatives":[{"nextContentId":-1,"feedback":{"subtitle":"<p>Προσπάθησε ξανά</p>\\n","title":" "},"text":"Οι επιχειρήσεις"},{"nextContentId":-1,"feedback":{"subtitle":"<p>Προσπάθησε ξανά</p>\\n","title":" "},"text":"Τα νοικοκυριά"},{"nextContentId":-1,"feedback":{"title":" ","subtitle":"<p>Προσπάθησε ξανά</p>\\n"},"text":"Το Κράτος"},{"nextContentId":4,"feedback":{"subtitle":"","title":"Μπράβο!","endScreenScore":1},"text":"Οι Επιχειρήσεις, τα Νοικοκυριά και το Κράτος"}],"question":"<p>Ποιές είναι οι οικονομικές μονάδες;</p>\\n"},"proceedButtonText":"Συνέχισε"},"subContentId":"0afe54d4-6bb7-4fcd-9281-d7e31280c18b","metadata":{"contentType":"Branching Question","license":"U","title":"Branching Question χωρίς τίτλο","authors":[],"changes":[],"extraTitle":"Branching Question χωρίς τίτλο"}},"showContentTitle":false,"feedback":{"subtitle":""},"contentId":1},{"type":{"library":"H5P.BranchingQuestion 1.0","params":{"branchingQuestion":{"alternatives":[{"nextContentId":-1,"feedback":{"subtitle":""},"text":"αγαθά και υπηρεσίες"},{"nextContentId":-1,"feedback":{"subtitle":""},"text":"χρήματα"}],"question":"<p>Τι ζητούν τα νοικοκυριά απο τις επιχειρήσεις και τι παρέχουν για αντάλλαγμα;</p>\\n"},"proceedButtonText":"Συνέχισε"},"subContentId":"1562a3e7-3cbd-4512-80b2-31548720bcd8","metadata":{"contentType":"Branching Question","license":"U","title":"Branching Question χωρίς τίτλο","authors":[],"changes":[],"extraTitle":"Branching Question χωρίς τίτλο"}},"showContentTitle":false,"feedback":{"subtitle":""},"contentId":2},{"type":{"library":"H5P.ImageHotspots 1.8","params":{"iconType":"icon","icon":"plus","color":"#981d99","hotspots":[],"hotspotNumberLabel":"Hotspot #num","closeButtonLabel":"Κλείσιμο"},"subContentId":"81a775e1-8ef1-428a-b009-89a4e65f4205","metadata":{"contentType":"Image Hotspots","license":"U","title":"φ","authors":[],"changes":[],"extraTitle":"φ"}},"showContentTitle":false,"feedback":{"subtitle":""},"nextContentId":-1,"contentId":3},{"type":{"library":"H5P.ImageHotspots 1.8","params":{"iconType":"icon","icon":"plus","color":"#981d99","hotspots":[],"hotspotNumberLabel":"Hotspot #num","closeButtonLabel":"Κλείσιμο","image":{"path":"resources/image-PX673IBZ.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":1900,"height":1300}},"subContentId":"7562656c-cf7b-4e28-9d7d-432be1fa483c","metadata":{"contentType":"Image Hotspots","license":"U","title":"οικονομικές μονάδες","authors":[],"changes":[],"extraTitle":"οικονομικές μονάδες"}},"showContentTitle":false,"feedback":{"subtitle":""},"nextContentId":5,"contentId":4},{"type":{"library":"H5P.BranchingQuestion 1.0","params":{"branchingQuestion":{"alternatives":[{"nextContentId":6,"feedback":{"subtitle":"","title":"Μπράβο!","endScreenScore":1},"text":"εισόδημα"},{"nextContentId":-1,"feedback":{"subtitle":"","title":"Προσπάθησε ξανά"},"text":"κάνουν ανταλλαγή αγαθών"}],"question":"<p>Τι λαμβάνουν τα νοικοκυριά από τις επιχειρήσεις;</p>\\n"},"proceedButtonText":"Συνέχισε"},"subContentId":"f9a473e7-f923-4813-815b-6671fce54b0c","metadata":{"contentType":"Branching Question","license":"U","title":"χ","authors":[],"changes":[],"extraTitle":"χ"}},"showContentTitle":false,"feedback":{"subtitle":""},"contentId":5},{"type":{"library":"H5P.ImageHotspots 1.8","params":{"iconType":"icon","icon":"plus","color":"#981d99","hotspots":[],"hotspotNumberLabel":"Hotspot #num","closeButtonLabel":"Κλείσιμο","image":{"path":"resources/image-K0aAH05H.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":1900,"height":1300}},"subContentId":"ad8e35ec-409a-4efb-8b21-cc0c0058b486","metadata":{"contentType":"Image Hotspots","license":"U","title":"Image 1","authors":[],"changes":[],"extraTitle":"Image 1"}},"showContentTitle":false,"feedback":{"subtitle":""},"nextContentId":7,"contentId":6},{"type":{"library":"H5P.BranchingQuestion 1.0","params":{"branchingQuestion":{"alternatives":[{"nextContentId":-1,"feedback":{"title":"Προσπάθησε ξανά","subtitle":""},"text":"εισόδημα"},{"nextContentId":8,"feedback":{"title":"Μπράβο","endScreenScore":1,"subtitle":""},"text":"παραγωγικούς συντελεστές"}],"question":"<p>Τι παρέχουν τα νοικοκυριά στις επιχειρήσεις προκειμένου να παράγουν αγαθά;</p>\\n"},"proceedButtonText":"Συνέχισε"},"subContentId":"3a1e19d1-cb98-4069-bd68-d49f45ee73cc","metadata":{"contentType":"Branching Question","license":"U","title":"Branching Question χωρίς τίτλο","authors":[],"changes":[],"extraTitle":"Branching Question χωρίς τίτλο"}},"showContentTitle":false,"feedback":{"subtitle":""},"contentId":7},{"type":{"library":"H5P.ImageHotspots 1.8","params":{"iconType":"icon","icon":"plus","color":"#981d99","hotspots":[],"hotspotNumberLabel":"Hotspot #num","closeButtonLabel":"Κλείσιμο","image":{"path":"resources/image-BvKRtPVF.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":1900,"height":1300}},"subContentId":"e2386415-ca8f-43e5-9b4a-e31ef95e6f52","metadata":{"contentType":"Image Hotspots","license":"U","title":"Image Hotspots2","authors":[],"changes":[],"extraTitle":"Image Hotspots2"}},"showContentTitle":false,"feedback":{"subtitle":""},"nextContentId":9,"contentId":8},{"type":{"library":"H5P.BranchingQuestion 1.0","params":{"branchingQuestion":{"alternatives":[{"nextContentId":-1,"feedback":{"title":"Προσπάθησε ξανά","subtitle":""},"text":"παραγωγικούς συντελεστές"},{"feedback":{"title":"Μπράβο!","subtitle":"","endScreenScore":1},"text":"εισόδημα","nextContentId":10}],"question":"<p>Τι παρέχουν οι επιχειρήσεις στο κράτος προκειμένου να τους παρέχουν υπηρεσίες;</p>\\n"},"proceedButtonText":"Συνέχισε"},"subContentId":"f618cd16-4d91-46f3-9c6e-f80ebb87b8ff","metadata":{"contentType":"Branching Question","license":"U","title":"Branching Question 3","authors":[],"changes":[],"extraTitle":"Branching Question 3"}},"showContentTitle":false,"feedback":{"subtitle":""},"contentId":9},{"type":{"library":"H5P.ImageHotspots 1.8","params":{"iconType":"icon","icon":"plus","color":"#981d99","hotspots":[],"hotspotNumberLabel":"Hotspot #num","closeButtonLabel":"Κλείσιμο","image":{"path":"resources/image-CNcjRMd1.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":1900,"height":1300}},"subContentId":"58e1ce13-76f4-4081-b398-4bd3c30451cf","metadata":{"contentType":"Image Hotspots","license":"U","title":"Image Hotspots 3","authors":[],"changes":[],"extraTitle":"Image Hotspots 3"}},"showContentTitle":false,"feedback":{"subtitle":""},"nextContentId":12,"contentId":10},{"type":{"library":"H5P.ImageHotspots 1.8","params":{"iconType":"icon","icon":"plus","color":"#981d99","hotspotNumberLabel":"Hotspot #num","closeButtonLabel":"Κλείσιμο","image":{"path":"resources/image-rIurAv2E.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":1900,"height":1300},"hotspots":[]},"subContentId":"4740daea-f1bb-42ad-8049-fd13b7111236","metadata":{"contentType":"Image Hotspots","license":"U","title":"Image Hotspots4","authors":[],"changes":[],"extraTitle":"Image Hotspots4"}},"showContentTitle":false,"feedback":{"title":"Μπράβο, ανακάλυψες τις σχέσεις που διέπουν τις οικονομικές μονάδες!","endScreenScore":1,"subtitle":"","image":{"path":"resources/image-cWejWhDE.png","mime":"image/png","copyright":{"license":"U"},"width":1052,"height":812}},"nextContentId":-1,"contentId":11},{"type":{"library":"H5P.BranchingQuestion 1.0","params":{"branchingQuestion":{"alternatives":[{"nextContentId":11,"feedback":{"subtitle":""},"text":"εισόδημα"},{"nextContentId":-1,"feedback":{"title":"Προσπάθησε ξανά","subtitle":""},"text":"παραγωγικούς συντελεστές"}],"question":"<p>Τι παρέχουν τα νοικοκυριά στο κράτος προκειμένου να τους παρέχουν υπηρεσίες</p>\\n"},"proceedButtonText":"Συνέχισε"},"subContentId":"502c6f6f-fabc-4775-bd13-98b9e3bcdff2","metadata":{"contentType":"Branching Question","license":"U","title":"Branching Question χωρίς τίτλο","authors":[],"changes":[],"extraTitle":"Branching Question χωρίς τίτλο"}},"showContentTitle":false,"feedback":{"subtitle":""},"contentId":12}],"endScreens":[{"endScreenTitle":"Οικονομικό κύκλωμα","endScreenSubtitle":"","contentId":-1,"endScreenScore":0}],"scoringOption":"dynamic-score","startScreen":{"startScreenTitle":"Οικονομικό κύκλωμα","startScreenSubtitle":"Οι σχέσεις που δημιουργούνται μεταξύ των βασικών μονάδων ενός οικονομικού συστήματος","startScreenImage":{"path":"resources/image-LWeyICOe.jpg","mime":"image/jpeg","copyright":{"license":"U"},"width":1700,"height":1300}},"l10n":{"startScreenButtonText":"Ξεκίνησε","endScreenButtonText":"Ξεκίνησε ξανά","proceedButtonText":"Συνέχισε","scoreText":"Η βαθμολογία σου:"}}}',
      library: "H5P.BranchingScenario 1.2",
      metadata: {
        license: "U",
        title: "Οικονομικό κύκλωμα",
        defaultLanguage: "el",
      },
      scripts: [
        "/h5p/libraries/H5P.Image-1.1/image.js?version=1.1.22",
        "/h5p/libraries/H5P.BranchingQuestion-1.0/branchingQuestion.js?version=1.0.6",
        "/h5p/libraries/H5P.Transition-1.0/transition.js?version=1.0.4",
        "/h5p/libraries/H5P.ImageHotspots-1.8/scripts/image-hotspots.js?version=1.8.3",
        "/h5p/libraries/H5P.ImageHotspots-1.8/scripts/hotspot.js?version=1.8.3",
        "/h5p/libraries/H5P.ImageHotspots-1.8/scripts/popup.js?version=1.8.3",
        "/h5p/libraries/H5P.Text-1.1/scripts/text.js?version=1.1.17",
        "/h5p/libraries/H5P.BranchingScenario-1.2/dist/dist.js?version=1.2.1",
      ],
      styles: [
        "/h5p/libraries/H5P.Image-1.1/image.css?version=1.1.22",
        "/h5p/libraries/FontAwesome-4.5/h5p-font-awesome.min.css?version=4.5.4",
        "/h5p/libraries/H5P.BranchingQuestion-1.0/branchingQuestion.css?version=1.0.6",
        "/h5p/libraries/H5P.ImageHotspots-1.8/styles/image-hotspots.css?version=1.8.3",
        "/h5p/libraries/H5P.Text-1.1/styles/text.css?version=1.1.17",
        "/h5p/libraries/H5P.BranchingScenario-1.2/styles/branchingScenario.css?version=1.2.1",
        "/h5p/libraries/H5P.BranchingScenario-1.2/styles/branchingQuestion.css?version=1.2.1",
        "/h5p/libraries/H5P.BranchingScenario-1.2/styles/genericScreen.css?version=1.2.1",
        "/h5p/libraries/H5P.BranchingScenario-1.2/styles/libraryScreen.css?version=1.2.1",
      ],
      url: "1540343995",
      exportUrl: "/h5p/download/1540343995",
    },
  },
  core: {
    scripts: [
      "/h5p/core/js/jquery.js?version=1.24-master",
      "/h5p/core/js/h5p.js?version=1.24-master",
      "/h5p/core/js/h5p-event-dispatcher.js?version=1.24-master",
      "/h5p/core/js/h5p-x-api-event.js?version=1.24-master",
      "/h5p/core/js/h5p-x-api.js?version=1.24-master",
      "/h5p/core/js/h5p-content-type.js?version=1.24-master",
      "/h5p/core/js/h5p-confirmation-dialog.js?version=1.24-master",
      "/h5p/core/js/h5p-action-bar.js?version=1.24-master",
      "/h5p/core/js/request-queue.js?version=1.24-master",
    ],
    styles: [
      "/h5p/core/styles/h5p.css?version=1.24-master",
      "/h5p/core/styles/h5p-confirmation-dialog.css?version=1.24-master",
      "/h5p/core/styles/h5p-core-button.css?version=1.24-master",
    ],
  },
  l10n: {
    H5P: {
      fullscreen: "Fullscreen",
      disableFullscreen: "Disable fullscreen",
      download: "Download",
      copyrights: "Rights of use",
      embed: "Embed",
      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: "Rights of use",
      close: "Close",
      title: "Title",
      author: "Author",
      year: "Year",
      source: "Source",
      license: "License",
      thumbnail: "Thumbnail",
      noCopyrights: "No copyright information available for this content.",
      reuse: "Reuse",
      reuseContent: "Reuse Content",
      reuseDescription: "Reuse this content.",
      downloadDescription: "Download this content as a H5P file.",
      copyrightsDescription: "View copyright information for this content.",
      embedDescription: "View the embed code for this content.",
      h5pDescription: "Visit H5P.org to check out more cool content.",
      contentChanged: "This content has changed since you last used it.",
      startingOver: "You'll be starting over.",
      by: "by",
      showMore: "Show more",
      showLess: "Show less",
      subLevel: "Sublevel",
      confirmDialogHeader: "Confirm action",
      confirmDialogBody:
        "Please confirm that you wish to proceed. This action is not reversible.",
      cancelLabel: "Cancel",
      confirmLabel: "Confirm",
      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: "Content Type",
      licenseExtras: "License Extras",
      changes: "Changelog",
      contentCopied: "Content is copied to the clipboard",
      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: "Retrying in :num....",
      offlineDialogRetryButtonLabel: "Retry now",
      offlineSuccessfulSubmit: "Successfully submitted results.",
      mainTitle: "Sharing <strong>:title</strong>",
      editInfoTitle: "Edit info for <strong>:title</strong>",
      cancel: "Cancel",
      back: "Back",
      next: "Next",
      reviewInfo: "Review info",
      share: "Share",
      saveChanges: "Save changes",
      registerOnHub: "Register on the H5P Hub",
      updateRegistrationOnHub: "Save account settings",
      requiredInfo: "Required Info",
      optionalInfo: "Optional Info",
      reviewAndShare: "Review & Share",
      reviewAndSave: "Review & Save",
      shared: "Shared",
      currentStep: "Step :step of :total",
      sharingNote: "All content details can be edited after sharing",
      licenseDescription: "Select a license for your content",
      licenseVersion: "License Version",
      licenseVersionDescription: "Select a license version",
      disciplineLabel: "Disciplines",
      disciplineDescription: "You can select multiple disciplines",
      disciplineLimitReachedMessage:
        "You can select up to :numDisciplines disciplines",
      discipline: {
        searchPlaceholder: "Type to search for disciplines",
        in: "in",
        dropdownButton: "Dropdown button",
      },
      removeChip: "Remove :chip from the list",
      keywordsPlaceholder: "Add keywords",
      keywords: "Keywords",
      keywordsDescription:
        'You can add multiple keywords separated by commas. Press "Enter" or "Add" to confirm keywords',
      altText: "Alt text",
      reviewMessage: "Please review the info below before you share",
      subContentWarning:
        "Sub-content (images, questions etc.) will be shared under :license unless otherwise specified in the authoring tool",
      disciplines: "Disciplines",
      shortDescription: "Short description",
      longDescription: "Long description",
      icon: "Icon",
      screenshots: "Screenshots",
      helpChoosingLicense: "Help me choose a license",
      shareFailed: "Share failed.",
      editingFailed: "Editing failed.",
      shareTryAgain: "Something went wrong, please try to share again.",
      pleaseWait: "Please wait...",
      language: "Language",
      level: "Level",
      shortDescriptionPlaceholder: "Short description of your content",
      longDescriptionPlaceholder: "Long description of your content",
      description: "Description",
      iconDescription:
        "640x480px. If not selected content will use category icon",
      screenshotsDescription: "Add up to five screenshots of your content",
      submitted: "Submitted!",
      isNowSubmitted: "Is now submitted to H5P Hub",
      changeHasBeenSubmitted: "A change has been submited for",
      contentAvailable:
        "Your content will normally be available in the Hub within one business day.",
      contentUpdateSoon: "Your content will update soon",
      contentLicenseTitle: "Content License Info",
      licenseDialogDescription:
        "Click on a specific license to get info about proper usage",
      publisherFieldTitle: "Publisher",
      publisherFieldDescription:
        'This will display as the "Publisher name" on shared content',
      emailAddress: "Email Address",
      publisherDescription: "Publisher description",
      publisherDescriptionText:
        'This will be displayed under "Publisher info" on shared content',
      contactPerson: "Contact Person",
      phone: "Phone",
      address: "Address",
      city: "City",
      zip: "Zip",
      country: "Country",
      logoUploadText: "Organization logo or avatar",
      acceptTerms:
        "I accept the <a href=':url' target='_blank'>terms of use</a>",
      successfullyRegistred:
        "You have successfully registered an account on the H5P Hub",
      successfullyRegistredDescription: "You account details can be changed",
      successfullyUpdated:
        "Your H5P Hub account settings have successfully been changed",
      accountDetailsLinkText: "here",
      registrationTitle: "H5P Hub Registration",
      registrationFailed: "An error occurred",
      registrationFailedDescription:
        "We were not able to create an account at this point. Something went wrong. Try again later.",
      maxLength: ":length is the maximum number of characters",
      keywordExists: "Keyword already exists!",
      licenseDetails: "License details",
      remove: "Remove",
      removeImage: "Remove image",
      cancelPublishConfirmationDialogTitle: "Cancel sharing",
      cancelPublishConfirmationDialogDescription:
        "Are you sure you want to cancel the sharing process?",
      cancelPublishConfirmationDialogCancelButtonText: "No",
      cancelPublishConfirmationDialogConfirmButtonText: "Yes",
      add: "Add",
      age: "Typical age",
      ageDescription:
        'The target audience of this content. Possible input formats separated by commas: "1,34-45,-50,59-".',
      invalidAge:
        'Invalid input format for Typical age. Possible input formats separated by commas: "1, 34-45, -50, -59-".',
      contactPersonDescription:
        'H5P will reach out to the contact person in case there are any issues with the content shared by the publisher. The contact person"s name or other information will not be published or shared with third parties',
      emailAddressDescription:
        "The email address will be used by H5P to reach out to the publisher in case of any issues with the content or in case the publisher needs to recover their account. It will not be published or shared with any third parties",
      copyrightWarning:
        "Copyrighted material cannot be shared in the H5P Content Hub. If the content is licensed with a OER friendly license like Creative Commons, please choose the appropriate license. If not this content cannot be shared.",
      keywordsExits: "Keywords already exists!",
      someKeywordsExits: "Some of these keywords already exist",
    },
  },
  postUserStatistics: false,
  saveFreq: false,
  url: ".",
  hubIsEnabled: true,
  fullscreenDisabled: 0,
  user: { name: "Firstname Surname", id: "1" },
  baseUrl: ".",
  libraryUrl: "",
};

if (new URLSearchParams(window.location.search).get("embed") == "true") {
  H5PIntegration.contents["cid-" + "1540343995"].displayOptions.embed = false;
} else {
  H5PIntegration.contents["cid-" + "1540343995"].embedCode =
    '<iframe src="' +
    window.location.protocol +
    "//" +
    window.location.host +
    window.location.pathname +
    "?embed=true" +
    '" width=":w" height=":h" frameborder="0" allowfullscreen="allowfullscreen"></iframe>';
  H5PIntegration.contents["cid-" + "1540343995"].resizeCode = "";
}

/*!@license js/jquery.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/
!(function (e, t) {
  "use strict";
  "object" == typeof module && "object" == typeof module.exports
    ? (module.exports = e.document
        ? t(e, !0)
        : function (e) {
            if (!e.document)
              throw new Error("jQuery requires a window with a document");
            return t(e);
          })
    : t(e);
})("undefined" != typeof window ? window : this, function (H, e) {
  "use strict";
  function g(e) {
    return "function" == typeof e && "number" != typeof e.nodeType;
  }
  function m(e) {
    return null != e && e === e.window;
  }
  var t = [],
    n = Object.getPrototypeOf,
    s = t.slice,
    v = t.flat
      ? function (e) {
          return t.flat.call(e);
        }
      : function (e) {
          return t.concat.apply([], e);
        },
    c = t.push,
    i = t.indexOf,
    r = {},
    o = r.toString,
    y = r.hasOwnProperty,
    a = y.toString,
    l = a.call(Object),
    b = {},
    w = H.document,
    u = { type: !0, src: !0, nonce: !0, noModule: !0 };
  function x(e, t, n) {
    var r,
      i,
      o = (n = n || w).createElement("script");
    if (((o.text = e), t))
      for (r in u)
        (i = t[r] || (t.getAttribute && t.getAttribute(r))) &&
          o.setAttribute(r, i);
    n.head.appendChild(o).parentNode.removeChild(o);
  }
  function f(e) {
    return null == e
      ? e + ""
      : "object" == typeof e || "function" == typeof e
      ? r[o.call(e)] || "object"
      : typeof e;
  }
  var d = "3.5.1",
    C = function (e, t) {
      return new C.fn.init(e, t);
    };
  function p(e) {
    var t = !!e && "length" in e && e.length,
      n = f(e);
    return (
      !g(e) &&
      !m(e) &&
      ("array" === n ||
        0 === t ||
        ("number" == typeof t && 0 < t && t - 1 in e))
    );
  }
  (C.fn = C.prototype =
    {
      jquery: d,
      constructor: C,
      length: 0,
      toArray: function () {
        return s.call(this);
      },
      get: function (e) {
        return null == e
          ? s.call(this)
          : e < 0
          ? this[e + this.length]
          : this[e];
      },
      pushStack: function (e) {
        e = C.merge(this.constructor(), e);
        return (e.prevObject = this), e;
      },
      each: function (e) {
        return C.each(this, e);
      },
      map: function (n) {
        return this.pushStack(
          C.map(this, function (e, t) {
            return n.call(e, t, e);
          })
        );
      },
      slice: function () {
        return this.pushStack(s.apply(this, arguments));
      },
      first: function () {
        return this.eq(0);
      },
      last: function () {
        return this.eq(-1);
      },
      even: function () {
        return this.pushStack(
          C.grep(this, function (e, t) {
            return (t + 1) % 2;
          })
        );
      },
      odd: function () {
        return this.pushStack(
          C.grep(this, function (e, t) {
            return t % 2;
          })
        );
      },
      eq: function (e) {
        var t = this.length,
          e = +e + (e < 0 ? t : 0);
        return this.pushStack(0 <= e && e < t ? [this[e]] : []);
      },
      end: function () {
        return this.prevObject || this.constructor();
      },
      push: c,
      sort: t.sort,
      splice: t.splice,
    }),
    (C.extend = C.fn.extend =
      function () {
        var e,
          t,
          n,
          r,
          i,
          o = arguments[0] || {},
          a = 1,
          s = arguments.length,
          c = !1;
        for (
          "boolean" == typeof o && ((c = o), (o = arguments[a] || {}), a++),
            "object" == typeof o || g(o) || (o = {}),
            a === s && ((o = this), a--);
          a < s;
          a++
        )
          if (null != (e = arguments[a]))
            for (t in e)
              (n = e[t]),
                "__proto__" !== t &&
                  o !== n &&
                  (c && n && (C.isPlainObject(n) || (r = Array.isArray(n)))
                    ? ((i = o[t]),
                      (i =
                        r && !Array.isArray(i)
                          ? []
                          : r || C.isPlainObject(i)
                          ? i
                          : {}),
                      (r = !1),
                      (o[t] = C.extend(c, i, n)))
                    : void 0 !== n && (o[t] = n));
        return o;
      }),
    C.extend({
      expando: "jQuery" + (d + Math.random()).replace(/\D/g, ""),
      isReady: !0,
      error: function (e) {
        throw new Error(e);
      },
      noop: function () {},
      isPlainObject: function (e) {
        return !(
          !e ||
          "[object Object]" !== o.call(e) ||
          ((e = n(e)) &&
            ("function" !=
              typeof (e = y.call(e, "constructor") && e.constructor) ||
              a.call(e) !== l))
        );
      },
      isEmptyObject: function (e) {
        for (var t in e) return !1;
        return !0;
      },
      globalEval: function (e, t, n) {
        x(e, { nonce: t && t.nonce }, n);
      },
      each: function (e, t) {
        var n,
          r = 0;
        if (p(e))
          for (n = e.length; r < n && !1 !== t.call(e[r], r, e[r]); r++);
        else for (r in e) if (!1 === t.call(e[r], r, e[r])) break;
        return e;
      },
      makeArray: function (e, t) {
        t = t || [];
        return (
          null != e &&
            (p(Object(e))
              ? C.merge(t, "string" == typeof e ? [e] : e)
              : c.call(t, e)),
          t
        );
      },
      inArray: function (e, t, n) {
        return null == t ? -1 : i.call(t, e, n);
      },
      merge: function (e, t) {
        for (var n = +t.length, r = 0, i = e.length; r < n; r++) e[i++] = t[r];
        return (e.length = i), e;
      },
      grep: function (e, t, n) {
        for (var r = [], i = 0, o = e.length, a = !n; i < o; i++)
          !t(e[i], i) != a && r.push(e[i]);
        return r;
      },
      map: function (e, t, n) {
        var r,
          i,
          o = 0,
          a = [];
        if (p(e))
          for (r = e.length; o < r; o++)
            null != (i = t(e[o], o, n)) && a.push(i);
        else for (o in e) null != (i = t(e[o], o, n)) && a.push(i);
        return v(a);
      },
      guid: 1,
      support: b,
    }),
    "function" == typeof Symbol && (C.fn[Symbol.iterator] = t[Symbol.iterator]),
    C.each(
      "Boolean Number String Function Array Date RegExp Object Error Symbol".split(
        " "
      ),
      function (e, t) {
        r["[object " + t + "]"] = t.toLowerCase();
      }
    );
  var h = (function (n) {
    function d(e, t) {
      return (
        (e = "0x" + e.slice(1) - 65536),
        t ||
          (e < 0
            ? String.fromCharCode(65536 + e)
            : String.fromCharCode((e >> 10) | 55296, (1023 & e) | 56320))
      );
    }
    function p(e, t) {
      return t
        ? "\0" === e
          ? "�"
          : e.slice(0, -1) +
            "\\" +
            e.charCodeAt(e.length - 1).toString(16) +
            " "
        : "\\" + e;
    }
    function r() {
      H();
    }
    var e,
      h,
      x,
      o,
      i,
      f,
      g,
      m,
      P,
      c,
      l,
      H,
      w,
      a,
      C,
      v,
      s,
      u,
      y,
      S = "sizzle" + +new Date(),
      b = n.document,
      T = 0,
      E = 0,
      L = ce(),
      I = ce(),
      k = ce(),
      A = ce(),
      D = function (e, t) {
        return e === t && (l = !0), 0;
      },
      N = {}.hasOwnProperty,
      t = [],
      j = t.pop,
      F = t.push,
      q = t.push,
      B = t.slice,
      O = function (e, t) {
        for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
        return -1;
      },
      $ =
        "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
      z = "[\\x20\\t\\r\\n\\f]",
      M =
        "(?:\\\\[\\da-fA-F]{1,6}" +
        z +
        "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
      R =
        "\\[" +
        z +
        "*(" +
        M +
        ")(?:" +
        z +
        "*([*^$|!~]?=)" +
        z +
        "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" +
        M +
        "))|)" +
        z +
        "*\\]",
      _ =
        ":(" +
        M +
        ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" +
        R +
        ")*)|.*)\\)|)",
      Q = new RegExp(z + "+", "g"),
      W = new RegExp("^" + z + "+|((?:^|[^\\\\])(?:\\\\.)*)" + z + "+$", "g"),
      U = new RegExp("^" + z + "*," + z + "*"),
      V = new RegExp("^" + z + "*([>+~]|" + z + ")" + z + "*"),
      X = new RegExp(z + "|>"),
      Y = new RegExp(_),
      G = new RegExp("^" + M + "$"),
      J = {
        ID: new RegExp("^#(" + M + ")"),
        CLASS: new RegExp("^\\.(" + M + ")"),
        TAG: new RegExp("^(" + M + "|[*])"),
        ATTR: new RegExp("^" + R),
        PSEUDO: new RegExp("^" + _),
        CHILD: new RegExp(
          "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
            z +
            "*(even|odd|(([+-]|)(\\d*)n|)" +
            z +
            "*(?:([+-]|)" +
            z +
            "*(\\d+)|))" +
            z +
            "*\\)|)",
          "i"
        ),
        bool: new RegExp("^(?:" + $ + ")$", "i"),
        needsContext: new RegExp(
          "^" +
            z +
            "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
            z +
            "*((?:-\\d)?\\d*)" +
            z +
            "*\\)|)(?=[^-]|$)",
          "i"
        ),
      },
      K = /HTML$/i,
      Z = /^(?:input|select|textarea|button)$/i,
      ee = /^h\d$/i,
      te = /^[^{]+\{\s*\[native \w/,
      ne = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
      re = /[+~]/,
      ie = new RegExp("\\\\[\\da-fA-F]{1,6}" + z + "?|\\\\([^\\r\\n\\f])", "g"),
      oe = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
      ae = ye(
        function (e) {
          return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase();
        },
        { dir: "parentNode", next: "legend" }
      );
    try {
      q.apply((t = B.call(b.childNodes)), b.childNodes),
        t[b.childNodes.length].nodeType;
    } catch (e) {
      q = {
        apply: t.length
          ? function (e, t) {
              F.apply(e, B.call(t));
            }
          : function (e, t) {
              for (var n = e.length, r = 0; (e[n++] = t[r++]); );
              e.length = n - 1;
            },
      };
    }
    function se(e, t, n, r) {
      var i,
        o,
        a,
        s,
        c,
        l,
        u = t && t.ownerDocument,
        d = t ? t.nodeType : 9;
      if (
        ((n = n || []),
        "string" != typeof e || !e || (1 !== d && 9 !== d && 11 !== d))
      )
        return n;
      if (!r && (H(t), (t = t || w), C)) {
        if (11 !== d && (s = ne.exec(e)))
          if ((l = s[1])) {
            if (9 === d) {
              if (!(o = t.getElementById(l))) return n;
              if (o.id === l) return n.push(o), n;
            } else if (u && (o = u.getElementById(l)) && y(t, o) && o.id === l)
              return n.push(o), n;
          } else {
            if (s[2]) return q.apply(n, t.getElementsByTagName(e)), n;
            if (
              (l = s[3]) &&
              h.getElementsByClassName &&
              t.getElementsByClassName
            )
              return q.apply(n, t.getElementsByClassName(l)), n;
          }
        if (
          h.qsa &&
          !A[e + " "] &&
          (!v || !v.test(e)) &&
          (1 !== d || "object" !== t.nodeName.toLowerCase())
        ) {
          if (((l = e), (u = t), 1 === d && (X.test(e) || V.test(e)))) {
            for (
              ((u = (re.test(e) && ge(t.parentNode)) || t) === t && h.scope) ||
                ((a = t.getAttribute("id"))
                  ? (a = a.replace(oe, p))
                  : t.setAttribute("id", (a = S))),
                i = (c = f(e)).length;
              i--;

            )
              c[i] = (a ? "#" + a : ":scope") + " " + ve(c[i]);
            l = c.join(",");
          }
          try {
            return q.apply(n, u.querySelectorAll(l)), n;
          } catch (t) {
            A(e, !0);
          } finally {
            a === S && t.removeAttribute("id");
          }
        }
      }
      return m(e.replace(W, "$1"), t, n, r);
    }
    function ce() {
      var r = [];
      return function e(t, n) {
        return (
          r.push(t + " ") > x.cacheLength && delete e[r.shift()],
          (e[t + " "] = n)
        );
      };
    }
    function le(e) {
      return (e[S] = !0), e;
    }
    function ue(e) {
      var t = w.createElement("fieldset");
      try {
        return !!e(t);
      } catch (e) {
        return !1;
      } finally {
        t.parentNode && t.parentNode.removeChild(t);
      }
    }
    function de(e, t) {
      for (var n = e.split("|"), r = n.length; r--; ) x.attrHandle[n[r]] = t;
    }
    function pe(e, t) {
      var n = t && e,
        r =
          n &&
          1 === e.nodeType &&
          1 === t.nodeType &&
          e.sourceIndex - t.sourceIndex;
      if (r) return r;
      if (n) for (; (n = n.nextSibling); ) if (n === t) return -1;
      return e ? 1 : -1;
    }
    function he(t) {
      return function (e) {
        return "form" in e
          ? e.parentNode && !1 === e.disabled
            ? "label" in e
              ? "label" in e.parentNode
                ? e.parentNode.disabled === t
                : e.disabled === t
              : e.isDisabled === t || (e.isDisabled !== !t && ae(e) === t)
            : e.disabled === t
          : "label" in e && e.disabled === t;
      };
    }
    function fe(a) {
      return le(function (o) {
        return (
          (o = +o),
          le(function (e, t) {
            for (var n, r = a([], e.length, o), i = r.length; i--; )
              e[(n = r[i])] && (e[n] = !(t[n] = e[n]));
          })
        );
      });
    }
    function ge(e) {
      return e && void 0 !== e.getElementsByTagName && e;
    }
    for (e in ((h = se.support = {}),
    (i = se.isXML =
      function (e) {
        var t = e.namespaceURI,
          e = (e.ownerDocument || e).documentElement;
        return !K.test(t || (e && e.nodeName) || "HTML");
      }),
    (H = se.setDocument =
      function (e) {
        var t,
          e = e ? e.ownerDocument || e : b;
        return (
          e != w &&
            9 === e.nodeType &&
            e.documentElement &&
            ((a = (w = e).documentElement),
            (C = !i(w)),
            b != w &&
              (t = w.defaultView) &&
              t.top !== t &&
              (t.addEventListener
                ? t.addEventListener("unload", r, !1)
                : t.attachEvent && t.attachEvent("onunload", r)),
            (h.scope = ue(function (e) {
              return (
                a.appendChild(e).appendChild(w.createElement("div")),
                void 0 !== e.querySelectorAll &&
                  !e.querySelectorAll(":scope fieldset div").length
              );
            })),
            (h.attributes = ue(function (e) {
              return (e.className = "i"), !e.getAttribute("className");
            })),
            (h.getElementsByTagName = ue(function (e) {
              return (
                e.appendChild(w.createComment("")),
                !e.getElementsByTagName("*").length
              );
            })),
            (h.getElementsByClassName = te.test(w.getElementsByClassName)),
            (h.getById = ue(function (e) {
              return (
                (a.appendChild(e).id = S),
                !w.getElementsByName || !w.getElementsByName(S).length
              );
            })),
            h.getById
              ? ((x.filter.ID = function (e) {
                  var t = e.replace(ie, d);
                  return function (e) {
                    return e.getAttribute("id") === t;
                  };
                }),
                (x.find.ID = function (e, t) {
                  if (void 0 !== t.getElementById && C) {
                    e = t.getElementById(e);
                    return e ? [e] : [];
                  }
                }))
              : ((x.filter.ID = function (e) {
                  var t = e.replace(ie, d);
                  return function (e) {
                    e =
                      void 0 !== e.getAttributeNode && e.getAttributeNode("id");
                    return e && e.value === t;
                  };
                }),
                (x.find.ID = function (e, t) {
                  if (void 0 !== t.getElementById && C) {
                    var n,
                      r,
                      i,
                      o = t.getElementById(e);
                    if (o) {
                      if ((n = o.getAttributeNode("id")) && n.value === e)
                        return [o];
                      for (i = t.getElementsByName(e), r = 0; (o = i[r++]); )
                        if ((n = o.getAttributeNode("id")) && n.value === e)
                          return [o];
                    }
                    return [];
                  }
                })),
            (x.find.TAG = h.getElementsByTagName
              ? function (e, t) {
                  return void 0 !== t.getElementsByTagName
                    ? t.getElementsByTagName(e)
                    : h.qsa
                    ? t.querySelectorAll(e)
                    : void 0;
                }
              : function (e, t) {
                  var n,
                    r = [],
                    i = 0,
                    o = t.getElementsByTagName(e);
                  if ("*" !== e) return o;
                  for (; (n = o[i++]); ) 1 === n.nodeType && r.push(n);
                  return r;
                }),
            (x.find.CLASS =
              h.getElementsByClassName &&
              function (e, t) {
                if (void 0 !== t.getElementsByClassName && C)
                  return t.getElementsByClassName(e);
              }),
            (s = []),
            (v = []),
            (h.qsa = te.test(w.querySelectorAll)) &&
              (ue(function (e) {
                var t;
                (a.appendChild(e).innerHTML =
                  "<a id='" +
                  S +
                  "'></a><select id='" +
                  S +
                  "-\r\\' msallowcapture=''><option selected=''></option></select>"),
                  e.querySelectorAll("[msallowcapture^='']").length &&
                    v.push("[*^$]=" + z + "*(?:''|\"\")"),
                  e.querySelectorAll("[selected]").length ||
                    v.push("\\[" + z + "*(?:value|" + $ + ")"),
                  e.querySelectorAll("[id~=" + S + "-]").length || v.push("~="),
                  (t = w.createElement("input")).setAttribute("name", ""),
                  e.appendChild(t),
                  e.querySelectorAll("[name='']").length ||
                    v.push("\\[" + z + "*name" + z + "*=" + z + "*(?:''|\"\")"),
                  e.querySelectorAll(":checked").length || v.push(":checked"),
                  e.querySelectorAll("a#" + S + "+*").length ||
                    v.push(".#.+[+~]"),
                  e.querySelectorAll("\\\f"),
                  v.push("[\\r\\n\\f]");
              }),
              ue(function (e) {
                e.innerHTML =
                  "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
                var t = w.createElement("input");
                t.setAttribute("type", "hidden"),
                  e.appendChild(t).setAttribute("name", "D"),
                  e.querySelectorAll("[name=d]").length &&
                    v.push("name" + z + "*[*^$|!~]?="),
                  2 !== e.querySelectorAll(":enabled").length &&
                    v.push(":enabled", ":disabled"),
                  (a.appendChild(e).disabled = !0),
                  2 !== e.querySelectorAll(":disabled").length &&
                    v.push(":enabled", ":disabled"),
                  e.querySelectorAll("*,:x"),
                  v.push(",.*:");
              })),
            (h.matchesSelector = te.test(
              (u =
                a.matches ||
                a.webkitMatchesSelector ||
                a.mozMatchesSelector ||
                a.oMatchesSelector ||
                a.msMatchesSelector)
            )) &&
              ue(function (e) {
                (h.disconnectedMatch = u.call(e, "*")),
                  u.call(e, "[s!='']:x"),
                  s.push("!=", _);
              }),
            (v = v.length && new RegExp(v.join("|"))),
            (s = s.length && new RegExp(s.join("|"))),
            (t = te.test(a.compareDocumentPosition)),
            (y =
              t || te.test(a.contains)
                ? function (e, t) {
                    var n = 9 === e.nodeType ? e.documentElement : e,
                      t = t && t.parentNode;
                    return (
                      e === t ||
                      !(
                        !t ||
                        1 !== t.nodeType ||
                        !(n.contains
                          ? n.contains(t)
                          : e.compareDocumentPosition &&
                            16 & e.compareDocumentPosition(t))
                      )
                    );
                  }
                : function (e, t) {
                    if (t) for (; (t = t.parentNode); ) if (t === e) return !0;
                    return !1;
                  }),
            (D = t
              ? function (e, t) {
                  return e === t
                    ? ((l = !0), 0)
                    : (n =
                        !e.compareDocumentPosition -
                        !t.compareDocumentPosition) ||
                        (1 &
                          (n =
                            (e.ownerDocument || e) == (t.ownerDocument || t)
                              ? e.compareDocumentPosition(t)
                              : 1) ||
                        (!h.sortDetached && t.compareDocumentPosition(e) === n)
                          ? e == w || (e.ownerDocument == b && y(b, e))
                            ? -1
                            : t == w || (t.ownerDocument == b && y(b, t))
                            ? 1
                            : c
                            ? O(c, e) - O(c, t)
                            : 0
                          : 4 & n
                          ? -1
                          : 1);
                  var n;
                }
              : function (e, t) {
                  if (e === t) return (l = !0), 0;
                  var n,
                    r = 0,
                    i = e.parentNode,
                    o = t.parentNode,
                    a = [e],
                    s = [t];
                  if (!i || !o)
                    return e == w
                      ? -1
                      : t == w
                      ? 1
                      : i
                      ? -1
                      : o
                      ? 1
                      : c
                      ? O(c, e) - O(c, t)
                      : 0;
                  if (i === o) return pe(e, t);
                  for (n = e; (n = n.parentNode); ) a.unshift(n);
                  for (n = t; (n = n.parentNode); ) s.unshift(n);
                  for (; a[r] === s[r]; ) r++;
                  return r
                    ? pe(a[r], s[r])
                    : a[r] == b
                    ? -1
                    : s[r] == b
                    ? 1
                    : 0;
                })),
          w
        );
      }),
    (se.matches = function (e, t) {
      return se(e, null, null, t);
    }),
    (se.matchesSelector = function (e, t) {
      if (
        (H(e),
        h.matchesSelector &&
          C &&
          !A[t + " "] &&
          (!s || !s.test(t)) &&
          (!v || !v.test(t)))
      )
        try {
          var n = u.call(e, t);
          if (
            n ||
            h.disconnectedMatch ||
            (e.document && 11 !== e.document.nodeType)
          )
            return n;
        } catch (e) {
          A(t, !0);
        }
      return 0 < se(t, w, null, [e]).length;
    }),
    (se.contains = function (e, t) {
      return (e.ownerDocument || e) != w && H(e), y(e, t);
    }),
    (se.attr = function (e, t) {
      (e.ownerDocument || e) != w && H(e);
      var n = x.attrHandle[t.toLowerCase()],
        n = n && N.call(x.attrHandle, t.toLowerCase()) ? n(e, t, !C) : void 0;
      return void 0 !== n
        ? n
        : h.attributes || !C
        ? e.getAttribute(t)
        : (n = e.getAttributeNode(t)) && n.specified
        ? n.value
        : null;
    }),
    (se.escape = function (e) {
      return (e + "").replace(oe, p);
    }),
    (se.error = function (e) {
      throw new Error("Syntax error, unrecognized expression: " + e);
    }),
    (se.uniqueSort = function (e) {
      var t,
        n = [],
        r = 0,
        i = 0;
      if (
        ((l = !h.detectDuplicates),
        (c = !h.sortStable && e.slice(0)),
        e.sort(D),
        l)
      ) {
        for (; (t = e[i++]); ) t === e[i] && (r = n.push(i));
        for (; r--; ) e.splice(n[r], 1);
      }
      return (c = null), e;
    }),
    (o = se.getText =
      function (e) {
        var t,
          n = "",
          r = 0,
          i = e.nodeType;
        if (i) {
          if (1 === i || 9 === i || 11 === i) {
            if ("string" == typeof e.textContent) return e.textContent;
            for (e = e.firstChild; e; e = e.nextSibling) n += o(e);
          } else if (3 === i || 4 === i) return e.nodeValue;
        } else for (; (t = e[r++]); ) n += o(t);
        return n;
      }),
    ((x = se.selectors =
      {
        cacheLength: 50,
        createPseudo: le,
        match: J,
        attrHandle: {},
        find: {},
        relative: {
          ">": { dir: "parentNode", first: !0 },
          " ": { dir: "parentNode" },
          "+": { dir: "previousSibling", first: !0 },
          "~": { dir: "previousSibling" },
        },
        preFilter: {
          ATTR: function (e) {
            return (
              (e[1] = e[1].replace(ie, d)),
              (e[3] = (e[3] || e[4] || e[5] || "").replace(ie, d)),
              "~=" === e[2] && (e[3] = " " + e[3] + " "),
              e.slice(0, 4)
            );
          },
          CHILD: function (e) {
            return (
              (e[1] = e[1].toLowerCase()),
              "nth" === e[1].slice(0, 3)
                ? (e[3] || se.error(e[0]),
                  (e[4] = +(e[4]
                    ? e[5] + (e[6] || 1)
                    : 2 * ("even" === e[3] || "odd" === e[3]))),
                  (e[5] = +(e[7] + e[8] || "odd" === e[3])))
                : e[3] && se.error(e[0]),
              e
            );
          },
          PSEUDO: function (e) {
            var t,
              n = !e[6] && e[2];
            return J.CHILD.test(e[0])
              ? null
              : (e[3]
                  ? (e[2] = e[4] || e[5] || "")
                  : n &&
                    Y.test(n) &&
                    (t = f(n, !0)) &&
                    (t = n.indexOf(")", n.length - t) - n.length) &&
                    ((e[0] = e[0].slice(0, t)), (e[2] = n.slice(0, t))),
                e.slice(0, 3));
          },
        },
        filter: {
          TAG: function (e) {
            var t = e.replace(ie, d).toLowerCase();
            return "*" === e
              ? function () {
                  return !0;
                }
              : function (e) {
                  return e.nodeName && e.nodeName.toLowerCase() === t;
                };
          },
          CLASS: function (e) {
            var t = L[e + " "];
            return (
              t ||
              ((t = new RegExp("(^|" + z + ")" + e + "(" + z + "|$)")) &&
                L(e, function (e) {
                  return t.test(
                    ("string" == typeof e.className && e.className) ||
                      (void 0 !== e.getAttribute && e.getAttribute("class")) ||
                      ""
                  );
                }))
            );
          },
          ATTR: function (t, n, r) {
            return function (e) {
              e = se.attr(e, t);
              return null == e
                ? "!=" === n
                : !n ||
                    ((e += ""),
                    "=" === n
                      ? e === r
                      : "!=" === n
                      ? e !== r
                      : "^=" === n
                      ? r && 0 === e.indexOf(r)
                      : "*=" === n
                      ? r && -1 < e.indexOf(r)
                      : "$=" === n
                      ? r && e.slice(-r.length) === r
                      : "~=" === n
                      ? -1 < (" " + e.replace(Q, " ") + " ").indexOf(r)
                      : "|=" === n &&
                        (e === r || e.slice(0, r.length + 1) === r + "-"));
            };
          },
          CHILD: function (f, e, t, g, m) {
            var v = "nth" !== f.slice(0, 3),
              y = "last" !== f.slice(-4),
              b = "of-type" === e;
            return 1 === g && 0 === m
              ? function (e) {
                  return !!e.parentNode;
                }
              : function (e, t, n) {
                  var r,
                    i,
                    o,
                    a,
                    s,
                    c,
                    l = v != y ? "nextSibling" : "previousSibling",
                    u = e.parentNode,
                    d = b && e.nodeName.toLowerCase(),
                    p = !n && !b,
                    h = !1;
                  if (u) {
                    if (v) {
                      for (; l; ) {
                        for (a = e; (a = a[l]); )
                          if (
                            b
                              ? a.nodeName.toLowerCase() === d
                              : 1 === a.nodeType
                          )
                            return !1;
                        c = l = "only" === f && !c && "nextSibling";
                      }
                      return !0;
                    }
                    if (((c = [y ? u.firstChild : u.lastChild]), y && p)) {
                      for (
                        h =
                          (s =
                            (r =
                              (i =
                                (o = (a = u)[S] || (a[S] = {}))[a.uniqueID] ||
                                (o[a.uniqueID] = {}))[f] || [])[0] === T &&
                            r[1]) && r[2],
                          a = s && u.childNodes[s];
                        (a = (++s && a && a[l]) || (h = s = 0) || c.pop());

                      )
                        if (1 === a.nodeType && ++h && a === e) {
                          i[f] = [T, s, h];
                          break;
                        }
                    } else if (
                      !1 ===
                      (h = p
                        ? (s =
                            (r =
                              (i =
                                (o = (a = e)[S] || (a[S] = {}))[a.uniqueID] ||
                                (o[a.uniqueID] = {}))[f] || [])[0] === T &&
                            r[1])
                        : h)
                    )
                      for (
                        ;
                        (a = (++s && a && a[l]) || (h = s = 0) || c.pop()) &&
                        ((b
                          ? a.nodeName.toLowerCase() !== d
                          : 1 !== a.nodeType) ||
                          !++h ||
                          (p &&
                            ((i =
                              (o = a[S] || (a[S] = {}))[a.uniqueID] ||
                              (o[a.uniqueID] = {}))[f] = [T, h]),
                          a !== e));

                      );
                    return (h -= m) === g || (h % g == 0 && 0 <= h / g);
                  }
                };
          },
          PSEUDO: function (e, o) {
            var t,
              a =
                x.pseudos[e] ||
                x.setFilters[e.toLowerCase()] ||
                se.error("unsupported pseudo: " + e);
            return a[S]
              ? a(o)
              : 1 < a.length
              ? ((t = [e, e, "", o]),
                x.setFilters.hasOwnProperty(e.toLowerCase())
                  ? le(function (e, t) {
                      for (var n, r = a(e, o), i = r.length; i--; )
                        e[(n = O(e, r[i]))] = !(t[n] = r[i]);
                    })
                  : function (e) {
                      return a(e, 0, t);
                    })
              : a;
          },
        },
        pseudos: {
          not: le(function (e) {
            var r = [],
              i = [],
              s = g(e.replace(W, "$1"));
            return s[S]
              ? le(function (e, t, n, r) {
                  for (var i, o = s(e, null, r, []), a = e.length; a--; )
                    (i = o[a]) && (e[a] = !(t[a] = i));
                })
              : function (e, t, n) {
                  return (r[0] = e), s(r, null, n, i), (r[0] = null), !i.pop();
                };
          }),
          has: le(function (t) {
            return function (e) {
              return 0 < se(t, e).length;
            };
          }),
          contains: le(function (t) {
            return (
              (t = t.replace(ie, d)),
              function (e) {
                return -1 < (e.textContent || o(e)).indexOf(t);
              }
            );
          }),
          lang: le(function (n) {
            return (
              G.test(n || "") || se.error("unsupported lang: " + n),
              (n = n.replace(ie, d).toLowerCase()),
              function (e) {
                var t;
                do {
                  if (
                    (t = C
                      ? e.lang
                      : e.getAttribute("xml:lang") || e.getAttribute("lang"))
                  )
                    return (
                      (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-")
                    );
                } while ((e = e.parentNode) && 1 === e.nodeType);
                return !1;
              }
            );
          }),
          target: function (e) {
            var t = n.location && n.location.hash;
            return t && t.slice(1) === e.id;
          },
          root: function (e) {
            return e === a;
          },
          focus: function (e) {
            return (
              e === w.activeElement &&
              (!w.hasFocus || w.hasFocus()) &&
              !!(e.type || e.href || ~e.tabIndex)
            );
          },
          enabled: he(!1),
          disabled: he(!0),
          checked: function (e) {
            var t = e.nodeName.toLowerCase();
            return (
              ("input" === t && !!e.checked) || ("option" === t && !!e.selected)
            );
          },
          selected: function (e) {
            return (
              e.parentNode && e.parentNode.selectedIndex, !0 === e.selected
            );
          },
          empty: function (e) {
            for (e = e.firstChild; e; e = e.nextSibling)
              if (e.nodeType < 6) return !1;
            return !0;
          },
          parent: function (e) {
            return !x.pseudos.empty(e);
          },
          header: function (e) {
            return ee.test(e.nodeName);
          },
          input: function (e) {
            return Z.test(e.nodeName);
          },
          button: function (e) {
            var t = e.nodeName.toLowerCase();
            return ("input" === t && "button" === e.type) || "button" === t;
          },
          text: function (e) {
            return (
              "input" === e.nodeName.toLowerCase() &&
              "text" === e.type &&
              (null == (e = e.getAttribute("type")) ||
                "text" === e.toLowerCase())
            );
          },
          first: fe(function () {
            return [0];
          }),
          last: fe(function (e, t) {
            return [t - 1];
          }),
          eq: fe(function (e, t, n) {
            return [n < 0 ? n + t : n];
          }),
          even: fe(function (e, t) {
            for (var n = 0; n < t; n += 2) e.push(n);
            return e;
          }),
          odd: fe(function (e, t) {
            for (var n = 1; n < t; n += 2) e.push(n);
            return e;
          }),
          lt: fe(function (e, t, n) {
            for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r);
            return e;
          }),
          gt: fe(function (e, t, n) {
            for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r);
            return e;
          }),
        },
      }).pseudos.nth = x.pseudos.eq),
    { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }))
      x.pseudos[e] = (function (t) {
        return function (e) {
          return "input" === e.nodeName.toLowerCase() && e.type === t;
        };
      })(e);
    for (e in { submit: !0, reset: !0 })
      x.pseudos[e] = (function (n) {
        return function (e) {
          var t = e.nodeName.toLowerCase();
          return ("input" === t || "button" === t) && e.type === n;
        };
      })(e);
    function me() {}
    function ve(e) {
      for (var t = 0, n = e.length, r = ""; t < n; t++) r += e[t].value;
      return r;
    }
    function ye(a, e, t) {
      var s = e.dir,
        c = e.next,
        l = c || s,
        u = t && "parentNode" === l,
        d = E++;
      return e.first
        ? function (e, t, n) {
            for (; (e = e[s]); ) if (1 === e.nodeType || u) return a(e, t, n);
            return !1;
          }
        : function (e, t, n) {
            var r,
              i,
              o = [T, d];
            if (n) {
              for (; (e = e[s]); )
                if ((1 === e.nodeType || u) && a(e, t, n)) return !0;
            } else
              for (; (e = e[s]); )
                if (1 === e.nodeType || u)
                  if (
                    ((r =
                      (i = e[S] || (e[S] = {}))[e.uniqueID] ||
                      (i[e.uniqueID] = {})),
                    c && c === e.nodeName.toLowerCase())
                  )
                    e = e[s] || e;
                  else {
                    if ((i = r[l]) && i[0] === T && i[1] === d)
                      return (o[2] = i[2]);
                    if (((r[l] = o)[2] = a(e, t, n))) return !0;
                  }
            return !1;
          };
    }
    function be(i) {
      return 1 < i.length
        ? function (e, t, n) {
            for (var r = i.length; r--; ) if (!i[r](e, t, n)) return !1;
            return !0;
          }
        : i[0];
    }
    function xe(e, t, n, r, i) {
      for (var o, a = [], s = 0, c = e.length, l = null != t; s < c; s++)
        (o = e[s]) && ((n && !n(o, r, i)) || (a.push(o), l && t.push(s)));
      return a;
    }
    function Pe(e) {
      for (
        var r,
          t,
          n,
          i = e.length,
          o = x.relative[e[0].type],
          a = o || x.relative[" "],
          s = o ? 1 : 0,
          c = ye(
            function (e) {
              return e === r;
            },
            a,
            !0
          ),
          l = ye(
            function (e) {
              return -1 < O(r, e);
            },
            a,
            !0
          ),
          u = [
            function (e, t, n) {
              n = (!o && (n || t !== P)) || ((r = t).nodeType ? c : l)(e, t, n);
              return (r = null), n;
            },
          ];
        s < i;
        s++
      )
        if ((t = x.relative[e[s].type])) u = [ye(be(u), t)];
        else {
          if ((t = x.filter[e[s].type].apply(null, e[s].matches))[S]) {
            for (n = ++s; n < i && !x.relative[e[n].type]; n++);
            return (function e(h, f, g, m, v, t) {
              return (
                m && !m[S] && (m = e(m)),
                v && !v[S] && (v = e(v, t)),
                le(function (e, t, n, r) {
                  var i,
                    o,
                    a,
                    s = [],
                    c = [],
                    l = t.length,
                    u =
                      e ||
                      (function (e, t, n) {
                        for (var r = 0, i = t.length; r < i; r++)
                          se(e, t[r], n);
                        return n;
                      })(f || "*", n.nodeType ? [n] : n, []),
                    d = !h || (!e && f) ? u : xe(u, s, h, n, r),
                    p = g ? (v || (e ? h : l || m) ? [] : t) : d;
                  if ((g && g(d, p, n, r), m))
                    for (i = xe(p, c), m(i, [], n, r), o = i.length; o--; )
                      (a = i[o]) && (p[c[o]] = !(d[c[o]] = a));
                  if (e) {
                    if (v || h) {
                      if (v) {
                        for (i = [], o = p.length; o--; )
                          (a = p[o]) && i.push((d[o] = a));
                        v(null, (p = []), i, r);
                      }
                      for (o = p.length; o--; )
                        (a = p[o]) &&
                          -1 < (i = v ? O(e, a) : s[o]) &&
                          (e[i] = !(t[i] = a));
                    }
                  } else (p = xe(p === t ? p.splice(l, p.length) : p)), v ? v(null, t, p, r) : q.apply(t, p);
                })
              );
            })(
              1 < s && be(u),
              1 < s &&
                ve(
                  e
                    .slice(0, s - 1)
                    .concat({ value: " " === e[s - 2].type ? "*" : "" })
                ).replace(W, "$1"),
              t,
              s < n && Pe(e.slice(s, n)),
              n < i && Pe((e = e.slice(n))),
              n < i && ve(e)
            );
          }
          u.push(t);
        }
      return be(u);
    }
    return (
      (me.prototype = x.filters = x.pseudos),
      (x.setFilters = new me()),
      (f = se.tokenize =
        function (e, t) {
          var n,
            r,
            i,
            o,
            a,
            s,
            c,
            l = I[e + " "];
          if (l) return t ? 0 : l.slice(0);
          for (a = e, s = [], c = x.preFilter; a; ) {
            for (o in ((n && !(r = U.exec(a))) ||
              (r && (a = a.slice(r[0].length) || a), s.push((i = []))),
            (n = !1),
            (r = V.exec(a)) &&
              ((n = r.shift()),
              i.push({ value: n, type: r[0].replace(W, " ") }),
              (a = a.slice(n.length))),
            x.filter))
              !(r = J[o].exec(a)) ||
                (c[o] && !(r = c[o](r))) ||
                ((n = r.shift()),
                i.push({ value: n, type: o, matches: r }),
                (a = a.slice(n.length)));
            if (!n) break;
          }
          return t ? a.length : a ? se.error(e) : I(e, s).slice(0);
        }),
      (g = se.compile =
        function (e, t) {
          var n,
            m,
            v,
            y,
            b,
            r,
            i = [],
            o = [],
            a = k[e + " "];
          if (!a) {
            for (n = (t = t || f(e)).length; n--; )
              ((a = Pe(t[n]))[S] ? i : o).push(a);
            (a = k(
              e,
              ((y = 0 < (v = i).length),
              (b = 0 < (m = o).length),
              (r = function (e, t, n, r, i) {
                var o,
                  a,
                  s,
                  c = 0,
                  l = "0",
                  u = e && [],
                  d = [],
                  p = P,
                  h = e || (b && x.find.TAG("*", i)),
                  f = (T += null == p ? 1 : Math.random() || 0.1),
                  g = h.length;
                for (
                  i && (P = t == w || t || i);
                  l !== g && null != (o = h[l]);
                  l++
                ) {
                  if (b && o) {
                    for (
                      a = 0, t || o.ownerDocument == w || (H(o), (n = !C));
                      (s = m[a++]);

                    )
                      if (s(o, t || w, n)) {
                        r.push(o);
                        break;
                      }
                    i && (T = f);
                  }
                  y && ((o = !s && o) && c--, e && u.push(o));
                }
                if (((c += l), y && l !== c)) {
                  for (a = 0; (s = v[a++]); ) s(u, d, t, n);
                  if (e) {
                    if (0 < c) for (; l--; ) u[l] || d[l] || (d[l] = j.call(r));
                    d = xe(d);
                  }
                  q.apply(r, d),
                    i &&
                      !e &&
                      0 < d.length &&
                      1 < c + v.length &&
                      se.uniqueSort(r);
                }
                return i && ((T = f), (P = p)), u;
              }),
              y ? le(r) : r)
            )).selector = e;
          }
          return a;
        }),
      (m = se.select =
        function (e, t, n, r) {
          var i,
            o,
            a,
            s,
            c,
            l = "function" == typeof e && e,
            u = !r && f((e = l.selector || e));
          if (((n = n || []), 1 === u.length)) {
            if (
              2 < (o = u[0] = u[0].slice(0)).length &&
              "ID" === (a = o[0]).type &&
              9 === t.nodeType &&
              C &&
              x.relative[o[1].type]
            ) {
              if (!(t = (x.find.ID(a.matches[0].replace(ie, d), t) || [])[0]))
                return n;
              l && (t = t.parentNode), (e = e.slice(o.shift().value.length));
            }
            for (
              i = J.needsContext.test(e) ? 0 : o.length;
              i-- && ((a = o[i]), !x.relative[(s = a.type)]);

            )
              if (
                (c = x.find[s]) &&
                (r = c(
                  a.matches[0].replace(ie, d),
                  (re.test(o[0].type) && ge(t.parentNode)) || t
                ))
              ) {
                if ((o.splice(i, 1), !(e = r.length && ve(o))))
                  return q.apply(n, r), n;
                break;
              }
          }
          return (
            (l || g(e, u))(
              r,
              t,
              !C,
              n,
              !t || (re.test(e) && ge(t.parentNode)) || t
            ),
            n
          );
        }),
      (h.sortStable = S.split("").sort(D).join("") === S),
      (h.detectDuplicates = !!l),
      H(),
      (h.sortDetached = ue(function (e) {
        return 1 & e.compareDocumentPosition(w.createElement("fieldset"));
      })),
      ue(function (e) {
        return (
          (e.innerHTML = "<a href='#'></a>"),
          "#" === e.firstChild.getAttribute("href")
        );
      }) ||
        de("type|href|height|width", function (e, t, n) {
          if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2);
        }),
      (h.attributes &&
        ue(function (e) {
          return (
            (e.innerHTML = "<input/>"),
            e.firstChild.setAttribute("value", ""),
            "" === e.firstChild.getAttribute("value")
          );
        })) ||
        de("value", function (e, t, n) {
          if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue;
        }),
      ue(function (e) {
        return null == e.getAttribute("disabled");
      }) ||
        de($, function (e, t, n) {
          if (!n)
            return !0 === e[t]
              ? t.toLowerCase()
              : (t = e.getAttributeNode(t)) && t.specified
              ? t.value
              : null;
        }),
      se
    );
  })(H);
  (C.find = h),
    (C.expr = h.selectors),
    (C.expr[":"] = C.expr.pseudos),
    (C.uniqueSort = C.unique = h.uniqueSort),
    (C.text = h.getText),
    (C.isXMLDoc = h.isXML),
    (C.contains = h.contains),
    (C.escapeSelector = h.escape);
  function P(e, t, n) {
    for (var r = [], i = void 0 !== n; (e = e[t]) && 9 !== e.nodeType; )
      if (1 === e.nodeType) {
        if (i && C(e).is(n)) break;
        r.push(e);
      }
    return r;
  }
  function S(e, t) {
    for (var n = []; e; e = e.nextSibling)
      1 === e.nodeType && e !== t && n.push(e);
    return n;
  }
  var T = C.expr.match.needsContext;
  function E(e, t) {
    return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase();
  }
  var L = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  function I(e, n, r) {
    return g(n)
      ? C.grep(e, function (e, t) {
          return !!n.call(e, t, e) !== r;
        })
      : n.nodeType
      ? C.grep(e, function (e) {
          return (e === n) !== r;
        })
      : "string" != typeof n
      ? C.grep(e, function (e) {
          return -1 < i.call(n, e) !== r;
        })
      : C.filter(n, e, r);
  }
  (C.filter = function (e, t, n) {
    var r = t[0];
    return (
      n && (e = ":not(" + e + ")"),
      1 === t.length && 1 === r.nodeType
        ? C.find.matchesSelector(r, e)
          ? [r]
          : []
        : C.find.matches(
            e,
            C.grep(t, function (e) {
              return 1 === e.nodeType;
            })
          )
    );
  }),
    C.fn.extend({
      find: function (e) {
        var t,
          n,
          r = this.length,
          i = this;
        if ("string" != typeof e)
          return this.pushStack(
            C(e).filter(function () {
              for (t = 0; t < r; t++) if (C.contains(i[t], this)) return !0;
            })
          );
        for (n = this.pushStack([]), t = 0; t < r; t++) C.find(e, i[t], n);
        return 1 < r ? C.uniqueSort(n) : n;
      },
      filter: function (e) {
        return this.pushStack(I(this, e || [], !1));
      },
      not: function (e) {
        return this.pushStack(I(this, e || [], !0));
      },
      is: function (e) {
        return !!I(this, "string" == typeof e && T.test(e) ? C(e) : e || [], !1)
          .length;
      },
    });
  var k = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
  (C.fn.init = function (e, t, n) {
    if (!e) return this;
    if (((n = n || A), "string" != typeof e))
      return e.nodeType
        ? ((this[0] = e), (this.length = 1), this)
        : g(e)
        ? void 0 !== n.ready
          ? n.ready(e)
          : e(C)
        : C.makeArray(e, this);
    if (
      !(r =
        "<" === e[0] && ">" === e[e.length - 1] && 3 <= e.length
          ? [null, e, null]
          : k.exec(e)) ||
      (!r[1] && t)
    )
      return (!t || t.jquery ? t || n : this.constructor(t)).find(e);
    if (r[1]) {
      if (
        ((t = t instanceof C ? t[0] : t),
        C.merge(
          this,
          C.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : w, !0)
        ),
        L.test(r[1]) && C.isPlainObject(t))
      )
        for (var r in t) g(this[r]) ? this[r](t[r]) : this.attr(r, t[r]);
      return this;
    }
    return (
      (e = w.getElementById(r[2])) && ((this[0] = e), (this.length = 1)), this
    );
  }).prototype = C.fn;
  var A = C(w),
    D = /^(?:parents|prev(?:Until|All))/,
    N = { children: !0, contents: !0, next: !0, prev: !0 };
  function j(e, t) {
    for (; (e = e[t]) && 1 !== e.nodeType; );
    return e;
  }
  C.fn.extend({
    has: function (e) {
      var t = C(e, this),
        n = t.length;
      return this.filter(function () {
        for (var e = 0; e < n; e++) if (C.contains(this, t[e])) return !0;
      });
    },
    closest: function (e, t) {
      var n,
        r = 0,
        i = this.length,
        o = [],
        a = "string" != typeof e && C(e);
      if (!T.test(e))
        for (; r < i; r++)
          for (n = this[r]; n && n !== t; n = n.parentNode)
            if (
              n.nodeType < 11 &&
              (a
                ? -1 < a.index(n)
                : 1 === n.nodeType && C.find.matchesSelector(n, e))
            ) {
              o.push(n);
              break;
            }
      return this.pushStack(1 < o.length ? C.uniqueSort(o) : o);
    },
    index: function (e) {
      return e
        ? "string" == typeof e
          ? i.call(C(e), this[0])
          : i.call(this, e.jquery ? e[0] : e)
        : this[0] && this[0].parentNode
        ? this.first().prevAll().length
        : -1;
    },
    add: function (e, t) {
      return this.pushStack(C.uniqueSort(C.merge(this.get(), C(e, t))));
    },
    addBack: function (e) {
      return this.add(null == e ? this.prevObject : this.prevObject.filter(e));
    },
  }),
    C.each(
      {
        parent: function (e) {
          e = e.parentNode;
          return e && 11 !== e.nodeType ? e : null;
        },
        parents: function (e) {
          return P(e, "parentNode");
        },
        parentsUntil: function (e, t, n) {
          return P(e, "parentNode", n);
        },
        next: function (e) {
          return j(e, "nextSibling");
        },
        prev: function (e) {
          return j(e, "previousSibling");
        },
        nextAll: function (e) {
          return P(e, "nextSibling");
        },
        prevAll: function (e) {
          return P(e, "previousSibling");
        },
        nextUntil: function (e, t, n) {
          return P(e, "nextSibling", n);
        },
        prevUntil: function (e, t, n) {
          return P(e, "previousSibling", n);
        },
        siblings: function (e) {
          return S((e.parentNode || {}).firstChild, e);
        },
        children: function (e) {
          return S(e.firstChild);
        },
        contents: function (e) {
          return null != e.contentDocument && n(e.contentDocument)
            ? e.contentDocument
            : (E(e, "template") && (e = e.content || e),
              C.merge([], e.childNodes));
        },
      },
      function (r, i) {
        C.fn[r] = function (e, t) {
          var n = C.map(this, i, e);
          return (
            (t = "Until" !== r.slice(-5) ? e : t) &&
              "string" == typeof t &&
              (n = C.filter(t, n)),
            1 < this.length &&
              (N[r] || C.uniqueSort(n), D.test(r) && n.reverse()),
            this.pushStack(n)
          );
        };
      }
    );
  var F = /[^\x20\t\r\n\f]+/g;
  function q(e) {
    return e;
  }
  function B(e) {
    throw e;
  }
  function O(e, t, n, r) {
    var i;
    try {
      e && g((i = e.promise))
        ? i.call(e).done(t).fail(n)
        : e && g((i = e.then))
        ? i.call(e, t, n)
        : t.apply(void 0, [e].slice(r));
    } catch (e) {
      n.apply(void 0, [e]);
    }
  }
  (C.Callbacks = function (r) {
    var e, n;
    r =
      "string" == typeof r
        ? ((e = r),
          (n = {}),
          C.each(e.match(F) || [], function (e, t) {
            n[t] = !0;
          }),
          n)
        : C.extend({}, r);
    function i() {
      for (s = s || r.once, a = o = !0; l.length; u = -1)
        for (t = l.shift(); ++u < c.length; )
          !1 === c[u].apply(t[0], t[1]) &&
            r.stopOnFalse &&
            ((u = c.length), (t = !1));
      r.memory || (t = !1), (o = !1), s && (c = t ? [] : "");
    }
    var o,
      t,
      a,
      s,
      c = [],
      l = [],
      u = -1,
      d = {
        add: function () {
          return (
            c &&
              (t && !o && ((u = c.length - 1), l.push(t)),
              (function n(e) {
                C.each(e, function (e, t) {
                  g(t)
                    ? (r.unique && d.has(t)) || c.push(t)
                    : t && t.length && "string" !== f(t) && n(t);
                });
              })(arguments),
              t && !o && i()),
            this
          );
        },
        remove: function () {
          return (
            C.each(arguments, function (e, t) {
              for (var n; -1 < (n = C.inArray(t, c, n)); )
                c.splice(n, 1), n <= u && u--;
            }),
            this
          );
        },
        has: function (e) {
          return e ? -1 < C.inArray(e, c) : 0 < c.length;
        },
        empty: function () {
          return (c = c && []), this;
        },
        disable: function () {
          return (s = l = []), (c = t = ""), this;
        },
        disabled: function () {
          return !c;
        },
        lock: function () {
          return (s = l = []), t || o || (c = t = ""), this;
        },
        locked: function () {
          return !!s;
        },
        fireWith: function (e, t) {
          return (
            s ||
              ((t = [e, (t = t || []).slice ? t.slice() : t]),
              l.push(t),
              o || i()),
            this
          );
        },
        fire: function () {
          return d.fireWith(this, arguments), this;
        },
        fired: function () {
          return !!a;
        },
      };
    return d;
  }),
    C.extend({
      Deferred: function (e) {
        var o = [
            [
              "notify",
              "progress",
              C.Callbacks("memory"),
              C.Callbacks("memory"),
              2,
            ],
            [
              "resolve",
              "done",
              C.Callbacks("once memory"),
              C.Callbacks("once memory"),
              0,
              "resolved",
            ],
            [
              "reject",
              "fail",
              C.Callbacks("once memory"),
              C.Callbacks("once memory"),
              1,
              "rejected",
            ],
          ],
          i = "pending",
          a = {
            state: function () {
              return i;
            },
            always: function () {
              return s.done(arguments).fail(arguments), this;
            },
            catch: function (e) {
              return a.then(null, e);
            },
            pipe: function () {
              var i = arguments;
              return C.Deferred(function (r) {
                C.each(o, function (e, t) {
                  var n = g(i[t[4]]) && i[t[4]];
                  s[t[1]](function () {
                    var e = n && n.apply(this, arguments);
                    e && g(e.promise)
                      ? e
                          .promise()
                          .progress(r.notify)
                          .done(r.resolve)
                          .fail(r.reject)
                      : r[t[0] + "With"](this, n ? [e] : arguments);
                  });
                }),
                  (i = null);
              }).promise();
            },
            then: function (t, n, r) {
              var c = 0;
              function l(i, o, a, s) {
                return function () {
                  function e() {
                    var e, t;
                    if (!(i < c)) {
                      if ((e = a.apply(n, r)) === o.promise())
                        throw new TypeError("Thenable self-resolution");
                      (t =
                        e &&
                        ("object" == typeof e || "function" == typeof e) &&
                        e.then),
                        g(t)
                          ? s
                            ? t.call(e, l(c, o, q, s), l(c, o, B, s))
                            : (c++,
                              t.call(
                                e,
                                l(c, o, q, s),
                                l(c, o, B, s),
                                l(c, o, q, o.notifyWith)
                              ))
                          : (a !== q && ((n = void 0), (r = [e])),
                            (s || o.resolveWith)(n, r));
                    }
                  }
                  var n = this,
                    r = arguments,
                    t = s
                      ? e
                      : function () {
                          try {
                            e();
                          } catch (e) {
                            C.Deferred.exceptionHook &&
                              C.Deferred.exceptionHook(e, t.stackTrace),
                              c <= i + 1 &&
                                (a !== B && ((n = void 0), (r = [e])),
                                o.rejectWith(n, r));
                          }
                        };
                  i
                    ? t()
                    : (C.Deferred.getStackHook &&
                        (t.stackTrace = C.Deferred.getStackHook()),
                      H.setTimeout(t));
                };
              }
              return C.Deferred(function (e) {
                o[0][3].add(l(0, e, g(r) ? r : q, e.notifyWith)),
                  o[1][3].add(l(0, e, g(t) ? t : q)),
                  o[2][3].add(l(0, e, g(n) ? n : B));
              }).promise();
            },
            promise: function (e) {
              return null != e ? C.extend(e, a) : a;
            },
          },
          s = {};
        return (
          C.each(o, function (e, t) {
            var n = t[2],
              r = t[5];
            (a[t[1]] = n.add),
              r &&
                n.add(
                  function () {
                    i = r;
                  },
                  o[3 - e][2].disable,
                  o[3 - e][3].disable,
                  o[0][2].lock,
                  o[0][3].lock
                ),
              n.add(t[3].fire),
              (s[t[0]] = function () {
                return (
                  s[t[0] + "With"](this === s ? void 0 : this, arguments), this
                );
              }),
              (s[t[0] + "With"] = n.fireWith);
          }),
          a.promise(s),
          e && e.call(s, s),
          s
        );
      },
      when: function (e) {
        function t(t) {
          return function (e) {
            (i[t] = this),
              (o[t] = 1 < arguments.length ? s.call(arguments) : e),
              --n || a.resolveWith(i, o);
          };
        }
        var n = arguments.length,
          r = n,
          i = Array(r),
          o = s.call(arguments),
          a = C.Deferred();
        if (
          n <= 1 &&
          (O(e, a.done(t(r)).resolve, a.reject, !n),
          "pending" === a.state() || g(o[r] && o[r].then))
        )
          return a.then();
        for (; r--; ) O(o[r], t(r), a.reject);
        return a.promise();
      },
    });
  var $ = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  (C.Deferred.exceptionHook = function (e, t) {
    H.console &&
      H.console.warn &&
      e &&
      $.test(e.name) &&
      H.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t);
  }),
    (C.readyException = function (e) {
      H.setTimeout(function () {
        throw e;
      });
    });
  var z = C.Deferred();
  function M() {
    w.removeEventListener("DOMContentLoaded", M),
      H.removeEventListener("load", M),
      C.ready();
  }
  (C.fn.ready = function (e) {
    return (
      z.then(e).catch(function (e) {
        C.readyException(e);
      }),
      this
    );
  }),
    C.extend({
      isReady: !1,
      readyWait: 1,
      ready: function (e) {
        (!0 === e ? --C.readyWait : C.isReady) ||
          ((C.isReady = !0) !== e && 0 < --C.readyWait) ||
          z.resolveWith(w, [C]);
      },
    }),
    (C.ready.then = z.then),
    "complete" === w.readyState ||
    ("loading" !== w.readyState && !w.documentElement.doScroll)
      ? H.setTimeout(C.ready)
      : (w.addEventListener("DOMContentLoaded", M),
        H.addEventListener("load", M));
  function R(e, t, n, r, i, o, a) {
    var s = 0,
      c = e.length,
      l = null == n;
    if ("object" === f(n)) for (s in ((i = !0), n)) R(e, t, s, n[s], !0, o, a);
    else if (
      void 0 !== r &&
      ((i = !0),
      g(r) || (a = !0),
      (t = l
        ? a
          ? (t.call(e, r), null)
          : ((l = t),
            function (e, t, n) {
              return l.call(C(e), n);
            })
        : t))
    )
      for (; s < c; s++) t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n)));
    return i ? e : l ? t.call(e) : c ? t(e[0], n) : o;
  }
  var _ = /^-ms-/,
    Q = /-([a-z])/g;
  function W(e, t) {
    return t.toUpperCase();
  }
  function U(e) {
    return e.replace(_, "ms-").replace(Q, W);
  }
  function V(e) {
    return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType;
  }
  function X() {
    this.expando = C.expando + X.uid++;
  }
  (X.uid = 1),
    (X.prototype = {
      cache: function (e) {
        var t = e[this.expando];
        return (
          t ||
            ((t = {}),
            V(e) &&
              (e.nodeType
                ? (e[this.expando] = t)
                : Object.defineProperty(e, this.expando, {
                    value: t,
                    configurable: !0,
                  }))),
          t
        );
      },
      set: function (e, t, n) {
        var r,
          i = this.cache(e);
        if ("string" == typeof t) i[U(t)] = n;
        else for (r in t) i[U(r)] = t[r];
        return i;
      },
      get: function (e, t) {
        return void 0 === t
          ? this.cache(e)
          : e[this.expando] && e[this.expando][U(t)];
      },
      access: function (e, t, n) {
        return void 0 === t || (t && "string" == typeof t && void 0 === n)
          ? this.get(e, t)
          : (this.set(e, t, n), void 0 !== n ? n : t);
      },
      remove: function (e, t) {
        var n,
          r = e[this.expando];
        if (void 0 !== r) {
          if (void 0 !== t) {
            n = (t = Array.isArray(t)
              ? t.map(U)
              : (t = U(t)) in r
              ? [t]
              : t.match(F) || []).length;
            for (; n--; ) delete r[t[n]];
          }
          (void 0 !== t && !C.isEmptyObject(r)) ||
            (e.nodeType ? (e[this.expando] = void 0) : delete e[this.expando]);
        }
      },
      hasData: function (e) {
        e = e[this.expando];
        return void 0 !== e && !C.isEmptyObject(e);
      },
    });
  var Y = new X(),
    G = new X(),
    J = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
    K = /[A-Z]/g;
  function Z(e, t, n) {
    var r, i;
    if (void 0 === n && 1 === e.nodeType)
      if (
        ((r = "data-" + t.replace(K, "-$&").toLowerCase()),
        "string" == typeof (n = e.getAttribute(r)))
      ) {
        try {
          n =
            "true" === (i = n) ||
            ("false" !== i &&
              ("null" === i
                ? null
                : i === +i + ""
                ? +i
                : J.test(i)
                ? JSON.parse(i)
                : i));
        } catch (e) {}
        G.set(e, t, n);
      } else n = void 0;
    return n;
  }
  C.extend({
    hasData: function (e) {
      return G.hasData(e) || Y.hasData(e);
    },
    data: function (e, t, n) {
      return G.access(e, t, n);
    },
    removeData: function (e, t) {
      G.remove(e, t);
    },
    _data: function (e, t, n) {
      return Y.access(e, t, n);
    },
    _removeData: function (e, t) {
      Y.remove(e, t);
    },
  }),
    C.fn.extend({
      data: function (n, e) {
        var t,
          r,
          i,
          o = this[0],
          a = o && o.attributes;
        if (void 0 !== n)
          return "object" == typeof n
            ? this.each(function () {
                G.set(this, n);
              })
            : R(
                this,
                function (e) {
                  var t;
                  return o && void 0 === e
                    ? void 0 !== (t = G.get(o, n)) || void 0 !== (t = Z(o, n))
                      ? t
                      : void 0
                    : void this.each(function () {
                        G.set(this, n, e);
                      });
                },
                null,
                e,
                1 < arguments.length,
                null,
                !0
              );
        if (
          this.length &&
          ((i = G.get(o)), 1 === o.nodeType && !Y.get(o, "hasDataAttrs"))
        ) {
          for (t = a.length; t--; )
            a[t] &&
              0 === (r = a[t].name).indexOf("data-") &&
              ((r = U(r.slice(5))), Z(o, r, i[r]));
          Y.set(o, "hasDataAttrs", !0);
        }
        return i;
      },
      removeData: function (e) {
        return this.each(function () {
          G.remove(this, e);
        });
      },
    }),
    C.extend({
      queue: function (e, t, n) {
        var r;
        if (e)
          return (
            (r = Y.get(e, (t = (t || "fx") + "queue"))),
            n &&
              (!r || Array.isArray(n)
                ? (r = Y.access(e, t, C.makeArray(n)))
                : r.push(n)),
            r || []
          );
      },
      dequeue: function (e, t) {
        t = t || "fx";
        var n = C.queue(e, t),
          r = n.length,
          i = n.shift(),
          o = C._queueHooks(e, t);
        "inprogress" === i && ((i = n.shift()), r--),
          i &&
            ("fx" === t && n.unshift("inprogress"),
            delete o.stop,
            i.call(
              e,
              function () {
                C.dequeue(e, t);
              },
              o
            )),
          !r && o && o.empty.fire();
      },
      _queueHooks: function (e, t) {
        var n = t + "queueHooks";
        return (
          Y.get(e, n) ||
          Y.access(e, n, {
            empty: C.Callbacks("once memory").add(function () {
              Y.remove(e, [t + "queue", n]);
            }),
          })
        );
      },
    }),
    C.fn.extend({
      queue: function (t, n) {
        var e = 2;
        return (
          "string" != typeof t && ((n = t), (t = "fx"), e--),
          arguments.length < e
            ? C.queue(this[0], t)
            : void 0 === n
            ? this
            : this.each(function () {
                var e = C.queue(this, t, n);
                C._queueHooks(this, t),
                  "fx" === t && "inprogress" !== e[0] && C.dequeue(this, t);
              })
        );
      },
      dequeue: function (e) {
        return this.each(function () {
          C.dequeue(this, e);
        });
      },
      clearQueue: function (e) {
        return this.queue(e || "fx", []);
      },
      promise: function (e, t) {
        function n() {
          --i || o.resolveWith(a, [a]);
        }
        var r,
          i = 1,
          o = C.Deferred(),
          a = this,
          s = this.length;
        for (
          "string" != typeof e && ((t = e), (e = void 0)), e = e || "fx";
          s--;

        )
          (r = Y.get(a[s], e + "queueHooks")) &&
            r.empty &&
            (i++, r.empty.add(n));
        return n(), o.promise(t);
      },
    });
  var ee = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
    te = new RegExp("^(?:([+-])=|)(" + ee + ")([a-z%]*)$", "i"),
    ne = ["Top", "Right", "Bottom", "Left"],
    re = w.documentElement,
    ie = function (e) {
      return C.contains(e.ownerDocument, e);
    },
    oe = { composed: !0 };
  re.getRootNode &&
    (ie = function (e) {
      return (
        C.contains(e.ownerDocument, e) || e.getRootNode(oe) === e.ownerDocument
      );
    });
  function ae(e, t) {
    return (
      "none" === (e = t || e).style.display ||
      ("" === e.style.display && ie(e) && "none" === C.css(e, "display"))
    );
  }
  function se(e, t, n, r) {
    var i,
      o,
      a = 20,
      s = r
        ? function () {
            return r.cur();
          }
        : function () {
            return C.css(e, t, "");
          },
      c = s(),
      l = (n && n[3]) || (C.cssNumber[t] ? "" : "px"),
      u =
        e.nodeType &&
        (C.cssNumber[t] || ("px" !== l && +c)) &&
        te.exec(C.css(e, t));
    if (u && u[3] !== l) {
      for (l = l || u[3], u = +(c /= 2) || 1; a--; )
        C.style(e, t, u + l),
          (1 - o) * (1 - (o = s() / c || 0.5)) <= 0 && (a = 0),
          (u /= o);
      C.style(e, t, (u *= 2) + l), (n = n || []);
    }
    return (
      n &&
        ((u = +u || +c || 0),
        (i = n[1] ? u + (n[1] + 1) * n[2] : +n[2]),
        r && ((r.unit = l), (r.start = u), (r.end = i))),
      i
    );
  }
  var ce = {};
  function le(e, t) {
    for (var n, r, i, o, a, s, c = [], l = 0, u = e.length; l < u; l++)
      (r = e[l]).style &&
        ((n = r.style.display),
        t
          ? ("none" === n &&
              ((c[l] = Y.get(r, "display") || null),
              c[l] || (r.style.display = "")),
            "" === r.style.display &&
              ae(r) &&
              (c[l] =
                ((s = o = i = void 0),
                (o = r.ownerDocument),
                (a = r.nodeName),
                (s = ce[a]) ||
                  ((i = o.body.appendChild(o.createElement(a))),
                  (s = C.css(i, "display")),
                  i.parentNode.removeChild(i),
                  (ce[a] = s = "none" === s ? "block" : s)))))
          : "none" !== n && ((c[l] = "none"), Y.set(r, "display", n)));
    for (l = 0; l < u; l++) null != c[l] && (e[l].style.display = c[l]);
    return e;
  }
  C.fn.extend({
    show: function () {
      return le(this, !0);
    },
    hide: function () {
      return le(this);
    },
    toggle: function (e) {
      return "boolean" == typeof e
        ? e
          ? this.show()
          : this.hide()
        : this.each(function () {
            ae(this) ? C(this).show() : C(this).hide();
          });
    },
  });
  var ue = /^(?:checkbox|radio)$/i,
    de = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
    pe = /^$|^module$|\/(?:java|ecma)script/i,
    d = w.createDocumentFragment().appendChild(w.createElement("div"));
  (h = w.createElement("input")).setAttribute("type", "radio"),
    h.setAttribute("checked", "checked"),
    h.setAttribute("name", "t"),
    d.appendChild(h),
    (b.checkClone = d.cloneNode(!0).cloneNode(!0).lastChild.checked),
    (d.innerHTML = "<textarea>x</textarea>"),
    (b.noCloneChecked = !!d.cloneNode(!0).lastChild.defaultValue),
    (d.innerHTML = "<option></option>"),
    (b.option = !!d.lastChild);
  var he = {
    thead: [1, "<table>", "</table>"],
    col: [2, "<table><colgroup>", "</colgroup></table>"],
    tr: [2, "<table><tbody>", "</tbody></table>"],
    td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
    _default: [0, "", ""],
  };
  function fe(e, t) {
    var n =
      void 0 !== e.getElementsByTagName
        ? e.getElementsByTagName(t || "*")
        : void 0 !== e.querySelectorAll
        ? e.querySelectorAll(t || "*")
        : [];
    return void 0 === t || (t && E(e, t)) ? C.merge([e], n) : n;
  }
  function ge(e, t) {
    for (var n = 0, r = e.length; n < r; n++)
      Y.set(e[n], "globalEval", !t || Y.get(t[n], "globalEval"));
  }
  (he.tbody = he.tfoot = he.colgroup = he.caption = he.thead),
    (he.th = he.td),
    b.option ||
      (he.optgroup = he.option =
        [1, "<select multiple='multiple'>", "</select>"]);
  var me = /<|&#?\w+;/;
  function ve(e, t, n, r, i) {
    for (
      var o,
        a,
        s,
        c,
        l,
        u = t.createDocumentFragment(),
        d = [],
        p = 0,
        h = e.length;
      p < h;
      p++
    )
      if ((o = e[p]) || 0 === o)
        if ("object" === f(o)) C.merge(d, o.nodeType ? [o] : o);
        else if (me.test(o)) {
          for (
            a = a || u.appendChild(t.createElement("div")),
              s = (de.exec(o) || ["", ""])[1].toLowerCase(),
              s = he[s] || he._default,
              a.innerHTML = s[1] + C.htmlPrefilter(o) + s[2],
              l = s[0];
            l--;

          )
            a = a.lastChild;
          C.merge(d, a.childNodes), ((a = u.firstChild).textContent = "");
        } else d.push(t.createTextNode(o));
    for (u.textContent = "", p = 0; (o = d[p++]); )
      if (r && -1 < C.inArray(o, r)) i && i.push(o);
      else if (
        ((c = ie(o)), (a = fe(u.appendChild(o), "script")), c && ge(a), n)
      )
        for (l = 0; (o = a[l++]); ) pe.test(o.type || "") && n.push(o);
    return u;
  }
  var ye = /^key/,
    be = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
    xe = /^([^.]*)(?:\.(.+)|)/;
  function Pe() {
    return !0;
  }
  function He() {
    return !1;
  }
  function we(e, t) {
    return (
      (e ===
        (function () {
          try {
            return w.activeElement;
          } catch (e) {}
        })()) ==
      ("focus" === t)
    );
  }
  function Ce(e, t, n, r, i, o) {
    var a, s;
    if ("object" == typeof t) {
      for (s in ("string" != typeof n && ((r = r || n), (n = void 0)), t))
        Ce(e, s, n, r, t[s], o);
      return e;
    }
    if (
      (null == r && null == i
        ? ((i = n), (r = n = void 0))
        : null == i &&
          ("string" == typeof n
            ? ((i = r), (r = void 0))
            : ((i = r), (r = n), (n = void 0))),
      !1 === i)
    )
      i = He;
    else if (!i) return e;
    return (
      1 === o &&
        ((a = i),
        ((i = function (e) {
          return C().off(e), a.apply(this, arguments);
        }).guid = a.guid || (a.guid = C.guid++))),
      e.each(function () {
        C.event.add(this, t, i, r, n);
      })
    );
  }
  function Se(e, i, o) {
    o
      ? (Y.set(e, i, !1),
        C.event.add(e, i, {
          namespace: !1,
          handler: function (e) {
            var t,
              n,
              r = Y.get(this, i);
            if (1 & e.isTrigger && this[i]) {
              if (r.length)
                (C.event.special[i] || {}).delegateType && e.stopPropagation();
              else if (
                ((r = s.call(arguments)),
                Y.set(this, i, r),
                (t = o(this, i)),
                this[i](),
                r !== (n = Y.get(this, i)) || t ? Y.set(this, i, !1) : (n = {}),
                r !== n)
              )
                return (
                  e.stopImmediatePropagation(), e.preventDefault(), n.value
                );
            } else
              r.length &&
                (Y.set(this, i, {
                  value: C.event.trigger(
                    C.extend(r[0], C.Event.prototype),
                    r.slice(1),
                    this
                  ),
                }),
                e.stopImmediatePropagation());
          },
        }))
      : void 0 === Y.get(e, i) && C.event.add(e, i, Pe);
  }
  (C.event = {
    global: {},
    add: function (t, e, n, r, i) {
      var o,
        a,
        s,
        c,
        l,
        u,
        d,
        p,
        h,
        f = Y.get(t);
      if (V(t))
        for (
          n.handler && ((n = (o = n).handler), (i = o.selector)),
            i && C.find.matchesSelector(re, i),
            n.guid || (n.guid = C.guid++),
            (s = f.events) || (s = f.events = Object.create(null)),
            (a = f.handle) ||
              (a = f.handle =
                function (e) {
                  return void 0 !== C && C.event.triggered !== e.type
                    ? C.event.dispatch.apply(t, arguments)
                    : void 0;
                }),
            c = (e = (e || "").match(F) || [""]).length;
          c--;

        )
          (d = h = (l = xe.exec(e[c]) || [])[1]),
            (p = (l[2] || "").split(".").sort()),
            d &&
              ((u = C.event.special[d] || {}),
              (d = (i ? u.delegateType : u.bindType) || d),
              (u = C.event.special[d] || {}),
              (l = C.extend(
                {
                  type: d,
                  origType: h,
                  data: r,
                  handler: n,
                  guid: n.guid,
                  selector: i,
                  needsContext: i && C.expr.match.needsContext.test(i),
                  namespace: p.join("."),
                },
                o
              )),
              (h = s[d]) ||
                (((h = s[d] = []).delegateCount = 0),
                (u.setup && !1 !== u.setup.call(t, r, p, a)) ||
                  (t.addEventListener && t.addEventListener(d, a))),
              u.add &&
                (u.add.call(t, l), l.handler.guid || (l.handler.guid = n.guid)),
              i ? h.splice(h.delegateCount++, 0, l) : h.push(l),
              (C.event.global[d] = !0));
    },
    remove: function (e, t, n, r, i) {
      var o,
        a,
        s,
        c,
        l,
        u,
        d,
        p,
        h,
        f,
        g,
        m = Y.hasData(e) && Y.get(e);
      if (m && (c = m.events)) {
        for (l = (t = (t || "").match(F) || [""]).length; l--; )
          if (
            ((h = g = (s = xe.exec(t[l]) || [])[1]),
            (f = (s[2] || "").split(".").sort()),
            h)
          ) {
            for (
              d = C.event.special[h] || {},
                p = c[(h = (r ? d.delegateType : d.bindType) || h)] || [],
                s =
                  s[2] &&
                  new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)"),
                a = o = p.length;
              o--;

            )
              (u = p[o]),
                (!i && g !== u.origType) ||
                  (n && n.guid !== u.guid) ||
                  (s && !s.test(u.namespace)) ||
                  (r && r !== u.selector && ("**" !== r || !u.selector)) ||
                  (p.splice(o, 1),
                  u.selector && p.delegateCount--,
                  d.remove && d.remove.call(e, u));
            a &&
              !p.length &&
              ((d.teardown && !1 !== d.teardown.call(e, f, m.handle)) ||
                C.removeEvent(e, h, m.handle),
              delete c[h]);
          } else for (h in c) C.event.remove(e, h + t[l], n, r, !0);
        C.isEmptyObject(c) && Y.remove(e, "handle events");
      }
    },
    dispatch: function (e) {
      var t,
        n,
        r,
        i,
        o,
        a = new Array(arguments.length),
        s = C.event.fix(e),
        c = (Y.get(this, "events") || Object.create(null))[s.type] || [],
        e = C.event.special[s.type] || {};
      for (a[0] = s, t = 1; t < arguments.length; t++) a[t] = arguments[t];
      if (
        ((s.delegateTarget = this),
        !e.preDispatch || !1 !== e.preDispatch.call(this, s))
      ) {
        for (
          o = C.event.handlers.call(this, s, c), t = 0;
          (r = o[t++]) && !s.isPropagationStopped();

        )
          for (
            s.currentTarget = r.elem, n = 0;
            (i = r.handlers[n++]) && !s.isImmediatePropagationStopped();

          )
            (s.rnamespace &&
              !1 !== i.namespace &&
              !s.rnamespace.test(i.namespace)) ||
              ((s.handleObj = i),
              (s.data = i.data),
              void 0 !==
                (i = (
                  (C.event.special[i.origType] || {}).handle || i.handler
                ).apply(r.elem, a)) &&
                !1 === (s.result = i) &&
                (s.preventDefault(), s.stopPropagation()));
        return e.postDispatch && e.postDispatch.call(this, s), s.result;
      }
    },
    handlers: function (e, t) {
      var n,
        r,
        i,
        o,
        a,
        s = [],
        c = t.delegateCount,
        l = e.target;
      if (c && l.nodeType && !("click" === e.type && 1 <= e.button))
        for (; l !== this; l = l.parentNode || this)
          if (1 === l.nodeType && ("click" !== e.type || !0 !== l.disabled)) {
            for (o = [], a = {}, n = 0; n < c; n++)
              void 0 === a[(i = (r = t[n]).selector + " ")] &&
                (a[i] = r.needsContext
                  ? -1 < C(i, this).index(l)
                  : C.find(i, this, null, [l]).length),
                a[i] && o.push(r);
            o.length && s.push({ elem: l, handlers: o });
          }
      return (
        (l = this), c < t.length && s.push({ elem: l, handlers: t.slice(c) }), s
      );
    },
    addProp: function (t, e) {
      Object.defineProperty(C.Event.prototype, t, {
        enumerable: !0,
        configurable: !0,
        get: g(e)
          ? function () {
              if (this.originalEvent) return e(this.originalEvent);
            }
          : function () {
              if (this.originalEvent) return this.originalEvent[t];
            },
        set: function (e) {
          Object.defineProperty(this, t, {
            enumerable: !0,
            configurable: !0,
            writable: !0,
            value: e,
          });
        },
      });
    },
    fix: function (e) {
      return e[C.expando] ? e : new C.Event(e);
    },
    special: {
      load: { noBubble: !0 },
      click: {
        setup: function (e) {
          e = this || e;
          return (
            ue.test(e.type) && e.click && E(e, "input") && Se(e, "click", Pe),
            !1
          );
        },
        trigger: function (e) {
          e = this || e;
          return (
            ue.test(e.type) && e.click && E(e, "input") && Se(e, "click"), !0
          );
        },
        _default: function (e) {
          e = e.target;
          return (
            (ue.test(e.type) &&
              e.click &&
              E(e, "input") &&
              Y.get(e, "click")) ||
            E(e, "a")
          );
        },
      },
      beforeunload: {
        postDispatch: function (e) {
          void 0 !== e.result &&
            e.originalEvent &&
            (e.originalEvent.returnValue = e.result);
        },
      },
    },
  }),
    (C.removeEvent = function (e, t, n) {
      e.removeEventListener && e.removeEventListener(t, n);
    }),
    (C.Event = function (e, t) {
      if (!(this instanceof C.Event)) return new C.Event(e, t);
      e && e.type
        ? ((this.originalEvent = e),
          (this.type = e.type),
          (this.isDefaultPrevented =
            e.defaultPrevented ||
            (void 0 === e.defaultPrevented && !1 === e.returnValue)
              ? Pe
              : He),
          (this.target =
            e.target && 3 === e.target.nodeType
              ? e.target.parentNode
              : e.target),
          (this.currentTarget = e.currentTarget),
          (this.relatedTarget = e.relatedTarget))
        : (this.type = e),
        t && C.extend(this, t),
        (this.timeStamp = (e && e.timeStamp) || Date.now()),
        (this[C.expando] = !0);
    }),
    (C.Event.prototype = {
      constructor: C.Event,
      isDefaultPrevented: He,
      isPropagationStopped: He,
      isImmediatePropagationStopped: He,
      isSimulated: !1,
      preventDefault: function () {
        var e = this.originalEvent;
        (this.isDefaultPrevented = Pe),
          e && !this.isSimulated && e.preventDefault();
      },
      stopPropagation: function () {
        var e = this.originalEvent;
        (this.isPropagationStopped = Pe),
          e && !this.isSimulated && e.stopPropagation();
      },
      stopImmediatePropagation: function () {
        var e = this.originalEvent;
        (this.isImmediatePropagationStopped = Pe),
          e && !this.isSimulated && e.stopImmediatePropagation(),
          this.stopPropagation();
      },
    }),
    C.each(
      {
        altKey: !0,
        bubbles: !0,
        cancelable: !0,
        changedTouches: !0,
        ctrlKey: !0,
        detail: !0,
        eventPhase: !0,
        metaKey: !0,
        pageX: !0,
        pageY: !0,
        shiftKey: !0,
        view: !0,
        char: !0,
        code: !0,
        charCode: !0,
        key: !0,
        keyCode: !0,
        button: !0,
        buttons: !0,
        clientX: !0,
        clientY: !0,
        offsetX: !0,
        offsetY: !0,
        pointerId: !0,
        pointerType: !0,
        screenX: !0,
        screenY: !0,
        targetTouches: !0,
        toElement: !0,
        touches: !0,
        which: function (e) {
          var t = e.button;
          return null == e.which && ye.test(e.type)
            ? null != e.charCode
              ? e.charCode
              : e.keyCode
            : !e.which && void 0 !== t && be.test(e.type)
            ? 1 & t
              ? 1
              : 2 & t
              ? 3
              : 4 & t
              ? 2
              : 0
            : e.which;
        },
      },
      C.event.addProp
    ),
    C.each({ focus: "focusin", blur: "focusout" }, function (e, t) {
      C.event.special[e] = {
        setup: function () {
          return Se(this, e, we), !1;
        },
        trigger: function () {
          return Se(this, e), !0;
        },
        delegateType: t,
      };
    }),
    C.each(
      {
        mouseenter: "mouseover",
        mouseleave: "mouseout",
        pointerenter: "pointerover",
        pointerleave: "pointerout",
      },
      function (e, i) {
        C.event.special[e] = {
          delegateType: i,
          bindType: i,
          handle: function (e) {
            var t,
              n = e.relatedTarget,
              r = e.handleObj;
            return (
              (n && (n === this || C.contains(this, n))) ||
                ((e.type = r.origType),
                (t = r.handler.apply(this, arguments)),
                (e.type = i)),
              t
            );
          },
        };
      }
    ),
    C.fn.extend({
      on: function (e, t, n, r) {
        return Ce(this, e, t, n, r);
      },
      one: function (e, t, n, r) {
        return Ce(this, e, t, n, r, 1);
      },
      off: function (e, t, n) {
        var r, i;
        if (e && e.preventDefault && e.handleObj)
          return (
            (r = e.handleObj),
            C(e.delegateTarget).off(
              r.namespace ? r.origType + "." + r.namespace : r.origType,
              r.selector,
              r.handler
            ),
            this
          );
        if ("object" != typeof e)
          return (
            (!1 !== t && "function" != typeof t) || ((n = t), (t = void 0)),
            !1 === n && (n = He),
            this.each(function () {
              C.event.remove(this, e, n, t);
            })
          );
        for (i in e) this.off(i, t, e[i]);
        return this;
      },
    });
  var Te = /<script|<style|<link/i,
    Ee = /checked\s*(?:[^=]|=\s*.checked.)/i,
    Le = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  function Ie(e, t) {
    return (
      (E(e, "table") &&
        E(11 !== t.nodeType ? t : t.firstChild, "tr") &&
        C(e).children("tbody")[0]) ||
      e
    );
  }
  function ke(e) {
    return (e.type = (null !== e.getAttribute("type")) + "/" + e.type), e;
  }
  function Ae(e) {
    return (
      "true/" === (e.type || "").slice(0, 5)
        ? (e.type = e.type.slice(5))
        : e.removeAttribute("type"),
      e
    );
  }
  function De(e, t) {
    var n, r, i, o;
    if (1 === t.nodeType) {
      if (Y.hasData(e) && (o = Y.get(e).events))
        for (i in (Y.remove(t, "handle events"), o))
          for (n = 0, r = o[i].length; n < r; n++) C.event.add(t, i, o[i][n]);
      G.hasData(e) && ((e = G.access(e)), (e = C.extend({}, e)), G.set(t, e));
    }
  }
  function Ne(n, r, i, o) {
    r = v(r);
    var e,
      t,
      a,
      s,
      c,
      l,
      u = 0,
      d = n.length,
      p = d - 1,
      h = r[0],
      f = g(h);
    if (f || (1 < d && "string" == typeof h && !b.checkClone && Ee.test(h)))
      return n.each(function (e) {
        var t = n.eq(e);
        f && (r[0] = h.call(this, e, t.html())), Ne(t, r, i, o);
      });
    if (
      d &&
      ((t = (e = ve(r, n[0].ownerDocument, !1, n, o)).firstChild),
      1 === e.childNodes.length && (e = t),
      t || o)
    ) {
      for (s = (a = C.map(fe(e, "script"), ke)).length; u < d; u++)
        (c = e),
          u !== p &&
            ((c = C.clone(c, !0, !0)), s && C.merge(a, fe(c, "script"))),
          i.call(n[u], c, u);
      if (s)
        for (l = a[a.length - 1].ownerDocument, C.map(a, Ae), u = 0; u < s; u++)
          (c = a[u]),
            pe.test(c.type || "") &&
              !Y.access(c, "globalEval") &&
              C.contains(l, c) &&
              (c.src && "module" !== (c.type || "").toLowerCase()
                ? C._evalUrl &&
                  !c.noModule &&
                  C._evalUrl(
                    c.src,
                    { nonce: c.nonce || c.getAttribute("nonce") },
                    l
                  )
                : x(c.textContent.replace(Le, ""), c, l));
    }
    return n;
  }
  function je(e, t, n) {
    for (var r, i = t ? C.filter(t, e) : e, o = 0; null != (r = i[o]); o++)
      n || 1 !== r.nodeType || C.cleanData(fe(r)),
        r.parentNode &&
          (n && ie(r) && ge(fe(r, "script")), r.parentNode.removeChild(r));
    return e;
  }
  C.extend({
    htmlPrefilter: function (e) {
      return e;
    },
    clone: function (e, t, n) {
      var r,
        i,
        o,
        a,
        s,
        c,
        l,
        u = e.cloneNode(!0),
        d = ie(e);
      if (
        !(
          b.noCloneChecked ||
          (1 !== e.nodeType && 11 !== e.nodeType) ||
          C.isXMLDoc(e)
        )
      )
        for (a = fe(u), r = 0, i = (o = fe(e)).length; r < i; r++)
          (s = o[r]),
            "input" === (l = (c = a[r]).nodeName.toLowerCase()) &&
            ue.test(s.type)
              ? (c.checked = s.checked)
              : ("input" !== l && "textarea" !== l) ||
                (c.defaultValue = s.defaultValue);
      if (t)
        if (n)
          for (o = o || fe(e), a = a || fe(u), r = 0, i = o.length; r < i; r++)
            De(o[r], a[r]);
        else De(e, u);
      return (
        0 < (a = fe(u, "script")).length && ge(a, !d && fe(e, "script")), u
      );
    },
    cleanData: function (e) {
      for (var t, n, r, i = C.event.special, o = 0; void 0 !== (n = e[o]); o++)
        if (V(n)) {
          if ((t = n[Y.expando])) {
            if (t.events)
              for (r in t.events)
                i[r] ? C.event.remove(n, r) : C.removeEvent(n, r, t.handle);
            n[Y.expando] = void 0;
          }
          n[G.expando] && (n[G.expando] = void 0);
        }
    },
  }),
    C.fn.extend({
      detach: function (e) {
        return je(this, e, !0);
      },
      remove: function (e) {
        return je(this, e);
      },
      text: function (e) {
        return R(
          this,
          function (e) {
            return void 0 === e
              ? C.text(this)
              : this.empty().each(function () {
                  (1 !== this.nodeType &&
                    11 !== this.nodeType &&
                    9 !== this.nodeType) ||
                    (this.textContent = e);
                });
          },
          null,
          e,
          arguments.length
        );
      },
      append: function () {
        return Ne(this, arguments, function (e) {
          (1 !== this.nodeType &&
            11 !== this.nodeType &&
            9 !== this.nodeType) ||
            Ie(this, e).appendChild(e);
        });
      },
      prepend: function () {
        return Ne(this, arguments, function (e) {
          var t;
          (1 !== this.nodeType &&
            11 !== this.nodeType &&
            9 !== this.nodeType) ||
            (t = Ie(this, e)).insertBefore(e, t.firstChild);
        });
      },
      before: function () {
        return Ne(this, arguments, function (e) {
          this.parentNode && this.parentNode.insertBefore(e, this);
        });
      },
      after: function () {
        return Ne(this, arguments, function (e) {
          this.parentNode && this.parentNode.insertBefore(e, this.nextSibling);
        });
      },
      empty: function () {
        for (var e, t = 0; null != (e = this[t]); t++)
          1 === e.nodeType && (C.cleanData(fe(e, !1)), (e.textContent = ""));
        return this;
      },
      clone: function (e, t) {
        return (
          (e = null != e && e),
          (t = null == t ? e : t),
          this.map(function () {
            return C.clone(this, e, t);
          })
        );
      },
      html: function (e) {
        return R(
          this,
          function (e) {
            var t = this[0] || {},
              n = 0,
              r = this.length;
            if (void 0 === e && 1 === t.nodeType) return t.innerHTML;
            if (
              "string" == typeof e &&
              !Te.test(e) &&
              !he[(de.exec(e) || ["", ""])[1].toLowerCase()]
            ) {
              e = C.htmlPrefilter(e);
              try {
                for (; n < r; n++)
                  1 === (t = this[n] || {}).nodeType &&
                    (C.cleanData(fe(t, !1)), (t.innerHTML = e));
                t = 0;
              } catch (e) {}
            }
            t && this.empty().append(e);
          },
          null,
          e,
          arguments.length
        );
      },
      replaceWith: function () {
        var n = [];
        return Ne(
          this,
          arguments,
          function (e) {
            var t = this.parentNode;
            C.inArray(this, n) < 0 &&
              (C.cleanData(fe(this)), t && t.replaceChild(e, this));
          },
          n
        );
      },
    }),
    C.each(
      {
        appendTo: "append",
        prependTo: "prepend",
        insertBefore: "before",
        insertAfter: "after",
        replaceAll: "replaceWith",
      },
      function (e, a) {
        C.fn[e] = function (e) {
          for (var t, n = [], r = C(e), i = r.length - 1, o = 0; o <= i; o++)
            (t = o === i ? this : this.clone(!0)),
              C(r[o])[a](t),
              c.apply(n, t.get());
          return this.pushStack(n);
        };
      }
    );
  function Fe(e) {
    var t = e.ownerDocument.defaultView;
    return (t = !t || !t.opener ? H : t).getComputedStyle(e);
  }
  function qe(e, t, n) {
    var r,
      i = {};
    for (r in t) (i[r] = e.style[r]), (e.style[r] = t[r]);
    for (r in ((n = n.call(e)), t)) e.style[r] = i[r];
    return n;
  }
  var Be,
    Oe,
    $e,
    ze,
    Me,
    Re,
    _e,
    Qe,
    We = new RegExp("^(" + ee + ")(?!px)[a-z%]+$", "i"),
    Ue = new RegExp(ne.join("|"), "i");
  function Ve(e, t, n) {
    var r,
      i,
      o = e.style;
    return (
      (n = n || Fe(e)) &&
        ("" !== (i = n.getPropertyValue(t) || n[t]) ||
          ie(e) ||
          (i = C.style(e, t)),
        !b.pixelBoxStyles() &&
          We.test(i) &&
          Ue.test(t) &&
          ((r = o.width),
          (e = o.minWidth),
          (t = o.maxWidth),
          (o.minWidth = o.maxWidth = o.width = i),
          (i = n.width),
          (o.width = r),
          (o.minWidth = e),
          (o.maxWidth = t))),
      void 0 !== i ? i + "" : i
    );
  }
  function Xe(e, t) {
    return {
      get: function () {
        if (!e()) return (this.get = t).apply(this, arguments);
        delete this.get;
      },
    };
  }
  function Ye() {
    var e;
    Qe &&
      ((_e.style.cssText =
        "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"),
      (Qe.style.cssText =
        "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"),
      re.appendChild(_e).appendChild(Qe),
      (e = H.getComputedStyle(Qe)),
      (Be = "1%" !== e.top),
      (Re = 12 === Ge(e.marginLeft)),
      (Qe.style.right = "60%"),
      (ze = 36 === Ge(e.right)),
      (Oe = 36 === Ge(e.width)),
      (Qe.style.position = "absolute"),
      ($e = 12 === Ge(Qe.offsetWidth / 3)),
      re.removeChild(_e),
      (Qe = null));
  }
  function Ge(e) {
    return Math.round(parseFloat(e));
  }
  (_e = w.createElement("div")),
    (Qe = w.createElement("div")).style &&
      ((Qe.style.backgroundClip = "content-box"),
      (Qe.cloneNode(!0).style.backgroundClip = ""),
      (b.clearCloneStyle = "content-box" === Qe.style.backgroundClip),
      C.extend(b, {
        boxSizingReliable: function () {
          return Ye(), Oe;
        },
        pixelBoxStyles: function () {
          return Ye(), ze;
        },
        pixelPosition: function () {
          return Ye(), Be;
        },
        reliableMarginLeft: function () {
          return Ye(), Re;
        },
        scrollboxSize: function () {
          return Ye(), $e;
        },
        reliableTrDimensions: function () {
          var e, t, n;
          return (
            null == Me &&
              ((e = w.createElement("table")),
              (n = w.createElement("tr")),
              (t = w.createElement("div")),
              (e.style.cssText = "position:absolute;left:-11111px"),
              (n.style.height = "1px"),
              (t.style.height = "9px"),
              re.appendChild(e).appendChild(n).appendChild(t),
              (n = H.getComputedStyle(n)),
              (Me = 3 < parseInt(n.height)),
              re.removeChild(e)),
            Me
          );
        },
      }));
  var Je = ["Webkit", "Moz", "ms"],
    Ke = w.createElement("div").style,
    Ze = {};
  function et(e) {
    return (
      C.cssProps[e] ||
      Ze[e] ||
      (e in Ke
        ? e
        : (Ze[e] =
            (function (e) {
              for (
                var t = e[0].toUpperCase() + e.slice(1), n = Je.length;
                n--;

              )
                if ((e = Je[n] + t) in Ke) return e;
            })(e) || e))
    );
  }
  var tt = /^(none|table(?!-c[ea]).+)/,
    nt = /^--/,
    rt = { position: "absolute", visibility: "hidden", display: "block" },
    it = { letterSpacing: "0", fontWeight: "400" };
  function ot(e, t, n) {
    var r = te.exec(t);
    return r ? Math.max(0, r[2] - (n || 0)) + (r[3] || "px") : t;
  }
  function at(e, t, n, r, i, o) {
    var a = "width" === t ? 1 : 0,
      s = 0,
      c = 0;
    if (n === (r ? "border" : "content")) return 0;
    for (; a < 4; a += 2)
      "margin" === n && (c += C.css(e, n + ne[a], !0, i)),
        r
          ? ("content" === n && (c -= C.css(e, "padding" + ne[a], !0, i)),
            "margin" !== n &&
              (c -= C.css(e, "border" + ne[a] + "Width", !0, i)))
          : ((c += C.css(e, "padding" + ne[a], !0, i)),
            "padding" !== n
              ? (c += C.css(e, "border" + ne[a] + "Width", !0, i))
              : (s += C.css(e, "border" + ne[a] + "Width", !0, i)));
    return (
      !r &&
        0 <= o &&
        (c +=
          Math.max(
            0,
            Math.ceil(
              e["offset" + t[0].toUpperCase() + t.slice(1)] - o - c - s - 0.5
            )
          ) || 0),
      c
    );
  }
  function st(e, t, n) {
    var r = Fe(e),
      i =
        (!b.boxSizingReliable() || n) &&
        "border-box" === C.css(e, "boxSizing", !1, r),
      o = i,
      a = Ve(e, t, r),
      s = "offset" + t[0].toUpperCase() + t.slice(1);
    if (We.test(a)) {
      if (!n) return a;
      a = "auto";
    }
    return (
      ((!b.boxSizingReliable() && i) ||
        (!b.reliableTrDimensions() && E(e, "tr")) ||
        "auto" === a ||
        (!parseFloat(a) && "inline" === C.css(e, "display", !1, r))) &&
        e.getClientRects().length &&
        ((i = "border-box" === C.css(e, "boxSizing", !1, r)),
        (o = s in e) && (a = e[s])),
      (a = parseFloat(a) || 0) +
        at(e, t, n || (i ? "border" : "content"), o, r, a) +
        "px"
    );
  }
  function ct(e, t, n, r, i) {
    return new ct.prototype.init(e, t, n, r, i);
  }
  C.extend({
    cssHooks: {
      opacity: {
        get: function (e, t) {
          if (t) {
            e = Ve(e, "opacity");
            return "" === e ? "1" : e;
          }
        },
      },
    },
    cssNumber: {
      animationIterationCount: !0,
      columnCount: !0,
      fillOpacity: !0,
      flexGrow: !0,
      flexShrink: !0,
      fontWeight: !0,
      gridArea: !0,
      gridColumn: !0,
      gridColumnEnd: !0,
      gridColumnStart: !0,
      gridRow: !0,
      gridRowEnd: !0,
      gridRowStart: !0,
      lineHeight: !0,
      opacity: !0,
      order: !0,
      orphans: !0,
      widows: !0,
      zIndex: !0,
      zoom: !0,
    },
    cssProps: {},
    style: function (e, t, n, r) {
      if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
        var i,
          o,
          a,
          s = U(t),
          c = nt.test(t),
          l = e.style;
        if (
          (c || (t = et(s)), (a = C.cssHooks[t] || C.cssHooks[s]), void 0 === n)
        )
          return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i : l[t];
        "string" == (o = typeof n) &&
          (i = te.exec(n)) &&
          i[1] &&
          ((n = se(e, t, i)), (o = "number")),
          null != n &&
            n == n &&
            ("number" !== o ||
              c ||
              (n += (i && i[3]) || (C.cssNumber[s] ? "" : "px")),
            b.clearCloneStyle ||
              "" !== n ||
              0 !== t.indexOf("background") ||
              (l[t] = "inherit"),
            (a && "set" in a && void 0 === (n = a.set(e, n, r))) ||
              (c ? l.setProperty(t, n) : (l[t] = n)));
      }
    },
    css: function (e, t, n, r) {
      var i,
        o = U(t);
      return (
        nt.test(t) || (t = et(o)),
        "normal" ===
          (i =
            void 0 ===
            (i =
              (o = C.cssHooks[t] || C.cssHooks[o]) && "get" in o
                ? o.get(e, !0, n)
                : i)
              ? Ve(e, t, r)
              : i) &&
          t in it &&
          (i = it[t]),
        "" === n || n
          ? ((t = parseFloat(i)), !0 === n || isFinite(t) ? t || 0 : i)
          : i
      );
    },
  }),
    C.each(["height", "width"], function (e, s) {
      C.cssHooks[s] = {
        get: function (e, t, n) {
          if (t)
            return !tt.test(C.css(e, "display")) ||
              (e.getClientRects().length && e.getBoundingClientRect().width)
              ? st(e, s, n)
              : qe(e, rt, function () {
                  return st(e, s, n);
                });
        },
        set: function (e, t, n) {
          var r,
            i = Fe(e),
            o = !b.scrollboxSize() && "absolute" === i.position,
            a = (o || n) && "border-box" === C.css(e, "boxSizing", !1, i),
            n = n ? at(e, s, n, a, i) : 0;
          return (
            a &&
              o &&
              (n -= Math.ceil(
                e["offset" + s[0].toUpperCase() + s.slice(1)] -
                  parseFloat(i[s]) -
                  at(e, s, "border", !1, i) -
                  0.5
              )),
            n &&
              (r = te.exec(t)) &&
              "px" !== (r[3] || "px") &&
              ((e.style[s] = t), (t = C.css(e, s))),
            ot(0, t, n)
          );
        },
      };
    }),
    (C.cssHooks.marginLeft = Xe(b.reliableMarginLeft, function (e, t) {
      if (t)
        return (
          (parseFloat(Ve(e, "marginLeft")) ||
            e.getBoundingClientRect().left -
              qe(e, { marginLeft: 0 }, function () {
                return e.getBoundingClientRect().left;
              })) + "px"
        );
    })),
    C.each({ margin: "", padding: "", border: "Width" }, function (i, o) {
      (C.cssHooks[i + o] = {
        expand: function (e) {
          for (
            var t = 0, n = {}, r = "string" == typeof e ? e.split(" ") : [e];
            t < 4;
            t++
          )
            n[i + ne[t] + o] = r[t] || r[t - 2] || r[0];
          return n;
        },
      }),
        "margin" !== i && (C.cssHooks[i + o].set = ot);
    }),
    C.fn.extend({
      css: function (e, t) {
        return R(
          this,
          function (e, t, n) {
            var r,
              i,
              o = {},
              a = 0;
            if (Array.isArray(t)) {
              for (r = Fe(e), i = t.length; a < i; a++)
                o[t[a]] = C.css(e, t[a], !1, r);
              return o;
            }
            return void 0 !== n ? C.style(e, t, n) : C.css(e, t);
          },
          e,
          t,
          1 < arguments.length
        );
      },
    }),
    (((C.Tween = ct).prototype = {
      constructor: ct,
      init: function (e, t, n, r, i, o) {
        (this.elem = e),
          (this.prop = n),
          (this.easing = i || C.easing._default),
          (this.options = t),
          (this.start = this.now = this.cur()),
          (this.end = r),
          (this.unit = o || (C.cssNumber[n] ? "" : "px"));
      },
      cur: function () {
        var e = ct.propHooks[this.prop];
        return (e && e.get ? e : ct.propHooks._default).get(this);
      },
      run: function (e) {
        var t,
          n = ct.propHooks[this.prop];
        return (
          this.options.duration
            ? (this.pos = t =
                C.easing[this.easing](
                  e,
                  this.options.duration * e,
                  0,
                  1,
                  this.options.duration
                ))
            : (this.pos = t = e),
          (this.now = (this.end - this.start) * t + this.start),
          this.options.step &&
            this.options.step.call(this.elem, this.now, this),
          (n && n.set ? n : ct.propHooks._default).set(this),
          this
        );
      },
    }).init.prototype = ct.prototype),
    ((ct.propHooks = {
      _default: {
        get: function (e) {
          return 1 !== e.elem.nodeType ||
            (null != e.elem[e.prop] && null == e.elem.style[e.prop])
            ? e.elem[e.prop]
            : (e = C.css(e.elem, e.prop, "")) && "auto" !== e
            ? e
            : 0;
        },
        set: function (e) {
          C.fx.step[e.prop]
            ? C.fx.step[e.prop](e)
            : 1 !== e.elem.nodeType ||
              (!C.cssHooks[e.prop] && null == e.elem.style[et(e.prop)])
            ? (e.elem[e.prop] = e.now)
            : C.style(e.elem, e.prop, e.now + e.unit);
        },
      },
    }).scrollTop = ct.propHooks.scrollLeft =
      {
        set: function (e) {
          e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now);
        },
      }),
    (C.easing = {
      linear: function (e) {
        return e;
      },
      swing: function (e) {
        return 0.5 - Math.cos(e * Math.PI) / 2;
      },
      _default: "swing",
    }),
    (C.fx = ct.prototype.init),
    (C.fx.step = {});
  var lt,
    ut,
    dt = /^(?:toggle|show|hide)$/,
    pt = /queueHooks$/;
  function ht() {
    ut &&
      (!1 === w.hidden && H.requestAnimationFrame
        ? H.requestAnimationFrame(ht)
        : H.setTimeout(ht, C.fx.interval),
      C.fx.tick());
  }
  function ft() {
    return (
      H.setTimeout(function () {
        lt = void 0;
      }),
      (lt = Date.now())
    );
  }
  function gt(e, t) {
    var n,
      r = 0,
      i = { height: e };
    for (t = t ? 1 : 0; r < 4; r += 2 - t)
      i["margin" + (n = ne[r])] = i["padding" + n] = e;
    return t && (i.opacity = i.width = e), i;
  }
  function mt(e, t, n) {
    for (
      var r,
        i = (vt.tweeners[t] || []).concat(vt.tweeners["*"]),
        o = 0,
        a = i.length;
      o < a;
      o++
    )
      if ((r = i[o].call(n, t, e))) return r;
  }
  function vt(i, e, t) {
    var n,
      o,
      r = 0,
      a = vt.prefilters.length,
      s = C.Deferred().always(function () {
        delete c.elem;
      }),
      c = function () {
        if (o) return !1;
        for (
          var e = lt || ft(),
            e = Math.max(0, l.startTime + l.duration - e),
            t = 1 - (e / l.duration || 0),
            n = 0,
            r = l.tweens.length;
          n < r;
          n++
        )
          l.tweens[n].run(t);
        return (
          s.notifyWith(i, [l, t, e]),
          t < 1 && r
            ? e
            : (r || s.notifyWith(i, [l, 1, 0]), s.resolveWith(i, [l]), !1)
        );
      },
      l = s.promise({
        elem: i,
        props: C.extend({}, e),
        opts: C.extend(!0, { specialEasing: {}, easing: C.easing._default }, t),
        originalProperties: e,
        originalOptions: t,
        startTime: lt || ft(),
        duration: t.duration,
        tweens: [],
        createTween: function (e, t) {
          e = C.Tween(
            i,
            l.opts,
            e,
            t,
            l.opts.specialEasing[e] || l.opts.easing
          );
          return l.tweens.push(e), e;
        },
        stop: function (e) {
          var t = 0,
            n = e ? l.tweens.length : 0;
          if (o) return this;
          for (o = !0; t < n; t++) l.tweens[t].run(1);
          return (
            e
              ? (s.notifyWith(i, [l, 1, 0]), s.resolveWith(i, [l, e]))
              : s.rejectWith(i, [l, e]),
            this
          );
        },
      }),
      u = l.props;
    for (
      (function (e, t) {
        var n, r, i, o, a;
        for (n in e)
          if (
            ((i = t[(r = U(n))]),
            (o = e[n]),
            Array.isArray(o) && ((i = o[1]), (o = e[n] = o[0])),
            n !== r && ((e[r] = o), delete e[n]),
            (a = C.cssHooks[r]) && ("expand" in a))
          )
            for (n in ((o = a.expand(o)), delete e[r], o))
              (n in e) || ((e[n] = o[n]), (t[n] = i));
          else t[r] = i;
      })(u, l.opts.specialEasing);
      r < a;
      r++
    )
      if ((n = vt.prefilters[r].call(l, i, u, l.opts)))
        return (
          g(n.stop) &&
            (C._queueHooks(l.elem, l.opts.queue).stop = n.stop.bind(n)),
          n
        );
    return (
      C.map(u, mt, l),
      g(l.opts.start) && l.opts.start.call(i, l),
      l
        .progress(l.opts.progress)
        .done(l.opts.done, l.opts.complete)
        .fail(l.opts.fail)
        .always(l.opts.always),
      C.fx.timer(C.extend(c, { elem: i, anim: l, queue: l.opts.queue })),
      l
    );
  }
  (C.Animation = C.extend(vt, {
    tweeners: {
      "*": [
        function (e, t) {
          var n = this.createTween(e, t);
          return se(n.elem, e, te.exec(t), n), n;
        },
      ],
    },
    tweener: function (e, t) {
      for (
        var n, r = 0, i = (e = g(e) ? ((t = e), ["*"]) : e.match(F)).length;
        r < i;
        r++
      )
        (n = e[r]),
          (vt.tweeners[n] = vt.tweeners[n] || []),
          vt.tweeners[n].unshift(t);
    },
    prefilters: [
      function (e, t, n) {
        var r,
          i,
          o,
          a,
          s,
          c,
          l,
          u = "width" in t || "height" in t,
          d = this,
          p = {},
          h = e.style,
          f = e.nodeType && ae(e),
          g = Y.get(e, "fxshow");
        for (r in (n.queue ||
          (null == (a = C._queueHooks(e, "fx")).unqueued &&
            ((a.unqueued = 0),
            (s = a.empty.fire),
            (a.empty.fire = function () {
              a.unqueued || s();
            })),
          a.unqueued++,
          d.always(function () {
            d.always(function () {
              a.unqueued--, C.queue(e, "fx").length || a.empty.fire();
            });
          })),
        t))
          if (((i = t[r]), dt.test(i))) {
            if (
              (delete t[r],
              (o = o || "toggle" === i),
              i === (f ? "hide" : "show"))
            ) {
              if ("show" !== i || !g || void 0 === g[r]) continue;
              f = !0;
            }
            p[r] = (g && g[r]) || C.style(e, r);
          }
        if ((c = !C.isEmptyObject(t)) || !C.isEmptyObject(p))
          for (r in (u &&
            1 === e.nodeType &&
            ((n.overflow = [h.overflow, h.overflowX, h.overflowY]),
            null == (l = g && g.display) && (l = Y.get(e, "display")),
            "none" === (u = C.css(e, "display")) &&
              (l
                ? (u = l)
                : (le([e], !0),
                  (l = e.style.display || l),
                  (u = C.css(e, "display")),
                  le([e]))),
            ("inline" === u || ("inline-block" === u && null != l)) &&
              "none" === C.css(e, "float") &&
              (c ||
                (d.done(function () {
                  h.display = l;
                }),
                null == l && ((u = h.display), (l = "none" === u ? "" : u))),
              (h.display = "inline-block"))),
          n.overflow &&
            ((h.overflow = "hidden"),
            d.always(function () {
              (h.overflow = n.overflow[0]),
                (h.overflowX = n.overflow[1]),
                (h.overflowY = n.overflow[2]);
            })),
          (c = !1),
          p))
            c ||
              (g
                ? "hidden" in g && (f = g.hidden)
                : (g = Y.access(e, "fxshow", { display: l })),
              o && (g.hidden = !f),
              f && le([e], !0),
              d.done(function () {
                for (r in (f || le([e]), Y.remove(e, "fxshow"), p))
                  C.style(e, r, p[r]);
              })),
              (c = mt(f ? g[r] : 0, r, d)),
              r in g ||
                ((g[r] = c.start), f && ((c.end = c.start), (c.start = 0)));
      },
    ],
    prefilter: function (e, t) {
      t ? vt.prefilters.unshift(e) : vt.prefilters.push(e);
    },
  })),
    (C.speed = function (e, t, n) {
      var r =
        e && "object" == typeof e
          ? C.extend({}, e)
          : {
              complete: n || (!n && t) || (g(e) && e),
              duration: e,
              easing: (n && t) || (t && !g(t) && t),
            };
      return (
        C.fx.off
          ? (r.duration = 0)
          : "number" != typeof r.duration &&
            (r.duration in C.fx.speeds
              ? (r.duration = C.fx.speeds[r.duration])
              : (r.duration = C.fx.speeds._default)),
        (null != r.queue && !0 !== r.queue) || (r.queue = "fx"),
        (r.old = r.complete),
        (r.complete = function () {
          g(r.old) && r.old.call(this), r.queue && C.dequeue(this, r.queue);
        }),
        r
      );
    }),
    C.fn.extend({
      fadeTo: function (e, t, n, r) {
        return this.filter(ae)
          .css("opacity", 0)
          .show()
          .end()
          .animate({ opacity: t }, e, n, r);
      },
      animate: function (t, e, n, r) {
        function i() {
          var e = vt(this, C.extend({}, t), a);
          (o || Y.get(this, "finish")) && e.stop(!0);
        }
        var o = C.isEmptyObject(t),
          a = C.speed(e, n, r);
        return (
          (i.finish = i),
          o || !1 === a.queue ? this.each(i) : this.queue(a.queue, i)
        );
      },
      stop: function (i, e, o) {
        function a(e) {
          var t = e.stop;
          delete e.stop, t(o);
        }
        return (
          "string" != typeof i && ((o = e), (e = i), (i = void 0)),
          e && this.queue(i || "fx", []),
          this.each(function () {
            var e = !0,
              t = null != i && i + "queueHooks",
              n = C.timers,
              r = Y.get(this);
            if (t) r[t] && r[t].stop && a(r[t]);
            else for (t in r) r[t] && r[t].stop && pt.test(t) && a(r[t]);
            for (t = n.length; t--; )
              n[t].elem !== this ||
                (null != i && n[t].queue !== i) ||
                (n[t].anim.stop(o), (e = !1), n.splice(t, 1));
            (!e && o) || C.dequeue(this, i);
          })
        );
      },
      finish: function (a) {
        return (
          !1 !== a && (a = a || "fx"),
          this.each(function () {
            var e,
              t = Y.get(this),
              n = t[a + "queue"],
              r = t[a + "queueHooks"],
              i = C.timers,
              o = n ? n.length : 0;
            for (
              t.finish = !0,
                C.queue(this, a, []),
                r && r.stop && r.stop.call(this, !0),
                e = i.length;
              e--;

            )
              i[e].elem === this &&
                i[e].queue === a &&
                (i[e].anim.stop(!0), i.splice(e, 1));
            for (e = 0; e < o; e++)
              n[e] && n[e].finish && n[e].finish.call(this);
            delete t.finish;
          })
        );
      },
    }),
    C.each(["toggle", "show", "hide"], function (e, r) {
      var i = C.fn[r];
      C.fn[r] = function (e, t, n) {
        return null == e || "boolean" == typeof e
          ? i.apply(this, arguments)
          : this.animate(gt(r, !0), e, t, n);
      };
    }),
    C.each(
      {
        slideDown: gt("show"),
        slideUp: gt("hide"),
        slideToggle: gt("toggle"),
        fadeIn: { opacity: "show" },
        fadeOut: { opacity: "hide" },
        fadeToggle: { opacity: "toggle" },
      },
      function (e, r) {
        C.fn[e] = function (e, t, n) {
          return this.animate(r, e, t, n);
        };
      }
    ),
    (C.timers = []),
    (C.fx.tick = function () {
      var e,
        t = 0,
        n = C.timers;
      for (lt = Date.now(); t < n.length; t++)
        (e = n[t])() || n[t] !== e || n.splice(t--, 1);
      n.length || C.fx.stop(), (lt = void 0);
    }),
    (C.fx.timer = function (e) {
      C.timers.push(e), C.fx.start();
    }),
    (C.fx.interval = 13),
    (C.fx.start = function () {
      ut || ((ut = !0), ht());
    }),
    (C.fx.stop = function () {
      ut = null;
    }),
    (C.fx.speeds = { slow: 600, fast: 200, _default: 400 }),
    (C.fn.delay = function (r, e) {
      return (
        (r = (C.fx && C.fx.speeds[r]) || r),
        this.queue((e = e || "fx"), function (e, t) {
          var n = H.setTimeout(e, r);
          t.stop = function () {
            H.clearTimeout(n);
          };
        })
      );
    }),
    (d = w.createElement("input")),
    (ee = w.createElement("select").appendChild(w.createElement("option"))),
    (d.type = "checkbox"),
    (b.checkOn = "" !== d.value),
    (b.optSelected = ee.selected),
    ((d = w.createElement("input")).value = "t"),
    (d.type = "radio"),
    (b.radioValue = "t" === d.value);
  var yt,
    bt = C.expr.attrHandle;
  C.fn.extend({
    attr: function (e, t) {
      return R(this, C.attr, e, t, 1 < arguments.length);
    },
    removeAttr: function (e) {
      return this.each(function () {
        C.removeAttr(this, e);
      });
    },
  }),
    C.extend({
      attr: function (e, t, n) {
        var r,
          i,
          o = e.nodeType;
        if (3 !== o && 8 !== o && 2 !== o)
          return void 0 === e.getAttribute
            ? C.prop(e, t, n)
            : ((1 === o && C.isXMLDoc(e)) ||
                (i =
                  C.attrHooks[t.toLowerCase()] ||
                  (C.expr.match.bool.test(t) ? yt : void 0)),
              void 0 !== n
                ? null === n
                  ? void C.removeAttr(e, t)
                  : i && "set" in i && void 0 !== (r = i.set(e, n, t))
                  ? r
                  : (e.setAttribute(t, n + ""), n)
                : !(i && "get" in i && null !== (r = i.get(e, t))) &&
                  null == (r = C.find.attr(e, t))
                ? void 0
                : r);
      },
      attrHooks: {
        type: {
          set: function (e, t) {
            if (!b.radioValue && "radio" === t && E(e, "input")) {
              var n = e.value;
              return e.setAttribute("type", t), n && (e.value = n), t;
            }
          },
        },
      },
      removeAttr: function (e, t) {
        var n,
          r = 0,
          i = t && t.match(F);
        if (i && 1 === e.nodeType) for (; (n = i[r++]); ) e.removeAttribute(n);
      },
    }),
    (yt = {
      set: function (e, t, n) {
        return !1 === t ? C.removeAttr(e, n) : e.setAttribute(n, n), n;
      },
    }),
    C.each(C.expr.match.bool.source.match(/\w+/g), function (e, t) {
      var a = bt[t] || C.find.attr;
      bt[t] = function (e, t, n) {
        var r,
          i,
          o = t.toLowerCase();
        return (
          n ||
            ((i = bt[o]),
            (bt[o] = r),
            (r = null != a(e, t, n) ? o : null),
            (bt[o] = i)),
          r
        );
      };
    });
  var xt = /^(?:input|select|textarea|button)$/i,
    Pt = /^(?:a|area)$/i;
  function Ht(e) {
    return (e.match(F) || []).join(" ");
  }
  function wt(e) {
    return (e.getAttribute && e.getAttribute("class")) || "";
  }
  function Ct(e) {
    return Array.isArray(e) ? e : ("string" == typeof e && e.match(F)) || [];
  }
  C.fn.extend({
    prop: function (e, t) {
      return R(this, C.prop, e, t, 1 < arguments.length);
    },
    removeProp: function (e) {
      return this.each(function () {
        delete this[C.propFix[e] || e];
      });
    },
  }),
    C.extend({
      prop: function (e, t, n) {
        var r,
          i,
          o = e.nodeType;
        if (3 !== o && 8 !== o && 2 !== o)
          return (
            (1 === o && C.isXMLDoc(e)) ||
              ((t = C.propFix[t] || t), (i = C.propHooks[t])),
            void 0 !== n
              ? i && "set" in i && void 0 !== (r = i.set(e, n, t))
                ? r
                : (e[t] = n)
              : i && "get" in i && null !== (r = i.get(e, t))
              ? r
              : e[t]
          );
      },
      propHooks: {
        tabIndex: {
          get: function (e) {
            var t = C.find.attr(e, "tabindex");
            return t
              ? parseInt(t, 10)
              : xt.test(e.nodeName) || (Pt.test(e.nodeName) && e.href)
              ? 0
              : -1;
          },
        },
      },
      propFix: { for: "htmlFor", class: "className" },
    }),
    b.optSelected ||
      (C.propHooks.selected = {
        get: function (e) {
          e = e.parentNode;
          return e && e.parentNode && e.parentNode.selectedIndex, null;
        },
        set: function (e) {
          e = e.parentNode;
          e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex);
        },
      }),
    C.each(
      [
        "tabIndex",
        "readOnly",
        "maxLength",
        "cellSpacing",
        "cellPadding",
        "rowSpan",
        "colSpan",
        "useMap",
        "frameBorder",
        "contentEditable",
      ],
      function () {
        C.propFix[this.toLowerCase()] = this;
      }
    ),
    C.fn.extend({
      addClass: function (t) {
        var e,
          n,
          r,
          i,
          o,
          a,
          s = 0;
        if (g(t))
          return this.each(function (e) {
            C(this).addClass(t.call(this, e, wt(this)));
          });
        if ((e = Ct(t)).length)
          for (; (n = this[s++]); )
            if (((a = wt(n)), (r = 1 === n.nodeType && " " + Ht(a) + " "))) {
              for (o = 0; (i = e[o++]); )
                r.indexOf(" " + i + " ") < 0 && (r += i + " ");
              a !== (a = Ht(r)) && n.setAttribute("class", a);
            }
        return this;
      },
      removeClass: function (t) {
        var e,
          n,
          r,
          i,
          o,
          a,
          s = 0;
        if (g(t))
          return this.each(function (e) {
            C(this).removeClass(t.call(this, e, wt(this)));
          });
        if (!arguments.length) return this.attr("class", "");
        if ((e = Ct(t)).length)
          for (; (n = this[s++]); )
            if (((a = wt(n)), (r = 1 === n.nodeType && " " + Ht(a) + " "))) {
              for (o = 0; (i = e[o++]); )
                for (; -1 < r.indexOf(" " + i + " "); )
                  r = r.replace(" " + i + " ", " ");
              a !== (a = Ht(r)) && n.setAttribute("class", a);
            }
        return this;
      },
      toggleClass: function (i, t) {
        var o = typeof i,
          a = "string" == o || Array.isArray(i);
        return "boolean" == typeof t && a
          ? t
            ? this.addClass(i)
            : this.removeClass(i)
          : g(i)
          ? this.each(function (e) {
              C(this).toggleClass(i.call(this, e, wt(this), t), t);
            })
          : this.each(function () {
              var e, t, n, r;
              if (a)
                for (t = 0, n = C(this), r = Ct(i); (e = r[t++]); )
                  n.hasClass(e) ? n.removeClass(e) : n.addClass(e);
              else
                (void 0 !== i && "boolean" != o) ||
                  ((e = wt(this)) && Y.set(this, "__className__", e),
                  this.setAttribute &&
                    this.setAttribute(
                      "class",
                      (!e && !1 !== i && Y.get(this, "__className__")) || ""
                    ));
            });
      },
      hasClass: function (e) {
        for (var t, n = 0, r = " " + e + " "; (t = this[n++]); )
          if (1 === t.nodeType && -1 < (" " + Ht(wt(t)) + " ").indexOf(r))
            return !0;
        return !1;
      },
    });
  var St = /\r/g;
  C.fn.extend({
    val: function (t) {
      var n,
        e,
        r,
        i = this[0];
      return arguments.length
        ? ((r = g(t)),
          this.each(function (e) {
            1 === this.nodeType &&
              (null == (e = r ? t.call(this, e, C(this).val()) : t)
                ? (e = "")
                : "number" == typeof e
                ? (e += "")
                : Array.isArray(e) &&
                  (e = C.map(e, function (e) {
                    return null == e ? "" : e + "";
                  })),
              ((n =
                C.valHooks[this.type] ||
                C.valHooks[this.nodeName.toLowerCase()]) &&
                "set" in n &&
                void 0 !== n.set(this, e, "value")) ||
                (this.value = e));
          }))
        : i
        ? (n = C.valHooks[i.type] || C.valHooks[i.nodeName.toLowerCase()]) &&
          "get" in n &&
          void 0 !== (e = n.get(i, "value"))
          ? e
          : "string" == typeof (e = i.value)
          ? e.replace(St, "")
          : null == e
          ? ""
          : e
        : void 0;
    },
  }),
    C.extend({
      valHooks: {
        option: {
          get: function (e) {
            var t = C.find.attr(e, "value");
            return null != t ? t : Ht(C.text(e));
          },
        },
        select: {
          get: function (e) {
            for (
              var t,
                n = e.options,
                r = e.selectedIndex,
                i = "select-one" === e.type,
                o = i ? null : [],
                a = i ? r + 1 : n.length,
                s = r < 0 ? a : i ? r : 0;
              s < a;
              s++
            )
              if (
                ((t = n[s]).selected || s === r) &&
                !t.disabled &&
                (!t.parentNode.disabled || !E(t.parentNode, "optgroup"))
              ) {
                if (((t = C(t).val()), i)) return t;
                o.push(t);
              }
            return o;
          },
          set: function (e, t) {
            for (
              var n, r, i = e.options, o = C.makeArray(t), a = i.length;
              a--;

            )
              ((r = i[a]).selected =
                -1 < C.inArray(C.valHooks.option.get(r), o)) && (n = !0);
            return n || (e.selectedIndex = -1), o;
          },
        },
      },
    }),
    C.each(["radio", "checkbox"], function () {
      (C.valHooks[this] = {
        set: function (e, t) {
          if (Array.isArray(t))
            return (e.checked = -1 < C.inArray(C(e).val(), t));
        },
      }),
        b.checkOn ||
          (C.valHooks[this].get = function (e) {
            return null === e.getAttribute("value") ? "on" : e.value;
          });
    }),
    (b.focusin = "onfocusin" in H);
  function Tt(e) {
    e.stopPropagation();
  }
  var Et = /^(?:focusinfocus|focusoutblur)$/;
  C.extend(C.event, {
    trigger: function (e, t, n, r) {
      var i,
        o,
        a,
        s,
        c,
        l,
        u,
        d = [n || w],
        p = y.call(e, "type") ? e.type : e,
        h = y.call(e, "namespace") ? e.namespace.split(".") : [],
        f = (u = o = n = n || w);
      if (
        3 !== n.nodeType &&
        8 !== n.nodeType &&
        !Et.test(p + C.event.triggered) &&
        (-1 < p.indexOf(".") && ((p = (h = p.split(".")).shift()), h.sort()),
        (s = p.indexOf(":") < 0 && "on" + p),
        ((e = e[C.expando]
          ? e
          : new C.Event(p, "object" == typeof e && e)).isTrigger = r ? 2 : 3),
        (e.namespace = h.join(".")),
        (e.rnamespace = e.namespace
          ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)")
          : null),
        (e.result = void 0),
        e.target || (e.target = n),
        (t = null == t ? [e] : C.makeArray(t, [e])),
        (l = C.event.special[p] || {}),
        r || !l.trigger || !1 !== l.trigger.apply(n, t))
      ) {
        if (!r && !l.noBubble && !m(n)) {
          for (
            a = l.delegateType || p, Et.test(a + p) || (f = f.parentNode);
            f;
            f = f.parentNode
          )
            d.push(f), (o = f);
          o === (n.ownerDocument || w) &&
            d.push(o.defaultView || o.parentWindow || H);
        }
        for (i = 0; (f = d[i++]) && !e.isPropagationStopped(); )
          (u = f),
            (e.type = 1 < i ? a : l.bindType || p),
            (c =
              (Y.get(f, "events") || Object.create(null))[e.type] &&
              Y.get(f, "handle")) && c.apply(f, t),
            (c = s && f[s]) &&
              c.apply &&
              V(f) &&
              ((e.result = c.apply(f, t)),
              !1 === e.result && e.preventDefault());
        return (
          (e.type = p),
          r ||
            e.isDefaultPrevented() ||
            (l._default && !1 !== l._default.apply(d.pop(), t)) ||
            !V(n) ||
            (s &&
              g(n[p]) &&
              !m(n) &&
              ((o = n[s]) && (n[s] = null),
              (C.event.triggered = p),
              e.isPropagationStopped() && u.addEventListener(p, Tt),
              n[p](),
              e.isPropagationStopped() && u.removeEventListener(p, Tt),
              (C.event.triggered = void 0),
              o && (n[s] = o))),
          e.result
        );
      }
    },
    simulate: function (e, t, n) {
      e = C.extend(new C.Event(), n, { type: e, isSimulated: !0 });
      C.event.trigger(e, null, t);
    },
  }),
    C.fn.extend({
      trigger: function (e, t) {
        return this.each(function () {
          C.event.trigger(e, t, this);
        });
      },
      triggerHandler: function (e, t) {
        var n = this[0];
        if (n) return C.event.trigger(e, t, n, !0);
      },
    }),
    b.focusin ||
      C.each({ focus: "focusin", blur: "focusout" }, function (n, r) {
        function i(e) {
          C.event.simulate(r, e.target, C.event.fix(e));
        }
        C.event.special[r] = {
          setup: function () {
            var e = this.ownerDocument || this.document || this,
              t = Y.access(e, r);
            t || e.addEventListener(n, i, !0), Y.access(e, r, (t || 0) + 1);
          },
          teardown: function () {
            var e = this.ownerDocument || this.document || this,
              t = Y.access(e, r) - 1;
            t
              ? Y.access(e, r, t)
              : (e.removeEventListener(n, i, !0), Y.remove(e, r));
          },
        };
      });
  var Lt = H.location,
    It = { guid: Date.now() },
    kt = /\?/;
  C.parseXML = function (e) {
    var t;
    if (!e || "string" != typeof e) return null;
    try {
      t = new H.DOMParser().parseFromString(e, "text/xml");
    } catch (e) {
      t = void 0;
    }
    return (
      (t && !t.getElementsByTagName("parsererror").length) ||
        C.error("Invalid XML: " + e),
      t
    );
  };
  var At = /\[\]$/,
    Dt = /\r?\n/g,
    Nt = /^(?:submit|button|image|reset|file)$/i,
    jt = /^(?:input|select|textarea|keygen)/i;
  (C.param = function (e, t) {
    function n(e, t) {
      (t = g(t) ? t() : t),
        (i[i.length] =
          encodeURIComponent(e) + "=" + encodeURIComponent(null == t ? "" : t));
    }
    var r,
      i = [];
    if (null == e) return "";
    if (Array.isArray(e) || (e.jquery && !C.isPlainObject(e)))
      C.each(e, function () {
        n(this.name, this.value);
      });
    else
      for (r in e)
        !(function n(r, e, i, o) {
          if (Array.isArray(e))
            C.each(e, function (e, t) {
              i || At.test(r)
                ? o(r, t)
                : n(
                    r +
                      "[" +
                      ("object" == typeof t && null != t ? e : "") +
                      "]",
                    t,
                    i,
                    o
                  );
            });
          else if (i || "object" !== f(e)) o(r, e);
          else for (var t in e) n(r + "[" + t + "]", e[t], i, o);
        })(r, e[r], t, n);
    return i.join("&");
  }),
    C.fn.extend({
      serialize: function () {
        return C.param(this.serializeArray());
      },
      serializeArray: function () {
        return this.map(function () {
          var e = C.prop(this, "elements");
          return e ? C.makeArray(e) : this;
        })
          .filter(function () {
            var e = this.type;
            return (
              this.name &&
              !C(this).is(":disabled") &&
              jt.test(this.nodeName) &&
              !Nt.test(e) &&
              (this.checked || !ue.test(e))
            );
          })
          .map(function (e, t) {
            var n = C(this).val();
            return null == n
              ? null
              : Array.isArray(n)
              ? C.map(n, function (e) {
                  return { name: t.name, value: e.replace(Dt, "\r\n") };
                })
              : { name: t.name, value: n.replace(Dt, "\r\n") };
          })
          .get();
      },
    });
  var Ft = /%20/g,
    qt = /#.*$/,
    Bt = /([?&])_=[^&]*/,
    Ot = /^(.*?):[ \t]*([^\r\n]*)$/gm,
    $t = /^(?:GET|HEAD)$/,
    zt = /^\/\//,
    Mt = {},
    Rt = {},
    _t = "*/".concat("*"),
    Qt = w.createElement("a");
  function Wt(o) {
    return function (e, t) {
      "string" != typeof e && ((t = e), (e = "*"));
      var n,
        r = 0,
        i = e.toLowerCase().match(F) || [];
      if (g(t))
        for (; (n = i[r++]); )
          "+" === n[0]
            ? ((n = n.slice(1) || "*"), (o[n] = o[n] || []).unshift(t))
            : (o[n] = o[n] || []).push(t);
    };
  }
  function Ut(t, r, i, o) {
    var a = {},
      s = t === Rt;
    function c(e) {
      var n;
      return (
        (a[e] = !0),
        C.each(t[e] || [], function (e, t) {
          t = t(r, i, o);
          return "string" != typeof t || s || a[t]
            ? s
              ? !(n = t)
              : void 0
            : (r.dataTypes.unshift(t), c(t), !1);
        }),
        n
      );
    }
    return c(r.dataTypes[0]) || (!a["*"] && c("*"));
  }
  function Vt(e, t) {
    var n,
      r,
      i = C.ajaxSettings.flatOptions || {};
    for (n in t) void 0 !== t[n] && ((i[n] ? e : (r = r || {}))[n] = t[n]);
    return r && C.extend(!0, e, r), e;
  }
  (Qt.href = Lt.href),
    C.extend({
      active: 0,
      lastModified: {},
      etag: {},
      ajaxSettings: {
        url: Lt.href,
        type: "GET",
        isLocal:
          /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(
            Lt.protocol
          ),
        global: !0,
        processData: !0,
        async: !0,
        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
        accepts: {
          "*": _t,
          text: "text/plain",
          html: "text/html",
          xml: "application/xml, text/xml",
          json: "application/json, text/javascript",
        },
        contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ },
        responseFields: {
          xml: "responseXML",
          text: "responseText",
          json: "responseJSON",
        },
        converters: {
          "* text": String,
          "text html": !0,
          "text json": JSON.parse,
          "text xml": C.parseXML,
        },
        flatOptions: { url: !0, context: !0 },
      },
      ajaxSetup: function (e, t) {
        return t ? Vt(Vt(e, C.ajaxSettings), t) : Vt(C.ajaxSettings, e);
      },
      ajaxPrefilter: Wt(Mt),
      ajaxTransport: Wt(Rt),
      ajax: function (e, t) {
        "object" == typeof e && ((t = e), (e = void 0));
        var c,
          l,
          u,
          n,
          d,
          p,
          h,
          r,
          i,
          f = C.ajaxSetup({}, (t = t || {})),
          g = f.context || f,
          m = f.context && (g.nodeType || g.jquery) ? C(g) : C.event,
          v = C.Deferred(),
          y = C.Callbacks("once memory"),
          b = f.statusCode || {},
          o = {},
          a = {},
          s = "canceled",
          x = {
            readyState: 0,
            getResponseHeader: function (e) {
              var t;
              if (p) {
                if (!n)
                  for (n = {}; (t = Ot.exec(u)); )
                    n[t[1].toLowerCase() + " "] = (
                      n[t[1].toLowerCase() + " "] || []
                    ).concat(t[2]);
                t = n[e.toLowerCase() + " "];
              }
              return null == t ? null : t.join(", ");
            },
            getAllResponseHeaders: function () {
              return p ? u : null;
            },
            setRequestHeader: function (e, t) {
              return (
                null == p &&
                  ((e = a[e.toLowerCase()] = a[e.toLowerCase()] || e),
                  (o[e] = t)),
                this
              );
            },
            overrideMimeType: function (e) {
              return null == p && (f.mimeType = e), this;
            },
            statusCode: function (e) {
              if (e)
                if (p) x.always(e[x.status]);
                else for (var t in e) b[t] = [b[t], e[t]];
              return this;
            },
            abort: function (e) {
              e = e || s;
              return c && c.abort(e), P(0, e), this;
            },
          };
        if (
          (v.promise(x),
          (f.url = ((e || f.url || Lt.href) + "").replace(
            zt,
            Lt.protocol + "//"
          )),
          (f.type = t.method || t.type || f.method || f.type),
          (f.dataTypes = (f.dataType || "*").toLowerCase().match(F) || [""]),
          null == f.crossDomain)
        ) {
          i = w.createElement("a");
          try {
            (i.href = f.url),
              (i.href = i.href),
              (f.crossDomain =
                Qt.protocol + "//" + Qt.host != i.protocol + "//" + i.host);
          } catch (e) {
            f.crossDomain = !0;
          }
        }
        if (
          (f.data &&
            f.processData &&
            "string" != typeof f.data &&
            (f.data = C.param(f.data, f.traditional)),
          Ut(Mt, f, t, x),
          p)
        )
          return x;
        for (r in ((h = C.event && f.global) &&
          0 == C.active++ &&
          C.event.trigger("ajaxStart"),
        (f.type = f.type.toUpperCase()),
        (f.hasContent = !$t.test(f.type)),
        (l = f.url.replace(qt, "")),
        f.hasContent
          ? f.data &&
            f.processData &&
            0 ===
              (f.contentType || "").indexOf(
                "application/x-www-form-urlencoded"
              ) &&
            (f.data = f.data.replace(Ft, "+"))
          : ((i = f.url.slice(l.length)),
            f.data &&
              (f.processData || "string" == typeof f.data) &&
              ((l += (kt.test(l) ? "&" : "?") + f.data), delete f.data),
            !1 === f.cache &&
              ((l = l.replace(Bt, "$1")),
              (i = (kt.test(l) ? "&" : "?") + "_=" + It.guid++ + i)),
            (f.url = l + i)),
        f.ifModified &&
          (C.lastModified[l] &&
            x.setRequestHeader("If-Modified-Since", C.lastModified[l]),
          C.etag[l] && x.setRequestHeader("If-None-Match", C.etag[l])),
        ((f.data && f.hasContent && !1 !== f.contentType) || t.contentType) &&
          x.setRequestHeader("Content-Type", f.contentType),
        x.setRequestHeader(
          "Accept",
          f.dataTypes[0] && f.accepts[f.dataTypes[0]]
            ? f.accepts[f.dataTypes[0]] +
                ("*" !== f.dataTypes[0] ? ", " + _t + "; q=0.01" : "")
            : f.accepts["*"]
        ),
        f.headers))
          x.setRequestHeader(r, f.headers[r]);
        if (f.beforeSend && (!1 === f.beforeSend.call(g, x, f) || p))
          return x.abort();
        if (
          ((s = "abort"),
          y.add(f.complete),
          x.done(f.success),
          x.fail(f.error),
          (c = Ut(Rt, f, t, x)))
        ) {
          if (((x.readyState = 1), h && m.trigger("ajaxSend", [x, f]), p))
            return x;
          f.async &&
            0 < f.timeout &&
            (d = H.setTimeout(function () {
              x.abort("timeout");
            }, f.timeout));
          try {
            (p = !1), c.send(o, P);
          } catch (e) {
            if (p) throw e;
            P(-1, e);
          }
        } else P(-1, "No Transport");
        function P(e, t, n, r) {
          var i,
            o,
            a,
            s = t;
          p ||
            ((p = !0),
            d && H.clearTimeout(d),
            (c = void 0),
            (u = r || ""),
            (x.readyState = 0 < e ? 4 : 0),
            (r = (200 <= e && e < 300) || 304 === e),
            n &&
              (a = (function (e, t, n) {
                for (
                  var r, i, o, a, s = e.contents, c = e.dataTypes;
                  "*" === c[0];

                )
                  c.shift(),
                    void 0 === r &&
                      (r = e.mimeType || t.getResponseHeader("Content-Type"));
                if (r)
                  for (i in s)
                    if (s[i] && s[i].test(r)) {
                      c.unshift(i);
                      break;
                    }
                if (c[0] in n) o = c[0];
                else {
                  for (i in n) {
                    if (!c[0] || e.converters[i + " " + c[0]]) {
                      o = i;
                      break;
                    }
                    a = a || i;
                  }
                  o = o || a;
                }
                if (o) return o !== c[0] && c.unshift(o), n[o];
              })(f, x, n)),
            !r &&
              -1 < C.inArray("script", f.dataTypes) &&
              (f.converters["text script"] = function () {}),
            (a = (function (e, t, n, r) {
              var i,
                o,
                a,
                s,
                c,
                l = {},
                u = e.dataTypes.slice();
              if (u[1])
                for (a in e.converters) l[a.toLowerCase()] = e.converters[a];
              for (o = u.shift(); o; )
                if (
                  (e.responseFields[o] && (n[e.responseFields[o]] = t),
                  !c && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)),
                  (c = o),
                  (o = u.shift()))
                )
                  if ("*" === o) o = c;
                  else if ("*" !== c && c !== o) {
                    if (!(a = l[c + " " + o] || l["* " + o]))
                      for (i in l)
                        if (
                          (s = i.split(" "))[1] === o &&
                          (a = l[c + " " + s[0]] || l["* " + s[0]])
                        ) {
                          !0 === a
                            ? (a = l[i])
                            : !0 !== l[i] && ((o = s[0]), u.unshift(s[1]));
                          break;
                        }
                    if (!0 !== a)
                      if (a && e.throws) t = a(t);
                      else
                        try {
                          t = a(t);
                        } catch (e) {
                          return {
                            state: "parsererror",
                            error: a
                              ? e
                              : "No conversion from " + c + " to " + o,
                          };
                        }
                  }
              return { state: "success", data: t };
            })(f, a, x, r)),
            r
              ? (f.ifModified &&
                  ((n = x.getResponseHeader("Last-Modified")) &&
                    (C.lastModified[l] = n),
                  (n = x.getResponseHeader("etag")) && (C.etag[l] = n)),
                204 === e || "HEAD" === f.type
                  ? (s = "nocontent")
                  : 304 === e
                  ? (s = "notmodified")
                  : ((s = a.state), (i = a.data), (r = !(o = a.error))))
              : ((o = s), (!e && s) || ((s = "error"), e < 0 && (e = 0))),
            (x.status = e),
            (x.statusText = (t || s) + ""),
            r ? v.resolveWith(g, [i, s, x]) : v.rejectWith(g, [x, s, o]),
            x.statusCode(b),
            (b = void 0),
            h && m.trigger(r ? "ajaxSuccess" : "ajaxError", [x, f, r ? i : o]),
            y.fireWith(g, [x, s]),
            h &&
              (m.trigger("ajaxComplete", [x, f]),
              --C.active || C.event.trigger("ajaxStop")));
        }
        return x;
      },
      getJSON: function (e, t, n) {
        return C.get(e, t, n, "json");
      },
      getScript: function (e, t) {
        return C.get(e, void 0, t, "script");
      },
    }),
    C.each(["get", "post"], function (e, i) {
      C[i] = function (e, t, n, r) {
        return (
          g(t) && ((r = r || n), (n = t), (t = void 0)),
          C.ajax(
            C.extend(
              { url: e, type: i, dataType: r, data: t, success: n },
              C.isPlainObject(e) && e
            )
          )
        );
      };
    }),
    C.ajaxPrefilter(function (e) {
      for (var t in e.headers)
        "content-type" === t.toLowerCase() &&
          (e.contentType = e.headers[t] || "");
    }),
    (C._evalUrl = function (e, t, n) {
      return C.ajax({
        url: e,
        type: "GET",
        dataType: "script",
        cache: !0,
        async: !1,
        global: !1,
        converters: { "text script": function () {} },
        dataFilter: function (e) {
          C.globalEval(e, t, n);
        },
      });
    }),
    C.fn.extend({
      wrapAll: function (e) {
        return (
          this[0] &&
            (g(e) && (e = e.call(this[0])),
            (e = C(e, this[0].ownerDocument).eq(0).clone(!0)),
            this[0].parentNode && e.insertBefore(this[0]),
            e
              .map(function () {
                for (var e = this; e.firstElementChild; )
                  e = e.firstElementChild;
                return e;
              })
              .append(this)),
          this
        );
      },
      wrapInner: function (n) {
        return g(n)
          ? this.each(function (e) {
              C(this).wrapInner(n.call(this, e));
            })
          : this.each(function () {
              var e = C(this),
                t = e.contents();
              t.length ? t.wrapAll(n) : e.append(n);
            });
      },
      wrap: function (t) {
        var n = g(t);
        return this.each(function (e) {
          C(this).wrapAll(n ? t.call(this, e) : t);
        });
      },
      unwrap: function (e) {
        return (
          this.parent(e)
            .not("body")
            .each(function () {
              C(this).replaceWith(this.childNodes);
            }),
          this
        );
      },
    }),
    (C.expr.pseudos.hidden = function (e) {
      return !C.expr.pseudos.visible(e);
    }),
    (C.expr.pseudos.visible = function (e) {
      return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
    }),
    (C.ajaxSettings.xhr = function () {
      try {
        return new H.XMLHttpRequest();
      } catch (e) {}
    });
  var Xt = { 0: 200, 1223: 204 },
    Yt = C.ajaxSettings.xhr();
  (b.cors = !!Yt && "withCredentials" in Yt),
    (b.ajax = Yt = !!Yt),
    C.ajaxTransport(function (i) {
      var o, a;
      if (b.cors || (Yt && !i.crossDomain))
        return {
          send: function (e, t) {
            var n,
              r = i.xhr();
            if (
              (r.open(i.type, i.url, i.async, i.username, i.password),
              i.xhrFields)
            )
              for (n in i.xhrFields) r[n] = i.xhrFields[n];
            for (n in (i.mimeType &&
              r.overrideMimeType &&
              r.overrideMimeType(i.mimeType),
            i.crossDomain ||
              e["X-Requested-With"] ||
              (e["X-Requested-With"] = "XMLHttpRequest"),
            e))
              r.setRequestHeader(n, e[n]);
            (o = function (e) {
              return function () {
                o &&
                  ((o =
                    a =
                    r.onload =
                    r.onerror =
                    r.onabort =
                    r.ontimeout =
                    r.onreadystatechange =
                      null),
                  "abort" === e
                    ? r.abort()
                    : "error" === e
                    ? "number" != typeof r.status
                      ? t(0, "error")
                      : t(r.status, r.statusText)
                    : t(
                        Xt[r.status] || r.status,
                        r.statusText,
                        "text" !== (r.responseType || "text") ||
                          "string" != typeof r.responseText
                          ? { binary: r.response }
                          : { text: r.responseText },
                        r.getAllResponseHeaders()
                      ));
              };
            }),
              (r.onload = o()),
              (a = r.onerror = r.ontimeout = o("error")),
              void 0 !== r.onabort
                ? (r.onabort = a)
                : (r.onreadystatechange = function () {
                    4 === r.readyState &&
                      H.setTimeout(function () {
                        o && a();
                      });
                  }),
              (o = o("abort"));
            try {
              r.send((i.hasContent && i.data) || null);
            } catch (e) {
              if (o) throw e;
            }
          },
          abort: function () {
            o && o();
          },
        };
    }),
    C.ajaxPrefilter(function (e) {
      e.crossDomain && (e.contents.script = !1);
    }),
    C.ajaxSetup({
      accepts: {
        script:
          "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",
      },
      contents: { script: /\b(?:java|ecma)script\b/ },
      converters: {
        "text script": function (e) {
          return C.globalEval(e), e;
        },
      },
    }),
    C.ajaxPrefilter("script", function (e) {
      void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET");
    }),
    C.ajaxTransport("script", function (n) {
      var r, i;
      if (n.crossDomain || n.scriptAttrs)
        return {
          send: function (e, t) {
            (r = C("<script>")
              .attr(n.scriptAttrs || {})
              .prop({ charset: n.scriptCharset, src: n.url })
              .on(
                "load error",
                (i = function (e) {
                  r.remove(),
                    (i = null),
                    e && t("error" === e.type ? 404 : 200, e.type);
                })
              )),
              w.head.appendChild(r[0]);
          },
          abort: function () {
            i && i();
          },
        };
    });
  var Gt = [],
    Jt = /(=)\?(?=&|$)|\?\?/;
  C.ajaxSetup({
    jsonp: "callback",
    jsonpCallback: function () {
      var e = Gt.pop() || C.expando + "_" + It.guid++;
      return (this[e] = !0), e;
    },
  }),
    C.ajaxPrefilter("json jsonp", function (e, t, n) {
      var r,
        i,
        o,
        a =
          !1 !== e.jsonp &&
          (Jt.test(e.url)
            ? "url"
            : "string" == typeof e.data &&
              0 ===
                (e.contentType || "").indexOf(
                  "application/x-www-form-urlencoded"
                ) &&
              Jt.test(e.data) &&
              "data");
      if (a || "jsonp" === e.dataTypes[0])
        return (
          (r = e.jsonpCallback =
            g(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback),
          a
            ? (e[a] = e[a].replace(Jt, "$1" + r))
            : !1 !== e.jsonp &&
              (e.url += (kt.test(e.url) ? "&" : "?") + e.jsonp + "=" + r),
          (e.converters["script json"] = function () {
            return o || C.error(r + " was not called"), o[0];
          }),
          (e.dataTypes[0] = "json"),
          (i = H[r]),
          (H[r] = function () {
            o = arguments;
          }),
          n.always(function () {
            void 0 === i ? C(H).removeProp(r) : (H[r] = i),
              e[r] && ((e.jsonpCallback = t.jsonpCallback), Gt.push(r)),
              o && g(i) && i(o[0]),
              (o = i = void 0);
          }),
          "script"
        );
    }),
    (b.createHTMLDocument =
      (((d = w.implementation.createHTMLDocument("").body).innerHTML =
        "<form></form><form></form>"),
      2 === d.childNodes.length)),
    (C.parseHTML = function (e, t, n) {
      return "string" != typeof e
        ? []
        : ("boolean" == typeof t && ((n = t), (t = !1)),
          t ||
            (b.createHTMLDocument
              ? (((r = (t =
                  w.implementation.createHTMLDocument("")).createElement(
                  "base"
                )).href = w.location.href),
                t.head.appendChild(r))
              : (t = w)),
          (r = !n && []),
          (n = L.exec(e))
            ? [t.createElement(n[1])]
            : ((n = ve([e], t, r)),
              r && r.length && C(r).remove(),
              C.merge([], n.childNodes)));
      var r;
    }),
    (C.fn.load = function (e, t, n) {
      var r,
        i,
        o,
        a = this,
        s = e.indexOf(" ");
      return (
        -1 < s && ((r = Ht(e.slice(s))), (e = e.slice(0, s))),
        g(t)
          ? ((n = t), (t = void 0))
          : t && "object" == typeof t && (i = "POST"),
        0 < a.length &&
          C.ajax({ url: e, type: i || "GET", dataType: "html", data: t })
            .done(function (e) {
              (o = arguments),
                a.html(r ? C("<div>").append(C.parseHTML(e)).find(r) : e);
            })
            .always(
              n &&
                function (e, t) {
                  a.each(function () {
                    n.apply(this, o || [e.responseText, t, e]);
                  });
                }
            ),
        this
      );
    }),
    (C.expr.pseudos.animated = function (t) {
      return C.grep(C.timers, function (e) {
        return t === e.elem;
      }).length;
    }),
    (C.offset = {
      setOffset: function (e, t, n) {
        var r,
          i,
          o,
          a,
          s = C.css(e, "position"),
          c = C(e),
          l = {};
        "static" === s && (e.style.position = "relative"),
          (o = c.offset()),
          (r = C.css(e, "top")),
          (a = C.css(e, "left")),
          (a =
            ("absolute" === s || "fixed" === s) && -1 < (r + a).indexOf("auto")
              ? ((i = (s = c.position()).top), s.left)
              : ((i = parseFloat(r) || 0), parseFloat(a) || 0)),
          null != (t = g(t) ? t.call(e, n, C.extend({}, o)) : t).top &&
            (l.top = t.top - o.top + i),
          null != t.left && (l.left = t.left - o.left + a),
          "using" in t
            ? t.using.call(e, l)
            : ("number" == typeof l.top && (l.top += "px"),
              "number" == typeof l.left && (l.left += "px"),
              c.css(l));
      },
    }),
    C.fn.extend({
      offset: function (t) {
        if (arguments.length)
          return void 0 === t
            ? this
            : this.each(function (e) {
                C.offset.setOffset(this, t, e);
              });
        var e,
          n = this[0];
        return n
          ? n.getClientRects().length
            ? ((e = n.getBoundingClientRect()),
              (n = n.ownerDocument.defaultView),
              {
                top: e.top + n.pageYOffset,
                left: e.left + n.pageXOffset,
              })
            : { top: 0, left: 0 }
          : void 0;
      },
      position: function () {
        if (this[0]) {
          var e,
            t,
            n,
            r = this[0],
            i = { top: 0, left: 0 };
          if ("fixed" === C.css(r, "position")) t = r.getBoundingClientRect();
          else {
            for (
              t = this.offset(),
                n = r.ownerDocument,
                e = r.offsetParent || n.documentElement;
              e &&
              (e === n.body || e === n.documentElement) &&
              "static" === C.css(e, "position");

            )
              e = e.parentNode;
            e &&
              e !== r &&
              1 === e.nodeType &&
              (((i = C(e).offset()).top += C.css(e, "borderTopWidth", !0)),
              (i.left += C.css(e, "borderLeftWidth", !0)));
          }
          return {
            top: t.top - i.top - C.css(r, "marginTop", !0),
            left: t.left - i.left - C.css(r, "marginLeft", !0),
          };
        }
      },
      offsetParent: function () {
        return this.map(function () {
          for (
            var e = this.offsetParent;
            e && "static" === C.css(e, "position");

          )
            e = e.offsetParent;
          return e || re;
        });
      },
    }),
    C.each(
      { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" },
      function (t, i) {
        var o = "pageYOffset" === i;
        C.fn[t] = function (e) {
          return R(
            this,
            function (e, t, n) {
              var r;
              return (
                m(e) ? (r = e) : 9 === e.nodeType && (r = e.defaultView),
                void 0 === n
                  ? r
                    ? r[i]
                    : e[t]
                  : void (r
                      ? r.scrollTo(o ? r.pageXOffset : n, o ? n : r.pageYOffset)
                      : (e[t] = n))
              );
            },
            t,
            e,
            arguments.length
          );
        };
      }
    ),
    C.each(["top", "left"], function (e, n) {
      C.cssHooks[n] = Xe(b.pixelPosition, function (e, t) {
        if (t)
          return (t = Ve(e, n)), We.test(t) ? C(e).position()[n] + "px" : t;
      });
    }),
    C.each({ Height: "height", Width: "width" }, function (a, s) {
      C.each(
        { padding: "inner" + a, content: s, "": "outer" + a },
        function (r, o) {
          C.fn[o] = function (e, t) {
            var n = arguments.length && (r || "boolean" != typeof e),
              i = r || (!0 === e || !0 === t ? "margin" : "border");
            return R(
              this,
              function (e, t, n) {
                var r;
                return m(e)
                  ? 0 === o.indexOf("outer")
                    ? e["inner" + a]
                    : e.document.documentElement["client" + a]
                  : 9 === e.nodeType
                  ? ((r = e.documentElement),
                    Math.max(
                      e.body["scroll" + a],
                      r["scroll" + a],
                      e.body["offset" + a],
                      r["offset" + a],
                      r["client" + a]
                    ))
                  : void 0 === n
                  ? C.css(e, t, i)
                  : C.style(e, t, n, i);
              },
              s,
              n ? e : void 0,
              n
            );
          };
        }
      );
    }),
    C.each(
      [
        "ajaxStart",
        "ajaxStop",
        "ajaxComplete",
        "ajaxError",
        "ajaxSuccess",
        "ajaxSend",
      ],
      function (e, t) {
        C.fn[t] = function (e) {
          return this.on(t, e);
        };
      }
    ),
    C.fn.extend({
      bind: function (e, t, n) {
        return this.on(e, null, t, n);
      },
      unbind: function (e, t) {
        return this.off(e, null, t);
      },
      delegate: function (e, t, n, r) {
        return this.on(t, e, n, r);
      },
      undelegate: function (e, t, n) {
        return 1 === arguments.length
          ? this.off(e, "**")
          : this.off(t, e || "**", n);
      },
      hover: function (e, t) {
        return this.mouseenter(e).mouseleave(t || e);
      },
    }),
    C.each(
      "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(
        " "
      ),
      function (e, n) {
        C.fn[n] = function (e, t) {
          return 0 < arguments.length
            ? this.on(n, null, e, t)
            : this.trigger(n);
        };
      }
    );
  var Kt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  (C.proxy = function (e, t) {
    var n, r;
    if (("string" == typeof t && ((r = e[t]), (t = e), (e = r)), g(e)))
      return (
        (n = s.call(arguments, 2)),
        ((r = function () {
          return e.apply(t || this, n.concat(s.call(arguments)));
        }).guid = e.guid =
          e.guid || C.guid++),
        r
      );
  }),
    (C.holdReady = function (e) {
      e ? C.readyWait++ : C.ready(!0);
    }),
    (C.isArray = Array.isArray),
    (C.parseJSON = JSON.parse),
    (C.nodeName = E),
    (C.isFunction = g),
    (C.isWindow = m),
    (C.camelCase = U),
    (C.type = f),
    (C.now = Date.now),
    (C.isNumeric = function (e) {
      var t = C.type(e);
      return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e));
    }),
    (C.trim = function (e) {
      return null == e ? "" : (e + "").replace(Kt, "");
    }),
    "function" == typeof define &&
      define.amd &&
      define("jquery", [], function () {
        return C;
      });
  var Zt = H.jQuery,
    en = H.$;
  return (
    (C.noConflict = function (e) {
      return H.$ === C && (H.$ = en), e && H.jQuery === C && (H.jQuery = Zt), C;
    }),
    void 0 === e && (H.jQuery = H.$ = C),
    C
  );
});
var H5P = (window.H5P = window.H5P || {});
(H5P.jQuery = jQuery.noConflict(!0)),
  (H5P.jQuery.fn.__originalLoad = H5P.jQuery.load),
  (H5P.jQuery.fn.load = function (e, t, n) {
    if ("function" != typeof e)
      return H5P.jQuery.fn.__originalLoad.apply(this, arguments);
    {
      console.warn("You are using a deprecated H5P library. Please upgrade!");
      let e = Array.prototype.slice.call(arguments);
      return e.unshift("load"), H5P.jQuery.fn.on.apply(this, e);
    }
  }); /*!@license js/h5p.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/
var H5P = (window.H5P = window.H5P || {});
(H5P.isFramed = window.self !== window.parent),
  (H5P.$window = H5P.jQuery(window)),
  (H5P.instances = []),
  document.documentElement.requestFullScreen
    ? (H5P.fullScreenBrowserPrefix = "")
    : document.documentElement.webkitRequestFullScreen
    ? ((H5P.safariBrowser = navigator.userAgent.match(/version\/([.\d]+)/i)),
      (H5P.safariBrowser =
        null === H5P.safariBrowser ? 0 : parseInt(H5P.safariBrowser[1])),
      (0 === H5P.safariBrowser || 6 < H5P.safariBrowser) &&
        (H5P.fullScreenBrowserPrefix = "webkit"))
    : document.documentElement.mozRequestFullScreen
    ? (H5P.fullScreenBrowserPrefix = "moz")
    : document.documentElement.msRequestFullscreen &&
      (H5P.fullScreenBrowserPrefix = "ms"),
  (H5P.opened = {}),
  (H5P.init = function (e) {
    void 0 === H5P.$body && (H5P.$body = H5P.jQuery(document.body)),
      void 0 === H5P.fullscreenSupported &&
        (H5P.fullscreenSupported = !(
          H5PIntegration.fullscreenDisabled ||
          H5P.fullscreenDisabled ||
          (H5P.isFramed &&
            !1 !== H5P.externalEmbed &&
            !(
              document.fullscreenEnabled ||
              document.webkitFullscreenEnabled ||
              document.mozFullScreenEnabled
            ))
        )),
      void 0 === H5P.canHasFullScreen &&
        (H5P.canHasFullScreen = H5P.fullscreenSupported),
      H5P.jQuery(".h5p-content:not(.h5p-initialized)", e).each(function () {
        var t = H5P.jQuery(this).addClass("h5p-initialized"),
          n = H5P.jQuery('<div class="h5p-container"></div>').appendTo(t),
          i = t.data("content-id"),
          o = H5PIntegration.contents["cid-" + i];
        if (void 0 === o)
          return H5P.error(
            "No data for content id " + i + ". Perhaps the library is gone?"
          );
        var a = {
          library: o.library,
          params: JSON.parse(o.jsonContent),
          metadata: o.metadata,
        };
        H5P.getUserData(i, "state", function (e, t) {
          var r;
          t
            ? (a.userDatas = { state: t })
            : null === t &&
              H5PIntegration.saveFreq &&
              (delete o.contentUserData,
              (r = new H5P.Dialog(
                "content-user-data-reset",
                "Data Reset",
                "<p>" +
                  H5P.t("contentChanged") +
                  "</p><p>" +
                  H5P.t("startingOver") +
                  '</p><div class="h5p-dialog-ok-button" tabIndex="0" role="button">OK</div>',
                n
              )),
              H5P.jQuery(r)
                .on("dialog-opened", function (e, t) {
                  function n(e) {
                    ("click" !== e.type && 32 !== e.which) ||
                      (r.close(), H5P.deleteUserData(i, "state", 0));
                  }
                  t.find(".h5p-dialog-ok-button").click(n).keypress(n),
                    H5P.trigger(s, "resize");
                })
                .on("dialog-closed", function () {
                  H5P.trigger(s, "resize");
                }),
              r.open());
        });
        var s = H5P.newRunnable(a, i, n, !0, { standalone: !0 });
        (H5P.offlineRequestQueue = new H5P.OfflineRequestQueue({
          instance: s,
        })),
          1 == o.fullScreen &&
            H5P.fullscreenSupported &&
            H5P.jQuery(
              '<div class="h5p-content-controls"><div role="button" tabindex="0" class="h5p-enable-fullscreen" aria-label="' +
                H5P.t("fullscreen") +
                '" title="' +
                H5P.t("fullscreen") +
                '"></div></div>'
            )
              .prependTo(n)
              .children()
              .click(function () {
                H5P.fullScreen(n, s);
              })
              .keydown(function (e) {
                if (32 === e.which || 13 === e.which)
                  return H5P.fullScreen(n, s), !1;
              });
        var e,
          r,
          c,
          l,
          u,
          d,
          p,
          h = o.displayOptions,
          f = !1;
        h.frame &&
          (h.copyright &&
            ((e = H5P.getCopyrights(s, a.params, i, a.metadata)) ||
              (h.copyright = !1)),
          (h = new H5P.ActionBar(h)),
          (r = h.getDOMElement()),
          h.on("reuse", function () {
            H5P.openReuseDialog(r, o, a, s, i), s.triggerXAPI("accessed-reuse");
          }),
          h.on("copyrights", function () {
            new H5P.Dialog(
              "copyrights",
              H5P.t("copyrightInformation"),
              e,
              n
            ).open(!0),
              s.triggerXAPI("accessed-copyright");
          }),
          h.on("embed", function () {
            H5P.openEmbedDialog(
              r,
              o.embedCode,
              o.resizeCode,
              { width: t.width(), height: t.height() },
              s
            ),
              s.triggerXAPI("accessed-embed");
          }),
          h.hasActions() && ((f = !0), r.insertAfter(n))),
          t.addClass(f ? "h5p-frame" : "h5p-no-frame"),
          (H5P.opened[i] = new Date()),
          H5P.on(s, "finish", function (e) {
            void 0 !== e.data &&
              H5P.setFinished(i, e.data.score, e.data.maxScore, e.data.time);
          }),
          H5P.on(s, "xAPI", H5P.xAPICompletedListener),
          !1 !== H5PIntegration.saveFreq &&
            (s.getCurrentState instanceof Function ||
              "function" == typeof s.getCurrentState) &&
            ((l = function () {
              var e = s.getCurrentState();
              void 0 !== e &&
                H5P.setUserData(i, "state", e, { deleteOnChange: !0 }),
                H5PIntegration.saveFreq &&
                  (c = setTimeout(l, 1e3 * H5PIntegration.saveFreq));
            }),
            H5PIntegration.saveFreq &&
              (c = setTimeout(l, 1e3 * H5PIntegration.saveFreq)),
            H5P.on(s, "xAPI", function (e) {
              e = e.getVerb();
              ("completed" !== e && "progressed" !== e) ||
                (clearTimeout(c), (c = setTimeout(l, 3e3)));
            })),
          H5P.isFramed &&
            (!1 === H5P.externalEmbed
              ? ((d = window.frameElement),
                H5P.on(s, "resize", function () {
                  clearTimeout(u),
                    (u = setTimeout(function () {
                      var e;
                      window.parent.H5P.isFullscreen ||
                        ((e = d.parentElement.style.height),
                        (d.parentElement.style.height =
                          d.parentElement.clientHeight + "px"),
                        d.getBoundingClientRect(),
                        (d.style.height = "1px"),
                        (d.style.height =
                          d.contentDocument.body.scrollHeight + "px"),
                        (d.parentElement.style.height = e));
                    }, 1));
                }))
              : H5P.communicator &&
                ((p = !1),
                H5P.communicator.on("ready", function () {
                  H5P.communicator.send("hello");
                }),
                H5P.communicator.on("hello", function () {
                  (p = !0),
                    (document.body.style.height = "auto"),
                    (document.body.style.overflow = "hidden"),
                    H5P.trigger(s, "resize");
                }),
                H5P.communicator.on("resizePrepared", function () {
                  H5P.communicator.send("resize", {
                    scrollHeight: document.body.scrollHeight,
                  });
                }),
                H5P.communicator.on("resize", function () {
                  H5P.trigger(s, "resize");
                }),
                H5P.on(s, "resize", function () {
                  H5P.isFullscreen ||
                    (clearTimeout(u),
                    (u = setTimeout(function () {
                      p
                        ? H5P.communicator.send("prepareResize", {
                            scrollHeight: document.body.scrollHeight,
                            clientHeight: document.body.clientHeight,
                          })
                        : H5P.communicator.send("hello");
                    }, 0)));
                }))),
          (H5P.isFramed && !1 !== H5P.externalEmbed) ||
            H5P.jQuery(window.parent).resize(function () {
              window.parent.H5P.isFullscreen, H5P.trigger(s, "resize");
            }),
          H5P.instances.push(s),
          H5P.trigger(s, "resize"),
          t.addClass("using-mouse"),
          t.on("mousedown keydown keyup", function (e) {
            t.toggleClass("using-mouse", "mousedown" === e.type);
          }),
          H5P.externalDispatcher &&
            H5P.externalDispatcher.trigger("initialized");
      }),
      H5P.jQuery("iframe.h5p-iframe:not(.h5p-initialized)", e).each(
        function () {
          var e = H5P.jQuery(this)
              .addClass("h5p-initialized")
              .data("content-id"),
            t = H5PIntegration.contents["cid-" + e],
            t =
              t && t.metadata && t.metadata.defaultLanguage
                ? t.metadata.defaultLanguage
                : "en";
          this.contentDocument.open(),
            this.contentDocument.write(
              '<!doctype html><html class="h5p-iframe" lang="' +
                t +
                '"><head>' +
                H5P.getHeadTags(e) +
                '</head><body><div class="h5p-content" data-content-id="' +
                e +
                '"/></body></html>'
            ),
            this.contentDocument.close();
        }
      );
  }),
  (H5P.getHeadTags = function (e) {
    function t(e) {
      for (var t = "", n = 0; n < e.length; n++)
        t += '<link rel="stylesheet" href="' + e[n] + '">';
      return t;
    }
    function n(e) {
      for (var t = "", n = 0; n < e.length; n++)
        t += '<script src="' + e[n] + '"></script>';
      return t;
    }
    return (
      '<base target="_parent">' +
      t(H5PIntegration.core.styles) +
      t(H5PIntegration.contents["cid-" + e].styles) +
      n(H5PIntegration.core.scripts) +
      n(H5PIntegration.contents["cid-" + e].scripts) +
      "<script>H5PIntegration = window.parent.H5PIntegration; var H5P = H5P || {}; H5P.externalEmbed = false;</script>"
    );
  }),
  (H5P.communicator =
    window.postMessage && window.addEventListener
      ? new (function () {
          var n = {};
          window.addEventListener(
            "message",
            function (e) {
              window.parent === e.source &&
                "h5p" === e.data.context &&
                void 0 !== n[e.data.action] &&
                n[e.data.action](e.data);
            },
            !1
          ),
            (this.on = function (e, t) {
              n[e] = t;
            }),
            (this.send = function (e, t) {
              ((t = void 0 === t ? {} : t).context = "h5p"),
                (t.action = e),
                window.parent.postMessage(t, "*");
            });
        })()
      : void 0),
  (H5P.semiFullScreen = function (e, t, n, r) {
    H5P.fullScreen(e, t, n, r, !0);
  }),
  (H5P.fullScreen = function (e, t, n, r, i) {
    if (void 0 === H5P.exitFullScreen) {
      if (H5P.isFramed && !1 === H5P.externalEmbed)
        return (
          window.parent.H5P.fullScreen(e, t, n, H5P.$body.get(), i),
          (H5P.isFullscreen = !0),
          (H5P.exitFullScreen = function () {
            window.parent.H5P.exitFullScreen();
          }),
          void H5P.on(t, "exitFullScreen", function () {
            (H5P.isFullscreen = !1), (H5P.exitFullScreen = void 0);
          })
        );
      var o,
        a,
        s,
        c = e;
      void 0 === r
        ? (o = H5P.$body)
        : ((a = (o = H5P.jQuery(r)).add(e.get())),
          (r = "#h5p-iframe-" + e.parent().data("content-id")),
          (e = (s = H5P.jQuery(r)).parent())),
        (a = e.add(H5P.$body).add(a));
      function l(e) {
        a.addClass(e), void 0 !== s && s.css("height", "");
      }
      function u() {
        H5P.trigger(t, "resize"),
          H5P.trigger(t, "focus"),
          H5P.trigger(t, "enterFullScreen");
      }
      function d(e) {
        (H5P.isFullscreen = !1),
          a.removeClass(e),
          H5P.trigger(t, "resize"),
          H5P.trigger(t, "focus"),
          (H5P.exitFullScreen = void 0) !== n && n(),
          H5P.trigger(t, "exitFullScreen");
      }
      if (
        ((H5P.isFullscreen = !0),
        void 0 === H5P.fullScreenBrowserPrefix || !0 === i)
      ) {
        if (!H5P.isFramed) {
          l("h5p-semi-fullscreen");
          var p,
            h,
            f = H5P.jQuery(
              '<div role="button" tabindex="0" class="h5p-disable-fullscreen" title="' +
                H5P.t("disableFullscreen") +
                '" aria-label="' +
                H5P.t("disableFullscreen") +
                '"></div>'
            ).appendTo(c.find(".h5p-content-controls")),
            g = (H5P.exitFullScreen = function () {
              p ? (h.content = p) : v.removeChild(h),
                f.remove(),
                o.unbind("keyup", m),
                d("h5p-semi-fullscreen");
            }),
            m = function (e) {
              27 === e.keyCode && g();
            };
          f.click(g), o.keyup(m);
          for (
            var v, y = document.getElementsByTagName("meta"), b = 0;
            b < y.length;
            b++
          )
            if ("viewport" === y[b].name) {
              (h = y[b]), (p = h.content);
              break;
            }
          p || ((h = document.createElement("meta")).name = "viewport"),
            (h.content =
              "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),
            p || (v = document.getElementsByTagName("head")[0]).appendChild(h),
            u();
        }
      } else {
        l("h5p-fullscreen");
        var x,
          P =
            "ms" === H5P.fullScreenBrowserPrefix
              ? "MSFullscreenChange"
              : H5P.fullScreenBrowserPrefix + "fullscreenchange";
        document.addEventListener(P, function () {
          return void 0 === x
            ? ((x = !1), void u())
            : (d("h5p-fullscreen"),
              void document.removeEventListener(P, arguments.callee, !1));
        }),
          "" === H5P.fullScreenBrowserPrefix
            ? e[0].requestFullScreen()
            : ((i =
                "ms" === H5P.fullScreenBrowserPrefix
                  ? "msRequestFullscreen"
                  : H5P.fullScreenBrowserPrefix + "RequestFullScreen"),
              (c =
                "webkit" === H5P.fullScreenBrowserPrefix &&
                0 === H5P.safariBrowser
                  ? Element.ALLOW_KEYBOARD_INPUT
                  : void 0),
              e[0][i](c)),
          (H5P.exitFullScreen = function () {
            "" === H5P.fullScreenBrowserPrefix
              ? document.exitFullscreen()
              : "moz" === H5P.fullScreenBrowserPrefix
              ? document.mozCancelFullScreen()
              : document[H5P.fullScreenBrowserPrefix + "ExitFullscreen"]();
          });
      }
    }
  }),
  (function () {
    (H5P.addQueryParameter = function (e, t) {
      let n, r;
      const i = e.split("?");
      return (
        (n = i[1]
          ? ((r = i[1].split("#")), i[0] + "?" + r[0] + "&")
          : ((r = i[0].split("#")), r[0] + "?")),
        (n += t),
        r[1] && (n += "#" + r[1]),
        n
      );
    }),
      (H5P.setSource = function (e, t, n) {
        let r = t.path;
        t = H5P.getCrossOrigin(t);
        t
          ? ((e.crossOrigin = t),
            H5PIntegration.crossoriginCacheBuster &&
              (r = H5P.addQueryParameter(
                r,
                H5PIntegration.crossoriginCacheBuster
              )))
          : e.removeAttribute("crossorigin"),
          (e.src = H5P.getPath(r, n));
      });
    function i(e) {
      return e.match(/^[a-z0-9]+:\/\//i);
    }
    (H5P.getCrossOrigin = function (e) {
      return "object" != typeof e
        ? H5PIntegration.crossorigin &&
          H5PIntegration.crossoriginRegex &&
          e.match(H5PIntegration.crossoriginRegex)
          ? H5PIntegration.crossorigin
          : null
        : H5PIntegration.crossorigin && !i(e.path)
        ? H5PIntegration.crossorigin
        : void 0;
    }),
      (H5P.getPath = function (e, t) {
        if (i(e)) return e;
        var n,
          r = "#tmp" === e.substr(-4, 4);
        if (void 0 === t || r) {
          if (void 0 === window.H5PEditor) return;
          n = H5PEditor.filesPath;
        } else
          n =
            (n =
              void 0 !== H5PIntegration.contents &&
              H5PIntegration.contents["cid-" + t]
                ? H5PIntegration.contents["cid-" + t].contentUrl
                : n) || H5PIntegration.url + "/content/" + t;
        return (
          (n = !i(n)
            ? window.location.protocol + "//" + window.location.host + n
            : n) +
          "/" +
          e
        );
      });
  })(),
  (H5P.getContentPath = function (e) {
    return H5PIntegration.url + "/content/" + e;
  }),
  (H5P.classFromName = function (e) {
    e = e.split(".");
    return this[e[e.length - 1]];
  }),
  (H5P.newRunnable = function (t, e, n, r, i) {
    var o, a;
    try {
      (a = (s = t.library.split(" ", 2))[0]), (o = s[1].split(".", 2));
    } catch (e) {
      return H5P.error("Invalid library string: " + t.library);
    }
    if (t.params instanceof Object != !0 || t.params instanceof Array == !0)
      return (
        H5P.error("Invalid library params for: " + t.library),
        H5P.error(t.params)
      );
    try {
      for (var s = s[0].split("."), c = window, l = 0; l < s.length; l++)
        c = c[s[l]];
      if ("function" != typeof c) throw null;
    } catch (e) {
      return H5P.error("Unable to find constructor for: " + t.library);
    }
    void 0 === i && (i = {}),
      t.subContentId && (i.subContentId = t.subContentId),
      t.userDatas &&
        t.userDatas.state &&
        H5PIntegration.saveFreq &&
        (i.previousState = t.userDatas.state),
      t.metadata && (i.metadata = t.metadata);
    var u,
      d = i.standalone || !1;
    return (
      (c.prototype = H5P.jQuery.extend(
        {},
        H5P.ContentType(d).prototype,
        c.prototype
      )),
      void 0 ===
        (u =
          -1 <
          H5P.jQuery.inArray(t.library, [
            "H5P.CoursePresentation 1.0",
            "H5P.CoursePresentation 1.1",
            "H5P.CoursePresentation 1.2",
            "H5P.CoursePresentation 1.3",
          ])
            ? new c(t.params, e)
            : new c(t.params, e, i)).$ && (u.$ = H5P.jQuery(u)),
      void 0 === u.contentId && (u.contentId = e),
      void 0 === u.subContentId &&
        t.subContentId &&
        (u.subContentId = t.subContentId),
      void 0 === u.parent && i && i.parent && (u.parent = i.parent),
      void 0 === u.libraryInfo &&
        (u.libraryInfo = {
          versionedName: t.library,
          versionedNameNoSpaces: a + "-" + o[0] + "." + o[1],
          machineName: a,
          majorVersion: o[0],
          minorVersion: o[1],
        }),
      void 0 !== n &&
        (n.toggleClass("h5p-standalone", d),
        u.attach(n),
        H5P.trigger(
          u,
          "domChanged",
          { $target: n, library: a, key: "newLibrary" },
          { bubbles: !0, external: !0 }
        ),
        (void 0 !== r && r) || H5P.trigger(u, "resize")),
      u
    );
  }),
  (H5P.error = function (e) {
    void 0 !== window.console &&
      void 0 !== console.error &&
      console.error(e.stack || e);
  }),
  (H5P.t = function (e, t, n) {
    if ((void 0 === n && (n = "H5P"), void 0 === H5PIntegration.l10n[n]))
      return '[Missing translation namespace "' + n + '"]';
    if (void 0 === H5PIntegration.l10n[n][e])
      return '[Missing translation "' + e + '" in "' + n + '"]';
    var r = H5PIntegration.l10n[n][e];
    if (void 0 !== t) for (var i in t) r = r.replace(i, t[i]);
    return r;
  }),
  (H5P.Dialog = function (e, t, n, r) {
    var i = this,
      o = H5P.jQuery(
        '<div class="h5p-popup-dialog h5p-' +
          e +
          '-dialog" role="dialog" tabindex="-1">                              <div class="h5p-inner">                                <h2>' +
          t +
          '</h2>                                <div class="h5p-scroll-content">' +
          n +
          '</div>                                <div class="h5p-close" role="button" tabindex="0" aria-label="' +
          H5P.t("close") +
          '" title="' +
          H5P.t("close") +
          '"></div>                              </div>                            </div>'
      )
        .insertAfter(r)
        .click(function (e) {
          (e && e.originalEvent && e.originalEvent.preventClosing) || i.close();
        })
        .children(".h5p-inner")
        .click(function (e) {
          e.originalEvent.preventClosing = !0;
        })
        .find(".h5p-close")
        .click(function () {
          i.close();
        })
        .keypress(function (e) {
          if (13 === e.which || 32 === e.which) return i.close(), !1;
        })
        .end()
        .find("a")
        .click(function (e) {
          e.stopPropagation();
        })
        .end()
        .end();
    (i.open = function (e) {
      e && o.css("height", "100%"),
        setTimeout(function () {
          o.addClass("h5p-open"),
            H5P.jQuery(i).trigger("dialog-opened", [o]),
            o.focus();
        }, 1);
    }),
      (i.close = function () {
        o.removeClass("h5p-open"),
          setTimeout(function () {
            o.remove(),
              H5P.jQuery(i).trigger("dialog-closed", [o]),
              r.attr("tabindex", "-1"),
              r.focus();
          }, 200);
      });
  }),
  (H5P.getCopyrights = function (e, t, n, r) {
    var i;
    if (void 0 !== e.getCopyrights)
      try {
        i = e.getCopyrights();
      } catch (e) {}
    void 0 === i &&
      ((i = new H5P.ContentCopyrights()), H5P.findCopyrights(i, t, n));
    e = H5P.buildMetadataCopyrights(r, e.libraryInfo.machineName);
    return (
      void 0 !== e && i.addMediaInFront(e),
      (i = void 0 !== i ? i.toString() : i)
    );
  }),
  (H5P.findCopyrights = function (o, e, t, n) {
    var r, i, a, s;
    for (i in (n && ((n.params = e), c(n, n.machineName, t)), e))
      e.hasOwnProperty(i) &&
        ("overrideSettings" !== i
          ? ((a = e[i]) && a.library && "string" == typeof a.library
              ? (r = a.library.split(" ")[0])
              : a &&
                a.library &&
                "object" == typeof a.library &&
                (r =
                  a.library.library && "string" == typeof a.library.library
                    ? a.library.library.split(" ")[0]
                    : r),
            a instanceof Array
              ? H5P.findCopyrights(o, a, t)
              : a instanceof Object &&
                (c(a, r, t),
                void 0 === a.copyright ||
                void 0 === a.copyright.license ||
                void 0 === a.path ||
                void 0 === a.mime
                  ? H5P.findCopyrights(o, a, t)
                  : ((s = new H5P.MediaCopyright(a.copyright)),
                    void 0 !== a.width &&
                      void 0 !== a.height &&
                      s.setThumbnail(
                        new H5P.Thumbnail(
                          H5P.getPath(a.path, t),
                          a.width,
                          a.height
                        )
                      ),
                    o.addMedia(s))))
          : (console.warn(
              "The semantics field 'overrideSettings' is DEPRECATED and should not be used."
            ),
            console.warn(e)));
    function c(e, t, n) {
      if (e.metadata) {
        const i = H5P.buildMetadataCopyrights(e.metadata, t);
        var r;
        void 0 !== i &&
          (e.params &&
            "Image" === e.params.contentName &&
            e.params.file &&
            ((r = e.params.file.path),
            (t = e.params.file.width),
            (e = e.params.file.height),
            i.setThumbnail(new H5P.Thumbnail(H5P.getPath(r, n), t, e))),
          o.addMedia(i));
      }
    }
  }),
  (H5P.buildMetadataCopyrights = function (e) {
    if (e && void 0 !== e.license && "U" !== e.license) {
      e = {
        contentType: e.contentType,
        title: e.title,
        author:
          e.authors && 0 < e.authors.length
            ? e.authors
                .map(function (e) {
                  return e.role ? e.name + " (" + e.role + ")" : e.name;
                })
                .join(", ")
            : void 0,
        source: e.source,
        year: e.yearFrom
          ? e.yearFrom + (e.yearTo ? "-" + e.yearTo : "")
          : void 0,
        license: e.license,
        version: e.licenseVersion,
        licenseExtras: e.licenseExtras,
        changes:
          e.changes && 0 < e.changes.length
            ? e.changes
                .map(function (e) {
                  return (
                    e.log +
                    (e.author ? ", " + e.author : "") +
                    (e.date ? ", " + e.date : "")
                  );
                })
                .join(" / ")
            : void 0,
      };
      return new H5P.MediaCopyright(e);
    }
  }),
  (H5P.openReuseDialog = function (e, n, r, i, o) {
    let t = "";
    n.displayOptions.export &&
      (t +=
        '<button type="button" class="h5p-big-button h5p-download-button"><div class="h5p-button-title">Download as an .h5p file</div><div class="h5p-button-description">.h5p files may be uploaded to any web-site where H5P content may be created.</div></button>'),
      n.displayOptions.export &&
        n.displayOptions.copy &&
        (t += '<div class="h5p-horizontal-line-text"><span>or</span></div>'),
      n.displayOptions.copy &&
        (t +=
          '<button type="button" class="h5p-big-button h5p-copy-button"><div class="h5p-button-title">Copy content</div><div class="h5p-button-description">Copied content may be pasted anywhere this content type is supported on this website.</div></button>');
    const a = new H5P.Dialog("reuse", H5P.t("reuseContent"), t, e);
    H5P.jQuery(a)
      .on("dialog-opened", function (e, t) {
        H5P.jQuery(
          '<a href="https://h5p.org/node/442225" target="_blank">More Info</a>'
        )
          .click(function (e) {
            e.stopPropagation();
          })
          .appendTo(t.find("h2")),
          t.find(".h5p-download-button").click(function () {
            (window.location.href = n.exportUrl),
              i.triggerXAPI("downloaded"),
              a.close();
          }),
          t.find(".h5p-copy-button").click(function () {
            const e = new H5P.ClipboardItem(r);
            (e.contentId = o),
              H5P.setClipboard(e),
              i.triggerXAPI("copied"),
              a.close(),
              H5P.attachToastTo(
                H5P.jQuery(".h5p-content:first")[0],
                H5P.t("contentCopied"),
                {
                  position: {
                    horizontal: "centered",
                    vertical: "centered",
                    noOverflowX: !0,
                  },
                }
              );
          }),
          H5P.trigger(i, "resize");
      })
      .on("dialog-closed", function () {
        H5P.trigger(i, "resize");
      }),
      a.open();
  }),
  (H5P.openEmbedDialog = function (e, t, n, l, u) {
    var d = t + n,
      e = new H5P.Dialog(
        "embed",
        H5P.t("embed"),
        '<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>' +
          H5P.t("size") +
          ': <input type="text" value="' +
          Math.ceil(l.width) +
          '" class="h5p-embed-size"/> × <input type="text" value="' +
          Math.ceil(l.height) +
          '" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">' +
          H5P.t("showAdvanced") +
          '</div><div class="h5p-expander-content"><p>' +
          H5P.t("advancedHelp") +
          '</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">' +
          n +
          "</textarea></div>",
        e
      );
    H5P.jQuery(e)
      .on("dialog-opened", function (e, n) {
        function r() {
          H5P.trigger(u, "resize");
        }
        function t(e, t) {
          return (e = parseFloat(e.val())), isNaN(e) ? t : Math.ceil(e);
        }
        function i() {
          n.find(".h5p-embed-code-container:first").val(
            d.replace(":w", t(a, l.width)).replace(":h", t(s, l.height))
          );
        }
        var o = n.find(".h5p-inner").find(".h5p-scroll-content"),
          a =
            (o.outerHeight(), o.innerHeight(), n.find(".h5p-embed-size:eq(0)")),
          s = n.find(".h5p-embed-size:eq(1)");
        a.change(i),
          s.change(i),
          i(),
          n.find(".h5p-embed-code-container").each(function () {
            H5P.jQuery(this)
              .css("height", this.scrollHeight + "px")
              .focus(function () {
                H5P.jQuery(this).select();
              });
          }),
          n.find(".h5p-embed-code-container").eq(0).select(),
          r();
        function c() {
          var e = H5P.jQuery(this),
            t = e.next();
          t.is(":visible")
            ? (e
                .removeClass("h5p-open")
                .text(H5P.t("showAdvanced"))
                .attr("aria-expanded", "true"),
              t.hide())
            : (e
                .addClass("h5p-open")
                .text(H5P.t("hideAdvanced"))
                .attr("aria-expanded", "false"),
              t.show()),
            n.find(".h5p-embed-code-container").each(function () {
              H5P.jQuery(this).css("height", this.scrollHeight + "px");
            }),
            r();
        }
        n.find(".h5p-expander")
          .click(c)
          .keypress(function (e) {
            if (32 === e.keyCode) return c.apply(this), !1;
          });
      })
      .on("dialog-closed", function () {
        H5P.trigger(u, "resize");
      }),
      e.open();
  }),
  (H5P.attachToastTo = function (t, e, n) {
    if (void 0 === t || void 0 === e) return;
    function r(e) {
      -1 === i(e).indexOf(t) && (clearTimeout(c), o());
    }
    const i = function (e) {
        var t = (e.composedPath && e.composedPath()) || e.path,
          e = e.target;
        return null != t
          ? t.indexOf(window) < 0
            ? t.concat(window)
            : t
          : e === window
          ? [window]
          : [e].concat(
              (function e(t, n) {
                n = n || [];
                t = t.parentNode;
                return t ? e(t, n.concat(t)) : n;
              })(e),
              window
            );
      },
      o = function () {
        document.removeEventListener("click", r),
          a.parentNode && a.parentNode.removeChild(a);
      };
    ((n = n || {}).style = n.style || "h5p-toast"),
      (n.duration = n.duration || 3e3);
    const a = document.createElement("div");
    a.setAttribute("id", n.style),
      a.classList.add("h5p-toast-disabled"),
      a.classList.add(n.style);
    const s = document.createElement("span");
    (s.innerHTML = e), a.appendChild(s), document.body.appendChild(a);
    e = (function (e, t, n) {
      ((n = n || {}).offsetHorizontal = n.offsetHorizontal || 0),
        (n.offsetVertical = n.offsetVertical || 0);
      var r = t.getBoundingClientRect(),
        i = e.getBoundingClientRect();
      let o = 0,
        a = 0;
      switch (n.horizontal) {
        case "before":
          o = i.left - r.width - n.offsetHorizontal;
          break;
        case "after":
          o = i.left + i.width + n.offsetHorizontal;
          break;
        case "left":
          o = i.left + n.offsetHorizontal;
          break;
        case "right":
          o = i.left + i.width - r.width - n.offsetHorizontal;
          break;
        default:
          o = i.left + i.width / 2 - r.width / 2 + n.offsetHorizontal;
      }
      switch (n.vertical) {
        case "above":
          a = i.top - r.height - n.offsetVertical;
          break;
        case "below":
          a = i.top + i.height + n.offsetVertical;
          break;
        case "top":
          a = i.top + n.offsetVertical;
          break;
        case "bottom":
          a = i.top + i.height - r.height - n.offsetVertical;
          break;
        case "centered":
          a = i.top + i.height / 2 - r.height / 2 + n.offsetVertical;
          break;
        default:
          a = i.top + i.height + n.offsetVertical;
      }
      const s = document.body;
      e = s.getBoundingClientRect();
      return (
        (n.noOverflowLeft || n.noOverflowX) && o < e.x && (o = e.x),
        (n.noOverflowRight || n.noOverflowX) &&
          o + r.width > e.x + e.width &&
          (o = e.x + e.width - r.width),
        (n.noOverflowTop || n.noOverflowY) && a < e.y && (a = e.y),
        (n.noOverflowBottom || n.noOverflowY) &&
          a + r.height > e.y + e.height &&
          (o = e.y + e.height - r.height),
        { left: o, top: a }
      );
    })(t, a, n.position);
    (a.style.left = Math.round(e.left) + "px"),
      (a.style.top = Math.round(e.top) + "px"),
      a.classList.remove("h5p-toast-disabled");
    const c = setTimeout(o, n.duration);
    document.addEventListener("click", r);
  }),
  (H5P.ContentCopyrights = function () {
    var n,
      r = [],
      i = [];
    (this.setLabel = function (e) {
      n = e;
    }),
      (this.addMedia = function (e) {
        void 0 !== e && r.push(e);
      }),
      (this.addMediaInFront = function (e) {
        void 0 !== e && r.unshift(e);
      }),
      (this.addContent = function (e) {
        void 0 !== e && i.push(e);
      }),
      (this.toString = function () {
        for (var e = "", t = 0; t < r.length; t++) e += r[t];
        for (t = 0; t < i.length; t++) e += i[t];
        return (e =
          "" !== e
            ? '<div class="h5p-content-copyrights">' +
              (e = void 0 !== n ? "<h3>" + n + "</h3>" + e : e) +
              "</div>"
            : e);
      });
  }),
  (H5P.MediaCopyright = function (e, t, n, r) {
    function i(e) {
      return void 0 === t || void 0 === t[e] ? H5P.t(e) : t[e];
    }
    function o(e, t) {
      var n,
        r = H5P.copyrightLicenses[e],
        i = "";
      ("PD" === e && t) || (i += r.hasOwnProperty("label") ? r.label : r),
        (n =
          r.versions &&
          (t =
            !r.versions.default || (t && r.versions[t])
              ? t
              : r.versions.default) &&
          r.versions[t]
            ? r.versions[t]
            : n) &&
          (i && (i += " "), (i += n.hasOwnProperty("label") ? n.label : n)),
        r.hasOwnProperty("link")
          ? (o = r.link.replace(
              ":version",
              r.linkVersions ? r.linkVersions[t] : t
            ))
          : n && r.hasOwnProperty("link") && (o = n.link),
        o && (i = '<a href="' + o + '" target="_blank">' + i + "</a>");
      var o = "";
      return (
        "PD" !== e && "C" !== e && (o += e),
        t && "CC0 1.0" !== t && (o && "GNU GPL" !== e && (o += " "), (o += t)),
        o && (i += " (" + o + ")"),
        "C" === e && (i += " &copy;"),
        i
      );
    }
    var a,
      s = new H5P.DefinitionList();
    if (void 0 !== e) {
      for (var c in r) r.hasOwnProperty(c) && (e[c] = r[c]);
      void 0 === n &&
        (n = [
          "contentType",
          "title",
          "license",
          "author",
          "year",
          "source",
          "licenseExtras",
          "changes",
        ]);
      for (var l = 0; l < n.length; l++) {
        var u,
          d = n[l];
        void 0 !== e[d] &&
          "" !== e[d] &&
          ((u = e[d]),
          "license" === d && (u = o(e.license, e.version)),
          "source" === d &&
            (u = u
              ? '<a href="' + u + '" target="_blank">' + u + "</a>"
              : void 0),
          s.add(new H5P.Field(i(d), u)));
      }
    }
    (this.setThumbnail = function (e) {
      a = e;
    }),
      (this.undisclosed = function () {
        if (1 === s.size()) {
          var e = s.get(0);
          if (e.getLabel() === i("license") && e.getValue() === o("U"))
            return !0;
        }
        return !1;
      }),
      (this.toString = function () {
        var e = "";
        return this.undisclosed()
          ? e
          : (void 0 !== a && (e += a),
            "" !== (e += s)
              ? '<div class="h5p-media-copyright">' + e + "</div>"
              : e);
      });
  }),
  (H5P.Thumbnail = function (e, t, n) {
    var r;
    void 0 !== t && (r = Math.round((t / n) * 100)),
      (this.toString = function () {
        return (
          '<img src="' +
          e +
          '" alt="' +
          H5P.t("thumbnail") +
          '" class="h5p-thumbnail" height="100"' +
          (void 0 === r ? "" : ' width="' + r + '"') +
          "/>"
        );
      });
  }),
  (H5P.Field = function (e, t) {
    (this.getLabel = function () {
      return e;
    }),
      (this.getValue = function () {
        return t;
      });
  }),
  (H5P.DefinitionList = function () {
    var r = [];
    (this.add = function (e) {
      r.push(e);
    }),
      (this.size = function () {
        return r.length;
      }),
      (this.get = function (e) {
        return r[e];
      }),
      (this.toString = function () {
        for (var e = "", t = 0; t < r.length; t++) {
          var n = r[t];
          e += "<dt>" + n.getLabel() + "</dt><dd>" + n.getValue() + "</dd>";
        }
        return "" === e ? e : '<dl class="h5p-definition-list">' + e + "</dl>";
      });
  }),
  (H5P.Coords = function (e, t, n, r) {
    return this instanceof H5P.Coords
      ? ((this.x = 0),
        (this.y = 0),
        (this.w = 1),
        (this.h = 1),
        "object" == typeof e
          ? ((this.x = e.x), (this.y = e.y), (this.w = e.w), (this.h = e.h))
          : (void 0 !== e && (this.x = e),
            void 0 !== t && (this.y = t),
            void 0 !== n && (this.w = n),
            void 0 !== r && (this.h = r)),
        this)
      : new H5P.Coords(e, t, n, r);
  }),
  (H5P.libraryFromString = function (e) {
    e = /(.+)\s(\d+)\.(\d+)$/g.exec(e);
    return (
      null !== e && {
        machineName: e[1],
        majorVersion: parseInt(e[2]),
        minorVersion: parseInt(e[3]),
      }
    );
  }),
  (H5P.getLibraryPath = function (e) {
    return void 0 !== H5PIntegration.urlLibraries
      ? H5PIntegration.urlLibraries + "/" + e
      : H5PIntegration.url + "/libraries/" + e;
  }),
  (H5P.cloneObject = function (e, t) {
    var n,
      r = e instanceof Array ? [] : {};
    for (n in e)
      e.hasOwnProperty(n) &&
        (void 0 !== t && t && "object" == typeof e[n]
          ? (r[n] = H5P.cloneObject(e[n], t))
          : (r[n] = e[n]));
    return r;
  }),
  (H5P.trim = function (e) {
    return e.replace(/^\s+|\s+$/g, "");
  }),
  (H5P.jsLoaded = function (e) {
    return (
      (H5PIntegration.loadedJs = H5PIntegration.loadedJs || []),
      -1 !== H5P.jQuery.inArray(e, H5PIntegration.loadedJs)
    );
  }),
  (H5P.cssLoaded = function (e) {
    return (
      (H5PIntegration.loadedCss = H5PIntegration.loadedCss || []),
      -1 !== H5P.jQuery.inArray(e, H5PIntegration.loadedCss)
    );
  }),
  (H5P.shuffleArray = function (e) {
    if (e instanceof Array) {
      var t,
        n,
        r,
        i = e.length;
      if (0 === i) return !1;
      for (; --i; )
        (t = Math.floor(Math.random() * (i + 1))),
          (n = e[i]),
          (r = e[t]),
          (e[i] = r),
          (e[t] = n);
      return e;
    }
  }),
  (H5P.setFinished = function (e, t, n, r) {
    if (
      ("number" == typeof t || t instanceof Number) &&
      !0 === H5PIntegration.postUserStatistics
    ) {
      function i(e) {
        return Math.round(e.getTime() / 1e3);
      }
      const o = {
        contentId: e,
        score: t,
        maxScore: n,
        opened: i(H5P.opened[e]),
        finished: i(new Date()),
        time: r,
      };
      H5P.jQuery.post(H5PIntegration.ajax.setFinished, o).fail(function () {
        H5P.offlineRequestQueue.add(H5PIntegration.ajax.setFinished, o);
      });
    }
  }),
  Array.prototype.indexOf ||
    (Array.prototype.indexOf = function (e) {
      for (var t = 0; t < this.length; t++) if (this[t] === e) return t;
      return -1;
    }),
  void 0 === String.prototype.trim &&
    (String.prototype.trim = function () {
      return H5P.trim(this);
    }),
  (H5P.trigger = function (e, t, n, r) {
    void 0 !== e.trigger
      ? e.trigger(t, n, r)
      : void 0 !== e.$ && void 0 !== e.$.trigger && e.$.trigger(t);
  }),
  (H5P.on = function (e, t, n) {
    void 0 !== e.on
      ? e.on(t, n)
      : void 0 !== e.$ && void 0 !== e.$.on && e.$.on(t, n);
  }),
  (H5P.createUUID = function () {
    return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
      /[xy]/g,
      function (e) {
        var t = (16 * Math.random()) | 0;
        return ("x" === e ? t : (3 & t) | 8).toString(16);
      }
    );
  }),
  (H5P.createTitle = function (e, t) {
    if (!e) return "";
    void 0 === t && (t = 60);
    e = H5P.jQuery("<div></div>")
      .text(e.replace(/(<([^>]+)>)/gi, ""))
      .text();
    return (e = e.length > t ? e.substr(0, t - 3) + "..." : e);
  }),
  (function (c) {
    function s(e, t, n, r, i, o, a, s) {
      void 0 !== H5PIntegration.user
        ? ((s = {
            url: H5PIntegration.ajax.contentUserData
              .replace(":contentId", e)
              .replace(":dataType", t)
              .replace(":subContentId", n || 0),
            dataType: "json",
            async: void 0 === s || s,
          }),
          void 0 !== i
            ? ((s.type = "POST"),
              (s.data = {
                data: null === i ? 0 : i,
                preload: o ? 1 : 0,
                invalidate: a ? 1 : 0,
              }))
            : (s.type = "GET"),
          void 0 !== r &&
            ((s.error = function (e, t) {
              r(t);
            }),
            (s.success = function (e) {
              e.success
                ? !1 !== e.data && void 0 !== e.data
                  ? r(void 0, e.data)
                  : r()
                : r(e.message);
            })),
          c.ajax(s))
        : r("Not signed in.");
    }
    (H5P.getUserData = function (e, n, r, i) {
      (i = i || 0), (H5PIntegration.contents = H5PIntegration.contents || {});
      var o = H5PIntegration.contents["cid-" + e] || {},
        a = o.contentUserData;
      if (a && a[i] && void 0 !== a[i][n])
        if ("RESET" !== a[i][n])
          try {
            r(void 0, JSON.parse(a[i][n]));
          } catch (e) {
            r(e);
          }
        else r(void 0, null);
      else
        s(e, n, i, function (e, t) {
          if (e || void 0 === t) r(e, t);
          else {
            void 0 === o.contentUserData && (o.contentUserData = a = {}),
              void 0 === a[i] && (a[i] = {}),
              (a[i][n] = t);
            try {
              r(void 0, JSON.parse(t));
            } catch (e) {
              r(e);
            }
          }
        });
    }),
      (H5P.setUserData = function (e, t, n, r) {
        var i = H5P.jQuery.extend(
          !0,
          {},
          {
            subContentId: 0,
            preloaded: !0,
            deleteOnChange: !1,
            async: !0,
          },
          r
        );
        try {
          n = JSON.stringify(n);
        } catch (e) {
          return void (i.errorCallback && i.errorCallback(e));
        }
        r = H5PIntegration.contents["cid-" + e];
        (r = void 0 === r ? (H5PIntegration.contents["cid-" + e] = {}) : r)
          .contentUserData || (r.contentUserData = {});
        r = r.contentUserData;
        void 0 === r[i.subContentId] && (r[i.subContentId] = {}),
          n !== r[i.subContentId][t] &&
            ((r[i.subContentId][t] = n),
            s(
              e,
              t,
              i.subContentId,
              function (e) {
                i.errorCallback && e && i.errorCallback(e);
              },
              n,
              i.preloaded,
              i.deleteOnChange,
              i.async
            ));
      }),
      (H5P.deleteUserData = function (e, t, n) {
        n = n || 0;
        var r = H5PIntegration.contents["cid-" + e].contentUserData;
        r && r[n] && r[n][t] && delete r[n][t], s(e, t, n, void 0, null);
      }),
      (H5P.getContentForInstance = function (e) {
        e = "cid-" + e;
        return H5PIntegration &&
          H5PIntegration.contents &&
          H5PIntegration.contents[e]
          ? H5PIntegration.contents[e]
          : void 0;
      }),
      (H5P.ClipboardItem = function (e, t, n) {
        var r = this;
        t || ((t = "action"), (e = { action: e })),
          (r.specific = e),
          t && e[t] && (r.generic = t),
          n && (r.from = n),
          window.H5PEditor &&
            H5PEditor.contentId &&
            (r.contentId = H5PEditor.contentId),
          r.specific.width ||
            r.specific.height ||
            !r.generic ||
            ((n = r.specific[r.generic]).params.file &&
              n.params.file.width &&
              n.params.file.height &&
              ((r.width = 20),
              (r.height =
                (n.params.file.height / n.params.file.width) * r.width)));
      }),
      (H5P.clipboardify = function (e) {
        e instanceof H5P.ClipboardItem || (e = new H5P.ClipboardItem(e)),
          H5P.setClipboard(e);
      }),
      (H5P.getClipboard = function () {
        return e();
      }),
      (H5P.setClipboard = function (e) {
        localStorage.setItem("h5pClipboard", JSON.stringify(e)),
          H5P.externalDispatcher.trigger("datainclipboard", {
            reset: !1,
          });
      }),
      (H5P.getLibraryConfig = function (e) {
        return H5PIntegration.libraryConfig && H5PIntegration.libraryConfig[e]
          ? H5PIntegration.libraryConfig[e]
          : {};
      });
    var e = function () {
        var t = localStorage.getItem("h5pClipboard");
        if (t) {
          try {
            t = JSON.parse(t);
          } catch (e) {
            return void console.error(
              "Unable to parse JSON from clipboard.",
              e
            );
          }
          return (
            r(t.specific, function (e) {
              return "#tmp" === e.substr(-4, 4) ||
                !t.contentId ||
                e.match(/^https?:\/\//i)
                ? e
                : H5PEditor.contentId
                ? "../" + t.contentId + "/" + e
                : (H5PEditor.contentRelUrl || "../content/") +
                  t.contentId +
                  "/" +
                  e;
            }),
            t.generic && (t.generic = t.specific[t.generic]),
            t
          );
        }
      },
      r = function (e, t) {
        for (var n in e)
          e.hasOwnProperty(n) &&
            e[n] instanceof Object &&
            (void 0 !== (n = e[n]).path && void 0 !== n.mime
              ? (n.path = t(n.path))
              : (void 0 !== n.library &&
                  void 0 !== n.subContentId &&
                  delete n.subContentId,
                r(n, t)));
      };
    c(document).ready(function () {
      window.addEventListener("storage", function (e) {
        "h5pClipboard" === e.key &&
          H5P.externalDispatcher.trigger("datainclipboard", {
            reset: null === e.newValue,
          });
      });
      var i,
        e,
        t = {
          default: "4.0",
          "4.0": H5P.t("licenseCC40"),
          "3.0": H5P.t("licenseCC30"),
          2.5: H5P.t("licenseCC25"),
          "2.0": H5P.t("licenseCC20"),
          "1.0": H5P.t("licenseCC10"),
        };
      (H5P.copyrightLicenses = {
        U: H5P.t("licenseU"),
        "CC BY": {
          label: H5P.t("licenseCCBY"),
          link: "http://creativecommons.org/licenses/by/:version",
          versions: t,
        },
        "CC BY-SA": {
          label: H5P.t("licenseCCBYSA"),
          link: "http://creativecommons.org/licenses/by-sa/:version",
          versions: t,
        },
        "CC BY-ND": {
          label: H5P.t("licenseCCBYND"),
          link: "http://creativecommons.org/licenses/by-nd/:version",
          versions: t,
        },
        "CC BY-NC": {
          label: H5P.t("licenseCCBYNC"),
          link: "http://creativecommons.org/licenses/by-nc/:version",
          versions: t,
        },
        "CC BY-NC-SA": {
          label: H5P.t("licenseCCBYNCSA"),
          link: "http://creativecommons.org/licenses/by-nc-sa/:version",
          versions: t,
        },
        "CC BY-NC-ND": {
          label: H5P.t("licenseCCBYNCND"),
          link: "http://creativecommons.org/licenses/by-nc-nd/:version",
          versions: t,
        },
        "CC0 1.0": {
          label: H5P.t("licenseCC010"),
          link: "https://creativecommons.org/publicdomain/zero/1.0/",
        },
        "GNU GPL": {
          label: H5P.t("licenseGPL"),
          link: "http://www.gnu.org/licenses/gpl-:version-standalone.html",
          linkVersions: { v3: "3.0", v2: "2.0", v1: "1.0" },
          versions: {
            default: "v3",
            v3: H5P.t("licenseV3"),
            v2: H5P.t("licenseV2"),
            v1: H5P.t("licenseV1"),
          },
        },
        PD: {
          label: H5P.t("licensePD"),
          versions: {
            "CC0 1.0": {
              label: H5P.t("licenseCC010"),
              link: "https://creativecommons.org/publicdomain/zero/1.0/",
            },
            "CC PDM": {
              label: H5P.t("licensePDM"),
              link: "https://creativecommons.org/publicdomain/mark/1.0/",
            },
          },
        },
        "ODC PDDL":
          '<a href="http://opendatacommons.org/licenses/pddl/1.0/" target="_blank">Public Domain Dedication and Licence</a>',
        "CC PDM": {
          label: H5P.t("licensePDM"),
          link: "https://creativecommons.org/publicdomain/mark/1.0/",
        },
        C: H5P.t("licenseC"),
      }),
        H5P.isFramed &&
          !1 === H5P.externalEmbed &&
          H5P.externalDispatcher.on("*", function (e) {
            window.parent.H5P.externalDispatcher.trigger.call(this, e);
          }),
        H5P.preventInit || H5P.init(document.body),
        !1 !== H5PIntegration.saveFreq &&
          ((i = 0),
          (e = function () {
            var e = new Date().getTime();
            if (250 < e - i) {
              i = e;
              for (var t = 0; t < H5P.instances.length; t++) {
                var n,
                  r = H5P.instances[t];
                !(
                  r.getCurrentState instanceof Function ||
                  "function" == typeof r.getCurrentState
                ) ||
                  (void 0 !== (n = r.getCurrentState()) &&
                    H5P.setUserData(r.contentId, "state", n, {
                      deleteOnChange: !0,
                      async: !1,
                    }));
              }
            }
          }),
          H5P.$window.one("beforeunload unload", function () {
            H5P.$window.off("pagehide beforeunload unload"), e();
          }),
          H5P.$window.on("pagehide", e));
    });
  })(H5P.jQuery);
/*!@license js/h5p-event-dispatcher.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/ var H5P =
  (window.H5P = window.H5P || {});
(H5P.Event = function (e, t, n) {
  (this.type = e), (this.data = t);
  var r = !1,
    i = !1,
    o = !1;
  !0 === (n = void 0 === n ? {} : n).bubbles && (r = !0),
    !0 === n.external && (i = !0),
    (this.preventBubbling = function () {
      r = !1;
    }),
    (this.getBubbles = function () {
      return r;
    }),
    (this.scheduleForExternal = function () {
      return !(!i || o) && (o = !0);
    });
}),
  (H5P.EventDispatcher = function () {
    var i = this,
      a = {};
    function r(e, t) {
      if (void 0 !== a[e])
        for (var n = a[e].slice(), r = 0; r < n.length; r++) {
          var i = n[r],
            o = i.thisArg || this;
          i.listener.call(o, t);
        }
    }
    (this.on = function (e, t, n) {
      if ("function" != typeof t)
        throw TypeError("listener must be a function");
      i.trigger("newListener", { type: e, listener: t });
      n = { listener: t, thisArg: n };
      a[e] ? a[e].push(n) : (a[e] = [n]);
    }),
      (this.once = function (e, t, n) {
        if (!(t instanceof Function))
          throw TypeError("listener must be a function");
        var r = function (e) {
          i.off(e.type, r), t.call(this, e);
        };
        i.on(e, r, n);
      }),
      (this.off = function (e, t) {
        if (void 0 !== t && !(t instanceof Function))
          throw TypeError("listener must be a function");
        if (void 0 !== a[e]) {
          if (void 0 === t)
            return delete a[e], void i.trigger("removeListener", e);
          for (var n = 0; n < a[e].length; n++)
            if (a[e][n].listener === t) {
              a[e].splice(n, 1),
                i.trigger("removeListener", e, { listener: t });
              break;
            }
          a[e].length || delete a[e];
        }
      }),
      (this.trigger = function (e, t, n) {
        void 0 !== e &&
          (e instanceof String || "string" == typeof e
            ? (e = new H5P.Event(e, t, n))
            : void 0 !== t && (e.data = t),
          (t = e.scheduleForExternal()),
          r.call(this, e.type, e),
          r.call(this, "*", e),
          e.getBubbles() &&
            i.parent instanceof H5P.EventDispatcher &&
            (i.parent.trigger instanceof Function ||
              "function" == typeof i.parent.trigger) &&
            i.parent.trigger(e),
          t && H5P.externalDispatcher.trigger.call(this, e));
      });
  });
/*!@license js/h5p-x-api-event.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/ var H5P =
  (window.H5P = window.H5P || {});
(H5P.XAPIEvent = function () {
  H5P.Event.call(
    this,
    "xAPI",
    { statement: {} },
    { bubbles: !0, external: !0 }
  );
}),
  (H5P.XAPIEvent.prototype = Object.create(H5P.Event.prototype)),
  (H5P.XAPIEvent.prototype.constructor = H5P.XAPIEvent),
  (H5P.XAPIEvent.prototype.setScoredResult = function (e, t, n, r, i) {
    (this.data.statement.result = {}),
      void 0 !== e &&
        (void 0 === t
          ? (this.data.statement.result.score = { raw: e })
          : ((this.data.statement.result.score = {
              min: 0,
              max: t,
              raw: e,
            }),
            0 < t &&
              (this.data.statement.result.score.scaled =
                Math.round((e / t) * 1e4) / 1e4))),
      (this.data.statement.result.completion =
        void 0 === r
          ? "completed" === this.getVerb() || "answered" === this.getVerb()
          : r),
      void 0 !== i && (this.data.statement.result.success = i),
      n &&
        n.activityStartTime &&
        ((n = Math.round((Date.now() - n.activityStartTime) / 10) / 100),
        (this.data.statement.result.duration = "PT" + n + "S"));
  }),
  (H5P.XAPIEvent.prototype.setVerb = function (e) {
    -1 !== H5P.jQuery.inArray(e, H5P.XAPIEvent.allowedXAPIVerbs)
      ? (this.data.statement.verb = {
          id: "http://adlnet.gov/expapi/verbs/" + e,
          display: { "en-US": e },
        })
      : void 0 !== e.id && (this.data.statement.verb = e);
  }),
  (H5P.XAPIEvent.prototype.getVerb = function (e) {
    var t = this.data.statement;
    return "verb" in t ? (!0 === e ? t.verb : t.verb.id.slice(31)) : null;
  }),
  (H5P.XAPIEvent.prototype.setObject = function (e) {
    e.contentId
      ? ((this.data.statement.object = {
          id: this.getContentXAPIId(e),
          objectType: "Activity",
          definition: {
            extensions: {
              "http://h5p.org/x-api/h5p-local-content-id": e.contentId,
            },
          },
        }),
        e.subContentId
          ? ((this.data.statement.object.definition.extensions[
              "http://h5p.org/x-api/h5p-subContentId"
            ] = e.subContentId),
            "function" == typeof e.getTitle &&
              (this.data.statement.object.definition.name = {
                "en-US": e.getTitle(),
              }))
          : (e = H5P.getContentForInstance(e.contentId)) &&
            e.metadata &&
            e.metadata.title &&
            (this.data.statement.object.definition.name = {
              "en-US": H5P.createTitle(e.metadata.title),
            }))
      : (this.data.statement.object = { definition: {} });
  }),
  (H5P.XAPIEvent.prototype.setContext = function (e) {
    e.parent &&
      (e.parent.contentId || e.parent.subContentId) &&
      (this.data.statement.context = {
        contextActivities: {
          parent: [
            {
              id: this.getContentXAPIId(e.parent),
              objectType: "Activity",
            },
          ],
        },
      }),
      e.libraryInfo &&
        (void 0 === this.data.statement.context &&
          (this.data.statement.context = { contextActivities: {} }),
        (this.data.statement.context.contextActivities.category = [
          {
            id:
              "http://h5p.org/libraries/" + e.libraryInfo.versionedNameNoSpaces,
            objectType: "Activity",
          },
        ]));
  }),
  (H5P.XAPIEvent.prototype.setActor = function () {
    if (void 0 !== H5PIntegration.user)
      this.data.statement.actor = {
        name: H5PIntegration.user.name,
        mbox: "mailto:" + H5PIntegration.user.mail,
        objectType: "Agent",
      };
    else {
      var t;
      try {
        localStorage.H5PUserUUID
          ? (t = localStorage.H5PUserUUID)
          : ((t = H5P.createUUID()), (localStorage.H5PUserUUID = t));
      } catch (e) {
        t = "not-trackable-" + H5P.createUUID();
      }
      this.data.statement.actor = {
        account: { name: t, homePage: H5PIntegration.siteUrl },
        objectType: "Agent",
      };
    }
  }),
  (H5P.XAPIEvent.prototype.getMaxScore = function () {
    return this.getVerifiedStatementValue(["result", "score", "max"]);
  }),
  (H5P.XAPIEvent.prototype.getScore = function () {
    return this.getVerifiedStatementValue(["result", "score", "raw"]);
  }),
  (H5P.XAPIEvent.prototype.getContentXAPIId = function (e) {
    var t;
    return (
      e.contentId &&
        H5PIntegration &&
        H5PIntegration.contents &&
        H5PIntegration.contents["cid-" + e.contentId] &&
        ((t = H5PIntegration.contents["cid-" + e.contentId].url),
        e.subContentId && (t += "?subContentId=" + e.subContentId)),
      t
    );
  }),
  (H5P.XAPIEvent.prototype.isFromChild = function () {
    var e = this.getVerifiedStatementValue([
      "context",
      "contextActivities",
      "parent",
      0,
      "id",
    ]);
    return !e || -1 === e.indexOf("subContentId");
  }),
  (H5P.XAPIEvent.prototype.getVerifiedStatementValue = function (e) {
    for (var t = this.data.statement, n = 0; n < e.length; n++) {
      if (void 0 === t[e[n]]) return null;
      t = t[e[n]];
    }
    return t;
  }),
  (H5P.XAPIEvent.allowedXAPIVerbs = [
    "answered",
    "asked",
    "attempted",
    "attended",
    "commented",
    "completed",
    "exited",
    "experienced",
    "failed",
    "imported",
    "initialized",
    "interacted",
    "launched",
    "mastered",
    "passed",
    "preferred",
    "progressed",
    "registered",
    "responded",
    "resumed",
    "scored",
    "shared",
    "suspended",
    "terminated",
    "voided",
    "downloaded",
    "copied",
    "accessed-reuse",
    "accessed-embed",
    "accessed-copyright",
  ]);
/*!@license js/h5p-x-api.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/ var H5P =
  (window.H5P = window.H5P || {});
(H5P.externalDispatcher = new H5P.EventDispatcher()),
  (H5P.EventDispatcher.prototype.triggerXAPI = function (e, t) {
    this.trigger(this.createXAPIEventTemplate(e, t));
  }),
  (H5P.EventDispatcher.prototype.createXAPIEventTemplate = function (e, t) {
    var n = new H5P.XAPIEvent();
    if ((n.setActor(), n.setVerb(e), void 0 !== t))
      for (var r in t) n.data.statement[r] = t[r];
    return (
      "object" in n.data.statement || n.setObject(this),
      "context" in n.data.statement || n.setContext(this),
      n
    );
  }),
  (H5P.EventDispatcher.prototype.triggerXAPICompleted = function (e, t, n) {
    this.triggerXAPIScored(e, t, "completed", !0, n);
  }),
  (H5P.EventDispatcher.prototype.triggerXAPIScored = function (e, t, n, r, i) {
    n = this.createXAPIEventTemplate(n);
    n.setScoredResult(e, t, this, r, i), this.trigger(n);
  }),
  (H5P.EventDispatcher.prototype.setActivityStarted = function () {
    void 0 === this.activityStartTime &&
      (void 0 !== this.contentId &&
        void 0 !== H5PIntegration.contents &&
        void 0 !== H5PIntegration.contents["cid-" + this.contentId] &&
        this.triggerXAPI("attempted"),
      (this.activityStartTime = Date.now()));
  }),
  (H5P.xAPICompletedListener = function (e) {
    var t, n;
    ("completed" !== e.getVerb() && "answered" !== e.getVerb()) ||
      e.getVerifiedStatementValue(["context", "contextActivities", "parent"]) ||
      ((t = e.getScore()),
      (n = e.getMaxScore()),
      (e = e.getVerifiedStatementValue([
        "object",
        "definition",
        "extensions",
        "http://h5p.org/x-api/h5p-local-content-id",
      ])),
      H5P.setFinished(e, t, n));
  }) /*!@license js/h5p-content-type.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.ContentType = function (e) {
    function t() {}
    return (
      ((t.prototype = new H5P.EventDispatcher()).isRoot = function () {
        return e;
      }),
      (t.prototype.getLibraryFilePath = function (e) {
        return (
          H5P.getLibraryPath(this.libraryInfo.versionedNameNoSpaces) + "/" + e
        );
      }),
      t
    );
  }) /*!@license js/h5p-confirmation-dialog.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.ConfirmationDialog = (function (w) {
    "use strict";
    function e(n) {
      w.call(this);
      var r = this;
      H5P.ConfirmationDialog.uniqueId += 1;
      var e = H5P.ConfirmationDialog.uniqueId;
      function t(e) {
        r.hide(), r.trigger("confirmed"), e.preventDefault();
      }
      function i(e) {
        r.hide(), r.trigger("canceled"), e.preventDefault();
      }
      function o(e, t) {
        e.focus(), t.preventDefault();
      }
      ((n = n || {}).headerText = n.headerText || H5P.t("confirmDialogHeader")),
        (n.dialogText = n.dialogText || H5P.t("confirmDialogBody")),
        (n.cancelText = n.cancelText || H5P.t("cancelLabel")),
        (n.confirmText = n.confirmText || H5P.t("confirmLabel"));
      var a = 32,
        s = 8,
        c = !1,
        l = document.createElement("div");
      l.classList.add("h5p-confirmation-dialog-background", "hidden", "hiding");
      var u = document.createElement("div");
      u.classList.add("h5p-confirmation-dialog-popup", "hidden"),
        n.classes &&
          n.classes.forEach(function (e) {
            u.classList.add(e);
          }),
        u.setAttribute("role", "dialog"),
        u.setAttribute(
          "aria-labelledby",
          "h5p-confirmation-dialog-dialog-text-" + e
        ),
        l.appendChild(u),
        u.addEventListener("keydown", function (e) {
          27 === e.which && i(e);
        });
      var d = document.createElement("div");
      d.classList.add("h5p-confirmation-dialog-header"), u.appendChild(d);
      var p = document.createElement("div");
      p.classList.add("h5p-confirmation-dialog-header-text"),
        (p.innerHTML = n.headerText),
        d.appendChild(p);
      d = document.createElement("div");
      d.classList.add("h5p-confirmation-dialog-body"), u.appendChild(d);
      p = document.createElement("div");
      p.classList.add("h5p-confirmation-dialog-text"),
        (p.innerHTML = n.dialogText),
        (p.id = "h5p-confirmation-dialog-dialog-text-" + e),
        d.appendChild(p);
      p = document.createElement("div");
      p.classList.add("h5p-confirmation-dialog-buttons"), d.appendChild(p);
      var h = document.createElement("button");
      h.classList.add("h5p-core-cancel-button"), (h.textContent = n.cancelText);
      var f = document.createElement("button");
      f.classList.add("h5p-core-button"),
        f.classList.add("h5p-confirmation-dialog-confirm-button"),
        (f.textContent = n.confirmText);
      var g,
        m,
        d = document.createElement("button");
      d.classList.add("h5p-confirmation-dialog-exit"),
        d.setAttribute("aria-hidden", "true"),
        (d.tabIndex = -1),
        (d.title = n.cancelText),
        h.addEventListener("click", i),
        h.addEventListener("keydown", function (e) {
          32 === e.which ? i(e) : 9 === e.which && e.shiftKey && o(f, e);
        }),
        n.hideCancel ? p.classList.add("center") : p.appendChild(h),
        f.addEventListener("click", t),
        f.addEventListener("keydown", function (e) {
          32 === e.which
            ? t(e)
            : 9 !== e.which || e.shiftKey || o(n.hideCancel ? f : h, e);
        }),
        p.appendChild(f),
        d.addEventListener("click", i),
        d.addEventListener("keydown", function (e) {
          32 === e.which && i(e);
        }),
        n.hideExit || u.appendChild(d);
      var v,
        y = [],
        b = [];
      this.appendTo = function (e) {
        return (g = e), this;
      };
      var x = function (e) {
          l.contains(e.target) || (e.preventDefault(), f.focus());
        },
        P = function (e) {
          for (
            var t = [], n = e.parentNode.children, r = 0;
            r < n.length;
            r += 1
          )
            (t[r] = !!n[r].getAttribute("aria-hidden")),
              n[r] !== e && n[r].setAttribute("aria-hidden", !0);
          return t;
        },
        H = function (e, t) {
          for (var n = e.parentNode.children, r = 0; r < n.length; r += 1)
            n[r] === e || t[r] || n[r].removeAttribute("aria-hidden");
        };
      (this.show = function (e) {
        var t;
        return (
          (v = document.activeElement),
          g.appendChild(l),
          (m = g.parentNode || g).addEventListener("focus", x, !0),
          (y = P(g)),
          (b = P(l)),
          l.classList.remove("hidden"),
          (t = e),
          (e = parseInt(u.style.top, 10)),
          (e =
            (e = (e = void 0 !== t ? t : e) || 0) + u.offsetHeight >
            g.offsetHeight
              ? g.offsetHeight - u.offsetHeight - s
              : e) -
            a <=
            0 && ((e = a + s), (c = !0)),
          (u.style.top = e + "px"),
          setTimeout(function () {
            u.classList.remove("hidden"),
              l.classList.remove("hiding"),
              setTimeout(function () {
                var e;
                f.focus(),
                  c &&
                    n.instance &&
                    ((e = parseInt(u.offsetHeight, 10) + a + 2 * s),
                    r.setViewPortMinimumHeight(e),
                    n.instance.trigger("resize"),
                    (c = !1));
              }, 100);
          }, 0),
          this
        );
      }),
        (this.hide = function () {
          return (
            l.classList.add("hiding"),
            u.classList.add("hidden"),
            m.removeAttribute("aria-hidden"),
            m.removeEventListener("focus", x, !0),
            n.skipRestoreFocus || v.focus(),
            H(g, y),
            H(l, b),
            setTimeout(function () {
              l.classList.add("hidden"),
                g.removeChild(l),
                r.setViewPortMinimumHeight(null);
            }, 100),
            this
          );
        }),
        (this.getElement = function () {
          return u;
        }),
        (this.getPreviouslyFocused = function () {
          return v;
        }),
        (this.setViewPortMinimumHeight = function (e) {
          (
            document.querySelector(".h5p-container") || document.body
          ).style.minHeight = "number" == typeof e ? e + "px" : e;
        });
    }
    return ((e.prototype = Object.create(w.prototype)).constructor = e);
  })(H5P.EventDispatcher)),
  (H5P.ConfirmationDialog.uniqueId =
    -1) /*!@license js/h5p-action-bar.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.ActionBar = (function (n) {
    "use strict";
    function e(e) {
      n.call(this);
      function t(e, t) {
        function n() {
          r.trigger(e);
        }
        H5P.jQuery("<li/>", {
          class: "h5p-button h5p-noselect h5p-" + (t || e),
          role: "button",
          tabindex: 0,
          title: H5P.t(e + "Description"),
          html: H5P.t(e),
          on: {
            click: n,
            keypress: function (e) {
              32 === e.which && (n(), e.preventDefault());
            },
          },
          appendTo: o,
        }),
          (i = !0);
      }
      var r = this,
        i = !1,
        o = H5P.jQuery('<ul class="h5p-actions"></ul>');
      (e.export || e.copy) && t("reuse", "export"),
        e.copyright && t("copyrights"),
        e.embed && t("embed"),
        e.icon &&
          (H5P.jQuery(
            '<li><a class="h5p-link" href="http://h5p.org" target="_blank" title="' +
              H5P.t("h5pDescription") +
              '"></a></li>'
          ).appendTo(o),
          (i = !0)),
        (r.getDOMElement = function () {
          return o;
        }),
        (r.hasActions = function () {
          return i;
        });
    }
    return ((e.prototype = Object.create(n.prototype)).constructor = e);
  })(
    (H5P.jQuery, H5P.EventDispatcher)
  )) /*!@license js/request-queue.js by Joubel and other contributors, licensed under GNU GENERAL PUBLIC LICENSE Version 3*/,
  (H5P.RequestQueue = (function (n, t) {
    function e(e) {
      t.call(this),
        (this.processingQueue = !1),
        (this.showToast = (e = e || {}).showToast),
        (this.itemName = "requestQueue");
    }
    return (
      (e.prototype.add = function (e, t) {
        if (!window.localStorage) return !1;
        let n = this.getStoredRequests();
        return (
          (n = n || []),
          n.push({ url: e, data: t }),
          window.localStorage.setItem(this.itemName, JSON.stringify(n)),
          this.trigger("requestQueued", {
            storedStatements: n,
            processingQueue: this.processingQueue,
          }),
          !0
        );
      }),
      (e.prototype.getStoredRequests = function () {
        if (!window.localStorage) return !1;
        var e = window.localStorage.getItem(this.itemName);
        return e ? JSON.parse(e) : [];
      }),
      (e.prototype.clearQueue = function () {
        return (
          !!window.localStorage &&
          (window.localStorage.removeItem(this.itemName), !0)
        );
      }),
      (e.prototype.resumeQueue = function () {
        if (!H5PIntegration || !window.navigator || !window.localStorage)
          return !1;
        if (this.processingQueue) return !1;
        var e = this.getStoredRequests(),
          t = e.length;
        return (
          this.clearQueue(),
          t
            ? ((this.processingQueue = !0), this.processQueue(e))
            : this.trigger("emptiedQueue", e),
          !0
        );
      }),
      (e.prototype.processQueue = function (e) {
        var t;
        e.length &&
          (this.trigger("processingQueue"),
          (t = e.shift()),
          n
            .post(t.url, t.data)
            .fail(this.onQueuedRequestFail.bind(this, t))
            .always(this.onQueuedRequestProcessed.bind(this, e)));
      }),
      (e.prototype.onQueuedRequestFail = function (e) {
        window.navigator.onLine || this.add(e.url, e.data);
      }),
      (e.prototype.onQueuedRequestProcessed = function (e) {
        e.length
          ? this.processQueue(e)
          : ((this.processingQueue = !1),
            (e = this.getStoredRequests()),
            this.trigger("queueEmptied", e));
      }),
      (e.prototype.displayToastMessage = function (e, t, n) {
        (this.showToast || t) &&
          ((n = H5P.jQuery.extend(
            !0,
            {},
            {
              position: {
                horizontal: "centered",
                vertical: "centered",
                noOverflowX: !0,
              },
            },
            n
          )),
          H5P.attachToastTo(H5P.jQuery(".h5p-content:first")[0], e, n));
      }),
      e
    );
  })(H5P.jQuery, H5P.EventDispatcher)),
  (H5P.OfflineRequestQueue = (function (x, P) {
    return function (e) {
      const n = new x();
      n.clearQueue();
      let r = null;
      const i = [10, 20, 40, 60, 120, 300, 600];
      let o = -1,
        t = null,
        a = !1,
        s = !1,
        c = !1;
      e = e.instance;
      const l = new P({
          headerText: H5P.t("offlineDialogHeader"),
          dialogText: H5P.t("offlineDialogBody"),
          confirmText: H5P.t("offlineDialogRetryButtonLabel"),
          hideCancel: !0,
          hideExit: !0,
          classes: ["offline"],
          instance: e,
          skipRestoreFocus: !0,
        }),
        u = l.getElement(),
        d = document.createElement("div");
      d.classList.add("count-down"),
        (d.innerHTML = H5P.t("offlineDialogRetryMessage").replace(
          ":num",
          '<span class="count-down-num">0</span>'
        )),
        u.querySelector(".h5p-confirmation-dialog-text").appendChild(d);
      const p = d.querySelector(".count-down-num"),
        h = document.createElement("div");
      h.classList.add("throbber-wrapper");
      const f = document.createElement("div");
      f.classList.add("sending-requests-throbber"),
        h.appendChild(f),
        n.on(
          "requestQueued",
          function (e) {
            if (!e.data || !e.data.processingQueue) {
              if (!a) {
                const t = document.body.querySelector(".h5p-content");
                if (!t) return;
                l.appendTo(t), t.appendChild(h), (a = !0);
              }
              y();
            }
          }.bind(this)
        ),
        n.on(
          "queueEmptied",
          function (e) {
            e.data && e.data.length
              ? y(!0)
              : (clearInterval(t),
                g(!1),
                (o = -1),
                s && (l.hide(), (s = !1)),
                n.displayToastMessage(H5P.t("offlineSuccessfulSubmit"), !0, {
                  position: { vertical: "top", offsetVertical: "100" },
                }));
          }.bind(this)
        ),
        l.on(
          "confirmed",
          function () {
            (s = !1),
              setTimeout(function () {
                m();
              }, 100);
          }.bind(this)
        ),
        window.addEventListener(
          "online",
          function () {
            m();
          }.bind(this)
        ),
        window.addEventListener(
          "message",
          function (e) {
            window.parent === e.source &&
              "h5p" === e.data.context &&
              "queueRequest" === e.data.action &&
              this.add(e.data.url, e.data.data);
          }.bind(this)
        );
      const g = function (e) {
          (c = !c),
            void 0 !== e && (c = e),
            c && s && (l.hide(), (s = !1)),
            c ? h.classList.add("show") : h.classList.remove("show");
        },
        m = function () {
          clearInterval(t), g(!0), n.resumeQueue();
        },
        v = function () {
          (o += 1), o >= i.length && (o = i.length - 1);
        },
        y = function (e) {
          s ||
            (g(!1),
            s ||
              (e
                ? setTimeout(function () {
                    l.show(0);
                  }, 100)
                : l.show(0)),
            (s = !0),
            (r = new Date().getTime()),
            v(),
            clearInterval(t),
            (t = setInterval(b, 100)));
        },
        b = function () {
          var e = new Date().getTime(),
            e = Math.floor((e - r) / 1e3);
          const t = i[o] - e;
          (p.textContent = t.toString()), t <= 0 && m();
        };
      this.add = function (e, t) {
        if (window.navigator.onLine) return !1;
        n.add(e, t);
      };
    };
  })(H5P.RequestQueue, H5P.ConfirmationDialog));
/*!@license H5P.Image-1.1/image.js by Joubel licensed under unknown license*/ var H5P =
  H5P || {};
!(function (r) {
  (H5P.Image = function (e, t, n) {
    H5P.EventDispatcher.call(this),
      (this.extras = n),
      void 0 !== e.file && e.file instanceof Object
        ? ((this.source = H5P.getPath(e.file.path, t)),
          (this.width = e.file.width),
          (this.height = e.file.height))
        : (this.placeholder = !0),
      (this.alt =
        e.decorative || void 0 === e.alt
          ? ""
          : this.stripHTML(this.htmlDecode(e.alt))),
      void 0 !== e.title &&
        (this.title = this.stripHTML(this.htmlDecode(e.title)));
  }),
    (H5P.Image.prototype = Object.create(H5P.EventDispatcher.prototype)),
    (H5P.Image.prototype.constructor = H5P.Image),
    (H5P.Image.prototype.attach = function (e) {
      var t = this,
        n = this.source;
      void 0 === t.$img &&
        (t.placeholder
          ? (t.$img = r("<div>", {
              width: "100%",
              height: "100%",
              class: "h5p-placeholder",
              title: void 0 === this.title ? "" : this.title,
              on: {
                load: function () {
                  t.trigger("loaded");
                },
              },
            }))
          : (t.$img = r("<img>", {
              width: "100%",
              height: "100%",
              src: n,
              alt: this.alt,
              title: void 0 === this.title ? "" : this.title,
              on: {
                load: function () {
                  t.trigger("loaded");
                },
              },
            }))),
        e.addClass("h5p-image").html(t.$img);
    }),
    (H5P.Image.prototype.htmlDecode = function (e) {
      return new DOMParser().parseFromString(e, "text/html").documentElement
        .textContent;
    }),
    (H5P.Image.prototype.stripHTML = function (e) {
      const t = document.createElement("div");
      return (t.innerHTML = e), t.textContent || t.innerText || "";
    }),
    H5P.Image;
})(H5P.jQuery),
  /*!@license H5P.BranchingQuestion-1.0/branchingQuestion.js by Joubel AS licensed under MIT*/ (H5P.BranchingQuestion =
    function (c) {
      var d = this;
      d.firstFocusable,
        d.lastFocusable,
        H5P.EventDispatcher.call(d),
        (this.container = null);
      let p;
      const h = function (e, t) {
        if (!document.documentElement.contains(e)) return null;
        e.matches ||
          (e.matches =
            Element.prototype.msMatchesSelector ||
            Element.prototype.webkitMatchesSelector);
        do {
          if (e.matches(t)) return e;
        } while (
          null !== (e = e.parentElement || e.parentNode) &&
          1 === e.nodeType
        );
        return null;
      };
      var r = function (e) {
          var t = document.createElement("div");
          t.classList.add("h5p-branching-question-alternative"),
            (t.tabIndex = 0);
          var n = document.createElement("p");
          return (n.innerHTML = e), t.appendChild(n), t;
        },
        i = function (e, t, n) {
          var r = document.createElement("div");
          r.classList.add("h5p-branching-question"),
            r.classList.add(
              void 0 !== e.image
                ? "h5p-feedback-has-image"
                : "h5p-feedback-default"
            ),
            void 0 !== e.image &&
              void 0 !== e.image.path &&
              ((a = document.createElement("div")).classList.add(
                "h5p-branching-question"
              ),
              a.classList.add("h5p-feedback-image"),
              ((o = document.createElement("img")).src = H5P.getPath(
                e.image.path,
                d.contentId
              )),
              a.appendChild(o),
              r.appendChild(a));
          var i = document.createElement("div");
          i.classList.add("h5p-branching-question"),
            i.classList.add("h5p-feedback-content");
          var o = document.createElement("div");
          o.classList.add("h5p-feedback-content-content"), i.appendChild(o);
          var a = document.createElement("h1");
          (a.innerHTML = e.title || ""),
            o.appendChild(a),
            e.subtitle &&
              (((s = document.createElement("div")).innerHTML =
                e.subtitle || ""),
              o.appendChild(s));
          o = document.createElement("button");
          o.onclick = function () {
            d.trigger("navigated", {
              nextContentId: t,
              chosenAlternative: n,
            });
          };
          var s = document.createTextNode(c.proceedButtonText);
          o.appendChild(s), i.appendChild(o);
          return (
            i.addEventListener("keydown", function (e) {
              ("Tab" !== e.key && 9 !== e.keyCode) || e.preventDefault();
            }),
            r.appendChild(i),
            r
          );
        };
      d.getXAPIData = function () {
        var e = this.createXAPIEventTemplate("answered");
        return (
          t(e),
          e.setScoredResult(void 0, void 0, d, !0),
          (e.data.statement.result.response = p),
          { statement: e.data.statement }
        );
      };
      var t = function (e) {
        const t = document.createElement("div");
        var n = e.getVerifiedStatementValue(["object", "definition"]);
        (t.innerHTML = c.branchingQuestion.question),
          (n.description = { "en-US": t.innerText }),
          (n.type = "http://adlnet.gov/expapi/activities/cmi.interaction"),
          (n.interactionType = "choice"),
          (n.correctResponsesPattern = []),
          (n.choices = []),
          (n.extensions = {
            "https://h5p.org/x-api/no-correct-answer": 1,
          });
        var r = c.branchingQuestion.alternatives;
        for (let e = 0; e < r.length; e++)
          (t.innerHTML = r[e].text),
            (n.choices[e] = {
              id: e + "",
              description: { "en-US": t.innerText },
            });
      };
      d.attach = function (e) {
        var t = document.createElement("div");
        t.classList.add("h5p-branching-question-container");
        var n = (function () {
          var e = document.createElement("div");
          e.classList.add("h5p-branching-question");
          var t = document.createElement("img");
          return (
            t.classList.add("h5p-branching-question-icon"),
            (t.src = d.getLibraryFilePath("branching-question-icon.svg")),
            e.appendChild(t),
            e
          );
        })();
        (n = (function (c, l) {
          var u = document.createElement("div");
          u.classList.add("h5p-multichoice-wrapper");
          var e = document.createElement("div");
          e.classList.add("h5p-branching-question-title"),
            (e.innerHTML = c.branchingQuestion.question),
            u.appendChild(e);
          const t = c.branchingQuestion.alternatives || [];
          return (
            t.forEach(function (e, s, t) {
              const n = r(e.text);
              0 === s && (d.firstFocusable = n),
                s === t.length - 1 && (d.lastFocusable = n),
                (n.nextContentId = e.nextContentId);
              t =
                e.feedback &&
                !!(
                  (e.feedback.title && e.feedback.title.trim()) ||
                  (e.feedback.subtitle && e.feedback.subtitle.trim()) ||
                  e.feedback.image
                );
              t &&
                -1 !== e.nextContentId &&
                ((n.feedbackScreen = i(e.feedback, n.nextContentId, s)),
                (n.proceedButton =
                  n.feedbackScreen.querySelectorAll("button")[0])),
                (n.hasFeedback =
                  e.feedback && !(!t && void 0 === e.feedback.endScreenScore)),
                (n.feedback = e.feedback),
                n.addEventListener("keyup", function (e) {
                  (13 != e.which && 32 != e.which) || this.click();
                }),
                (n.onclick = function (e) {
                  if (void 0 !== this.feedbackScreen)
                    d.container &&
                      d.container.classList.add(
                        "h5p-branching-scenario-feedback-dialog"
                      ),
                      (l.innerHTML = ""),
                      l.appendChild(this.feedbackScreen),
                      (p = s),
                      this.proceedButton.focus(),
                      d.triggerXAPI("interacted");
                  else {
                    for (
                      var t,
                        n = e.target.classList.contains(
                          ".h5p-branching-question-alternative"
                        )
                          ? e.target
                          : h(e.target, ".h5p-branching-question-alternative"),
                        r = u.querySelectorAll(
                          ".h5p-branching-question-alternative"
                        ),
                        i = 0;
                      i < r.length;
                      i++
                    )
                      if (r[i] === n) {
                        t = i;
                        break;
                      }
                    p = t;
                    var o = {
                        nextContentId: this.nextContentId,
                        chosenAlternative: t,
                      },
                      a = c.branchingQuestion.alternatives[t],
                      e = !!(
                        a.feedback.title ||
                        a.feedback.subtitle ||
                        a.feedback.image ||
                        void 0 !== a.feedback.endScreenScore
                      );
                    0 <= t && e && (o.feedback = a.feedback),
                      d.trigger("navigated", o);
                  }
                }),
                u.appendChild(n);
            }),
            l.appendChild(u),
            l
          );
        })(c, n)).addEventListener("keydown", function (e) {
          ("Tab" !== e.key && 9 !== e.keyCode) ||
            (e.shiftKey && document.activeElement === d.firstFocusable
              ? (d.lastFocusable.focus(), e.preventDefault())
              : document.activeElement === d.lastFocusable &&
                (d.firstFocusable.focus(), e.preventDefault()));
        }),
          t.appendChild(n),
          e.append(t),
          (this.container = e[0]);
      };
    });
/*!@license H5P.Transition-1.0/transition.js by Joubel licensed under MIT*/ var H5P =
  H5P || {};
(H5P.Transition = (function () {
  Transition = {
    transitionEndEventNames: {
      WebkitTransition: "webkitTransitionEnd",
      transition: "transitionend",
      MozTransition: "transitionend",
      OTransition: "oTransitionEnd",
      msTransition: "MSTransitionEnd",
    },
    cache: [],
    getVendorPropertyName: function (e) {
      if (void 0 !== Transition.cache[e]) return Transition.cache[e];
      var t = document.createElement("div");
      if (e in t.style) Transition.cache[e] = e;
      else {
        var n = ["Moz", "Webkit", "O", "ms"],
          r = e.charAt(0).toUpperCase() + e.substr(1);
        if (e in t.style) Transition.cache[e] = e;
        else
          for (var i = 0; i < n.length; ++i) {
            var o = n[i] + r;
            if (o in t.style) {
              Transition.cache[e] = o;
              break;
            }
          }
      }
      return Transition.cache[e];
    },
    getTransitionEndEventName: function () {
      return (
        Transition.transitionEndEventNames[
          Transition.getVendorPropertyName("transition")
        ] || void 0
      );
    },
    onTransitionEnd: function (e, t, n) {
      (n = n || 1e3),
        (Transition.transitionEndEventName =
          Transition.transitionEndEventName ||
          Transition.getTransitionEndEventName());
      function r() {
        i ||
          (e.off(Transition.transitionEndEventName, t),
          (i = !0),
          clearTimeout(o),
          t());
      }
      var i = !1,
        o = setTimeout(function () {
          r();
        }, n);
      e.on(Transition.transitionEndEventName, function () {
        r();
      });
    },
  };
  function r(e, t) {
    var n;
    t >= e.length ||
      ((n = e[t]),
      H5P.Transition.onTransitionEnd(
        n.$element,
        function () {
          n.end && n.end(), !0 !== n.break && r(e, t + 1);
        },
        n.timeout || void 0
      ));
  }
  return (
    (Transition.sequence = function (e) {
      r(e, 0);
    }),
    Transition
  );
})(
  H5P.jQuery
)) /*!@license H5P.ImageHotspots-1.8/scripts/image-hotspots.js by Joubel licensed under MIT*/,
  (H5P.ImageHotspots = (function (s, n) {
    function c(e, t) {
      n.call(this),
        (this.options = s.extend(
          !0,
          {},
          {
            image: null,
            hotspots: [],
            hotspotNumberLabel: "Hotspot #num",
            closeButtonLabel: "Close",
            iconType: "icon",
            icon: "plus",
          },
          e
        )),
        (this.id = t),
        (this.isSmallDevice = !1);
    }
    return (
      (((c.prototype = Object.create(n.prototype)).constructor =
        c).prototype.attach = function (e) {
        var t = this;
        if (
          ((t.$container = e),
          null !== this.options.image && void 0 !== this.options.image)
        ) {
          !1 === /(iPad|iPhone|iPod)/g.test(navigator.userAgent) &&
            e.addClass("not-an-ios-device"),
            e.addClass("h5p-image-hotspots"),
            (this.$hotspotContainer = s("<div/>", {
              class: "h5p-image-hotspots-container",
            })),
            this.options.image &&
              this.options.image.path &&
              ((this.$image = s("<img/>", {
                class: "h5p-image-hotspots-background",
                src: H5P.getPath(this.options.image.path, this.id),
              }).appendTo(this.$hotspotContainer)),
              this.options.backgroundImageAltText
                ? this.$image.attr("alt", this.options.backgroundImageAltText)
                : this.$image.attr("aria-hidden", !0));
          function n() {
            return t.isSmallDevice;
          }
          var r = this.options.hotspots.length;
          (this.hotspots = []),
            this.options.hotspots.sort(function (e, t) {
              var n = e.position && e.position.x && e.position.y,
                r = t.position && t.position.x && t.position.y;
              return n
                ? r
                  ? e.position.y !== t.position.y
                    ? e.position.y < t.position.y
                      ? -1
                      : 1
                    : e.position.x < t.position.x
                    ? -1
                    : 1
                  : -1
                : 1;
            });
          for (var i = 0; i < r; i++)
            try {
              var o = new c.Hotspot(
                this.options.hotspots[i],
                this.options,
                this.id,
                n,
                t
              );
              o.appendTo(this.$hotspotContainer);
              var a =
                this.options.hotspots[i].header ||
                this.options.hotspotNumberLabel.replace(
                  "#num",
                  (i + 1).toString()
                );
              o.setTitle(a), this.hotspots.push(o);
            } catch (e) {
              H5P.error(e);
            }
          this.$hotspotContainer.appendTo(e),
            t.resize(),
            this.on("resize", t.resize, t),
            this.on("enterFullScreen", function () {
              setTimeout(function () {
                t.trigger("resize"), t.toggleTrapFocus(!0);
              });
            }),
            this.on("exitFullScreen", function () {
              t.trigger("resize", { forceImageHeight: !0 }),
                t.toggleTrapFocus(!1);
            });
        } else
          e.append(
            '<div class="background-image-missing">Missing required background image</div>'
          );
      }),
      (c.prototype.toggleTrapFocus = function (e) {
        this.hotspots.length < 1 ||
          (e
            ? (this.hotspots[0].focus(),
              1 < this.hotspots.length &&
                (this.hotspots[this.hotspots.length - 1].setTrapFocusTo(
                  this.hotspots[0]
                ),
                this.hotspots[0].setTrapFocusTo(
                  this.hotspots[this.hotspots.length - 1],
                  !0
                )))
            : (this.hotspots[this.hotspots.length - 1].releaseTrapFocus(),
              this.hotspots[0].releaseTrapFocus()));
      }),
      (c.prototype.resize = function (e) {
        var t, n, r, i, o, a;
        null !== this.options.image &&
          ((n = (t = this).$container.width()),
          (r = t.$container.height()),
          (a = n),
          (i = Math.floor(
            (a / t.options.image.width) * t.options.image.height
          )),
          (o = e && e.data && e.data.forceImageHeight),
          (e = e && e.data && e.data.decreaseSize) ||
            t.$container.css("width", ""),
          !o &&
            H5P.isFullscreen &&
            r < i &&
            ((i = r),
            (a = Math.floor(
              (i / t.options.image.height) * t.options.image.width
            ))),
          t.$container.is(".h5p-semi-fullscreen") &&
            (t.$container.css("width", ""),
            e ||
              (t.$hotspotContainer.css("width", "10px"),
              t.$image.css("width", "10px"),
              setTimeout(function () {
                t.trigger("resize", { decreaseSize: !0 });
              }, 200)),
            (e = s(window.frameElement)) &&
              ((a = e.parent().width()), t.$container.css("width", a + "px"))),
          t.$image.css({ width: a + "px", height: i + "px" }),
          void 0 === t.initialWidth && (t.initialWidth = t.$container.width()),
          (t.fontSize = (a / t.initialWidth) * 24),
          t.$hotspotContainer.css({
            width: a + "px",
            height: i + "px",
            fontSize: t.fontSize + "px",
          }),
          (t.isSmallDevice = n / parseFloat(s("body").css("font-size")) < 40));
      }),
      c
    );
  })(
    H5P.jQuery,
    H5P.EventDispatcher
  )) /*!@license H5P.ImageHotspots-1.8/scripts/hotspot.js by Joubel licensed under MIT*/,
  (function (s, c) {
    (c.Hotspot = function (e, t, n, r, i) {
      var o = this;
      (this.config = e),
        (this.visible = !1),
        (this.id = n),
        (this.isSmallDeviceCB = r);
      r = void 0 !== (this.options = t).iconImage && "image" === t.iconType;
      if (void 0 === this.config.content || 0 === this.config.content.length)
        throw new Error(
          "Missing content configuration for hotspot. Please fix in editor."
        );
      (this.$element = s(r ? "<img/>" : "<button/>", {
        class: "h5p-image-hotspot " + (r ? "" : "h5p-image-hotspot-" + t.icon),
        role: "button",
        tabindex: 0,
        "aria-haspopup": !0,
        src: r ? H5P.getPath(t.iconImage.path, this.id) : void 0,
        click: function () {
          return (
            o.loadingPopup || (o.visible ? o.hidePopup() : o.showPopup(!0)), !1
          );
        },
        keydown: function (e) {
          if (32 === e.which || 13 === e.which)
            return (
              o.loadingPopup ||
                (o.visible ? o.hidePopup() : o.showPopup(!0),
                e.stopPropagation()),
              !1
            );
        },
      })),
        this.config.position.legacyPositioning
          ? this.$element.css({
              top: this.config.position.y + "%",
              left: this.config.position.x + "%",
              color: t.color,
            })
          : this.$element.css({
              top: "calc(" + this.config.position.y + "% - 0.6em)",
              left: "calc(" + this.config.position.x + "% - 0.6em)",
              color: t.color,
            }),
        i.on("resize", function () {
          o.popup &&
            o.actionInstances.forEach(function (e) {
              void 0 !== e.trigger &&
                setTimeout(function () {
                  e.trigger("resize");
                }, 1);
            });
        });
    }),
      (c.Hotspot.prototype.appendTo = function (e) {
        (this.$container = e), this.$element.appendTo(e);
      }),
      (c.Hotspot.prototype.showPopup = function (e) {
        var n = this,
          r = s("<div/>", { class: "h5p-image-hotspot-popup-body" });
        (n.loadingPopup = !0), (this.actionInstances = []);
        var i = [];
        this.config.content.forEach(function (e) {
          var t = s("<div>", {
              class: "h5p-image-hotspot-popup-body-fraction",
              appendTo: r,
            }),
            e = H5P.newRunnable(e, n.id);
          n.actionInstances.push(e),
            ("H5P.Image" !== e.libraryInfo.machineName &&
              "H5P.Video" !== e.libraryInfo.machineName) ||
              i.push(e),
            e.attach(t);
        });
        function o() {
          n.toggleHotspotsTabindex(!0),
            (n.visible = !0),
            n.popup.show(e),
            n.$element.addClass("active"),
            n.actionInstances.forEach(function (e) {
              e.trigger("resize");
            });
        }
        var a,
          t = "h5p-video";
        i.length
          ? 1 === n.actionInstances.length &&
            "H5P.Image" === n.actionInstances[0].libraryInfo.machineName &&
            (t = "h5p-image")
          : (t = "h5p-text"),
          (n.popup = new c.Popup(
            n.$container,
            r,
            n.config.position.x,
            n.config.position.y,
            n.$element.outerWidth(),
            n.config.header,
            t,
            n.config.alwaysFullscreen || n.isSmallDeviceCB(),
            n.options
          )),
          n.popup.on("closed", function (e) {
            n.hidePopup(), e.data && e.data.refocus && n.focus();
          }),
          n.popup.on("finishedLoading", function () {
            n.loadingPopup = !1;
          }),
          i.length
            ? ((a = 0),
              i.forEach(function (e) {
                function t() {
                  clearTimeout(n),
                    e.off("loaded", t),
                    (a += 1) >= i.length &&
                      setTimeout(function () {
                        o();
                      }, 100);
                }
                var n = setTimeout(t, 1e3);
                e.on("loaded", t, { unloaded: e, timeout: n }),
                  e.trigger("resize");
              }))
            : setTimeout(function () {
                o();
              }, 100),
          s("body")
            .children()
            .on("click.h5p-image-hotspot-popup", function (e) {
              e = s(e.target);
              !n.visible ||
                e.hasClass("h5p-enable-fullscreen") ||
                e.hasClass("h5p-disable-fullscreen") ||
                n.hidePopup();
            });
      }),
      (c.Hotspot.prototype.toggleHotspotsTabindex = function (e) {
        this.$container
          .find(".h5p-image-hotspot")
          .attr("tabindex", e ? "-1" : "0")
          .attr("aria-hidden", !!e || "");
      }),
      (c.Hotspot.prototype.hidePopup = function () {
        this.popup &&
          (s("body").children().off("click.h5p-image-hotspot-popup"),
          this.popup.hide(),
          this.$element.removeClass("active"),
          (this.visible = !1),
          (this.popup = void 0),
          this.toggleHotspotsTabindex());
      }),
      (c.Hotspot.prototype.focus = function () {
        this.$element.focus();
      }),
      (c.Hotspot.prototype.setTrapFocusTo = function (t, n) {
        this.$element.on("keydown.trapfocus", function (e) {
          if (9 === e.which && (n ? e.shiftKey : !e.shiftKey))
            return t.focus(), e.stopPropagation(), !1;
        });
      }),
      (c.Hotspot.prototype.releaseTrapFocus = function () {
        this.$element.off("keydown.trapfocus");
      }),
      (c.Hotspot.prototype.setTitle = function (e) {
        this.$element.attr("title", e), this.$element.attr("aria-label", e);
      });
  })(
    H5P.jQuery,
    H5P.ImageHotspots
  ) /*!@license H5P.ImageHotspots-1.8/scripts/popup.js by Joubel licensed under MIT*/,
  (function (p, e, h) {
    (e.Popup = function (e, t, n, o, r, i, a, s, c) {
      h.call(this);
      var l = this;
      this.$container = e;
      r = (r / this.$container.width()) * 100;
      var u = 0,
        d = 0,
        e = !1;
      s
        ? ((d = 100), (a += " fullscreen-popup"))
        : ((u = (e = 45 < n) ? 0 : n + r + 4), (d = e ? n - 4 : 100 - u)),
        (this.$popupBackground = p("<div/>", {
          class: "h5p-image-hotspots-overlay",
        })),
        (this.$popup = p("<div/>", {
          class: "h5p-image-hotspot-popup " + a,
          role: "dialog",
        })
          .css({ left: (e ? "" : "-") + "100%", width: d + "%" })
          .click(function (e) {
            e.stopPropagation();
          })
          .appendTo(this.$popupBackground)),
        (this.$popupContent = p("<div/>", {
          class: "h5p-image-hotspot-popup-content",
        })),
        i &&
          ((this.$popupHeader = p("<div/>", {
            class: "h5p-image-hotspot-popup-header",
            html: i,
            tabindex: "-1",
          })),
          this.$popupContent.append(this.$popupHeader),
          this.$popup.addClass("h5p-image-hotspot-has-header")),
        t.appendTo(this.$popupContent),
        this.$popupContent.appendTo(this.$popup),
        (this.$closeButton = p("<button>", {
          class: "h5p-image-hotspot-close-popup-button",
          "aria-label": c.closeButtonLabel,
          title: c.closeButtonLabel,
        })
          .click(function () {
            l.trigger("closed");
          })
          .keydown(function (e) {
            if (32 === e.which || 13 === e.which)
              return l.trigger("closed", { refocus: !0 }), !1;
          })
          .appendTo(this.$popup)),
        s
          ? (this.$closeButton.addClass("h5p-image-hotspot-close-fullscreen"),
            H5P.isFullscreen ||
              ((c = p(".h5p-enable-fullscreen")),
              this.$closeButton.css({
                width: c.outerWidth() + "px",
                top: c.outerHeight() + "px",
              })),
            H5P.Transition.onTransitionEnd(
              l.$popup,
              function () {
                l.$closeButton.css({ right: "0" });
              },
              300
            ))
          : (this.$pointer = p("<div/>", {
              class:
                "h5p-image-hotspot-popup-pointer to-the-" +
                (e ? "left" : "right"),
            })
              .css({ top: o + 0.5 + "%" })
              .appendTo(this.$popup)),
        this.$popupBackground.appendTo(this.$container),
        (l.show = function (e) {
          var t,
            n,
            r = l.$popupContent.height(),
            i = l.$popup.height();
          s ||
            (r < i
              ? (l.$popup.css({ maxHeight: "auto", height: "auto" }),
                (n = (o / 100) * i - r / 2) < 30
                  ? (n = 30)
                  : i < n + r && (n = i - r),
                (t = (o / 100) * i - n),
                l.$popup.css({ top: (n = (n / i) * 100) + "%" }),
                l.$pointer.css({
                  top: (t / r) * 100 - (i / r) * 0.5 + "%",
                }))
              : l.$popupContent.css({
                  height: "100%",
                  overflow: "auto",
                })),
            l.$popup.css({ left: u + "%" }),
            l.$popupBackground.addClass("visible"),
            H5P.Transition.onTransitionEnd(
              l.$popup,
              function () {
                e && (l.$popupHeader || l.$closeButton).focus(),
                  l.trigger("finishedLoading");
              },
              300
            );
        }),
        (l.hide = function () {
          l.$popupBackground.remove();
        });
    }),
      (e.Popup.prototype = Object.create(h.prototype)),
      (e.Popup.prototype.constructor = e.Popup);
  })(H5P.jQuery, H5P.ImageHotspots, H5P.EventDispatcher);
/*!@license H5P.Text-1.1/scripts/text.js by Joubel licensed under unknown license*/ var H5P =
  H5P || {};
(H5P.Text = function (e) {
  this.text = void 0 === e.text ? "<em>New text</em>" : e.text;
}),
  (H5P.Text.prototype.attach = function (e) {
    e.addClass("h5p-text").html(this.text);
  }),
  /*!@license H5P.BranchingScenario-1.2/dist/dist.js by Joubel AS licensed under MIT*/ (function (
    n
  ) {
    var r = {};
    function i(e) {
      if (r[e]) return r[e].exports;
      var t = (r[e] = { i: e, l: !1, exports: {} });
      return n[e].call(t.exports, t, t.exports, i), (t.l = !0), t.exports;
    }
    (i.m = n),
      (i.c = r),
      (i.d = function (e, t, n) {
        i.o(e, t) ||
          Object.defineProperty(e, t, {
            configurable: !1,
            enumerable: !0,
            get: n,
          });
      }),
      (i.n = function (e) {
        var t =
          e && e.__esModule
            ? function () {
                return e.default;
              }
            : function () {
                return e;
              };
        return i.d(t, "a", t), t;
      }),
      (i.o = function (e, t) {
        return Object.prototype.hasOwnProperty.call(e, t);
      }),
      (i.p = ""),
      i((i.s = 0));
  })([
    function (e, t, n) {
      n(1), n(2), n(3), (e.exports = n(6));
    },
    function (e, t, n) {
      "use strict";
      var r =
        "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;
            };
      ((H5P = H5P || {}).BranchingScenario = function (o, e) {
        var a = this;
        H5P.EventDispatcher.call(a),
          (a.contentId = e),
          (a.startScreen = {}),
          (a.libraryScreen = {}),
          (a.endScreens = {}),
          a.navigating,
          a.currentHeight,
          (a.currentId = -1),
          (a.xAPIDataCollector = []);
        function n() {
          for (var e = 1; e < arguments.length; e++)
            for (var t in arguments[e])
              arguments[e].hasOwnProperty(t) &&
                ("object" === r(arguments[0][t]) &&
                "object" === r(arguments[e][t])
                  ? n(arguments[0][t], arguments[e][t])
                  : (arguments[0][t] = arguments[e][t]));
          return arguments[0];
        }
        ((o = n(
          {
            content: [],
            startScreen: {
              startScreenTitle: "",
              startScreenSubtitle: "",
            },
            endScreens: [
              {
                endScreenTitle: "",
                endScreenSubtitle: "",
                contentId: -1,
              },
            ],
            scoringOption: "no-score",
            l10n: {},
          },
          o.branchingScenario
        )).l10n = n(
          {
            startScreenButtonText: "Start the course",
            endScreenButtonText: "Restart the course",
            proceedButtonText: "Proceed",
            scoreText: "Your score:",
          },
          o.l10n
        )),
          o.content.forEach(function (e, t) {
            (e.contentId = t),
              void 0 === e.nextContentId && (e.nextContentId = -1);
          }),
          (a.params = o),
          (a.scoring = new H5P.BranchingScenario.Scoring(o));
        function s(e) {
          return (
            (e = new H5P.BranchingScenario.GenericScreen(a, {
              isStartScreen: !1,
              titleText: e.endScreenTitle,
              subtitleText: e.endScreenSubtitle,
              image: e.endScreenImage,
              buttonText: o.l10n.endScreenButtonText,
              isCurrentScreen: !1,
              scoreText: o.l10n.scoreText,
              score: a.scoring.getScore(e.endScreenScore),
              maxScore: a.scoring.getMaxScore(),
              showScore: a.scoring.shouldShowScore(),
            })).on("toggleFullScreen", function () {
              a.toggleFullScreen();
            }),
            e
          );
        }
        (a.getLibrary = function (e) {
          return void 0 !== o.content[e] && o.content[e];
        }),
          a.on("started", function () {
            var e = this.params.content[0];
            e &&
            e.type &&
            e.type.library &&
            "H5P.BranchingQuestion" === e.type.library.split(" ")[0]
              ? a.trigger("navigated", { nextContentId: 0 })
              : (a.startScreen.hide(),
                a.libraryScreen.show(),
                a.triggerXAPI("progressed")),
              (a.currentId = 0);
          }),
          a.on("navigated", function (e) {
            var t,
              n = parseInt(e.data.nextContentId),
              r = a.getLibrary(n),
              i = !0;
            a.libraryScreen
              ? (a.libraryScreen.stopPlayback(a.currentId),
                (t = a.libraryScreen.getXAPIData(a.currentId)) &&
                  a.xAPIDataCollector.push(t))
              : ((a.libraryScreen = new H5P.BranchingScenario.LibraryScreen(
                  a,
                  o.startScreen.startScreenTitle,
                  r
                )),
                a.libraryScreen.on("toggleFullScreen", function () {
                  a.toggleFullScreen();
                }),
                a.$container.append(a.libraryScreen.getElement()),
                (a.currentId = n)),
              a.currentEndScreen && a.currentEndScreen.isShowing
                ? r
                  ? H5P.BranchingScenario.LibraryScreen.isBranching(r) ||
                    (a.currentEndScreen.hide(),
                    (a.currentEndScreen = null),
                    a.libraryScreen.show())
                  : (a.libraryScreen.hideFeedbackDialogs(),
                    a.currentEndScreen.hide(),
                    (a.currentEndScreen = null))
                : a.startScreen && a.startScreen.isShowing && r
                ? H5P.BranchingScenario.LibraryScreen.isBranching(r) ||
                  (a.startScreen.hide(), a.libraryScreen.show(), (i = !1))
                : a.libraryScreen.hideFeedbackDialogs(),
              i && a.trigger("resize"),
              -1 !== a.currentId &&
                (a.triggerXAPI("progressed"),
                a.scoring.addLibraryScore(
                  this.currentId,
                  this.libraryScreen.currentLibraryId,
                  e.data.chosenAlternative
                )),
              !1 === r
                ? ((a.currentEndScreen = a.endScreens[n]),
                  e.data.feedback
                    ? ((i = s({
                        endScreenTitle: e.data.feedback.title || "",
                        endScreenSubtitle: e.data.feedback.subtitle || "",
                        endScreenImage: e.data.feedback.image,
                        endScreenScore: e.data.feedback.endScreenScore,
                      })),
                      a.$container.append(i.getElement()),
                      (a.currentEndScreen = i))
                    : a.scoring.isDynamicScoring() &&
                      a.currentEndScreen.setScore(a.getScore()),
                  a.startScreen.hide(),
                  a.libraryScreen.hide(!0),
                  a.currentEndScreen.show(),
                  a.triggerXAPICompleted(
                    a.scoring.getScore(a.currentEndScreen.getScore()),
                    a.scoring.getMaxScore()
                  ))
                : (a.libraryScreen.showNextLibrary(r), (a.currentId = n)),
              0 === e.data.nextContentId ||
                !document
                  .querySelector(".h5p-start-screen")
                  .classList.contains("h5p-current-screen") ||
                ((e = a.libraryScreen.wrapper.querySelector(".h5p-slide-in")) &&
                  (e.classList.remove("h5p-next"),
                  a.startScreen.hide(),
                  a.libraryScreen.show()));
          }),
          a.on("restarted", function () {
            a.currentEndScreen &&
              (a.currentEndScreen.hide(), (a.currentEndScreen = null)),
              a.scoring.restart(),
              (a.xAPIDataCollector = []),
              a.startScreen.screenWrapper.classList.remove("h5p-slide-out"),
              a.startScreen.show(),
              (a.currentId = -1),
              a.libraryScreen && a.libraryScreen.remove(),
              (a.libraryScreen = new H5P.BranchingScenario.LibraryScreen(
                a,
                o.startScreen.startScreenTitle,
                a.getLibrary(0)
              )),
              a.libraryScreen.on("toggleFullScreen", function () {
                a.toggleFullScreen();
              }),
              a.$container.append(a.libraryScreen.getElement());
          }),
          a.on("resize", function (e) {
            a.bubblingUpwards ||
              (a.libraryScreen &&
                "object" === r(a.libraryScreen) &&
                0 !== Object.keys(a.libraryScreen).length &&
                a.libraryScreen.resize(e),
              a.changeLayoutToFitWidth(),
              (e = a.$container[0].getBoundingClientRect()).width <= 480
                ? a.$container.addClass("h5p-phone-size")
                : a.$container.removeClass("h5p-phone-size"),
              e.width < 768
                ? a.$container.addClass("h5p-medium-tablet-size")
                : a.$container.removeClass("h5p-medium-tablet-size"));
          }),
          (a.toggleFullScreen = function () {
            a.isFullScreen()
              ? H5P.exitFullScreen && H5P.exitFullScreen()
              : H5P.fullScreen(a.$container, this);
          }),
          (a.isFullScreen = function () {
            return (
              H5P.isFullscreen ||
              (a.$container &&
                a.$container[0].classList.contains("h5p-fullscreen")) ||
              (a.$container &&
                a.$container[0].classList.contains("h5p-semi-fullscreen"))
            );
          }),
          (a.getScore = function () {
            return a.scoring.getScore();
          }),
          (a.getMaxScore = function () {
            return a.scoring.getMaxScore();
          }),
          (a.changeLayoutToFitWidth = function () {
            var e = parseInt(
              window.getComputedStyle(document.getElementsByTagName("body")[0])
                .fontSize,
              10
            );
            43 < this.$container.width() / e
              ? a.$container[0].classList.add("h5p-wide-screen")
              : a.$container[0].classList.add("h5p-mobile-screen");
          }),
          (a.attach = function (e) {
            if (
              (void 0 !== this.isRoot &&
                this.isRoot() &&
                this.setActivityStarted(),
              (a.$container = e).addClass("h5p-branching-scenario").html(""),
              !o.content || 0 === o.content.length)
            ) {
              var t = document.createElement("div");
              return (t.innerHTML = "No content"), void a.$container.append(t);
            }
            var n, r;
            (a.startScreen =
              ((n = o.startScreen),
              (r = !0),
              (e = n.startScreenTitle),
              (t = n.startScreenSubtitle),
              (n = n.startScreenImage),
              (r = new H5P.BranchingScenario.GenericScreen(a, {
                isStartScreen: !0,
                titleText: e,
                subtitleText: t,
                image: n,
                buttonText: o.l10n.startScreenButtonText,
                isCurrentScreen: r,
              })).on("toggleFullScreen", function () {
                a.toggleFullScreen();
              }),
              r)),
              a.$container.append(a.startScreen.getElement()),
              (a.currentId = -1),
              (a.libraryScreen = new H5P.BranchingScenario.LibraryScreen(
                a,
                o.startScreen.startScreenTitle,
                a.getLibrary(0)
              )),
              a.libraryScreen.on("toggleFullScreen", function () {
                a.toggleFullScreen();
              }),
              a.$container.append(a.libraryScreen.getElement()),
              o.endScreens.forEach(function (e) {
                (a.endScreens[e.contentId] = s(e)),
                  a.$container.append(a.endScreens[e.contentId].getElement());
              });
          }),
          (a.getXAPIData = function () {
            if (a.currentEndScreen) {
              var e = a.createXAPIEventTemplate("answered"),
                t = e.getVerifiedStatementValue(["object", "definition"]);
              H5P.jQuery.extend(t, {
                interactionType: "compound",
                type: "http://adlnet.gov/expapi/activities/cmi.interaction",
              }),
                (t.extensions = {
                  "https://h5p.org/x-api/no-question-score": 1,
                });
              var n = a.scoring.getScore(a.currentEndScreen.getScore()),
                t = a.scoring.getMaxScore();
              return (
                e.setScoredResult(n, t, this, !0, n === t),
                {
                  statement: e.data.statement,
                  children: a.xAPIDataCollector,
                }
              );
            }
            console.error("Called getXAPIData before finished.");
          });
      }),
        (H5P.BranchingScenario.prototype = Object.create(
          H5P.EventDispatcher.prototype
        )),
        (H5P.BranchingScenario.prototype.constructor = H5P.BranchingScenario);
    },
    function (e, t, n) {
      "use strict";
      function r(e, t) {
        var n = this;
        H5P.EventDispatcher.call(this);
        var r = this;
        (r.parent = e),
          (r.isShowing = t.isStartScreen),
          (r.screenWrapper = document.createElement("div")),
          r.screenWrapper.classList.add(
            t.isStartScreen ? "h5p-start-screen" : "h5p-end-screen"
          ),
          r.screenWrapper.classList.add(
            t.isCurrentScreen ? "h5p-current-screen" : "h5p-next-screen"
          ),
          t.isCurrentScreen
            ? (r.parent.currentHeight = "45em")
            : this.screenWrapper.classList.add("h5p-branching-hidden");
        var i = document.createElement("div");
        i.classList.add("h5p-branching-scenario-screen-content");
        var o = document.createElement("div");
        o.classList.add("h5p-feedback-content-content"), i.appendChild(o);
        var a = document.createElement("h1");
        (a.className = "h5p-branching-scenario-title-text"),
          (a.innerHTML = t.titleText);
        var s = document.createElement("div");
        (s.className = "h5p-branching-scenario-subtitle-text"),
          (s.innerHTML = t.subtitleText);
        var c = document.createElement("button");
        c.classList.add(
          t.isStartScreen ? "h5p-start-button" : "h5p-end-button"
        ),
          c.classList.add("transition"),
          (c.onclick = function () {
            t.isStartScreen
              ? r.parent.trigger("started")
              : r.parent.trigger("restarted"),
              (r.parent.navigating = !0);
          }),
          (r.navButton = c);
        e = document.createTextNode(t.buttonText);
        c.appendChild(e),
          o.appendChild(a),
          o.appendChild(s),
          i.appendChild(c),
          t.showScore &&
            void 0 !== t.score &&
            ((r.scoreWrapper = this.createResultContainer(
              t.scoreText,
              t.score,
              t.maxScore
            )),
            i.insertBefore(r.scoreWrapper, i.firstChild)),
          H5P.canHasFullScreen &&
            (((c = document.createElement("button")).className =
              "h5p-branching-full-screen"),
            c.setAttribute("aria-label", "κουμπι"),
            c.addEventListener("click", function () {
              n.trigger("toggleFullScreen");
            }),
            r.screenWrapper.appendChild(c)),
          r.screenWrapper.appendChild(
            r.createScreenBackground(t.isStartScreen, t.image)
          ),
          r.screenWrapper.appendChild(i),
          (r.getScore = function () {
            return t.score;
          });
      }
      H5P.BranchingScenario.GenericScreen =
        ((r.prototype.getElement = function () {
          return this.screenWrapper;
        }),
        (r.prototype.setScore = function (e) {
          this.scoreValue &&
            void 0 !== e &&
            (this.scoreValue.textContent = e.toString());
        }),
        (r.prototype.createResultContainer = function (e, t, n) {
          var r = document.createElement("div");
          r.classList.add("h5p-result-wrapper");
          var i = document.createElement("div");
          i.classList.add("h5p-result-container");
          var o = document.createElement("div");
          o.classList.add("h5p-score-text"),
            o.appendChild(document.createTextNode(e));
          var a = document.createElement("div");
          a.classList.add("h5p-score-circle");
          var e = document.createElement("span");
          return (
            (e.className = "h5p-score-value"),
            (this.scoreValue = document.createTextNode(t.toString())),
            e.appendChild(this.scoreValue),
            a.appendChild(e),
            n &&
              0 < n &&
              (((e = document.createElement("span")).className =
                "h5p-score-delimiter"),
              (e.textContent = "/"),
              a.appendChild(e),
              ((e = document.createElement("span")).className =
                "h5p-max-score"),
              (e.textContent = n.toString()),
              a.appendChild(e)),
            i.appendChild(o),
            i.appendChild(a),
            r.appendChild(i),
            r
          );
        }),
        (r.prototype.createScreenBackground = function (e, t) {
          var n = this,
            r = document.createElement("div");
          r.classList.add("h5p-screen-background");
          var i = document.createElement("div");
          i.classList.add("h5p-screen-banner");
          var o = document.createElement("img");
          return (
            o.classList.add("h5p-background-image"),
            o.setAttribute("alt", "εικονα"),
            t && t.path
              ? (o.src = H5P.getPath(t.path, this.parent.contentId))
              : (o.src = e
                  ? this.parent.getLibraryFilePath(
                      "assets/start-screen-default.jpg"
                    )
                  : this.parent.getLibraryFilePath(
                      "assets/end-screen-default.jpg"
                    )),
            o.addEventListener("load", function () {
              n.parent.trigger("resize");
            }),
            r.appendChild(i),
            r.appendChild(o),
            r
          );
        }),
        (r.prototype.show = function () {
          var t = this;
          (t.isShowing = !0),
            t.screenWrapper.classList.add("h5p-slide-in"),
            t.screenWrapper.classList.remove("h5p-branching-hidden"),
            t.screenWrapper.addEventListener("animationend", function (e) {
              "slide-in" === e.animationName &&
                (t.screenWrapper.classList.remove("h5p-next-screen"),
                t.screenWrapper.classList.remove("h5p-slide-in"),
                t.screenWrapper.classList.add("h5p-current-screen"),
                t.parent.trigger("resize"),
                t.navButton.focus());
            });
        }),
        (r.prototype.hide = function () {
          var t = this;
          (t.isShowing = !1),
            t.screenWrapper.classList.add("h5p-slide-out"),
            t.screenWrapper.addEventListener("animationend", function (e) {
              "slide-out" === e.animationName &&
                (t.screenWrapper.classList.add("h5p-branching-hidden"),
                t.screenWrapper.classList.remove("h5p-current-screen"),
                t.screenWrapper.classList.add("h5p-next-screen"),
                t.screenWrapper.classList.remove("h5p-slide-out"));
            });
        }),
        r);
    },
    function (e, t, n) {
      "use strict";
      var u = n(4);
      H5P.BranchingScenario.LibraryScreen = (function () {
        function l(r, e, t) {
          var i = this;
          H5P.EventDispatcher.call(this),
            (this.parent = r),
            this.currentLibraryElement,
            this.currentLibraryInstance,
            (this.currentLibraryId = 0),
            (this.nextLibraryId = t.nextContentId),
            (this.libraryFeedback = t.feedback),
            (this.nextLibraries = {}),
            (this.libraryInstances = {}),
            this.libraryTitle,
            (this.branchingQuestions = []),
            this.navButton,
            this.header,
            (this.shouldAutoplay = []),
            (this.isShowing = !1);
          var n =
            t.type && t.type.metadata && t.type.metadata.title
              ? t.type.metadata.title
              : "";
          (this.wrapper = this.createWrapper(
            e,
            n || "Untitled Content",
            t.showContentTitle && n
          )),
            this.wrapper.classList.add("h5p-next-screen"),
            this.wrapper.classList.add("h5p-branching-hidden");
          n = this.createLibraryElement(t, !1);
          (this.currentLibraryWrapper = n),
            (this.currentLibraryElement = n.getElementsByClassName(
              "h5p-branching-scenario-content"
            )[0]),
            (this.currentLibraryInstance = this.libraryInstances[0]),
            this.createNextLibraries(t),
            this.wrapper.appendChild(n),
            (i.triggerAutoplay = function (e) {
              e =
                void 0 !== e.data && void 0 !== e.data.nextContentId
                  ? e.data.nextContentId
                  : 0;
              if (!(e < 0 || e !== i.currentLibraryId)) {
                e = r.getLibrary(e);
                if (
                  "H5P.BranchingQuestion" !== e.type.library.split(" ")[0] &&
                  i.shouldAutoplay[i.currentLibraryId]
                )
                  if (void 0 !== i.currentLibraryInstance.play)
                    i.currentLibraryInstance.play();
                  else if (i.currentLibraryInstance.elementInstances)
                    for (
                      var t = 0;
                      t < i.currentLibraryInstance.elementInstances[0].length;
                      t++
                    ) {
                      var n = i.currentLibraryInstance.elementInstances[0][t];
                      void 0 !== n.play && n.play();
                    }
              }
            }),
            r.on("started", i.triggerAutoplay),
            r.on("navigated", i.triggerAutoplay);
        }
        (l.prototype.createWrapper = function (e, t, n) {
          var r = this,
            i = document.createElement("div"),
            o = document.createElement("div");
          o.classList.add("h5p-title-wrapper"),
            H5P.canHasFullScreen &&
              (((s = document.createElement("button")).className =
                "h5p-branching-full-screen"),
              s.setAttribute("aria-label", "κουμπι"),
              s.addEventListener("click", function () {
                r.trigger("toggleFullScreen");
              }),
              o.appendChild(s));
          var a = document.createElement("div");
          a.className = "h5p-branching-header";
          var s = document.createElement("h1");
          (s.innerHTML = e), a.appendChild(s);
          s = document.createElement("h2");
          s.classList.add("library-subtitle"),
            (s.innerHTML = n ? t : "&nbsp;"),
            s.setAttribute("tabindex", "-1"),
            s.setAttribute("aria-label", t),
            a.appendChild(s),
            o.appendChild(a),
            (this.libraryTitle = s);
          a = document.createElement("div");
          a.classList.add("h5p-nav-button-wrapper");
          s = document.createElement("button");
          s.classList.add("transition");
          var c = this,
            l = this.parent;
          (s.onclick = function () {
            var e, t, n, r;
            !1 === l.navigating &&
              ((t = c.libraryFeedback.title && c.libraryFeedback.title.trim()),
              (n =
                c.libraryFeedback.subtitle &&
                c.libraryFeedback.subtitle.trim()),
              (e = !!(t || n || c.libraryFeedback.image)) &&
              -1 !== c.nextLibraryId
                ? (void 0 === c.overlay &&
                    ((c.overlay = document.createElement("div")),
                    (c.overlay.className = "h5p-branching-scenario-overlay"),
                    c.wrapper.appendChild(c.overlay),
                    c.hideBackgroundFromReadspeaker()),
                  (t = document.createElement("div")).classList.add(
                    "h5p-branching-question-wrapper"
                  ),
                  t.classList.add("h5p-branching-scenario-feedback-dialog"),
                  (n = document.createElement("div")).classList.add(
                    "h5p-branching-question-container"
                  ),
                  t.appendChild(n),
                  (r = c.createFeedbackScreen(
                    c.libraryFeedback,
                    c.nextLibraryId
                  )),
                  n.appendChild(r),
                  n.classList.add("h5p-start-outside"),
                  n.classList.add("h5p-fly-in"),
                  (c.currentLibraryWrapper.style.zIndex = 0),
                  c.wrapper.appendChild(t),
                  r.focus())
                : ((r = { nextContentId: c.nextLibraryId }),
                  (!e && void 0 === c.libraryFeedback.endScreenScore) ||
                    (r.feedback = c.libraryFeedback),
                  l.trigger("navigated", r)),
              (l.navigating = !0));
          }),
            s.classList.add("h5p-nav-button"),
            (this.navButton = s).appendChild(
              document.createTextNode(l.params.l10n.proceedButtonText)
            ),
            a.appendChild(s);
          s = document.createElement("div");
          s.classList.add("h5p-screen-header"),
            (this.header = s).appendChild(o),
            s.appendChild(a),
            i.appendChild(s);
          return (
            (0, u.addResizeListener)(i, function () {
              500 < c.wrapper.clientHeight &&
                (c.wrapper.style.minHeight = c.wrapper.clientHeight + "px");
            }),
            i.addEventListener("animationend", function (e) {
              var t;
              "slide-in" === e.animationName &&
                c.currentLibraryElement &&
                (l.trigger("resize"),
                (t = function () {
                  if (l.isFullScreen())
                    return (
                      (c.currentLibraryWrapper.style.height = ""),
                      (c.wrapper.style.minHeight = ""),
                      void l.trigger("resize")
                    );
                  (c.currentLibraryWrapper.style.height =
                    c.currentLibraryElement.clientHeight + 40 + "px"),
                    (c.wrapper.style.minHeight =
                      c.currentLibraryElement.clientHeight + 40 + 70.17 + "px"),
                    l.trigger("resize");
                }),
                setTimeout(function () {
                  (0, u.addResizeListener)(c.currentLibraryElement, t);
                }, 100));
            }),
            i
          );
        }),
          (l.prototype.createFeedbackScreen = function (e, t) {
            var n = this,
              r = "h5p-branching-feedback-title-" + l.idCounter++,
              i = document.createElement("div");
            i.classList.add("h5p-branching-question"),
              i.classList.add(
                void 0 !== e.image
                  ? "h5p-feedback-has-image"
                  : "h5p-feedback-default"
              ),
              i.setAttribute("role", "dialog"),
              i.setAttribute("tabindex", "-1"),
              i.setAttribute("aria-labelledby", r),
              void 0 !== e.image &&
                void 0 !== e.image.path &&
                ((s = document.createElement("div")).classList.add(
                  "h5p-branching-question"
                ),
                s.classList.add("h5p-feedback-image"),
                ((a = document.createElement("img")).src = H5P.getPath(
                  e.image.path,
                  n.parent.contentId
                )),
                s.appendChild(a),
                i.appendChild(s));
            var o = document.createElement("div");
            o.classList.add("h5p-branching-question"),
              o.classList.add("h5p-feedback-content");
            var a = document.createElement("div");
            a.classList.add("h5p-feedback-content-content"), o.appendChild(a);
            var s = document.createElement("h1");
            (s.id = r),
              (s.innerHTML = e.title || ""),
              a.appendChild(s),
              e.subtitle &&
                (((c = document.createElement("div")).innerHTML =
                  e.subtitle || ""),
                a.appendChild(c));
            a = document.createElement("button");
            a.onclick = function () {
              n.parent.trigger("navigated", { nextContentId: t });
            };
            var c = document.createTextNode(
              this.parent.params.l10n.proceedButtonText
            );
            a.appendChild(c), o.appendChild(a);
            return (
              o.addEventListener("keydown", function (e) {
                ("Tab" !== e.key && 9 !== e.keyCode) || e.preventDefault();
              }),
              i.appendChild(o),
              i
            );
          }),
          (l.prototype.createLibraryElement = function (e, t) {
            var n = document.createElement("div");
            n.classList.add("h5p-library-wrapper");
            var r = document.createElement("div");
            return (
              r.classList.add("h5p-branching-scenario-content"),
              this.appendRunnable(r, e.type, e.contentId),
              n.appendChild(r),
              t &&
                (n.classList.add("h5p-next"),
                r.classList.add("h5p-branching-hidden")),
              e.type &&
                "H5P.BranchingQuestion" === e.type.library.split(" ")[0] &&
                r.classList.add("h5p-branching-hidden"),
              n
            );
          }),
          (l.prototype.appendRunnable = function (e, t, n) {
            var r = this,
              i = this.parent,
              o = t.library.split(" ")[0];
            "H5P.Video" === o && (t.params.visuals.fit = !1),
              "H5P.BranchingQuestion" === o &&
                (t.params.proceedButtonText = i.params.l10n.proceedButtonText);
            o = H5P.jQuery.extend(!0, {}, t);
            a(o.params) && (this.shouldAutoplay[n] = !0);
            e = H5P.newRunnable(o, this.parent.contentId, H5P.jQuery(e), !0, {
              parent: this.parent,
            });
            e.setActivityStarted(),
              0 === t.library.indexOf("H5P.Video ") &&
                this.nextIsBranching(n) &&
                e.on("stateChange", function (e) {
                  e.data === H5P.Video.ENDED &&
                    r.navButton &&
                    r.navButton.click();
                }),
              e.on("navigated", function (e) {
                i.trigger("navigated", e.data);
              }),
              (this.libraryInstances[n] = e),
              this.bubbleUp(e, "resize", i),
              this.disableFullscreen(e);
          }),
          (l.prototype.stopPlayback = function (e) {
            var t = this.libraryInstances[e];
            if (t)
              try {
                if (
                  void 0 !== t.pause &&
                  (t.pause instanceof Function || "function" == typeof t.pause)
                )
                  t.pause();
                else if (
                  void 0 !== t.video &&
                  void 0 !== t.video.pause &&
                  (t.video.pause instanceof Function ||
                    "function" == typeof t.video.pause)
                )
                  t.video.pause();
                else if (
                  void 0 !== t.stop &&
                  (t.stop instanceof Function || "function" == typeof t.stop)
                )
                  t.stop();
                else if (
                  void 0 !== t.pauseMedia &&
                  (t.pauseMedia instanceof Function ||
                    "function" == typeof t.pauseMedia) &&
                  t.elementInstances[t.currentSlideIndex]
                )
                  for (
                    var n = 0;
                    n < t.elementInstances[t.currentSlideIndex].length;
                    n++
                  )
                    t.pauseMedia(t.elementInstances[t.currentSlideIndex][n]);
              } catch (e) {
                H5P.error(e);
              }
          }),
          (l.prototype.getXAPIData = function (e) {
            if (
              this.libraryInstances[e] &&
              this.libraryInstances[e].getXAPIData
            )
              return this.libraryInstances[e].getXAPIData();
          }),
          (l.prototype.nextIsBranching = function (e) {
            e =
              void 0 !== e
                ? this.parent.params.content[e].nextContentId
                : void 0;
            return (
              void 0 !== e &&
              0 < e &&
              l.isBranching(this.parent.params.content[e])
            );
          });
        var a = function e(t) {
          if (t.autoplay) return !(t.autoplay = !1);
          if (t.playback && t.playback.autoplay)
            return !(t.playback.autoplay = !1);
          if (
            t.media &&
            t.media.params &&
            t.media.params.playback &&
            t.media.params.playback.autoplay
          )
            return !(t.media.params.playback.autoplay = !1);
          if (t.media && t.media.params && t.media.params.autoplay)
            return !(t.media.params.autoplay = !1);
          if (t.override && t.override.autoplay)
            return !(t.override.autoplay = !1);
          if (t.presentation && t.presentation.slides[0].elements)
            for (var n = 0; n < t.presentation.slides[0].elements.length; n++) {
              var r = t.presentation.slides[0].elements[n];
              if (
                !r.displayAsButton &&
                r.action &&
                r.action.params &&
                e(r.action.params)
              )
                return !0;
            }
          return !1;
        };
        return (
          (l.prototype.createNextLibraries = function (e) {
            this.removeNextLibraries(),
              (this.nextLibraries = {}),
              this.loadLibrary(e);
          }),
          (l.prototype.createNextLibrary = function (e) {
            this.removeNextLibraries(),
              (this.nextLibraries = {}),
              this.loadLibrary(e, e.contentId);
          }),
          (l.prototype.loadLibrary = function (e) {
            var n = this,
              t =
                1 < arguments.length && void 0 !== arguments[1]
                  ? arguments[1]
                  : null,
              r = null !== t ? t : e.nextContentId;
            "H5P.BranchingQuestion" !== e.type.library.split(" ")[0]
              ? !1 !== (t = this.parent.getLibrary(r)) &&
                t.type &&
                "H5P.BranchingQuestion" !== t.type.library.split(" ")[0] &&
                ((this.nextLibraries[r] = this.createLibraryElement(t, !0)),
                this.wrapper.appendChild(this.nextLibraries[r]))
              : (e.type.params.branchingQuestion.alternatives || [])
                  .map(function (e) {
                    return e.nextContentId;
                  })
                  .forEach(function (e) {
                    var t = n.parent.getLibrary(e);
                    !1 !== t &&
                      t.type &&
                      "H5P.BranchingQuestion" !==
                        t.type.library.split(" ")[0] &&
                      ((n.nextLibraries[e] = n.createLibraryElement(t, !0)),
                      n.wrapper.appendChild(n.nextLibraries[e]));
                  });
          }),
          (l.prototype.removeNextLibraries = function () {
            for (
              var e = this.wrapper.getElementsByClassName("h5p-next"), t = 0;
              t < e.length;
              t++
            )
              e[t].parentNode.removeChild(e[t]);
          }),
          (l.prototype.disableFullscreen = function (e) {
            switch (e.libraryInfo.machineName) {
              case "H5P.CoursePresentation":
                e.$fullScreenButton && e.$fullScreenButton.remove();
                break;
              case "H5P.InteractiveVideo":
                e.on("controls", function () {
                  e.controls.$fullscreen && e.controls.$fullscreen.remove();
                });
            }
          }),
          (l.prototype.bubbleUp = function (e, t, n) {
            e.on(t, function (e) {
              (n.bubblingUpwards = !0),
                n.trigger(t, e),
                (n.bubblingUpwards = !1);
            });
          }),
          (l.prototype.show = function () {
            var t = this;
            (t.isShowing = !0),
              t.wrapper.classList.add("h5p-slide-in"),
              t.wrapper.classList.remove("h5p-branching-hidden"),
              t.wrapper.addEventListener("animationend", function (e) {
                "h5p-next-screen h5p-slide-in" === e.target.className &&
                  (t.wrapper.classList.remove("h5p-next-screen"),
                  t.wrapper.classList.remove("h5p-slide-in"),
                  t.wrapper.classList.add("h5p-current-screen"),
                  (t.parent.navigating = !1),
                  (t.wrapper.style.minHeight = t.parent.currentHeight),
                  t.libraryTitle.focus());
              });
          }),
          (l.prototype.hide = function (e) {
            var t = this;
            t.isShowing = !1;
            for (var n = 0; n < this.nextLibraries.length; n++)
              (this.nextLibraries[n].style.display = "none"),
                null !== this.nextLibraries[n].parentNode &&
                  this.nextLibraries[n].parentNode.removeChild(
                    this.nextLibraries[n]
                  );
            function r() {
              t.wrapper.classList.remove("h5p-current-screen"),
                t.wrapper.classList.add("h5p-next-screen"),
                t.wrapper.classList.remove("h5p-slide-out"),
                setTimeout(function () {
                  null !== t.wrapper.parentNode &&
                    (t.wrapper.parentNode.removeChild(t.wrapper),
                    t.remove(),
                    (t.parent.libraryScreen = null),
                    t.parent.trigger("resize"));
                }, 100);
            }
            this.overlay &&
              (null !== this.overlay.parentNode &&
                this.overlay.parentNode.removeChild(this.overlay),
              (this.overlay = void 0),
              this.branchingQuestions.forEach(function (e) {
                null !== e.parentNode && e.parentNode.removeChild(e);
              })),
              t.wrapper.classList.add("h5p-slide-out"),
              e
                ? setTimeout(function () {
                    r();
                  }, 800)
                : t.wrapper.addEventListener("animationend", r);
          }),
          (l.prototype.hideBranchingQuestion = function (e) {
            (this.nextLibraryId = e.nextContentId),
              (this.libraryFeedback = e.feedback),
              null !== this.overlay.parentNode &&
                this.overlay.parentNode.removeChild(this.overlay),
              (this.overlay = void 0),
              this.branchingQuestions.forEach(function (e) {
                null !== e.parentNode && e.parentNode.removeChild(e);
              }),
              this.createNextLibraries(e),
              (this.parent.navigating = !1),
              this.navButton.focus(),
              this.showBackgroundToReadspeaker();
          }),
          (l.prototype.hideFeedbackDialogs = function () {
            this.overlay &&
              (null !== this.overlay.parentNode &&
                this.overlay.parentNode.removeChild(this.overlay),
              (this.overlay = void 0),
              this.showBackgroundToReadspeaker());
            var e = document.querySelector(".h5p-current-screen");
            !e ||
              ((e = e.querySelector(".h5p-branching-question-wrapper")) &&
                e.parentNode.removeChild(e));
          }),
          (l.prototype.showNextLibrary = function (e) {
            var t, n, r, i, o;
            (this.nextLibraryId = e.nextContentId),
              (this.libraryFeedback = e.feedback),
              "H5P.BranchingQuestion" !== e.type.library.split(" ")[0]
                ? ((i =
                    e.type && e.type.metadata && e.type.metadata.title
                      ? e.type.metadata.title
                      : ""),
                  this.libraryTitle.setAttribute(
                    "aria-label",
                    i || "Untitled Content"
                  ),
                  (this.libraryTitle.innerHTML =
                    e.showContentTitle && i ? i : "&nbsp;"),
                  this.currentLibraryWrapper.classList.add("h5p-slide-out"),
                  this.overlay &&
                    (null !== this.overlay.parentNode &&
                      this.overlay.parentNode.removeChild(this.overlay),
                    (this.overlay = void 0),
                    this.branchingQuestions.forEach(function (e) {
                      null !== e.parentNode && e.parentNode.removeChild(e);
                    }),
                    this.showBackgroundToReadspeaker()),
                  this.nextLibraries[e.contentId] || this.createNextLibrary(e),
                  (t = this.nextLibraries[e.contentId]).offsetParent ||
                    this.wrapper.appendChild(t),
                  t.classList.add("h5p-slide-in"),
                  (i = t.getElementsByClassName(
                    "h5p-branching-scenario-content"
                  )[0]).classList.remove("h5p-branching-hidden"),
                  (this.currentLibraryId = e.contentId),
                  (this.currentLibraryInstance =
                    this.libraryInstances[e.contentId]),
                  this.currentLibraryInstance.resize &&
                    this.currentLibraryInstance.resize(),
                  (n = this).currentLibraryWrapper.addEventListener(
                    "animationend",
                    function () {
                      null !== n.currentLibraryWrapper.parentNode &&
                        n.currentLibraryWrapper.parentNode.removeChild(
                          n.currentLibraryWrapper
                        ),
                        (n.currentLibraryWrapper = t),
                        n.currentLibraryWrapper.classList.remove("h5p-next"),
                        n.currentLibraryWrapper.classList.remove(
                          "h5p-slide-in"
                        ),
                        (n.currentLibraryElement = t.getElementsByClassName(
                          "h5p-branching-scenario-content"
                        )[0]),
                        n.createNextLibraries(e),
                        (n.parent.navigating = !1),
                        n.libraryTitle.focus();
                    }
                  ),
                  this.resize(new H5P.Event("resize", { element: i })))
                : (this.branchingQuestions.forEach(function (e) {
                    null !== e.parentNode && e.parentNode.removeChild(e);
                  }),
                  (i = document.querySelector(".h5p-current-screen")),
                  void 0 === this.overlay &&
                    ((this.overlay = document.createElement("div")),
                    (this.overlay.className = "h5p-branching-scenario-overlay"),
                    i.appendChild(this.overlay),
                    this.hideBackgroundFromReadspeaker()),
                  ((r = document.createElement("div")).className =
                    "h5p-branching-question-wrapper"),
                  this.appendRunnable(r, e.type, e.contentId),
                  i.appendChild(r),
                  this.branchingQuestions.push(r),
                  (i = "h5p-branching-question-title-" + l.idCounter++),
                  (o = r.querySelector(
                    ".h5p-branching-question-container"
                  )).setAttribute("role", "dialog"),
                  o.setAttribute("tabindex", "-1"),
                  o.setAttribute("aria-labelledby", i),
                  o.classList.add("h5p-start-outside"),
                  o.classList.add("h5p-fly-in"),
                  (r.querySelector(".h5p-branching-question-title").id = i),
                  (this.currentLibraryWrapper.style.zIndex = 0),
                  parseInt(this.currentLibraryWrapper.style.height) <
                    o.offsetHeight &&
                    (this.currentLibraryWrapper.style.height =
                      o.offsetHeight + "px"),
                  this.createNextLibraries(e),
                  (this.parent.navigating = !1),
                  r.addEventListener("animationend", function () {
                    void 0 !==
                      r.querySelectorAll(
                        ".h5p-branching-question-alternative"
                      )[0] && o.focus();
                  }));
          }),
          (l.prototype.hideBackgroundFromReadspeaker = function () {
            this.header.setAttribute("aria-hidden", "true"),
              this.currentLibraryWrapper.setAttribute("aria-hidden", "true");
          }),
          (l.prototype.showBackgroundToReadspeaker = function () {
            this.header.setAttribute("aria-hidden", "false"),
              this.currentLibraryWrapper.setAttribute("aria-hidden", "false");
          }),
          (l.prototype.getElement = function () {
            return this.wrapper;
          }),
          (l.prototype.remove = function () {
            this.parent.off("started", this.triggerAutoplay),
              this.parent.off("navigated", this.triggerAutoplay),
              null !== this.wrapper.parentNode &&
                this.wrapper.parentNode.removeChild(this.wrapper);
          }),
          (l.prototype.resize = function (e) {
            var t = this.currentLibraryInstance,
              n =
                e && e.data && e.data.element
                  ? e.data.element
                  : this.currentLibraryElement,
              r = t && "H5P.Image" === t.libraryInfo.machineName,
              i = t && "H5P.CoursePresentation" === t.libraryInfo.machineName,
              o = t && "H5P.ImageHotspots" === t.libraryInfo.machineName,
              a = t && "H5P.Video" === t.libraryInfo.machineName,
              s = (t && t.width && t.height && (r || i)) || o || a;
            s &&
              ((n.style.width = ""),
              (n.style.height = ""),
              o && (n.style.maxWidth = "")),
              this.parent.isFullScreen()
                ? (n.classList.add("h5p-fullscreen"),
                  s &&
                    ((r = a ? n.firstChild.getBoundingClientRect() : null),
                    (a =
                      (s = (o ? t.options.image : a ? r : t).height) /
                      (i = o
                        ? t.options.image.width
                        : i
                        ? t.ratio * s
                        : (a ? r : t).width)),
                    (r = n.getBoundingClientRect()).height / r.width < a
                      ? o
                        ? (n.style.maxWidth = r.height * (i / s) + "px")
                        : (n.style.width = r.height * (i / s) + "px")
                      : (n.style.height = r.width * a + "px")))
                : n.classList.remove("h5p-fullscreen"),
              t && t.trigger("resize", e);
          }),
          (l.isBranching = function (e) {
            return 0 === e.type.library.indexOf("H5P.BranchingQuestion ");
          }),
          (l.idCounter = 0),
          l
        );
      })();
    },
    function (e, w, t) {
      "use strict";
      !function (e) {
        Object.defineProperty(w, "__esModule", { value: !0 });
        function o() {
          return (
            "object" ===
            ("undefined" == typeof window ? "undefined" : r(window))
          );
        }
        function a(t) {
          var n = this;
          h(this),
            this.__resizeRAF__ && f(this.__resizeRAF__),
            (this.__resizeRAF__ = i(function () {
              g(n) &&
                ((n.__resizeLast__.width = n.offsetWidth),
                (n.__resizeLast__.height = n.offsetHeight),
                n.__resizeListeners__.forEach(function (e) {
                  e.call(n, t);
                }));
            }));
        }
        var t,
          n,
          r =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (e) {
                  return typeof e;
                }
              : function (e) {
                  return e &&
                    "function" == typeof Symbol &&
                    e.constructor === Symbol
                    ? "symbol"
                    : typeof e;
                },
          e = o() ? window : e,
          s = !!o() && document.attachEvent,
          c = !1,
          l = null,
          u = null,
          d = null,
          p = null,
          h = function (e) {
            var t = e.__resizeTriggers__,
              n = t.firstElementChild,
              e = t.lastElementChild,
              t = n.firstElementChild;
            (e.scrollLeft = e.scrollWidth),
              (e.scrollTop = e.scrollHeight),
              (t.style.width = n.offsetWidth + 1 + "px"),
              (t.style.height = n.offsetHeight + 1 + "px"),
              (n.scrollLeft = n.scrollWidth),
              (n.scrollTop = n.scrollHeight);
          },
          i =
            ((t =
              e.requestAnimationFrame ||
              e.mozRequestAnimationFrame ||
              e.webkitRequestAnimationFrame ||
              function (e) {
                return setTimeout(e, 20);
              }),
            function (e) {
              return t(e);
            }),
          f =
            ((n =
              e.cancelAnimationFrame ||
              e.mozCancelAnimationFrame ||
              e.webkitCancelAnimationFrame ||
              e.clearTimeout),
            function (e) {
              return n(e);
            }),
          g = function (e) {
            return (
              e.offsetWidth != e.__resizeLast__.width ||
              e.offsetHeight != e.__resizeLast__.height
            );
          };
        if (o() && !s) {
          var m = !1,
            v = "",
            p = "animationstart",
            y = "Webkit Moz O ms".split(" "),
            b =
              "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(
                " "
              ),
            x = "",
            P = document.createElement("fakeelement");
          if (!1 === (m = void 0 !== P.style.animationName ? !0 : m))
            for (var H = 0; H < y.length; H++)
              if (void 0 !== P.style[y[H] + "AnimationName"]) {
                (x = y[H]),
                  (v = "-" + x.toLowerCase() + "-"),
                  (p = b[H]),
                  (m = !0);
                break;
              }
          (u =
            "@" +
            v +
            "keyframes " +
            (l = "resizeanim") +
            " { from { opacity: 0; } to { opacity: 0; } } "),
            (d = v + "animation: 1ms " + l + "; ");
        }
        (w.addResizeListener = function (t, e) {
          var n, r, i;
          s
            ? t.attachEvent("onresize", e)
            : o() &&
              (t.__resizeTriggers__ ||
                ("static" == getComputedStyle(t).position &&
                  (t.style.position = "relative"),
                c ||
                  ((n =
                    (u || "") +
                    ".resize-triggers { " +
                    (d || "") +
                    'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }'),
                  (r =
                    document.head || document.getElementsByTagName("head")[0]),
                  ((i = document.createElement("style")).type = "text/css"),
                  i.styleSheet
                    ? (i.styleSheet.cssText = n)
                    : i.appendChild(document.createTextNode(n)),
                  r.appendChild(i),
                  (c = !0)),
                (t.__resizeLast__ = {}),
                (t.__resizeListeners__ = []),
                ((t.__resizeTriggers__ =
                  document.createElement("div")).className = "resize-triggers"),
                (t.__resizeTriggers__.innerHTML =
                  '<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>'),
                t.appendChild(t.__resizeTriggers__),
                h(t),
                t.addEventListener("scroll", a, !0),
                p &&
                  t.__resizeTriggers__.addEventListener(p, function (e) {
                    e.animationName == l && h(t);
                  })),
              t.__resizeListeners__.push(e));
        }),
          (w.removeResizeListener = function (e, t) {
            s
              ? e.detachEvent("onresize", t)
              : o() &&
                (e.__resizeListeners__.splice(
                  e.__resizeListeners__.indexOf(t),
                  1
                ),
                e.__resizeListeners__.length ||
                  (e.removeEventListener("scroll", a, !0),
                  (e.__resizeTriggers__ = !e.removeChild(
                    e.__resizeTriggers__
                  ))));
          });
      }.call(w, t(5));
    },
    function (e, t) {
      var n = (function () {
        return this;
      })();
      try {
        n = n || Function("return this")() || (0, eval)("this");
      } catch (e) {
        "object" == typeof window && (n = window);
      }
      e.exports = n;
    },
    function (e, t, n) {
      "use strict";
      H5P.BranchingScenario.Scoring = (function () {
        var a = "static-end-score",
          s = "dynamic-score";
        return function (c) {
          function i(t, e) {
            if (-1 === t.nextContentId) return [e];
            if (
              e.some(function (e) {
                return "content" === e.type && e.index === t.nextContentId;
              })
            )
              return [];
            var n = c.content[t.nextContentId],
              e = e.concat({
                type: "content",
                index: t.nextContentId,
                alternativeParent: null,
              });
            return r(n, e);
          }
          function e() {
            var e = c.endScreens[0].endScreenScore,
              n = void 0 !== e ? e : 0;
            return c.content
              .reduce(function (e, t) {
                var n = [t];
                return (
                  o.isBranchingQuestion(t) &&
                    (n = t.type.params.branchingQuestion.alternatives),
                  e.concat(n)
                );
              }, [])
              .filter(function (e) {
                return -1 === e.nextContentId;
              })
              .reduce(function (e, t) {
                t = d(t) ? t.feedback.endScreenScore : n;
                return t <= e ? e : t;
              }, 0);
          }
          function t() {
            var e = c.content[0];
            return r(e, [
              { type: "content", index: 0, alternativeParent: null },
            ])
              .map(function (e) {
                return e
                  .map(function (e) {
                    var t = null;
                    return (
                      (t = (
                        "alternative" === e.type
                          ? c.content[e.alternativeParent].type.params
                              .branchingQuestion.alternatives
                          : c.content
                      )[e.index]),
                      d(t) && t.nextContentId && -1 < t.nextContentId
                        ? t.feedback.endScreenScore
                        : 0
                    );
                  })
                  .reduce(function (e, t) {
                    return e + t;
                  }, 0);
              })
              .reduce(function (e, t) {
                return t <= e ? e : t;
              }, 0);
          }
          var o = this,
            l = [],
            u = 0,
            n = null,
            d = function (e) {
              return e && e.feedback && void 0 !== e.feedback.endScreenScore;
            },
            r = function (e, n) {
              if (!o.isBranchingQuestion(e)) return i(e, n);
              var r = [];
              return (
                e.type.params.branchingQuestion.alternatives.forEach(function (
                  e,
                  t
                ) {
                  (t = n.concat({
                    type: "alternative",
                    index: t,
                    alternativeParent: n[n.length - 1].index,
                  })),
                    (t = i(e, t));
                  r = r.concat(t);
                }),
                r
              );
            };
          (this.getScore = function (e) {
            return c.scoringOption === s
              ? l.reduce(function (e, t) {
                  return e + t.score;
                }, 0)
              : c.scoringOption === a
              ? e
              : 0;
          }),
            (this.getMaxScore = function () {
              return (n =
                n ||
                (c.scoringOption === a
                  ? e()
                  : c.scoringOption === s
                  ? t()
                  : 0));
            }),
            (this.restart = function () {
              (l = []), (u = 0);
            }),
            (this.addLibraryScore = function (n, e, t) {
              u += 1;
              var r = c.content[n],
                i = 0;
              n !== e || (0 === n && this.isBranchingQuestion(r))
                ? (i = (function (e, t) {
                    if (!(0 <= t)) return 0;
                    if (
                      !(
                        e &&
                        e.type &&
                        e.type.params &&
                        e.type.params.branchingQuestion &&
                        e.type.params.branchingQuestion.alternatives &&
                        e.type.params.branchingQuestion.alternatives[t]
                      )
                    )
                      return 0;
                    t = e.type.params.branchingQuestion.alternatives[t];
                    return !d(t) || !t.nextContentId || t.nextContentId < 0
                      ? 0
                      : t.feedback.endScreenScore;
                  })(r, t))
                : d(r) &&
                  r.nextContentId &&
                  -1 < r.nextContentId &&
                  (i = r.feedback.endScreenScore);
              var o = !1,
                a = null,
                s = -1;
              l.forEach(function (e, t) {
                e.id === n &&
                  ((e.score = i),
                  (s = e.visitedIndex),
                  l.length > t + 1 &&
                  c.content[e.id].nextContentId === l[t + 1].id
                    ? (o = !0)
                    : (a = t));
              }),
                o
                  ? ((l = l.filter(function (e) {
                      return e.visitedIndex <= s;
                    })),
                    (u = s))
                  : (null !== a && l.splice(a, 1),
                    l.push({ visitedIndex: u, id: n, score: i }));
            }),
            (this.isBranchingQuestion = function (e) {
              var t = e;
              return (
                "H5P.BranchingQuestion" ===
                (t = e && e.type && e.type.library ? e.type.library : t).split(
                  " "
                )[0]
              );
            }),
            (this.isDynamicScoring = function () {
              return c.scoringOption === s;
            }),
            (this.shouldShowScore = function () {
              return c.scoringOption === a || this.isDynamicScoring();
            });
        };
      })();
    },
  ]);
const realH5PGetPath = H5P.getPath;
H5P.getPath = function (e, t) {
  return e.startsWith("data:") ? e : realH5PGetPath(e, t);
};
var furtherH5PInlineResources = {
  "H5P.BranchingQuestion-1.0/branching-question-icon.svg":
    "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIwLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyMTMgMTY1LjMiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDIxMyAxNjUuMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNGRkZGRkY7fQoJLnN0MXtmaWxsOiM0QTRCNUQ7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik05OC40LDE2NS4zYy0yNS41LDAtNDkuNy04LjEtNjguMS0yMi45QzEwLjgsMTI2LjgsMCwxMDUuNSwwLDgyLjdjMC0yMi45LDEwLjgtNDQuMSwzMC4zLTU5LjgKCQlDNDguNyw4LjEsNzIuOSwwLDk4LjQsMGMyNS41LDAsNDkuNyw4LjEsNjguMSwyMi45YzE5LjUsMTUuNywzMC4zLDM2LjksMzAuMyw1OS44YzAsMTMuNy0zLjksMjYuOS0xMS40LDM4LjgKCQljMiwyLjQsNC42LDQuNyw2LjgsNi40bDIwLjcsMTljMCwwLTU5LjQsMjkuNS04MS4xLDEzLjZDMTIxLjIsMTYzLjcsMTEwLDE2NS4zLDk4LjQsMTY1LjN6Ii8+CjwvZz4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYzLjcsMTE5LjdjOS4yLTEwLjUsMTQuNi0yMy4yLDE0LjYtMzdjMC0zNS40LTM1LjgtNjQuMi03OS45LTY0LjJTMTguNSw0Ny4yLDE4LjUsODIuN3MzNS44LDY0LjIsNzkuOSw2NC4yCgkJYzExLjcsMCwyMi44LTIsMzIuNy01LjZjMzUuOCw5LjMsNTAuNCwxLjYsNTAuNCwxLjZTMTY2LjcsMTMyLjQsMTYzLjcsMTE5Ljd6IE0xMDMuNiwxMTguMmMwLDEuNC0xLjIsMi42LTIuNiwyLjZoLTUuMgoJCWMtMS40LDAtMi42LTEuMi0yLjYtMi42Vjk3LjVoMTAuM0wxMDMuNiwxMTguMkwxMDMuNiwxMTguMnogTTEyOS41LDkyLjNjMCwxLjQtMS4yLDIuNi0yLjYsMi42SDcyLjVjLTEsMC0yLTAuNC0yLjctMS4xTDY0LjEsODgKCQljLTAuNS0wLjUtMC41LTEuMywwLTEuOWw1LjctNS43YzAuNy0wLjcsMS43LTEuMSwyLjctMS4xaDIwLjd2LTcuOGgxMC4zdjcuOGgyMy4zYzEuNCwwLDIuNiwxLjIsMi42LDIuNlY5Mi4zeiBNMTMyLjgsNjIuMQoJCWwtNS43LDUuN2MtMC43LDAuNy0xLjcsMS4xLTIuNywxLjFINjkuOWMtMS40LDAtMi42LTEuMi0yLjYtMi42VjU2YzAtMS40LDEuMi0yLjYsMi42LTIuNmgyMy4zdi0yLjZjMC0xLjQsMS4yLTIuNiwyLjYtMi42aDUuMgoJCWMxLjQsMCwyLjYsMS4yLDIuNiwyLjZ2Mi42aDIwLjdjMSwwLDIsMC40LDIuNywxLjFsNS43LDUuN0MxMzMuMyw2MC44LDEzMy4zLDYxLjYsMTMyLjgsNjIuMXoiLz4KPC9nPgo8L3N2Zz4K",
  "H5P.BranchingScenario-1.2/assets/end-screen-default.jpg":
    "data:image/jpeg;base64, ",
  "H5P.BranchingScenario-1.2/assets/start-screen-default.jpg":
    "data:image/jpeg;base64, ",
  "H5P.BranchingScenario-1.2/scripts/genericScreen.js":
    "data:application/javascript;base64, ",
  "H5P.BranchingScenario-1.2/scripts/branchingScenario.js":
    "data:application/javascript;base64, ",
  "H5P.BranchingScenario-1.2/scripts/libraryScreen.js":
    "data:application/javascript;base64, ",
  "H5P.BranchingScenario-1.2/scripts/scoring.js":
    "data:application/javascript;base64, ",
};
!(function () {
  H5P.ContentType = function (t) {
    function e() {}
    return (
      ((e.prototype = new H5P.EventDispatcher()).isRoot = function () {
        return t;
      }),
      (e.prototype.getLibraryFilePath = function (t) {
        return (
          furtherH5PInlineResources[
            this.libraryInfo.versionedNameNoSpaces + "/" + t
          ] || t
        );
      }),
      e
    );
  };
  var i = HTMLScriptElement.prototype.setAttribute;
  (HTMLScriptElement.prototype.setAttribute = function (t, e) {
    if ("src" === t) {
      if (!(e instanceof String)) {
        if (!e.toString) return void i.call(this, t, e);
        e = e.toString();
      }
      var r = window.location.href.substr(
          0,
          window.location.href.lastIndexOf("/")
        ),
        r = (e = e.startsWith(r) ? e.substr(r.length + 1) : e).match(
          /^.\/libraries\/([^?]+)\??.*$/
        );
      r &&
        ((r = r[1]),
        furtherH5PInlineResources[r] && (e = furtherH5PInlineResources[r]));
    }
    i.call(this, t, e);
  }),
    Object.defineProperty(HTMLScriptElement.prototype, "src", {
      set(t) {
        this.setAttribute("src", t);
      },
    });
  var n = HTMLLinkElement.prototype.setAttribute;
  (HTMLLinkElement.prototype.setAttribute = function (t, e) {
    if ("href" === t) {
      if (!(e instanceof String)) {
        if (!e.toString) return void i.call(this, t, e);
        e = e.toString();
      }
      var r = window.location.href.substr(
          0,
          window.location.href.lastIndexOf("/")
        ),
        r = (e = e.startsWith(r) ? e.substr(r.length + 1) : e).match(
          /^.\/libraries\/([^?]+)\??.*$/
        );
      r &&
        ((r = r[1]),
        furtherH5PInlineResources[r] && (e = furtherH5PInlineResources[r]));
    }
    n.call(this, t, e);
  }),
    Object.defineProperty(HTMLLinkElement.prototype, "src", {
      set(t) {
        this.setAttribute("src", t);
      },
    });
})();
H5P.getPath = function (t, n) {
  return t;
};

// $(".h5p-content").on("click", ".h5p-start-button", function(){
//   setTimeout(() => {
//     hHeight = ($("#inner_container").height() - $(".h5p-screen-header").height() - 2);
//     $(".h5p-current-screen").css('min-height', $("#inner_container").height());
//     $(".h5p-library-wrapper").css('height', hHeight);
//     $(".h5p-branching-scenario-content.h5p-image img").css('height', hHeight);
//     console.log();
//   }, 1000);
// })