

'use strict';
{
  const globals = this;
  const django = globals.django || (globals.django = {});

  
  django.pluralidx = function(n) {
    const v = n != 1;
    if (typeof v === 'boolean') {
      return v ? 1 : 0;
    } else {
      return v;
    }
  };
  

  /* gettext library */

  django.catalog = django.catalog || {};
  
  const newcatalog = {
    "&": "&",
    "/collection/{slug}/": "/collection/{slug}/",
    "/directors/{slug}/": "/directors/{slug}/",
    "/film/{parentSlug}/{streamType}/{slug}/embed/player/": "/film/{parentSlug}/{streamType}/{slug}/embed/player/",
    "/film/{slug}/": "/film/{slug}/",
    "/film/{slug}/embed/player/": "/film/{slug}/embed/player/",
    "/indigenous-cinema/subjects/{slug}/": "/indigenous-cinema/subjects/{slug}/",
    "/indigenous-cinema/subjects/{slug}/{secondarySlug}": "/indigenous-cinema/subjects/{slug}/{secondarySlug}",
    "/interactive/{slug}": "/interactive/{slug}/",
    "/playlist/{slug}/": "/playlist/{slug}/",
    "/series/{slug}/": "/series/{slug}/",
    "/subjects/{parentSubject}/{childSubject}/": "/subjects/{parentSubject}/{childSubject}/",
    "Add to My List": "Add to My List",
    "Age": "Age",
    "Available to buy": "Available to buy",
    "Available to rent": "Available to rent",
    "Available to rent or buy": "Available to rent or buy",
    "Cancel": "Cancel",
    "Coming soon date\u0004Coming": "Coming",
    "Continue watching carousel\u0004Continue watching": "Continue watching",
    "Continue watching carousel\u0004See my history": "See my history",
    "Educational subject filters\u0004Clear": "Clear",
    "Educational subject filters\u0004years old": "years old",
    "Educational subject list GTM nfb_list_id\u0004subject": "subject",
    "Educational subject list GTM nfb_list_name\u0004Subject": "Subject",
    "For series page url\u0004collection": "collection",
    "For series page url\u0004season": "season",
    "From": "From",
    "Helper to format collections info\u0004editions": "editions",
    "Helper to format collections info\u0004films": "films",
    "Helper to format series info\u0004episodes": "episodes",
    "Helper to format series info\u0004seasons": "seasons",
    "Indigenous banner\u0004Discover the NFB\u2019s rich online collection of Indigenous-made films.": "Discover the NFB\u2019s rich online collection of Indigenous-made films.",
    "Indigenous banner\u0004Indigenous Cinema": "Indigenous Cinema",
    "Indigenous banner\u0004Watch": "Watch",
    "Indigenous cinema filters\u0004Clear": "Clear",
    "Indigenous cinema filters\u0004Order By": "Order By",
    "Language filter\u0004All languages": "All languages",
    "Language filter\u0004English": "English",
    "Language filter\u0004French": "French",
    "Leaving soon": "Leaving soon",
    "Less": "Less",
    "More": "More",
    "More films by": "More films by",
    "More info": "More info",
    "My list carousel title\u0004My list": "My List",
    "NFB": "NFB",
    "NFB Like\u0004Like": "Like",
    "NFB Like\u0004Like button. Click this button to inform us that you like this title.": "Like button. Click this button to inform us that you like this title.",
    "NFB Like\u0004Liked": "Liked",
    "NFB Like\u0004You\u2019ve liked this title. To undo your evaluation, click the button again.": "You\u2019ve liked this title. To undo your evaluation, click the button again.",
    "New release": "New",
    "Newsletter banner\u0004Adding info@nfb.ca to your email address book will ensure reliable delivery.": "Adding info@nfb.ca to your email address book will ensure reliable delivery.",
    "Newsletter banner\u0004By clicking Subscribe, you're confirming that you agree with our <button %(button_attribute)s>Terms and Conditions</button>.": "By clicking Subscribe, you're confirming that you agree with our <button %(button_attribute)s>Terms</button>.",
    "Newsletter banner\u0004Enter your email": "Enter your email",
    "Newsletter banner\u0004Get the best of Canadian documentary and animation in your inbox every week.": "Get the best of Canadian documentary and animation in your inbox.",
    "Newsletter banner\u0004One last step...": "One last step...",
    "Newsletter banner\u0004Please enter a valid email address.": "Please enter a valid email address.",
    "Newsletter banner\u0004Please enter a value.": "Please enter a value.",
    "Newsletter banner\u0004Stay inspired. Stream stories that matter.": "Stay inspired. Stream stories that matter.",
    "Newsletter banner\u0004Subscribe": "Subscribe",
    "Newsletter banner\u0004You will soon receive an email from us. Please confirm your email address and your subcription by clicking the confirmation link.": "You will soon receive an email from us. Please confirm your email address and your subcription by clicking the confirmation link.",
    "No result found error message\u0004It\u2019s possible that the film you\u2019re searching for is not on NFB.ca.": "It\u2019s possible that the film you\u2019re searching for is not on NFB.ca.",
    "No result found error message\u0004Not all films from our collection are available online.": "Not all films from our collection are available online.",
    "No result found error message\u0004Please check to make sure you checked off the correct filters at the top of the page.": "Please check to make sure you checked off the correct filters at the top of the page.",
    "No result found error message\u0004Please consult the <a href=\"%s\">complete NFB Collection.</a>": "Please consult the <a href=\"%s\">complete NFB Collection</a>.",
    "No result found error message\u0004Sorry, none of our films matched your search criteria.": "Sorry, none of our films matched your search criteria.",
    "No result found error message\u0004Try a more general search.": "Try a more general search.",
    "Not available to view in your current location.": "Not available to view in your current location.",
    "Ok": "Ok",
    "Order by filter\u0004Alphabetical order": "Alphabetical order",
    "Order by filter\u0004Production date": "Production date",
    "Recommandations carousel\u0004Suggestions": "Suggestions",
    "Remove from My List": "Remove from My List",
    "See more": "More",
    "See next": "See next",
    "See previous": "See previous",
    "Share %s by email": "Share %s by email",
    "Share %s on Facebook": "Share %s on Facebook",
    "Share %s on X": "Share %s on X",
    "Share modal\u0004Pasted to clipboard!": "Pasted to clipboard!",
    "Share modal\u0004copy": "copy",
    "Share modal title\u0004Share": "Share",
    "Skip This List": "Skip this list",
    "Sorry this content is not available to view in your current location.": "Sorry this content is not available to view in your current location.",
    "Stream Canadian": "Stream Canadian",
    "This content is no longer available.": "This content is no longer available.",
    "This content is not currently available.": "This content is not currently available.",
    "User Profile\u0004Load More": "More",
    "User recommendations carousel\u0004Recommended for you": "Chosen for you",
    "Watch button\u0004Continue watching": "Continue watching",
    "Watch button\u0004Watch again": "Watch again",
    "Watch button\u0004Watch now": "Watch now",
    "Work Page Header\u0004Login": "Login",
    "Work Page Header\u0004to add to my list": "to add <br>to My List",
    "Work Page Header\u0004to save your progress": "to save <br>your progress",
    "Your rental expires on": "Your rental expires on",
    "by": "by",
    "error\u0004An error occurred while processing your request": "An error occurred while processing your request.",
    "error\u0004No result found": "No result found.",
    "https://collection.nfb.ca/": "https://collection.nfb.ca/",
    "indigenous-cinema\u0004/indigenous-cinema/subjects/": "/indigenous-cinema/subjects/",
    "indigenous-cinema\u0004All nations/people": "All nations/peoples",
    "indigenous-cinema\u0004Indigenous Subjects ": "Indigenous Subjects ",
    "viewing history\u0004Are you sure you want to remove it ?": "Are you sure you want to delete this item?",
    "viewing history\u0004Remove": "Delete",
    "viewing history\u0004Remove from history": "Delete from history",
    "viewing history\u0004will no longer appear on the NFB platform as a title you have watched and will no longer be used to make recommendations to you.": "will no longer appear in your watch history and will no longer be used to generate new recommendations to you."
  };
  for (const key in newcatalog) {
    django.catalog[key] = newcatalog[key];
  }
  

  if (!django.jsi18n_initialized) {
    django.gettext = function(msgid) {
      const value = django.catalog[msgid];
      if (typeof value === 'undefined') {
        return msgid;
      } else {
        return (typeof value === 'string') ? value : value[0];
      }
    };

    django.ngettext = function(singular, plural, count) {
      const value = django.catalog[singular];
      if (typeof value === 'undefined') {
        return (count == 1) ? singular : plural;
      } else {
        return value.constructor === Array ? value[django.pluralidx(count)] : value;
      }
    };

    django.gettext_noop = function(msgid) { return msgid; };

    django.pgettext = function(context, msgid) {
      let value = django.gettext(context + '\x04' + msgid);
      if (value.includes('\x04')) {
        value = msgid;
      }
      return value;
    };

    django.npgettext = function(context, singular, plural, count) {
      let value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
      if (value.includes('\x04')) {
        value = django.ngettext(singular, plural, count);
      }
      return value;
    };

    django.interpolate = function(fmt, obj, named) {
      if (named) {
        return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])});
      } else {
        return fmt.replace(/%s/g, function(match){return String(obj.shift())});
      }
    };


    /* formatting library */

    django.formats = {
    "DATETIME_FORMAT": "N d Y, H:i",
    "DATETIME_INPUT_FORMATS": [
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%m/%d/%Y %H:%M:%S",
      "%m/%d/%Y %H:%M:%S.%f",
      "%m/%d/%Y %H:%M",
      "%m/%d/%y %H:%M:%S",
      "%m/%d/%y %H:%M:%S.%f",
      "%m/%d/%y %H:%M",
      "%Y-%m-%d"
    ],
    "DATE_FORMAT": "N j, Y",
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d",
      "%m/%d/%Y",
      "%m/%d/%y",
      "%b %d %Y",
      "%b %d, %Y",
      "%d %b %Y",
      "%d %b, %Y",
      "%B %d %Y",
      "%B %d, %Y",
      "%d %B %Y",
      "%d %B, %Y"
    ],
    "DECIMAL_SEPARATOR": ".",
    "FIRST_DAY_OF_WEEK": 0,
    "MONTH_DAY_FORMAT": "N d",
    "NUMBER_GROUPING": 3,
    "SHORT_DATETIME_FORMAT": "m/d/Y P",
    "SHORT_DATE_FORMAT": "m/d/Y",
    "THOUSAND_SEPARATOR": ",",
    "TIME_FORMAT": "P",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H:%M:%S.%f",
      "%H:%M"
    ],
    "YEAR_MONTH_FORMAT": "F Y"
  };

    django.get_format = function(format_type) {
      const value = django.formats[format_type];
      if (typeof value === 'undefined') {
        return format_type;
      } else {
        return value;
      }
    };

    /* add to global namespace */
    globals.pluralidx = django.pluralidx;
    globals.gettext = django.gettext;
    globals.ngettext = django.ngettext;
    globals.gettext_noop = django.gettext_noop;
    globals.pgettext = django.pgettext;
    globals.npgettext = django.npgettext;
    globals.interpolate = django.interpolate;
    globals.get_format = django.get_format;

    django.jsi18n_initialized = true;
  }
};

