| @ -0,0 +1,2 @@ | |||
| node_modules | |||
| .env | |||
| @ -0,0 +1,9 @@ | |||
| module.exports = { | |||
| proxy: "localhost:8000", | |||
| files: ["**/*.css", "**/*.pug", "**/*.js"], | |||
| ignore: ["node_modules"], | |||
| reloadDelay: 10, | |||
| ui: false, | |||
| notify: false, | |||
| port: 3000, | |||
| }; | |||
| @ -0,0 +1,91 @@ | |||
| // index.js | |||
| /** | |||
| * Required External Modules | |||
| */ | |||
| const express = require("express"); | |||
| const path = require("path"); | |||
| /** | |||
| * App Variables | |||
| */ | |||
| const app = express(); | |||
| const port = process.env.PORT || "8000"; | |||
| /** | |||
| * App Configuration | |||
| */ | |||
| app.set("views", path.join(__dirname, "views")); | |||
| app.set("view engine", "pug"); | |||
| app.use(express.static(path.join(__dirname, "public"))); | |||
| /** | |||
| * Routes Definitions | |||
| */ | |||
| app.get("/", (req, res) => { | |||
| res.render("index", { title: "Home" }); | |||
| }); | |||
| app.get("/who-we-are", (req, res) => { | |||
| res.render("who_we_are", { title: "Who we are" }); | |||
| }); | |||
| app.get("/why-choose-us", (req, res) => { | |||
| res.render("why_choose_us", { title: "Why choose us" }); | |||
| }); | |||
| app.get("/who-we-serve", (req, res) => { | |||
| res.render("who_we_serve", { title: "Who we serve" }); | |||
| }); | |||
| app.get("/milestones", (req, res) => { | |||
| res.render("milestones", { title: "Milestones" }); | |||
| }); | |||
| app.get("/about", (req, res) => { | |||
| res.render("about", { title: "About" }); | |||
| }); | |||
| app.get("/services", (req, res) => { | |||
| res.render("services", { title: "Services" }); | |||
| }); | |||
| app.get("/media", (req, res) => { | |||
| res.render("media", { title: "Media" }); | |||
| }); | |||
| app.get("/insights", (req, res) => { | |||
| res.render("insights", { title: "Insights" }); | |||
| }); | |||
| app.get("/csr", (req, res) => { | |||
| res.render("csr", { title: "CSR" }); | |||
| }); | |||
| app.get("/career", (req, res) => { | |||
| res.render("career", { title: "Career" }); | |||
| }); | |||
| app.get("/contact", (req, res) => { | |||
| res.render("contactus", { title: "Contact Us" }); | |||
| }); | |||
| app.get("/corporate-overview", (req, res) => { | |||
| res.render("corporate-overview", { title: "Corporate Overview" }); | |||
| }); | |||
| app.get("/satutory", (req, res) => { | |||
| res.render("satutory", { title: "Satutory" }); | |||
| }); | |||
| app.get("/disclaimer", (req, res) => { | |||
| res.render("disclaimer", { title: "Disclaimer" }); | |||
| }); | |||
| app.get("/login", (req, res) => { | |||
| res.render("login", { title: "Login" }); | |||
| }); | |||
| app.get("/webcustody", (req, res) => { | |||
| res.render("webcustody", { title: "Webcustody" }); | |||
| }); | |||
| app.get("/derivatives", (req, res) => { | |||
| res.render("derivatives", { title: "Derivatives" }); | |||
| }); | |||
| /** | |||
| * Server Activation | |||
| */ | |||
| app.listen(port, () => { | |||
| console.log(`Listening to requests on http://localhost:${port}`); | |||
| }); | |||
| @ -0,0 +1,22 @@ | |||
| { | |||
| "name": "sbi-pug", | |||
| "version": "1.0.0", | |||
| "description": "", | |||
| "main": "index.js", | |||
| "scripts": { | |||
| "dev": "nodemon ./index.js", | |||
| "bs-init": "browser-sync init", | |||
| "ui": "browser-sync start --config bs-config.js" | |||
| }, | |||
| "keywords": [], | |||
| "author": "", | |||
| "license": "ISC", | |||
| "devDependencies": { | |||
| "browser-sync": "^3.0.2", | |||
| "nodemon": "^3.0.2" | |||
| }, | |||
| "dependencies": { | |||
| "express": "^4.18.2", | |||
| "pug": "^3.0.2" | |||
| } | |||
| } | |||
| @ -0,0 +1,560 @@ | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 500; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 500; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 500; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 500; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 500; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Montserrat'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* greek-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+1F00-1FFF; | |||
| } | |||
| /* greek */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0370-03FF; | |||
| } | |||
| /* hebrew */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 300; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* greek-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+1F00-1FFF; | |||
| } | |||
| /* greek */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0370-03FF; | |||
| } | |||
| /* hebrew */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 400; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* greek-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+1F00-1FFF; | |||
| } | |||
| /* greek */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0370-03FF; | |||
| } | |||
| /* hebrew */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 600; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* greek-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+1F00-1FFF; | |||
| } | |||
| /* greek */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0370-03FF; | |||
| } | |||
| /* hebrew */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 700; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| /* cyrillic-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | |||
| } | |||
| /* cyrillic */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | |||
| } | |||
| /* greek-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+1F00-1FFF; | |||
| } | |||
| /* greek */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0370-03FF; | |||
| } | |||
| /* hebrew */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; | |||
| } | |||
| /* vietnamese */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; | |||
| } | |||
| /* latin-ext */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2'); | |||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; | |||
| } | |||
| /* latin */ | |||
| @font-face { | |||
| font-family: 'Open Sans'; | |||
| font-style: normal; | |||
| font-weight: 800; | |||
| font-stretch: 100%; | |||
| src: url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2'); | |||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |||
| } | |||
| @ -0,0 +1,35 @@ | |||
| 1678106174838 | |||
| 1678106178241 | |||
| 1678106191767 | |||
| 1678106192733 | |||
| 1678106200529 | |||
| 1678106201326 | |||
| 1678106201734 | |||
| 1678106202128 | |||
| 1678106202326 | |||
| 1678106202547 | |||
| 1678106266329 | |||
| 1678109145291 | |||
| 1678950821777 | |||
| 1685636982277 | |||
| 1685642812712 | |||
| 1688618039916 | |||
| 1688621822098 | |||
| 1688621945804 | |||
| 1688622191412 | |||
| 1688622295002 | |||
| 1689310904388 | |||
| 1689310933008 | |||
| 1689578994331 | |||
| 1689579123254 | |||
| 1689579991526 | |||
| 1689580340987 | |||
| 1689580955027 | |||
| 1694068904822 | |||
| 1694069026900 | |||
| 1694069186854 | |||
| 1694069203384 | |||
| 1695789216943 | |||
| 1697452841072 | |||
| 1702970583622 | |||
| 1702970889240 | |||
| @ -0,0 +1,4 @@ | |||
| // global variables for using throughout the template | |||
| CustomEase.create("CubicBezier", ".77,0,.18,1"); | |||
| var zanimationDefaults = {from:{opacity: 0, y: 65}, to:{opacity: 1, y: 0}, ease:"CubicBezier", duration:1.2, delay: 0}; | |||
| @ -0,0 +1,653 @@ | |||
| //////////////////////////////////////// | |||
| // | |||
| // Helpers | |||
| // | |||
| //////////////////////////////////////// | |||
| /////////////// Mobile detection | |||
| var isMobile = false; | |||
| if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | |||
| isMobile = true; | |||
| } | |||
| ///////////////////////////////////////// | |||
| // | |||
| // znav | |||
| // | |||
| ///////////////////////////////////////// | |||
| $(document).ready(function() { | |||
| if($('#znav-container').length){ | |||
| var previousScroll = 0, | |||
| navBarOrgOffset = $('#znav-container').offset().top; | |||
| $this = $('#znav-container'); | |||
| ///////////////////////////////////// | |||
| // Scrollup Fixed Navbar | |||
| ///////////////////////////////////// | |||
| // $(window).scroll(function() { | |||
| // var currentScroll = $(this).scrollTop(); | |||
| // if(currentScroll > navBarOrgOffset) { | |||
| // if (currentScroll > previousScroll) { | |||
| // $this.fadeOut(); | |||
| // } else { | |||
| // $this.fadeIn(); | |||
| // $this.addClass('znav-revealed'); | |||
| // } | |||
| // } else { | |||
| // $this.removeClass('znav-revealed'); | |||
| // } | |||
| // previousScroll = currentScroll; | |||
| // }); | |||
| $('#znav-container #navbarNavDropdown ul.navbar-nav .dropdown').each(function(){ | |||
| $this = $(this); | |||
| $this.parent('li').addClass('has-dropdown'); | |||
| }); | |||
| $('#znav-container #navbarNavDropdown ul.navbar-nav .megamenu').each(function(){ | |||
| $this = $(this); | |||
| $this.parent('li').addClass('has-megamenu'); | |||
| }); | |||
| $('.has-dropdown > a, .has-megamenu > a').on('click', function(){ | |||
| $this = $(this).parent(); | |||
| $this.each(function(){ | |||
| $this.toggleClass('z-active'); | |||
| }); | |||
| }); | |||
| // menuAim Started | |||
| if($.fn.menuAim){ | |||
| $("ul.dropdown").menuAim({ | |||
| activate: function(row){ | |||
| $(row).children('ul.dropdown').addClass("opened"); | |||
| }, | |||
| deactivate: function(row){ | |||
| $(row).children('ul.dropdown').removeClass("opened"); | |||
| }, | |||
| exitMenu: function() { return true } | |||
| });// End of menuAim | |||
| } | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Hamburger Trigger | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.hamburger').length){ | |||
| var $hamburger = $(".hamburger"); | |||
| $hamburger.on("click", function(e) { | |||
| $hamburger.toggleClass("is-active"); | |||
| // Do something else, like open/close menu | |||
| // Click event off .. Doesn't work | |||
| if($('.is-active').is(':animated')){ | |||
| $('.navbar-toggler').off('click', function(){ | |||
| return; | |||
| }); | |||
| } | |||
| }); | |||
| } | |||
| }); | |||
| /////////////// On page scroll for #id targets | |||
| $(document).ready(function($){ | |||
| $('a[href*=\\#]:not([href=\\#])').click(function() { | |||
| if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) { | |||
| var target = $(this.hash); | |||
| target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |||
| if (target.length) { | |||
| $('html,body').animate({ | |||
| scrollTop: target.offset().top | |||
| }, 400, 'swing', function(){ | |||
| }); | |||
| return false; | |||
| } | |||
| } | |||
| }); | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Tabs | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.tabs, .navs').length){ | |||
| // Function for active tab indicator change | |||
| /////////////////////////////////////////// | |||
| function updateIncicator($indicator, $tabs, $tabnavCurrentItem){ | |||
| var left = $tabnavCurrentItem.position().left, | |||
| right = $tabs.children('.nav-bar').outerWidth() - (left+$tabnavCurrentItem.outerWidth()); | |||
| $indicator.css({ | |||
| left: left, | |||
| right: right | |||
| }); | |||
| return; | |||
| } | |||
| $('.tabs, .navs').each(function(){ | |||
| var $tabs = $(this), | |||
| $tabnavCurrentItem = $tabs.children('.nav-bar').children('.nav-bar-item.active'); | |||
| $tabs.children('.nav-bar').append('<div class="indicator"></div>'); | |||
| var $indicator = $tabs.children('.nav-bar').children(".indicator"), | |||
| $tabnavCurrentItem = $tabs.children('.nav-bar').children('.nav-bar-item.active'); | |||
| $preIndex = $tabnavCurrentItem.index(); | |||
| updateIncicator($indicator, $tabs, $tabnavCurrentItem); | |||
| $tabs.children('.nav-bar').children('.nav-bar-item').click(function(){ | |||
| var $tabnavCurrentItem = $(this), | |||
| $currentIndex = $tabnavCurrentItem.index(), | |||
| $tabContent = $tabs.children('.tab-contents').children().eq($currentIndex); | |||
| $tabnavCurrentItem.siblings().removeClass('active'); | |||
| $tabnavCurrentItem.addClass('active'); | |||
| $tabContent.siblings().removeClass('active'); | |||
| $tabContent.addClass('active'); | |||
| // Indicator Transition | |||
| //////////////////////// | |||
| updateIncicator($indicator, $tabs, $tabnavCurrentItem); | |||
| if(($currentIndex - $preIndex) <= 0){ | |||
| $('.indicator').addClass('transition-reverse'); | |||
| }else{ | |||
| $('.indicator').removeClass('transition-reverse'); | |||
| }; | |||
| $preIndex = $currentIndex; | |||
| }); | |||
| $(window).on('resize', function(){ | |||
| updateIncicator($indicator, $tabs, $tabs.children('.nav-bar').children('.nav-bar-item.active')); | |||
| }); | |||
| }); | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Parallax Background | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if(!$('[class^=gsap-]').length){ | |||
| if($('.parallax').length){ | |||
| var rellax = new Rellax('.parallax', {center: false}); | |||
| } | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Youtube Background | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.youtube-background').length){ | |||
| $('.youtube-background').each(function(){ | |||
| var $this = $(this); | |||
| $(this).YTPlayer({ | |||
| containment: $this.parent(".background-holder"), | |||
| showControls: false | |||
| }); | |||
| }); | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Tooltips | |||
| // | |||
| //////////////////////////////////////// | |||
| // $(document).ready(function(){ | |||
| // $('[data-toggle="tooltip"]').tooltip(); | |||
| // }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Flex slider | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.flexslider').length){ | |||
| var flexSliderZanimPlay = function(slider){ | |||
| if($(slider).find('*[data-zanim-timeline]').length == 0) return; | |||
| $(slider).find('*[data-zanim-timeline].flex-active-slide').zanimation(zanimationDefaults).play(); | |||
| } | |||
| var flexSliderZanimKill = function(slider){ | |||
| if($(slider).find('*[data-zanim-timeline]').length == 0) return; | |||
| $(slider).find('*[data-zanim-timeline]').zanimation(zanimationDefaults).kill(); | |||
| } | |||
| $('.flexslider').each(function(){ | |||
| var $this = $(this); | |||
| $this.flexslider($.extend( | |||
| $this.data("zflexslider") || {}, | |||
| { | |||
| start: function(slider){ | |||
| slider.removeClass("loading"); | |||
| flexSliderZanimPlay(slider); | |||
| }, | |||
| before: function(slider){ | |||
| flexSliderZanimKill(slider); | |||
| }, | |||
| after: function(slider){ | |||
| flexSliderZanimPlay(slider); | |||
| } | |||
| } | |||
| )); | |||
| }); | |||
| } | |||
| }); | |||
| ///////////////////////////////////////// | |||
| // | |||
| // Owl Carousel | |||
| // | |||
| ///////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.owl-carousel').length){ | |||
| var owlZanimPlay = function($el){ | |||
| if($el.find('*[data-zanim-timeline]').length == 0) return; | |||
| $el.find(".owl-item.active > *[data-zanim-timeline]").zanimation(zanimationDefaults).play(); | |||
| } | |||
| var owlZanimKill = function($el){ | |||
| if($el.find('*[data-zanim-timeline]').length == 0) return; | |||
| $el.find("*[data-zanim-timeline]").zanimation(zanimationDefaults).kill(); | |||
| } | |||
| $('.owl-carousel').each(function(){ | |||
| var $this = $(this), | |||
| options = $this.data("options") || {}; | |||
| options.navText || (options.navText = ['<span class="fa fa-angle-left"></span>','<span class="fa fa-angle-right"></span>']); | |||
| $this.owlCarousel($.extend(options || {}, { | |||
| onInitialized: function(event){ | |||
| owlZanimPlay($(event.target)); | |||
| }, | |||
| onTranslate: function(event){ | |||
| owlZanimKill($(event.target)); | |||
| }, | |||
| onTranslated: function(event){ | |||
| owlZanimPlay($(event.target)); | |||
| } | |||
| })); | |||
| }); | |||
| } | |||
| }); | |||
| /////////////////////////////////////// | |||
| // | |||
| // Forms | |||
| // | |||
| /////////////////////////////////////// | |||
| // Choose a file | |||
| /////////////////////////////////////// | |||
| ( function ( document, window, index ){ | |||
| var inputs = document.querySelectorAll( '.inputfile' ); | |||
| Array.prototype.forEach.call( inputs, function( input ) | |||
| { | |||
| var label = input.nextElementSibling, | |||
| labelVal = label.innerHTML; | |||
| input.addEventListener( 'change', function( e ) | |||
| { | |||
| var fileName = ''; | |||
| if( this.files && this.files.length > 1 ) | |||
| fileName = ( this.getAttribute( 'data-multiple-caption' ) || '' ).replace( '{count}', this.files.length ); | |||
| else | |||
| fileName = e.target.value.split( '\\' ).pop(); | |||
| if( fileName ) | |||
| label.querySelector( 'span' ).innerHTML = fileName; | |||
| else | |||
| label.innerHTML = labelVal; | |||
| }); | |||
| // Firefox bug fix | |||
| input.addEventListener( 'focus', function(){ input.classList.add( 'has-focus' ); }); | |||
| input.addEventListener( 'blur', function(){ input.classList.remove( 'has-focus' ); }); | |||
| }); | |||
| }( document, window, 0 )); | |||
| $(document).ready(function(){ | |||
| if($('.inputfile').length){ | |||
| $('.inputfile + label').prepend('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewbox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg>') | |||
| }; | |||
| }); | |||
| /////////////////////////////////////// | |||
| // Checkbox and Radio | |||
| /////////////////////////////////////// | |||
| if( document.createElement('svg').getAttributeNS ) { | |||
| var checkbxsCheckmark = Array.prototype.slice.call( document.querySelectorAll( '.zinput.zcheckbox input[type="checkbox"]' ) ); | |||
| pathDefs = { | |||
| checkmark : ['M16.7,62.2c4.3,5.7,21.8,27.9,21.8,27.9L87,16'] | |||
| }, | |||
| animDefs = { | |||
| checkmark : { speed : .2, easing : 'ease-in-out' } | |||
| }; | |||
| function createSVGEl( def ) { | |||
| var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); | |||
| if( def ) { | |||
| svg.setAttributeNS( null, 'viewBox', def.viewBox ); | |||
| svg.setAttributeNS( null, 'preserveAspectRatio', def.preserveAspectRatio ); | |||
| } | |||
| else { | |||
| svg.setAttributeNS( null, 'viewBox', '0 0 100 100' ); | |||
| } | |||
| svg.setAttribute( 'xmlns', 'http://www.w3.org/2000/svg' ); | |||
| return svg; | |||
| } | |||
| function controlCheckbox( el, type, svgDef ) { | |||
| var svg = createSVGEl( svgDef ); | |||
| el.parentNode.appendChild( svg ); | |||
| if( el.checked ) { | |||
| draw( el, type ); | |||
| } | |||
| el.addEventListener( 'change', function() { | |||
| if( el.checked ) { | |||
| draw( el, type ); | |||
| } | |||
| else { | |||
| reset( el ); | |||
| } | |||
| } ); | |||
| } | |||
| checkbxsCheckmark.forEach( function( el, i ) { controlCheckbox( el, 'checkmark' ); } ); | |||
| function draw( el, type ) { | |||
| var paths = [], pathDef, | |||
| animDef, | |||
| svg = el.parentNode.querySelector( 'svg' ); | |||
| pathDef = pathDefs.checkmark; | |||
| animDef = animDefs.checkmark; | |||
| paths.push( document.createElementNS('http://www.w3.org/2000/svg', 'path' ) ); | |||
| for( var i = 0, len = paths.length; i < len; ++i ) { | |||
| var path = paths[i]; | |||
| svg.appendChild( path ); | |||
| path.setAttributeNS( null, 'd', pathDef[i] ); | |||
| var length = path.getTotalLength(); | |||
| path.style.strokeDasharray = length + ' ' + length; | |||
| if( i === 0 ) { | |||
| path.style.strokeDashoffset = Math.floor( length ) - 1; | |||
| } | |||
| else path.style.strokeDashoffset = length; | |||
| path.getBoundingClientRect(); | |||
| path.style.transition = path.style.WebkitTransition = path.style.MozTransition = 'stroke-dashoffset ' + animDef.speed + 's ' + animDef.easing + ' ' + i * animDef.speed + 's'; | |||
| path.style.strokeDashoffset = '0'; | |||
| } | |||
| } | |||
| function reset( el ) { | |||
| Array.prototype.slice.call( el.parentNode.querySelectorAll( 'svg > path' ) ).forEach( function( el ) { el.parentNode.removeChild( el ); } ); | |||
| } | |||
| } | |||
| //////////////////////////////////////// | |||
| // | |||
| // Universal contact form ajax submission | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.zform').length){ | |||
| $('.zform').each(function(){ | |||
| var $form = $(this); | |||
| $form.on('submit', function(e){ | |||
| e.preventDefault(); | |||
| var $submit = $form.find(":submit"), | |||
| submitText = $submit.val(); | |||
| $submit.val("Sending..."); | |||
| $.ajax({ | |||
| type: 'post', | |||
| url: 'assets/php/form-processor.php', | |||
| data: $(this).serialize(), // again, keep generic so this applies to any form | |||
| success: function (result) { | |||
| $form.find(".zform-feedback").html(result); | |||
| $submit.val(submitText); | |||
| $form.trigger("reset"); | |||
| } | |||
| }); | |||
| }); | |||
| }); | |||
| } | |||
| }); | |||
| ////////////////////////////////// | |||
| // | |||
| // Sementic UI | |||
| // | |||
| ////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| ////////////////////////////////// | |||
| // Dropdown | |||
| ////////////////////////////////// | |||
| if($('.ui.dropdown').length){ | |||
| $('.ui.dropdown').dropdown(); | |||
| } | |||
| ////////////////////////////////// | |||
| // Accordion | |||
| ////////////////////////////////// | |||
| if($('.ui.accordion').length){ | |||
| $('.ui.accordion').accordion({ | |||
| exclusive: false | |||
| }); | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Lightbox | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('[data-lightbox]').length){ | |||
| lightbox.option({ | |||
| 'resizeDuration' : 400, | |||
| 'wrapAround' : true, | |||
| 'fadeDuration' : 300, | |||
| 'imageFadeDuration' : 300 | |||
| }) | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Video Lightbox | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.video-modal').length){ | |||
| $('body').after('<div id="videoModal" class="remodal remodal-video"> <button data-remodal-action="close" class="remodal-close"></button> <div class="embed-responsive embed-responsive-16by9"><div id="videoModalIframeWrapper"></div> </div></div>'); | |||
| var $videoModal = $('#videoModal').remodal(); | |||
| var $videoModalIframeWrapper = $("#videoModalIframeWrapper"); | |||
| $('.video-modal').each(function(){ | |||
| $(this).on('click', function(e){ | |||
| e.preventDefault(); | |||
| var $this = $(this), | |||
| ytId = $this.attr('href').split('/'), | |||
| start = $this.data('start'), | |||
| end = $this.data('end'); | |||
| console.log(ytId); | |||
| if(ytId[2] == 'www.youtube.com'){ | |||
| $videoModalIframeWrapper.html('<iframe id="videoModalIframe" src="//www.youtube.com/embed/'+ytId[3].split('?v=')[1]+'?rel=0&autoplay=1&enablejsapi=0&start='+start+'&end='+end+'" allowfullscreen="" frameborder="0" class="embed-responsive-item hide"></iframe>'); | |||
| } else if (ytId[2] == 'vimeo.com'){ | |||
| $videoModalIframeWrapper.html('<iframe id="videoModalIframe" src="https://player.vimeo.com/video/'+ytId[3]+'?autoplay=1&title=0&byline=0&portrait=0 ?autoplay=1&title=0&byline=0&portrait=0 hide"></iframe>'); | |||
| } | |||
| $videoModal.open(); | |||
| }); | |||
| }); | |||
| $(document).on('closed', '.remodal', function (e) { | |||
| var $this = $(this); | |||
| if($this.attr('id') == 'videoModal'){ | |||
| $videoModalIframeWrapper.html(''); | |||
| } | |||
| }); | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Masonry with isotope | |||
| // | |||
| //////////////////////////////////////// | |||
| $(window).on('load', function(){ | |||
| if($('.sortable').length){ | |||
| $('.sortable').each(function(){ | |||
| var $this = $(this), | |||
| $sortable = $this.find('.sortable-container'), | |||
| $menu = $this.children('.dropdown').children('.menu'); | |||
| $sortable.isotope({ | |||
| itemSelector: '.sortable-item', | |||
| masonry: { | |||
| columnWidth: '.sortable-item' | |||
| } | |||
| }); | |||
| $($menu).on('click', '.item', function(){ | |||
| var $masonryFilter = $(this), | |||
| masonryContainer = $masonryFilter.closest('.sortable').find('.sortable-container'), | |||
| filterValue = $masonryFilter.attr('data-filter'); | |||
| masonryContainer.isotope({ filter: filterValue }); | |||
| }); | |||
| }); | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Typed Text | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.typed-text').length){ | |||
| $(".typed-text").each(function(){ | |||
| var $this = $(this); | |||
| $this.typed({ | |||
| strings: $this.data('typed-text'), | |||
| typeSpeed: 100, | |||
| loop: true, | |||
| backDelay : 1500 | |||
| }); | |||
| }); | |||
| } | |||
| }); | |||
| //////////////////////////////////////// | |||
| // | |||
| // Colors | |||
| // | |||
| //////////////////////////////////////// | |||
| $(document).ready(function(){ | |||
| if($('.palette').length){ | |||
| $(".palette [class*='background-']").each(function(){ | |||
| function rgb2hex(rgb){ | |||
| rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); | |||
| return (rgb && rgb.length === 4) ? "#" + | |||
| ("0" + parseInt(rgb[1],10).toString(16)).slice(-2) + | |||
| ("0" + parseInt(rgb[2],10).toString(16)).slice(-2) + | |||
| ("0" + parseInt(rgb[3],10).toString(16)).slice(-2) : ''; | |||
| } | |||
| $(this).append('<span class="text-uppercase fs--1 mb-0">'+rgb2hex($(this).css("background-color"))+'</span>'); | |||
| }); | |||
| } | |||
| }); | |||
| @ -0,0 +1,55 @@ | |||
| ///////////////////////////////////////// | |||
| // | |||
| // Map | |||
| // | |||
| ///////////////////////////////////////// | |||
| var initMap = function () { | |||
| if($('.googlemap').length){ | |||
| var mapStyles = { | |||
| Default: [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#e9e9e9"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}], | |||
| Gray: [{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]}], | |||
| Midnight: [{"featureType":"all","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"color":"#000000"},{"lightness":13}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#144b53"},{"lightness":14},{"weight":1.4}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#08304b"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#0c4152"},{"lightness":5}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#0b434f"},{"lightness":25}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.arterial","elementType":"geometry.stroke","stylers":[{"color":"#0b3d51"},{"lightness":16}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"}]},{"featureType":"transit","elementType":"all","stylers":[{"color":"#146474"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#021019"}]}], | |||
| Hopper: [{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#165c64"},{"saturation":34},{"lightness":-69},{"visibility":"on"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"hue":"#b7caaa"},{"saturation":-14},{"lightness":-18},{"visibility":"on"}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"hue":"#cbdac1"},{"saturation":-6},{"lightness":-9},{"visibility":"on"}]},{"featureType":"road","elementType":"geometry","stylers":[{"hue":"#8d9b83"},{"saturation":-89},{"lightness":-12},{"visibility":"on"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"hue":"#d4dad0"},{"saturation":-88},{"lightness":54},{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"hue":"#bdc5b6"},{"saturation":-89},{"lightness":-3},{"visibility":"simplified"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"hue":"#bdc5b6"},{"saturation":-89},{"lightness":-26},{"visibility":"on"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"hue":"#c17118"},{"saturation":61},{"lightness":-45},{"visibility":"on"}]},{"featureType":"poi.park","elementType":"all","stylers":[{"hue":"#8ba975"},{"saturation":-46},{"lightness":-28},{"visibility":"on"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"hue":"#a43218"},{"saturation":74},{"lightness":-51},{"visibility":"simplified"}]},{"featureType":"administrative.province","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"simplified"}]},{"featureType":"administrative.neighborhood","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"off"}]},{"featureType":"administrative.locality","elementType":"labels","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"off"}]},{"featureType":"administrative.land_parcel","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":0},{"lightness":100},{"visibility":"off"}]},{"featureType":"administrative","elementType":"all","stylers":[{"hue":"#3a3935"},{"saturation":5},{"lightness":-57},{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"hue":"#cba923"},{"saturation":50},{"lightness":-46},{"visibility":"on"}]}], | |||
| Beard: [{"featureType":"poi.business","elementType":"labels.text","stylers":[{"visibility":"on"},{"color":"#333333"}]}], | |||
| AssassianCreed: [{"featureType":"all","elementType":"all","stylers":[{"visibility":"on"}]},{"featureType":"all","elementType":"labels","stylers":[{"visibility":"off"},{"saturation":"-100"}]},{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40},{"visibility":"off"}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"off"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#4d6059"}]},{"featureType":"landscape","elementType":"geometry.stroke","stylers":[{"color":"#4d6059"}]},{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"color":"#4d6059"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"lightness":21}]},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"color":"#4d6059"}]},{"featureType":"poi","elementType":"geometry.stroke","stylers":[{"color":"#4d6059"}]},{"featureType":"road","elementType":"geometry","stylers":[{"visibility":"on"},{"color":"#7f8d89"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#7f8d89"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#7f8d89"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#7f8d89"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#7f8d89"}]},{"featureType":"road.arterial","elementType":"geometry.stroke","stylers":[{"color":"#7f8d89"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"#7f8d89"}]},{"featureType":"road.local","elementType":"geometry.stroke","stylers":[{"color":"#7f8d89"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#2b3638"},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#2b3638"},{"lightness":17}]},{"featureType":"water","elementType":"geometry.fill","stylers":[{"color":"#24282b"}]},{"featureType":"water","elementType":"geometry.stroke","stylers":[{"color":"#24282b"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels.text","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels.icon","stylers":[{"visibility":"off"}]}], | |||
| SubtleGray: [{"featureType":"administrative","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"administrative.province","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","elementType":"all","stylers":[{"saturation":-100},{"lightness":"50"},{"visibility":"simplified"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":"-100"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"all","stylers":[{"lightness":"30"}]},{"featureType":"road.local","elementType":"all","stylers":[{"lightness":"40"}]},{"featureType":"transit","elementType":"all","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]},{"featureType":"water","elementType":"labels","stylers":[{"lightness":-25},{"saturation":-100}]}], | |||
| Tripitty: [{"featureType":"all","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#2c5ca5"}]},{"featureType":"poi","elementType":"all","stylers":[{"color":"#2c5ca5"}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#193a70"},{"visibility":"on"}]}] | |||
| }; | |||
| $(".googlemap").each(function(){ | |||
| var $this = $(this), | |||
| latLng = $this.data('latlng').split(','), | |||
| markerPopup = $this.html(), | |||
| icon = ($this.data('icon')) ? $this.data('icon') : 'https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi.png', | |||
| zoom = $this.data('zoom'), | |||
| mapstyle = $this.data('theme'), | |||
| mapElement = this; | |||
| var mapOptions = { | |||
| zoom: zoom, | |||
| scrollwheel: $this.data('scrollwheel'), | |||
| center: new google.maps.LatLng(latLng[0], latLng[1]), | |||
| styles: mapStyles[mapstyle] | |||
| }; | |||
| var map = new google.maps.Map(mapElement, mapOptions); | |||
| var contentString = ''+markerPopup+''; | |||
| var infowindow = new google.maps.InfoWindow({ | |||
| content: contentString | |||
| }); | |||
| var marker = new google.maps.Marker({ | |||
| position: new google.maps.LatLng(latLng[0], latLng[1]), | |||
| icon: ''+icon+'', | |||
| map: map | |||
| }); | |||
| marker.addListener('click', function() { | |||
| infowindow.open(map, marker); | |||
| }); | |||
| }); | |||
| } | |||
| } | |||
| @ -0,0 +1,264 @@ | |||
| // Checking Viewport | |||
| function isElementInViewport (el) { | |||
| "use strict"; | |||
| if (typeof jQuery === "function" && el instanceof jQuery) { | |||
| el = el[0]; | |||
| } | |||
| var rect = el.getBoundingClientRect(); | |||
| return ( | |||
| rect.top >= 0 && | |||
| rect.left >= 0 && | |||
| rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */ | |||
| rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */ | |||
| ); | |||
| } | |||
| // function getZanimController(el, options){ | |||
| // var $this = $(el), | |||
| // controller = $this.data("zanim"); | |||
| // // if($this.parents(".timeline").length) return; | |||
| // if (options === undefined) { | |||
| // options = {delay: 0, duration: 0.8, ease: 'Expo.easeOut', from:{}, to:{}}; | |||
| // } | |||
| // controller.delay || (controller.delay = options.delay); | |||
| // controller.duration || (controller.duration = options.duration); | |||
| // controller.from || (controller.from = options.from); | |||
| // controller.to || (controller.to = options.to); | |||
| // controller.ease && (controller.to.ease = controller.ease) && controller.to.ease || (controller.to.ease = options.ease); | |||
| // // console.log(el); console.log(options); console.log(controller); | |||
| // return controller; | |||
| // } | |||
| // (function($) { | |||
| // "use strict"; | |||
| // $.fn.zanimation = function(options) { | |||
| // var $this = $(this), | |||
| // controller = $this.data("zanim"); | |||
| // if($this.parents(".timeline").length) return; | |||
| // if (options === undefined) { | |||
| // options = {delay: 0, duration: 0.8, ease: 'Expo.easeOut', from:{}, to:{}}; | |||
| // } | |||
| // // controller.delay || (controller.delay = options.delay); | |||
| // // controller.duration || (controller.duration = options.duration); | |||
| // // controller.from || (controller.from = options.from); | |||
| // // controller.to || (controller.to = options.to); | |||
| // // controller.ease && (controller.to.ease = controller.ease) && controller.to.ease || (controller.to.ease = options.ease); | |||
| // return TweenMax.fromTo($this, controller.duration, controller.from, controller.to).delay(controller.delay); | |||
| // } | |||
| // }(jQuery)); | |||
| // // (function($) { | |||
| // // "use strict"; | |||
| // // $.fn.zanimationTimeline = function(options, timeline) { | |||
| // // var $this = $(this), | |||
| // // controller = $this.data("zanim"); | |||
| // // // if($this.parents(".timeline").length) return; | |||
| // // if (options === undefined) { | |||
| // // options = {delay: 0, duration: 0.8, ease: 'Expo.easeOut', from:{}, to:{}}; | |||
| // // } | |||
| // // controller.delay || (controller.delay = options.delay); | |||
| // // controller.duration || (controller.duration = options.duration); | |||
| // // controller.from || (controller.from = options.from); | |||
| // // controller.to || (controller.to = options.to); | |||
| // // controller.ease && (controller.to.ease = controller.ease) && controller.to.ease || (controller.to.ease = options.ease); | |||
| // // return TweenMax.fromTo($this, controller.duration, controller.from, controller.to).delay(controller.delay); | |||
| // // } | |||
| // // }(jQuery)); | |||
| // // triggering for onscroll animation | |||
| // // todo: animation iteration: loop & once | |||
| // function zanimationScroll(options){ | |||
| // var triggerZanimation = function($this){ | |||
| // if(isElementInViewport($this) && $this.attr('data-zanim')) { | |||
| // $this.zanimation(options).play(); | |||
| // $this.removeAttr('data-zanim'); | |||
| // } | |||
| // } | |||
| // function triggerZanimationTimeline($this, timeline){ | |||
| // if(isElementInViewport($this) && $this.attr('data-timeline')) { | |||
| // timeline.play(); | |||
| // $this.removeAttr('data-timeline'); | |||
| // } | |||
| // } | |||
| // $('*[data-zanim]').each(function(){ | |||
| // var $this = $(this); | |||
| // if($this.parents("*[data-timeline]").length) return; | |||
| // if($this.data("zanim").trigger == "scroll"){ | |||
| // triggerZanimation($this); | |||
| // $(window).on('scroll', function(){triggerZanimation($this)}); | |||
| // } | |||
| // }); | |||
| // $('*[data-timeline]').each(function(){ | |||
| // var $this = $(this); | |||
| // var timeline = new TimelineMax(); | |||
| // $this.find('*[data-zanim]').each(function(){ | |||
| // // timeline.fromTo($(this), 1, {opacity: 0, scale: 2}, {opacity: 1, scale: 1, ease: Expo.easeOut}, '-=0.3'); | |||
| // var controller = getZanimController(this, options); | |||
| // // console.log(controller) | |||
| // timeline.fromTo($(this), controller.duration, controller.from, controller.to, controller.delay).pause(); | |||
| // // controller.delay | |||
| // }); | |||
| // if($this.data("timeline").trigger == "scroll"){ | |||
| // triggerZanimationTimeline($this, timeline); | |||
| // $(window).on('scroll', function(){triggerZanimationTimeline($this, timeline)}); | |||
| // } | |||
| // }); | |||
| // } | |||
| (function($) { | |||
| "use strict"; | |||
| $.fn.zanimationSplit = function(option) { | |||
| var $this = this, | |||
| controller = $this.data("zanim-text"), | |||
| split = new SplitText($this, {type: 'lines, words, chars'}); | |||
| controller.delay || (controller.delay = 0.02); | |||
| controller.split || (controller.split = "chars"); | |||
| controller.ease && (controller.to.ease = controller.ease) && controller.to.ease || (controller.to.ease = 'Expo.easeOut'); | |||
| // split[controller.split].css('opacity', '0'); | |||
| function triggerAnimation(){ | |||
| if(isElementInViewport($this) && $this.attr('data-zanim-text')) { | |||
| TweenMax.staggerFromTo(split[controller.split], controller.duration, controller.from, controller.to, controller.delay, function(){ | |||
| split.revert(); | |||
| }); | |||
| $this.removeAttr('data-zanim-text'); | |||
| } | |||
| } | |||
| triggerAnimation(); | |||
| $(window).on('scroll', triggerAnimation); | |||
| } | |||
| }(jQuery)); | |||
| (function($){ | |||
| "use strict"; | |||
| $.fn.inertia = function(controller) { | |||
| var $this = this, | |||
| options = $this.data("inertia"), | |||
| offset = $this.offset().top, | |||
| winHeight = $(window).height(), | |||
| currentPosition = $(window).scrollTop(), | |||
| y = 0, | |||
| previousPosition = 0; | |||
| // function getController(el, options){ | |||
| // var $this = $(el), | |||
| // controller = $this.data("zanim"); | |||
| // if (options === undefined) { | |||
| // options = {delay: 0, duration: 0.8, ease: 'Expo.easeOut', from:{}, to:{}}; | |||
| // } | |||
| // //populating the controller | |||
| // controller.delay || (controller.delay = options.delay); | |||
| // controller.duration || (controller.duration = options.duration); | |||
| // controller.from || (controller.from = options.from); | |||
| // controller.to || (controller.to = options.to); | |||
| // controller.ease && (controller.to.ease = controller.ease) && controller.to.ease || (controller.to.ease = options.ease); | |||
| // return controller; | |||
| // } | |||
| // function isScrolledIntoView($this){ | |||
| // var $elem = $this, | |||
| // windowHeight = $(window).height(), | |||
| // elemTop = $elem.offset().top, | |||
| // elemHeight = $elem.height(); | |||
| // windowScrollTop = $(window).scrollTop(); | |||
| // if(elemTop <= (windowScrollTop + windowHeight) && windowScrollTop <= (elemTop + elemHeight)){ | |||
| // return true; | |||
| // } | |||
| // return false; | |||
| // } | |||
| options && (controller = options) || !controller && (controller = {}); | |||
| controller.weight || (controller.weight = 2); | |||
| controller.duration || (controller.duration = 0.7); | |||
| controller.ease || (controller.ease = "Power3.easeOut"); | |||
| $this.css('transform', 'translateY('+(($this.offset().top - $(window).scrollTop())*100/winHeight)+'px)'); | |||
| $(window).on("resize scroll", function(){ | |||
| currentPosition = $(window).scrollTop(); | |||
| y = controller.weight * (offset - currentPosition)*100/winHeight; | |||
| (currentPosition == previousPosition) || TweenMax.to($this, controller.duration, {y: y, ease: controller.ease}); | |||
| previousPosition = currentPosition; | |||
| }); | |||
| } | |||
| }(jQuery)); | |||
| @ -0,0 +1,340 @@ | |||
| window.google = window.google || {}; | |||
| google.maps = google.maps || {}; | |||
| (function() { | |||
| var modules = google.maps.modules = {}; | |||
| google.maps.__gjsload__ = function(name, text) { | |||
| modules[name] = text; | |||
| }; | |||
| google.maps.Load = function(apiLoad) { | |||
| delete google.maps.Load; | |||
| apiLoad([0.009999999776482582,[null,[["https://khms0.googleapis.com/kh?v=943\u0026hl=en-GB\u0026","https://khms1.googleapis.com/kh?v=943\u0026hl=en-GB\u0026"],null,null,null,1,"943",["https://khms0.google.com/kh?v=943\u0026hl=en-GB\u0026","https://khms1.google.com/kh?v=943\u0026hl=en-GB\u0026"]],null,null,null,null,[["https://cbks0.googleapis.com/cbk?","https://cbks1.googleapis.com/cbk?"]],[["https://khms0.googleapis.com/kh?v=151\u0026hl=en-GB\u0026","https://khms1.googleapis.com/kh?v=151\u0026hl=en-GB\u0026"],null,null,null,null,"151",["https://khms0.google.com/kh?v=151\u0026hl=en-GB\u0026","https://khms1.google.com/kh?v=151\u0026hl=en-GB\u0026"]],null,null,null,null,null,null,null,[["https://streetviewpixels-pa.googleapis.com/v1/thumbnail?hl=en-GB\u0026","https://streetviewpixels-pa.googleapis.com/v1/thumbnail?hl=en-GB\u0026"]]],["en-GB","US",null,0,null,null,"https://maps.gstatic.com/mapfiles/",null,"https://maps.googleapis.com","https://maps.googleapis.com",null,"https://maps.google.com",null,"https://maps.gstatic.com/maps-api-v3/api/images/","https://www.google.com/maps",null,"https://www.google.com",1,"https://maps.googleapis.com/maps_api_js_slo/log?hasfast=true",0,1],["https://maps.googleapis.com/maps-api-v3/api/js/52/5/intl/en_gb","3.52.5"],[2187491951],null,null,null,[112],null,null,"initMap",null,null,1,"https://khms.googleapis.com/mz?v=943\u0026","AIzaSyCoK8GIrOHzHwnzHCyqrdtmTpUWcdrTTD8","https://earthbuilder.googleapis.com","https://earthbuilder.googleapis.com",null,"https://mts.googleapis.com/maps/vt/icon",[["https://maps.googleapis.com/maps/vt"],["https://maps.googleapis.com/maps/vt"],null,null,null,null,null,null,null,null,null,null,["https://www.google.com/maps/vt"],"/maps/vt",638000000,638,638377311],2,500,[null,null,null,null,"https://www.google.com/maps/preview/log204","","https://static.panoramio.com.storage.googleapis.com/photos/",["https://geo0.ggpht.com/cbk","https://geo1.ggpht.com/cbk","https://geo2.ggpht.com/cbk","https://geo3.ggpht.com/cbk"],"https://maps.googleapis.com/maps/api/js/GeoPhotoService.GetMetadata","https://maps.googleapis.com/maps/api/js/GeoPhotoService.SingleImageSearch",["https://lh3.ggpht.com/","https://lh4.ggpht.com/","https://lh5.ggpht.com/","https://lh6.ggpht.com/"],"https://streetviewpixels-pa.googleapis.com/v1/tile"],null,null,null,null,"/maps/api/js/ApplicationService.GetEntityDetails",0,null,null,null,null,[],["52.5"],1,0,[1],null,null,1,0.009999999776482582], loadScriptTime); | |||
| }; | |||
| var loadScriptTime = (new Date).getTime(); | |||
| })(); | |||
| // inlined | |||
| (function(_){/* | |||
| Math.uuid.js (v1.4) | |||
| http://www.broofa.com | |||
| mailto:robert@broofa.com | |||
| Copyright (c) 2010 Robert Kieffer | |||
| Dual licensed under the MIT and GPL licenses. | |||
| */ | |||
| /* | |||
| Copyright The Closure Library Authors. | |||
| SPDX-License-Identifier: Apache-2.0 | |||
| */ | |||
| /* | |||
| SPDX-License-Identifier: Apache-2.0 | |||
| */ | |||
| var baa,caa,la,daa,oa,qa,ra,sa,gaa,wa,xa,iaa,Ca,Ea,Ia,laa,maa,Ta,ib,saa,Wb,dc,Aaa,Daa,Eaa,Faa,Gaa,Haa,Iaa,Jaa,Kaa,Laa,Maa,Naa,Oaa,Paa,Raa,Taa,Vaa,Uaa,pd,Yaa,Zaa,$aa,aba,bba,Ed,cba,Nd,le,fba,Ae,Ce,hba,Te,jba,lba,mba,kba,cf,pba,qba,tba,sba,uba,vba,nba,oba,df,rba,wba,yba,wf,Rf,Tf,Qf,Bba,Vf,Wf,jg,og,wg,Iba,Rg,Ug,Vg,Wg,Xg,ah,mh,Jba,ph,Mba,rh,Oba,sh,th,Pba,Rba,Uba,Tba,Ah,Gh,Hh,Xba,Fh,Mh,Oh,Uh,Vh,Yba,Wh,Xh,Zba,aca,bca,cca,ai,$h,fca,ica,gca,hca,jca,lca,kca,fi,qca,pca,uca,mi,ni,oi,pi,wca,xca,Cca,zca,Bca,si, | |||
| Ai,Dca,Fca,Gca,Kca,Lca,Bi,Mca,Jca,Hca,Ica,Oca,Nca,Ei,Rca,Qca,Uca,Sca,Tca,Vca,Mi,Yca,Vi,ada,Xi,bda,Zi,dda,fda,gda,ida,fj,gj,jda,oj,lda,mda,nda,rj,oda,pda,Dj,uda,tda,qda,rda,vda,Gj,Hj,Jj,Kj,zda,Ada,Bda,Cda,Oj,Eda,Dda,Fda,Qj,Rj,Tj,Uj,Jda,Wj,ak,dk,ck,gk,hk,ik,Vda,Yda,aea,dea,rk,eea,fea,hea,gea,iea,uk,jea,qea,pea,lea,mea,oea,ia,ha,ca,vk,Ma,kaa;_.ba=function(a){return function(){return _.aaa[a].apply(this,arguments)}};baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}; | |||
| caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};_.v=function(a,b,c){if(!c||null!=a){c=ca[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}}; | |||
| la=function(a,b,c){if(b)a:{var d=a.split(".");a=1===d.length;var e=d[0],f;!a&&e in _.x?f=_.x:f=_.da;for(e=0;e<d.length-1;e++){var g=d[e];if(!(g in f))break a;f=f[g]}d=d[d.length-1];c=ha&&"es6"===c?f[d]:null;b=b(c);null!=b&&(a?ia(_.x,d,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===ca[d]&&(a=1E9*Math.random()>>>0,ca[d]=ha?_.da.Symbol(d):"$jscp$"+a+"$"+d),ia(f,ca[d],{configurable:!0,writable:!0,value:b})))}};daa=function(a){a={next:a};a[_.v(_.x.Symbol,"iterator")]=function(){return this};return a}; | |||
| _.A=function(a){var b="undefined"!=typeof _.x.Symbol&&_.v(_.x.Symbol,"iterator")&&a[_.v(_.x.Symbol,"iterator")];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};_.ma=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};_.na=function(a){return a instanceof Array?a:_.ma(_.A(a))};oa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; | |||
| _.B=function(a,b){a.prototype=eaa(b.prototype);a.prototype.constructor=a;if(_.pa)(0,_.pa)(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.ye=b.prototype};qa=function(){this.F=!1;this.C=null;this.j=void 0;this.h=1;this.H=this.m=0;this.D=null};ra=function(a){if(a.F)throw new TypeError("Generator is already running");a.F=!0};sa=function(a,b){a.D={Hw:b,Mx:!0};a.h=a.m||a.H}; | |||
| _.ta=function(a,b,c){a.h=c;return{value:b}};_.ua=function(a,b){a.h=b;a.m=0};_.va=function(a){a.m=0;a.D=null};_.faa=function(a){this.h=new qa;this.j=a};gaa=function(a,b){ra(a.h);var c=a.h.C;if(c)return wa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.h.return);a.h.return(b);return xa(a)}; | |||
| wa=function(a,b,c,d){try{var e=b.call(a.h.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.h.F=!1,e;var f=e.value}catch(g){return a.h.C=null,sa(a.h,g),xa(a)}a.h.C=null;d.call(a.h,f);return xa(a)};xa=function(a){for(;a.h.h;)try{var b=a.j(a.h);if(b)return a.h.F=!1,{value:b.value,done:!1}}catch(c){a.h.j=void 0,sa(a.h,c)}a.h.F=!1;if(a.h.D){b=a.h.D;a.h.D=null;if(b.Mx)throw b.Hw;return{value:b.return,done:!0}}return{value:void 0,done:!0}}; | |||
| _.haa=function(a){this.next=function(b){ra(a.h);a.h.C?b=wa(a,a.h.C.next,b,a.h.G):(a.h.G(b),b=xa(a));return b};this.throw=function(b){ra(a.h);a.h.C?b=wa(a,a.h.C["throw"],b,a.h.G):(sa(a.h,b),b=xa(a));return b};this.return=function(b){return gaa(a,b)};this[_.v(_.x.Symbol,"iterator")]=function(){return this}}; | |||
| iaa=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new _.x.Promise(function(d,e){function f(g){g.done?d(g.value):_.x.Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.za=function(a){return iaa(new _.haa(new _.faa(a)))};_.Aa=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}; | |||
| Ca=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};Ea=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[_.v(_.x.Symbol,"iterator")]=function(){return e};return e}; | |||
| Ia=function(a){return a?a:_.v(Array.prototype,"fill")};_.Ja=function(a,b){a=a.split(".");b=b||_.C;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};_.jaa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};_.Ka=function(a){var b=_.jaa(a);return"array"==b||"object"==b&&"number"==typeof a.length};_.La=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}; | |||
| _.Na=function(a){return Object.prototype.hasOwnProperty.call(a,Ma)&&a[Ma]||(a[Ma]=++kaa)};laa=function(a,b,c){return a.call.apply(a.bind,arguments)};maa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}; | |||
| _.Oa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?_.Oa=laa:_.Oa=maa;return _.Oa.apply(null,arguments)};_.Pa=function(){return Date.now()};_.Qa=function(a,b){a=a.split(".");var c=_.C;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}; | |||
| _.Sa=function(a,b){function c(){}c.prototype=b.prototype;a.ye=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Jl=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};Ta=function(a){return a};_.Ua=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Ua);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}; | |||
| _.Wa=function(){if(void 0===Va){var a=null,b=_.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("google-maps-api#html",{createHTML:Ta,createScript:Ta,createScriptURL:Ta})}catch(c){_.C.console&&_.C.console.error(c.message)}Va=a}else Va=a}return Va};_.Xa=function(a,b){this.h=a===naa&&b||"";this.j=oaa};_.Za=function(a){return a instanceof _.Xa&&a.constructor===_.Xa&&a.j===oaa?a.h:"type_error:Const"};_.$a=function(a){return new _.Xa(naa,a)};_.bb=function(a,b){this.h=b===paa?a:""}; | |||
| _.cb=function(a){return a instanceof _.bb&&a.constructor===_.bb?a.h:"type_error:TrustedResourceUrl"};_.db=function(a){var b=_.Wa();a=b?b.createScriptURL(a):a;return new _.bb(a,paa)};_.eb=function(a){for(var b in a)return!1;return!0};_.fb=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<qaa.length;f++)c=qaa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};_.raa=function(){return null};_.gb=function(){};_.hb=function(a){return a}; | |||
| ib=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};_.jb=function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};_.kb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)}; | |||
| saa=function(a,b){for(var c=a.length,d=[],e=0,f="string"===typeof a?a.split(""):a,g=0;g<c;g++)if(g in f){var h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d};_.taa=function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};_.mb=function(a,b){return 0<=_.jb(a,b)};_.ob=function(a,b){b=_.jb(a,b);var c;(c=0<=b)&&_.nb(a,b);return c};_.nb=function(a,b){Array.prototype.splice.call(a,b,1)};_.pb=function(a,b){return-1!=a.indexOf(b)}; | |||
| _.qb=function(a,b){this.h=b===uaa?a:""};_.rb=function(a){return new _.qb(a,uaa)};_.tb=function(a,b){this.h=b===_.sb?a:"";this.xg=!0};_.vb=function(a,b){this.h=b===_.ub?a:"";this.xg=!0};_.xb=function(){var a=_.C.navigator;return a&&(a=a.userAgent)?a:""};_.Ab=function(a){return yb?_.zb?_.zb.brands.some(function(b){return(b=b.brand)&&_.pb(b,a)}):!1:!1};_.Bb=function(a){return _.pb(_.xb(),a)};_.Db=function(){return yb?!!_.zb&&0<_.zb.brands.length:!1};_.Eb=function(){return _.Db()?!1:_.Bb("Opera")}; | |||
| _.Fb=function(){return _.Db()?!1:_.Bb("Trident")||_.Bb("MSIE")};_.Hb=function(){return _.Db()?!1:_.Bb("Edge")};_.vaa=function(){return _.Db()?_.Ab("Microsoft Edge"):_.Bb("Edg/")};_.Ib=function(){return _.Bb("Firefox")||_.Bb("FxiOS")};_.Kb=function(){return _.Bb("Safari")&&!(_.Jb()||(_.Db()?0:_.Bb("Coast"))||_.Eb()||_.Hb()||_.vaa()||(_.Db()?_.Ab("Opera"):_.Bb("OPR"))||_.Ib()||_.Bb("Silk")||_.Bb("Android"))};_.Jb=function(){return _.Db()?_.Ab("Chromium"):(_.Bb("Chrome")||_.Bb("CriOS"))&&!_.Hb()||_.Bb("Silk")}; | |||
| _.Nb=function(){return _.Bb("Android")&&!(_.Jb()||_.Ib()||_.Eb()||_.Bb("Silk"))};_.Qb=function(a,b){this.h=b===Pb?a:"";this.xg=!0};_.Rb=function(a){return a instanceof _.Qb&&a.constructor===_.Qb?a.h:"type_error:SafeHtml"};_.Sb=function(a){var b=_.Wa();a=b?b.createHTML(a):a;return new _.Qb(a,Pb)};_.waa=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^_.Pa()).toString(36)};_.Ub=function(a){return a.match(xaa)}; | |||
| _.Vb=function(a){_.C.setTimeout(function(){throw a;},0)};Wb=function(){return yb?!!_.zb&&!!_.zb.platform:!1};_.yaa=function(){return Wb()?"Android"===_.zb.platform:_.Bb("Android")};_.Zb=function(){return _.Bb("iPhone")&&!_.Bb("iPod")&&!_.Bb("iPad")};_.$b=function(){return Wb()?"macOS"===_.zb.platform:_.Bb("Macintosh")};_.ac=function(){return Wb()?"Windows"===_.zb.platform:_.Bb("Windows")};_.zaa=function(){return Wb()?"Chrome OS"===_.zb.platform:_.Bb("CrOS")}; | |||
| _.cc=function(){return _.pb(_.xb().toLowerCase(),"webkit")&&!_.Bb("Edge")};dc=function(a){dc[" "](a);return a};Aaa=function(){var a=_.C.document;return a?a.documentMode:void 0}; | |||
| _.gc=function(a,b){void 0===b&&(b=0);_.Baa();b=Caa[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var g=a[e],h=a[e+1],k=a[e+2],l=b[g>>2];g=b[(g&3)<<4|h>>4];h=b[(h&15)<<2|k>>6];k=b[k&63];c[f++]=""+l+g+h+k}l=0;k=d;switch(a.length-e){case 2:l=a[e+1],k=b[(l&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|l>>4]+k+d}return c.join("")}; | |||
| _.Baa=function(){if(!_.hc){_.hc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Caa[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===_.hc[f]&&(_.hc[f]=e)}}}};_.ic=function(a){throw Error("unexpected value "+a+"!");};Daa=function(a,b){void 0===a.lm?Object.defineProperties(a,{lm:{value:b,configurable:!0,writable:!0,enumerable:!1}}):a.lm|=b};Eaa=function(a){return a.lm||0}; | |||
| Faa=function(a,b,c,d){Object.defineProperties(a,{Do:{value:b,configurable:!0,writable:!0,enumerable:!1},ys:{value:c,configurable:!0,writable:!0,enumerable:!1},ws:{value:d,configurable:!0,writable:!0,enumerable:!1},xs:{value:void 0,configurable:!0,writable:!0,enumerable:!1}})};Gaa=function(a){return null!=a.Do};Haa=function(a){return a.Do};Iaa=function(a,b){a.Do=b};Jaa=function(a){return a.ws};Kaa=function(a,b){a.ws=b};Laa=function(a){return a.xs};Maa=function(a,b){a.xs=b};Naa=function(a){return a.ys}; | |||
| Oaa=function(a,b){return a.ys=b};_.jc=function(a,b){this.h=a;this.j=b};_.mc=function(a){var b=a.length-1,c=a[b],d=_.lc(c)?c:null;d||b++;return function(e){var f;e<=b&&(f=a[e-1]);null==f&&d&&(f=d[e]);return f}};_.nc=function(){};_.oc=function(){};_.pc=function(){};_.uc=function(a,b){rc(a,b);return b};_.lc=function(a){return null!=a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}; | |||
| _.wc=function(a,b,c,d){b=Math.max(b||2147483647,a.length+1);var e=a.length;e=e&&a[e-1];if(_.lc(e)){b=a.length;for(var f in e){var g=Number(f);g<b&&(a[g-1]=e[f],delete e[g])}}(0,_.vc)(a,b,d,c);return a};_.yc=function(a){var b=(0,_.xc)(a);return b>a.length?null:a[b-1]};_.D=function(a,b,c){var d=(0,_.xc)(a);if(b<d)a[b-1]=c;else{var e=_.yc(a);e?e[b]=c:(e={},a[d-1]=(e[b]=c,e))}};_.zc=function(a,b){var c=(0,_.xc)(a);if(b<c)return a[b-1];var d;return null==(d=_.yc(a))?void 0:d[b]}; | |||
| _.Ac=function(a,b,c){a=_.zc(a,b);return null==a?c:a};_.Ec=function(a,b,c,d){var e=a;if(Array.isArray(a))c=Array(a.length),(0,_.Bc)(a)?_.Cc(_.wc(c,(0,_.xc)(a),(0,_.Dc)(a)),a):Paa(c,a,b),e=c;else if(null!==a&&"object"===typeof a){if(a instanceof Uint8Array||a instanceof _.jc)return a;if(a instanceof _.nc)return a.jk(c,d);d={};_.Qaa(d,a,b,c);e=d}return e}; | |||
| Paa=function(a,b,c,d){(0,_.Fc)(b)&1&&(0,_.Jc)(a,1);for(var e=0,f=0;f<b.length;++f)if(b.hasOwnProperty(f)){var g=b[f];null!=g&&(e=f+1);a[f]=_.Ec(g,c,d,f+1)}c&&(a.length=e)};_.Qaa=function(a,b,c,d){for(var e in b)if(b.hasOwnProperty(e)){var f=void 0;d&&(f=+e);a[e]=_.Ec(b[e],c,d,f)}};_.Cc=function(a,b){if(a!==b){(0,_.Bc)(b);(0,_.Bc)(a);a.length=0;var c=(0,_.Dc)(b);null!=c&&(0,_.Kc)(a,c);c=(0,_.xc)(b);b.length>=c&&Lc(a,c);(c=(0,_.Mc)(b))&&_.uc(a,c.Nl());a.length=b.length;Paa(a,b,!0,b)}}; | |||
| _.Nc=function(a,b){var c=a.length-1;if(!(0>c)){var d=a[c];if(_.lc(d)){c--;for(var e in d){var f=d[e];if(null!=f&&b(f,+e))return}}for(;0<=c&&(d=a[c],null==d||!b(d,c+1));c--);}};_.Tc=function(){};_.Uc=function(a){a=a.j;a.h||(a.h=(0,a.j)());return a.h};_.Vc=function(){};_.Wc=function(a,b){this.lf=a|0;this.oe=b|0};_.$c=function(){Zc||(Zc=new _.Wc(0,0));return Zc};_.ad=function(a,b){return new _.Wc(a,b)};_.cd=function(a){return 0<a?new _.Wc(a,a/4294967296):0>a?_.bd(-a,-a/4294967296):_.$c()}; | |||
| _.ed=function(a){return 16>a.length?_.cd(Number(a)):_.dd?(a=BigInt(a),new _.Wc(Number(a&BigInt(4294967295)),Number(a>>BigInt(32)))):Raa(a)};Raa=function(a){function b(f,g){f=Number(a.slice(f,g));e*=1E6;d=1E6*d+f;4294967296<=d&&(e+=d/4294967296|0,d%=4294967296)}var c="-"===a[0];c&&(a=a.slice(1));var d=0,e=0;b(-24,-18);b(-18,-12);b(-12,-6);b(-6);return(c?_.bd:_.ad)(d,e)};_.Saa=function(a){if(_.dd)return BigInt(a.oe>>>0)<<BigInt(32)|BigInt(a.lf>>>0)}; | |||
| _.fd=function(a){if(_.dd){var b=a.lf>>>0,c=a.oe>>>0;return 2097151>=c?String(4294967296*c+b):String(_.Saa(a))}b=a.lf>>>0;c=a.oe>>>0;2097151>=c?b=String(4294967296*c+b):(a=(b>>>24|c<<8)&16777215,c=c>>16&65535,b=(b&16777215)+6777216*a+6710656*c,a+=8147497*c,c*=2,1E7<=b&&(a+=Math.floor(b/1E7),b%=1E7),1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),b=c+Taa(a)+Taa(b));return b};Taa=function(a){a=String(a);return"0000000".slice(a.length)+a};_.bd=function(a,b){a|=0;b=~b;a?a=~a+1:b+=1;return _.ad(a,b)}; | |||
| _.E=function(a,b){var c=_.zc(a,b);return Array.isArray(c)?c.length:c instanceof _.pc?c.getSize(a,b):0};_.hd=function(a,b,c){var d=_.zc(a,b);d instanceof _.pc&&(d=_.gd(a,b));a=d;return null==a?void 0:a[c]};_.gd=function(a,b){var c=_.zc(a,b);if(Array.isArray(c))return c;c instanceof _.pc?c=c.pe(a,b):(c=[],_.D(a,b,c));return c};_.id=function(a,b,c){_.gd(a,b).push(c)};_.jd=function(a,b){Uaa(new Vaa(a),b)}; | |||
| Vaa=function(a){"string"===typeof a?this.h=a:(this.h=a.M,this.O=a.O);a=this.h;var b=Waa[a];if(!b){Waa[a]=b=[];for(var c=kd.lastIndex=0,d;d=kd.exec(a);)d=d[0],b[c++]=kd.lastIndex-d.length,b[c++]=parseInt(d,10);b[c]=a.length}this.j=b}; | |||
| Uaa=function(a,b){for(var c={Md:15,Rb:0,Kj:a.O?a.O[0]:"",Cj:!1,Go:!1,Hs:!1,Vt:!1,Wl:!1,gy:!1},d=1,e=a.j[0],f=1,g=0,h=a.h.length;g<h;){c.Rb++;g===e&&(c.Rb=a.j[f++],e=a.j[f++],g+=Math.ceil(_.v(Math,"log10").call(Math,c.Rb+1)));var k=a.h.charCodeAt(g++);if(c.Hs=42===k)k=a.h.charCodeAt(g++);if(c.Vt=44===k)k=a.h.charCodeAt(g++);if(43===k||38===k){var l=a.h.substring(g);g=h;if(l=_.od&&_.od[l]||null)for(l=l[_.v(_.x.Symbol,"iterator")](),c.Wl=!0,c.gy=38===k,k=l.next();!k.done;k=l.next())k=k.value,c.Rb=k.Rb, | |||
| k=_.Uc(k),"string"===typeof k?pd(a,c,k.charCodeAt(0),b):k&&(c.Kj=k.O[0],pd(a,c,109,b))}else pd(a,c,k,b),17===c.Md&&d<a.O.length&&(c.Kj=a.O[d++])}};pd=function(a,b,c,d){var e=c&-33;b.Md=Xaa[e];b.Cj=c===e;b.Go=0<=e&&0<(4321&1<<e-75);d(b,a)}; | |||
| Yaa=function(a,b){if(a===b)return!0;var c=_.mc(b),d=!1;_.Nc(a,function(g,h){h=c(h);return d=!(g===h||null==g&&null==h||!(!0!==g&&1!==g||!0!==h&&1!==h)||!(!1!==g&&0!==g||!1!==h&&0!==h)||Array.isArray(g)&&Array.isArray(h)&&Yaa(g,h))});if(d)return!1;var e=_.mc(a),f=!1;_.Nc(b,function(g,h){return f=null==e(h)});return!f}; | |||
| Zaa=function(a){return JSON.stringify(a,function(b,c){switch(typeof c){case "boolean":case "string":case "undefined":return c;case "number":return isNaN(c)||Infinity===c||-Infinity===c?String(c):c;case "object":if(Array.isArray(c)){b=c.length;var d=c[b-1];if(_.lc(d)){b--;var e=!(0,_.Mc)(c),f=0;d=_.A(_.v(Object,"entries").call(Object,d));for(var g=d.next();!g.done;g=d.next()){var h=_.A(g.value);g=h.next().value;h=h.next().value;if(null!=h){f++;if(e)break;h instanceof _.nc&&h.pe(c,+g)}}if(f)return c}for(;b&& | |||
| null==c[b-1];)b--;return b===c.length?c:c.slice(0,b)}switch(null==c?void 0:c.constructor){case _.jc:return c.Uh();case Uint8Array:return(new _.jc(c,null)).Uh();default:return c instanceof _.nc?c.pe(this,+b+1):c}}})};_.F=function(a,b){a=a||[];(0,_.Bc)(a)?(b&&b>a.length&&!_.yc(a)&&Lc(a,b),qd(a,this)):_.wc(a,b,void 0,this);this.o=a};$aa=function(){};_.rd=function(a,b,c){return!!_.Ac(a,b,c||!1)};_.I=function(a,b,c){return _.Ac(a,b,c||0)};_.J=function(a,b,c){return _.sd(a,b,c)||new c}; | |||
| _.K=function(a,b,c){var d=_.sd(a,b,c);if(!d){var e=[];d=new c(e);_.D(a,b,e)}return d};_.ud=function(a,b,c){c=new c;_.id(a,b,_.td(c));return c};_.sd=function(a,b,c){var d=_.zc(a,b);if(d)return d instanceof _.oc&&(d=d.pe(a,b)),_.vd(d,c)};_.vd=function(a,b){var c=(0,_.wd)(a);return null==c?new b(a):c};_.td=function(a){(0,_.wd)(a.o);return a.o};_.xd=function(a,b){return _.Ac(a,b,"")};aba=function(a){_.F.call(this,a)};_.Cd=function(a){return _.xd(a.o,1)};_.Dd=function(a){return _.xd(a.o,2)}; | |||
| bba=function(a){_.F.call(this,a)};Ed=function(a){_.F.call(this,a)};_.Fd=function(a){_.F.call(this,a)};_.Gd=function(a,b,c){return+_.Ac(a,b,c||0)};cba=function(a){_.F.call(this,a,46)};_.Hd=function(a){return _.J(a.o,3,aba)};_.Ld=function(a){return _.J(a.o,4,bba)};_.Md=function(a){return _.xd(a.o,17)};Nd=function(a,b,c){a=Error.call(this,b+": "+c+": "+a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.endpoint=b;this.code=c;this.name="MapsNetworkError"}; | |||
| _.Od=function(a,b,c){Nd.call(this,a,b,c);this.name="MapsServerError"};_.Pd=function(a,b,c){Nd.call(this,a,b,c);this.name="MapsRequestError"};_.Qd=function(a){return a*Math.PI/180};_.Rd=function(a){return 180*a/Math.PI};_.Sd=function(a,b){if(void 0!==a.tagName){if("script"===a.tagName.toLowerCase())throw Error("");if("style"===a.tagName.toLowerCase())throw Error("");}a.innerHTML=_.Rb(b)}; | |||
| _.dba=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};_.Td=function(a){return a?a.length:0};_.$d=function(a,b){b&&_.Ud(b,function(c){a[c]=b[c]})};_.ae=function(a,b,c){null!=b&&(a=Math.max(a,b));null!=c&&(a=Math.min(a,c));return a};_.be=function(a,b,c){a>=b&&a<c||(c-=b,a=((a-b)%c+c)%c+b);return a}; | |||
| _.ce=function(a,b,c){return Math.abs(a-b)<=(c||1E-9)};_.de=function(a,b){var c=[];if(!a)return c;for(var d=_.Td(a),e=0;e<d;++e)c.push(b(a[e],e));return c};_.ee=function(a){return"number"===typeof a};_.fe=function(a){return"object"===typeof a};_.ge=function(a,b){return null==a?b:a};_.he=function(a){return"string"===typeof a};_.eba=function(a){return a===!!a};_.Ud=function(a,b){if(a)for(var c in a)a.hasOwnProperty(c)&&b(c,a[c])};le=function(a,b){if(Object.prototype.hasOwnProperty.call(a,b))return a[b]}; | |||
| _.me=function(){var a=_.Aa.apply(0,arguments);_.C.console&&_.C.console.error&&_.C.console.error.apply(_.C.console,_.na(a))};_.ne=function(a){for(var b=_.A(_.v(Object,"entries").call(Object,a)),c=b.next();!c.done;c=b.next()){var d=_.A(c.value);c=d.next().value;d=d.next().value;void 0===d&&delete a[c]}};_.pe=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.message=a;this.name="InvalidValueError";oe&&this.captureStackTrace()}; | |||
| _.qe=function(a,b){var c="";if(null!=b){if(!(b instanceof _.pe))return b;c=": "+b.message}return new _.pe(a+c)};_.re=function(a){if(!(a instanceof _.pe))throw a;_.me(a.name+": "+a.message)}; | |||
| _.se=function(a,b,c){c=c?c+": ":"";return function(d){if(!d||!_.fe(d))throw _.qe(c+"not an Object");var e={},f;for(f in d)if(e[f]=d[f],!b&&!a[f])throw _.qe(c+"unknown property "+f);for(var g in a)try{var h=a[g](e[g]);if(void 0!==h||Object.prototype.hasOwnProperty.call(d,g))e[g]=h}catch(k){throw _.qe(c+"in property "+g,k);}return e}};fba=function(a){try{return"object"===typeof a&&null!=a&&!!("cloneNode"in a)}catch(b){return!1}}; | |||
| _.te=function(a,b,c){return c?function(d){if(d instanceof a)return d;try{return new a(d)}catch(e){throw _.qe("when calling new "+b,e);}}:function(d){if(d instanceof a)return d;throw _.qe("not an instance of "+b);}};_.ue=function(a){return function(b){for(var c in a)if(a[c]===b)return b;throw _.qe(b+" is not an accepted value");}};_.ve=function(a){return function(b){if(!Array.isArray(b))throw _.qe("not an Array");return _.de(b,function(c,d){try{return a(c)}catch(e){throw _.qe("at index "+d,e);}})}}; | |||
| _.we=function(a,b){return function(c){if(a(c))return c;throw _.qe(b||""+c);}};_.xe=function(a){return function(b){for(var c=[],d=0,e=a.length;d<e;++d){var f=a[d];try{oe=!1,(f.Vp||f)(b)}catch(g){if(!(g instanceof _.pe))throw g;c.push(g.message);continue}finally{oe=!0}return(f.then||f)(b)}throw _.qe(c.join("; and "));}};_.ye=function(a,b){return function(c){return b(a(c))}};_.ze=function(a){return function(b){return null==b?b:a(b)}}; | |||
| Ae=function(a){return function(b){if(b&&null!=b[a])return b;throw _.qe("no "+a+" property");}};_.Be=function(a,b,c){try{return c()}catch(d){throw _.qe(a+": `"+b+"` invalid",d);}};Ce=function(){}; | |||
| _.De=function(a,b,c){c=void 0===c?!1:c;var d;a instanceof _.De?d=a.toJSON():d=a;if(!d||void 0===d.lat&&void 0===d.lng){var e=d;var f=b}else{void 0!=b&&void 0!=c&&console.warn("The second argument to new LatLng() was ignored and can be removed.");try{gba(d),c=c||!!b,f=d.lng,e=d.lat}catch(g){_.re(g)}}e-=0;f-=0;c||(e=_.ae(e,-90,90),180!=f&&(f=_.be(f,-180,180)));this.lat=function(){return e};this.lng=function(){return f}};_.Ee=function(a){return _.Qd(a.lat())};_.Fe=function(a){return _.Qd(a.lng())}; | |||
| hba=function(a,b){b=Math.pow(10,b);return Math.round(a*b)/b};_.Re=function(a){var b=a;_.Pe(a)&&(b={lat:a.lat(),lng:a.lng()});try{var c=iba(b);return _.Pe(a)?a:_.Qe(c)}catch(d){throw _.qe("not a LatLng or LatLngLiteral with finite coordinates",d);}};_.Pe=function(a){return a instanceof _.De};_.Qe=function(a){try{if(_.Pe(a))return a;a=gba(a);return new _.De(a.lat,a.lng)}catch(b){throw _.qe("not a LatLng or LatLngLiteral",b);}};_.Se=function(a){this.h=_.Qe(a)}; | |||
| Te=function(a){if(a instanceof Ce)return a;try{return new _.Se(_.Qe(a))}catch(b){}throw _.qe("not a Geometry or LatLng or LatLngLiteral object");};_.Ve=function(a){return _.Ue(document,a)};_.Ue=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};_.We=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};_.Xe=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; | |||
| _.Ye=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};_.Ze=function(a){this.h=a||_.C.document||document};_.$e=function(a,b){return _.Ue(a.h,b)};jba=function(a){a=_.af(a);return _.db(a)};_.af=function(a){return null===a?"null":void 0===a?"undefined":a}; | |||
| lba=function(a,b){this.h=_.C.document;this.m=_.v(a,"includes").call(a,"%s")?a:kba([a,"%s"],_.$a("js"));this.j=!b||_.v(b,"includes").call(b,"%s")?b:kba([b,"%s"],_.$a("css.js"))};mba=function(a,b,c,d){var e=a.head;a=_.$e(new _.Ze(a),"SCRIPT");a.type="text/javascript";a.charset="UTF-8";a.async=!1;a.defer=!1;c&&(a.onerror=c);d&&(a.onload=d);a.src=_.cb(b);_.dba(a);e.appendChild(a)}; | |||
| kba=function(a,b){var c="";a=_.A(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.length&&"/"===d[0]?c=d:(c&&"/"!==c[c.length-1]&&(c+="/"),c+=d);return c+"."+_.Za(b)};_.bf=function(a){var b="km";if(a.km&&a.hasOwnProperty(b))return a.km;var c=new a;a.km=c;a.hasOwnProperty(b);return c};cf=function(){this.requestedModules={};this.j={};this.D={};this.h={};this.F=new _.x.Set;this.m=new nba;this.H=!1;this.C={}}; | |||
| pba=function(a,b,c,d){var e=void 0===e?null:e;var f=void 0===f?function(){}:f;var g=void 0===g?new lba(b,e):g;a.G=f;a.H=!!e;oba(a.m,c,d,g)};qba=function(a,b){a.C[b]=a.C[b]||{jw:!a.H};return a.C[b]};tba=function(a,b){var c=qba(a,b),d=c.hy;if(d&&c.jw&&(delete a.C[b],!a.h[b])){var e=a.D;df(a.m,function(f){var g=f.h[b]||[],h=e[b]=rba(g.length,function(){delete e[b];d(f.j);a.F.delete(b);sba(a,b)});g=_.A(g);for(var k=g.next();!k.done;k=g.next())a.h[k.value]&&h()})}}; | |||
| sba=function(a,b){df(a.m,function(c){c=c.C[b]||[];var d=a.j[b];delete a.j[b];for(var e=d?d.length:0,f=0;f<e;++f)try{d[f].tb(a.h[b])}catch(g){setTimeout(function(){throw g;})}c=_.A(c);for(d=c.next();!d.done;d=c.next())d=d.value,a.D[d]&&a.D[d]()})}; | |||
| uba=function(a,b){a.requestedModules[b]||(a.requestedModules[b]=!0,df(a.m,function(c){for(var d=c.h[b],e=d?d.length:0,f=0;f<e;++f){var g=d[f];a.h[g]||uba(a,g)}c.m.cm(b,function(h){for(var k=_.A(a.j[b]||[]),l=k.next();!l.done;l=k.next())(l=l.value.Je)&&l(h&&h.error||Error('Could not load "'+b+'".'));delete a.j[b];a.G&&a.G(b,h)},function(){a.F.has(b)||sba(a,b)})}))}; | |||
| vba=function(a,b,c){this.m=a;this.h=b;this.j=c;a={};c=_.A(_.v(Object,"keys").call(Object,b));for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=b[d],f=e.length,g=0;g<f;++g){var h=e[g];a[h]||(a[h]=[]);a[h].push(d)}}this.C=a};nba=function(){this.h=[]};oba=function(a,b,c,d){b=a.config=new vba(d,b,c);c=a.h.length;for(d=0;d<c;++d)a.h[d](b);a.h.length=0};df=function(a,b){a.config?b(a.config):a.h.push(b)};rba=function(a,b){if(a)return function(){--a||b()};b();return function(){}}; | |||
| _.nf=function(a){return new _.x.Promise(function(b,c){var d=cf.getInstance(),e=""+a;d.h[e]?b(d.h[e]):((d.j[e]=d.j[e]||[]).push({tb:b,Je:c}),uba(d,e))})};_.of=function(a,b){var c=cf.getInstance();a=""+a;if(c.h[a])throw Error("Module "+a+" has been provided more than once.");c.h[a]=b};_.rf=function(a){a=a||window.event;_.pf(a);_.qf(a)};_.pf=function(a){a.stopPropagation()};_.qf=function(a){a.preventDefault()};_.sf=function(a){a.handled=!0}; | |||
| _.tf=function(){throw new TypeError("google.maps.event is not a constructor");};_.L=function(a,b,c){return new _.uf(a,b,c,0)};wba=function(a,b){if(!a)return!1;b=(a=a.__e3_)&&a[b];return!!b&&!_.eb(b)};_.vf=function(a){a&&a.remove()};_.xf=function(a,b){_.Ud(wf(a,b),function(c,d){d&&d.remove()})};_.yf=function(a){_.Ud(wf(a),function(b,c){c&&c.remove()})}; | |||
| _.zf=function(a){if("__e3_"in a)throw Error("setUpNonEnumerableEventListening() was invoked after an event was registered.");Object.defineProperty(a,"__e3_",{value:{}})};_.Af=function(a,b,c,d){var e=d?4:1;a.addEventListener&&a.addEventListener(b,c,d);return new _.uf(a,b,c,e)};_.Kf=function(a,b,c,d){var e=_.Af(a,b,function(){e.remove();return c.apply(this,arguments)},d);return e};_.Lf=function(a,b,c,d){return _.L(a,b,(0,_.Oa)(d,c))}; | |||
| _.Mf=function(a,b,c){var d=_.L(a,b,function(){d.remove();return c.apply(this,arguments)});return d};_.Nf=function(a,b,c){return _.L(a,b,_.xba(b,c))};_.N=function(a,b){var c=_.Aa.apply(2,arguments);if(wba(a,b))for(var d=wf(a,b),e=_.A(_.v(Object,"keys").call(Object,d)),f=e.next();!f.done;f=e.next())(f=d[f.value])&&f.ne.apply(f.instance,c)};yba=function(a,b){a.__e3_||(a.__e3_={});a=a.__e3_;a[b]||(a[b]={});return a[b]}; | |||
| wf=function(a,b){a=a.__e3_||{};if(b)b=a[b]||{};else{b={};a=_.A(_.v(Object,"values").call(Object,a));for(var c=a.next();!c.done;c=a.next())_.$d(b,c.value)}return b};_.xba=function(a,b,c){return function(d){var e=[b,a].concat(_.na(arguments));_.N.apply(this,e);c&&_.sf.apply(null,arguments)}};_.uf=function(a,b,c,d,e){this.Dp=void 0===e?!0:e;this.instance=a;this.h=b;this.ne=c;this.j=d;this.id=++zba;yba(a,b)[this.id]=this;this.Dp&&_.N(this.instance,""+this.h+"_added")}; | |||
| _.Of=function(a){a=a||{};this.m=a.id;this.h=null;try{this.h=a.geometry?Te(a.geometry):null}catch(b){_.re(b)}this.j=a.properties||{}};_.Pf=function(a){return""+(_.La(a)?_.Na(a):a)};_.O=function(){};Rf=function(a,b){var c=b+"_changed";if(a[c])a[c]();else a.changed(b);c=Qf(a,b);for(var d in c){var e=c[d];Rf(e.rj,e.nf)}_.N(a,b.toLowerCase()+"_changed")};_.Sf=function(a){return Aba[a]||(Aba[a]=a.substr(0,1).toUpperCase()+a.substr(1))};Tf=function(a){a.gm_accessors_||(a.gm_accessors_={});return a.gm_accessors_}; | |||
| Qf=function(a,b){a.gm_bindings_||(a.gm_bindings_={});a.gm_bindings_.hasOwnProperty(b)||(a.gm_bindings_[b]={});return a.gm_bindings_[b]};_.Uf=function(a){this.__gm=a};Bba=function(){this.h={};this.m={};this.j={}};Vf=function(){this.h={}};Wf=function(a){var b=this;this.h=new Vf;_.Mf(a,"addfeature",function(){_.nf("data").then(function(c){c.Rv(b,a,b.h)})})};_.Xf=function(a){this.h=[];try{this.h=Cba(a)}catch(b){_.re(b)}};_.Zf=function(a){this.h=(0,_.Yf)(a)};_.$f=function(a){this.h=(0,_.Yf)(a)}; | |||
| _.eg=function(a){this.h=Dba(a)};_.fg=function(a){this.h=(0,_.Yf)(a)};_.gg=function(a){this.h=Eba(a)};_.hg=function(a){this.h=Fba(a)}; | |||
| _.Gba=function(a,b,c){function d(u){if(!u)throw _.qe("not a Feature");if("Feature"!=u.type)throw _.qe('type != "Feature"');var w=u.geometry;try{w=null==w?null:e(w)}catch(G){throw _.qe('in property "geometry"',G);}var y=u.properties||{};if(!_.fe(y))throw _.qe("properties is not an Object");var z=c.idPropertyName;u=z?y[z]:u.id;if(null!=u&&!_.ee(u)&&!_.he(u))throw _.qe((z||"id")+" is not a string or number");return{id:u,geometry:w,properties:y}}function e(u){if(null==u)throw _.qe("is null");var w=(u.type+ | |||
| "").toLowerCase(),y=u.coordinates;try{switch(w){case "point":return new _.Se(h(y));case "multipoint":return new _.fg(l(y));case "linestring":return g(y);case "multilinestring":return new _.eg(m(y));case "polygon":return f(y);case "multipolygon":return new _.hg(q(y))}}catch(z){throw _.qe('in property "coordinates"',z);}if("geometrycollection"==w)try{return new _.Xf(r(u.geometries))}catch(z){throw _.qe('in property "geometries"',z);}throw _.qe("invalid type");}function f(u){return new _.gg(p(u))}function g(u){return new _.Zf(l(u))} | |||
| function h(u){u=k(u);return _.Qe({lat:u[1],lng:u[0]})}if(!b)return[];c=c||{};var k=_.ve(_.ig),l=_.ve(h),m=_.ve(g),p=_.ve(function(u){u=l(u);if(!u.length)throw _.qe("contains no elements");if(!u[0].equals(u[u.length-1]))throw _.qe("first and last positions are not equal");return new _.$f(u.slice(0,-1))}),q=_.ve(f),r=_.ve(e),t=_.ve(d);if("FeatureCollection"==b.type){b=b.features;try{return _.de(t(b),function(u){return a.add(u)})}catch(u){throw _.qe('in property "features"',u);}}if("Feature"==b.type)return[a.add(d(b))]; | |||
| throw _.qe("not a Feature or FeatureCollection");};jg=function(a,b){-180==a&&180!=b&&(a=180);-180==b&&180!=a&&(b=180);this.lo=a;this.hi=b};_.kg=function(a){return a.lo>a.hi};_.lg=function(a){return 360==a.hi-a.lo};_.mg=function(a,b){var c=a.lo,d=a.hi;return _.kg(a)?_.kg(b)?b.lo>=c&&b.hi<=d:(b.lo>=c||b.hi<=d)&&!a.isEmpty():_.kg(b)?_.lg(a)||b.isEmpty():b.lo>=c&&b.hi<=d};_.ng=function(a,b){var c=b-a;return 0<=c?c:b+180-(a-180)};og=function(a,b){this.lo=a;this.hi=b}; | |||
| _.qg=function(a,b){var c;if((c=a)&&"south"in c&&"west"in c&&"north"in c&&"east"in c)try{a=_.pg(a)}catch(e){}a instanceof _.qg?(c=a.getSouthWest(),b=a.getNorthEast()):(c=a&&_.Qe(a),b=b&&_.Qe(b));if(c){b=b||c;a=_.ae(c.lat(),-90,90);var d=_.ae(b.lat(),-90,90);this.Va=new og(a,d);c=c.lng();b=b.lng();360<=b-c?this.Ja=new jg(-180,180):(c=_.be(c,-180,180),b=_.be(b,-180,180),this.Ja=new jg(c,b))}else this.Va=new og(1,-1),this.Ja=new jg(180,-180)}; | |||
| _.rg=function(a,b,c,d){return new _.qg(new _.De(a,b,!0),new _.De(c,d,!0))};_.pg=function(a){if(a instanceof _.qg)return a;try{return a=Hba(a),_.rg(a.south,a.west,a.north,a.east)}catch(b){throw _.qe("not a LatLngBounds or LatLngBoundsLiteral",b);}};_.sg=function(a){return function(){return this.get(a)}};_.tg=function(a,b){return b?function(c){try{this.set(a,b(c))}catch(d){_.re(_.qe("set"+_.Sf(a),d))}}:function(c){this.set(a,c)}}; | |||
| _.ug=function(a,b){_.Ud(b,function(c,d){var e=_.sg(c);a["get"+_.Sf(c)]=e;d&&(d=_.tg(c,d),a["set"+_.Sf(c)]=d)})};wg=function(a){var b=this;a=a||{};this.setValues(a);this.h=new Bba;_.Nf(this.h,"addfeature",this);_.Nf(this.h,"removefeature",this);_.Nf(this.h,"setgeometry",this);_.Nf(this.h,"setproperty",this);_.Nf(this.h,"removeproperty",this);this.j=new Wf(this.h);this.j.bindTo("map",this);this.j.bindTo("style",this);_.kb(_.vg,function(c){_.Nf(b.j,c,b)});this.m=!1};Iba=function(a){a.m||(a.m=!0,_.nf("drawing_impl").then(function(b){b.Gx(a)}))}; | |||
| _.Kg=function(){var a=_.xg;if(!(a&&_.rd(_.Hd(a).o,18)&&_.xd(_.Hd(a).o,19)&&(_.Ig=_.xd(_.Hd(a).o,19),_.v(_.Ig,"startsWith")).call(_.Ig,"http")))return!1;a=_.Gd(a.o,44,1);return void 0===Jg?!1:Jg<a};_.Mg=function(a,b){var c;return _.za(function(d){switch(d.h){case 1:d.m=2;if(_.Lg||!_.Kg()){d.h=4;break}return _.ta(d,_.nf("log"),5);case 5:return c=d.j,d.return(c.h.Nv(a,b));case 4:_.ua(d,3);break;case 2:_.va(d);case 3:return d.return(null)}})}; | |||
| _.Ng=function(a,b){var c,d;return _.za(function(e){switch(e.h){case 1:if(_.Lg||!_.Kg()||!a){e.h=0;break}e.m=3;return _.ta(e,a,5);case 5:c=e.j;if(!c){e.h=6;break}return _.ta(e,_.nf("log"),7);case 7:d=e.j,d.h.Nr(c,b);case 6:_.ua(e,0);break;case 3:_.va(e),e.h=0}})}; | |||
| _.Og=function(a){var b,c;return _.za(function(d){switch(d.h){case 1:if(_.Lg||!_.Kg()||!a){d.h=0;break}d.m=3;return _.ta(d,a,5);case 5:b=d.j;if(!b){d.h=6;break}return _.ta(d,_.nf("log"),7);case 7:c=d.j,c.h.Vv(b);case 6:_.ua(d,0);break;case 3:_.va(d),d.h=0}})};_.Pg=function(){var a;return function(){var b=performance.now();if(a&&6E4>b-a)return!0;a=b;return!1}}; | |||
| _.P=function(a,b,c){c=void 0===c?{}:c;var d;return _.za(function(e){if(1==e.h){if(!(_.Kg()||c&&!0===c.Wr)){e.h=0;return}e.m=3;return _.ta(e,_.nf("log"),5)}if(3!=e.h)return d=e.j,d.j.C(a,b,c),_.ua(e,0);_.va(e);e.h=0})};_.R=function(a,b,c,d){c=void 0===c?"":c;(_.Qg||(void 0===d?0:d))&&_.nf("stats").then(function(e){e.J(a).m(b+c)})};Rg=function(){};_.Tg=function(a){_.Sg&&a&&_.Sg.push(a)};Ug=function(a){this.setValues(a)};Vg=function(){};Wg=function(){};Xg=function(){_.nf("geocoder")}; | |||
| _.$g=function(a,b){function c(h){return _.Be("LatLngAltitude","altitude",function(){return(0,_.Yg)(h)})}function d(h){return _.Be("LatLngAltitude","lng",function(){return(0,_.Zg)(h)})}function e(h){return _.Be("LatLngAltitude","lat",function(){return(0,_.Zg)(h)})}b=void 0===b?!1:b;var f="function"===typeof a.lat?a.lat():a.lat;f=f&&b?e(f):_.ae(e(f),-90,90);var g="function"===typeof a.lng?a.lng():a.lng;b=g&&b?d(g):_.be(d(g),-180,180);a=void 0!==a.altitude?c(a.altitude)||0:0;this.j=f;this.m=b;this.h= | |||
| a};_.S=function(a,b){this.x=a;this.y=b};ah=function(a){if(a instanceof _.S)return a;try{_.se({x:_.ig,y:_.ig},!0)(a)}catch(b){throw _.qe("not a Point",b);}return new _.S(a.x,a.y)};_.bh=function(a,b,c,d){this.width=a;this.height=b;this.j=c;this.h=d};mh=function(a){if(a instanceof _.bh)return a;try{_.se({height:ch,width:ch},!0)(a)}catch(b){throw _.qe("not a Size",b);}return new _.bh(a.width,a.height)};Jba=function(a){return a?a.Fx instanceof _.O:!1}; | |||
| _.oh=function(a){if(!Kba.has(a)){if(nh[a])var b=nh[a];else{b=Math.ceil(a.length/6);for(var c="",d=0;d<a.length;d+=b){for(var e=0,f=d;f-d<b&&f<a.length;f++)e+=a.charCodeAt(f);e%=52;c+=26>e?String.fromCharCode(65+e):String.fromCharCode(71+e)}b=nh[a]=c}a=b+"-"+a}return a};ph=function(a){a=a||{};a.clickable=_.ge(a.clickable,!0);a.visible=_.ge(a.visible,!0);this.setValues(a);_.nf("marker")}; | |||
| _.Nba=function(a,b,c){var d=a;b&&(d=(0,_.Oa)(a,b));d=Lba(d);"function"!==typeof _.C.setImmediate||!c&&_.C.Window&&_.C.Window.prototype&&!_.Hb()&&_.C.Window.prototype.setImmediate==_.C.setImmediate?(qh||(qh=Mba()),qh(d)):_.C.setImmediate(d)}; | |||
| Mba=function(){var a=_.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!_.Bb("Presto")&&(a=function(){var e=_.Ve("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,_.Oa)(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()}, | |||
| this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}});if("undefined"!==typeof a&&!_.Fb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Fq;c.Fq=null;e()}};return function(e){d.next={Fq:e};d=d.next;b.port2.postMessage(0)}}return function(e){_.C.setTimeout(e,0)}};rh=function(a,b){this.C=a;this.m=b;this.j=0;this.h=null};Oba=function(a,b){a.m(b);100>a.j&&(a.j++,b.next=a.h,a.h=b)}; | |||
| sh=function(){this.j=this.h=null};th=function(){this.next=this.scope=this.fn=null};_.wh=function(a,b){uh||Pba();vh||(uh(),vh=!0);Qba.add(a,b)};Pba=function(){if(_.x.Promise&&_.x.Promise.resolve){var a=_.x.Promise.resolve(void 0);uh=function(){a.then(Rba)}}else uh=function(){_.Nba(Rba)}};Rba=function(){for(var a;a=Qba.remove();){try{a.fn.call(a.scope)}catch(b){_.Vb(b)}Oba(Sba,a)}vh=!1};_.xh=function(a){this.h=[];this.Cg=a&&a.Cg?a.Cg:function(){};this.rh=a&&a.rh?a.rh:function(){}}; | |||
| Uba=function(a,b,c,d){d=d?{Eq:!1}:null;var e=!a.h.length,f=_.v(a.h,"find").call(a.h,Tba(b,c));f?f.once=f.once&&d:a.h.push({fn:b,context:c||null,once:d});e&&a.rh()};_.Wba=function(a,b,c){function d(){for(var f={},g=_.A(e),h=g.next();!h.done;f={Mg:f.Mg},h=g.next())f.Mg=h.value,b(function(k){return function(l){if(k.Mg.once){if(k.Mg.once.Eq)return;k.Mg.once.Eq=!0;a.h.splice(a.h.indexOf(k.Mg),1);a.h.length||a.Cg()}k.Mg.fn.call(k.Mg.context,l)}}(f))}var e=a.h.slice(0);c&&c.sync?d():(Vba||_.wh)(d)}; | |||
| Tba=function(a,b){return function(c){return c.fn===a&&c.context===(b||null)}};_.yh=function(){var a=this;this.h=new _.xh({Cg:function(){a.Cg()},rh:function(){a.rh()}})};_.zh=function(a){a=void 0===a?!1:a;_.yh.call(this);this.F=a};_.Bh=function(a,b){return new Ah(a,b)};_.Ch=function(){return new Ah(null,void 0)};Ah=function(a,b){_.zh.call(this,b);this.value=a};_.Dh=function(){this.__gm=new _.O;this.j=null}; | |||
| _.Eh=function(a){this.__gm={set:null,hm:null,sh:{map:null,streetView:null},rg:null,Vl:null,Bk:!1};ph.call(this,a)}; | |||
| Gh=function(a,b){var c=this;this.infoWindow=a;this.Ek=b;this.infoWindow.addListener("map_changed",function(){var d=Fh(c.get("internalAnchor"));!c.infoWindow.get("map")&&d&&d.get("map")&&c.set("internalAnchor",null)});this.bindTo("pendingFocus",this.infoWindow);this.bindTo("map",this.infoWindow);this.bindTo("disableAutoPan",this.infoWindow);this.bindTo("maxWidth",this.infoWindow);this.bindTo("minWidth",this.infoWindow);this.bindTo("position",this.infoWindow);this.bindTo("zIndex",this.infoWindow);this.bindTo("ariaLabel", | |||
| this.infoWindow);this.bindTo("internalAnchor",this.infoWindow,"anchor");this.bindTo("internalContent",this.infoWindow,"content");this.bindTo("internalPixelOffset",this.infoWindow,"pixelOffset");this.bindTo("shouldFocus",this.infoWindow)};Hh=function(a,b,c,d,e){c?a.bindTo(b,c,d,e):(a.unbind(b),a.set(b,void 0))};Xba=function(a){var b=a.get("internalAnchorPoint")||_.Ih,c=a.get("internalPixelOffset")||_.Jh;a.set("pixelOffset",new _.bh(c.width+Math.round(b.x),c.height+Math.round(b.y)))}; | |||
| Fh=function(a){a=void 0===a?null:a;return Jba(a)?a.Fx||null:a instanceof _.O?a:null};_.Kh=function(a){function b(){e||(e=!0,_.nf("infowindow").then(function(f){f.Av(d)}))}window.setTimeout(function(){_.nf("infowindow")},100);a=a||{};var c=!!a.Ek;delete a.Ek;var d=new Gh(this,c),e=!1;_.Mf(this,"anchor_changed",b);_.Mf(this,"map_changed",b);this.setValues(a)};_.Lh=function(a,b,c){this.set("url",a);this.set("bounds",_.ze(_.pg)(b));this.setValues(c)}; | |||
| Mh=function(a,b){_.he(a)?(this.set("url",a),this.setValues(b)):this.setValues(a)};_.Nh=function(){var a=this;_.nf("layers").then(function(b){b.zv(a)})};Oh=function(a){var b=this;this.setValues(a);_.nf("layers").then(function(c){c.Ev(b)})};Uh=function(){var a=this;_.nf("layers").then(function(b){b.Fv(a)})};Vh=function(a){this.h=a;this.j=!1};Yba=function(a){var b=a.get("mapId"),c=new Vh(b);c.bindTo("mapId",a,"mapId",!0);b&&c.bindTo("styles",a)};Wh=function(){this.isAvailable=!0;this.h=[]}; | |||
| Xh=function(a,b){a.isAvailable=!1;a.h.push(b)};Zba=function(){}; | |||
| _.Yh=function(a,b){var c=_.$ba(a.__gm.C);if(!b)return c;var d=["The map is initialized without a valid Map ID, that will prevent use of data-driven styling.","The Map Style does not have any FeatureLayers configured for data-driven styling.","The Map Style does not have any Datasets or FeatureLayers configured for data-driven styling."],e=c.h.map(function(f){return f.Yg});e=e&&e.some(function(f){return _.v(d,"includes").call(d,f)});(c.isAvailable||!e)&&(a=a.__gm.C.h)&&(b=aca(b,a))&&Xh(c,{Yg:b});return c}; | |||
| aca=function(a,b){var c=a.featureType;if("DATASET"===c){if(!(_.Ig=b.m().map(function(d){return _.xd(d.o,2)}),_.v(_.Ig,"includes")).call(_.Ig,a.datasetId))return"The Map Style does not have the following Dataset ID associated with it: "+a.datasetId}else if(!(_.Ig=b.C(),_.v(_.Ig,"includes")).call(_.Ig,c))return"The Map Style does not have the following FeatureLayer configured for data-driven styling: "+c;return null};bca=function(a){var b=void 0===b?"":b;var c=_.Yh(a);c.isAvailable||_.Zh(a,b,c)}; | |||
| cca=function(a){a=a.__gm;for(var b=_.A(_.v(a.m,"keys").call(a.m)),c=b.next();!c.done;c=b.next())c=c.value,a.m.get(c).isEnabled||_.me("The Map Style does not have the following FeatureLayer configured for data-driven styling: "+c)};_.dca=function(a,b){b=void 0===b?!1:b;var c=a.__gm;0<c.m.size&&bca(a);b&&cca(a);c.m.forEach(function(d){d.ps()})};_.Zh=function(a,b,c){if(0!==c.h.length){var d=b?b+": ":"",e=a.__gm.C;c.h.forEach(function(f){e.log(f,d)})}}; | |||
| ai=function(a,b){var c=this;this.D=a;this.C=!1;this.m=this.j="UNKNOWN";this.h=null;this.G=new _.x.Promise(function(d){c.H=d});b.H.then(function(d){c.h=d;c.j=d.j()?"TRUE":"FALSE";$h(c)});this.F=this.G.then(function(d){c.m=d?"TRUE":"FALSE";$h(c)});this.lg={};$h(this)};_.$ba=function(a){a.log(eca.DATA_DRIVEN_STYLING);a=a.lg.mw;return a.clone()}; | |||
| $h=function(a){var b=a.lg,c=new Wh;"TRUE"===a.j||"UNKNOWN"===a.j||Xh(c,{Yg:"The map is initialised without a valid Map ID, which will prevent use of Advanced Markers."});b.jB=c;b=a.lg;c=new Wh;if("TRUE"===a.j||"UNKNOWN"===a.j){var d=a.h;d&&(d.C().length||Xh(c,{Yg:"The Map Style does not have any FeatureLayers configured for data-driven styling."}));"UNKNOWN"!==a.m&&"TRUE"!==a.m&&Xh(c,{Yg:"The map is not a vector map. That will prevent use of data-driven styling."})}else Xh(c,{Yg:"The map is initialized without a valid Map ID, that will prevent use of data-driven styling."}); | |||
| b.mw=c};_.bi=function(){this.j={};this.m=0};_.ci=function(a,b){var c=a.j,d=_.Pf(b);c[d]||(c[d]=b,++a.m,_.N(a,"insert",b),a.h&&a.h(b))};fca=function(a){return a.replace(/[+/]/g,function(b){return"+"===b?"-":"_"}).replace(/[.=]+$/,"")};ica=function(a,b){switch(b){case 0:case 1:return a;case 13:return a?1:0;case 15:return String(a);case 14:return gca(a);case 12:case 6:case 9:case 7:case 10:case 8:case 11:case 2:case 4:case 3:case 5:return hca(a,b);default:_.ic(b)}}; | |||
| gca=function(a){if(_.Ka(a))return _.gc(a,4);a.constructor===_.jc&&(a=a.Uh());return fca(a)};hca=function(a,b){switch(b){case 7:case 2:return Number(a)>>>0;case 10:case 3:if("string"===typeof a){if("-"===a[0])return _.fd(_.ed(a))}else if(0>a)return _.fd(_.cd(a))}return"number"===typeof a?Math.floor(a):a};_.di=function(){};jca=function(a){var b=0,c;for(c in a){var d=a[+c];null!=d&&(b+=4,Array.isArray(d)&&(b+=jca(d)))}return b}; | |||
| lca=function(a,b,c,d){var e=_.mc(a);_.jd(b,function(f){var g=f.Rb,h=e(g);if(null!=h)if(f.Cj)for(var k=0;k<h.length;++k)d=kca(h[k],g,f,c,d);else d=kca(h,g,f,c,d)});return d}; | |||
| kca=function(a,b,c,d,e){d[e++]="!";d[e++]=b;if(15<c.Md)d[e++]="m",d[e++]=0,b=e,e=lca(a,c.Kj,d,e),d[b-1]=e-b>>2;else{b=c.Md;c=_.ei[b];if(15===b){a="string"===typeof a?a:""+a;if(mca.test(a))b=!1;else{b=encodeURIComponent(a).replace(/%20/g,"+");var f=b.match(/%[89AB]/ig);f=a.length+(f?f.length:0);b=4*Math.ceil(f/3)-(3-f%3)%3<b.length}b&&(c="z");if("z"===c){b=[];for(var g=f=0;g<a.length;g++){var h=a.charCodeAt(g);128>h?b[f++]=h:(2048>h?b[f++]=h>>6|192:(55296==(h&64512)&&g+1<a.length&&56320==(a.charCodeAt(g+ | |||
| 1)&64512)?(h=65536+((h&1023)<<10)+(a.charCodeAt(++g)&1023),b[f++]=h>>18|240,b[f++]=h>>12&63|128):b[f++]=h>>12|224,b[f++]=h>>6&63|128),b[f++]=h&63|128)}a=_.gc(b,4)}else-1!==a.indexOf("*")&&(a=a.replace(nca,"*2A")),-1!==a.indexOf("!")&&(a=a.replace(oca,"*21"))}else a=ica(a,b);d[e++]=c;d[e++]=a}return e};fi=function(){};qca=function(a,b,c){var d=_.mc(a);_.jd(b,function(e){var f=e.Rb,g=d(f);if(null!=g)if(e.Cj)for(var h=0;h<g.length;++h)pca(g[h],f,e,c);else pca(g,f,e,c)})}; | |||
| pca=function(a,b,c,d){if(15<c.Md){var e=d.length;qca(a,c.Kj,d);d.splice(e,0,[b,"m",d.length-e].join(""))}else 13===c.Md?a=a?"1":"0":14===c.Md&&(a=gca(a)),a=[b,_.ei[c.Md],encodeURIComponent(String(a))].join(""),d.push(a)};_.gi=function(){this.hj=this.hj;this.V=this.V};_.hi=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.j=!1}; | |||
| _.ki=function(a,b){_.hi.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.h=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget= | |||
| b;if(b=a.relatedTarget){if(_.ii){a:{try{dc(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=_.ji||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=_.ji||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX, | |||
| this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:rca[a.pointerType]||"";this.state=a.state;this.h=a;a.defaultPrevented&&_.ki.ye.preventDefault.call(this)}}; | |||
| _.li=function(a){return!(!a||!a[sca])};uca=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ne=e;this.key=++tca;this.tf=this.Kl=!1};mi=function(a){a.tf=!0;a.listener=null;a.proxy=null;a.src=null;a.ne=null};ni=function(a){this.src=a;this.h={};this.j=0};oi=function(a,b){var c=b.type;if(!(c in a.h))return!1;var d=_.ob(a.h[c],b);d&&(mi(b),0==a.h[c].length&&(delete a.h[c],a.j--));return d}; | |||
| _.vca=function(a){var b=0,c;for(c in a.h){for(var d=a.h[c],e=0;e<d.length;e++)++b,mi(d[e]);delete a.h[c];a.j--}};pi=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.tf&&f.listener==b&&f.capture==!!c&&f.ne==d)return e}return-1};_.ri=function(a,b,c,d,e){if(d&&d.once)return _.qi(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)_.ri(a,b[f],c,d,e);return null}c=si(c);return _.li(a)?_.ti(a,b,c,_.La(d)?!!d.capture:!!d,e):wca(a,b,c,!1,d,e)}; | |||
| wca=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=_.La(e)?!!e.capture:!!e,h=_.ui(a);h||(a[vi]=h=new ni(a));c=h.add(b,c,d,g,f);if(c.proxy)return c;d=xca();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)yca||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(zca(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Aca++;return c}; | |||
| xca=function(){function a(c){return b.call(a.src,a.listener,c)}var b=Bca;return a};_.qi=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)_.qi(a,b[f],c,d,e);return null}c=si(c);return _.li(a)?a.cf.add(String(b),c,!0,_.La(d)?!!d.capture:!!d,e):wca(a,b,c,!0,d,e)}; | |||
| Cca=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Cca(a,b[f],c,d,e);else(d=_.La(d)?!!d.capture:!!d,c=si(c),_.li(a))?a.cf.remove(String(b),c,d,e):a&&(a=_.ui(a))&&(b=a.h[b.toString()],a=-1,b&&(a=pi(b,c,d,e)),(c=-1<a?b[a]:null)&&_.wi(c))}; | |||
| _.wi=function(a){if("number"===typeof a||!a||a.tf)return!1;var b=a.src;if(_.li(b))return oi(b.cf,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(zca(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Aca--;(c=_.ui(b))?(oi(c,a),0==c.j&&(c.src=null,b[vi]=null)):mi(a);return!0};zca=function(a){return a in xi?xi[a]:xi[a]="on"+a}; | |||
| Bca=function(a,b){if(a.tf)a=!0;else{b=new _.ki(b,this);var c=a.listener,d=a.ne||a.src;a.Kl&&_.wi(a);a=c.call(d,b)}return a};_.ui=function(a){a=a[vi];return a instanceof ni?a:null};si=function(a){if("function"===typeof a)return a;a[yi]||(a[yi]=function(b){return a.handleEvent(b)});return a[yi]};_.zi=function(){_.gi.call(this);this.cf=new ni(this);this.Qg=this;this.Xa=null};_.ti=function(a,b,c,d,e){return a.cf.add(String(b),c,!1,d,e)}; | |||
| Ai=function(a,b,c,d){b=a.cf.h[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.tf&&g.capture==c){var h=g.listener,k=g.ne||g.src;g.Kl&&oi(a.cf,g);e=!1!==h.call(k,d)&&e}}return e&&!d.defaultPrevented};_.Di=function(a){this.h=0;this.G=void 0;this.C=this.j=this.m=null;this.D=this.F=!1;if(a!=_.gb)try{var b=this;a.call(void 0,function(c){Bi(b,2,c)},function(c){Bi(b,3,c)})}catch(c){Bi(this,3,c)}}; | |||
| Dca=function(){this.next=this.context=this.j=this.m=this.h=null;this.C=!1};Fca=function(a,b,c){var d=Eca.get();d.m=a;d.j=b;d.context=c;return d};Gca=function(a,b){if(0==a.h)if(a.m){var c=a.m;if(c.j){for(var d=0,e=null,f=null,g=c.j;g&&(g.C||(d++,g.h==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.h&&1==d?Gca(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Hca(c),Ica(c,e,3,b)))}a.m=null}else Bi(a,3,b)};Kca=function(a,b){a.j||2!=a.h&&3!=a.h||Jca(a);a.C?a.C.next=b:a.j=b;a.C=b}; | |||
| Lca=function(a,b,c,d){var e=Fca(null,null,null);e.h=new _.Di(function(f,g){e.m=b?function(h){try{var k=b.call(d,h);f(k)}catch(l){g(l)}}:f;e.j=c?function(h){try{var k=c.call(d,h);void 0===k&&h instanceof Ei?g(h):f(k)}catch(l){g(l)}}:g});e.h.m=a;Kca(a,e);return e.h}; | |||
| Bi=function(a,b,c){if(0==a.h){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.h=1;a:{var d=c,e=a.J,f=a.K;if(d instanceof _.Di){Kca(d,Fca(e||_.gb,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(l){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(_.La(d))try{var k=d.then;if("function"===typeof k){Mca(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.G=c,a.h=b,a.m=null,Jca(a),3!=b||c instanceof Ei||Nca(a,c))}}; | |||
| Mca=function(a,b,c,d,e){function f(k){h||(h=!0,d.call(e,k))}function g(k){h||(h=!0,c.call(e,k))}var h=!1;try{b.call(a,g,f)}catch(k){f(k)}};Jca=function(a){a.F||(a.F=!0,_.wh(a.H,a))};Hca=function(a){var b=null;a.j&&(b=a.j,a.j=b.next,b.next=null);a.j||(a.C=null);return b};Ica=function(a,b,c,d){if(3==c&&b.j&&!b.C)for(;a&&a.D;a=a.m)a.D=!1;if(b.h)b.h.m=null,Oca(b,c,d);else try{b.C?b.m.call(b.context):Oca(b,c,d)}catch(e){Pca.call(null,e)}Oba(Eca,b)}; | |||
| Oca=function(a,b,c){2==b?a.m.call(a.context,c):a.j&&a.j.call(a.context,c)};Nca=function(a,b){a.D=!0;_.wh(function(){a.D&&Pca.call(null,b)})};Ei=function(a){_.Ua.call(this,a)};_.Fi=function(a,b,c){if("function"===typeof a)c&&(a=(0,_.Oa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,_.Oa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:_.C.setTimeout(a,b||0)}; | |||
| _.Gi=function(a,b,c){_.gi.call(this);this.h=a;this.C=b||0;this.j=c;this.m=(0,_.Oa)(this.lq,this)};_.Hi=function(a){a.isActive()||a.start(void 0)};Rca=function(){var a=this;this.j=null;this.h=new _.x.Map;this.m=new _.Gi(function(){Qca(a)})};Qca=function(a){a.j&&window.requestAnimationFrame(function(){if(a.j){var b=[].concat(_.na(_.v(a.h,"values").call(a.h)));a.j(b)}})};_.Ii=function(a){this.oa=this.xa=Infinity;this.ya=this.Ca=-Infinity;_.kb(a||[],this.extend,this)}; | |||
| _.Ji=function(a,b,c,d){var e=new _.Ii;e.xa=a;e.oa=b;e.Ca=c;e.ya=d;return e};_.Ki=function(a,b){return a.xa>=b.Ca||b.xa>=a.Ca||a.oa>=b.ya||b.oa>=a.ya?!1:!0}; | |||
| Uca=function(){var a=this;this.h=new _.x.Map;this.j=new _.Gi(function(){for(var b=[],c=[],d=_.A(_.v(a.h,"values").call(a.h)),e=d.next();!e.done;e=d.next())e=e.value,e.ho()&&e.dt&&("REQUIRED_AND_HIDES_OPTIONAL"===e.collisionBehavior?(b.push(e.ho()),e.Bk=!1):c.push(e));c.sort(Sca);c=_.A(c);for(e=c.next();!e.done;e=c.next())d=e.value,Tca(d.ho(),b)?d.Bk=!0:(b.push(d.ho()),d.Bk=!1)},0)}; | |||
| Sca=function(a,b){var c=a.zIndex,d=b.zIndex,e=_.ee(c),f=_.ee(d),g=a.dt,h=b.dt;if(e&&f&&c!==d)return c>d?-1:1;if(e!==f)return e?-1:1;if(g.y!==h.y)return h.y-g.y;a=_.Na(a);b=_.Na(b);return a>b?-1:1};Tca=function(a,b){return b.some(function(c){return _.Ki(c,a)})};_.Li=function(a,b,c){_.gi.call(this);this.F=null!=c?(0,_.Oa)(a,c):a;this.D=b;this.C=(0,_.Oa)(this.G,this);this.j=this.h=null;this.m=[]}; | |||
| Vca=function(){var a=this;this.j=new Uca;this.m=new Rca;this.h=new _.x.Set;new _.Li(function(){_.Hi(a.j.j);for(var b=a.m,c=_.A(new _.x.Set(a.h)),d=c.next();!d.done;d=c.next())if(d=d.value,d.Bk){var e=b;d=_.Na(d);e.h.has(d)&&(e.h.delete(d),_.Hi(e.m))}else{e=b;var f=d.xB();f&&(e.h.set(_.Na(d),f),_.Hi(e.m))}a.h.clear()},50)};_.Ni=function(a){this.h=a||[];Mi(this)};Mi=function(a){a.set("length",a.h.length)};_.Oi=function(a){this.h=a}; | |||
| _.Wca=function(a,b){var c=b.gf();return saa(a.h,function(d){d=d.gf();return c!=d})};_.Pi=function(a,b,c){this.heading=a;this.pitch=_.ae(b,-90,90);this.zoom=Math.max(0,c)};_.Qi=function(a,b){return(a.matches||a.msMatchesSelector||a.webkitMatchesSelector).call(a,b)}; | |||
| _.Ri=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.Tc?!1:e.Tc;e=void 0===e.passive?!1:e.passive;this.h=a;this.m=b;this.j=c;this.C=Xca?{passive:e,capture:d}:d;a.addEventListener?a.addEventListener(b,c,this.C):a.attachEvent&&a.attachEvent("on"+b,c)};Yca=function(a){a.currentTarget.style.outline=""}; | |||
| _.Ui=function(a){if(_.Qi(a,'select,textarea,input[type="date"],input[type="datetime-local"],input[type="email"],input[type="month"],input[type="number"],input[type="password"],input[type="search"],input[type="tel"],input[type="text"],input[type="time"],input[type="url"],input[type="week"],input:not([type])'))return[];var b=[];b.push(new _.Ri(a,"focus",function(c){_.Si||!1!==_.Ti||(c.currentTarget.style.outline="none")}));b.push(new _.Ri(a,"focusout",Yca));return b}; | |||
| Vi=function(a,b){this.h=a;this.j=void 0===b?0:b}; | |||
| ada=function(a){this.h=this.type=0;this.version=new Vi(0);this.D=new Vi(0);this.j=0;for(var b=a.toLowerCase(),c=_.A(_.v(Zca,"entries").call(Zca)),d=c.next();!d.done;d=c.next()){var e=_.A(d.value);d=e.next().value;e=e.next().value;if(e=_.v(e,"find").call(e,function(f){return _.v(b,"includes").call(b,f)})){this.type=d;if(c=(new RegExp(e+"[ /]?([0-9]+).?([0-9]+)?")).exec(b))this.version=new Vi(_.v(Math,"trunc").call(Math,Number(c[1])),_.v(Math,"trunc").call(Math,Number(c[2]||"0")));break}}7===this.type&& | |||
| (c=RegExp("^Mozilla/.*Gecko/.*[Minefield|Shiretoko][ /]?([0-9]+).?([0-9]+)?").exec(a))&&(this.type=5,this.version=new Vi(_.v(Math,"trunc").call(Math,Number(c[1])),_.v(Math,"trunc").call(Math,Number(c[2]||"0"))));6===this.type&&(c=RegExp("rv:([0-9]{2,}.?[0-9]+)").exec(a))&&(this.type=1,this.version=new Vi(_.v(Math,"trunc").call(Math,Number(c[1]))));for(c=1;7>c;++c)if(_.v(b,"includes").call(b,$ca[c])){this.h=c;break}if(6===this.h||5===this.h||2===this.h)if(c=/OS (?:X )?(\d+)[_.]?(\d+)/.exec(a))this.D= | |||
| new Vi(_.v(Math,"trunc").call(Math,Number(c[1])),_.v(Math,"trunc").call(Math,Number(c[2]||"0")));4===this.h&&(a=/Android (\d+)\.?(\d+)?/.exec(a))&&(this.D=new Vi(_.v(Math,"trunc").call(Math,Number(a[1])),_.v(Math,"trunc").call(Math,Number(a[2]||"0"))));this.C&&(a=/\brv:\s*(\d+\.\d+)/.exec(b))&&(this.j=Number(a[1]));this.m=document.compatMode||"";1===this.h||2===this.h||3===this.h&&_.v(b,"includes").call(b,"mobile")};Xi=function(){return Wi?Wi:Wi=new ada(navigator.userAgent)}; | |||
| bda=function(){this.C=this.m=null};Zi=function(a){return _.Yi[43]?!1:a.Wc?!0:!_.C.devicePixelRatio||!_.C.requestAnimationFrame};_.cda=function(){var a=_.$i;return _.Yi[43]?!1:a.Wc||Zi(a)};_.aj=function(a,b){null!==a&&(a=a.style,a.width=b.width+(b.j||"px"),a.height=b.height+(b.h||"px"))};_.bj=function(a){return new _.bh(a.offsetWidth,a.offsetHeight)}; | |||
| _.cj=function(a,b){function c(){e=!0;a.removeEventListener("focus",c)}function d(){e=!0;a.removeEventListener("focusin",d)}b=void 0===b?!1:b;if(document.activeElement===a)return!0;var e=!1;_.Ui(a);a.tabIndex=a.tabIndex;a.addEventListener("focus",c);a.addEventListener("focusin",d);a.focus({preventScroll:!!b});return e}; | |||
| _.ej=function(a,b){var c=this;_.Dh.call(this);_.Tg(a);this.__gm=new _.O;this.__gm.set("isInitialized",!1);this.h=_.Bh(!1,!0);this.h.addListener(function(f){if(c.get("visible")!=f){if(c.m){var g=c.__gm;g.set("shouldAutoFocus",f&&g.get("isMapInitialized"))}dda(c,f);c.set("visible",f)}});this.D=this.F=null;b&&b.client&&(this.D=_.eda[b.client]||null);var d=this.controls=[];_.Ud(_.dj,function(f,g){d[g]=new _.Ni});this.m=!1;this.wd=b&&b.wd||_.Bh(!1);this.G=a;this.Sl=b&&b.Sl||this.G;this.__gm.set("developerProvidedDiv", | |||
| this.Sl);this.C=null;this.__gm.qj=b&&b.qj||new _.bi;this.set("standAlone",!0);this.setPov(new _.Pi(0,0,1));b&&b.pov&&(a=b.pov,_.ee(a.zoom)||(a.zoom="number"===typeof b.zoom?b.zoom:1));this.setValues(b);void 0==this.getVisible()&&this.setVisible(!0);var e=this.__gm.qj;_.Mf(this,"pano_changed",function(){_.nf("marker").then(function(f){f.Ln(e,c,!1)})});_.Yi[35]&&b&&b.dE&&_.nf("util").then(function(f){f.vf.C(new _.Fd(b.dE))});_.Lf(this,"keydown",this,this.H)}; | |||
| dda=function(a,b){b&&(a.C=document.activeElement,_.Mf(a.__gm,"panoramahidden",function(){var c,d;if(null==(c=a.j)?0:null==(d=c.Dg)?0:d.contains(document.activeElement))c=a.__gm.get("focusFallbackElement"),a.C?!_.cj(a.C)&&c&&_.cj(c):c&&_.cj(c)}))};fda=function(){this.C=[];this.m=this.h=this.j=null};_.hda=function(a,b){b=void 0===b?document:b;return gda(a,b)}; | |||
| gda=function(a,b){return(b=b&&(b.fullscreenElement||b.webkitFullscreenElement||b.mozFullScreenElement||b.msFullscreenElement))?b===a?!0:gda(a,b.shadowRoot):!1}; | |||
| ida=function(a,b,c,d){var e=this;this.ta=b;this.set("developerProvidedDiv",this.ta);this.Un=c;this.h=d;this.j=_.Bh(new _.Oi([]));this.W=new _.bi;this.copyrights=new _.Ni;this.J=new _.bi;this.N=new _.bi;this.K=new _.bi;this.wd=_.Bh(_.hda(c,"undefined"===typeof document?null:document));this.Bg=_.Ch();var f=this.qj=new _.bi;f.h=function(){delete f.h;_.x.Promise.all([_.nf("marker"),e.D]).then(function(g){var h=_.A(g);g=h.next().value;h=h.next().value;g.Ln(f,a,h)})};this.G=new _.ej(c,{visible:!1,enableCloseButton:!0, | |||
| qj:f,wd:this.wd,Sl:this.ta});this.G.bindTo("controlSize",a);this.G.bindTo("reportErrorControl",a);this.G.m=!0;this.F=new fda;this.Vh=this.Fb=this.overlayLayer=null;this.H=new _.x.Promise(function(g){e.la=g});this.za=new _.x.Promise(function(g){e.na=g});this.C=new ai(a,this);this.D=this.C.F.then(function(){return"TRUE"===e.C.m});this.V=function(g){this.C.H(g)};this.set("isInitialized",!1);this.G.__gm.bindTo("isMapInitialized",this,"isInitialized");this.h.then(function(){return e.set("isInitialized", | |||
| !0)});this.set("isMapBindingComplete",!1);this.T=new _.x.Promise(function(g){_.Mf(e,"mapbindingcomplete",function(){e.set("isMapBindingComplete",!0);g()})});new Vca;this.Y=null;this.ba=!1;this.m=new _.x.Map;this.aa=new _.x.Map};fj=function(){}; | |||
| gj=function(a,b){this.h=!1;this.j="UNINITIALIZED";if(a)throw _.Og(b),Error("Setting map 'renderingType' is not supported. RenderingType is decided internally and is read-only. If you wish to create a vector map please create a map ID in the cloud console as per https://developers.google.com/maps/documentation/javascript/vector-map");};jda=function(a){a.h=!0;try{a.set("renderingType",a.j)}finally{a.h=!1}};_.hj=function(){this.h=new _.S(128,128);this.m=256/360;this.C=256/(2*Math.PI);this.j=!0}; | |||
| _.ij=function(a,b,c){if(a=a.fromLatLngToPoint(b))c=Math.pow(2,c),a.x*=c,a.y*=c;return a};_.nj=function(a,b){var c=a.lat()+_.Rd(b);90<c&&(c=90);var d=a.lat()-_.Rd(b);-90>d&&(d=-90);b=Math.sin(b);var e=Math.cos(_.Qd(a.lat()));if(90==c||-90==d||1E-6>e)return new _.qg(new _.De(d,-180),new _.De(c,180));b=_.Rd(Math.asin(b/e));return new _.qg(new _.De(d,a.lng()-b),new _.De(c,a.lng()+b))}; | |||
| _.kda=function(){var a=[1379903],b=_.C.google&&_.C.google.maps&&_.C.google.maps.fisfetsz;b&&Array.isArray(b)&&_.Yi[15]&&b.forEach(function(c){_.ee(c)&&a.push(c)});return a};oj=function(a){_.F.call(this,a)};_.pj=function(a){_.F.call(this,a,17)};lda=function(a){var b=_.Cd(_.Hd(_.xg));_.D(a.o,5,b)};mda=function(a){var b=_.Dd(_.Hd(_.xg)).toLowerCase();_.D(a.o,6,b)};nda=function(a){_.F.call(this,a)};_.qj=function(a){_.F.call(this,a)};rj=function(a){_.F.call(this,a)}; | |||
| oda=function(a){var b=_.sj.Pa;a=a.toArray();if(!tj){uj||(vj||(vj={M:"eedmbddemd",O:["uuuu","uuuu"]}),uj={M:"ebb5ss8Mmbbb,EI16b100b",O:[vj,",Eb"]});var c=uj;wj||(wj={M:"10m",O:["bb"]});tj={M:"meummms",O:["ii","uue",c,wj]}}return b.call(_.sj,a,tj)};_.xj=function(a,b){this.h=a;this.j=b};_.yj=function(a){this.min=0;this.max=a;this.length=a-0};_.zj=function(a){this.Ki=a.Ki||null;this.Rj=a.Rj||null}; | |||
| pda=function(a,b,c,d){this.j=a;this.tilt=b;this.heading=c;this.h=d;a=Math.cos(b*Math.PI/180);b=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);this.m11=this.j*b;this.m12=this.j*c;this.m21=-this.j*a*c;this.m22=this.j*a*b;this.m=this.m11*this.m22-this.m12*this.m21};_.Aj=function(a,b,c,d){var e=Math.pow(2,Math.round(a))/256;return new pda(Math.round(Math.pow(2,a)/e)*e,b,c,d)};_.Bj=function(a,b){return new _.xj((a.m22*b.ea-a.m12*b.ga)/a.m,(-a.m21*b.ea+a.m11*b.ga)/a.m)}; | |||
| Dj=function(a,b,c,d){var e=this;this.Ea=new _.Gi(function(){var f=qda(e);if(e.m&&e.J)e.F!==f&&_.Cj(e.h);else{var g="",h=e.G(),k=rda(e),l=e.C();if(l){if(h&&isFinite(h.lat())&&isFinite(h.lng())&&1<k&&null!=f&&l&&l.width&&l.height&&e.j){_.aj(e.j,l);if(h=_.ij(e.N,h,k)){var m=new _.Ii;m.xa=Math.round(h.x-l.width/2);m.Ca=m.xa+l.width;m.oa=Math.round(h.y-l.height/2);m.ya=m.oa+l.height;h=m}else h=null;m=sda[f];h&&(e.J=!0,e.F=f,e.m&&e.h&&(g=_.Aj(k,0,0),e.m.set({image:e.h,bounds:{min:_.Bj(g,{ea:h.xa,ga:h.oa}), | |||
| max:_.Bj(g,{ea:h.Ca,ga:h.ya})},size:{width:l.width,height:l.height}})),g=tda(e,h,k,f,m))}e.h&&(_.aj(e.h,l),uda(e,g))}}},0);this.T=b;this.N=new _.hj;this.V=c+"/maps/api/js/StaticMapService.GetMapImage";this.D=d;this.h=this.j=null;this.m=_.Ch();this.F=null;this.H=this.J=!1;this.set("div",a);this.set("loading",!0)};uda=function(a,b){b!==a.h.src?(a.m||_.Cj(a.h),a.h.onload=function(){vda(a,!0)},a.h.onerror=function(){vda(a,!1)},a.h.src=b):!a.h.parentNode&&b&&a.j.appendChild(a.h)}; | |||
| tda=function(a,b,c,d,e){var f=new rj,g=_.K(f.o,1,nda);_.D(g.o,1,b.xa);_.D(g.o,2,b.oa);_.D(f.o,2,e);f.setZoom(c);c=_.K(f.o,4,_.qj);_.D(c.o,1,b.Ca-b.xa);_.D(c.o,2,b.ya-b.oa);var h=_.K(f.o,5,_.pj);_.D(h.o,1,d);lda(h);mda(h);_.D(h.o,10,!0);_.kda().forEach(function(k){for(var l=!1,m=0,p=_.E(h.o,14);m<p;m++)if(_.hd(h.o,14,m)===k){l=!0;break}l||_.id(h.o,14,k)});_.D(h.o,12,!0);_.Yi[13]&&(b=_.ud(h.o,8,oj),_.D(b.o,1,33),_.D(b.o,2,3),b.xc(1));a.D&&_.D(f.o,7,a.D);f=a.V+unescape("%3F")+oda(f);return a.T(f)}; | |||
| qda=function(a){var b=a.get("tilt")||_.Td(a.get("styles"));a=a.get("mapTypeId");return b?null:wda[a]};rda=function(a){a=a.get("zoom");return"number"===typeof a?Math.floor(a):a};vda=function(a,b){a.h.onload=null;a.h.onerror=null;var c=a.C();c&&(b&&(a.h.parentNode||a.j.appendChild(a.h),a.m||_.aj(a.h,c)),a.set("loading",!1))};_.Cj=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};_.Ej=function(){_.zf(this)};_.Fj=function(){}; | |||
| Gj=function(a,b,c,d,e){this.h=!!b;this.node=null;this.j=0;this.C=!1;this.m=!c;a&&this.setPosition(a,d);this.depth=void 0!=e?e:this.j||0;this.h&&(this.depth*=-1)};Hj=function(a,b,c,d){Gj.call(this,a,b,c,null,d)};_.xda=function(a,b){void 0===b||b||_.Ij(a);for(b=a.firstChild;b;)_.Ij(b),a.removeChild(b),b=a.firstChild};_.Ij=function(a){for(a=new Hj(a);;){var b=a.next();if(b.done)break;(b=b.value)&&_.yf(b)}};Jj=function(a){this.a=1729;this.h=a}; | |||
| Kj=function(a,b,c){for(var d=Array(b.length),e=0,f=b.length;e<f;++e)d[e]=b.charCodeAt(e);d.unshift(c);return a.hash(d)}; | |||
| zda=function(a,b,c,d){var e=new Jj(131071),f=unescape("%26%74%6F%6B%65%6E%3D"),g=unescape("%26%6B%65%79%3D"),h=unescape("%26%63%6C%69%65%6E%74%3D"),k=unescape("%26%63%68%61%6E%6E%65%6C%3D"),l="";b&&(l+=g+encodeURIComponent(b));c&&(l+=h+encodeURIComponent(c));d&&(l+=k+encodeURIComponent(d));return function(m){m=m.replace(yda,"%27")+l;var p=m+f;Lj||(Lj=RegExp("(?:https?://[^/]+)?(.*)"));m=Lj.exec(m);if(!m)throw Error("Invalid URL to sign.");return p+Kj(e,m[1],a)}}; | |||
| Ada=function(a){a=Array(a.toString().length);for(var b=0;b<a.length;++b)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return a.join("")};Bda=function(a){var b=void 0===b?Ada(a):b;var c=new Jj(131071);return function(){return[b,Kj(c,b,a).toString()]}};Cda=function(){var a=new Jj(2147483647);return function(b){return Kj(a,b,0)}}; | |||
| Oj=function(a,b){function c(){var w={"4g":2500,"3g":3500,"2g":6E3,unknown:4E3};return window.navigator&&window.navigator.connection&&window.navigator.connection.effectiveType?w[window.navigator.connection.effectiveType]||w.unknown:w.unknown}var d=this;Date.now();var e=performance.now(),f=_.Mg(122447);Dda(b)||_.Og(f);if(!a)throw _.Og(f),_.qe("Map: Expected mapDiv of type HTMLElement but was passed "+a+".");if("string"===typeof a)throw _.Og(f),_.qe("Map: Expected mapDiv of type HTMLElement but was passed string '"+ | |||
| a+"'.");var g=b||{};g.noClear||_.xda(a,!1);var h="undefined"==typeof document?null:document.createElement("div");h&&a.appendChild&&(a.appendChild(h),h.style.width=h.style.height="100%");if(Zi(_.$i))throw _.nf("controls").then(function(w){w.Ep(a)}),_.Og(f),Error("The Google Maps JavaScript API does not support this browser.");_.nf("util").then(function(w){_.Yi[35]&&b&&b.dE&&w.vf.C(new _.Fd(b.dE));w.vf.h(function(y){_.nf("controls").then(function(z){var G=_.xd(y.o,2)||"http://g.co/dev/maps-no-account"; | |||
| z.Ct(a,G)})})});var k,l=new _.x.Promise(function(w){k=w});_.Uf.call(this,new ida(this,a,h,l));l=this.__gm.C;this.set("mapCapabilities",l.getMapCapabilities());l.bindTo("mapCapabilities",this,"mapCapabilities",!0);void 0===g.mapTypeId&&(g.mapTypeId="roadmap");var m=new gj(g.renderingType,f);this.set("renderingType","UNINITIALIZED");m.bindTo("renderingType",this,"renderingType",!0);this.__gm.D.then(function(w){m.j=w?"VECTOR":"RASTER";jda(m)});this.setValues(g);Yba(this);this.h=_.Yi[15]&&g.noControlsOrLogging; | |||
| this.mapTypes=new fj;this.features=new _.O;_.Tg(h);this.notify("streetView");l=_.bj(h);var p=null,q=g.mapId||null;Eda(g.useStaticMap,l)&&(p=new Dj(h,_.Mj,_.xd(_.Hd(_.xg).o,10),q),p.set("size",l),p.bindTo("center",this),p.bindTo("zoom",this),p.bindTo("mapTypeId",this),q||p.bindTo("styles",this));this.overlayMapTypes=new _.Ni;var r=this.controls=[];_.Ud(_.dj,function(w,y){r[y]=new _.Ni});_.nf("map").then(function(w){Nj=w;if(d.getDiv()&&h)if(window.IntersectionObserver){_.Og(f);var y=performance.now()- | |||
| e,z=c();z={rootMargin:z+"px "+z+"px "+z+"px "+z+"px"};var G=setTimeout(function(){_.P(d,169108)},1E3),H=!1;(new IntersectionObserver(function(M,Q){for(var aa=0;aa<M.length;aa++)if(M[aa].isIntersecting){Q.unobserve(d.getDiv());Date.now();var ea=void 0;H||(ea={Hp:performance.now()-y});ea=_.Mg(122447,ea);Dda(b)||_.Og(ea);w.h(d,g,h,p,k,ea);clearTimeout(G)}else H=!0},z)).observe(d.getDiv())}else w.h(d,g,h,p,k,f);else _.Og(f)},function(){d.getDiv()&&h?_.Ng(f,8):_.Og(f)});this.data=new wg({map:this});this.addListener("renderingtype_changed", | |||
| function(){_.dca(d)});var t=this.addListener("zoom_changed",function(){_.vf(t);_.Og(f)}),u=this.addListener("dragstart",function(){_.vf(u);_.Og(f)});_.Af(a,"scroll",function(){a.scrollLeft=a.scrollTop=0})};Eda=function(a,b){if(!_.xg||2==_.J(_.xg.o,40,_.Fd).getStatus())return!1;if(void 0!==a)return!!a;a=b.width;b=b.height;return 384E3>=a*b&&800>=a&&800>=b}; | |||
| Dda=function(a){if(!a)return!1;var b=_.v(Object,"keys").call(Object,Pj);b=_.A(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;try{if("function"===typeof Pj[c]&&a[c])Pj[c](a[c])}catch(d){return!1}}return a.center&&a.zoom?!0:!1};Fda=function(a,b,c,d,e){this.url=a;this.size=b||e;this.origin=c;this.anchor=d;this.scaledSize=e;this.labelOrigin=null};Qj=function(){_.nf("maxzoom")}; | |||
| Rj=function(a,b){_.me("The Fusion Tables service will be turned down in December 2019 (see https://support.google.com/fusiontables/answer/9185417). Maps API version 3.37 is the last version that will support FusionTablesLayer.");!a||_.he(a)||_.ee(a)?(this.set("tableId",a),this.setValues(b)):this.setValues(a)};_.Sj=function(){};Tj=function(a){a=a||{};a.visible=_.ge(a.visible,!0);return a};_.Gda=function(a){return a&&a.radius||6378137};Uj=function(a){return a instanceof _.Ni?Hda(a):new _.Ni(Ida(a))}; | |||
| Jda=function(a){return function(b){if(!(b instanceof _.Ni))throw _.qe("not an MVCArray");b.forEach(function(c,d){try{a(c)}catch(e){throw _.qe("at index "+d,e);}});return b}};_.Vj=function(a){if(a instanceof _.Vj){for(var b={},c=_.A("map radius center strokeColor strokeOpacity strokeWeight strokePosition fillColor fillOpacity zIndex clickable editable draggable visible".split(" ")),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.get(d);a=b}this.setValues(Tj(a));_.nf("poly")}; | |||
| Wj=function(a){this.set("latLngs",new _.Ni([new _.Ni]));this.setValues(Tj(a));_.nf("poly")};_.Xj=function(a){Wj.call(this,a)};_.Yj=function(a){Wj.call(this,a)};_.Zj=function(a){this.setValues(Tj(a));_.nf("poly")};ak=function(){this.h=null};_.bk=function(){this.qg=null}; | |||
| _.Kda=function(a,b,c,d){var e=a.qg||void 0;a=_.nf("streetview").then(function(f){return _.nf("geometry").then(function(g){return f.ax(b,c||null,g.spherical.computeHeading,g.spherical.computeOffset,e,d)})});c&&a.catch(function(){});return a}; | |||
| dk=function(a){var b=this;this.tileSize=a.tileSize||new _.bh(256,256);this.name=a.name;this.alt=a.alt;this.minZoom=a.minZoom;this.maxZoom=a.maxZoom;this.m=(0,_.Oa)(a.getTileUrl,a);this.h=new _.bi;this.j=null;this.set("opacity",a.opacity);_.nf("map").then(function(c){var d=b.j=c.j,e=b.tileSize||new _.bh(256,256);b.h.forEach(function(f){var g=f.__gmimt,h=g.hb,k=g.zoom,l=b.m(h,k);(g.Ka=d({ja:h.x,ka:h.y,wa:k},e,f,l,function(){return _.N(f,"load")})).setOpacity(ck(b))})})}; | |||
| ck=function(a){a=a.get("opacity");return"number"==typeof a?a:1};_.ek=function(){};_.fk=function(a,b){this.set("styles",a);a=b||{};this.h=a.baseMapTypeId||"roadmap";this.minZoom=a.minZoom;this.maxZoom=a.maxZoom||20;this.name=a.name;this.alt=a.alt;this.projection=null;this.tileSize=new _.bh(256,256)};gk=function(){this.logs=[]};hk=function(){};ik=function(a,b){this.setValues(b)}; | |||
| Vda=function(){var a=_.v(Object,"assign").call(Object,{DirectionsTravelMode:_.jk,DirectionsUnitSystem:_.kk,FusionTablesLayer:Rj,MarkerImage:Fda,NavigationControlStyle:Lda,SaveWidget:ik,ScaleControlStyle:Mda,ZoomControlStyle:Nda},Oda,Pda,Qda,Rda,Sda,Tda,Uda);_.$d(wg,{Feature:_.Of,Geometry:Ce,GeometryCollection:_.Xf,LineString:_.Zf,LinearRing:_.$f,MultiLineString:_.eg,MultiPoint:_.fg,MultiPolygon:_.hg,Point:_.Se,Polygon:_.gg});_.ne(a);return a}; | |||
| Yda=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e;return _.za(function(f){if(1==f.h){var g={core:Oda,maps:Pda,routes:Qda,elevation:Rda,geocoding:Sda,streetView:Tda}[a];if(g)for(var h=_.A(_.v(Object,"entries").call(Object,g)),k=h.next();!k.done;k=h.next()){k=_.A(k.value);var l=k.next().value;void 0===k.next().value&&delete g[l]}if(d=g){b&&_.P(_.C,158530);f.h=2;return}b&&_.P(_.C,157584);if(!Wda.has(a)&&!Xda.has(a)){e="The library "+a+" is unknown. Please see https://developers.google.com/maps/documentation/javascript/libraries"; | |||
| if(c)throw Error(e);console.error(e)}return _.ta(f,_.nf(a),3)}2!=f.h&&(d=f.j);switch(a){case "maps":_.nf("map");break;case "elevation":_.nf("elevation");break;case "geocoding":_.nf("geocoder");break;case "streetView":_.nf("streetview")}return f.return(Object.freeze(_.v(Object,"assign").call(Object,{},d)))})};aea=function(a){var b=Zda,c=$da;pba(cf.getInstance(),a,b,c)}; | |||
| _.ok=function(){for(var a=Array(36),b=0,c,d=0;36>d;d++)8==d||13==d||18==d||23==d?a[d]="-":14==d?a[d]="4":(2>=b&&(b=33554432+16777216*Math.random()|0),c=b&15,b>>=4,a[d]=bea[19==d?c&3|8:c]);return a.join("")};_.pk=function(){this.Gn=_.ok()+_.waa()};_.cea=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};_.qk=function(){};dea=function(a){return a.j||(a.j=a.C())};rk=function(){}; | |||
| eea=function(a){if(!a.m&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.m=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.m}; | |||
| _.sk=function(a){_.zi.call(this);this.headers=new _.x.Map;this.X=a||null;this.j=!1;this.W=this.h=null;this.N="";this.D=0;this.F="";this.C=this.Z=this.K=this.Y=!1;this.H=0;this.J=null;this.T="";this.aa=this.G=!1};fea=function(a){return _.tk&&"number"===typeof a.timeout&&void 0!==a.ontimeout};hea=function(a,b){a.j=!1;a.h&&(a.C=!0,a.h.abort(),a.C=!1);a.F=b;a.D=5;gea(a);uk(a)};gea=function(a){a.Y||(a.Y=!0,a.m("complete"),a.m("error"))}; | |||
| iea=function(a){if(a.j&&"undefined"!=typeof vk)if(a.W[1]&&4==_.wk(a)&&2==a.getStatus())a.getStatus();else if(a.K&&4==_.wk(a))_.Fi(a.Ws,0,a);else if(a.m("readystatechange"),a.Jc()){a.getStatus();a.j=!1;try{if(_.xk(a))a.m("complete"),a.m("success");else{a.D=6;try{var b=2<_.wk(a)?a.h.statusText:""}catch(c){b=""}a.F=b+" ["+a.getStatus()+"]";gea(a)}}finally{uk(a)}}};uk=function(a,b){if(a.h){jea(a);var c=a.h,d=a.W[0]?function(){}:null;a.h=null;a.W=null;b||a.m("ready");try{c.onreadystatechange=d}catch(e){}}}; | |||
| jea=function(a){a.h&&a.aa&&(a.h.ontimeout=null);a.J&&(_.C.clearTimeout(a.J),a.J=null)};_.xk=function(a){var b=a.getStatus(),c;if(!(c=_.cea(b))){if(b=0===b)a=_.Ub(String(a.N))[1]||null,!a&&_.C.self&&_.C.self.location&&(a=_.C.self.location.protocol.slice(0,-1)),b=!kea.test(a?a.toLowerCase():"");c=b}return c};_.wk=function(a){return a.h?a.h.readyState:0}; | |||
| qea=function(a){var b=_.C.google.maps,c=lea(),d=mea(b),e=_.xg=new cba(a);_.Qg=Math.random()<_.Gd(e.o,1,1);Jg=Math.random();c&&(_.Lg=!0);var f;0===_.E(e.o,13)&&(f=_.Mg(153157,{Qm:"maps/api/js?"}));_.Mj=zda(_.I(_.J(e.o,5,Ed).o,1),_.Md(e),_.xd(e.o,7),_.xd(e.o,14));_.nea=Bda(_.I(_.J(e.o,5,Ed).o,1));_.yk=Cda();oea(e,function(k){k.blockedURI&&_.v(k.blockedURI,"includes").call(k.blockedURI,"/maps/api/mapsjs/gen_204?csp_test=true")&&(_.R(_.C,"Cve"),_.P(_.C,149596))});for(a=0;a<_.E(e.o,9);++a)_.Yi[_.hd(e.o, | |||
| 9,a)]=!0;a=_.Ld(e);aea(_.xd(a.o,1));c=Vda();_.Ud(c,function(k,l){b[k]=l});b.version=_.xd(a.o,2);setTimeout(function(){_.nf("util").then(function(k){_.rd(e.o,43)||k.Fp.h();k.Zv();d&&(_.R(window,"Aale"),_.P(window,155846));var l;switch(null==(l=_.C.navigator.connection)?void 0:l.effectiveType){case "slow-2g":_.P(_.C,166473);_.R(_.C,"Cts2g");break;case "2g":_.P(_.C,166474);_.R(_.C,"Ct2g");break;case "3g":_.P(_.C,166475);_.R(_.C,"Ct3g");break;case "4g":_.P(_.C,166476),_.R(_.C,"Ct4g")}})},5E3);Zi(_.$i)? | |||
| console.error("The Google Maps JavaScript API does not support this browser. See https://developers.google.com/maps/documentation/javascript/error-messages#unsupported-browsers"):_.cda()&&console.error("The Google Maps JavaScript API has deprecated support for this browser. See https://developers.google.com/maps/documentation/javascript/error-messages#unsupported-browsers");c=!1;(c=!!b.__ib__)&&_.P(_.C,157585);b.importLibrary=function(k){return Yda(k,!0,!0)};_.Yi[35]&&(b.logger={beginAvailabilityEvent:_.Mg, | |||
| cancelAvailabilityEvent:_.Og,endAvailabilityEvent:_.Ng,maybeReportFeatureOnce:_.P});var g=_.xd(e.o,12);if(g){a=[];if(!c){c=_.E(e.o,13);for(var h=0;h<c;h++)a.push(Yda(_.hd(e.o,13,h)))}_.x.Promise.all(a).then(function(){f&&_.Ng(f,0);pea(g)()})}else f&&_.Ng(f,0),console.warn("Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading")}; | |||
| pea=function(a){for(var b=a.split("."),c=_.C,d=_.C,e=0;e<b.length;e++)if(d=c,c=c[b[e]],!c)throw _.qe(a+" is not a function");return function(){c.apply(d)}}; | |||
| lea=function(){function a(d,e,f){f=void 0===f?"":f;setTimeout(function(){_.R(_.C,d,f);_.P(_.C,e)},0)}var b=!1,c;for(c in Object.prototype)_.C.console&&_.C.console.error("This site adds property `"+c+"` to Object.prototype. Extending Object.prototype breaks JavaScript for..in loops, which are used heavily in Google Maps JavaScript API v3."),b=!0,a("Ceo",149594);42!==_.v(Array,"from").call(Array,new _.x.Set([42]))[0]&&(_.C.console&&_.C.console.error("This site overrides Array.from() with an implementation that doesn't support iterables, which could cause Google Maps JavaScript API v3 to not work correctly."), | |||
| b=!0,a("Cea",149590));if(c=_.C.Prototype)a("Cep",149595,c.Version),b=!0;if(c=_.C.MooTools)a("Cem",149593,c.version),b=!0;(_.Ig=[1,2],_.v(_.Ig,"values")).call(_.Ig)[_.v(_.x.Symbol,"iterator")]||(a("Cei",149591),b=!0);"number"!==typeof Date.now()&&(_.C.console&&_.C.console.error("This site overrides Date.now() with an implementation that doesn't return the number of milliseconds since January 1, 1970 00:00:00 UTC, which could cause Google Maps JavaScript API v3 to not work correctly."),b=!0,a("Ced", | |||
| 149592));return b};mea=function(a){(a="version"in a)&&_.C.console&&_.C.console.error("You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.");return a};oea=function(a,b){if(_.Hd(a)&&_.xd(_.Hd(a).o,10))try{document.addEventListener("securitypolicyviolation",b),rea.send(_.xd(_.Hd(a).o,10)+"/maps/api/mapsjs/gen_204?csp_test=true")}catch(c){}}; | |||
| _.zk=function(a,b){b=void 0===b?"LocationBias":b;if("string"===typeof a){if("IP_BIAS"!==a)throw _.qe(b+" of type string was invalid: "+a);return a}if(!a||!_.fe(a))throw _.qe("Invalid "+b+": "+a);if(!(a instanceof _.De||a instanceof _.qg||a instanceof _.Vj))try{a=_.pg(a)}catch(c){try{a=_.Qe(a)}catch(d){try{a=new _.Vj((0,_.sea)(a))}catch(e){throw _.qe("Invalid "+b+": "+JSON.stringify(a));}}}if(a instanceof _.Vj){if(!a||!_.fe(a))throw _.qe("Passed Circle is not an Object.");a instanceof _.Vj||(a=new _.Vj(a)); | |||
| if(!a.getCenter())throw _.qe("Circle is missing center.");if(void 0==a.getRadius())throw _.qe("Circle is missing radius.");}return a};_.aaa=[];ia="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};_.da=caa(this);ha="function"===typeof Symbol&&"symbol"===typeof Symbol("x");_.x={};ca={}; | |||
| la("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.h=f;ia(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.h};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b},"es6"); | |||
| la("Symbol.iterator",function(a){if(a)return a;a=(0,_.x.Symbol)("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=_.da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ia(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a},"es6"); | |||
| var tea=ha&&"function"==typeof _.v(Object,"assign")?_.v(Object,"assign"):function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)oa(d,e)&&(a[e]=d[e])}return a};la("Object.assign",function(a){return a||tea},"es6"); | |||
| var eaa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},uea=function(){function a(){function c(){}new c;_.v(_.x.Reflect,"construct").call(_.x.Reflect,c,[],function(){});return new c instanceof c}if(ha&&"undefined"!=typeof _.x.Reflect&&_.v(_.x.Reflect,"construct")){if(a())return _.v(_.x.Reflect,"construct");var b=_.v(_.x.Reflect,"construct");return function(c,d,e){c=b(c,d);e&&_.v(_.x.Reflect,"setPrototypeOf").call(_.x.Reflect,c,e.prototype);return c}}return function(c, | |||
| d,e){void 0===e&&(e=c);e=eaa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Ak;if(ha&&"function"==typeof _.v(Object,"setPrototypeOf"))Ak=_.v(Object,"setPrototypeOf");else{var Bk;a:{var vea={a:!0},wea={};try{wea.__proto__=vea;Bk=wea.a;break a}catch(a){}Bk=!1}Ak=Bk?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}_.pa=Ak;qa.prototype.G=function(a){this.j=a}; | |||
| qa.prototype.return=function(a){this.D={return:a};this.h=this.H};la("Reflect",function(a){return a?a:{}},"es6");la("Reflect.construct",function(){return uea},"es6");la("Reflect.setPrototypeOf",function(a){return a?a:_.pa?function(b,c){try{return(0,_.pa)(b,c),!0}catch(d){return!1}}:null},"es6"); | |||
| la("Promise",function(a){function b(g){this.h=0;this.m=void 0;this.j=[];this.G=!1;var h=this.C();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.h=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.j=function(g){if(null==this.h){this.h=[];var h=this;this.m(function(){h.D()})}this.h.push(g)};var e=_.da.setTimeout;c.prototype.m=function(g){e(g,0)};c.prototype.D=function(){for(;this.h&&this.h.length;){var g=this.h;this.h=[];for(var h=0;h<g.length;++h){var k= | |||
| g[h];g[h]=null;try{k()}catch(l){this.C(l)}}}this.h=null};c.prototype.C=function(g){this.m(function(){throw g;})};b.prototype.C=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.T),reject:g(this.D)}};b.prototype.T=function(g){if(g===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.W(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.N(g):this.F(g)}}; | |||
| b.prototype.N=function(g){var h=void 0;try{h=g.then}catch(k){this.D(k);return}"function"==typeof h?this.X(h,g):this.F(g)};b.prototype.D=function(g){this.H(2,g)};b.prototype.F=function(g){this.H(1,g)};b.prototype.H=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.m=h;2===this.h&&this.V();this.J()};b.prototype.V=function(){var g=this;e(function(){if(g.K()){var h=_.da.console;"undefined"!==typeof h&&h.error(g.m)}},1)};b.prototype.K= | |||
| function(){if(this.G)return!1;var g=_.da.CustomEvent,h=_.da.Event,k=_.da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=_.da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.m;return k(g)};b.prototype.J=function(){if(null!=this.j){for(var g=0;g<this.j.length;++g)f.j(this.j[g]);this.j=null}};var f= | |||
| new c;b.prototype.W=function(g){var h=this.C();g.Ll(h.resolve,h.reject)};b.prototype.X=function(g,h){var k=this.C();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(q,r){return"function"==typeof q?function(t){try{l(q(t))}catch(u){m(u)}}:r}var l,m,p=new b(function(q,r){l=q;m=r});this.Ll(k(g,l),k(h,m));return p};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Ll=function(g,h){function k(){switch(l.h){case 1:g(l.m);break;case 2:h(l.m); | |||
| break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.j?f.j(k):this.j.push(k);this.G=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=_.A(g),m=l.next();!m.done;m=l.next())d(m.value).Ll(h,k)})};b.all=function(g){var h=_.A(g),k=h.next();return k.done?d([]):new b(function(l,m){function p(t){return function(u){q[t]=u;r--;0==r&&l(q)}}var q=[],r=0;do q.push(void 0),r++,d(k.value).Ll(p(q.length-1),m),k=h.next(); | |||
| while(!k.done)})};return b},"es6"); | |||
| la("WeakMap",function(a){function b(g){this.h=(f+=Math.random()+1).toString();if(g){g=_.A(g);for(var h;!(h=g.next()).done;)h=h.value,this.set(h[0],h[1])}}function c(){}function d(g){var h=typeof g;return"object"===h&&null!==g||"function"===h}if(function(){if(!a||!Object.seal)return!1;try{var g=Object.seal({}),h=Object.seal({}),k=new a([[g,2],[h,3]]);if(2!=k.get(g)||3!=k.get(h))return!1;k.delete(g);k.set(h,4);return!k.has(g)&&4==k.get(h)}catch(l){return!1}}())return a;var e="$jscomp_hidden_"+Math.random(), | |||
| f=0;b.prototype.set=function(g,h){if(!d(g))throw Error("Invalid WeakMap key");if(!oa(g,e)){var k=new c;ia(g,e,{value:k})}if(!oa(g,e))throw Error("WeakMap key fail: "+g);g[e][this.h]=h;return this};b.prototype.get=function(g){return d(g)&&oa(g,e)?g[e][this.h]:void 0};b.prototype.has=function(g){return d(g)&&oa(g,e)&&oa(g[e],this.h)};b.prototype.delete=function(g){return d(g)&&oa(g,e)&&oa(g[e],this.h)?delete g[e][this.h]:!1};return b},"es6"); | |||
| la("Map",function(a){function b(){var h={};return h.Fg=h.next=h.head=h}function c(h,k){var l=h.h;return daa(function(){if(l){for(;l.head!=h.h;)l=l.Fg;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.j[l];if(m&&oa(h.j,l))for(h=0;h<m.length;h++){var p=m[h];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:h,nd:p}}return{id:l, | |||
| list:m,index:-1,nd:void 0}}function e(h){this.j={};this.h=b();this.size=0;if(h){h=_.A(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!_.v(a.prototype,"entries")||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(_.A([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=_.v(k,"entries").call(k),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next(); | |||
| return m.done||4!=m.value[0].x||"t"!=m.value[1]||!l.next().done?!1:!0}catch(p){return!1}}())return a;var f=new _.x.WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.j[l.id]=[]);l.nd?l.nd.value=k:(l.nd={next:this.h,Fg:this.h.Fg,head:this.h,key:h,value:k},l.list.push(l.nd),this.h.Fg.next=l.nd,this.h.Fg=l.nd,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.nd&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.j[h.id],h.nd.Fg.next= | |||
| h.nd.next,h.nd.next.Fg=h.nd.Fg,h.nd.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.j={};this.h=this.h.Fg=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).nd};e.prototype.get=function(h){return(h=d(this,h).nd)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h, | |||
| k){for(var l=_.v(this,"entries").call(this),m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[_.v(_.x.Symbol,"iterator")]=_.v(e.prototype,"entries");var g=0;return e},"es6");la("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}},"es6"); | |||
| la("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f<e;f++){var g=d[f];if(b.call(c,g,f,d)){b=g;break a}}b=void 0}return b}},"es6");la("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}},"es6"); | |||
| la("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}},"es6");la("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}},"es6");la("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}},"es6"); | |||
| la("Object.setPrototypeOf",function(a){return a||_.pa},"es6"); | |||
| la("Set",function(a){function b(c){this.h=new _.x.Map;if(c){c=_.A(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.h.size}if(function(){if(!a||"function"!=typeof a||!_.v(a.prototype,"entries")||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(_.A([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=_.v(d,"entries").call(d),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]== | |||
| c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.h.set(c,c);this.size=this.h.size;return this};b.prototype.delete=function(c){c=this.h.delete(c);this.size=this.h.size;return c};b.prototype.clear=function(){this.h.clear();this.size=0};b.prototype.has=function(c){return this.h.has(c)};b.prototype.entries=function(){return _.v(this.h,"entries").call(this.h)};b.prototype.values=function(){return _.v(this.h,"values").call(this.h)}; | |||
| b.prototype.keys=_.v(b.prototype,"values");b.prototype[_.v(_.x.Symbol,"iterator")]=_.v(b.prototype,"values");b.prototype.forEach=function(c,d){var e=this;this.h.forEach(function(f){return c.call(d,f,f,e)})};return b},"es6"); | |||
| la("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof _.x.Symbol&&_.v(_.x.Symbol,"iterator")&&b[_.v(_.x.Symbol,"iterator")];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}},"es6");la("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)oa(b,d)&&c.push([d,b[d]]);return c}},"es8"); | |||
| la("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991},"es6");la("Number.isInteger",function(a){return a?a:function(b){return _.v(Number,"isFinite").call(Number,b)?b===Math.floor(b):!1}},"es6");la("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}},"es6");la("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}},"es6");la("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}},"es6"); | |||
| la("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}},"es6");la("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}},"es6");la("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||_.v(Object,"is").call(Object,f,b))return!0}return!1}},"es7"); | |||
| la("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ca(this,b,"includes").indexOf(b,c||0)}},"es6");la("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)oa(b,d)&&c.push(b[d]);return c}},"es8");la("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return c})}},"es8"); | |||
| la("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}},"es6"); | |||
| la("WeakSet",function(a){function b(c){this.h=new _.x.WeakMap;if(c){c=_.A(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.h.set(c,!0);return this};b.prototype.has=function(c){return this.h.has(c)};b.prototype.delete=function(c){return this.h.delete(c)};return b}, | |||
| "es6");la("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}},"es6");la("Int8Array.prototype.fill",Ia,"es6");la("Uint8Array.prototype.fill",Ia,"es6");la("Uint8ClampedArray.prototype.fill",Ia,"es6");la("Int16Array.prototype.fill",Ia,"es6");la("Uint16Array.prototype.fill",Ia,"es6");la("Int32Array.prototype.fill",Ia,"es6"); | |||
| la("Uint32Array.prototype.fill",Ia,"es6");la("Float32Array.prototype.fill",Ia,"es6");la("Float64Array.prototype.fill",Ia,"es6"); | |||
| la("Math.hypot",function(a){return a?a:function(b){if(2>arguments.length)return arguments.length?Math.abs(arguments[0]):0;var c,d,e;for(c=e=0;c<arguments.length;c++)e=Math.max(e,Math.abs(arguments[c]));if(1E100<e||1E-100>e){if(!e)return e;for(c=d=0;c<arguments.length;c++){var f=Number(arguments[c])/e;d+=f*f}return Math.sqrt(d)*e}for(c=d=0;c<arguments.length;c++)f=Number(arguments[c]),d+=f*f;return Math.sqrt(d)}},"es6"); | |||
| la("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}},"es6");la("Math.log1p",function(a){return a?a:function(b){b=Number(b);if(.25>b&&-.25<b){for(var c=b,d=1,e=b,f=0,g=1;f!=e;)c*=b,g*=-1,e=(f=e)+g*c/++d;return e}return Math.log(1+b)}},"es6");la("Math.expm1",function(a){return a?a:function(b){b=Number(b);if(.25>b&&-.25<b){for(var c=b,d=1,e=b,f=0;f!=e;)c*=b/++d,e=(f=e)+c;return e}return Math.exp(b)-1}},"es6"); | |||
| la("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&0<b?(d=_.v(Array.prototype,"flat").call(d,b-1),c.push.apply(c,d)):c.push(d)});return c}},"es9"); | |||
| la("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(_.v(_.x.Symbol,"iterator")in b))throw new TypeError(""+b+" is not iterable");b=b[_.v(_.x.Symbol,"iterator")].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}},"es_2019"); | |||
| la("Array.prototype.flatMap",function(a){return a?a:function(b,c){var d=[];Array.prototype.forEach.call(this,function(e,f){e=b.call(c,e,f,this);Array.isArray(e)?d.push.apply(d,e):d.push(e)});return d}},"es9");vk=vk||{};_.C=this||self;Ma="closure_uid_"+(1E9*Math.random()>>>0);kaa=0;_.Sa(_.Ua,Error);_.Ua.prototype.name="CustomError";var Va;_.Xa.prototype.xg=!0;_.Xa.prototype.Uc=_.ba(5);var oaa={},naa={};_.bb.prototype.toString=function(){return this.h+""};_.bb.prototype.xg=!0;_.bb.prototype.Uc=_.ba(4);var paa={};var qaa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Ck,uaa;_.qb.prototype.toString=function(){return this.h.toString()};_.qb.prototype.xg=!0;_.qb.prototype.Uc=_.ba(3);_.xea=RegExp('^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$',"i");try{new URL("s://g"),Ck=!0}catch(a){Ck=!1}_.yea=Ck;uaa={};_.zea=_.rb("about:invalid#zClosurez");_.sb={};_.tb.prototype.Uc=_.ba(2);_.tb.prototype.toString=function(){return this.h.toString()};_.Aea=new _.tb("",_.sb);_.Bea=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$");_.Cea=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g");_.Dea=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g");_.ub={};_.vb.prototype.toString=function(){return this.h.toString()};_.vb.prototype.Uc=_.ba(1);_.Eea=new _.vb("",_.ub);var yb,Fea=_.Ja("CLOSURE_FLAGS"),Gea=Fea&&Fea[610401301];yb=null!=Gea?Gea:!1;var Hea;Hea=_.C.navigator;_.zb=Hea?Hea.userAgentData||null:null;var Pb={};_.Qb.prototype.Uc=_.ba(0);_.Qb.prototype.toString=function(){return this.h.toString()};var Iea=new _.Qb(_.C.trustedTypes&&_.C.trustedTypes.emptyHTML||"",Pb);_.Jea=ib(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=_.Rb(Iea);return!b.parentElement});var xaa=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");dc[" "]=function(){};var Lea,Ek,Ik;_.Kea=_.Eb();_.tk=_.Fb();Lea=_.Bb("Edge");_.ii=_.Bb("Gecko")&&!_.cc()&&!(_.Bb("Trident")||_.Bb("MSIE"))&&!_.Bb("Edge");_.ji=_.cc();_.Mea=_.$b();_.Dk=_.ac();_.Nea=(Wb()?"Linux"===_.zb.platform:_.Bb("Linux"))||_.zaa();_.Oea=_.yaa();_.Pea=_.Zb();_.Qea=_.Bb("iPad");_.Rea=_.Bb("iPod"); | |||
| a:{var Fk="",Gk=function(){var a=_.xb();if(_.ii)return/rv:([^\);]+)(\)|;)/.exec(a);if(Lea)return/Edge\/([\d\.]+)/.exec(a);if(_.tk)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(_.ji)return/WebKit\/(\S+)/.exec(a);if(_.Kea)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Gk&&(Fk=Gk?Gk[1]:"");if(_.tk){var Hk=Aaa();if(null!=Hk&&Hk>parseFloat(Fk)){Ek=String(Hk);break a}}Ek=Fk}_.Sea=Ek;if(_.C.document&&_.tk){var Tea=Aaa();Ik=Tea?Tea:parseInt(_.Sea,10)||void 0}else Ik=void 0;_.Uea=Ik;_.Vea=_.Ib();_.Wea=_.Zb()||_.Bb("iPod");_.Xea=_.Bb("iPad");_.Nb();_.Yea=_.Jb();_.Zea=_.Kb()&&!(_.Zb()||_.Bb("iPad")||_.Bb("iPod"));var Caa;Caa={};_.hc=null;_.$ea=_.ii||_.ji||"function"==typeof _.C.btoa;_.afa="undefined"!==typeof Uint8Array;_.bfa=!_.tk&&"function"===typeof _.C.btoa;_.Jk="function"===typeof BigInt;_.cfa="undefined"!==typeof TextDecoder;_.dfa="undefined"!==typeof TextEncoder;var Lc,rc,qd; | |||
| if("function"===typeof _.x.Symbol&&"symbol"===typeof(0,_.x.Symbol)()){var efa=(0,_.x.Symbol)(void 0),Kk=(0,_.x.Symbol)(void 0),Lk=(0,_.x.Symbol)(void 0),Mk=(0,_.x.Symbol)(void 0),Nk=(0,_.x.Symbol)(void 0);_.Jc=function(a,b){a[efa]=(0,_.Fc)(a)|b};_.Fc=function(a){return a[efa]||0};_.vc=function(a,b,c,d){a[Kk]=b;a[Nk]=c;a[Lk]=d;a[Mk]=void 0};_.Bc=function(a){return null!=a[Kk]};_.xc=function(a){return a[Kk]};Lc=function(a,b){a[Kk]=b};_.Dc=function(a){return a[Lk]};_.Kc=function(a,b){a[Lk]=b};_.Mc=function(a){return a[Mk]}; | |||
| rc=function(a,b){a[Mk]=b};_.wd=function(a){return a[Nk]};qd=function(a,b){(0,_.Bc)(a);return a[Nk]=b}}else _.Jc=Daa,_.Fc=Eaa,_.vc=Faa,_.Bc=Gaa,_.xc=Haa,Lc=Iaa,_.Dc=Jaa,_.Kc=Kaa,_.Mc=Laa,rc=Maa,_.wd=Naa,qd=Oaa;_.jc.prototype.Uh=function(){null==this.j&&(this.j=_.gc(this.h));return this.j};_.jc.prototype.isEmpty=function(){return null!=this.h&&!this.h.byteLength||null!=this.j&&!this.j.length?!0:!1};var Xaa;Xaa=[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,14,13,,0,12,1,4,5,6,9,9,,17,8,11,11,3,5,15,,7,10,10,2,3,15];_.ei="dfxyghiunjvoebBsmm".split("");_.nc.prototype.Xp=_.ba(6);_.B(_.oc,_.nc);_.B(_.pc,_.nc);_.ffa=Object.freeze([]);_.Vc.prototype[_.v(_.x.Symbol,"iterator")]=function(){return this.h()};var Zc;_.Wc.prototype.equals=function(a){return this===a?!0:a instanceof _.Wc?this.lf===a.lf&&this.oe===a.oe:!1};_.dd="function"===typeof BigInt;_.Ok=(0,_.x.Symbol)(void 0);_.od=null;Vaa.prototype.fields=function(){var a={};Uaa(this,function(b){a[b.Rb]=_.v(Object,"assign").call(Object,{},b)});return a};var Waa=Object.create(null),kd=RegExp("(\\d+)","g");_.n=_.F.prototype;_.n.clear=function(){this.o.length=0;_.uc(this.o)};_.n.clone=function(){var a=new this.constructor;_.Cc(a.o,this.o);return a};_.n.equals=function(a){var b=a&&a.o;if(b){if(this===a)return!0;a=this.o;(0,_.Tc)(b);(0,_.Tc)(a);return Yaa(a,b)}return!1};_.n.Pa=function(){(0,_.Tc)(this.o);return Zaa(this.o)};_.n.zb=_.ba(7);_.n.toArray=function(){var a=this.o;(0,_.Tc)(a);return a};_.B(aba,_.F);_.B(bba,_.F);_.B(Ed,_.F);_.B(_.Fd,_.F);_.Fd.prototype.getStatus=function(){return _.I(this.o,1)};var wj;_.B(cba,_.F);_.gfa={ROADMAP:"roadmap",SATELLITE:"satellite",HYBRID:"hybrid",TERRAIN:"terrain"};_.B(Nd,Error);_.B(_.Od,Nd);_.B(_.Pd,Nd);var Pk;try{new URL("s://g"),Pk=!0}catch(a){Pk=!1}_.hfa=Pk;_.B(_.pe,Error);_.pe.prototype.captureStackTrace=function(){this.stack=Error().stack};var oe=!0;var ch,Qk,Sk;_.ig=_.we(_.ee,"not a number");ch=_.ye(_.ig,function(a){if(isNaN(a))throw _.qe("NaN is not an accepted value");return a});_.Zg=_.ye(_.ig,function(a){if(isFinite(a))return a;throw _.qe(a+" is not an accepted value");});Qk=_.ye(_.ig,function(a){if(0<=a)return a;throw _.qe(a+" is a negative number value");});_.Rk=_.we(_.he,"not a string");Sk=_.we(_.eba,"not a boolean");_.ifa=_.we(function(a){return"function"===typeof a},"not a function");_.Yg=_.ze(_.ig);_.Tk=_.ze(_.Rk);_.Uk=_.ze(Sk); | |||
| _.Vk=_.ye(_.Rk,function(a){if(0<a.length)return a;throw _.qe("empty string is not an accepted value");});_.dj={TOP_LEFT:1,TOP_CENTER:2,TOP:2,TOP_RIGHT:3,LEFT_CENTER:4,LEFT_TOP:5,LEFT:5,LEFT_BOTTOM:6,RIGHT_TOP:7,RIGHT:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM:11,BOTTOM_RIGHT:12,CENTER:13};var Lda={DEFAULT:0,SMALL:1,ANDROID:2,ZOOM_PAN:3,eB:4,cv:5,0:"DEFAULT",1:"SMALL",2:"ANDROID",3:"ZOOM_PAN",4:"ROTATE_ONLY",5:"TOUCH"};var Mda={DEFAULT:0};var Nda={DEFAULT:0,SMALL:1,LARGE:2,cv:3};var gba=_.se({lat:_.ig,lng:_.ig},!0),iba=_.se({lat:_.Zg,lng:_.Zg},!0);_.De.prototype.toString=function(){return"("+this.lat()+", "+this.lng()+")"};_.De.prototype.toString=_.De.prototype.toString;_.De.prototype.toJSON=function(){return{lat:this.lat(),lng:this.lng()}};_.De.prototype.toJSON=_.De.prototype.toJSON;_.De.prototype.equals=function(a){return a?_.ce(this.lat(),a.lat())&&_.ce(this.lng(),a.lng()):!1};_.De.prototype.equals=_.De.prototype.equals;_.De.prototype.equals=_.De.prototype.equals; | |||
| _.De.prototype.toUrlValue=function(a){a=void 0!==a?a:6;return hba(this.lat(),a)+","+hba(this.lng(),a)};_.De.prototype.toUrlValue=_.De.prototype.toUrlValue;var Ida;_.Yf=_.ve(_.Qe);Ida=_.ve(_.Re);_.Sa(_.Se,Ce);_.Se.prototype.getType=function(){return"Point"};_.Se.prototype.getType=_.Se.prototype.getType;_.Se.prototype.forEachLatLng=function(a){a(this.h)};_.Se.prototype.forEachLatLng=_.Se.prototype.forEachLatLng;_.Se.prototype.get=function(){return this.h};_.Se.prototype.get=_.Se.prototype.get;var Cba=_.ve(Te);var Wk;a:{try{Wk=!!(new self.OffscreenCanvas(0,0)).getContext("2d");break a}catch(a){}Wk=!1}_.jfa=Wk;_.Ze.prototype.ub=_.ba(8);_.Ze.prototype.appendChild=function(a,b){a.appendChild(b)};_.Ze.prototype.contains=_.Ye;lba.prototype.cm=function(a,b,c){if(this.j){var d=jba(this.j.replace("%s",a));mba(this.h,d)}a=jba(this.m.replace("%s",a));mba(this.h,a,b,c)};cf.prototype.qh=function(a,b){qba(this,a).hy=b;this.F.add(a);tba(this,a)};cf.getInstance=function(){return _.bf(cf)};_.tf.trigger=_.N;_.tf.addListenerOnce=_.Mf;_.tf.addDomListenerOnce=function(a,b,c,d){console.warn("google.maps.event.addDomListenerOnce() is deprecated, use the\n standard addEventListener() method instead:\n https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\n The feature will continue to work and there is no plan to decommission\n it.");return _.Kf(a,b,c,d)}; | |||
| _.tf.addDomListener=function(a,b,c,d){console.warn("google.maps.event.addDomListener() is deprecated, use the standard\n addEventListener() method instead:\n https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\n The feature will continue to work and there is no plan to decommission\n it.");return _.Af(a,b,c,d)};_.tf.clearInstanceListeners=_.yf;_.tf.clearListeners=_.xf;_.tf.removeListener=_.vf;_.tf.hasListeners=wba;_.tf.addListener=_.L; | |||
| _.uf.prototype.remove=function(){if(this.instance){if(this.instance.removeEventListener)switch(this.j){case 1:this.instance.removeEventListener(this.h,this.ne,!1);break;case 4:this.instance.removeEventListener(this.h,this.ne,!0)}delete yba(this.instance,this.h)[this.id];this.Dp&&_.N(this.instance,""+this.h+"_removed");this.ne=this.instance=null}};var zba=0;_.Of.prototype.getId=function(){return this.m};_.Of.prototype.getId=_.Of.prototype.getId;_.Of.prototype.getGeometry=function(){return this.h};_.Of.prototype.getGeometry=_.Of.prototype.getGeometry;_.Of.prototype.setGeometry=function(a){var b=this.h;try{this.h=a?Te(a):null}catch(c){_.re(c);return}_.N(this,"setgeometry",{feature:this,newGeometry:this.h,oldGeometry:b})};_.Of.prototype.setGeometry=_.Of.prototype.setGeometry;_.Of.prototype.getProperty=function(a){return le(this.j,a)}; | |||
| _.Of.prototype.getProperty=_.Of.prototype.getProperty;_.Of.prototype.setProperty=function(a,b){if(void 0===b)this.removeProperty(a);else{var c=this.getProperty(a);this.j[a]=b;_.N(this,"setproperty",{feature:this,name:a,newValue:b,oldValue:c})}};_.Of.prototype.setProperty=_.Of.prototype.setProperty;_.Of.prototype.removeProperty=function(a){var b=this.getProperty(a);delete this.j[a];_.N(this,"removeproperty",{feature:this,name:a,oldValue:b})};_.Of.prototype.removeProperty=_.Of.prototype.removeProperty; | |||
| _.Of.prototype.forEachProperty=function(a){for(var b in this.j)a(this.getProperty(b),b)};_.Of.prototype.forEachProperty=_.Of.prototype.forEachProperty;_.Of.prototype.toGeoJson=function(a){var b=this;_.nf("data").then(function(c){c.Jw(b,a)})};_.Of.prototype.toGeoJson=_.Of.prototype.toGeoJson;var kfa={CIRCLE:0,FORWARD_CLOSED_ARROW:1,FORWARD_OPEN_ARROW:2,BACKWARD_CLOSED_ARROW:3,BACKWARD_OPEN_ARROW:4};_.O.prototype.get=function(a){var b=Tf(this);a+="";b=le(b,a);if(void 0!==b){if(b){a=b.nf;b=b.rj;var c="get"+_.Sf(a);return b[c]?b[c]():b.get(a)}return this[a]}};_.O.prototype.get=_.O.prototype.get;_.O.prototype.set=function(a,b){var c=Tf(this);a+="";var d=le(c,a);if(d)if(a=d.nf,d=d.rj,c="set"+_.Sf(a),d[c])d[c](b);else d.set(a,b);else this[a]=b,c[a]=null,Rf(this,a)};_.O.prototype.set=_.O.prototype.set;_.O.prototype.notify=function(a){var b=Tf(this);a+="";(b=le(b,a))?b.rj.notify(b.nf):Rf(this,a)}; | |||
| _.O.prototype.notify=_.O.prototype.notify;_.O.prototype.setValues=function(a){for(var b in a){var c=a[b],d="set"+_.Sf(b);if(this[d])this[d](c);else this.set(b,c)}};_.O.prototype.setValues=_.O.prototype.setValues;_.O.prototype.setOptions=_.O.prototype.setValues;_.O.prototype.changed=function(){};var Aba={};_.O.prototype.bindTo=function(a,b,c,d){a+="";c=(c||a)+"";this.unbind(a);var e={rj:this,nf:a},f={rj:b,nf:c,Cq:e};Tf(this)[a]=f;Qf(b,c)[_.Pf(e)]=e;d||Rf(this,a)};_.O.prototype.bindTo=_.O.prototype.bindTo; | |||
| _.O.prototype.unbind=function(a){var b=Tf(this),c=b[a];c&&(c.Cq&&delete Qf(c.rj,c.nf)[_.Pf(c.Cq)],this[a]=this.get(a),b[a]=null)};_.O.prototype.unbind=_.O.prototype.unbind;_.O.prototype.unbindAll=function(){var a=(0,_.Oa)(this.unbind,this),b=Tf(this),c;for(c in b)a(c)};_.O.prototype.unbindAll=_.O.prototype.unbindAll;_.O.prototype.addListener=function(a,b){return _.L(this,a,b)};_.O.prototype.addListener=_.O.prototype.addListener;_.Sa(_.Uf,_.O);_.lfa=_.Uf.DEMO_MAP_ID="DEMO_MAP_ID";var mfa={cB:"Point",ZA:"LineString",POLYGON:"Polygon"};_.n=Bba.prototype;_.n.contains=function(a){return this.h.hasOwnProperty(_.Pf(a))};_.n.getFeatureById=function(a){return le(this.j,a)}; | |||
| _.n.add=function(a){a=a||{};a=a instanceof _.Of?a:new _.Of(a);if(!this.contains(a)){var b=a.getId();if(b||0===b){var c=this.getFeatureById(b);c&&this.remove(c)}c=_.Pf(a);this.h[c]=a;if(b||0===b)this.j[b]=a;var d=_.Nf(a,"setgeometry",this),e=_.Nf(a,"setproperty",this),f=_.Nf(a,"removeproperty",this);this.m[c]=function(){_.vf(d);_.vf(e);_.vf(f)};_.N(this,"addfeature",{feature:a})}return a}; | |||
| _.n.remove=function(a){var b=_.Pf(a),c=a.getId();if(this.h[b]){delete this.h[b];c&&delete this.j[c];if(c=this.m[b])delete this.m[b],c();_.N(this,"removefeature",{feature:a})}};_.n.forEach=function(a){for(var b in this.h)a(this.h[b])};_.vg="click dblclick mousedown mousemove mouseout mouseover mouseup rightclick contextmenu".split(" ");Vf.prototype.get=function(a){return this.h[a]};Vf.prototype.set=function(a,b){var c=this.h;c[a]||(c[a]={});_.$d(c[a],b);_.N(this,"changed",a)};Vf.prototype.reset=function(a){delete this.h[a];_.N(this,"changed",a)};Vf.prototype.forEach=function(a){_.Ud(this.h,a)};_.Sa(Wf,_.O);Wf.prototype.overrideStyle=function(a,b){this.h.set(_.Pf(a),b)};Wf.prototype.revertStyle=function(a){a?this.h.reset(_.Pf(a)):this.h.forEach((0,_.Oa)(this.h.reset,this.h))};_.Sa(_.Xf,Ce);_.Xf.prototype.getType=function(){return"GeometryCollection"};_.Xf.prototype.getType=_.Xf.prototype.getType;_.Xf.prototype.getLength=function(){return this.h.length};_.Xf.prototype.getLength=_.Xf.prototype.getLength;_.Xf.prototype.getAt=function(a){return this.h[a]};_.Xf.prototype.getAt=_.Xf.prototype.getAt;_.Xf.prototype.getArray=function(){return this.h.slice()};_.Xf.prototype.getArray=_.Xf.prototype.getArray;_.Xf.prototype.forEachLatLng=function(a){this.h.forEach(function(b){b.forEachLatLng(a)})}; | |||
| _.Xf.prototype.forEachLatLng=_.Xf.prototype.forEachLatLng;_.Sa(_.Zf,Ce);_.Zf.prototype.getType=function(){return"LineString"};_.Zf.prototype.getType=_.Zf.prototype.getType;_.Zf.prototype.getLength=function(){return this.h.length};_.Zf.prototype.getLength=_.Zf.prototype.getLength;_.Zf.prototype.getAt=function(a){return this.h[a]};_.Zf.prototype.getAt=_.Zf.prototype.getAt;_.Zf.prototype.getArray=function(){return this.h.slice()};_.Zf.prototype.getArray=_.Zf.prototype.getArray;_.Zf.prototype.forEachLatLng=function(a){this.h.forEach(a)}; | |||
| _.Zf.prototype.forEachLatLng=_.Zf.prototype.forEachLatLng;var Dba=_.ve(_.te(_.Zf,"google.maps.Data.LineString",!0));_.Sa(_.$f,Ce);_.$f.prototype.getType=function(){return"LinearRing"};_.$f.prototype.getType=_.$f.prototype.getType;_.$f.prototype.getLength=function(){return this.h.length};_.$f.prototype.getLength=_.$f.prototype.getLength;_.$f.prototype.getAt=function(a){return this.h[a]};_.$f.prototype.getAt=_.$f.prototype.getAt;_.$f.prototype.getArray=function(){return this.h.slice()};_.$f.prototype.getArray=_.$f.prototype.getArray;_.$f.prototype.forEachLatLng=function(a){this.h.forEach(a)}; | |||
| _.$f.prototype.forEachLatLng=_.$f.prototype.forEachLatLng;var Eba=_.ve(_.te(_.$f,"google.maps.Data.LinearRing",!0));_.Sa(_.eg,Ce);_.eg.prototype.getType=function(){return"MultiLineString"};_.eg.prototype.getType=_.eg.prototype.getType;_.eg.prototype.getLength=function(){return this.h.length};_.eg.prototype.getLength=_.eg.prototype.getLength;_.eg.prototype.getAt=function(a){return this.h[a]};_.eg.prototype.getAt=_.eg.prototype.getAt;_.eg.prototype.getArray=function(){return this.h.slice()};_.eg.prototype.getArray=_.eg.prototype.getArray;_.eg.prototype.forEachLatLng=function(a){this.h.forEach(function(b){b.forEachLatLng(a)})}; | |||
| _.eg.prototype.forEachLatLng=_.eg.prototype.forEachLatLng;_.Sa(_.fg,Ce);_.fg.prototype.getType=function(){return"MultiPoint"};_.fg.prototype.getType=_.fg.prototype.getType;_.fg.prototype.getLength=function(){return this.h.length};_.fg.prototype.getLength=_.fg.prototype.getLength;_.fg.prototype.getAt=function(a){return this.h[a]};_.fg.prototype.getAt=_.fg.prototype.getAt;_.fg.prototype.getArray=function(){return this.h.slice()};_.fg.prototype.getArray=_.fg.prototype.getArray;_.fg.prototype.forEachLatLng=function(a){this.h.forEach(a)}; | |||
| _.fg.prototype.forEachLatLng=_.fg.prototype.forEachLatLng;_.Sa(_.gg,Ce);_.gg.prototype.getType=function(){return"Polygon"};_.gg.prototype.getType=_.gg.prototype.getType;_.gg.prototype.getLength=function(){return this.h.length};_.gg.prototype.getLength=_.gg.prototype.getLength;_.gg.prototype.getAt=function(a){return this.h[a]};_.gg.prototype.getAt=_.gg.prototype.getAt;_.gg.prototype.getArray=function(){return this.h.slice()};_.gg.prototype.getArray=_.gg.prototype.getArray;_.gg.prototype.forEachLatLng=function(a){this.h.forEach(function(b){b.forEachLatLng(a)})}; | |||
| _.gg.prototype.forEachLatLng=_.gg.prototype.forEachLatLng;var Fba=_.ve(_.te(_.gg,"google.maps.Data.Polygon",!0));_.Sa(_.hg,Ce);_.hg.prototype.getType=function(){return"MultiPolygon"};_.hg.prototype.getType=_.hg.prototype.getType;_.hg.prototype.getLength=function(){return this.h.length};_.hg.prototype.getLength=_.hg.prototype.getLength;_.hg.prototype.getAt=function(a){return this.h[a]};_.hg.prototype.getAt=_.hg.prototype.getAt;_.hg.prototype.getArray=function(){return this.h.slice()};_.hg.prototype.getArray=_.hg.prototype.getArray;_.hg.prototype.forEachLatLng=function(a){this.h.forEach(function(b){b.forEachLatLng(a)})}; | |||
| _.hg.prototype.forEachLatLng=_.hg.prototype.forEachLatLng;_.n=jg.prototype;_.n.isEmpty=function(){return 360==this.lo-this.hi};_.n.intersects=function(a){var b=this.lo,c=this.hi;return this.isEmpty()||a.isEmpty()?!1:_.kg(this)?_.kg(a)||a.lo<=this.hi||a.hi>=b:_.kg(a)?a.lo<=c||a.hi>=b:a.lo<=c&&a.hi>=b};_.n.contains=function(a){-180==a&&(a=180);var b=this.lo,c=this.hi;return _.kg(this)?(a>=b||a<=c)&&!this.isEmpty():a>=b&&a<=c};_.n.extend=function(a){this.contains(a)||(this.isEmpty()?this.lo=this.hi=a:_.ng(a,this.lo)<_.ng(this.hi,a)?this.lo=a:this.hi=a)}; | |||
| _.n.equals=function(a){return 1E-9>=Math.abs(a.lo-this.lo)%360+Math.abs(a.span()-this.span())};_.n.span=function(){return this.isEmpty()?0:_.kg(this)?360-(this.lo-this.hi):this.hi-this.lo};_.n.center=function(){var a=(this.lo+this.hi)/2;_.kg(this)&&(a=_.be(a+180,-180,180));return a};_.n=og.prototype;_.n.isEmpty=function(){return this.lo>this.hi};_.n.intersects=function(a){var b=this.lo,c=this.hi;return b<=a.lo?a.lo<=c&&a.lo<=a.hi:b<=a.hi&&b<=c};_.n.contains=function(a){return a>=this.lo&&a<=this.hi}; | |||
| _.n.extend=function(a){this.isEmpty()?this.hi=this.lo=a:a<this.lo?this.lo=a:a>this.hi&&(this.hi=a)};_.n.equals=function(a){return this.isEmpty()?a.isEmpty():1E-9>=Math.abs(a.lo-this.lo)+Math.abs(this.hi-a.hi)};_.n.span=function(){return this.isEmpty()?0:this.hi-this.lo};_.n.center=function(){return(this.hi+this.lo)/2};_.qg.prototype.getCenter=function(){return new _.De(this.Va.center(),this.Ja.center())};_.qg.prototype.getCenter=_.qg.prototype.getCenter;_.qg.prototype.toString=function(){return"("+this.getSouthWest()+", "+this.getNorthEast()+")"};_.qg.prototype.toString=_.qg.prototype.toString;_.qg.prototype.toJSON=function(){return{south:this.Va.lo,west:this.Ja.lo,north:this.Va.hi,east:this.Ja.hi}};_.qg.prototype.toJSON=_.qg.prototype.toJSON; | |||
| _.qg.prototype.toUrlValue=function(a){var b=this.getSouthWest(),c=this.getNorthEast();return[b.toUrlValue(a),c.toUrlValue(a)].join()};_.qg.prototype.toUrlValue=_.qg.prototype.toUrlValue;_.qg.prototype.equals=function(a){if(!a)return!1;a=_.pg(a);return this.Va.equals(a.Va)&&this.Ja.equals(a.Ja)};_.qg.prototype.equals=_.qg.prototype.equals;_.qg.prototype.equals=_.qg.prototype.equals;_.qg.prototype.contains=function(a){a=_.Qe(a);return this.Va.contains(a.lat())&&this.Ja.contains(a.lng())}; | |||
| _.qg.prototype.contains=_.qg.prototype.contains;_.qg.prototype.intersects=function(a){a=_.pg(a);return this.Va.intersects(a.Va)&&this.Ja.intersects(a.Ja)};_.qg.prototype.intersects=_.qg.prototype.intersects;_.qg.prototype.Gf=_.ba(10);_.qg.prototype.extend=function(a){a=_.Qe(a);this.Va.extend(a.lat());this.Ja.extend(a.lng());return this};_.qg.prototype.extend=_.qg.prototype.extend; | |||
| _.qg.prototype.union=function(a){a=_.pg(a);if(!a||a.isEmpty())return this;this.Va.extend(a.getSouthWest().lat());this.Va.extend(a.getNorthEast().lat());a=a.Ja;var b=_.ng(this.Ja.lo,a.hi),c=_.ng(a.lo,this.Ja.hi);if(_.mg(this.Ja,a))return this;if(_.mg(a,this.Ja))return this.Ja=new jg(a.lo,a.hi),this;this.Ja.intersects(a)?this.Ja=b>=c?new jg(this.Ja.lo,a.hi):new jg(a.lo,this.Ja.hi):this.Ja=b<=c?new jg(this.Ja.lo,a.hi):new jg(a.lo,this.Ja.hi);return this};_.qg.prototype.union=_.qg.prototype.union; | |||
| _.qg.prototype.getSouthWest=function(){return new _.De(this.Va.lo,this.Ja.lo,!0)};_.qg.prototype.getSouthWest=_.qg.prototype.getSouthWest;_.qg.prototype.getNorthEast=function(){return new _.De(this.Va.hi,this.Ja.hi,!0)};_.qg.prototype.getNorthEast=_.qg.prototype.getNorthEast;_.qg.prototype.toSpan=function(){return new _.De(this.Va.span(),this.Ja.span(),!0)};_.qg.prototype.toSpan=_.qg.prototype.toSpan;_.qg.prototype.isEmpty=function(){return this.Va.isEmpty()||this.Ja.isEmpty()}; | |||
| _.qg.prototype.isEmpty=_.qg.prototype.isEmpty;_.qg.MAX_BOUNDS=_.rg(-90,-180,90,180);var Hba=_.se({south:_.ig,west:_.ig,north:_.ig,east:_.ig},!1);_.Xk=_.ze(_.te(_.Uf,"Map"));_.Sa(wg,_.O);wg.prototype.contains=function(a){return this.h.contains(a)};wg.prototype.contains=wg.prototype.contains;wg.prototype.getFeatureById=function(a){return this.h.getFeatureById(a)};wg.prototype.getFeatureById=wg.prototype.getFeatureById;wg.prototype.add=function(a){return this.h.add(a)};wg.prototype.add=wg.prototype.add;wg.prototype.remove=function(a){this.h.remove(a)};wg.prototype.remove=wg.prototype.remove;wg.prototype.forEach=function(a){this.h.forEach(a)};wg.prototype.forEach=wg.prototype.forEach; | |||
| wg.prototype.addGeoJson=function(a,b){return _.Gba(this.h,a,b)};wg.prototype.addGeoJson=wg.prototype.addGeoJson;wg.prototype.loadGeoJson=function(a,b,c){var d=this.h;_.nf("data").then(function(e){e.Mw(d,a,b,c)})};wg.prototype.loadGeoJson=wg.prototype.loadGeoJson;wg.prototype.toGeoJson=function(a){var b=this.h;_.nf("data").then(function(c){c.Iw(b,a)})};wg.prototype.toGeoJson=wg.prototype.toGeoJson;wg.prototype.overrideStyle=function(a,b){this.j.overrideStyle(a,b)};wg.prototype.overrideStyle=wg.prototype.overrideStyle; | |||
| wg.prototype.revertStyle=function(a){this.j.revertStyle(a)};wg.prototype.revertStyle=wg.prototype.revertStyle;wg.prototype.controls_changed=function(){this.get("controls")&&Iba(this)};wg.prototype.drawingMode_changed=function(){this.get("drawingMode")&&Iba(this)};_.ug(wg.prototype,{map:_.Xk,style:_.hb,controls:_.ze(_.ve(_.ue(mfa))),controlPosition:_.ze(_.ue(_.dj)),drawingMode:_.ze(_.ue(mfa))});_.kk={METRIC:0,IMPERIAL:1};_.jk={DRIVING:"DRIVING",WALKING:"WALKING",BICYCLING:"BICYCLING",TRANSIT:"TRANSIT",TWO_WHEELER:"TWO_WHEELER"};_.Yi={};var Jg;Rg.prototype.route=function(a,b){var c=void 0;nfa()||(c=_.Mg(158094));_.R(window,"Dsrc");_.P(window,154342);var d=_.nf("directions").then(function(e){return e.route(a,b,!0,c)},function(){c&&_.Ng(c,8)});b&&d.catch(function(){});return d};Rg.prototype.route=Rg.prototype.route;var nfa=_.Pg();_.ofa={BEST_GUESS:"bestguess",OPTIMISTIC:"optimistic",PESSIMISTIC:"pessimistic"};_.pfa={BUS:"BUS",RAIL:"RAIL",SUBWAY:"SUBWAY",TRAIN:"TRAIN",TRAM:"TRAM"};_.qfa={LESS_WALKING:"LESS_WALKING",FEWER_TRANSFERS:"FEWER_TRANSFERS"};var rfa=_.se({routes:_.ve(_.we(_.fe))},!0);_.Sg=[];_.Sa(Ug,_.O);Ug.prototype.changed=function(a){var b=this;"map"!=a&&"panel"!=a||_.nf("directions").then(function(c){c.Hx(b,a)});"panel"==a&&_.Tg(this.getPanel())};_.ug(Ug.prototype,{directions:rfa,map:_.Xk,panel:_.ze(_.we(fba)),routeIndex:_.Yg});Vg.prototype.getDistanceMatrix=function(a,b){_.R(window,"Dmac");_.P(window,154344);var c=_.nf("distance_matrix").then(function(d){return d.getDistanceMatrix(a,b)});b&&c.catch(function(){});return c};Vg.prototype.getDistanceMatrix=Vg.prototype.getDistanceMatrix;Wg.prototype.getElevationAlongPath=function(a,b){var c=_.nf("elevation").then(function(d){return d.getElevationAlongPath(a,b)});b&&c.catch(function(){});return c};Wg.prototype.getElevationAlongPath=Wg.prototype.getElevationAlongPath;Wg.prototype.getElevationForLocations=function(a,b){var c=_.nf("elevation").then(function(d){return d.getElevationForLocations(a,b)});b&&c.catch(function(){});return c};Wg.prototype.getElevationForLocations=Wg.prototype.getElevationForLocations;Xg.prototype.geocode=function(a,b){var c;sfa()||(c=_.Mg(145570));_.R(window,"Gac");_.P(window,155468);var d=_.nf("geocoder").then(function(e){return e.geocode(a,b,c)},function(){c&&_.Ng(c,13)});b&&d.catch(function(){});return d};Xg.prototype.geocode=Xg.prototype.geocode;Xg.prototype.constructor=Xg.prototype.constructor;var sfa=_.Pg();_.tfa={ROOFTOP:"ROOFTOP",RANGE_INTERPOLATED:"RANGE_INTERPOLATED",GEOMETRIC_CENTER:"GEOMETRIC_CENTER",APPROXIMATE:"APPROXIMATE"};_.$g.prototype.equals=function(a){return a?_.ce(this.j,a.lat)&&_.ce(this.m,a.lng)&&_.ce(this.h,a.altitude):!1};_.$g.prototype.toJSON=function(){return{lat:this.j,lng:this.m,altitude:this.h}};_.da.Object.defineProperties(_.$g.prototype,{lat:{configurable:!0,enumerable:!0,get:function(){return this.j}},lng:{configurable:!0,enumerable:!0,get:function(){return this.m}},altitude:{configurable:!0,enumerable:!0,get:function(){return this.h}}});_.$g.prototype.toJSON=_.$g.prototype.toJSON; | |||
| _.$g.prototype.equals=_.$g.prototype.equals;_.$g.prototype.constructor=_.$g.prototype.constructor;Object.defineProperties(_.$g.prototype,{lat:{enumerable:!0},lng:{enumerable:!0},altitude:{enumerable:!0}});_.Ih=new _.S(0,0);_.S.prototype.toString=function(){return"("+this.x+", "+this.y+")"};_.S.prototype.toString=_.S.prototype.toString;_.S.prototype.equals=function(a){return a?a.x==this.x&&a.y==this.y:!1};_.S.prototype.equals=_.S.prototype.equals;_.S.prototype.equals=_.S.prototype.equals;_.S.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y)};_.S.prototype.um=_.ba(11);_.Jh=new _.bh(0,0);_.bh.prototype.toString=function(){return"("+this.width+", "+this.height+")"};_.bh.prototype.toString=_.bh.prototype.toString;_.bh.prototype.equals=function(a){return a?a.width==this.width&&a.height==this.height:!1};_.bh.prototype.equals=_.bh.prototype.equals;_.bh.prototype.equals=_.bh.prototype.equals;var ufa=_.we(Jba,"not a valid InfoWindow anchor");var Kba=new _.x.Set;Kba.add("gm-style-iw-a");var nh={};var vfa=_.se({source:_.Rk,webUrl:_.Tk,iosDeepLinkId:_.Tk});var wfa=_.ye(_.se({placeId:_.Tk,query:_.Tk,location:_.Qe}),function(a){if(a.placeId&&a.query)throw _.qe("cannot set both placeId and query");if(!a.placeId&&!a.query)throw _.qe("must set one of placeId or query");return a});_.Sa(ph,_.O); | |||
| _.ug(ph.prototype,{position:_.ze(_.Qe),title:_.Tk,icon:_.ze(_.xe([_.Rk,_.we(function(a){var b=_.oh("maps-pin-view");return!!a&&"element"in a&&a.element.classList.contains(b)},"should be a PinView"),{Vp:Ae("url"),then:_.se({url:_.Rk,scaledSize:_.ze(mh),size:_.ze(mh),origin:_.ze(ah),anchor:_.ze(ah),labelOrigin:_.ze(ah),path:_.we(function(a){return null==a})},!0)},{Vp:Ae("path"),then:_.se({path:_.xe([_.Rk,_.ue(kfa)]),anchor:_.ze(ah),labelOrigin:_.ze(ah),fillColor:_.Tk,fillOpacity:_.Yg,rotation:_.Yg,scale:_.Yg, | |||
| strokeColor:_.Tk,strokeOpacity:_.Yg,strokeWeight:_.Yg,url:_.we(function(a){return null==a})},!0)}])),label:_.ze(_.xe([_.Rk,{Vp:Ae("text"),then:_.se({text:_.Rk,fontSize:_.Tk,fontWeight:_.Tk,fontFamily:_.Tk,className:_.Tk},!0)}])),shadow:_.hb,shape:_.hb,cursor:_.Tk,clickable:_.Uk,animation:_.hb,draggable:_.Uk,visible:_.Uk,flat:_.hb,zIndex:_.Yg,opacity:_.Yg,place:_.ze(wfa),attribution:_.ze(vfa)});var qh,Lba=_.hb;rh.prototype.get=function(){if(0<this.j){this.j--;var a=this.h;this.h=a.next;a.next=null}else a=this.C();return a};sh.prototype.add=function(a,b){var c=Sba.get();c.set(a,b);this.j?this.j.next=c:this.h=c;this.j=c};sh.prototype.remove=function(){var a=null;this.h&&(a=this.h,this.h=this.h.next,this.h||(this.j=null),a.next=null);return a};var Sba=new rh(function(){return new th},function(a){return a.reset()});th.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};th.prototype.reset=function(){this.next=this.scope=this.fn=null};var uh,vh=!1,Qba=new sh;_.xh.prototype.addListener=function(a,b){Uba(this,a,b,!1)};_.xh.prototype.addListenerOnce=function(a,b){Uba(this,a,b,!0)};_.xh.prototype.removeListener=function(a,b){this.h.length&&((a=_.v(this.h,"find").call(this.h,Tba(a,b)))&&this.h.splice(this.h.indexOf(a),1),this.h.length||this.Cg())};var Vba=null;_.n=_.yh.prototype;_.n.rh=function(){};_.n.Cg=function(){};_.n.addListener=function(a,b){return this.h.addListener(a,b)};_.n.addListenerOnce=function(a,b){return this.h.addListenerOnce(a,b)};_.n.removeListener=function(a,b){return this.h.removeListener(a,b)};_.n.notify=function(a){var b=this;_.Wba(this.h,function(c){c(b.get())},a)};_.B(_.zh,_.yh);_.zh.prototype.set=function(a){this.F&&this.get()===a||(this.kq(a),this.notify())};_.B(Ah,_.zh);Ah.prototype.get=function(){return this.value};Ah.prototype.kq=function(a){this.value=a};_.Sa(_.Dh,_.O);var Yk=_.ze(_.te(_.Dh,"StreetViewPanorama"));var yca=function(){if(!_.C.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{_.C.addEventListener("test",function(){},b),_.C.removeEventListener("test",function(){},b)}catch(c){}return a}();_.Sa(_.Eh,ph);_.Eh.prototype.map_changed=function(){var a=this.get("map");a=a&&a.__gm.qj;this.__gm.set!==a&&(this.__gm.set&&this.__gm.set.remove(this),(this.__gm.set=a)&&_.ci(a,this))};_.Eh.MAX_ZINDEX=1E6;_.ug(_.Eh.prototype,{map:_.xe([_.Xk,Yk])});_.B(Gh,_.O);_.n=Gh.prototype;_.n.internalAnchor_changed=function(){var a=Fh(this.get("internalAnchor"));Hh(this,"attribution",a);Hh(this,"place",a);Hh(this,"pixelPosition",a);Hh(this,"internalAnchorMap",a,"map",!0);this.internalAnchorMap_changed(!0);Hh(this,"internalAnchorPoint",a,"anchorPoint");a instanceof _.Eh?Hh(this,"internalAnchorPosition",a,"internalPosition"):Hh(this,"internalAnchorPosition",a,"position")};_.n.internalAnchorPoint_changed=function(){Xba(this)}; | |||
| _.n.internalPixelOffset_changed=function(){Xba(this)};_.n.internalAnchorPosition_changed=function(){var a=this.get("internalAnchorPosition");a&&this.set("position",a)};_.n.internalAnchorMap_changed=function(a){a=void 0===a?!1:a;this.get("internalAnchor")&&(a||this.get("internalAnchorMap")!==this.infoWindow.get("map"))&&this.infoWindow.set("map",this.get("internalAnchorMap"))}; | |||
| _.n.internalContent_changed=function(){var a=this.set,b;if(b=this.get("internalContent")){if("string"===typeof b){var c=document.createElement("div");_.Sd(c,_.Sb(b))}else b.nodeType===Node.TEXT_NODE?(c=document.createElement("div"),c.appendChild(b)):c=b;b=c}else b=null;a.call(this,"content",b)};_.n.trigger=function(a){_.N(this.infoWindow,a)};_.n.close=function(){this.infoWindow.set("map",null)};_.B(_.Kh,_.O); | |||
| _.Kh.prototype.open=function(a,b){var c=b;b={};"object"!==typeof a||!a||a instanceof _.Dh||a instanceof _.Uf?(b.map=a,b.anchor=c):(b.map=a.map,b.shouldFocus=a.shouldFocus,b.anchor=c||a.anchor);a=(a=Fh(b.anchor))&&a.get("map");a=a instanceof _.Uf||a instanceof _.Dh;b.map||a||console.warn("InfoWindow.open() was called without an associated Map or StreetViewPanorama instance.");var d=_.v(Object,"assign").call(Object,{},b);a=d.map;b=d.anchor;c=this.set;var e=d.map;var f=d.shouldFocus;e="boolean"===typeof f? | |||
| f:(e=(d=Fh(d.anchor))&&d.get("map")||e)?e.__gm.get("isInitialized"):!1;c.call(this,"shouldFocus",e);this.set("anchor",b);b?!this.get("map")&&a&&this.set("map",a):this.set("map",a)};_.Kh.prototype.close=function(){this.set("map",null)};_.Kh.prototype.focus=function(){this.get("map")&&!this.get("pendingFocus")&&this.set("pendingFocus",!0)};_.Kh.prototype.focus=_.Kh.prototype.focus;_.Kh.prototype.close=_.Kh.prototype.close;_.Kh.prototype.open=_.Kh.prototype.open;_.Kh.prototype.constructor=_.Kh.prototype.constructor; | |||
| _.ug(_.Kh.prototype,{content:_.xe([_.Tk,_.we(fba)]),position:_.ze(_.Qe),size:_.ze(mh),map:_.xe([_.Xk,Yk]),anchor:_.ze(_.xe([_.te(_.O,"MVCObject"),ufa])),zIndex:_.Yg});_.Sa(_.Lh,_.O);_.Lh.prototype.map_changed=function(){var a=this;_.nf("kml").then(function(b){a.get("map")?a.get("map").__gm.T.then(function(){return b.h(a)}):b.h(a)})};_.ug(_.Lh.prototype,{map:_.Xk,url:null,bounds:null,opacity:_.Yg});_.Sa(Mh,_.O);Mh.prototype.F=function(){var a=this;_.nf("kml").then(function(b){b.j(a)})};Mh.prototype.url_changed=Mh.prototype.F;Mh.prototype.map_changed=Mh.prototype.F;Mh.prototype.zIndex_changed=Mh.prototype.F;_.ug(Mh.prototype,{map:_.Xk,defaultViewport:null,metadata:null,status:null,url:_.Tk,screenOverlays:_.Uk,zIndex:_.Yg});_.Zk={UNKNOWN:"UNKNOWN",OK:"OK",INVALID_REQUEST:"INVALID_REQUEST",DOCUMENT_NOT_FOUND:"DOCUMENT_NOT_FOUND",FETCH_ERROR:"FETCH_ERROR",INVALID_DOCUMENT:"INVALID_DOCUMENT",DOCUMENT_TOO_LARGE:"DOCUMENT_TOO_LARGE",LIMITS_EXCEEDED:"LIMITS_EXECEEDED",TIMED_OUT:"TIMED_OUT"};_.Sa(_.Nh,_.O);_.ug(_.Nh.prototype,{map:_.Xk});_.Sa(Oh,_.O);_.ug(Oh.prototype,{map:_.Xk});_.Sa(Uh,_.O);_.ug(Uh.prototype,{map:_.Xk});var xfa=_.se({center:_.ze(_.Re),zoom:_.Yg,heading:_.Yg,tilt:_.Yg});_.B(Vh,_.O);Vh.prototype.mapId_changed=function(){if(!this.j&&this.get("mapId")!==this.h){this.j=!0;try{this.set("mapId",this.h)}finally{this.j=!1}console.warn("Google Maps JavaScript API: A Map's mapId property cannot be changed after Map construction. Please set the Map's mapId in the constructor MapOptions.");_.R(window,"Miacu");_.P(window,149729)}}; | |||
| Vh.prototype.styles_changed=function(){var a=this.get("styles");this.h&&a&&(this.set("styles",void 0),console.warn("Google Maps JavaScript API: A Map's styles property cannot be set when a mapId is present. When a mapId is present Map styles are controlled via the cloud console. Please see documentation at https://developers.google.com/maps/documentation/javascript/styling#cloud_tooling"),_.R(window,"Miwsu"),_.P(window,149731),a.length||(_.R(window,"Miwesu"),_.P(window,149730)))};Wh.prototype.clone=function(){var a=new Wh;a.isAvailable=this.isAvailable;this.h.forEach(function(b){Xh(a,b)});return a};_.Sa(Zba,_.O);_.B(ai,_.O);ai.prototype.log=function(a,b){a.Yg&&console.error((void 0===b?"":b)+a.Yg);a.sg&&_.R(this.D,a.sg);a.xi&&_.P(this.D,a.xi)};ai.prototype.getMapCapabilities=function(a){a=void 0===a?!1:a;var b=Object.freeze({});a&&(console.debug(b),this.log({sg:"Mcmi",xi:153027}));return b};ai.prototype.mapCapabilities_changed=function(){if(!this.C){this.C=!0;try{this.set("mapCapabilities",this.getMapCapabilities())}finally{this.C=!1}throw Error("Attempted to set read-only key: mapCapabilities");}}; | |||
| var $k={},eca=($k.ADVANCED_MARKERS={sg:"Mcmea",xi:153025},$k.DATA_DRIVEN_STYLING={sg:"Mcmed",xi:153026},$k);_.bi.prototype.remove=function(a){var b=this.j,c=_.Pf(a);b[c]&&(delete b[c],--this.m,_.N(this,"remove",a),this.onRemove&&this.onRemove(a))};_.bi.prototype.contains=function(a){return!!this.j[_.Pf(a)]};_.bi.prototype.forEach=function(a){var b=this.j,c;for(c in b)a.call(this,b[c])};_.bi.prototype.getSize=function(){return this.m};var nca,oca,mca;_.B(_.di,$aa);_.di.prototype.Pa=function(a,b){var c=Array(jca(a));lca(a,b,c,0);return c.join("")};_.al=new _.di;nca=RegExp("(\\*)","g");oca=RegExp("(!)","g");mca=RegExp("^[-A-Za-z0-9_.!~*() ]*$");var yfa;_.B(fi,$aa);fi.prototype.Pa=function(a,b){var c=[];qca(a,b,c);return c.join("&").replace(yfa,"%27")};_.sj=new fi;yfa=RegExp("'","g");_.zfa=(0,_.x.Symbol)(void 0);_.n=_.gi.prototype;_.n.hj=!1;_.n.vd=function(){return this.hj};_.n.dispose=function(){this.hj||(this.hj=!0,this.Ab())};_.n.Bf=_.ba(12);_.n.Ab=function(){if(this.V)for(;this.V.length;)this.V.shift()()};_.hi.prototype.stopPropagation=function(){this.j=!0};_.hi.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Sa(_.ki,_.hi);var rca={2:"touch",3:"pen",4:"mouse"};_.ki.prototype.stopPropagation=function(){_.ki.ye.stopPropagation.call(this);this.h.stopPropagation?this.h.stopPropagation():this.h.cancelBubble=!0};_.ki.prototype.preventDefault=function(){_.ki.ye.preventDefault.call(this);var a=this.h;a.preventDefault?a.preventDefault():a.returnValue=!1};var sca="closure_listenable_"+(1E6*Math.random()|0);var tca=0;ni.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.h[f];a||(a=this.h[f]=[],this.j++);var g=pi(a,b,d,e);-1<g?(b=a[g],c||(b.Kl=!1)):(b=new uca(b,this.src,f,!!d,e),b.Kl=c,a.push(b));return b};ni.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.h))return!1;var e=this.h[a];b=pi(e,b,c,d);return-1<b?(mi(e[b]),_.nb(e,b),0==e.length&&(delete this.h[a],this.j--),!0):!1};var vi="closure_lm_"+(1E6*Math.random()|0),xi={},Aca=0,yi="__closure_events_fn_"+(1E9*Math.random()>>>0);_.Sa(_.zi,_.gi);_.zi.prototype[sca]=!0;_.zi.prototype.addEventListener=function(a,b,c,d){_.ri(this,a,b,c,d)};_.zi.prototype.removeEventListener=function(a,b,c,d){Cca(this,a,b,c,d)}; | |||
| _.zi.prototype.m=function(a){var b=this.Xa;if(b){var c=[];for(var d=1;b;b=b.Xa)c.push(b),++d}b=this.Qg;d=a.type||a;if("string"===typeof a)a=new _.hi(a,b);else if(a instanceof _.hi)a.target=a.target||b;else{var e=a;a=new _.hi(d,b);_.fb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.j&&0<=f;f--){var g=a.currentTarget=c[f];e=Ai(g,d,!0,a)&&e}a.j||(g=a.currentTarget=b,e=Ai(g,d,!0,a)&&e,a.j||(e=Ai(g,d,!1,a)&&e));if(c)for(f=0;!a.j&&f<c.length;f++)g=a.currentTarget=c[f],e=Ai(g,d,!1,a)&&e;return e}; | |||
| _.zi.prototype.Ab=function(){_.zi.ye.Ab.call(this);this.cf&&_.vca(this.cf);this.Xa=null};Dca.prototype.reset=function(){this.context=this.j=this.m=this.h=null;this.C=!1};var Eca=new rh(function(){return new Dca},function(a){a.reset()});_.Di.prototype.then=function(a,b,c){return Lca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};_.Di.prototype.$goog_Thenable=!0;_.Di.prototype.cancel=function(a){if(0==this.h){var b=new Ei(a);_.wh(function(){Gca(this,b)},this)}};_.Di.prototype.J=function(a){this.h=0;Bi(this,2,a)};_.Di.prototype.K=function(a){this.h=0;Bi(this,3,a)}; | |||
| _.Di.prototype.H=function(){for(var a;a=Hca(this);)Ica(this,a,this.h,this.G);this.F=!1};var Pca=_.Vb;_.Sa(Ei,_.Ua);Ei.prototype.name="cancel";_.Sa(_.Gi,_.gi);_.n=_.Gi.prototype;_.n.gk=0;_.n.Ab=function(){_.Gi.ye.Ab.call(this);this.stop();delete this.h;delete this.j};_.n.start=function(a){this.stop();this.gk=_.Fi(this.m,void 0!==a?a:this.C)};_.n.stop=function(){this.isActive()&&_.C.clearTimeout(this.gk);this.gk=0};_.n.Hc=function(){this.stop();this.lq()};_.n.isActive=function(){return 0!=this.gk};_.n.lq=function(){this.gk=0;this.h&&this.h.call(this.j)};_.n=_.Ii.prototype;_.n.isEmpty=function(){return!(this.xa<this.Ca&&this.oa<this.ya)};_.n.extend=function(a){a&&(this.xa=Math.min(this.xa,a.x),this.Ca=Math.max(this.Ca,a.x),this.oa=Math.min(this.oa,a.y),this.ya=Math.max(this.ya,a.y))};_.n.getSize=function(){return new _.bh(this.Ca-this.xa,this.ya-this.oa)};_.n.getCenter=function(){return new _.S((this.xa+this.Ca)/2,(this.oa+this.ya)/2)};_.n.equals=function(a){return a?this.xa===a.xa&&this.oa===a.oa&&this.Ca===a.Ca&&this.ya===a.ya:!1};_.n.Gf=_.ba(9); | |||
| _.bl=_.Ji(-Infinity,-Infinity,Infinity,Infinity);_.Ji(0,0,0,0);_.Sa(_.Li,_.gi);_.Li.prototype.Hc=function(a){this.m=arguments;this.h?this.j=_.Pa()+this.D:this.h=_.Fi(this.C,this.D)};_.Li.prototype.stop=function(){this.h&&(_.C.clearTimeout(this.h),this.h=null);this.j=null;this.m=[]};_.Li.prototype.Ab=function(){this.stop();_.Li.ye.Ab.call(this)};_.Li.prototype.G=function(){this.h&&(_.C.clearTimeout(this.h),this.h=null);this.j?(this.h=_.Fi(this.C,this.j-_.Pa()),this.j=null):this.F.apply(null,this.m)};_.Sa(_.Ni,_.O);_.Ni.prototype.getAt=function(a){return this.h[a]};_.Ni.prototype.getAt=_.Ni.prototype.getAt;_.Ni.prototype.indexOf=function(a){for(var b=0,c=this.h.length;b<c;++b)if(a===this.h[b])return b;return-1};_.Ni.prototype.forEach=function(a){for(var b=0,c=this.h.length;b<c;++b)a(this.h[b],b)};_.Ni.prototype.forEach=_.Ni.prototype.forEach; | |||
| _.Ni.prototype.setAt=function(a,b){var c=this.h[a],d=this.h.length;if(a<d)this.h[a]=b,_.N(this,"set_at",a,c),this.C&&this.C(a,c);else{for(c=d;c<a;++c)this.insertAt(c,void 0);this.insertAt(a,b)}};_.Ni.prototype.setAt=_.Ni.prototype.setAt;_.Ni.prototype.insertAt=function(a,b){this.h.splice(a,0,b);Mi(this);_.N(this,"insert_at",a);this.j&&this.j(a)};_.Ni.prototype.insertAt=_.Ni.prototype.insertAt; | |||
| _.Ni.prototype.removeAt=function(a){var b=this.h[a];this.h.splice(a,1);Mi(this);_.N(this,"remove_at",a,b);this.m&&this.m(a,b);return b};_.Ni.prototype.removeAt=_.Ni.prototype.removeAt;_.Ni.prototype.push=function(a){this.insertAt(this.h.length,a);return this.h.length};_.Ni.prototype.push=_.Ni.prototype.push;_.Ni.prototype.pop=function(){return this.removeAt(this.h.length-1)};_.Ni.prototype.pop=_.Ni.prototype.pop;_.Ni.prototype.getArray=function(){return this.h};_.Ni.prototype.getArray=_.Ni.prototype.getArray; | |||
| _.Ni.prototype.clear=function(){for(;this.get("length");)this.pop()};_.Ni.prototype.clear=_.Ni.prototype.clear;_.ug(_.Ni.prototype,{length:null});_.n=_.Oi.prototype;_.n.Jd=_.ba(13);_.n.tf=function(a){a=_.Wca(this,a);return a.length<this.h.length?new _.Oi(a):this};_.n.forEach=function(a,b){_.kb(this.h,function(c,d){a.call(b,c,d)})};_.n.some=function(a,b){return _.taa(this.h,function(c,d){return a.call(b,c,d)})};_.n.size=function(){return this.h.length};_.eda={japan_prequake:20,japan_postquake2010:24};var Afa=_.se({zoom:_.ze(ch),heading:ch,pitch:ch});_.Ri.prototype.remove=function(){if(this.h.removeEventListener)this.h.removeEventListener(this.m,this.j,this.C);else{var a=this.h;a.detachEvent&&a.detachEvent("on"+this.m,this.j)}};var Xca=!1;try{var Bfa=function(){};_.da.Object.defineProperties(Bfa.prototype,{passive:{configurable:!0,enumerable:!0,get:function(){Xca=!0}}});_.C.addEventListener("test",null,new Bfa)}catch(a){};var Cfa,Dfa;Cfa=["mousedown","touchstart","pointerdown","MSPointerDown"];Dfa=["wheel","mousewheel"];_.Ti=void 0;_.Si=!1;try{_.Qi(document.createElement("div"),":focus-visible"),_.Si=!0}catch(a){}if("undefined"!==typeof document){_.Af(document,"keydown",function(){_.Ti=!0},!0);for(var Efa=_.A(Cfa),cl=Efa.next();!cl.done;cl=Efa.next())_.Af(document,cl.value,function(){_.Ti=!1},!0);for(var Ffa=_.A(Dfa),dl=Ffa.next();!dl.done;dl=Ffa.next())_.Af(document,dl.value,function(){_.Ti=!1},!0)};var Gfa=new _.x.Map([[3,"Google Chrome"],[2,"Microsoft Edge"]]),Zca=new _.x.Map([[1,["msie"]],[2,["edge"]],[3,["chrome","crios"]],[5,["firefox","fxios"]],[4,["applewebkit"]],[6,["trident"]],[7,["mozilla"]]]),el={},$ca=(el[0]="",el[1]="x11",el[2]="macintosh",el[3]="windows",el[4]="android",el[6]="iphone",el[5]="ipad",el),Wi=null;_.da.Object.defineProperties(ada.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return 5===this.type||7===this.type}}}); | |||
| _.da.Object.defineProperties(bda.prototype,{version:{configurable:!0,enumerable:!0,get:function(){if(this.C)return this.C;if(navigator.userAgentData&&navigator.userAgentData.brands)for(var a=_.A(navigator.userAgentData.brands),b=a.next();!b.done;b=a.next())if(b=b.value,b.brand===Gfa.get(this.type))return this.C=new Vi(+b.version,0);return this.C=Xi().version}},D:{configurable:!0,enumerable:!0,get:function(){return Xi().D}},type:{configurable:!0,enumerable:!0,get:function(){if(this.m)return this.m; | |||
| if(navigator.userAgentData&&navigator.userAgentData.brands)for(var a=navigator.userAgentData.brands.map(function(e){return e.brand}),b=_.A(Gfa),c=b.next();!c.done;c=b.next()){var d=_.A(c.value);c=d.next().value;d=d.next().value;if(_.v(a,"includes").call(a,d))return this.m=c}return this.m=Xi().type}},j:{configurable:!0,enumerable:!0,get:function(){return 5===this.type||7===this.type}},h:{configurable:!0,enumerable:!0,get:function(){return 4===this.type||3===this.type}},T:{configurable:!0,enumerable:!0, | |||
| get:function(){return this.j?Xi().j:0}},N:{configurable:!0,enumerable:!0,get:function(){return Xi().m}},Wc:{configurable:!0,enumerable:!0,get:function(){return 1===this.type}},V:{configurable:!0,enumerable:!0,get:function(){return 5===this.type}},F:{configurable:!0,enumerable:!0,get:function(){return 3===this.type}},H:{configurable:!0,enumerable:!0,get:function(){return 4===this.type}},G:{configurable:!0,enumerable:!0,get:function(){if(navigator.userAgentData&&navigator.userAgentData.platform)return"iOS"=== | |||
| navigator.userAgentData.platform;var a=Xi();return 6===a.h||5===a.h}},K:{configurable:!0,enumerable:!0,get:function(){return navigator.userAgentData&&navigator.userAgentData.platform?"macOS"===navigator.userAgentData.platform:2===Xi().h}},J:{configurable:!0,enumerable:!0,get:function(){return navigator.userAgentData&&navigator.userAgentData.platform?"Android"===navigator.userAgentData.platform:4===Xi().h}}});_.$i=new bda;_.fl=new function(){this.h=_.$i;this.j=ib(function(){return void 0!==(new Image).crossOrigin});this.m=ib(function(){return void 0!==document.createElement("span").draggable})};_.Sa(_.ej,_.Dh);_.ej.prototype.visible_changed=function(){var a=this,b=!!this.get("visible"),c=!1;this.h.get()!=b&&(this.m&&(c=this.__gm,c.set("shouldAutoFocus",b&&c.get("isMapInitialized"))),dda(this,b),this.h.set(b),c=b);b&&(this.F=this.F||new _.x.Promise(function(d){_.nf("streetview").then(function(e){if(a.D)var f=a.D;a.__gm.set("isInitialized",!0);d(e.Xy(a,a.h,a.m,f))},function(){_.Ng(a.__gm.get("sloTrackingId"),13)})}),c&&this.F.then(function(d){return d.Lz()}))}; | |||
| _.ej.prototype.H=function(a){if("Escape"===a.key){var b,c;(null==(b=this.j)?0:null==(c=b.Dg)?0:c.contains(document.activeElement))&&this.get("enableCloseButton")&&this.get("visible")&&(a.stopPropagation(),_.N(this,"closeclick"),this.set("visible",!1))}};_.ug(_.ej.prototype,{visible:_.Uk,pano:_.Tk,position:_.ze(_.Qe),pov:_.ze(Afa),motionTracking:Sk,photographerPov:null,location:null,links:_.ve(_.we(_.fe)),status:null,zoom:_.Yg,enableCloseButton:_.Uk});_.ej.prototype.Nd=_.ba(14); | |||
| _.ej.prototype.registerPanoProvider=function(a,b){this.set("panoProvider",{provider:a,options:b||{}})};_.ej.prototype.registerPanoProvider=_.ej.prototype.registerPanoProvider;_.ej.prototype.focus=function(){var a=this.__gm;this.getVisible()&&!a.get("pendingFocus")&&a.set("pendingFocus",!0)};_.ej.prototype.focus=_.ej.prototype.focus;fda.prototype.register=function(a){var b=this.C;var c=b.length;if(!c||a.zIndex>=b[0].zIndex)var d=0;else if(a.zIndex>=b[c-1].zIndex){for(d=0;1<c-d;){var e=d+c>>1;a.zIndex>=b[e].zIndex?c=e:d=e}d=c}else d=c;b.splice(d,0,a)};_.Hfa=Object.freeze(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"]);_.Ifa=Object.freeze(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"]);_.Jfa=Object.freeze(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"]);_.Kfa=Object.freeze(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"]);_.Sa(ida,Zba);_.Sa(fj,_.O);fj.prototype.set=function(a,b){if(null!=b&&!(b&&_.ee(b.maxZoom)&&b.tileSize&&b.tileSize.width&&b.tileSize.height&&b.getTile&&b.getTile.apply))throw Error("Expected value implementing google.maps.MapType");return _.O.prototype.set.apply(this,arguments)};fj.prototype.set=fj.prototype.set;_.B(gj,_.O);gj.prototype.renderingType_changed=function(){if(!this.h)throw jda(this),Error("Setting map 'renderingType' is not supported. RenderingType is decided internally and is read-only. If you wish to create a vector map please create a map ID in the cloud console as per https://developers.google.com/maps/documentation/javascript/vector-map");};_.hj.prototype.fromLatLngToPoint=function(a,b){b=void 0===b?new _.S(0,0):b;a=_.Qe(a);var c=this.h;b.x=c.x+a.lng()*this.m;a=_.ae(Math.sin(_.Qd(a.lat())),-(1-1E-15),1-1E-15);b.y=c.y+.5*Math.log((1+a)/(1-a))*-this.C;return b};_.hj.prototype.fromPointToLatLng=function(a,b){var c=this.h;return new _.De(_.Rd(2*Math.atan(Math.exp((a.y-c.y)/-this.C))-Math.PI/2),(a.x-c.x)/this.m,void 0===b?!1:b)};_.B(oj,_.F);oj.prototype.xc=function(a){_.D(this.o,8,a)};var vj;_.B(_.pj,_.F);_.pj.prototype.Sb=_.ba(16);var uj;_.B(nda,_.F);_.B(_.qj,_.F);_.qj.prototype.Da=_.ba(17);_.qj.prototype.Ba=_.ba(18);_.B(rj,_.F);rj.prototype.getZoom=function(){return _.I(this.o,3)};rj.prototype.setZoom=function(a){_.D(this.o,3,a)};var tj;_.xj.prototype.equals=function(a){return a?this.h===a.h&&this.j===a.j:!1};_.yj.prototype.wrap=function(a){return a-Math.floor((a-this.min)/this.length)*this.length};_.zj.prototype.wrap=function(a){return new _.xj(this.Ki?this.Ki.wrap(a.h):a.h,this.Rj?this.Rj.wrap(a.j):a.j)};_.Lfa=new _.zj({Ki:new _.yj(256)});pda.prototype.equals=function(a){return a?this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.h===a.h:!1};_.B(Dj,_.O);Dj.prototype.changed=function(){var a=this.G(),b=rda(this),c=qda(this),d=!!this.C();if(a&&!a.equals(this.K)||this.W!==b||this.X!==c||this.H!==d)this.m||_.Cj(this.h),_.Hi(this.Ea),this.W=b,this.X=c,this.H=d;this.K=a}; | |||
| Dj.prototype.div_changed=function(){var a=this.get("div"),b=this.j;if(a)if(b)a.appendChild(b);else{b=this.j=document.createElement("div");b.style.overflow="hidden";var c=this.h=_.Ve("IMG");_.Af(b,"contextmenu",function(d){_.qf(d);_.sf(d)});c.ontouchstart=c.ontouchmove=c.ontouchend=c.ontouchcancel=function(d){_.rf(d);_.sf(d)};c.alt="";_.aj(c,_.Jh);a.appendChild(b);this.Ea.Hc()}else b&&(_.Cj(b),this.j=null)};var wda={roadmap:0,satellite:2,hybrid:3,terrain:4},sda={0:1,2:2,3:2,4:2};Dj.prototype.G=_.sg("center"); | |||
| Dj.prototype.C=_.sg("size");_.Ej.prototype.addListener=function(a,b){return _.L(this,a,b)};_.Ej.prototype.trigger=function(a,b){_.N(this,a,b)};_.Ej.prototype.addListener=_.Ej.prototype.addListener;_.Mfa=_.se({fillColor:_.ze(_.Vk),fillOpacity:_.ze(_.ye(Qk,_.Zg)),strokeColor:_.ze(_.Vk),strokeOpacity:_.ze(_.ye(Qk,_.Zg)),strokeWeight:_.ze(_.ye(Qk,_.Zg)),pointRadius:_.ze(_.ye(Qk,function(a){if(128>=a)return a;throw _.qe("The max allowed pointRadius value is 128px.");}))},!1,"FeatureStyleOptions");_.Fj.prototype.next=function(){return _.gl};_.gl={done:!0,value:void 0};_.Fj.prototype.Zi=function(){return this};_.Sa(Gj,_.Fj);_.n=Gj.prototype;_.n.setPosition=function(a,b,c){if(this.node=a)this.j="number"===typeof b?b:1!=this.node.nodeType?0:this.h?-1:1;"number"===typeof c&&(this.depth=c)};_.n.clone=function(){return new Gj(this.node,this.h,!this.m,this.j,this.depth)}; | |||
| _.n.next=function(){if(this.C){if(!this.node||this.m&&0==this.depth)return _.gl;var a=this.node;var b=this.h?-1:1;if(this.j==b){var c=this.h?a.lastChild:a.firstChild;c?this.setPosition(c):this.setPosition(a,-1*b)}else(c=this.h?a.previousSibling:a.nextSibling)?this.setPosition(c):this.setPosition(a.parentNode,-1*b);this.depth+=this.j*(this.h?-1:1)}else this.C=!0;return(a=this.node)?{value:a,done:!1}:_.gl};_.n.equals=function(a){return a.node==this.node&&(!this.node||a.j==this.j)}; | |||
| _.n.splice=function(a){var b=this.node,c=this.h?1:-1;this.j==c&&(this.j=-1*c,this.depth+=this.j*(this.h?-1:1));this.h=!this.h;Gj.prototype.next.call(this);this.h=!this.h;c=_.Ka(arguments[0])?arguments[0]:arguments;for(var d=c.length-1;0<=d;d--)_.We(c[d],b);_.Xe(b)};_.Sa(Hj,Gj);Hj.prototype.next=function(){do{var a=Hj.ye.next.call(this);if(a.done)return a}while(-1==this.j);return{value:this.node,done:!1}};Jj.prototype.hash=function(a){for(var b=this.a,c=this.h,d=0,e=0,f=a.length;e<f;++e)d*=b,d+=a[e],d%=c;return d};var yda=RegExp("'","g"),Lj=null;var Nj=null;_.Sa(Oj,_.Uf);Object.freeze({latLngBounds:new _.qg(new _.De(-85,-180),new _.De(85,180)),strictBounds:!0});Oj.prototype.streetView_changed=function(){var a=this.get("streetView");a?a.set("standAlone",!1):this.set("streetView",this.__gm.G)};Oj.prototype.getDiv=function(){return this.__gm.ta};Oj.prototype.getDiv=Oj.prototype.getDiv;Oj.prototype.panBy=function(a,b){var c=this.__gm;Nj?_.N(c,"panby",a,b):_.nf("map").then(function(){_.N(c,"panby",a,b)})};Oj.prototype.panBy=Oj.prototype.panBy; | |||
| Oj.prototype.moveCamera=function(a){var b=this.__gm;try{a=xfa(a)}catch(c){throw _.qe("invalid CameraOptions",c);}b.get("isMapBindingComplete")?_.N(b,"movecamera",a):b.T.then(function(){_.N(b,"movecamera",a)})};Oj.prototype.moveCamera=Oj.prototype.moveCamera;Oj.prototype.panTo=function(a){var b=this.__gm;a=_.Re(a);b.get("isMapBindingComplete")?_.N(b,"panto",a):b.T.then(function(){_.N(b,"panto",a)})};Oj.prototype.panTo=Oj.prototype.panTo; | |||
| Oj.prototype.panToBounds=function(a,b){var c=this.__gm,d=_.pg(a);c.get("isMapBindingComplete")?_.N(c,"pantolatlngbounds",d,b):c.T.then(function(){_.N(c,"pantolatlngbounds",d,b)})};Oj.prototype.panToBounds=Oj.prototype.panToBounds;Oj.prototype.fitBounds=function(a,b){var c=this,d=this.__gm,e=_.pg(a);d.get("isMapBindingComplete")?Nj.fitBounds(this,e,b):d.T.then(function(){Nj.fitBounds(c,e,b)})};Oj.prototype.fitBounds=Oj.prototype.fitBounds; | |||
| var Pj={bounds:null,center:_.ze(_.Re),clickableIcons:Sk,heading:_.Yg,mapTypeId:_.Tk,projection:null,renderingType:null,restriction:function(a){if(null==a)return null;a=_.se({strictBounds:_.Uk,latLngBounds:_.pg})(a);var b=a.latLngBounds;if(!(b.Va.hi>b.Va.lo))throw _.qe("south latitude must be smaller than north latitude");if((-180==b.Ja.hi?180:b.Ja.hi)==b.Ja.lo)throw _.qe("eastern longitude cannot equal western longitude");return a},streetView:Yk,tilt:_.Yg,zoom:_.Yg};_.ug(Oj.prototype,Pj);_.Nfa={BOUNCE:1,DROP:2,dB:3,aB:4};Qj.prototype.getMaxZoomAtLatLng=function(a,b){_.R(window,"Mza");_.P(window,154332);var c=_.nf("maxzoom").then(function(d){return d.getMaxZoomAtLatLng(a,b)});b&&c.catch(function(){});return c};Qj.prototype.getMaxZoomAtLatLng=Qj.prototype.getMaxZoomAtLatLng;Qj.prototype.constructor=Qj.prototype.constructor;_.Sa(Rj,_.O);_.ug(Rj.prototype,{map:_.Xk,tableId:_.Yg,query:_.ze(_.xe([_.Rk,_.we(_.fe,"not an Object")]))});var hl=null;_.Sa(_.Sj,_.O);_.Sj.prototype.map_changed=function(){var a=this;hl?hl.uq(this):_.nf("overlay").then(function(b){hl=b;b.uq(a)})};_.Sj.preventMapHitsFrom=function(a){_.nf("overlay").then(function(b){hl=b;b.preventMapHitsFrom(a)})};_.Qa("module$contents$mapsapi$overlay$overlayView_OverlayView.preventMapHitsFrom",_.Sj.preventMapHitsFrom);_.Sj.preventMapHitsAndGesturesFrom=function(a){_.nf("overlay").then(function(b){hl=b;b.preventMapHitsAndGesturesFrom(a)})}; | |||
| _.Qa("module$contents$mapsapi$overlay$overlayView_OverlayView.preventMapHitsAndGesturesFrom",_.Sj.preventMapHitsAndGesturesFrom);_.ug(_.Sj.prototype,{panes:null,projection:null,map:_.xe([_.Xk,Yk])});_.sea=_.se({center:function(a){return _.Qe(a)},radius:_.ig},!0);var Hda=Jda(_.te(_.De,"LatLng"));_.Sa(_.Vj,_.O);_.Vj.prototype.map_changed=_.Vj.prototype.visible_changed=function(){var a=this;_.nf("poly").then(function(b){b.h(a)})};_.Vj.prototype.center_changed=function(){_.N(this,"bounds_changed")};_.Vj.prototype.radius_changed=_.Vj.prototype.center_changed;_.Vj.prototype.getBounds=function(){var a=this.get("radius"),b=this.get("center");if(b&&_.ee(a)){var c=this.get("map");c=c&&c.__gm.get("baseMapType");return _.nj(b,a/_.Gda(c))}return null};_.Vj.prototype.getBounds=_.Vj.prototype.getBounds; | |||
| _.ug(_.Vj.prototype,{center:_.ze(_.Qe),draggable:_.Uk,editable:_.Uk,map:_.Xk,radius:_.Yg,visible:_.Uk});_.Sa(Wj,_.O);Wj.prototype.map_changed=Wj.prototype.visible_changed=function(){var a=this;_.nf("poly").then(function(b){b.j(a)})};Wj.prototype.getPath=function(){return this.get("latLngs").getAt(0)};Wj.prototype.getPath=Wj.prototype.getPath;Wj.prototype.setPath=function(a){try{this.get("latLngs").setAt(0,Uj(a))}catch(b){_.re(b)}};Wj.prototype.setPath=Wj.prototype.setPath;_.ug(Wj.prototype,{draggable:_.Uk,editable:_.Uk,map:_.Xk,visible:_.Uk});_.Sa(_.Xj,Wj);_.Xj.prototype.h=!0;_.Xj.prototype.getPaths=function(){return this.get("latLngs")};_.Xj.prototype.getPaths=_.Xj.prototype.getPaths;_.Xj.prototype.setPaths=function(a){try{var b=this.set;if(Array.isArray(a)||a instanceof _.Ni)if(0==_.Td(a))var c=!0;else{var d=a instanceof _.Ni?a.getAt(0):a[0];c=Array.isArray(d)||d instanceof _.Ni}else c=!1;var e=c?a instanceof _.Ni?Jda(Hda)(a):new _.Ni(_.ve(Uj)(a)):new _.Ni([Uj(a)]);b.call(this,"latLngs",e)}catch(f){_.re(f)}}; | |||
| _.Xj.prototype.setPaths=_.Xj.prototype.setPaths;_.Sa(_.Yj,Wj);_.Yj.prototype.h=!1;_.Sa(_.Zj,_.O);_.Zj.prototype.map_changed=_.Zj.prototype.visible_changed=function(){var a=this;_.nf("poly").then(function(b){b.m(a)})};_.ug(_.Zj.prototype,{draggable:_.Uk,editable:_.Uk,bounds:_.ze(_.pg),map:_.Xk,visible:_.Uk});_.Sa(ak,_.O);ak.prototype.map_changed=function(){var a=this;_.nf("streetview").then(function(b){b.Bv(a)})};_.ug(ak.prototype,{map:_.Xk});_.Ofa={NEAREST:"nearest",BEST:"best"};_.bk.prototype.getPanorama=function(a,b){return _.Kda(this,a,b)};_.bk.prototype.getPanorama=_.bk.prototype.getPanorama;_.bk.prototype.getPanoramaByLocation=function(a,b,c){return this.getPanorama({location:a,radius:b,preference:50>(b||0)?"best":"nearest"},c)};_.bk.prototype.getPanoramaById=function(a,b){return this.getPanorama({pano:a},b)};_.Pfa={DEFAULT:"default",OUTDOOR:"outdoor"};_.Sa(dk,_.O);dk.prototype.getTile=function(a,b,c){if(!a||!c)return null;var d=_.Ve("DIV");c={hb:a,zoom:b,Ka:null};d.__gmimt=c;_.ci(this.h,d);if(this.j){var e=this.tileSize||new _.bh(256,256),f=this.m(a,b);(c.Ka=this.j({ja:a.x,ka:a.y,wa:b},e,d,f,function(){_.N(d,"load")})).setOpacity(ck(this))}return d};dk.prototype.getTile=dk.prototype.getTile;dk.prototype.releaseTile=function(a){a&&this.h.contains(a)&&(this.h.remove(a),(a=a.__gmimt.Ka)&&a.release())};dk.prototype.releaseTile=dk.prototype.releaseTile; | |||
| dk.prototype.opacity_changed=function(){var a=ck(this);this.h.forEach(function(b){b.__gmimt.Ka.setOpacity(a)})};dk.prototype.triggersTileLoadEvent=!0;_.ug(dk.prototype,{opacity:_.Yg});_.Sa(_.ek,_.O);_.ek.prototype.getTile=_.raa;_.ek.prototype.tileSize=new _.bh(256,256);_.ek.prototype.triggersTileLoadEvent=!0;_.Sa(_.fk,_.ek);gk.prototype.log=function(){};gk.prototype.Zw=function(){return this.logs.map(this.h).join("\n")};gk.prototype.h=function(a){return a.timestamp+": "+a.message};gk.prototype.getLogs=gk.prototype.Zw;_.Qfa=new gk;var il=null;_.Sa(hk,_.O);hk.prototype.map_changed=function(){var a=this,b=this.getMap();il?b?il.Id(this,b):il.Xd(this):_.nf("webgl").then(function(c){il=c;(b=a.getMap())?c.Id(a,b):c.Xd(a)})};hk.prototype.Ss=function(a,b){this.m=!0;this.onDraw({gl:a,transformer:b});this.m=!1};hk.prototype.onDrawWrapper=hk.prototype.Ss;hk.prototype.requestRedraw=function(){this.h=!0;if(!this.m&&il){var a=this.getMap();a&&il.requestRedraw(a)}};hk.prototype.requestRedraw=hk.prototype.requestRedraw; | |||
| hk.prototype.requestStateUpdate=function(){this.C=!0;if(il){var a=this.getMap();a&&il.Pu(a)}};hk.prototype.requestStateUpdate=hk.prototype.requestStateUpdate;hk.prototype.j=-1;hk.prototype.h=!1;hk.prototype.C=!1;hk.prototype.m=!1;_.ug(hk.prototype,{map:_.Xk});_.Sa(ik,_.O);_.ug(ik.prototype,{attribution:function(){return!0},place:function(){return!0}});var Oda={ControlPosition:_.dj,LatLng:_.De,LatLngBounds:_.qg,MVCArray:_.Ni,MVCObject:_.O,MapsRequestError:_.Pd,MapsNetworkError:Nd,MapsNetworkErrorEndpoint:{PLACES_NEARBY_SEARCH:"PLACES_NEARBY_SEARCH",PLACES_LOCAL_CONTEXT_SEARCH:"PLACES_LOCAL_CONTEXT_SEARCH",MAPS_MAX_ZOOM:"MAPS_MAX_ZOOM",DISTANCE_MATRIX:"DISTANCE_MATRIX",ELEVATION_LOCATIONS:"ELEVATION_LOCATIONS",ELEVATION_ALONG_PATH:"ELEVATION_ALONG_PATH",GEOCODER_GEOCODE:"GEOCODER_GEOCODE",DIRECTIONS_ROUTE:"DIRECTIONS_ROUTE",PLACES_GATEWAY:"PLACES_GATEWAY", | |||
| PLACES_DETAILS:"PLACES_DETAILS",PLACES_FIND_PLACE_FROM_PHONE_NUMBER:"PLACES_FIND_PLACE_FROM_PHONE_NUMBER",PLACES_FIND_PLACE_FROM_QUERY:"PLACES_FIND_PLACE_FROM_QUERY",STREETVIEW_GET_PANORAMA:"STREETVIEW_GET_PANORAMA",PLACES_AUTOCOMPLETE:"PLACES_AUTOCOMPLETE",FLEET_ENGINE_LIST_DELIVERY_VEHICLES:"FLEET_ENGINE_LIST_DELIVERY_VEHICLES",FLEET_ENGINE_LIST_TASKS:"FLEET_ENGINE_LIST_TASKS",FLEET_ENGINE_LIST_VEHICLES:"FLEET_ENGINE_LIST_VEHICLES",FLEET_ENGINE_GET_DELIVERY_VEHICLE:"FLEET_ENGINE_GET_DELIVERY_VEHICLE", | |||
| FLEET_ENGINE_GET_TRIP:"FLEET_ENGINE_GET_TRIP",FLEET_ENGINE_GET_VEHICLE:"FLEET_ENGINE_GET_VEHICLE",FLEET_ENGINE_SEARCH_TASKS:"FLEET_ENGINE_SEARCH_TASKS",UA:"FLEET_ENGINE_GET_TASK_TRACKING_INFO"},MapsServerError:_.Od,Point:_.S,Size:_.bh,UnitSystem:_.kk,Settings:void 0,SymbolPath:kfa,LatLngAltitude:_.$g,event:_.tf},Pda={BicyclingLayer:_.Nh,Circle:_.Vj,Data:wg,GroundOverlay:_.Lh,ImageMapType:dk,KmlLayer:Mh,KmlLayerStatus:_.Zk,Map:Oj,MapTypeControlStyle:{DEFAULT:0,HORIZONTAL_BAR:1,DROPDOWN_MENU:2,INSET:3, | |||
| INSET_LARGE:4},MapTypeId:_.gfa,MapTypeRegistry:fj,MaxZoomService:Qj,MaxZoomStatus:{OK:"OK",ERROR:"ERROR"},OverlayView:_.Sj,Polygon:_.Xj,Polyline:_.Yj,Rectangle:_.Zj,RenderingType:{UNINITIALIZED:"UNINITIALIZED",RASTER:"RASTER",VECTOR:"VECTOR"},StrokePosition:{CENTER:0,INSIDE:1,OUTSIDE:2},StyledMapType:_.fk,TrafficLayer:Oh,TransitLayer:Uh,FeatureType:void 0,InfoWindow:_.Kh,WebGLOverlayView:hk},Qda={DirectionsRenderer:Ug,DirectionsService:Rg,DirectionsStatus:{OK:"OK",UNKNOWN_ERROR:"UNKNOWN_ERROR",OVER_QUERY_LIMIT:"OVER_QUERY_LIMIT", | |||
| REQUEST_DENIED:"REQUEST_DENIED",INVALID_REQUEST:"INVALID_REQUEST",ZERO_RESULTS:"ZERO_RESULTS",MAX_WAYPOINTS_EXCEEDED:"MAX_WAYPOINTS_EXCEEDED",NOT_FOUND:"NOT_FOUND"},DistanceMatrixService:Vg,DistanceMatrixStatus:{OK:"OK",INVALID_REQUEST:"INVALID_REQUEST",OVER_QUERY_LIMIT:"OVER_QUERY_LIMIT",REQUEST_DENIED:"REQUEST_DENIED",UNKNOWN_ERROR:"UNKNOWN_ERROR",MAX_ELEMENTS_EXCEEDED:"MAX_ELEMENTS_EXCEEDED",MAX_DIMENSIONS_EXCEEDED:"MAX_DIMENSIONS_EXCEEDED"},DistanceMatrixElementStatus:{OK:"OK",NOT_FOUND:"NOT_FOUND", | |||
| ZERO_RESULTS:"ZERO_RESULTS"},TrafficModel:_.ofa,TransitMode:_.pfa,TransitRoutePreference:_.qfa,TravelMode:_.jk,VehicleType:{RAIL:"RAIL",METRO_RAIL:"METRO_RAIL",SUBWAY:"SUBWAY",TRAM:"TRAM",MONORAIL:"MONORAIL",HEAVY_RAIL:"HEAVY_RAIL",COMMUTER_TRAIN:"COMMUTER_TRAIN",HIGH_SPEED_TRAIN:"HIGH_SPEED_TRAIN",BUS:"BUS",INTERCITY_BUS:"INTERCITY_BUS",TROLLEYBUS:"TROLLEYBUS",SHARE_TAXI:"SHARE_TAXI",FERRY:"FERRY",CABLE_CAR:"CABLE_CAR",GONDOLA_LIFT:"GONDOLA_LIFT",FUNICULAR:"FUNICULAR",OTHER:"OTHER"}},Rda={ElevationService:Wg, | |||
| ElevationStatus:{OK:"OK",UNKNOWN_ERROR:"UNKNOWN_ERROR",OVER_QUERY_LIMIT:"OVER_QUERY_LIMIT",REQUEST_DENIED:"REQUEST_DENIED",INVALID_REQUEST:"INVALID_REQUEST",LA:"DATA_NOT_AVAILABLE"}},Sda={Geocoder:Xg,GeocoderLocationType:_.tfa,GeocoderStatus:{OK:"OK",UNKNOWN_ERROR:"UNKNOWN_ERROR",OVER_QUERY_LIMIT:"OVER_QUERY_LIMIT",REQUEST_DENIED:"REQUEST_DENIED",INVALID_REQUEST:"INVALID_REQUEST",ZERO_RESULTS:"ZERO_RESULTS",ERROR:"ERROR"}},Tda={StreetViewCoverageLayer:ak,StreetViewPanorama:_.ej,StreetViewPreference:_.Ofa, | |||
| StreetViewService:_.bk,StreetViewStatus:{OK:"OK",UNKNOWN_ERROR:"UNKNOWN_ERROR",ZERO_RESULTS:"ZERO_RESULTS"},StreetViewSource:_.Pfa,InfoWindow:_.Kh,OverlayView:_.Sj},Uda={Animation:_.Nfa,Marker:_.Eh,CollisionBehavior:void 0},Wda=new _.x.Set("drawing geometry journeySharing localContext marker places visualization".split(" ")),Xda=new _.x.Set(["search"]);_.of("main",{});_.jl=new _.x.WeakMap;_.Rfa=RegExp("[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");_.Sfa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");_.Tfa=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]"); | |||
| _.Ufa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff][^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*$");_.Vfa=RegExp("[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc][^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*$");var kl=_.C.google.maps,Wfa=cf.getInstance(),Xfa=(0,_.Oa)(Wfa.qh,Wfa);kl.__gjsload__=Xfa;_.Ud(kl.modules,Xfa);delete kl.modules;var Zda={main:[],common:["main"],util:["common"],adsense:["main"],controls:["util"],data:["util"],directions:["util","geometry"],distance_matrix:["util"],drawing:["main"],drawing_impl:["controls"],elevation:["util","geometry"],geocoder:["util"],imagery_viewer:["main"],geometry:["main"],journeySharing:["main"],infowindow:["util"],kml:["onion","util","map"],layers:["map"],localContext:["util"],log:["util"],map:["common"],marker:["util"],maxzoom:["util"],onion:["util","map"],overlay:["common"],panoramio:["main"], | |||
| places:["main"],places_impl:["controls"],poly:["util","map","geometry"],search:["main"],search_impl:["onion"],stats:["util"],streetview:["util","geometry"],styleEditor:["common"],visualization:["main"],visualization_impl:["onion"],webgl:["util","map"],weather:["main"]};var bea="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");_.pk.prototype.constructor=_.pk.prototype.constructor;_.qk.prototype.j=null;var ll;_.Sa(rk,_.qk);rk.prototype.h=function(){var a=eea(this);return a?new ActiveXObject(a):new XMLHttpRequest};rk.prototype.C=function(){var a={};eea(this)&&(a[0]=!0,a[1]=!0);return a};ll=new rk;_.Sa(_.sk,_.zi);var kea=/^https?$/i,Yfa=["POST","PUT"];_.n=_.sk.prototype;_.n.Jq=_.ba(19); | |||
| _.n.send=function(a,b,c,d){if(this.h)throw Error("[goog.net.XhrIo] Object is active with another request="+this.N+"; newUri="+a);b=b?b.toUpperCase():"GET";this.N=a;this.F="";this.D=0;this.Y=!1;this.j=!0;this.h=this.X?this.X.h():ll.h();this.W=this.X?dea(this.X):dea(ll);this.h.onreadystatechange=(0,_.Oa)(this.Ws,this);try{this.getStatus(),this.Z=!0,this.h.open(b,String(a),!0),this.Z=!1}catch(g){this.getStatus();hea(this,g);return}a=c||"";c=new _.x.Map(this.headers);if(d)if(Object.getPrototypeOf(d)=== | |||
| Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof _.v(d,"keys")&&"function"===typeof d.get){e=_.A(_.v(d,"keys").call(d));for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=(_.Ig=_.v(Array,"from").call(Array,_.v(c,"keys").call(c)),_.v(_.Ig,"find")).call(_.Ig,function(g){return"content-type"==g.toLowerCase()});e=_.C.FormData&&a instanceof _.C.FormData;!_.mb(Yfa,b)||d||e||c.set("Content-Type", | |||
| "application/x-www-form-urlencoded;charset=utf-8");b=_.A(c);for(d=b.next();!d.done;d=b.next())c=_.A(d.value),d=c.next().value,c=c.next().value,this.h.setRequestHeader(d,c);this.T&&(this.h.responseType=this.T);"withCredentials"in this.h&&this.h.withCredentials!==this.G&&(this.h.withCredentials=this.G);try{jea(this),0<this.H&&(this.aa=fea(this.h),this.getStatus(),this.aa?(this.h.timeout=this.H,this.h.ontimeout=(0,_.Oa)(this.mq,this)):this.J=_.Fi(this.mq,this.H,this)),this.getStatus(),this.K=!0,this.h.send(a), | |||
| this.K=!1}catch(g){this.getStatus(),hea(this,g)}};_.n.mq=function(){"undefined"!=typeof vk&&this.h&&(this.F="Timed out after "+this.H+"ms, aborting",this.D=8,this.getStatus(),this.m("timeout"),this.abort(8))};_.n.abort=function(a){this.h&&this.j&&(this.getStatus(),this.j=!1,this.C=!0,this.h.abort(),this.C=!1,this.D=a||7,this.m("complete"),this.m("abort"),uk(this))};_.n.Ab=function(){this.h&&(this.j&&(this.j=!1,this.C=!0,this.h.abort(),this.C=!1),uk(this,!0));_.sk.ye.Ab.call(this)}; | |||
| _.n.Ws=function(){this.vd()||(this.Z||this.K||this.C?iea(this):this.Py())};_.n.Py=function(){iea(this)};_.n.isActive=function(){return!!this.h};_.n.Jc=function(){return 4==_.wk(this)};_.n.getStatus=function(){try{return 2<_.wk(this)?this.h.status:-1}catch(a){return-1}};_.n.wg=_.ba(20);var $da=arguments[0],rea=new _.sk;_.C.google.maps.Load&&_.C.google.maps.Load(qea);}).call(this,{}); | |||
| @ -0,0 +1,276 @@ | |||
| /* | |||
| * jQuery MD5 Plugin 1.2.1 | |||
| * https://github.com/blueimp/jQuery-MD5 | |||
| * | |||
| * Copyright 2010, Sebastian Tschan | |||
| * https://blueimp.net | |||
| * | |||
| * Licensed under the MIT license: | |||
| * http://creativecommons.org/licenses/MIT/ | |||
| * | |||
| * Based on | |||
| * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message | |||
| * Digest Algorithm, as defined in RFC 1321. | |||
| * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 | |||
| * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet | |||
| * Distributed under the BSD License | |||
| * See http://pajhome.org.uk/crypt/md5 for more info. | |||
| */ | |||
| /*jslint bitwise: true */ | |||
| /*global unescape, jQuery */ | |||
| (function($) { | |||
| 'use strict'; | |||
| /* | |||
| * Add integers, wrapping at 2^32. This uses 16-bit operations internally | |||
| * to work around bugs in some JS interpreters. | |||
| */ | |||
| function safe_add(x, y) { | |||
| var lsw = (x & 0xFFFF) + (y & 0xFFFF), | |||
| msw = (x >> 16) + (y >> 16) + (lsw >> 16); | |||
| return (msw << 16) | (lsw & 0xFFFF); | |||
| } | |||
| /* | |||
| * Bitwise rotate a 32-bit number to the left. | |||
| */ | |||
| function bit_rol(num, cnt) { | |||
| return (num << cnt) | (num >>> (32 - cnt)); | |||
| } | |||
| /* | |||
| * These functions implement the four basic operations the algorithm uses. | |||
| */ | |||
| function md5_cmn(q, a, b, x, s, t) { | |||
| return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b); | |||
| } | |||
| function md5_ff(a, b, c, d, x, s, t) { | |||
| return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); | |||
| } | |||
| function md5_gg(a, b, c, d, x, s, t) { | |||
| return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); | |||
| } | |||
| function md5_hh(a, b, c, d, x, s, t) { | |||
| return md5_cmn(b ^ c ^ d, a, b, x, s, t); | |||
| } | |||
| function md5_ii(a, b, c, d, x, s, t) { | |||
| return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); | |||
| } | |||
| /* | |||
| * Calculate the MD5 of an array of little-endian words, and a bit length. | |||
| */ | |||
| function binl_md5(x, len) { | |||
| /* append padding */ | |||
| x[len >> 5] |= 0x80 << ((len) % 32); | |||
| x[(((len + 64) >>> 9) << 4) + 14] = len; | |||
| var i, olda, oldb, oldc, oldd, | |||
| a = 1732584193, | |||
| b = -271733879, | |||
| c = -1732584194, | |||
| d = 271733878; | |||
| for (i = 0; i < x.length; i += 16) { | |||
| olda = a; | |||
| oldb = b; | |||
| oldc = c; | |||
| oldd = d; | |||
| a = md5_ff(a, b, c, d, x[i], 7, -680876936); | |||
| d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586); | |||
| c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819); | |||
| b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330); | |||
| a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897); | |||
| d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426); | |||
| c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341); | |||
| b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983); | |||
| a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416); | |||
| d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417); | |||
| c = md5_ff(c, d, a, b, x[i + 10], 17, -42063); | |||
| b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162); | |||
| a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682); | |||
| d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101); | |||
| c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290); | |||
| b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329); | |||
| a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510); | |||
| d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632); | |||
| c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713); | |||
| b = md5_gg(b, c, d, a, x[i], 20, -373897302); | |||
| a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691); | |||
| d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083); | |||
| c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335); | |||
| b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848); | |||
| a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438); | |||
| d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690); | |||
| c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961); | |||
| b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501); | |||
| a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467); | |||
| d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784); | |||
| c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473); | |||
| b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734); | |||
| a = md5_hh(a, b, c, d, x[i + 5], 4, -378558); | |||
| d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463); | |||
| c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562); | |||
| b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556); | |||
| a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060); | |||
| d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353); | |||
| c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632); | |||
| b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640); | |||
| a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174); | |||
| d = md5_hh(d, a, b, c, x[i], 11, -358537222); | |||
| c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979); | |||
| b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189); | |||
| a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487); | |||
| d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835); | |||
| c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520); | |||
| b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651); | |||
| a = md5_ii(a, b, c, d, x[i], 6, -198630844); | |||
| d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415); | |||
| c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905); | |||
| b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055); | |||
| a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571); | |||
| d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606); | |||
| c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523); | |||
| b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799); | |||
| a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359); | |||
| d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744); | |||
| c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380); | |||
| b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649); | |||
| a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070); | |||
| d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379); | |||
| c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259); | |||
| b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551); | |||
| a = safe_add(a, olda); | |||
| b = safe_add(b, oldb); | |||
| c = safe_add(c, oldc); | |||
| d = safe_add(d, oldd); | |||
| } | |||
| return [a, b, c, d]; | |||
| } | |||
| /* | |||
| * Convert an array of little-endian words to a string | |||
| */ | |||
| function binl2rstr(input) { | |||
| var i, | |||
| output = ''; | |||
| for (i = 0; i < input.length * 32; i += 8) { | |||
| output += String.fromCharCode((input[i >> 5] >>> (i % 32)) & 0xFF); | |||
| } | |||
| return output; | |||
| } | |||
| /* | |||
| * Convert a raw string to an array of little-endian words | |||
| * Characters >255 have their high-byte silently ignored. | |||
| */ | |||
| function rstr2binl(input) { | |||
| var i, | |||
| output = []; | |||
| output[(input.length >> 2) - 1] = undefined; | |||
| for (i = 0; i < output.length; i += 1) { | |||
| output[i] = 0; | |||
| } | |||
| for (i = 0; i < input.length * 8; i += 8) { | |||
| output[i >> 5] |= (input.charCodeAt(i / 8) & 0xFF) << (i % 32); | |||
| } | |||
| return output; | |||
| } | |||
| /* | |||
| * Calculate the MD5 of a raw string | |||
| */ | |||
| function rstr_md5(s) { | |||
| return binl2rstr(binl_md5(rstr2binl(s), s.length * 8)); | |||
| } | |||
| /* | |||
| * Calculate the HMAC-MD5, of a key and some data (raw strings) | |||
| */ | |||
| function rstr_hmac_md5(key, data) { | |||
| var i, | |||
| bkey = rstr2binl(key), | |||
| ipad = [], | |||
| opad = [], | |||
| hash; | |||
| ipad[15] = opad[15] = undefined; | |||
| if (bkey.length > 16) { | |||
| bkey = binl_md5(bkey, key.length * 8); | |||
| } | |||
| for (i = 0; i < 16; i += 1) { | |||
| ipad[i] = bkey[i] ^ 0x36363636; | |||
| opad[i] = bkey[i] ^ 0x5C5C5C5C; | |||
| } | |||
| hash = binl_md5(ipad.concat(rstr2binl(data)), 512 + data.length * 8); | |||
| return binl2rstr(binl_md5(opad.concat(hash), 512 + 128)); | |||
| } | |||
| /* | |||
| * Convert a raw string to a hex string | |||
| */ | |||
| function rstr2hex(input) { | |||
| var hex_tab = '0123456789abcdef', | |||
| output = '', | |||
| x, | |||
| i; | |||
| for (i = 0; i < input.length; i += 1) { | |||
| x = input.charCodeAt(i); | |||
| output += hex_tab.charAt((x >>> 4) & 0x0F) + | |||
| hex_tab.charAt(x & 0x0F); | |||
| } | |||
| return output; | |||
| } | |||
| /* | |||
| * Encode a string as utf-8 | |||
| */ | |||
| function str2rstr_utf8(input) { | |||
| return unescape(encodeURIComponent(input)); | |||
| } | |||
| /* | |||
| * Take string arguments and return either raw or hex encoded strings | |||
| */ | |||
| function raw_md5(s) { | |||
| return rstr_md5(str2rstr_utf8(s)); | |||
| } | |||
| function hex_md5(s) { | |||
| return rstr2hex(raw_md5(s)); | |||
| } | |||
| function raw_hmac_md5(k, d) { | |||
| return rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d)); | |||
| } | |||
| function hex_hmac_md5(k, d) { | |||
| return rstr2hex(raw_hmac_md5(k, d)); | |||
| } | |||
| $.md5 = function(string, key, raw) { | |||
| if (!key) { | |||
| if (!raw) { | |||
| return hex_md5(string); | |||
| } else { | |||
| return raw_md5(string); | |||
| } | |||
| } | |||
| if (!raw) { | |||
| return hex_hmac_md5(key, string); | |||
| } else { | |||
| return raw_hmac_md5(key, string); | |||
| } | |||
| }; | |||
| }(typeof jQuery === 'function' ? jQuery : this)); | |||
| @ -0,0 +1,193 @@ | |||
| /** | |||
| * jQuery SHA1 hash algorithm function | |||
| * | |||
| * <code> | |||
| * Calculate the sha1 hash of a String | |||
| * String $.sha1 ( String str ) | |||
| * </code> | |||
| * | |||
| * Calculates the sha1 hash of str using the US Secure Hash Algorithm 1. | |||
| * SHA-1 the Secure Hash Algorithm (SHA) was developed by NIST and is specified in the Secure Hash Standard (SHS, FIPS 180). | |||
| * This script is used to process variable length message into a fixed-length output using the SHA-1 algorithm. It is fully compatible with UTF-8 encoding. | |||
| * If you plan using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 (Content-Type meta tag). | |||
| * This function orginally get from the WebToolkit and rewrite for using as the jQuery plugin. | |||
| * | |||
| * Example | |||
| * Code | |||
| * <code> | |||
| * $.sha1("I'm Persian."); | |||
| * </code> | |||
| * Result | |||
| * <code> | |||
| * "1d302f9dc925d62fc859055999d2052e274513ed" | |||
| * </code> | |||
| * | |||
| * @alias Muhammad Hussein Fattahizadeh < muhammad [AT] semnanweb [DOT] com > | |||
| * @link http://www.semnanweb.com/jquery-plugin/sha1.html | |||
| * @see http://www.webtoolkit.info/ | |||
| * @license http://www.gnu.org/licenses/gpl.html [GNU General Public License] | |||
| * @param {jQuery} {sha1:function(string)) | |||
| * @return string | |||
| */ | |||
| (function ($) { | |||
| var rotateLeft = function (lValue, iShiftBits) { | |||
| return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); | |||
| }; | |||
| var lsbHex = function (value) { | |||
| var string = ""; | |||
| var i; | |||
| var vh; | |||
| var vl; | |||
| for (i = 0; i <= 6; i += 2) { | |||
| vh = (value >>> (i * 4 + 4)) & 0x0f; | |||
| vl = (value >>> (i * 4)) & 0x0f; | |||
| string += vh.toString(16) + vl.toString(16); | |||
| } | |||
| return string; | |||
| }; | |||
| var cvtHex = function (value) { | |||
| var string = ""; | |||
| var i; | |||
| var v; | |||
| for (i = 7; i >= 0; i--) { | |||
| v = (value >>> (i * 4)) & 0x0f; | |||
| string += v.toString(16); | |||
| } | |||
| return string; | |||
| }; | |||
| var uTF8Encode = function (string) { | |||
| string = string.replace(/\x0d\x0a/g, "\x0a"); | |||
| var output = ""; | |||
| for (var n = 0; n < string.length; n++) { | |||
| var c = string.charCodeAt(n); | |||
| if (c < 128) { | |||
| output += String.fromCharCode(c); | |||
| } else if (c > 127 && c < 2048) { | |||
| output += String.fromCharCode((c >> 6) | 192); | |||
| output += String.fromCharCode((c & 63) | 128); | |||
| } else { | |||
| output += String.fromCharCode((c >> 12) | 224); | |||
| output += String.fromCharCode(((c >> 6) & 63) | 128); | |||
| output += String.fromCharCode((c & 63) | 128); | |||
| } | |||
| } | |||
| return output; | |||
| }; | |||
| $.extend({ | |||
| sha1: function (string) { | |||
| var blockstart; | |||
| var i, j; | |||
| var W = new Array(80); | |||
| var H0 = 0x67452301; | |||
| var H1 = 0xefcdab89; | |||
| var H2 = 0x98badcfe; | |||
| var H3 = 0x10325476; | |||
| var H4 = 0xc3d2e1f0; | |||
| var A, B, C, D, E; | |||
| var tempValue; | |||
| string = uTF8Encode(string); | |||
| var stringLength = string.length; | |||
| var wordArray = new Array(); | |||
| for (i = 0; i < stringLength - 3; i += 4) { | |||
| j = | |||
| (string.charCodeAt(i) << 24) | | |||
| (string.charCodeAt(i + 1) << 16) | | |||
| (string.charCodeAt(i + 2) << 8) | | |||
| string.charCodeAt(i + 3); | |||
| wordArray.push(j); | |||
| } | |||
| switch (stringLength % 4) { | |||
| case 0: | |||
| i = 0x080000000; | |||
| break; | |||
| case 1: | |||
| i = (string.charCodeAt(stringLength - 1) << 24) | 0x0800000; | |||
| break; | |||
| case 2: | |||
| i = | |||
| (string.charCodeAt(stringLength - 2) << 24) | | |||
| (string.charCodeAt(stringLength - 1) << 16) | | |||
| 0x08000; | |||
| break; | |||
| case 3: | |||
| i = | |||
| (string.charCodeAt(stringLength - 3) << 24) | | |||
| (string.charCodeAt(stringLength - 2) << 16) | | |||
| (string.charCodeAt(stringLength - 1) << 8) | | |||
| 0x80; | |||
| break; | |||
| } | |||
| wordArray.push(i); | |||
| while (wordArray.length % 16 != 14) wordArray.push(0); | |||
| wordArray.push(stringLength >>> 29); | |||
| wordArray.push((stringLength << 3) & 0x0ffffffff); | |||
| for (blockstart = 0; blockstart < wordArray.length; blockstart += 16) { | |||
| for (i = 0; i < 16; i++) W[i] = wordArray[blockstart + i]; | |||
| for (i = 16; i <= 79; i++) | |||
| W[i] = rotateLeft(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1); | |||
| A = H0; | |||
| B = H1; | |||
| C = H2; | |||
| D = H3; | |||
| E = H4; | |||
| for (i = 0; i <= 19; i++) { | |||
| tempValue = | |||
| (rotateLeft(A, 5) + ((B & C) | (~B & D)) + E + W[i] + 0x5a827999) & | |||
| 0x0ffffffff; | |||
| E = D; | |||
| D = C; | |||
| C = rotateLeft(B, 30); | |||
| B = A; | |||
| A = tempValue; | |||
| } | |||
| for (i = 20; i <= 39; i++) { | |||
| tempValue = | |||
| (rotateLeft(A, 5) + (B ^ C ^ D) + E + W[i] + 0x6ed9eba1) & | |||
| 0x0ffffffff; | |||
| E = D; | |||
| D = C; | |||
| C = rotateLeft(B, 30); | |||
| B = A; | |||
| A = tempValue; | |||
| } | |||
| for (i = 40; i <= 59; i++) { | |||
| tempValue = | |||
| (rotateLeft(A, 5) + | |||
| ((B & C) | (B & D) | (C & D)) + | |||
| E + | |||
| W[i] + | |||
| 0x8f1bbcdc) & | |||
| 0x0ffffffff; | |||
| E = D; | |||
| D = C; | |||
| C = rotateLeft(B, 30); | |||
| B = A; | |||
| A = tempValue; | |||
| } | |||
| for (i = 60; i <= 79; i++) { | |||
| tempValue = | |||
| (rotateLeft(A, 5) + (B ^ C ^ D) + E + W[i] + 0xca62c1d6) & | |||
| 0x0ffffffff; | |||
| E = D; | |||
| D = C; | |||
| C = rotateLeft(B, 30); | |||
| B = A; | |||
| A = tempValue; | |||
| } | |||
| H0 = (H0 + A) & 0x0ffffffff; | |||
| H1 = (H1 + B) & 0x0ffffffff; | |||
| H2 = (H2 + C) & 0x0ffffffff; | |||
| H3 = (H3 + D) & 0x0ffffffff; | |||
| H4 = (H4 + E) & 0x0ffffffff; | |||
| } | |||
| tempValue = | |||
| cvtHex(H0) + cvtHex(H1) + cvtHex(H2) + cvtHex(H3) + cvtHex(H4); | |||
| return tempValue.toLowerCase(); | |||
| }, | |||
| }); | |||
| })(jQuery); | |||
| @ -0,0 +1,20 @@ | |||
| // Preloader | |||
| $.holdReady( true ); | |||
| $('body').imagesLoaded({ background: ".background-holder" }, function(){ | |||
| $('#preloader').removeClass("loading"); | |||
| $.holdReady( false ); | |||
| setTimeout(function() { | |||
| $('#preloader').remove(); | |||
| }, 800); | |||
| }); | |||
| // Zanimation | |||
| $(window).on('load', function(){ | |||
| $('*[data-inertia]').each(function(){ | |||
| $(this).inertia(); | |||
| }); | |||
| }); | |||
| @ -0,0 +1,625 @@ | |||
| window.Modernizr = (function (e, t, n) { | |||
| function r(e) { | |||
| b.cssText = e; | |||
| } | |||
| function o(e, t) { | |||
| return r(S.join(e + ";") + (t || "")); | |||
| } | |||
| function a(e, t) { | |||
| return typeof e === t; | |||
| } | |||
| function i(e, t) { | |||
| return !!~("" + e).indexOf(t); | |||
| } | |||
| function c(e, t) { | |||
| for (var r in e) { | |||
| var o = e[r]; | |||
| if (!i(o, "-") && b[o] !== n) return "pfx" == t ? o : !0; | |||
| } | |||
| return !1; | |||
| } | |||
| function s(e, t, r) { | |||
| for (var o in e) { | |||
| var i = t[e[o]]; | |||
| if (i !== n) | |||
| return r === !1 ? e[o] : a(i, "function") ? i.bind(r || t) : i; | |||
| } | |||
| return !1; | |||
| } | |||
| function u(e, t, n) { | |||
| var r = e.charAt(0).toUpperCase() + e.slice(1), | |||
| o = (e + " " + k.join(r + " ") + r).split(" "); | |||
| return a(t, "string") || a(t, "undefined") | |||
| ? c(o, t) | |||
| : ((o = (e + " " + T.join(r + " ") + r).split(" ")), s(o, t, n)); | |||
| } | |||
| function l() { | |||
| (p.input = (function (n) { | |||
| for (var r = 0, o = n.length; o > r; r++) j[n[r]] = !!(n[r] in E); | |||
| return ( | |||
| j.list && | |||
| (j.list = !(!t.createElement("datalist") || !e.HTMLDataListElement)), | |||
| j | |||
| ); | |||
| })( | |||
| "autocomplete autofocus list placeholder max min multiple pattern required step".split( | |||
| " " | |||
| ) | |||
| )), | |||
| (p.inputtypes = (function (e) { | |||
| for (var r, o, a, i = 0, c = e.length; c > i; i++) | |||
| E.setAttribute("type", (o = e[i])), | |||
| (r = "text" !== E.type), | |||
| r && | |||
| ((E.value = x), | |||
| (E.style.cssText = "position:absolute;visibility:hidden;"), | |||
| /^range$/.test(o) && E.style.WebkitAppearance !== n | |||
| ? (g.appendChild(E), | |||
| (a = t.defaultView), | |||
| (r = | |||
| a.getComputedStyle && | |||
| "textfield" !== | |||
| a.getComputedStyle(E, null).WebkitAppearance && | |||
| 0 !== E.offsetHeight), | |||
| g.removeChild(E)) | |||
| : /^(search|tel)$/.test(o) || | |||
| (r = /^(url|email)$/.test(o) | |||
| ? E.checkValidity && E.checkValidity() === !1 | |||
| : E.value != x)), | |||
| (P[e[i]] = !!r); | |||
| return P; | |||
| })( | |||
| "search tel url email datetime date month week time datetime-local number range color".split( | |||
| " " | |||
| ) | |||
| )); | |||
| } | |||
| var d, | |||
| f, | |||
| m = "2.8.3", | |||
| p = {}, | |||
| h = !0, | |||
| g = t.documentElement, | |||
| v = "modernizr", | |||
| y = t.createElement(v), | |||
| b = y.style, | |||
| E = t.createElement("input"), | |||
| x = ":)", | |||
| w = {}.toString, | |||
| S = " -webkit- -moz- -o- -ms- ".split(" "), | |||
| C = "Webkit Moz O ms", | |||
| k = C.split(" "), | |||
| T = C.toLowerCase().split(" "), | |||
| N = { svg: "http://www.w3.org/2000/svg" }, | |||
| M = {}, | |||
| P = {}, | |||
| j = {}, | |||
| $ = [], | |||
| D = $.slice, | |||
| F = function (e, n, r, o) { | |||
| var a, | |||
| i, | |||
| c, | |||
| s, | |||
| u = t.createElement("div"), | |||
| l = t.body, | |||
| d = l || t.createElement("body"); | |||
| if (parseInt(r, 10)) | |||
| for (; r--; ) | |||
| (c = t.createElement("div")), | |||
| (c.id = o ? o[r] : v + (r + 1)), | |||
| u.appendChild(c); | |||
| return ( | |||
| (a = ["­", '<style id="s', v, '">', e, "</style>"].join("")), | |||
| (u.id = v), | |||
| ((l ? u : d).innerHTML += a), | |||
| d.appendChild(u), | |||
| l || | |||
| ((d.style.background = ""), | |||
| (d.style.overflow = "hidden"), | |||
| (s = g.style.overflow), | |||
| (g.style.overflow = "hidden"), | |||
| g.appendChild(d)), | |||
| (i = n(u, e)), | |||
| l | |||
| ? u.parentNode.removeChild(u) | |||
| : (d.parentNode.removeChild(d), (g.style.overflow = s)), | |||
| !!i | |||
| ); | |||
| }, | |||
| z = function (t) { | |||
| var n = e.matchMedia || e.msMatchMedia; | |||
| if (n) return (n(t) && n(t).matches) || !1; | |||
| var r; | |||
| return ( | |||
| F( | |||
| "@media " + t + " { #" + v + " { position: absolute; } }", | |||
| function (t) { | |||
| r = | |||
| "absolute" == | |||
| (e.getComputedStyle ? getComputedStyle(t, null) : t.currentStyle) | |||
| .position; | |||
| } | |||
| ), | |||
| r | |||
| ); | |||
| }, | |||
| A = (function () { | |||
| function e(e, o) { | |||
| (o = o || t.createElement(r[e] || "div")), (e = "on" + e); | |||
| var i = e in o; | |||
| return ( | |||
| i || | |||
| (o.setAttribute || (o = t.createElement("div")), | |||
| o.setAttribute && | |||
| o.removeAttribute && | |||
| (o.setAttribute(e, ""), | |||
| (i = a(o[e], "function")), | |||
| a(o[e], "undefined") || (o[e] = n), | |||
| o.removeAttribute(e))), | |||
| (o = null), | |||
| i | |||
| ); | |||
| } | |||
| var r = { | |||
| select: "input", | |||
| change: "input", | |||
| submit: "form", | |||
| reset: "form", | |||
| error: "img", | |||
| load: "img", | |||
| abort: "img", | |||
| }; | |||
| return e; | |||
| })(), | |||
| L = {}.hasOwnProperty; | |||
| (f = | |||
| a(L, "undefined") || a(L.call, "undefined") | |||
| ? function (e, t) { | |||
| return t in e && a(e.constructor.prototype[t], "undefined"); | |||
| } | |||
| : function (e, t) { | |||
| return L.call(e, t); | |||
| }), | |||
| Function.prototype.bind || | |||
| (Function.prototype.bind = function (e) { | |||
| var t = this; | |||
| if ("function" != typeof t) throw new TypeError(); | |||
| var n = D.call(arguments, 1), | |||
| r = function () { | |||
| if (this instanceof r) { | |||
| var o = function () {}; | |||
| o.prototype = t.prototype; | |||
| var a = new o(), | |||
| i = t.apply(a, n.concat(D.call(arguments))); | |||
| return Object(i) === i ? i : a; | |||
| } | |||
| return t.apply(e, n.concat(D.call(arguments))); | |||
| }; | |||
| return r; | |||
| }), | |||
| (M.flexbox = function () { | |||
| return u("flexWrap"); | |||
| }), | |||
| (M.flexboxlegacy = function () { | |||
| return u("boxDirection"); | |||
| }), | |||
| (M.canvas = function () { | |||
| var e = t.createElement("canvas"); | |||
| return !(!e.getContext || !e.getContext("2d")); | |||
| }), | |||
| (M.canvastext = function () { | |||
| return !( | |||
| !p.canvas || | |||
| !a(t.createElement("canvas").getContext("2d").fillText, "function") | |||
| ); | |||
| }), | |||
| (M.webgl = function () { | |||
| return !!e.WebGLRenderingContext; | |||
| }), | |||
| (M.touch = function () { | |||
| var n; | |||
| return ( | |||
| "ontouchstart" in e || (e.DocumentTouch && t instanceof DocumentTouch) | |||
| ? (n = !0) | |||
| : F( | |||
| [ | |||
| "@media (", | |||
| S.join("touch-enabled),("), | |||
| v, | |||
| ")", | |||
| "{#modernizr{top:9px;position:absolute}}", | |||
| ].join(""), | |||
| function (e) { | |||
| n = 9 === e.offsetTop; | |||
| } | |||
| ), | |||
| n | |||
| ); | |||
| }), | |||
| (M.geolocation = function () { | |||
| return "geolocation" in navigator; | |||
| }), | |||
| (M.postmessage = function () { | |||
| return !!e.postMessage; | |||
| }), | |||
| (M.websqldatabase = function () { | |||
| return !!e.openDatabase; | |||
| }), | |||
| (M.indexedDB = function () { | |||
| return !!u("indexedDB", e); | |||
| }), | |||
| (M.hashchange = function () { | |||
| return A("hashchange", e) && (t.documentMode === n || t.documentMode > 7); | |||
| }), | |||
| (M.history = function () { | |||
| return !(!e.history || !history.pushState); | |||
| }), | |||
| (M.draganddrop = function () { | |||
| var e = t.createElement("div"); | |||
| return "draggable" in e || ("ondragstart" in e && "ondrop" in e); | |||
| }), | |||
| (M.websockets = function () { | |||
| return "WebSocket" in e || "MozWebSocket" in e; | |||
| }), | |||
| (M.rgba = function () { | |||
| return ( | |||
| r("background-color:rgba(150,255,150,.5)"), i(b.backgroundColor, "rgba") | |||
| ); | |||
| }), | |||
| (M.hsla = function () { | |||
| return ( | |||
| r("background-color:hsla(120,40%,100%,.5)"), | |||
| i(b.backgroundColor, "rgba") || i(b.backgroundColor, "hsla") | |||
| ); | |||
| }), | |||
| (M.multiplebgs = function () { | |||
| return ( | |||
| r("background:url(https://),url(https://),red url(https://)"), | |||
| /(url\s*\(.*?){3}/.test(b.background) | |||
| ); | |||
| }), | |||
| (M.backgroundsize = function () { | |||
| return u("backgroundSize"); | |||
| }), | |||
| (M.borderimage = function () { | |||
| return u("borderImage"); | |||
| }), | |||
| (M.borderradius = function () { | |||
| return u("borderRadius"); | |||
| }), | |||
| (M.boxshadow = function () { | |||
| return u("boxShadow"); | |||
| }), | |||
| (M.textshadow = function () { | |||
| return "" === t.createElement("div").style.textShadow; | |||
| }), | |||
| (M.opacity = function () { | |||
| return o("opacity:.55"), /^0.55$/.test(b.opacity); | |||
| }), | |||
| (M.cssanimations = function () { | |||
| return u("animationName"); | |||
| }), | |||
| (M.csscolumns = function () { | |||
| return u("columnCount"); | |||
| }), | |||
| (M.cssgradients = function () { | |||
| var e = "background-image:", | |||
| t = "gradient(linear,left top,right bottom,from(#9f9),to(white));", | |||
| n = "linear-gradient(left top,#9f9, white);"; | |||
| return ( | |||
| r( | |||
| (e + "-webkit- ".split(" ").join(t + e) + S.join(n + e)).slice( | |||
| 0, | |||
| -e.length | |||
| ) | |||
| ), | |||
| i(b.backgroundImage, "gradient") | |||
| ); | |||
| }), | |||
| (M.cssreflections = function () { | |||
| return u("boxReflect"); | |||
| }), | |||
| (M.csstransforms = function () { | |||
| return !!u("transform"); | |||
| }), | |||
| (M.csstransforms3d = function () { | |||
| var e = !!u("perspective"); | |||
| return ( | |||
| e && | |||
| "webkitPerspective" in g.style && | |||
| F( | |||
| "@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", | |||
| function (t) { | |||
| e = 9 === t.offsetLeft && 3 === t.offsetHeight; | |||
| } | |||
| ), | |||
| e | |||
| ); | |||
| }), | |||
| (M.csstransitions = function () { | |||
| return u("transition"); | |||
| }), | |||
| (M.fontface = function () { | |||
| var e; | |||
| return ( | |||
| F( | |||
| '@font-face {font-family:"font";src:url("https://")}', | |||
| function (n, r) { | |||
| var o = t.getElementById("smodernizr"), | |||
| a = o.sheet || o.styleSheet, | |||
| i = a | |||
| ? a.cssRules && a.cssRules[0] | |||
| ? a.cssRules[0].cssText | |||
| : a.cssText || "" | |||
| : ""; | |||
| e = /src/i.test(i) && 0 === i.indexOf(r.split(" ")[0]); | |||
| } | |||
| ), | |||
| e | |||
| ); | |||
| }), | |||
| (M.generatedcontent = function () { | |||
| var e; | |||
| return ( | |||
| F( | |||
| [ | |||
| "#", | |||
| v, | |||
| "{font:0/0 a}#", | |||
| v, | |||
| ':after{content:"', | |||
| x, | |||
| '";visibility:hidden;font:3px/1 a}', | |||
| ].join(""), | |||
| function (t) { | |||
| e = t.offsetHeight >= 3; | |||
| } | |||
| ), | |||
| e | |||
| ); | |||
| }), | |||
| (M.video = function () { | |||
| var e = t.createElement("video"), | |||
| n = !1; | |||
| try { | |||
| (n = !!e.canPlayType) && | |||
| ((n = new Boolean(n)), | |||
| (n.ogg = e | |||
| .canPlayType('video/ogg; codecs="theora"') | |||
| .replace(/^no$/, "")), | |||
| (n.h264 = e | |||
| .canPlayType('video/mp4; codecs="avc1.42E01E"') | |||
| .replace(/^no$/, "")), | |||
| (n.webm = e | |||
| .canPlayType('video/webm; codecs="vp8, vorbis"') | |||
| .replace(/^no$/, ""))); | |||
| } catch (r) {} | |||
| return n; | |||
| }), | |||
| (M.audio = function () { | |||
| var e = t.createElement("audio"), | |||
| n = !1; | |||
| try { | |||
| (n = !!e.canPlayType) && | |||
| ((n = new Boolean(n)), | |||
| (n.ogg = e | |||
| .canPlayType('audio/ogg; codecs="vorbis"') | |||
| .replace(/^no$/, "")), | |||
| (n.mp3 = e.canPlayType("audio/mpeg;").replace(/^no$/, "")), | |||
| (n.wav = e.canPlayType('audio/wav; codecs="1"').replace(/^no$/, "")), | |||
| (n.m4a = ( | |||
| e.canPlayType("audio/x-m4a;") || e.canPlayType("audio/aac;") | |||
| ).replace(/^no$/, ""))); | |||
| } catch (r) {} | |||
| return n; | |||
| }), | |||
| (M.localstorage = function () { | |||
| try { | |||
| return localStorage.setItem(v, v), localStorage.removeItem(v), !0; | |||
| } catch (e) { | |||
| return !1; | |||
| } | |||
| }), | |||
| (M.sessionstorage = function () { | |||
| try { | |||
| return sessionStorage.setItem(v, v), sessionStorage.removeItem(v), !0; | |||
| } catch (e) { | |||
| return !1; | |||
| } | |||
| }), | |||
| (M.webworkers = function () { | |||
| return !!e.Worker; | |||
| }), | |||
| (M.applicationcache = function () { | |||
| return !!e.applicationCache; | |||
| }), | |||
| (M.svg = function () { | |||
| return ( | |||
| !!t.createElementNS && !!t.createElementNS(N.svg, "svg").createSVGRect | |||
| ); | |||
| }), | |||
| (M.inlinesvg = function () { | |||
| var e = t.createElement("div"); | |||
| return ( | |||
| (e.innerHTML = "<svg/>"), | |||
| (e.firstChild && e.firstChild.namespaceURI) == N.svg | |||
| ); | |||
| }), | |||
| (M.smil = function () { | |||
| return ( | |||
| !!t.createElementNS && | |||
| /SVGAnimate/.test(w.call(t.createElementNS(N.svg, "animate"))) | |||
| ); | |||
| }), | |||
| (M.svgclippaths = function () { | |||
| return ( | |||
| !!t.createElementNS && | |||
| /SVGClipPath/.test(w.call(t.createElementNS(N.svg, "clipPath"))) | |||
| ); | |||
| }); | |||
| for (var H in M) | |||
| f(M, H) && | |||
| ((d = H.toLowerCase()), (p[d] = M[H]()), $.push((p[d] ? "" : "no-") + d)); | |||
| return ( | |||
| p.input || l(), | |||
| (p.addTest = function (e, t) { | |||
| if ("object" == typeof e) for (var r in e) f(e, r) && p.addTest(r, e[r]); | |||
| else { | |||
| if (((e = e.toLowerCase()), p[e] !== n)) return p; | |||
| (t = "function" == typeof t ? t() : t), | |||
| "undefined" != typeof h && | |||
| h && | |||
| (g.className += " " + (t ? "" : "no-") + e), | |||
| (p[e] = t); | |||
| } | |||
| return p; | |||
| }), | |||
| r(""), | |||
| (y = E = null), | |||
| (function (e, t) { | |||
| function n(e, t) { | |||
| var n = e.createElement("p"), | |||
| r = e.getElementsByTagName("head")[0] || e.documentElement; | |||
| return ( | |||
| (n.innerHTML = "x<style>" + t + "</style>"), | |||
| r.insertBefore(n.lastChild, r.firstChild) | |||
| ); | |||
| } | |||
| function r() { | |||
| var e = y.elements; | |||
| return "string" == typeof e ? e.split(" ") : e; | |||
| } | |||
| function o(e) { | |||
| var t = v[e[h]]; | |||
| return t || ((t = {}), g++, (e[h] = g), (v[g] = t)), t; | |||
| } | |||
| function a(e, n, r) { | |||
| if ((n || (n = t), l)) return n.createElement(e); | |||
| r || (r = o(n)); | |||
| var a; | |||
| return ( | |||
| (a = r.cache[e] | |||
| ? r.cache[e].cloneNode() | |||
| : p.test(e) | |||
| ? (r.cache[e] = r.createElem(e)).cloneNode() | |||
| : r.createElem(e)), | |||
| !a.canHaveChildren || m.test(e) || a.tagUrn | |||
| ? a | |||
| : r.frag.appendChild(a) | |||
| ); | |||
| } | |||
| function i(e, n) { | |||
| if ((e || (e = t), l)) return e.createDocumentFragment(); | |||
| n = n || o(e); | |||
| for ( | |||
| var a = n.frag.cloneNode(), i = 0, c = r(), s = c.length; | |||
| s > i; | |||
| i++ | |||
| ) | |||
| a.createElement(c[i]); | |||
| return a; | |||
| } | |||
| function c(e, t) { | |||
| t.cache || | |||
| ((t.cache = {}), | |||
| (t.createElem = e.createElement), | |||
| (t.createFrag = e.createDocumentFragment), | |||
| (t.frag = t.createFrag())), | |||
| (e.createElement = function (n) { | |||
| return y.shivMethods ? a(n, e, t) : t.createElem(n); | |||
| }), | |||
| (e.createDocumentFragment = Function( | |||
| "h,f", | |||
| "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + | |||
| r() | |||
| .join() | |||
| .replace(/[\w\-]+/g, function (e) { | |||
| return ( | |||
| t.createElem(e), t.frag.createElement(e), 'c("' + e + '")' | |||
| ); | |||
| }) + | |||
| ");return n}" | |||
| )(y, t.frag)); | |||
| } | |||
| function s(e) { | |||
| e || (e = t); | |||
| var r = o(e); | |||
| return ( | |||
| !y.shivCSS || | |||
| u || | |||
| r.hasCSS || | |||
| (r.hasCSS = !!n( | |||
| e, | |||
| "article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}" | |||
| )), | |||
| l || c(e, r), | |||
| e | |||
| ); | |||
| } | |||
| var u, | |||
| l, | |||
| d = "3.7.0", | |||
| f = e.html5 || {}, | |||
| m = | |||
| /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, | |||
| p = | |||
| /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i, | |||
| h = "_html5shiv", | |||
| g = 0, | |||
| v = {}; | |||
| !(function () { | |||
| try { | |||
| var e = t.createElement("a"); | |||
| (e.innerHTML = "<xyz></xyz>"), | |||
| (u = "hidden" in e), | |||
| (l = | |||
| 1 == e.childNodes.length || | |||
| (function () { | |||
| t.createElement("a"); | |||
| var e = t.createDocumentFragment(); | |||
| return ( | |||
| "undefined" == typeof e.cloneNode || | |||
| "undefined" == typeof e.createDocumentFragment || | |||
| "undefined" == typeof e.createElement | |||
| ); | |||
| })()); | |||
| } catch (n) { | |||
| (u = !0), (l = !0); | |||
| } | |||
| })(); | |||
| var y = { | |||
| elements: | |||
| f.elements || | |||
| "abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video", | |||
| version: d, | |||
| shivCSS: f.shivCSS !== !1, | |||
| supportsUnknownElements: l, | |||
| shivMethods: f.shivMethods !== !1, | |||
| type: "default", | |||
| shivDocument: s, | |||
| createElement: a, | |||
| createDocumentFragment: i, | |||
| }; | |||
| (e.html5 = y), s(t); | |||
| })(this, t), | |||
| (p._version = m), | |||
| (p._prefixes = S), | |||
| (p._domPrefixes = T), | |||
| (p._cssomPrefixes = k), | |||
| (p.mq = z), | |||
| (p.hasEvent = A), | |||
| (p.testProp = function (e) { | |||
| return c([e]); | |||
| }), | |||
| (p.testAllProps = u), | |||
| (p.testStyles = F), | |||
| (p.prefixed = function (e, t, n) { | |||
| return t ? u(e, t, n) : u(e, "pfx"); | |||
| }), | |||
| (g.className = | |||
| g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + | |||
| (h ? " js " + $.join(" ") : "")), | |||
| p | |||
| ); | |||
| })(this, this.document); | |||
| @ -0,0 +1,84 @@ | |||
| $(document).ready(function(){ | |||
| $('#loginfrm').submit (function(evt){ | |||
| evt.preventDefault(); | |||
| $("#login").attr("disabled","true"); | |||
| var uri=$(this).attr('action'); | |||
| //var data=$(this).serializeArray(); | |||
| var uid=$("#uid").val(); | |||
| var pwd=$("#pwd").val(); | |||
| var captch=$("#captch").val(); | |||
| var data = { | |||
| "uid": uid, | |||
| "pwd": $.md5($.sha1(pwd)), | |||
| "captch": $.md5($.sha1(captch)) | |||
| }; | |||
| $.post(uri,{"data":data}).done(function(data){ | |||
| data=JSON.parse(data); | |||
| if(data.success=="false"){ | |||
| $("#error").html(data.message); | |||
| $("#error").html(data.message).delay(5000, function() { | |||
| $(location).attr("href", data.url); | |||
| }); | |||
| $("#login").removeAttr("disabled"); | |||
| } | |||
| if(data.success=="true"){ | |||
| $('.login-popup-wrap').fadeIn(); | |||
| $(".blackoverlay").fadeIn(); | |||
| $("#vldotp").attr("action",data.actionuri); | |||
| } | |||
| // console.log(data); | |||
| }); | |||
| }); | |||
| $('#vldotp').submit (function(evt){ | |||
| evt.preventDefault(); | |||
| var uri=$(this).attr('action'); | |||
| var data=$(this).serializeArray(); | |||
| //console.log(data); | |||
| $.post(uri,{"data":data}).done(function(data){ | |||
| data=JSON.parse(data); | |||
| if(data.success=="false"){ | |||
| $(".errresponse").html(data.message); | |||
| if(data.redirect=="true"){ | |||
| alert(data.message); | |||
| $(location).attr('href', data.redirect_uri); | |||
| } | |||
| $('#vldotp')[0].reset(); | |||
| } | |||
| if(data.success=="true"){ | |||
| $('.login-popup-wrap').fadeOut(); | |||
| $(".blackoverlay").fadeOut(); | |||
| // $("#vldotp").attr("action",data.actionuri); | |||
| $(location).attr('href', data.url); | |||
| } | |||
| //console.log(data); | |||
| }).fail(function(data){ | |||
| alert("Attempt exceed"); | |||
| $(location).attr('href', "https://webuat.sbisgcsl.co.in/sbisgcsl/"); | |||
| // console.log(data); | |||
| }); | |||
| }); | |||
| $(".otpnext").keyup(function () { | |||
| if (this.value.length == this.maxLength) { | |||
| $(this).next('.otpnext').focus(); | |||
| } | |||
| }); | |||
| $("#resend").click(function(evt){ | |||
| evt.preventDefault(); | |||
| var urldata=$(this).attr("href"); | |||
| $.post(urldata).done(function(data){ | |||
| data=JSON.parse(data); | |||
| //console.log(data); | |||
| }); | |||
| }); | |||
| }); | |||
| @ -0,0 +1,337 @@ | |||
| /* | |||
| Basic Usage | |||
| ----------- | |||
| 0. Configure for: | |||
| a. error_text_size in px (defaults 12) | |||
| b. error_color - The color of error text (defaults red) | |||
| c. error_class - Choose a name that will not conflict with the class that is in use (defaults error_class). | |||
| d. error_display_html (defaults true). If you set false, each validation should include the text as value for the key as text. Eg. text: 'something to validate' | |||
| e. text_min - minimum text input expected (defualts 2) | |||
| f. text_max - maximum text input expected (defualts 50) | |||
| g. highlight_all_errors - highlights all the errors together after validation if set to true. If set to false will display one error at a time in sequence as defined (defaults: false) | |||
| 1. Define an array of validations to be performed | |||
| 2. For each validation minimum input to be provided should be | |||
| a. tagid - tag id of the tag to be validated | |||
| b. regex_name - regex to be used for validation | |||
| c. text - (optional if config.error_display_html is true, if false, then mandatory) | |||
| d. errmsg - the error msg to be shown to the user in case the validation fails for that tag | |||
| e. required - if true, tells the engine to verify the empty value too. If false and the value is left empty then it will be considered ok. (default - false) | |||
| f. custom_regex - use given regex to the validation | |||
| regex_name options | |||
| ------------------ | |||
| 1. email - checks for validity of email address format | |||
| 2. exact_x_digits - checks for x digits (mostly used for PINcode, PIN, or Phone number) | |||
| a. x_count - number defining the number of digits (e.g. 10) - (defaults 100) | |||
| 3. any_number - checks for number | |||
| - allow_negative - (defaults false). if set true, allows negative numbers | |||
| - allow_decimal - (defaults false), if set true, allows to enter decimal numbers | |||
| 4. text - validates for text containing a-z, A-Z and 0-9 | |||
| - allow_numbers - you can numbers with text (defaults false) | |||
| - other_chars - mention all the charactes you want to allow in a string | |||
| - min - minimum string length (defaults 2) | |||
| - max - maximum string length (defaults 50) | |||
| 5. free_text - validates for any free text for it's lenths | |||
| - min - minimum string length (defaults 2) | |||
| - max - maximum string length (defaults 50) | |||
| 6. min_number - validates if the entered number is greater than minimum (true) or not (false) | |||
| - min - minimum value to be checked | |||
| 7. max_number - validates if the entered number is less than maximum (true) or not (false) | |||
| - max - maximum value to be checked | |||
| 8. equal - checks if two tags are holding same value or not | |||
| - tag2id - tagid of the other input tag | |||
| returns true if two strings are equal, else false. Returns false if both the strings are empty | |||
| 9. filepath - checks if the file selection is done | |||
| returns true if a file is selected else returns false. checks for full path, relative path path with font/back slash | |||
| [special case] | |||
| - namecheck - startswith, endswith, contains, exact, extension | |||
| - checkname - the value of the name that should be checked as per the namecheck rule selected | |||
| returns true if the namecheck succeeds else false | |||
| 10. pan_card - Check for validate of PAN card number Format | |||
| 11. gst_number - Check for validate of GSTIN number Format | |||
| -statecode - Check for validate of the selected state code | |||
| 12. custom - Validate for external given regex as per condition. | |||
| - custom_regex - Regex to be check by this. | |||
| if developer not provide this field when use custom regex then it will return false. | |||
| 13. website - Check for validate to website | |||
| let validation_input = [ | |||
| {tagid: 'input_email1', text: 'naval@mobigic.com', regex_name: 'email', errmsg: 'Email address entered is invalid.'}, | |||
| {tagid: 'quantity', text: '0', regex_name: 'any_number', errmsg: 'Only Digits are allowed for Quantity.'}, | |||
| {tagid: 'phone', text: '9876543210', regex_name: 'any_number', errmsg: 'the number should be decimal number', allow_negative: false, allow_decimal: true}, | |||
| {tagid: 'address', text: 'Brindavan', regex_name: 'text', errmsg: 'Address Error', allow_numbers: true, min: 3, other_chars: ' ', max: 5}, | |||
| {tagid:'company_name', regex_name: 'custom', custom_regex: /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ ,errmsg: 'Please enter company name', required: true}, | |||
| ]; | |||
| validate(validation_input); // returns [true/false] if error_display_html is true, else returns [true/{errmsg: 'errmsg', tagid: 'tagid'}] | |||
| */ | |||
| // Configuration to be done here | |||
| var config = { | |||
| error_text_size: 12, | |||
| error_color: 'red', | |||
| error_class: 'error_class',// + new Date().getTime(), | |||
| error_display_html: true, | |||
| text_min: 2, | |||
| text_max: 50, | |||
| highlight_all_errors: false | |||
| }; | |||
| // All Regex to be defined here | |||
| var regexes = { | |||
| email: /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/, | |||
| //only_digits: function(allow_negative){return new RegExp('^' + (allow_negative ? '([-+]?)' : '') + '\\d+$')}, ///^\d+$/, | |||
| exact_x_digits: function (x) { return new RegExp('^[0][1-9]\\d{' + (x - 1) + '}$|^[1-9]\\d{' + (x - 1) + '}$'); }, // {exact_digit_count} | |||
| //positive_whole_number: /^\d*[1-9]\d*$/, | |||
| any_number: function (allow_negative, allow_decimal) { | |||
| return new RegExp('^' + | |||
| (allow_negative ? '([-+]?)' : '') + | |||
| '\\d+' + | |||
| (allow_decimal ? '(\\.\\d+)?' : '') + '$') | |||
| }, // allows non-decimal numbers also | |||
| //decimal_number_only: /^\d+(\.\d+)$/, // allows decimal numbers only with atleast 1 place after decimal | |||
| decimal_2_places: /^(\d{1,5}|\d{0,5}\.\d{1,2})$/, | |||
| x_dot_y: function (x_digits, y_digits) { return new RegExp('^([\\d]{0,' + x_digits + '})(\\.[\\d]{1,' + y_digits + '})?$'); }, // match with this returns value of x and value of y | |||
| text: function (allow_numbers, other_chars, min, max) { | |||
| return new RegExp( | |||
| "^[a-zA-Z" + | |||
| (allow_numbers ? "0-9" : "") + | |||
| (other_chars ? other_chars : "") + | |||
| "]{" + (min ? min : config.text_min) + "," + (max ? max : config.text_max) + "}$" | |||
| ); | |||
| }, | |||
| filepath: /(\\\\?([^\\/]*[\\/])*)([^\\/]+)$/, | |||
| pan: /^[A-Z]{5}[0-9]{4}[A-Z]{1}$/, | |||
| gst: /^([0-2][0-9]|[3][0-7])[A-Z]{3}[ABCFGHLJPTK][A-Z]\d{4}[A-Z][A-Z0-9][Z][A-Z0-9]$/, | |||
| website_regex: /^((ftp|http|https):\/\/)[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+((\/)[\w#]+)*(\/\w+\?[a-zA-Z0-9_]+=\w+(&[a-zA-Z0-9_]+=\w+)*)?$/, | |||
| } | |||
| var regex_validation = { | |||
| email: function (text, validation_input) { | |||
| return text.match(regexes['email']); | |||
| }, | |||
| /*only_digits: function(text, validation_input) { | |||
| return text.match(regexes['only_digits'](validation_input.allow_negative)); | |||
| },*/ | |||
| // requires {exact_digit_count}, else defaults 100 | |||
| exact_x_digits: function (text, validation_input) { | |||
| return text.match(regexes['exact_x_digits'](validation_input.x_count ? validation_input.x_count : 100)); | |||
| }, | |||
| any_number: function (text, validation_input) { | |||
| return text.match(regexes['any_number'](validation_input.allow_negative, validation_input.allow_decimal)); | |||
| }, | |||
| /*decimal_number_only: function(text, validation_input) { | |||
| return text.match(regexes['decimal_number_only']); | |||
| }*/ | |||
| text: function (text, validation_input) { | |||
| return text.match(regexes['text'](validation_input.allow_numbers, validation_input.other_chars, validation_input.min, validation_input.max)); | |||
| }, | |||
| free_text: function (text, validation_input) { | |||
| let success = false; | |||
| let len = text.length; | |||
| if (len >= (validation_input.min ? validation_input.min : config.text_min) && len <= (validation_input.max ? validation_input.max : config.text_max)) { | |||
| success = true; | |||
| } | |||
| return success; | |||
| }, | |||
| min_number: function (text, validation_input) { | |||
| let success = false; | |||
| try { | |||
| let n = Number(text); | |||
| success = (n >= validation_input.min); | |||
| } catch (e) { | |||
| } | |||
| return success; | |||
| }, | |||
| max_number: function (text, validation_input) { | |||
| let success = false; | |||
| try { | |||
| let n = Number(text); | |||
| success = (n <= validation_input.max); | |||
| } catch (e) { | |||
| } | |||
| return success; | |||
| }, | |||
| equal: function (text, validation_input) { | |||
| let success = false; | |||
| let tagid1 = validation_input.tagid; | |||
| let tagid2 = validation_input.tag2id; | |||
| if (tagid1 && tagid2) { | |||
| let text1 = $('#' + tagid1).val(); | |||
| let text2 = $('#' + tagid2).val(); | |||
| if (text1.length > 0 && text2.length > 0 && text1.length == text2.length && text1 === text2) | |||
| success = true; | |||
| } | |||
| return success; | |||
| }, | |||
| filepath: function (text, validation_input) { | |||
| let success = false; | |||
| let namecheck = validation_input.namecheck; | |||
| let match_text = text.match(regexes['filepath']); | |||
| let filename; | |||
| if (match_text) { | |||
| filename = match_text[match_text.length - 1]; | |||
| switch (namecheck) { | |||
| case 'startswith': | |||
| success = filename.startsWith(validation_input.checkstring); | |||
| break; | |||
| case 'endswith': | |||
| success = filename.endsWith(validation_input.checkstring); | |||
| break; | |||
| case 'contains': | |||
| success = filename.indexOf(validation_input.checkstring) != -1; | |||
| break; | |||
| case 'exact': | |||
| success = filename === validation_input.checkstring; | |||
| break; | |||
| case 'extension': | |||
| success = filename.endsWith('.' + validation_input.checkstring); | |||
| break; | |||
| default: | |||
| success = match_text; | |||
| break; | |||
| } | |||
| } | |||
| return success; | |||
| }, | |||
| pan_card: function (text, validation_input) { | |||
| return text.match(regexes['pan']); | |||
| }, | |||
| gstin: function (text, validation_input) { | |||
| let success = false; | |||
| let statecode = validation_input.statecode ? validation_input.statecode : ''; | |||
| if (statecode) { | |||
| if (text.startsWith(statecode)) { | |||
| success = text.match(regexes['gst']) | |||
| } | |||
| } | |||
| else { | |||
| success = text.match(regexes['gst']); | |||
| } | |||
| return success; | |||
| }, | |||
| custom: function (text, validation_input) { | |||
| if (regexes.custom) | |||
| return text.match(regexes['custom']) | |||
| else | |||
| return false | |||
| }, | |||
| website: function (text, validation_input) { | |||
| return text.match(regexes['website_regex']) | |||
| }, | |||
| } | |||
| //var s = '-8.5552'; | |||
| //console.log(s.match(regexes['decimal_number'])); | |||
| function validate(input, user_config) { | |||
| if (user_config) | |||
| Object.keys(user_config).map(key => { config[key] = user_config[key] }); | |||
| // Clear once before validation | |||
| clearDisplayingError(); | |||
| let all_valid = true; | |||
| let i = 0; | |||
| for (; i < input.length; i++) { | |||
| console.log('' + i + '. ' + input[i].tagid); | |||
| let text = config.error_display_html ? getValueForValidation(input[i].tagid) : input[i].text; | |||
| // There can be a case where the field is not required and hence not filled by the user, so we should consider it good. | |||
| if (!text && !input[i].required) { } else { | |||
| let valop; | |||
| if (input[i].regex_name === 'custom') { | |||
| regexes.custom = input[i].custom_regex | |||
| valop = regex_validation[input[i].regex_name](text, input[i]); | |||
| } | |||
| else | |||
| valop = regex_validation[input[i].regex_name](text, input[i]); | |||
| console.log(valop); | |||
| if (!valop) { | |||
| all_valid = false; | |||
| let tag_to_show_error_on = undefined; | |||
| if (input[i].show_error_on_tag_id) | |||
| tag_to_show_error_on = input[i].show_error_on_tag_id; | |||
| else | |||
| tag_to_show_error_on = input[i].tagid; | |||
| setDisplayingError(tag_to_show_error_on, input[i].errmsg); | |||
| //setDisplayingError(input[i].tagid, input[i].errmsg); | |||
| } | |||
| } | |||
| if (config.error_display_html) { | |||
| if (config.highlight_all_errors) | |||
| continue; | |||
| else | |||
| if (!all_valid) | |||
| break; | |||
| } else { | |||
| if (!all_valid) | |||
| break; | |||
| } | |||
| } | |||
| return all_valid ? | |||
| (config.error_display_html ? true : true) : | |||
| (config.error_display_html ? false : { tagid: input[i].tagid, errmsg: input[i].errmsg }); | |||
| } | |||
| function getValueForValidation(tagid) { | |||
| let jq_tag = $('#' + tagid); | |||
| let tagName = jq_tag.prop('tagName'); | |||
| let value = '' | |||
| if (tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') { | |||
| value = jq_tag.val(); | |||
| } | |||
| return value; | |||
| } | |||
| function clearDisplayingError() { | |||
| if (config.error_display_html) | |||
| $('span.' + config.error_class).remove(); | |||
| } | |||
| function setDisplayingError(tagid, errmsg) { | |||
| if (config.error_display_html) { | |||
| $('#' + tagid).after('<span class="error_class", style="color: ' + config.error_color + '; font-size: ' + config.error_text_size + 'px">' + errmsg + '<span>'); | |||
| $('#' + tagid).focus(); | |||
| } | |||
| } | |||
| var isNode = new Function("try {return this===global;}catch(e){return false;}"); | |||
| // tests if global scope is binded to "global" | |||
| if (isNode()) { | |||
| //console.log("running under node.js"); | |||
| module.exports.validate = validate; | |||
| } | |||
| @ -0,0 +1,92 @@ | |||
| (function($) { | |||
| "use strict"; | |||
| function getController(el, options){ | |||
| var $this = $(el), | |||
| controller = $this.data("zanim"); | |||
| if (options === undefined) { | |||
| options = {delay: 0, duration: 0.30, ease: 'Expo.easeOut', from:{}, to:{}}; | |||
| } | |||
| //populating the controller | |||
| controller.delay || (controller.delay = options.delay); | |||
| controller.duration || (controller.duration = options.duration); | |||
| controller.from || (controller.from = options.from); | |||
| controller.to || (controller.to = options.to); | |||
| controller.ease && (controller.to.ease = controller.ease) && controller.to.ease || (controller.to.ease = options.ease); | |||
| return controller; | |||
| } | |||
| $.fn.zanimation = function(options) { | |||
| var $this = $(this); | |||
| //for Timeline | |||
| if($this.data("zanim-timeline")) { | |||
| var timeline = new TimelineMax(); | |||
| $this.find('*[data-zanim]').each(function(){ | |||
| var controller = getController(this, options); | |||
| timeline.fromTo($(this), controller.duration, controller.from, controller.to, controller.delay).pause(); | |||
| }); | |||
| return timeline; | |||
| } | |||
| //for single elements outside timeline | |||
| else if(!$this.parents("[data-zanim-timeline]").length){ | |||
| var controller = getController(this, options); | |||
| return TweenMax.fromTo($this, controller.duration, controller.from, controller.to).delay(controller.delay).pause(); | |||
| } | |||
| return new TimelineMax(); | |||
| } | |||
| }(jQuery)); | |||
| // triggering zanimation when the element enters in the view | |||
| (function($) { | |||
| function isScrolledIntoView($this){ | |||
| var $elem = $this, | |||
| windowHeight = $(window).height(), | |||
| elemTop = $elem.offset().top, | |||
| elemHeight = $elem.height(); | |||
| windowScrollTop = $(window).scrollTop(); | |||
| if(elemTop <= (windowScrollTop + windowHeight) && windowScrollTop <= (elemTop + elemHeight)){ | |||
| return true; | |||
| } | |||
| return false; | |||
| } | |||
| function triggerZanimation($this){ | |||
| if(isScrolledIntoView($this) && $this.attr('data-zanim-trigger')=='scroll') { | |||
| $this.zanimation(zanimationDefaults).play(); | |||
| $this.removeAttr('data-zanim-trigger'); | |||
| } | |||
| } | |||
| $(document).ready(function() { | |||
| //playing zanimation for scroll triggers | |||
| $("*[data-zanim-trigger='scroll']").each(function(){ | |||
| var $this = $(this); | |||
| triggerZanimation($this); | |||
| $(window).on('scroll', function(){triggerZanimation($this)}); | |||
| }); | |||
| }); | |||
| }(jQuery)); | |||
| @ -0,0 +1,12 @@ | |||
| /*! | |||
| * VERSION: 0.2.2 | |||
| * DATE: 2017-06-19 | |||
| * UPDATES AND DOCS AT: http://greensock.com | |||
| * | |||
| * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. | |||
| * This work is subject to the terms at http://greensock.com/standard-license or for | |||
| * Club GreenSock members, the software agreement that was issued with your membership. | |||
| * | |||
| * @author: Jack Doyle, jack@greensock.com | |||
| **/ | |||
| var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.CustomEase",["easing.Ease"],function(a){var b=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,c=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,d=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,e=/[cLlsS]/g,f="CustomEase only accepts Cubic Bezier data.",g=function(a,b,c,d,e,f,h,i,j,k,l){var m,n=(a+c)/2,o=(b+d)/2,p=(c+e)/2,q=(d+f)/2,r=(e+h)/2,s=(f+i)/2,t=(n+p)/2,u=(o+q)/2,v=(p+r)/2,w=(q+s)/2,x=(t+v)/2,y=(u+w)/2,z=h-a,A=i-b,B=Math.abs((c-h)*A-(d-i)*z),C=Math.abs((e-h)*A-(f-i)*z);return k||(k=[{x:a,y:b},{x:h,y:i}],l=1),k.splice(l||k.length-1,0,{x:x,y:y}),(B+C)*(B+C)>j*(z*z+A*A)&&(m=k.length,g(a,b,n,o,t,u,x,y,j,k,l),g(x,y,v,w,r,s,h,i,j,k,l+1+(k.length-m))),k},h=function(a){var b,e,g,h,i,j,k,l,m,n,o,p=(a+"").replace(d,function(a){var b=+a;return 1e-4>b&&b>-1e-4?0:b}).match(c)||[],q=[],r=0,s=0,t=p.length,u=2;for(b=0;t>b;b++)if(m=h,isNaN(p[b])?(h=p[b].toUpperCase(),i=h!==p[b]):b--,e=+p[b+1],g=+p[b+2],i&&(e+=r,g+=s),b||(k=e,l=g),"M"===h)j&&j.length<8&&(q.length-=1,u=0),r=k=e,s=l=g,j=[e,g],u=2,q.push(j),b+=2,h="L";else if("C"===h)j||(j=[0,0]),j[u++]=e,j[u++]=g,i||(r=s=0),j[u++]=r+1*p[b+3],j[u++]=s+1*p[b+4],j[u++]=r+=1*p[b+5],j[u++]=s+=1*p[b+6],b+=6;else if("S"===h)"C"===m||"S"===m?(n=r-j[u-4],o=s-j[u-3],j[u++]=r+n,j[u++]=s+o):(j[u++]=r,j[u++]=s),j[u++]=e,j[u++]=g,i||(r=s=0),j[u++]=r+=1*p[b+3],j[u++]=s+=1*p[b+4],b+=4;else{if("L"!==h&&"Z"!==h)throw f;"Z"===h&&(e=k,g=l,j.closed=!0),("L"===h||Math.abs(r-e)>.5||Math.abs(s-g)>.5)&&(j[u++]=r+(e-r)/3,j[u++]=s+(g-s)/3,j[u++]=r+2*(e-r)/3,j[u++]=s+2*(g-s)/3,j[u++]=e,j[u++]=g,"L"===h&&(b+=2)),r=e,s=g}return q[0]},i=function(a){var b,c=a.length,d=999999999999;for(b=1;c>b;b+=6)+a[b]<d&&(d=+a[b]);return d},j=function(a,b,c){c||0===c||(c=Math.max(+a[a.length-1],+a[1]));var d,e=-1*+a[0],f=-c,g=a.length,h=1/(+a[g-2]+e),j=-b||(Math.abs(+a[g-1]-+a[1])<.01*(+a[g-2]-+a[0])?i(a)+f:+a[g-1]+f);for(j=j?1/j:-h,d=0;g>d;d+=2)a[d]=(+a[d]+e)*h,a[d+1]=(+a[d+1]+f)*j},k=function(a){var b=this.lookup[a*this.l|0]||this.lookup[this.l-1];return b.nx<a&&(b=b.n),b.y+(a-b.x)/b.cx*b.cy},l=function(b,c,d){this._calcEnd=!0,this.id=b,b&&(a.map[b]=this),this.getRatio=k,this.setData(c,d)},m=l.prototype=new a;return m.constructor=l,m.setData=function(a,c){a=a||"0,0,1,1";var d,i,k,l,m,n,o,p,q,r,s=a.match(b),t=1,u=[];if(c=c||{},r=c.precision||1,this.data=a,this.lookup=[],this.points=u,this.fast=1>=r,(e.test(a)||-1!==a.indexOf("M")&&-1===a.indexOf("C"))&&(s=h(a)),d=s.length,4===d)s.unshift(0,0),s.push(1,1),d=8;else if((d-2)%6)throw f;for((0!==+s[0]||1!==+s[d-2])&&j(s,c.height,c.originY),this.rawBezier=s,l=2;d>l;l+=6)i={x:+s[l-2],y:+s[l-1]},k={x:+s[l+4],y:+s[l+5]},u.push(i,k),g(i.x,i.y,+s[l],+s[l+1],+s[l+2],+s[l+3],k.x,k.y,1/(2e5*r),u,u.length-1);for(d=u.length,l=0;d>l;l++)o=u[l],p=u[l-1]||o,o.x>p.x||p.y!==o.y&&p.x===o.x||o===p?(p.cx=o.x-p.x,p.cy=o.y-p.y,p.n=o,p.nx=o.x,this.fast&&l>1&&Math.abs(p.cy/p.cx-u[l-2].cy/u[l-2].cx)>2&&(this.fast=!1),p.cx<t&&(p.cx?t=p.cx:(p.cx=.001,l===d-1&&(p.x-=.001,t=Math.min(t,.001),this.fast=!1)))):(u.splice(l--,1),d--);if(d=1/t+1|0,this.l=d,m=1/d,n=0,o=u[0],this.fast){for(l=0;d>l;l++)q=l*m,o.nx<q&&(o=u[++n]),i=o.y+(q-o.x)/o.cx*o.cy,this.lookup[l]={x:q,cx:m,y:i,cy:0,nx:9},l&&(this.lookup[l-1].cy=i-this.lookup[l-1].y);this.lookup[d-1].cy=u[u.length-1].y-i}else{for(l=0;d>l;l++)o.nx<l*m&&(o=u[++n]),this.lookup[l]=o;n<u.length-1&&(this.lookup[l-1]=u[u.length-2])}return this._calcEnd=1!==u[u.length-1].y||0!==u[0].y,this},m.getRatio=k,m.getSVGData=function(a){return l.getSVGData(this,a)},l.create=function(a,b,c){return new l(a,b,c)},l.version="0.2.2",l.bezierToPoints=g,l.get=function(b){return a.map[b]},l.getSVGData=function(b,c){c=c||{};var d,e,f,g,h,i,j,k,l,m,n=1e3,o=c.width||100,p=c.height||100,q=c.x||0,r=(c.y||0)+p,s=c.path;if(c.invert&&(p=-p,r=0),b=b.getRatio?b:a.map[b]||console.log("No ease found: ",b),b.rawBezier){for(d=[],j=b.rawBezier.length,f=0;j>f;f+=2)d.push(((q+b.rawBezier[f]*o)*n|0)/n+","+((r+b.rawBezier[f+1]*-p)*n|0)/n);d[0]="M"+d[0],d[1]="C"+d[1]}else for(d=["M"+q+","+r],j=Math.max(5,200*(c.precision||1)),g=1/j,j+=2,k=5/j,l=((q+g*o)*n|0)/n,m=((r+b.getRatio(g)*-p)*n|0)/n,e=(m-r)/(l-q),f=2;j>f;f++)h=((q+f*g*o)*n|0)/n,i=((r+b.getRatio(f*g)*-p)*n|0)/n,(Math.abs((i-m)/(h-l)-e)>k||f===j-1)&&(d.push(l+","+m),e=(i-m)/(h-l)),l=h,m=i;return s&&("string"==typeof s?document.querySelector(s):s).setAttribute("d",d.join(" ")),d.join(" ")},l},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("CustomEase"); | |||
| @ -0,0 +1,280 @@ | |||
| /* | |||
| * jQuery FlexSlider v2.7.2 | |||
| * https://www.woocommerce.com/flexslider/ | |||
| * | |||
| * Copyright 2012 WooThemes | |||
| * Free to use under the GPLv2 and later license. | |||
| * http://www.gnu.org/licenses/gpl-2.0.html | |||
| * | |||
| * Contributing author: Tyler Smith (@mbmufffin) | |||
| * | |||
| */ | |||
| /* ==================================================================================================================== | |||
| * FONT-FACE | |||
| * ====================================================================================================================*/ | |||
| @font-face { | |||
| font-family: 'flexslider-icon'; | |||
| src: url('fonts/flexslider-icon.eot'); | |||
| src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('fonts/flexslider-icon.woff') format('woff'), url('fonts/flexslider-icon.ttf') format('truetype'), url('fonts/flexslider-icon.svg#flexslider-icon') format('svg'); | |||
| font-weight: normal; | |||
| font-style: normal; | |||
| } | |||
| /* ==================================================================================================================== | |||
| * RESETS | |||
| * ====================================================================================================================*/ | |||
| .flex-container a:hover, | |||
| .flex-slider a:hover { | |||
| outline: none; | |||
| } | |||
| .slides, | |||
| .slides > li, | |||
| .flex-control-nav, | |||
| .flex-direction-nav { | |||
| margin: 0; | |||
| padding: 0; | |||
| list-style: none; | |||
| } | |||
| .flex-pauseplay span { | |||
| text-transform: capitalize; | |||
| } | |||
| /* ==================================================================================================================== | |||
| * BASE STYLES | |||
| * ====================================================================================================================*/ | |||
| .flexslider { | |||
| margin: 0; | |||
| padding: 0; | |||
| } | |||
| .flexslider .slides > li { | |||
| display: none; | |||
| -webkit-backface-visibility: hidden; | |||
| } | |||
| .flexslider .slides img { | |||
| width: 100%; | |||
| display: block; | |||
| } | |||
| .flexslider .slides:after { | |||
| content: "\0020"; | |||
| display: block; | |||
| clear: both; | |||
| visibility: hidden; | |||
| line-height: 0; | |||
| height: 0; | |||
| } | |||
| html[xmlns] .flexslider .slides { | |||
| display: block; | |||
| } | |||
| * html .flexslider .slides { | |||
| height: 1%; | |||
| } | |||
| .no-js .flexslider .slides > li:first-child { | |||
| display: block; | |||
| } | |||
| /* ==================================================================================================================== | |||
| * DEFAULT THEME | |||
| * ====================================================================================================================*/ | |||
| .flexslider { | |||
| margin: 0 0 60px; | |||
| background: #fff; | |||
| border: 4px solid #fff; | |||
| position: relative; | |||
| zoom: 1; | |||
| -webkit-border-radius: 4px; | |||
| -moz-border-radius: 4px; | |||
| border-radius: 4px; | |||
| -webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); | |||
| -moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); | |||
| -o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); | |||
| box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2); | |||
| } | |||
| .flexslider .slides { | |||
| zoom: 1; | |||
| } | |||
| .flexslider .slides img { | |||
| height: auto; | |||
| -moz-user-select: none; | |||
| } | |||
| .flex-viewport { | |||
| max-height: 2000px; | |||
| -webkit-transition: all 1s ease; | |||
| -moz-transition: all 1s ease; | |||
| -ms-transition: all 1s ease; | |||
| -o-transition: all 1s ease; | |||
| transition: all 1s ease; | |||
| } | |||
| .loading .flex-viewport { | |||
| max-height: 300px; | |||
| } | |||
| @-moz-document url-prefix() { | |||
| .loading .flex-viewport { | |||
| max-height: none; | |||
| } | |||
| } | |||
| .carousel li { | |||
| margin-right: 5px; | |||
| } | |||
| .flex-direction-nav { | |||
| *height: 0; | |||
| } | |||
| .flex-direction-nav a { | |||
| text-decoration: none; | |||
| display: block; | |||
| width: 40px; | |||
| height: 40px; | |||
| margin: -20px 0 0; | |||
| position: absolute; | |||
| top: 50%; | |||
| z-index: 10; | |||
| overflow: hidden; | |||
| opacity: 0; | |||
| cursor: pointer; | |||
| color: rgba(0, 0, 0, 0.8); | |||
| text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); | |||
| -webkit-transition: all 0.3s ease-in-out; | |||
| -moz-transition: all 0.3s ease-in-out; | |||
| -ms-transition: all 0.3s ease-in-out; | |||
| -o-transition: all 0.3s ease-in-out; | |||
| transition: all 0.3s ease-in-out; | |||
| } | |||
| .flex-direction-nav a:before { | |||
| font-family: "flexslider-icon"; | |||
| font-size: 40px; | |||
| display: inline-block; | |||
| content: '\f001'; | |||
| color: rgba(0, 0, 0, 0.8); | |||
| text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3); | |||
| } | |||
| .flex-direction-nav a.flex-next:before { | |||
| content: '\f002'; | |||
| } | |||
| .flex-direction-nav .flex-prev { | |||
| left: -50px; | |||
| } | |||
| .flex-direction-nav .flex-next { | |||
| right: -50px; | |||
| text-align: right; | |||
| } | |||
| .flexslider:hover .flex-direction-nav .flex-prev { | |||
| opacity: 0.7; | |||
| left: 10px; | |||
| } | |||
| .flexslider:hover .flex-direction-nav .flex-prev:hover { | |||
| opacity: 1; | |||
| } | |||
| .flexslider:hover .flex-direction-nav .flex-next { | |||
| opacity: 0.7; | |||
| right: 10px; | |||
| } | |||
| .flexslider:hover .flex-direction-nav .flex-next:hover { | |||
| opacity: 1; | |||
| } | |||
| .flex-direction-nav .flex-disabled { | |||
| opacity: 0!important; | |||
| filter: alpha(opacity=0); | |||
| cursor: default; | |||
| z-index: -1; | |||
| } | |||
| .flex-pauseplay a { | |||
| display: block; | |||
| width: 20px; | |||
| height: 20px; | |||
| position: absolute; | |||
| bottom: 5px; | |||
| left: 10px; | |||
| opacity: 0.8; | |||
| z-index: 10; | |||
| overflow: hidden; | |||
| cursor: pointer; | |||
| color: #000; | |||
| } | |||
| .flex-pauseplay a:before { | |||
| font-family: "flexslider-icon"; | |||
| font-size: 20px; | |||
| display: inline-block; | |||
| content: '\f004'; | |||
| } | |||
| .flex-pauseplay a:hover { | |||
| opacity: 1; | |||
| } | |||
| .flex-pauseplay a.flex-play:before { | |||
| content: '\f003'; | |||
| } | |||
| .flex-control-nav { | |||
| width: 100%; | |||
| position: absolute; | |||
| bottom: -40px; | |||
| text-align: center; | |||
| } | |||
| .flex-control-nav li { | |||
| margin: 0 6px; | |||
| display: inline-block; | |||
| zoom: 1; | |||
| *display: inline; | |||
| } | |||
| .flex-control-paging li a { | |||
| width: 11px; | |||
| height: 11px; | |||
| display: block; | |||
| background: #666; | |||
| background: rgba(0, 0, 0, 0.5); | |||
| cursor: pointer; | |||
| text-indent: -9999px; | |||
| -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); | |||
| -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); | |||
| -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); | |||
| box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); | |||
| -webkit-border-radius: 20px; | |||
| -moz-border-radius: 20px; | |||
| border-radius: 20px; | |||
| } | |||
| .flex-control-paging li a:hover { | |||
| background: #333; | |||
| background: rgba(0, 0, 0, 0.7); | |||
| } | |||
| .flex-control-paging li a.flex-active { | |||
| background: #000; | |||
| background: rgba(0, 0, 0, 0.9); | |||
| cursor: default; | |||
| } | |||
| .flex-control-thumbs { | |||
| margin: 5px 0 0; | |||
| position: static; | |||
| overflow: hidden; | |||
| } | |||
| .flex-control-thumbs li { | |||
| width: 25%; | |||
| float: left; | |||
| margin: 0; | |||
| } | |||
| .flex-control-thumbs img { | |||
| width: 100%; | |||
| height: auto; | |||
| display: block; | |||
| opacity: .7; | |||
| cursor: pointer; | |||
| -moz-user-select: none; | |||
| -webkit-transition: all 1s ease; | |||
| -moz-transition: all 1s ease; | |||
| -ms-transition: all 1s ease; | |||
| -o-transition: all 1s ease; | |||
| transition: all 1s ease; | |||
| } | |||
| .flex-control-thumbs img:hover { | |||
| opacity: 1; | |||
| } | |||
| .flex-control-thumbs .flex-active { | |||
| opacity: 1; | |||
| cursor: default; | |||
| } | |||
| /* ==================================================================================================================== | |||
| * RESPONSIVE | |||
| * ====================================================================================================================*/ | |||
| @media screen and (max-width: 860px) { | |||
| .flex-direction-nav .flex-prev { | |||
| opacity: 1; | |||
| left: 10px; | |||
| } | |||
| .flex-direction-nav .flex-next { | |||
| opacity: 1; | |||
| right: 10px; | |||
| } | |||
| } | |||
| @ -0,0 +1,12 @@ | |||
| /*! | |||
| * VERSION: 1.9.1 | |||
| * DATE: 2018-05-21 | |||
| * UPDATES AND DOCS AT: http://greensock.com | |||
| * | |||
| * @license Copyright (c) 2008-2018, GreenSock. All rights reserved. | |||
| * This work is subject to the terms at http://greensock.com/standard-license or for | |||
| * Club GreenSock members, the software agreement that was issued with your membership. | |||
| * | |||
| * @author: Jack Doyle, jack@greensock.com | |||
| **/ | |||
| var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a=(_gsScope.document||{}).documentElement,b=_gsScope,c=function(c,d){var e="x"===d?"Width":"Height",f="scroll"+e,g="client"+e,h=document.body;return c===b||c===a||c===h?Math.max(a[f],h[f])-(b["inner"+e]||a[g]||h[g]):c[f]-c["offset"+e]},d=function(a){return"string"==typeof a&&(a=TweenLite.selector(a)),a.length&&a!==b&&a[0]&&a[0].style&&!a.nodeType&&(a=a[0]),a===b||a.nodeType&&a.style?a:null},e=function(c,d){var e="scroll"+("x"===d?"Left":"Top");return c===b&&(null!=c.pageXOffset?e="page"+d.toUpperCase()+"Offset":c=null!=a[e]?a:document.body),function(){return c[e]}},f=function(c,f){var g=d(c).getBoundingClientRect(),h=document.body,i=!f||f===b||f===h,j=i?{top:a.clientTop-(window.pageYOffset||a.scrollTop||h.scrollTop||0),left:a.clientLeft-(window.pageXOffset||a.scrollLeft||h.scrollLeft||0)}:f.getBoundingClientRect(),k={x:g.left-j.left,y:g.top-j.top};return!i&&f&&(k.x+=e(f,"x")(),k.y+=e(f,"y")()),k},g=function(a,b,d){var e=typeof a;return isNaN(a)?"number"===e||"string"===e&&"="===a.charAt(1)?a:"max"===a?c(b,d):Math.min(c(b,d),f(a,b)[d]):parseFloat(a)},h=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.9.1",init:function(a,c,d){return this._wdw=a===b,this._target=a,this._tween=d,"object"!=typeof c?(c={y:c},"string"==typeof c.y&&"max"!==c.y&&"="!==c.y.charAt(1)&&(c.x=c.y)):c.nodeType&&(c={y:c,x:c}),this.vars=c,this._autoKill=c.autoKill!==!1,this.getX=e(a,"x"),this.getY=e(a,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=c.x?(this._addTween(this,"x",this.x,g(c.x,a,"x")-(c.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=c.y?(this._addTween(this,"y",this.y,g(c.y,a,"y")-(c.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(a){this._super.setRatio.call(this,a);var d=this._wdw||!this.skipX?this.getX():this.xPrev,e=this._wdw||!this.skipY?this.getY():this.yPrev,f=e-this.yPrev,g=d-this.xPrev,i=h.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(g>i||-i>g)&&d<c(this._target,"x")&&(this.skipX=!0),!this.skipY&&(f>i||-i>f)&&e<c(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[]))),this._wdw?b.scrollTo(this.skipX?d:this.x,this.skipY?e:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),i=h.prototype;h.max=c,h.getOffset=f,h.buildGetter=e,h.autoKillThreshold=7,i._kill=function(a){return a.scrollTo_x&&(this.skipX=!0),a.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,a)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("ScrollToPlugin"); | |||
| @ -0,0 +1,333 @@ | |||
| /** | |||
| * THIS IS A FORK IN ORDER TO PROVIDE A NPM PACKAGE OF IT! | |||
| * | |||
| * ORIGINAL: | |||
| * Copyright © 2016 Ben Kamens | MIT license | https://github.com/kamens/jQuery-menu-aim | |||
| * | |||
| * menu-aim is a jQuery plugin for dropdown menus that can differentiate | |||
| * between a user trying hover over a dropdown item vs trying to navigate into | |||
| * a submenu's contents. | |||
| * | |||
| * menu-aim assumes that you have are using a menu with submenus that expand | |||
| * to the menu's right. It will fire events when the user's mouse enters a new | |||
| * dropdown item *and* when that item is being intentionally hovered over. | |||
| * | |||
| * __________________________ | |||
| * | Monkeys >| Gorilla | | |||
| * | Gorillas >| Content | | |||
| * | Chimps >| Here | | |||
| * |___________|____________| | |||
| * | |||
| * In the above example, "Gorillas" is selected and its submenu content is | |||
| * being shown on the right. Imagine that the user's cursor is hovering over | |||
| * "Gorillas." When they move their mouse into the "Gorilla Content" area, they | |||
| * may briefly hover over "Chimps." This shouldn't close the "Gorilla Content" | |||
| * area. | |||
| * | |||
| * This problem is normally solved using timeouts and delays. menu-aim tries to | |||
| * solve this by detecting the direction of the user's mouse movement. This can | |||
| * make for quicker transitions when navigating up and down the menu. The | |||
| * experience is hopefully similar to amazon.com/'s "Shop by Department" | |||
| * dropdown. | |||
| * | |||
| * Use like so: | |||
| * | |||
| * $("#menu").menuAim({ | |||
| * activate: $.noop, // fired on row activation | |||
| * deactivate: $.noop // fired on row deactivation | |||
| * }); | |||
| * | |||
| * ...to receive events when a menu's row has been purposefully (de)activated. | |||
| * | |||
| * The following options can be passed to menuAim. All functions execute with | |||
| * the relevant row's HTML element as the execution context ('this'): | |||
| * | |||
| * .menuAim({ | |||
| * // Function to call when a row is purposefully activated. Use this | |||
| * // to show a submenu's content for the activated row. | |||
| * activate: function() {}, | |||
| * | |||
| * // Function to call when a row is deactivated. | |||
| * deactivate: function() {}, | |||
| * | |||
| * // Function to call when mouse enters a menu row. Entering a row | |||
| * // does not mean the row has been activated, as the user may be | |||
| * // mousing over to a submenu. | |||
| * enter: function() {}, | |||
| * | |||
| * // Function to call when mouse exits a menu row. | |||
| * exit: function() {}, | |||
| * | |||
| * // Selector for identifying which elements in the menu are rows | |||
| * // that can trigger the above events. Defaults to "> li". | |||
| * rowSelector: "> li", | |||
| * | |||
| * // You may have some menu rows that aren't submenus and therefore | |||
| * // shouldn't ever need to "activate." If so, filter submenu rows w/ | |||
| * // this selector. Defaults to "*" (all elements). | |||
| * submenuSelector: "*", | |||
| * | |||
| * // Direction the submenu opens relative to the main menu. Can be | |||
| * // left, right, above, or below. Defaults to "right". | |||
| * submenuDirection: "right" | |||
| * }); | |||
| * | |||
| */ | |||
| (function (factory) { | |||
| if (typeof exports === 'object') { | |||
| factory(require('jquery')); | |||
| } else if (typeof define === 'function' && define.amd) { | |||
| define(['jquery'], factory); | |||
| } else { | |||
| factory(jQuery); | |||
| } | |||
| }(function ($) { | |||
| $.fn.menuAim = function(opts) { | |||
| // Initialize menu-aim for all elements in jQuery collection | |||
| this.each(function() { | |||
| init.call(this, opts); | |||
| }); | |||
| return this; | |||
| }; | |||
| function init(opts) { | |||
| var $menu = $(this), | |||
| activeRow = null, | |||
| mouseLocs = [], | |||
| lastDelayLoc = null, | |||
| timeoutId = null, | |||
| options = $.extend({ | |||
| rowSelector: "> li", | |||
| submenuSelector: "*", | |||
| submenuDirection: "right", | |||
| tolerance: 75, // bigger = more forgivey when entering submenu | |||
| enter: $.noop, | |||
| exit: $.noop, | |||
| activate: $.noop, | |||
| deactivate: $.noop, | |||
| exitMenu: $.noop | |||
| }, opts); | |||
| var MOUSE_LOCS_TRACKED = 3, // number of past mouse locations to track | |||
| DELAY = 300; // ms delay when user appears to be entering submenu | |||
| /** | |||
| * Keep track of the last few locations of the mouse. | |||
| */ | |||
| var mousemoveDocument = function(e) { | |||
| mouseLocs.push({x: e.pageX, y: e.pageY}); | |||
| if (mouseLocs.length > MOUSE_LOCS_TRACKED) { | |||
| mouseLocs.shift(); | |||
| } | |||
| }; | |||
| /** | |||
| * Cancel possible row activations when leaving the menu entirely | |||
| */ | |||
| var mouseleaveMenu = function() { | |||
| if (timeoutId) { | |||
| clearTimeout(timeoutId); | |||
| } | |||
| // If exitMenu is supplied and returns true, deactivate the | |||
| // currently active row on menu exit. | |||
| if (options.exitMenu(this)) { | |||
| if (activeRow) { | |||
| options.deactivate(activeRow); | |||
| } | |||
| activeRow = null; | |||
| } | |||
| }; | |||
| /** | |||
| * Trigger a possible row activation whenever entering a new row. | |||
| */ | |||
| var mouseenterRow = function() { | |||
| if (timeoutId) { | |||
| // Cancel any previous activation delays | |||
| clearTimeout(timeoutId); | |||
| } | |||
| options.enter(this); | |||
| possiblyActivate(this); | |||
| }, | |||
| mouseleaveRow = function() { | |||
| options.exit(this); | |||
| }; | |||
| /* | |||
| * Immediately activate a row if the user clicks on it. | |||
| */ | |||
| var clickRow = function() { | |||
| activate(this); | |||
| }; | |||
| /** | |||
| * Activate a menu row. | |||
| */ | |||
| var activate = function(row) { | |||
| if (row == activeRow) { | |||
| return; | |||
| } | |||
| if (activeRow) { | |||
| options.deactivate(activeRow); | |||
| } | |||
| options.activate(row); | |||
| activeRow = row; | |||
| }; | |||
| /** | |||
| * Possibly activate a menu row. If mouse movement indicates that we | |||
| * shouldn't activate yet because user may be trying to enter | |||
| * a submenu's content, then delay and check again later. | |||
| */ | |||
| var possiblyActivate = function(row) { | |||
| var delay = activationDelay(); | |||
| if (delay) { | |||
| timeoutId = setTimeout(function() { | |||
| possiblyActivate(row); | |||
| }, delay); | |||
| } else { | |||
| activate(row); | |||
| } | |||
| }; | |||
| /** | |||
| * Return the amount of time that should be used as a delay before the | |||
| * currently hovered row is activated. | |||
| * | |||
| * Returns 0 if the activation should happen immediately. Otherwise, | |||
| * returns the number of milliseconds that should be delayed before | |||
| * checking again to see if the row should be activated. | |||
| */ | |||
| var activationDelay = function() { | |||
| if (!activeRow || !$(activeRow).is(options.submenuSelector)) { | |||
| // If there is no other submenu row already active, then | |||
| // go ahead and activate immediately. | |||
| return 0; | |||
| } | |||
| var offset = $menu.offset(), | |||
| upperLeft = { | |||
| x: offset.left, | |||
| y: offset.top - options.tolerance | |||
| }, | |||
| upperRight = { | |||
| x: offset.left + $menu.outerWidth(), | |||
| y: upperLeft.y | |||
| }, | |||
| lowerLeft = { | |||
| x: offset.left, | |||
| y: offset.top + $menu.outerHeight() + options.tolerance | |||
| }, | |||
| lowerRight = { | |||
| x: offset.left + $menu.outerWidth(), | |||
| y: lowerLeft.y | |||
| }, | |||
| loc = mouseLocs[mouseLocs.length - 1], | |||
| prevLoc = mouseLocs[0]; | |||
| if (!loc) { | |||
| return 0; | |||
| } | |||
| if (!prevLoc) { | |||
| prevLoc = loc; | |||
| } | |||
| if (prevLoc.x < offset.left || prevLoc.x > lowerRight.x || | |||
| prevLoc.y < offset.top || prevLoc.y > lowerRight.y) { | |||
| // If the previous mouse location was outside of the entire | |||
| // menu's bounds, immediately activate. | |||
| return 0; | |||
| } | |||
| if (lastDelayLoc && | |||
| loc.x == lastDelayLoc.x && loc.y == lastDelayLoc.y) { | |||
| // If the mouse hasn't moved since the last time we checked | |||
| // for activation status, immediately activate. | |||
| return 0; | |||
| } | |||
| // Detect if the user is moving towards the currently activated | |||
| // submenu. | |||
| // | |||
| // If the mouse is heading relatively clearly towards | |||
| // the submenu's content, we should wait and give the user more | |||
| // time before activating a new row. If the mouse is heading | |||
| // elsewhere, we can immediately activate a new row. | |||
| // | |||
| // We detect this by calculating the slope formed between the | |||
| // current mouse location and the upper/lower right points of | |||
| // the menu. We do the same for the previous mouse location. | |||
| // If the current mouse location's slopes are | |||
| // increasing/decreasing appropriately compared to the | |||
| // previous's, we know the user is moving toward the submenu. | |||
| // | |||
| // Note that since the y-axis increases as the cursor moves | |||
| // down the screen, we are looking for the slope between the | |||
| // cursor and the upper right corner to decrease over time, not | |||
| // increase (somewhat counterintuitively). | |||
| function slope(a, b) { | |||
| return (b.y - a.y) / (b.x - a.x); | |||
| }; | |||
| var decreasingCorner = upperRight, | |||
| increasingCorner = lowerRight; | |||
| // Our expectations for decreasing or increasing slope values | |||
| // depends on which direction the submenu opens relative to the | |||
| // main menu. By default, if the menu opens on the right, we | |||
| // expect the slope between the cursor and the upper right | |||
| // corner to decrease over time, as explained above. If the | |||
| // submenu opens in a different direction, we change our slope | |||
| // expectations. | |||
| if (options.submenuDirection == "left") { | |||
| decreasingCorner = lowerLeft; | |||
| increasingCorner = upperLeft; | |||
| } else if (options.submenuDirection == "below") { | |||
| decreasingCorner = lowerRight; | |||
| increasingCorner = lowerLeft; | |||
| } else if (options.submenuDirection == "above") { | |||
| decreasingCorner = upperLeft; | |||
| increasingCorner = upperRight; | |||
| } | |||
| var decreasingSlope = slope(loc, decreasingCorner), | |||
| increasingSlope = slope(loc, increasingCorner), | |||
| prevDecreasingSlope = slope(prevLoc, decreasingCorner), | |||
| prevIncreasingSlope = slope(prevLoc, increasingCorner); | |||
| if (decreasingSlope < prevDecreasingSlope && | |||
| increasingSlope > prevIncreasingSlope) { | |||
| // Mouse is moving from previous location towards the | |||
| // currently activated submenu. Delay before activating a | |||
| // new menu row, because user may be moving into submenu. | |||
| lastDelayLoc = loc; | |||
| return DELAY; | |||
| } | |||
| lastDelayLoc = null; | |||
| return 0; | |||
| }; | |||
| /** | |||
| * Hook up initial menu events | |||
| */ | |||
| $menu | |||
| .mouseleave(mouseleaveMenu) | |||
| .find(options.rowSelector) | |||
| .mouseenter(mouseenterRow) | |||
| .mouseleave(mouseleaveRow) | |||
| .click(clickRow); | |||
| $(document).mousemove(mousemoveDocument); | |||
| }; | |||
| })); | |||
| @ -0,0 +1,516 @@ | |||
| <!--:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |||
| jquery.mb.components | |||
| file: index.tmpl | |||
| last modified: 10/25/18 8:00 PM | |||
| Version: 3.3.1 | |||
| Build: 7469 | |||
| Open Lab s.r.l., Florence - Italy | |||
| email: matteo@open-lab.com | |||
| blog: http://pupunzi.open-lab.com | |||
| site: http://pupunzi.com | |||
| http://open-lab.com | |||
| Licences: MIT, GPL | |||
| http://www.opensource.org/licenses/mit-license.php | |||
| http://www.gnu.org/licenses/gpl.html | |||
| Copyright (c) 2001-2018. Matteo Bicocchi (Pupunzi) | |||
| :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::--> | |||
| <!DOCTYPE html> | |||
| <html> | |||
| <head> | |||
| <meta charset="UTF-8"> | |||
| <title>youtube Chromeless Player - mb.YTPlayer</title> | |||
| <link href='//fonts.googleapis.com/css?family=Lekton|Lobster' rel='stylesheet' type='text/css'> | |||
| <link href="css/jquery.mb.YTPlayer.min.css?_bn=7469" media="all" rel="stylesheet" type="text/css"> | |||
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |||
| <script src="jquery.mb.YTPlayer.js?_bn=7469"></script> | |||
| <script src="../examples/assets/apikey.js"></script> | |||
| <style> | |||
| *:focus { | |||
| outline: none; | |||
| } | |||
| body { | |||
| border: none; | |||
| margin: 0; | |||
| padding: 30px; | |||
| background: #222c2f; | |||
| font: normal 16px/20px Lekton, sans-serif; | |||
| } | |||
| h1 { | |||
| text-align: center; | |||
| font-size: 50px; | |||
| font-family: 'Lobster', cursive; | |||
| } | |||
| h1, | |||
| h2 { | |||
| font-family: 'Lobster', cursive; | |||
| text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.30); | |||
| color: #000000; | |||
| font-weight: 200; | |||
| } | |||
| h2 { | |||
| font-family: "Open Sans", sans-serif; | |||
| font-size: 35px; | |||
| text-align: left; | |||
| line-height: 1.4; | |||
| } | |||
| #wrapper { | |||
| position: relative; | |||
| min-width: 1280px; | |||
| } | |||
| .console { | |||
| margin-top: 70px; | |||
| text-align: center; | |||
| } | |||
| #debug { | |||
| position: absolute; | |||
| width: 450px; | |||
| padding: 5px; | |||
| height: 100%; | |||
| top: 0; | |||
| right: 0; | |||
| background: rgba(0, 0, 0, .8); | |||
| overflow: auto; | |||
| color: #fff; | |||
| font-size: 13px; | |||
| z-index: 10000; | |||
| } | |||
| .dida { | |||
| color: #fff; | |||
| font-size: 20px; | |||
| margin-top: 20px; | |||
| } | |||
| button, | |||
| .button { | |||
| transition: all .4s; | |||
| display: inline-block; | |||
| padding: 0px 10px; | |||
| font-size: 12px; | |||
| text-transform: uppercase; | |||
| cursor: pointer; | |||
| background-color: rgba(248, 248, 248, 0.4); | |||
| box-shadow: 0 0 4px rgba(0, 0, 0, 0.4); | |||
| color: #000; | |||
| border: 1px solid transparent; | |||
| text-decoration: none; | |||
| line-height: 30px; | |||
| margin: 3px; | |||
| border-radius: 10px; | |||
| } | |||
| button:hover, | |||
| .button:hover { | |||
| background-color: rgb(0, 0, 0); | |||
| color: #FFF; | |||
| } | |||
| #togglePlay { | |||
| margin-top: 20px; | |||
| font-size: 20px; | |||
| width: 100px; | |||
| height: 100px; | |||
| line-height: 70px; | |||
| border-radius: 100%; | |||
| } | |||
| #togglePlay.pause { | |||
| background-color: rgb(0, 0, 0); | |||
| color: #fff; | |||
| } | |||
| #togglePlay.pause:hover { | |||
| background-color: #fff; | |||
| color: #333; | |||
| } | |||
| #togglePlay.play { | |||
| background-color: #fff; | |||
| color: #333; | |||
| } | |||
| #togglePlay.play:hover { | |||
| background-color: rgb(0, 0, 0); | |||
| color: #fff; | |||
| } | |||
| .goto { | |||
| position: absolute; | |||
| left: 0; | |||
| top: 360px; | |||
| right: 0; | |||
| margin: auto; | |||
| text-align: center; | |||
| width: 100%; | |||
| height: 50px; | |||
| } | |||
| .goto .button { | |||
| font-size: 30px; | |||
| font-family: 'Lobster', cursive; | |||
| padding: 10px; | |||
| text-transform: none; | |||
| } | |||
| #filtersControl { | |||
| position: absolute; | |||
| top: 0; | |||
| left: 10px; | |||
| width: 350px; | |||
| margin: 30px auto; | |||
| z-index: 1000; | |||
| } | |||
| #changeVideo { | |||
| position: absolute; | |||
| top: 0; | |||
| right: 10px; | |||
| width: 350px; | |||
| margin: 30px auto; | |||
| z-index: 100; | |||
| padding: 10px; | |||
| /*background-color: rgba(25, 34, 37, 0.35);*/ | |||
| border-radius: 10px; | |||
| color: #FFFFFF; | |||
| box-sizing: border-box; | |||
| } | |||
| #changeVideo label { | |||
| padding: 10px; | |||
| display: block; | |||
| } | |||
| #changeVideo input { | |||
| padding: 10px; | |||
| display: block; | |||
| width: 250px; | |||
| border-radius: 10px; | |||
| border: none; | |||
| font-size: 20px; | |||
| color: #fff; | |||
| font-weight: 700; | |||
| background-color: rgba(168, 168, 168, 0.20); | |||
| } | |||
| #changeVideo input[type=number] { | |||
| display: inline-block; | |||
| width: 100px; | |||
| } | |||
| #changeVideo input[type=checkbox] { | |||
| display: inline-block; | |||
| width: 20px; | |||
| } | |||
| #loadBox { | |||
| background-color: rgba(168, 168, 168, 0.20); | |||
| border-radius: 10px; | |||
| padding: 20px; | |||
| } | |||
| /*Slider START ************************************************/ | |||
| #filterScript { | |||
| margin-top: 20px; | |||
| padding: 10px; | |||
| background-color: rgba(25, 34, 37, 0.35); | |||
| color: #fff; | |||
| border-radius: 10px; | |||
| } | |||
| .slider { | |||
| position: relative; | |||
| width: 100%; | |||
| height: 25px; | |||
| border: 0 solid transparent; | |||
| background-color: rgba(255, 255, 255, 0.20); | |||
| border-radius: 4px; | |||
| margin-top: 10px; | |||
| overflow: hidden; | |||
| } | |||
| .slider .level { | |||
| background-color: rgba(255, 255, 255, 0.80); | |||
| height: 100%; | |||
| } | |||
| .slider .desc { | |||
| position: absolute; | |||
| right: 0; | |||
| top: 0; | |||
| padding: 5px; | |||
| font-size: 12px; | |||
| line-height: 18px; | |||
| color: #222222; | |||
| } | |||
| .slider span { | |||
| font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; | |||
| /*text-transform: uppercase;*/ | |||
| position: absolute; | |||
| top: 0; | |||
| font-size: 12px; | |||
| line-height: 18px; | |||
| color: #222222; | |||
| padding: 4px; | |||
| text-align: left; | |||
| width: 100%; | |||
| box-sizing: border-box; | |||
| } | |||
| /*Slider END ************************************************/ | |||
| </style> | |||
| <script> | |||
| var isIframe = function() { | |||
| var a = !1; | |||
| try { | |||
| self.location.href != top.location.href && ( a = !0 ) | |||
| } catch ( b ) { | |||
| a = !0 | |||
| } | |||
| return a | |||
| }; | |||
| jQuery( function() { | |||
| if ( !isIframe() ) { | |||
| var logo = $( "<a href='http://pupunzi.com/#mb.components/components.html' style='position:absolute;top:0;z-index:1000'><img id='logo' border='0' src='http://pupunzi.com/images/logo.png' alt='mb.ideas.repository'></a>" ); | |||
| $( "#wrapper" ).prepend( logo ), $( "#logo" ).fadeIn() | |||
| } | |||
| var should_remember = $.mbCookie.get( "YTP_should_remember" ); | |||
| if ( should_remember ) | |||
| $( "#should_remember" ).attr( "checked", "checked" ); | |||
| $( "#should_remember" ).on( "change", function() { | |||
| if ( $( this ).is( ":checked" ) ) { | |||
| $.mbCookie.set( "YTP_should_remember", "true", 1 ); | |||
| } else { | |||
| $.mbCookie.remove( "YTP_should_remember" ); | |||
| } | |||
| } ); | |||
| var myPlayer = jQuery( "#bgndVideo" ).YTPlayer( { | |||
| remember_last_time: should_remember | |||
| , onReady: function( player ) { | |||
| YTPConsole.append( player.id + " player is ready" ); | |||
| YTPConsole.append( "<br>" ); | |||
| } | |||
| } ); | |||
| myPlayer.on( "YTPData", function( e ) { | |||
| $( ".dida" ).html( e.prop.title + "<br>@" + e.prop.channelTitle ); | |||
| $( "#videoData" ).show(); | |||
| } ); | |||
| /* DEBUG ******************************************************************************************/ | |||
| var YTPConsole = jQuery( "#eventListener" ); | |||
| // EVENT: YTPStart YTPEnd YTPLoop YTPPause YTPBuffering | |||
| myPlayer.on( "YTPStart YTPEnd YTPLoop YTPPause YTPBuffering YTPMuted YTPUnmuted", function( e ) { | |||
| YTPConsole.append( "event: " + e.type + " (" + jQuery( "#bgndVideo" ).YTPGetPlayer().getPlayerState() + ") > time: " + e.time ); | |||
| YTPConsole.append( "<br>" ); | |||
| } ); | |||
| // EVENT: YTPChanged | |||
| myPlayer.on( "YTPChanged", function( e ) { | |||
| YTPConsole.html( "" ); | |||
| } ); | |||
| // EVENT: YTPData | |||
| myPlayer.on( "YTPData", function( e ) { | |||
| YTPConsole.append( "******************************" ); | |||
| YTPConsole.append( "<br>" ); | |||
| YTPConsole.append( e.type ); | |||
| YTPConsole.append( "<br>" ); | |||
| YTPConsole.append( e.prop.title ); | |||
| YTPConsole.append( "<br>" ); | |||
| YTPConsole.append( e.prop.description.replace( /\n/g, "<br/>" ) ); | |||
| YTPConsole.append( "<br>" ); | |||
| YTPConsole.append( "******************************" ); | |||
| YTPConsole.append( "<br>" ); | |||
| } ); | |||
| // EVENT: YTPTime | |||
| myPlayer.on( "YTPTime", function( e ) { | |||
| var currentTime = e.time; | |||
| var traceLog = currentTime / 5 == Math.floor( currentTime / 5 ); | |||
| if ( traceLog && YTPConsole.is( ":visible" ) ) { | |||
| YTPConsole.append( myPlayer.attr( "id" ) + " > " + e.type + " > actual time is: " + currentTime ); | |||
| YTPConsole.append( "<br>" ); | |||
| } | |||
| } ); | |||
| /* END DEBUG ******************************************************************************************/ | |||
| /* FILTER SLIDERS ******************************************************************************************/ | |||
| // create sliders for filters adjustment | |||
| var $slider = $( ".slider" ).simpleSlider( { | |||
| initialval: 0, //function (el) {return Math.random() * el.opt.scale}, | |||
| scale: 100 | |||
| , callback: function( el ) { | |||
| var filter = $( el ).data( "filter" ); | |||
| var filterVal = +( el.value ).toFixed( 0 ); | |||
| myPlayer.YTPApplyFilter( filter, filterVal ); | |||
| $( "span", el ).html( filter + " (" + filterVal + ")" ); | |||
| var applFilters = []; | |||
| var desc = "$(selector).YTPApplyFilters({"; | |||
| for ( var x = 0; x < $( ".slider" ).length; x++ ) { | |||
| var slider = $( ".slider" ).eq( x ).get( 0 ); | |||
| var $slaider = $( slider ); | |||
| if ( slider.value ) applFilters.push( $slaider.data( "filter" ) + ": " + ( +( slider.value ).toFixed( 0 ) ) ); | |||
| } | |||
| for ( var y in applFilters ) { | |||
| var comma = y < applFilters.length - 1 ? "," : "<br>"; | |||
| desc += "<br> " + applFilters[ y ] + comma; | |||
| } | |||
| desc += "})"; | |||
| $( "#filterScript" ).html( desc ); | |||
| } | |||
| } ); | |||
| //update applied filters | |||
| myPlayer.on( "YTPFiltersApplied", function() { | |||
| var filters = myPlayer.get( 0 ).filters; | |||
| for ( var key in filters ) { | |||
| $( ".slider[data-filter=" + key + "]" ).updateSliderVal( filters[ key ].value ); | |||
| } | |||
| } ); | |||
| } ); | |||
| /* END FILTER SLIDERS ******************************************************************************************/ | |||
| function changeLabel( state ) { | |||
| $( "#togglePlay" ).html( state == 1 ? "pause" : "play" ); | |||
| $( "#togglePlay" ).removeClass( state == 1 ? "play" : "pause" ); | |||
| $( "#togglePlay" ).addClass( state == 1 ? "pause" : "play" ); | |||
| } | |||
| function checkForVal( val ) { | |||
| return val || 0; | |||
| } | |||
| </script> | |||
| </head> | |||
| <body> | |||
| <div id="wrapper" style="position:relative; padding:10px 0;z-index:10"> | |||
| <div class="console"> | |||
| <button onclick="jQuery('#bgndVideo').toggleVolume()">mute/unmute</button> | |||
| <button onclick="jQuery('#bgndVideo').YTPFullscreen()">go fullscreen</button> | |||
| <button id="debugBtn" class="command" onclick="jQuery('#debug').toggle()"> show/hide the console</button> | |||
| </div> | |||
| <br> | |||
| <br> | |||
| <h1 style="color:white">jQuery.mb.YTPlayer</h1> | |||
| <h2 style="color:white; text-align: center">An HTML5 Background player | |||
| <br>for YouTube videos</h2> | |||
| <div id="filtersControl"> | |||
| <h2 style="color:white">Apply filters</h2> | |||
| <h3 style="color: white">* Does not work in IE.</h3> | |||
| <button id="toggleFilters" onclick="jQuery('#bgndVideo').YTPToggleFilters(function(a){if(!a) {$('#toggleFilters').html('enable filters')} else {$('#toggleFilters').html('disable filters')}})"> disable all filters </button> | |||
| <script> | |||
| function rFCallback( f ) { | |||
| $( ".slider[data-filter=" + f + "]" ).updateSliderVal( 0 ); | |||
| } | |||
| </script> | |||
| <button id="removeFilters" onclick="jQuery('#bgndVideo').YTPRemoveFilter(rFCallback)"> remove all filters </button> | |||
| <div class="slider" data-filter="grayscale"> | |||
| <span>grayscale</span> | |||
| </div> | |||
| <div class="slider" data-filter="hue_rotate" data-scale="360"> | |||
| <span>hue rotate</span> | |||
| </div> | |||
| <div class="slider" data-filter="invert"> | |||
| <span>invert</span> | |||
| </div> | |||
| <div class="slider" data-filter="sepia"> | |||
| <span>sepia</span> | |||
| </div> | |||
| <div class="slider" data-filter="opacity"> | |||
| <span>opacity</span> | |||
| </div> | |||
| <div class="slider" data-filter="saturate" data-scale="1000"> | |||
| <span>saturate</span> | |||
| </div> | |||
| <div class="slider" data-filter="brightness" data-scale="200"> | |||
| <span>brightness</span> | |||
| </div> | |||
| <div class="slider" data-filter="contrast" data-scale="500"> | |||
| <span>contrast</span> | |||
| </div> | |||
| <div class="slider" data-filter="blur" data-scale="50"> | |||
| <span>blur</span> | |||
| </div> | |||
| <div id="filterScript"></div> | |||
| <h2 style="color:white">Apply mask</h2> | |||
| <button class="command" onclick="jQuery('#bgndVideo').YTPAddMask('../examples/assets/mask-1.png')">Add mask</button> | |||
| <button class="command" onclick="jQuery('#bgndVideo').YTPRemoveMask()">Remove mask</button> | |||
| <h2 style="color:white">Remember the time</h2> | |||
| <input type="checkbox" name="should_remember" id="should_remember"> | |||
| <span style="color: #fff">Check this if you want the video to start from where you left it next time you load this page.</span> | |||
| </div> | |||
| <div id="changeVideo"> | |||
| <h2 style="color:white">Change video</h2> | |||
| <button class="command" onclick="jQuery('#bgndVideo').YTPChangeVideo({videoURL: '7SnmCUwOsts', mute:false, addRaster:false})">video 1</button> | |||
| <button class="command" onclick="jQuery('#bgndVideo').YTPChangeVideo({videoURL: 'BsekcY04xvQ', mute:false, addRaster:false})">video 2</button> | |||
| <button class="command" onclick="jQuery('#bgndVideo').YTPChangeVideo({videoURL: 'kcihcYEOeic', mute:false, startAt:10, stopAt: 363, addRaster:false})">video 3</button> | |||
| <button class="command" onclick="jQuery('#bgndVideo').YTPChangeVideo({videoURL: 'w0653vsLSqE', mute:false, startAt:25, stopAt: 0, addRaster:false})">video 4</button> | |||
| <br> | |||
| <br> | |||
| <div id="loadBox"> | |||
| <label for="videoID">Or insert here the ID or the complete URL of the Youtube video:</label> | |||
| <input id="videoID" type="text" value="r1xohS2u69E" onfocus="$('#loadOptions').slideDown()"> | |||
| <div id="loadOptions" style="display: none"> | |||
| <br> | |||
| <input id="startAt" type="number" placeholder="starts at"> | |||
| <input id="stopAt" type="number" placeholder="stops at"> | |||
| <br> | |||
| <br> | |||
| <input id="audioOff" type="checkbox" checked> Audio is OFF | |||
| </div> | |||
| <br> | |||
| <button onclick="$('#loadOptions').slideUp(); jQuery('#bgndVideo').YTPChangeVideo({videoURL: $('#videoID').val(), startAt: checkForVal($('#startAt').val()), stopAt: checkForVal($('#stopAt').val()), mute: $('#audioOff').is(':checked') })">change video</button> | |||
| <div id="videoData" style="display: none"> | |||
| <h2 style="color: #FFFFFF; text-align: left">Current video:</h2> | |||
| <div class="dida"></div> | |||
| </div> | |||
| <br> | |||
| <button onclick="jQuery.mbYTPlayer.removeStoredData()"> Remove stored data </button> | |||
| </div> | |||
| </div> | |||
| <div class="goto"> | |||
| <button id="togglePlay" class="command pause" onclick="jQuery('#bgndVideo').YTPTogglePlay(changeLabel)">pause</button> | |||
| <br> | |||
| <br> | |||
| <br> | |||
| <a class="button" href="https://github.com/pupunzi/jquery.mb.YTPlayer/wiki" target="_blank">See the doc</a> | |||
| <a class="button" href="http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-ytplayer" target="_blank">Download it</a> | |||
| </div> | |||
| <a style="position: fixed;bottom:40px;right: 30px;" href="http://pupunzi.open-lab.com/consider-a-donation/" target="_blank"> | |||
| <img border="0" alt="PayPal" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG_global.gif" class="alignright"> | |||
| </a> | |||
| <!--7SnmCUwOsts--> | |||
| <!--BsekcY04xvQ--> | |||
| </div> | |||
| <div id="debug" style="display: none"> | |||
| <a id="bgndVideo" class="player" data-property="{videoURL:'r1xohS2u69E',containment:'body', showControls:true, autoPlay:true, loop:true, vol:50, mute:false, startAt:10,ratio:16/9, stopAt:150, opacity:1, addRaster:true, quality:'hd720', optimizeDisplay:true}">My video</a> | |||
| <h2 style="color: #FFFFFF; text-align: left">Events console: </h2> | |||
| <div id="eventListener"></div> | |||
| </div> | |||
| </body> | |||
| </html> | |||
| @ -0,0 +1,204 @@ | |||
| body.lb-disable-scrolling { | |||
| overflow: hidden; | |||
| } | |||
| .lightboxOverlay { | |||
| position: absolute; | |||
| top: 0; | |||
| left: 0; | |||
| z-index: 9999; | |||
| background-color: black; | |||
| filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); | |||
| opacity: 0.8; | |||
| display: none; | |||
| } | |||
| .lightbox { | |||
| position: absolute; | |||
| left: 0; | |||
| width: 100%; | |||
| z-index: 10000; | |||
| text-align: center; | |||
| line-height: 0; | |||
| font-weight: normal; | |||
| outline: none; | |||
| } | |||
| .lightbox .lb-image { | |||
| display: block; | |||
| height: auto; | |||
| max-width: inherit; | |||
| max-height: none; | |||
| border-radius: 3px; | |||
| /* Image border */ | |||
| border: 4px solid white; | |||
| } | |||
| .lightbox a img { | |||
| border: none; | |||
| } | |||
| .lb-outerContainer { | |||
| position: relative; | |||
| *zoom: 1; | |||
| width: 250px; | |||
| height: 250px; | |||
| margin: 0 auto; | |||
| border-radius: 4px; | |||
| /* Background color behind image. | |||
| This is visible during transitions. */ | |||
| background-color: white; | |||
| } | |||
| .lb-outerContainer:after { | |||
| content: ""; | |||
| display: table; | |||
| clear: both; | |||
| } | |||
| .lb-loader { | |||
| position: absolute; | |||
| top: 43%; | |||
| left: 0; | |||
| height: 25%; | |||
| width: 100%; | |||
| text-align: center; | |||
| line-height: 0; | |||
| } | |||
| .lb-cancel { | |||
| display: block; | |||
| width: 32px; | |||
| height: 32px; | |||
| margin: 0 auto; | |||
| background: url(../images/loading.gif) no-repeat; | |||
| } | |||
| .lb-nav { | |||
| position: absolute; | |||
| top: 0; | |||
| left: 0; | |||
| height: 100%; | |||
| width: 100%; | |||
| z-index: 10; | |||
| } | |||
| .lb-container > .nav { | |||
| left: 0; | |||
| } | |||
| .lb-nav a { | |||
| outline: none; | |||
| background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='); | |||
| } | |||
| .lb-prev, .lb-next { | |||
| height: 100%; | |||
| cursor: pointer; | |||
| display: block; | |||
| } | |||
| .lb-nav a.lb-prev { | |||
| width: 34%; | |||
| left: 0; | |||
| float: left; | |||
| background: url(../images/prev.png) left 48% no-repeat; | |||
| filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); | |||
| opacity: 0; | |||
| -webkit-transition: opacity 0.6s; | |||
| -moz-transition: opacity 0.6s; | |||
| -o-transition: opacity 0.6s; | |||
| transition: opacity 0.6s; | |||
| } | |||
| .lb-nav a.lb-prev:hover { | |||
| filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); | |||
| opacity: 1; | |||
| } | |||
| .lb-nav a.lb-next { | |||
| width: 64%; | |||
| right: 0; | |||
| float: right; | |||
| background: url(../images/next.png) right 48% no-repeat; | |||
| filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); | |||
| opacity: 0; | |||
| -webkit-transition: opacity 0.6s; | |||
| -moz-transition: opacity 0.6s; | |||
| -o-transition: opacity 0.6s; | |||
| transition: opacity 0.6s; | |||
| } | |||
| .lb-nav a.lb-next:hover { | |||
| filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); | |||
| opacity: 1; | |||
| } | |||
| .lb-dataContainer { | |||
| margin: 0 auto; | |||
| padding-top: 5px; | |||
| *zoom: 1; | |||
| width: 100%; | |||
| border-bottom-left-radius: 4px; | |||
| border-bottom-right-radius: 4px; | |||
| } | |||
| .lb-dataContainer:after { | |||
| content: ""; | |||
| display: table; | |||
| clear: both; | |||
| } | |||
| .lb-data { | |||
| padding: 0 4px; | |||
| color: #ccc; | |||
| } | |||
| .lb-data .lb-details { | |||
| width: 85%; | |||
| float: left; | |||
| text-align: left; | |||
| line-height: 1.1em; | |||
| } | |||
| .lb-data .lb-caption { | |||
| font-size: 13px; | |||
| font-weight: bold; | |||
| line-height: 1em; | |||
| } | |||
| .lb-data .lb-caption a { | |||
| color: #4ae; | |||
| } | |||
| .lb-data .lb-number { | |||
| display: block; | |||
| clear: left; | |||
| padding-bottom: 1em; | |||
| font-size: 12px; | |||
| color: #999999; | |||
| } | |||
| .lb-data .lb-close { | |||
| display: block; | |||
| float: right; | |||
| width: 30px; | |||
| height: 30px; | |||
| background: url(../images/close.png) top right no-repeat; | |||
| text-align: right; | |||
| outline: none; | |||
| filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); | |||
| opacity: 0.7; | |||
| -webkit-transition: opacity 0.2s; | |||
| -moz-transition: opacity 0.2s; | |||
| -o-transition: opacity 0.2s; | |||
| transition: opacity 0.2s; | |||
| } | |||
| .lb-data .lb-close:hover { | |||
| cursor: pointer; | |||
| filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); | |||
| opacity: 1; | |||
| } | |||
| @ -0,0 +1 @@ | |||
| .lb-loader,.lightbox{text-align:center;line-height:0;position:absolute;left:0}body.lb-disable-scrolling{overflow:hidden}.lightboxOverlay{position:absolute;top:0;left:0;z-index:9999;background-color:#000;filter:alpha(Opacity=80);opacity:.8;display:none}.lightbox{width:100%;z-index:10000;font-weight:400;outline:0}.lightbox .lb-image{display:block;height:auto;max-width:inherit;max-height:none;border-radius:3px;border:4px solid #fff}.lightbox a img{border:none}.lb-outerContainer{position:relative;width:250px;height:250px;margin:0 auto;border-radius:4px;background-color:#fff}.lb-outerContainer:after{content:"";display:table;clear:both}.lb-loader{top:43%;height:25%;width:100%}.lb-cancel{display:block;width:32px;height:32px;margin:0 auto;background:url(../images/loading.gif) no-repeat}.lb-nav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}.lb-container>.nav{left:0}.lb-nav a{outline:0;background-image:url(data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)}.lb-next,.lb-prev{height:100%;cursor:pointer;display:block}.lb-nav a.lb-prev{width:34%;left:0;float:left;background:url(../images/prev.png) left 48% no-repeat;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lb-nav a.lb-prev:hover{filter:alpha(Opacity=100);opacity:1}.lb-nav a.lb-next{width:64%;right:0;float:right;background:url(../images/next.png) right 48% no-repeat;filter:alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lb-nav a.lb-next:hover{filter:alpha(Opacity=100);opacity:1}.lb-dataContainer{margin:0 auto;padding-top:5px;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.lb-dataContainer:after{content:"";display:table;clear:both}.lb-data{padding:0 4px;color:#ccc}.lb-data .lb-details{width:85%;float:left;text-align:left;line-height:1.1em}.lb-data .lb-caption{font-size:13px;font-weight:700;line-height:1em}.lb-data .lb-caption a{color:#4ae}.lb-data .lb-number{display:block;clear:left;padding-bottom:1em;font-size:12px;color:#999}.lb-data .lb-close{display:block;float:right;width:30px;height:30px;background:url(../images/close.png) top right no-repeat;text-align:right;outline:0;filter:alpha(Opacity=70);opacity:.7;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s}.lb-data .lb-close:hover{cursor:pointer;filter:alpha(Opacity=100);opacity:1} | |||
| @ -0,0 +1,559 @@ | |||
| /*! | |||
| * Lightbox v2.11.1 | |||
| * by Lokesh Dhakar | |||
| * | |||
| * More info: | |||
| * http://lokeshdhakar.com/projects/lightbox2/ | |||
| * | |||
| * Copyright Lokesh Dhakar | |||
| * Released under the MIT license | |||
| * https://github.com/lokesh/lightbox2/blob/master/LICENSE | |||
| * | |||
| * @preserve | |||
| */ | |||
| // Uses Node, AMD or browser globals to create a module. | |||
| (function (root, factory) { | |||
| if (typeof define === 'function' && define.amd) { | |||
| // AMD. Register as an anonymous module. | |||
| define(['jquery'], factory); | |||
| } else if (typeof exports === 'object') { | |||
| // Node. Does not work with strict CommonJS, but | |||
| // only CommonJS-like environments that support module.exports, | |||
| // like Node. | |||
| module.exports = factory(require('jquery')); | |||
| } else { | |||
| // Browser globals (root is window) | |||
| root.lightbox = factory(root.jQuery); | |||
| } | |||
| }(this, function ($) { | |||
| function Lightbox(options) { | |||
| this.album = []; | |||
| this.currentImageIndex = void 0; | |||
| this.init(); | |||
| // options | |||
| this.options = $.extend({}, this.constructor.defaults); | |||
| this.option(options); | |||
| } | |||
| // Descriptions of all options available on the demo site: | |||
| // http://lokeshdhakar.com/projects/lightbox2/index.html#options | |||
| Lightbox.defaults = { | |||
| albumLabel: 'Image %1 of %2', | |||
| alwaysShowNavOnTouchDevices: false, | |||
| fadeDuration: 600, | |||
| fitImagesInViewport: true, | |||
| imageFadeDuration: 600, | |||
| // maxWidth: 800, | |||
| // maxHeight: 600, | |||
| positionFromTop: 50, | |||
| resizeDuration: 700, | |||
| showImageNumberLabel: true, | |||
| wrapAround: false, | |||
| disableScrolling: false, | |||
| /* | |||
| Sanitize Title | |||
| If the caption data is trusted, for example you are hardcoding it in, then leave this to false. | |||
| This will free you to add html tags, such as links, in the caption. | |||
| If the caption data is user submitted or from some other untrusted source, then set this to true | |||
| to prevent xss and other injection attacks. | |||
| */ | |||
| sanitizeTitle: false | |||
| }; | |||
| Lightbox.prototype.option = function(options) { | |||
| $.extend(this.options, options); | |||
| }; | |||
| Lightbox.prototype.imageCountLabel = function(currentImageNum, totalImages) { | |||
| return this.options.albumLabel.replace(/%1/g, currentImageNum).replace(/%2/g, totalImages); | |||
| }; | |||
| Lightbox.prototype.init = function() { | |||
| var self = this; | |||
| // Both enable and build methods require the body tag to be in the DOM. | |||
| $(document).ready(function() { | |||
| self.enable(); | |||
| self.build(); | |||
| }); | |||
| }; | |||
| // Loop through anchors and areamaps looking for either data-lightbox attributes or rel attributes | |||
| // that contain 'lightbox'. When these are clicked, start lightbox. | |||
| Lightbox.prototype.enable = function() { | |||
| var self = this; | |||
| $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]', function(event) { | |||
| self.start($(event.currentTarget)); | |||
| return false; | |||
| }); | |||
| }; | |||
| // Build html for the lightbox and the overlay. | |||
| // Attach event handlers to the new DOM elements. click click click | |||
| Lightbox.prototype.build = function() { | |||
| if ($('#lightbox').length > 0) { | |||
| return; | |||
| } | |||
| var self = this; | |||
| // The two root notes generated, #lightboxOverlay and #lightbox are given | |||
| // tabindex attrs so they are focusable. We attach our keyboard event | |||
| // listeners to these two elements, and not the document. Clicking anywhere | |||
| // while Lightbox is opened will keep the focus on or inside one of these | |||
| // two elements. | |||
| // | |||
| // We do this so we can prevent propogation of the Esc keypress when | |||
| // Lightbox is open. This prevents it from intefering with other components | |||
| // on the page below. | |||
| // | |||
| // Github issue: https://github.com/lokesh/lightbox2/issues/663 | |||
| $('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" aria-label="Previous image" href="" ></a><a class="lb-next" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo($('body')); | |||
| // Cache jQuery objects | |||
| this.$lightbox = $('#lightbox'); | |||
| this.$overlay = $('#lightboxOverlay'); | |||
| this.$outerContainer = this.$lightbox.find('.lb-outerContainer'); | |||
| this.$container = this.$lightbox.find('.lb-container'); | |||
| this.$image = this.$lightbox.find('.lb-image'); | |||
| this.$nav = this.$lightbox.find('.lb-nav'); | |||
| // Store css values for future lookup | |||
| this.containerPadding = { | |||
| top: parseInt(this.$container.css('padding-top'), 10), | |||
| right: parseInt(this.$container.css('padding-right'), 10), | |||
| bottom: parseInt(this.$container.css('padding-bottom'), 10), | |||
| left: parseInt(this.$container.css('padding-left'), 10) | |||
| }; | |||
| this.imageBorderWidth = { | |||
| top: parseInt(this.$image.css('border-top-width'), 10), | |||
| right: parseInt(this.$image.css('border-right-width'), 10), | |||
| bottom: parseInt(this.$image.css('border-bottom-width'), 10), | |||
| left: parseInt(this.$image.css('border-left-width'), 10) | |||
| }; | |||
| // Attach event handlers to the newly minted DOM elements | |||
| this.$overlay.hide().on('click', function() { | |||
| self.end(); | |||
| return false; | |||
| }); | |||
| this.$lightbox.hide().on('click', function(event) { | |||
| if ($(event.target).attr('id') === 'lightbox') { | |||
| self.end(); | |||
| } | |||
| }); | |||
| this.$outerContainer.on('click', function(event) { | |||
| if ($(event.target).attr('id') === 'lightbox') { | |||
| self.end(); | |||
| } | |||
| return false; | |||
| }); | |||
| this.$lightbox.find('.lb-prev').on('click', function() { | |||
| if (self.currentImageIndex === 0) { | |||
| self.changeImage(self.album.length - 1); | |||
| } else { | |||
| self.changeImage(self.currentImageIndex - 1); | |||
| } | |||
| return false; | |||
| }); | |||
| this.$lightbox.find('.lb-next').on('click', function() { | |||
| if (self.currentImageIndex === self.album.length - 1) { | |||
| self.changeImage(0); | |||
| } else { | |||
| self.changeImage(self.currentImageIndex + 1); | |||
| } | |||
| return false; | |||
| }); | |||
| /* | |||
| Show context menu for image on right-click | |||
| There is a div containing the navigation that spans the entire image and lives above of it. If | |||
| you right-click, you are right clicking this div and not the image. This prevents users from | |||
| saving the image or using other context menu actions with the image. | |||
| To fix this, when we detect the right mouse button is pressed down, but not yet clicked, we | |||
| set pointer-events to none on the nav div. This is so that the upcoming right-click event on | |||
| the next mouseup will bubble down to the image. Once the right-click/contextmenu event occurs | |||
| we set the pointer events back to auto for the nav div so it can capture hover and left-click | |||
| events as usual. | |||
| */ | |||
| this.$nav.on('mousedown', function(event) { | |||
| if (event.which === 3) { | |||
| self.$nav.css('pointer-events', 'none'); | |||
| self.$lightbox.one('contextmenu', function() { | |||
| setTimeout(function() { | |||
| this.$nav.css('pointer-events', 'auto'); | |||
| }.bind(self), 0); | |||
| }); | |||
| } | |||
| }); | |||
| this.$lightbox.find('.lb-loader, .lb-close').on('click', function() { | |||
| self.end(); | |||
| return false; | |||
| }); | |||
| }; | |||
| // Show overlay and lightbox. If the image is part of a set, add siblings to album array. | |||
| Lightbox.prototype.start = function($link) { | |||
| var self = this; | |||
| var $window = $(window); | |||
| $window.on('resize', $.proxy(this.sizeOverlay, this)); | |||
| this.sizeOverlay(); | |||
| this.album = []; | |||
| var imageNumber = 0; | |||
| function addToAlbum($link) { | |||
| self.album.push({ | |||
| alt: $link.attr('data-alt'), | |||
| link: $link.attr('href'), | |||
| title: $link.attr('data-title') || $link.attr('title') | |||
| }); | |||
| } | |||
| // Support both data-lightbox attribute and rel attribute implementations | |||
| var dataLightboxValue = $link.attr('data-lightbox'); | |||
| var $links; | |||
| if (dataLightboxValue) { | |||
| $links = $($link.prop('tagName') + '[data-lightbox="' + dataLightboxValue + '"]'); | |||
| for (var i = 0; i < $links.length; i = ++i) { | |||
| addToAlbum($($links[i])); | |||
| if ($links[i] === $link[0]) { | |||
| imageNumber = i; | |||
| } | |||
| } | |||
| } else { | |||
| if ($link.attr('rel') === 'lightbox') { | |||
| // If image is not part of a set | |||
| addToAlbum($link); | |||
| } else { | |||
| // If image is part of a set | |||
| $links = $($link.prop('tagName') + '[rel="' + $link.attr('rel') + '"]'); | |||
| for (var j = 0; j < $links.length; j = ++j) { | |||
| addToAlbum($($links[j])); | |||
| if ($links[j] === $link[0]) { | |||
| imageNumber = j; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| // Position Lightbox | |||
| var top = $window.scrollTop() + this.options.positionFromTop; | |||
| var left = $window.scrollLeft(); | |||
| this.$lightbox.css({ | |||
| top: top + 'px', | |||
| left: left + 'px' | |||
| }).fadeIn(this.options.fadeDuration); | |||
| // Disable scrolling of the page while open | |||
| if (this.options.disableScrolling) { | |||
| $('body').addClass('lb-disable-scrolling'); | |||
| } | |||
| this.changeImage(imageNumber); | |||
| }; | |||
| // Hide most UI elements in preparation for the animated resizing of the lightbox. | |||
| Lightbox.prototype.changeImage = function(imageNumber) { | |||
| var self = this; | |||
| var filename = this.album[imageNumber].link; | |||
| var filetype = filename.split('.').slice(-1)[0]; | |||
| var $image = this.$lightbox.find('.lb-image'); | |||
| // Disable keyboard nav during transitions | |||
| this.disableKeyboardNav(); | |||
| // Show loading state | |||
| this.$overlay.fadeIn(this.options.fadeDuration); | |||
| $('.lb-loader').fadeIn('slow'); | |||
| this.$lightbox.find('.lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption').hide(); | |||
| this.$outerContainer.addClass('animating'); | |||
| // When image to show is preloaded, we send the width and height to sizeContainer() | |||
| var preloader = new Image(); | |||
| preloader.onload = function() { | |||
| var $preloader; | |||
| var imageHeight; | |||
| var imageWidth; | |||
| var maxImageHeight; | |||
| var maxImageWidth; | |||
| var windowHeight; | |||
| var windowWidth; | |||
| $image.attr({ | |||
| 'alt': self.album[imageNumber].alt, | |||
| 'src': filename | |||
| }); | |||
| $preloader = $(preloader); | |||
| $image.width(preloader.width); | |||
| $image.height(preloader.height); | |||
| windowWidth = $(window).width(); | |||
| windowHeight = $(window).height(); | |||
| // Calculate the max image dimensions for the current viewport. | |||
| // Take into account the border around the image and an additional 10px gutter on each side. | |||
| maxImageWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.imageBorderWidth.left - self.imageBorderWidth.right - 20; | |||
| maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - self.options.positionFromTop - 70; | |||
| /* | |||
| SVGs that don't have width and height attributes specified are reporting width and height | |||
| values of 0 in Firefox 47 and IE11 on Windows. To fix, we set the width and height to the max | |||
| dimensions for the viewport rather than 0 x 0. | |||
| https://github.com/lokesh/lightbox2/issues/552 | |||
| */ | |||
| if (filetype === 'svg') { | |||
| if ((preloader.width === 0) || preloader.height === 0) { | |||
| $image.width(maxImageWidth); | |||
| $image.height(maxImageHeight); | |||
| } | |||
| } | |||
| // Fit image inside the viewport. | |||
| if (self.options.fitImagesInViewport) { | |||
| // Check if image size is larger then maxWidth|maxHeight in settings | |||
| if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) { | |||
| maxImageWidth = self.options.maxWidth; | |||
| } | |||
| if (self.options.maxHeight && self.options.maxHeight < maxImageHeight) { | |||
| maxImageHeight = self.options.maxHeight; | |||
| } | |||
| } else { | |||
| maxImageWidth = self.options.maxWidth || preloader.width || maxImageWidth; | |||
| maxImageHeight = self.options.maxHeight || preloader.height || maxImageHeight; | |||
| } | |||
| // Is the current image's width or height is greater than the maxImageWidth or maxImageHeight | |||
| // option than we need to size down while maintaining the aspect ratio. | |||
| if ((preloader.width > maxImageWidth) || (preloader.height > maxImageHeight)) { | |||
| if ((preloader.width / maxImageWidth) > (preloader.height / maxImageHeight)) { | |||
| imageWidth = maxImageWidth; | |||
| imageHeight = parseInt(preloader.height / (preloader.width / imageWidth), 10); | |||
| $image.width(imageWidth); | |||
| $image.height(imageHeight); | |||
| } else { | |||
| imageHeight = maxImageHeight; | |||
| imageWidth = parseInt(preloader.width / (preloader.height / imageHeight), 10); | |||
| $image.width(imageWidth); | |||
| $image.height(imageHeight); | |||
| } | |||
| } | |||
| self.sizeContainer($image.width(), $image.height()); | |||
| }; | |||
| // Preload image before showing | |||
| preloader.src = this.album[imageNumber].link; | |||
| this.currentImageIndex = imageNumber; | |||
| }; | |||
| // Stretch overlay to fit the viewport | |||
| Lightbox.prototype.sizeOverlay = function() { | |||
| var self = this; | |||
| /* | |||
| We use a setTimeout 0 to pause JS execution and let the rendering catch-up. | |||
| Why do this? If the `disableScrolling` option is set to true, a class is added to the body | |||
| tag that disables scrolling and hides the scrollbar. We want to make sure the scrollbar is | |||
| hidden before we measure the document width, as the presence of the scrollbar will affect the | |||
| number. | |||
| */ | |||
| setTimeout(function() { | |||
| self.$overlay | |||
| .width($(document).width()) | |||
| .height($(document).height()); | |||
| }, 0); | |||
| }; | |||
| // Animate the size of the lightbox to fit the image we are showing | |||
| // This method also shows the the image. | |||
| Lightbox.prototype.sizeContainer = function(imageWidth, imageHeight) { | |||
| var self = this; | |||
| var oldWidth = this.$outerContainer.outerWidth(); | |||
| var oldHeight = this.$outerContainer.outerHeight(); | |||
| var newWidth = imageWidth + this.containerPadding.left + this.containerPadding.right + this.imageBorderWidth.left + this.imageBorderWidth.right; | |||
| var newHeight = imageHeight + this.containerPadding.top + this.containerPadding.bottom + this.imageBorderWidth.top + this.imageBorderWidth.bottom; | |||
| function postResize() { | |||
| self.$lightbox.find('.lb-dataContainer').width(newWidth); | |||
| self.$lightbox.find('.lb-prevLink').height(newHeight); | |||
| self.$lightbox.find('.lb-nextLink').height(newHeight); | |||
| // Set focus on one of the two root nodes so keyboard events are captured. | |||
| self.$overlay.focus(); | |||
| self.showImage(); | |||
| } | |||
| if (oldWidth !== newWidth || oldHeight !== newHeight) { | |||
| this.$outerContainer.animate({ | |||
| width: newWidth, | |||
| height: newHeight | |||
| }, this.options.resizeDuration, 'swing', function() { | |||
| postResize(); | |||
| }); | |||
| } else { | |||
| postResize(); | |||
| } | |||
| }; | |||
| // Display the image and its details and begin preload neighboring images. | |||
| Lightbox.prototype.showImage = function() { | |||
| this.$lightbox.find('.lb-loader').stop(true).hide(); | |||
| this.$lightbox.find('.lb-image').fadeIn(this.options.imageFadeDuration); | |||
| this.updateNav(); | |||
| this.updateDetails(); | |||
| this.preloadNeighboringImages(); | |||
| this.enableKeyboardNav(); | |||
| }; | |||
| // Display previous and next navigation if appropriate. | |||
| Lightbox.prototype.updateNav = function() { | |||
| // Check to see if the browser supports touch events. If so, we take the conservative approach | |||
| // and assume that mouse hover events are not supported and always show prev/next navigation | |||
| // arrows in image sets. | |||
| var alwaysShowNav = false; | |||
| try { | |||
| document.createEvent('TouchEvent'); | |||
| alwaysShowNav = (this.options.alwaysShowNavOnTouchDevices) ? true : false; | |||
| } catch (e) {} | |||
| this.$lightbox.find('.lb-nav').show(); | |||
| if (this.album.length > 1) { | |||
| if (this.options.wrapAround) { | |||
| if (alwaysShowNav) { | |||
| this.$lightbox.find('.lb-prev, .lb-next').css('opacity', '1'); | |||
| } | |||
| this.$lightbox.find('.lb-prev, .lb-next').show(); | |||
| } else { | |||
| if (this.currentImageIndex > 0) { | |||
| this.$lightbox.find('.lb-prev').show(); | |||
| if (alwaysShowNav) { | |||
| this.$lightbox.find('.lb-prev').css('opacity', '1'); | |||
| } | |||
| } | |||
| if (this.currentImageIndex < this.album.length - 1) { | |||
| this.$lightbox.find('.lb-next').show(); | |||
| if (alwaysShowNav) { | |||
| this.$lightbox.find('.lb-next').css('opacity', '1'); | |||
| } | |||
| } | |||
| } | |||
| } | |||
| }; | |||
| // Display caption, image number, and closing button. | |||
| Lightbox.prototype.updateDetails = function() { | |||
| var self = this; | |||
| // Enable anchor clicks in the injected caption html. | |||
| // Thanks Nate Wright for the fix. @https://github.com/NateWr | |||
| if (typeof this.album[this.currentImageIndex].title !== 'undefined' && | |||
| this.album[this.currentImageIndex].title !== '') { | |||
| var $caption = this.$lightbox.find('.lb-caption'); | |||
| if (this.options.sanitizeTitle) { | |||
| $caption.text(this.album[this.currentImageIndex].title); | |||
| } else { | |||
| $caption.html(this.album[this.currentImageIndex].title); | |||
| } | |||
| $caption.fadeIn('fast'); | |||
| } | |||
| if (this.album.length > 1 && this.options.showImageNumberLabel) { | |||
| var labelText = this.imageCountLabel(this.currentImageIndex + 1, this.album.length); | |||
| this.$lightbox.find('.lb-number').text(labelText).fadeIn('fast'); | |||
| } else { | |||
| this.$lightbox.find('.lb-number').hide(); | |||
| } | |||
| this.$outerContainer.removeClass('animating'); | |||
| this.$lightbox.find('.lb-dataContainer').fadeIn(this.options.resizeDuration, function() { | |||
| return self.sizeOverlay(); | |||
| }); | |||
| }; | |||
| // Preload previous and next images in set. | |||
| Lightbox.prototype.preloadNeighboringImages = function() { | |||
| if (this.album.length > this.currentImageIndex + 1) { | |||
| var preloadNext = new Image(); | |||
| preloadNext.src = this.album[this.currentImageIndex + 1].link; | |||
| } | |||
| if (this.currentImageIndex > 0) { | |||
| var preloadPrev = new Image(); | |||
| preloadPrev.src = this.album[this.currentImageIndex - 1].link; | |||
| } | |||
| }; | |||
| Lightbox.prototype.enableKeyboardNav = function() { | |||
| this.$lightbox.on('keyup.keyboard', $.proxy(this.keyboardAction, this)); | |||
| this.$overlay.on('keyup.keyboard', $.proxy(this.keyboardAction, this)); | |||
| }; | |||
| Lightbox.prototype.disableKeyboardNav = function() { | |||
| this.$lightbox.off('.keyboard'); | |||
| this.$overlay.off('.keyboard'); | |||
| }; | |||
| Lightbox.prototype.keyboardAction = function(event) { | |||
| var KEYCODE_ESC = 27; | |||
| var KEYCODE_LEFTARROW = 37; | |||
| var KEYCODE_RIGHTARROW = 39; | |||
| var keycode = event.keyCode; | |||
| if (keycode === KEYCODE_ESC) { | |||
| // Prevent bubbling so as to not affect other components on the page. | |||
| event.stopPropagation(); | |||
| this.end(); | |||
| } else if (keycode === KEYCODE_LEFTARROW) { | |||
| if (this.currentImageIndex !== 0) { | |||
| this.changeImage(this.currentImageIndex - 1); | |||
| } else if (this.options.wrapAround && this.album.length > 1) { | |||
| this.changeImage(this.album.length - 1); | |||
| } | |||
| } else if (keycode === KEYCODE_RIGHTARROW) { | |||
| if (this.currentImageIndex !== this.album.length - 1) { | |||
| this.changeImage(this.currentImageIndex + 1); | |||
| } else if (this.options.wrapAround && this.album.length > 1) { | |||
| this.changeImage(0); | |||
| } | |||
| } | |||
| }; | |||
| // Closing time. :-( | |||
| Lightbox.prototype.end = function() { | |||
| this.disableKeyboardNav(); | |||
| $(window).off('resize', this.sizeOverlay); | |||
| this.$lightbox.fadeOut(this.options.fadeDuration); | |||
| this.$overlay.fadeOut(this.options.fadeDuration); | |||
| if (this.options.disableScrolling) { | |||
| $('body').removeClass('lb-disable-scrolling'); | |||
| } | |||
| }; | |||
| return new Lightbox(); | |||
| })); | |||
| @ -0,0 +1,59 @@ | |||
| (function ($) { | |||
| var divs = { | |||
| 'ball-pulse': 3, | |||
| 'ball-grid-pulse': 9, | |||
| 'ball-clip-rotate': 1, | |||
| 'ball-clip-rotate-pulse': 2, | |||
| 'square-spin': 1, | |||
| 'ball-clip-rotate-multiple': 2, | |||
| 'ball-pulse-rise': 5, | |||
| 'ball-rotate': 1, | |||
| 'cube-transition': 2, | |||
| 'ball-zig-zag': 2, | |||
| 'ball-zig-zag-deflect': 2, | |||
| 'ball-triangle-path': 3, | |||
| 'ball-scale': 1, | |||
| 'line-scale': 5, | |||
| 'line-scale-party': 4, | |||
| 'ball-scale-multiple': 3, | |||
| 'ball-pulse-sync': 3, | |||
| 'ball-beat': 3, | |||
| 'line-scale-pulse-out': 5, | |||
| 'line-scale-pulse-out-rapid': 5, | |||
| 'ball-scale-ripple': 1, | |||
| 'ball-scale-ripple-multiple': 3, | |||
| 'ball-spin-fade-loader': 8, | |||
| 'line-spin-fade-loader': 8, | |||
| 'triangle-skew-spin': 1, | |||
| 'pacman': 5, | |||
| 'ball-grid-beat': 9, | |||
| 'semi-circle-spin': 1, | |||
| 'ball-scale-random': 3 | |||
| }; | |||
| var addDivs = function(n) { | |||
| var arr = []; | |||
| for (i = 1; i <= n; i++) { | |||
| arr.push('<div></div>'); | |||
| } | |||
| return arr; | |||
| }; | |||
| $.fn.loaders = function() { | |||
| return this.each(function() { | |||
| var elem = $(this); | |||
| $.each(divs, function(key, value) { | |||
| if (elem.hasClass(key)) | |||
| elem.html(addDivs(value)) | |||
| }) | |||
| }); | |||
| }; | |||
| $(function() { | |||
| $.each(divs, function(key, value) { | |||
| $('.loader-inner.' + key).html(addDivs(value)); | |||
| }) | |||
| }); | |||
| }).call(window, window.$ || window.jQuery || window.Zepto); | |||
| @ -0,0 +1,186 @@ | |||
| /** | |||
| * Owl Carousel v2.3.4 | |||
| * Copyright 2013-2018 David Deutsch | |||
| * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE | |||
| */ | |||
| /* | |||
| * Owl Carousel - Core | |||
| */ | |||
| .owl-carousel { | |||
| display: none; | |||
| width: 100%; | |||
| -webkit-tap-highlight-color: transparent; | |||
| /* position relative and z-index fix webkit rendering fonts issue */ | |||
| position: relative; | |||
| z-index: 1; } | |||
| .owl-carousel .owl-stage { | |||
| position: relative; | |||
| -ms-touch-action: pan-Y; | |||
| touch-action: manipulation; | |||
| -moz-backface-visibility: hidden; | |||
| /* fix firefox animation glitch */ } | |||
| .owl-carousel .owl-stage:after { | |||
| content: "."; | |||
| display: block; | |||
| clear: both; | |||
| visibility: hidden; | |||
| line-height: 0; | |||
| height: 0; } | |||
| .owl-carousel .owl-stage-outer { | |||
| position: relative; | |||
| overflow: hidden; | |||
| /* fix for flashing background */ | |||
| -webkit-transform: translate3d(0px, 0px, 0px); } | |||
| .owl-carousel .owl-wrapper, | |||
| .owl-carousel .owl-item { | |||
| -webkit-backface-visibility: hidden; | |||
| -moz-backface-visibility: hidden; | |||
| -ms-backface-visibility: hidden; | |||
| -webkit-transform: translate3d(0, 0, 0); | |||
| -moz-transform: translate3d(0, 0, 0); | |||
| -ms-transform: translate3d(0, 0, 0); } | |||
| .owl-carousel .owl-item { | |||
| position: relative; | |||
| min-height: 1px; | |||
| float: left; | |||
| -webkit-backface-visibility: hidden; | |||
| -webkit-tap-highlight-color: transparent; | |||
| -webkit-touch-callout: none; } | |||
| .owl-carousel .owl-item img { | |||
| display: block; | |||
| width: 100%; } | |||
| .owl-carousel .owl-nav.disabled, | |||
| .owl-carousel .owl-dots.disabled { | |||
| display: none; } | |||
| .owl-carousel .owl-nav .owl-prev, | |||
| .owl-carousel .owl-nav .owl-next, | |||
| .owl-carousel .owl-dot { | |||
| cursor: pointer; | |||
| -webkit-user-select: none; | |||
| -khtml-user-select: none; | |||
| -moz-user-select: none; | |||
| -ms-user-select: none; | |||
| user-select: none; } | |||
| .owl-carousel .owl-nav button.owl-prev, | |||
| .owl-carousel .owl-nav button.owl-next, | |||
| .owl-carousel button.owl-dot { | |||
| background: none; | |||
| color: inherit; | |||
| border: none; | |||
| padding: 0 !important; | |||
| font: inherit; } | |||
| .owl-carousel.owl-loaded { | |||
| display: block; } | |||
| .owl-carousel.owl-loading { | |||
| opacity: 0; | |||
| display: block; } | |||
| .owl-carousel.owl-hidden { | |||
| opacity: 0; } | |||
| .owl-carousel.owl-refresh .owl-item { | |||
| visibility: hidden; } | |||
| .owl-carousel.owl-drag .owl-item { | |||
| -ms-touch-action: pan-y; | |||
| touch-action: pan-y; | |||
| -webkit-user-select: none; | |||
| -moz-user-select: none; | |||
| -ms-user-select: none; | |||
| user-select: none; } | |||
| .owl-carousel.owl-grab { | |||
| cursor: move; | |||
| cursor: grab; } | |||
| .owl-carousel.owl-rtl { | |||
| direction: rtl; } | |||
| .owl-carousel.owl-rtl .owl-item { | |||
| float: right; } | |||
| /* No Js */ | |||
| .no-js .owl-carousel { | |||
| display: block; } | |||
| /* | |||
| * Owl Carousel - Animate Plugin | |||
| */ | |||
| .owl-carousel .animated { | |||
| animation-duration: 1000ms; | |||
| animation-fill-mode: both; } | |||
| .owl-carousel .owl-animated-in { | |||
| z-index: 0; } | |||
| .owl-carousel .owl-animated-out { | |||
| z-index: 1; } | |||
| .owl-carousel .fadeOut { | |||
| animation-name: fadeOut; } | |||
| @keyframes fadeOut { | |||
| 0% { | |||
| opacity: 1; } | |||
| 100% { | |||
| opacity: 0; } } | |||
| /* | |||
| * Owl Carousel - Auto Height Plugin | |||
| */ | |||
| .owl-height { | |||
| transition: height 500ms ease-in-out; } | |||
| /* | |||
| * Owl Carousel - Lazy Load Plugin | |||
| */ | |||
| .owl-carousel .owl-item { | |||
| /** | |||
| This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong | |||
| calculation of the height of the owl-item that breaks page layouts | |||
| */ } | |||
| .owl-carousel .owl-item .owl-lazy { | |||
| opacity: 0; | |||
| transition: opacity 400ms ease; } | |||
| .owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) { | |||
| max-height: 0; } | |||
| .owl-carousel .owl-item img.owl-lazy { | |||
| transform-style: preserve-3d; } | |||
| /* | |||
| * Owl Carousel - Video Plugin | |||
| */ | |||
| .owl-carousel .owl-video-wrapper { | |||
| position: relative; | |||
| height: 100%; | |||
| background: #000; } | |||
| .owl-carousel .owl-video-play-icon { | |||
| position: absolute; | |||
| height: 80px; | |||
| width: 80px; | |||
| left: 50%; | |||
| top: 50%; | |||
| margin-left: -40px; | |||
| margin-top: -40px; | |||
| background: url("owl.video.play.png") no-repeat; | |||
| cursor: pointer; | |||
| z-index: 1; | |||
| -webkit-backface-visibility: hidden; | |||
| transition: transform 100ms ease; } | |||
| .owl-carousel .owl-video-play-icon:hover { | |||
| -ms-transform: scale(1.3, 1.3); | |||
| transform: scale(1.3, 1.3); } | |||
| .owl-carousel .owl-video-playing .owl-video-tn, | |||
| .owl-carousel .owl-video-playing .owl-video-play-icon { | |||
| display: none; } | |||
| .owl-carousel .owl-video-tn { | |||
| opacity: 0; | |||
| height: 100%; | |||
| background-position: center center; | |||
| background-repeat: no-repeat; | |||
| background-size: contain; | |||
| transition: opacity 400ms ease; } | |||
| .owl-carousel .owl-video-frame { | |||
| position: relative; | |||
| z-index: 1; | |||
| height: 100%; | |||
| width: 100%; } | |||
| @ -0,0 +1,6 @@ | |||
| /** | |||
| * Owl Carousel v2.3.4 | |||
| * Copyright 2013-2018 David Deutsch | |||
| * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE | |||
| */ | |||
| .owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%} | |||
| @ -0,0 +1,50 @@ | |||
| /** | |||
| * Owl Carousel v2.3.4 | |||
| * Copyright 2013-2018 David Deutsch | |||
| * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE | |||
| */ | |||
| /* | |||
| * Default theme - Owl Carousel CSS File | |||
| */ | |||
| .owl-theme .owl-nav { | |||
| margin-top: 10px; | |||
| text-align: center; | |||
| -webkit-tap-highlight-color: transparent; } | |||
| .owl-theme .owl-nav [class*='owl-'] { | |||
| color: #FFF; | |||
| font-size: 14px; | |||
| margin: 5px; | |||
| padding: 4px 7px; | |||
| background: #D6D6D6; | |||
| display: inline-block; | |||
| cursor: pointer; | |||
| border-radius: 3px; } | |||
| .owl-theme .owl-nav [class*='owl-']:hover { | |||
| background: #869791; | |||
| color: #FFF; | |||
| text-decoration: none; } | |||
| .owl-theme .owl-nav .disabled { | |||
| opacity: 0.5; | |||
| cursor: default; } | |||
| .owl-theme .owl-nav.disabled + .owl-dots { | |||
| margin-top: 10px; } | |||
| .owl-theme .owl-dots { | |||
| text-align: center; | |||
| -webkit-tap-highlight-color: transparent; } | |||
| .owl-theme .owl-dots .owl-dot { | |||
| display: inline-block; | |||
| zoom: 1; | |||
| *display: inline; } | |||
| .owl-theme .owl-dots .owl-dot span { | |||
| width: 10px; | |||
| height: 10px; | |||
| margin: 5px 7px; | |||
| background: #D6D6D6; | |||
| display: block; | |||
| -webkit-backface-visibility: visible; | |||
| transition: opacity 200ms ease; | |||
| border-radius: 30px; } | |||
| .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { | |||
| background: #869791; } | |||
| @ -0,0 +1,6 @@ | |||
| /** | |||
| * Owl Carousel v2.3.4 | |||
| * Copyright 2013-2018 David Deutsch | |||
| * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE | |||
| */ | |||
| .owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791} | |||
| @ -0,0 +1,50 @@ | |||
| /** | |||
| * Owl Carousel v2.3.4 | |||
| * Copyright 2013-2018 David Deutsch | |||
| * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE | |||
| */ | |||
| /* | |||
| * Green theme - Owl Carousel CSS File | |||
| */ | |||
| .owl-theme .owl-nav { | |||
| margin-top: 10px; | |||
| text-align: center; | |||
| -webkit-tap-highlight-color: transparent; } | |||
| .owl-theme .owl-nav [class*='owl-'] { | |||
| color: #FFF; | |||
| font-size: 14px; | |||
| margin: 5px; | |||
| padding: 4px 7px; | |||
| background: #D6D6D6; | |||
| display: inline-block; | |||
| cursor: pointer; | |||
| border-radius: 3px; } | |||
| .owl-theme .owl-nav [class*='owl-']:hover { | |||
| background: #4DC7A0; | |||
| color: #FFF; | |||
| text-decoration: none; } | |||
| .owl-theme .owl-nav .disabled { | |||
| opacity: 0.5; | |||
| cursor: default; } | |||
| .owl-theme .owl-nav.disabled + .owl-dots { | |||
| margin-top: 10px; } | |||
| .owl-theme .owl-dots { | |||
| text-align: center; | |||
| -webkit-tap-highlight-color: transparent; } | |||
| .owl-theme .owl-dots .owl-dot { | |||
| display: inline-block; | |||
| zoom: 1; | |||
| *display: inline; } | |||
| .owl-theme .owl-dots .owl-dot span { | |||
| width: 10px; | |||
| height: 10px; | |||
| margin: 5px 7px; | |||
| background: #D6D6D6; | |||
| display: block; | |||
| -webkit-backface-visibility: visible; | |||
| transition: opacity 200ms ease; | |||
| border-radius: 30px; } | |||
| .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { | |||
| background: #4DC7A0; } | |||
| @ -0,0 +1,6 @@ | |||
| /** | |||
| * Owl Carousel v2.3.4 | |||
| * Copyright 2013-2018 David Deutsch | |||
| * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE | |||
| */ | |||
| .owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#4DC7A0;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#4DC7A0} | |||
| @ -0,0 +1,139 @@ | |||
| /* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript */ | |||
| /** | |||
| * prism.js default theme for JavaScript, CSS and HTML | |||
| * Based on dabblet (http://dabblet.com) | |||
| * @author Lea Verou | |||
| */ | |||
| code[class*="language-"], | |||
| pre[class*="language-"] { | |||
| color: black; | |||
| background: none; | |||
| text-shadow: 0 1px white; | |||
| font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | |||
| text-align: left; | |||
| white-space: pre; | |||
| word-spacing: normal; | |||
| word-break: normal; | |||
| word-wrap: normal; | |||
| line-height: 1.5; | |||
| -moz-tab-size: 4; | |||
| -o-tab-size: 4; | |||
| tab-size: 4; | |||
| -webkit-hyphens: none; | |||
| -moz-hyphens: none; | |||
| -ms-hyphens: none; | |||
| hyphens: none; | |||
| } | |||
| pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, | |||
| code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { | |||
| text-shadow: none; | |||
| background: #b3d4fc; | |||
| } | |||
| pre[class*="language-"]::selection, pre[class*="language-"] ::selection, | |||
| code[class*="language-"]::selection, code[class*="language-"] ::selection { | |||
| text-shadow: none; | |||
| background: #b3d4fc; | |||
| } | |||
| @media print { | |||
| code[class*="language-"], | |||
| pre[class*="language-"] { | |||
| text-shadow: none; | |||
| } | |||
| } | |||
| /* Code blocks */ | |||
| pre[class*="language-"] { | |||
| padding: 1em; | |||
| margin: .5em 0; | |||
| overflow: auto; | |||
| } | |||
| :not(pre) > code[class*="language-"], | |||
| pre[class*="language-"] { | |||
| background: #f5f2f0; | |||
| } | |||
| /* Inline code */ | |||
| :not(pre) > code[class*="language-"] { | |||
| padding: .1em; | |||
| border-radius: .3em; | |||
| white-space: normal; | |||
| } | |||
| .token.comment, | |||
| .token.prolog, | |||
| .token.doctype, | |||
| .token.cdata { | |||
| color: slategray; | |||
| } | |||
| .token.punctuation { | |||
| color: #999; | |||
| } | |||
| .namespace { | |||
| opacity: .7; | |||
| } | |||
| .token.property, | |||
| .token.tag, | |||
| .token.boolean, | |||
| .token.number, | |||
| .token.constant, | |||
| .token.symbol, | |||
| .token.deleted { | |||
| color: #905; | |||
| } | |||
| .token.selector, | |||
| .token.attr-name, | |||
| .token.string, | |||
| .token.char, | |||
| .token.builtin, | |||
| .token.inserted { | |||
| color: #690; | |||
| } | |||
| .token.operator, | |||
| .token.entity, | |||
| .token.url, | |||
| .language-css .token.string, | |||
| .style .token.string { | |||
| color: #a67f59; | |||
| background: hsla(0, 0%, 100%, .5); | |||
| } | |||
| .token.atrule, | |||
| .token.attr-value, | |||
| .token.keyword { | |||
| color: #07a; | |||
| } | |||
| .token.function { | |||
| color: #DD4A68; | |||
| } | |||
| .token.regex, | |||
| .token.important, | |||
| .token.variable { | |||
| color: #e90; | |||
| } | |||
| .token.important, | |||
| .token.bold { | |||
| font-weight: bold; | |||
| } | |||
| .token.italic { | |||
| font-style: italic; | |||
| } | |||
| .token.entity { | |||
| cursor: help; | |||
| } | |||
| @ -0,0 +1,323 @@ | |||
| /* | |||
| * Remodal - v1.1.1 | |||
| * Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking. | |||
| * http://vodkabears.github.io/remodal/ | |||
| * | |||
| * Made by Ilya Makarov | |||
| * Under MIT License | |||
| */ | |||
| /* ========================================================================== | |||
| Remodal's default mobile first theme | |||
| ========================================================================== */ | |||
| /* Default theme styles for the background */ | |||
| .remodal-bg.remodal-is-opening, | |||
| .remodal-bg.remodal-is-opened { | |||
| -webkit-filter: blur(3px); | |||
| filter: blur(3px); | |||
| } | |||
| /* Default theme styles of the overlay */ | |||
| .remodal-overlay { | |||
| background: rgba(43, 46, 56, 0.9); | |||
| } | |||
| .remodal-overlay.remodal-is-opening, | |||
| .remodal-overlay.remodal-is-closing { | |||
| -webkit-animation-duration: 0.3s; | |||
| animation-duration: 0.3s; | |||
| -webkit-animation-fill-mode: forwards; | |||
| animation-fill-mode: forwards; | |||
| } | |||
| .remodal-overlay.remodal-is-opening { | |||
| -webkit-animation-name: remodal-overlay-opening-keyframes; | |||
| animation-name: remodal-overlay-opening-keyframes; | |||
| } | |||
| .remodal-overlay.remodal-is-closing { | |||
| -webkit-animation-name: remodal-overlay-closing-keyframes; | |||
| animation-name: remodal-overlay-closing-keyframes; | |||
| } | |||
| /* Default theme styles of the wrapper */ | |||
| .remodal-wrapper { | |||
| padding: 10px 10px 0; | |||
| } | |||
| /* Default theme styles of the modal dialog */ | |||
| .remodal { | |||
| box-sizing: border-box; | |||
| width: 100%; | |||
| margin-bottom: 10px; | |||
| padding: 35px; | |||
| -webkit-transform: translate3d(0, 0, 0); | |||
| transform: translate3d(0, 0, 0); | |||
| color: #2b2e38; | |||
| background: #fff; | |||
| } | |||
| .remodal.remodal-is-opening, | |||
| .remodal.remodal-is-closing { | |||
| -webkit-animation-duration: 0.3s; | |||
| animation-duration: 0.3s; | |||
| -webkit-animation-fill-mode: forwards; | |||
| animation-fill-mode: forwards; | |||
| } | |||
| .remodal.remodal-is-opening { | |||
| -webkit-animation-name: remodal-opening-keyframes; | |||
| animation-name: remodal-opening-keyframes; | |||
| } | |||
| .remodal.remodal-is-closing { | |||
| -webkit-animation-name: remodal-closing-keyframes; | |||
| animation-name: remodal-closing-keyframes; | |||
| } | |||
| /* Vertical align of the modal dialog */ | |||
| .remodal, | |||
| .remodal-wrapper:after { | |||
| vertical-align: middle; | |||
| } | |||
| /* Close button */ | |||
| .remodal-close { | |||
| position: absolute; | |||
| top: 0; | |||
| left: 0; | |||
| display: block; | |||
| overflow: visible; | |||
| width: 35px; | |||
| height: 35px; | |||
| margin: 0; | |||
| padding: 0; | |||
| cursor: pointer; | |||
| -webkit-transition: color 0.2s; | |||
| transition: color 0.2s; | |||
| text-decoration: none; | |||
| color: #95979c; | |||
| border: 0; | |||
| outline: 0; | |||
| background: transparent; | |||
| } | |||
| .remodal-close:hover, | |||
| .remodal-close:focus { | |||
| color: #2b2e38; | |||
| } | |||
| .remodal-close:before { | |||
| font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important; | |||
| font-size: 25px; | |||
| line-height: 35px; | |||
| position: absolute; | |||
| top: 0; | |||
| left: 0; | |||
| display: block; | |||
| width: 35px; | |||
| content: "\00d7"; | |||
| text-align: center; | |||
| } | |||
| /* Dialog buttons */ | |||
| .remodal-confirm, | |||
| .remodal-cancel { | |||
| font: inherit; | |||
| display: inline-block; | |||
| overflow: visible; | |||
| min-width: 110px; | |||
| margin: 0; | |||
| padding: 12px 0; | |||
| cursor: pointer; | |||
| -webkit-transition: background 0.2s; | |||
| transition: background 0.2s; | |||
| text-align: center; | |||
| vertical-align: middle; | |||
| text-decoration: none; | |||
| border: 0; | |||
| outline: 0; | |||
| } | |||
| .remodal-confirm { | |||
| color: #fff; | |||
| background: #81c784; | |||
| } | |||
| .remodal-confirm:hover, | |||
| .remodal-confirm:focus { | |||
| background: #66bb6a; | |||
| } | |||
| .remodal-cancel { | |||
| color: #fff; | |||
| background: #e57373; | |||
| } | |||
| .remodal-cancel:hover, | |||
| .remodal-cancel:focus { | |||
| background: #ef5350; | |||
| } | |||
| /* Remove inner padding and border in Firefox 4+ for the button tag. */ | |||
| .remodal-confirm::-moz-focus-inner, | |||
| .remodal-cancel::-moz-focus-inner, | |||
| .remodal-close::-moz-focus-inner { | |||
| padding: 0; | |||
| border: 0; | |||
| } | |||
| /* Keyframes | |||
| ========================================================================== */ | |||
| @-webkit-keyframes remodal-opening-keyframes { | |||
| from { | |||
| -webkit-transform: scale(1.05); | |||
| transform: scale(1.05); | |||
| opacity: 0; | |||
| } | |||
| to { | |||
| -webkit-transform: none; | |||
| transform: none; | |||
| opacity: 1; | |||
| -webkit-filter: blur(0); | |||
| filter: blur(0); | |||
| } | |||
| } | |||
| @keyframes remodal-opening-keyframes { | |||
| from { | |||
| -webkit-transform: scale(1.05); | |||
| transform: scale(1.05); | |||
| opacity: 0; | |||
| } | |||
| to { | |||
| -webkit-transform: none; | |||
| transform: none; | |||
| opacity: 1; | |||
| -webkit-filter: blur(0); | |||
| filter: blur(0); | |||
| } | |||
| } | |||
| @-webkit-keyframes remodal-closing-keyframes { | |||
| from { | |||
| -webkit-transform: scale(1); | |||
| transform: scale(1); | |||
| opacity: 1; | |||
| } | |||
| to { | |||
| -webkit-transform: scale(0.95); | |||
| transform: scale(0.95); | |||
| opacity: 0; | |||
| -webkit-filter: blur(0); | |||
| filter: blur(0); | |||
| } | |||
| } | |||
| @keyframes remodal-closing-keyframes { | |||
| from { | |||
| -webkit-transform: scale(1); | |||
| transform: scale(1); | |||
| opacity: 1; | |||
| } | |||
| to { | |||
| -webkit-transform: scale(0.95); | |||
| transform: scale(0.95); | |||
| opacity: 0; | |||
| -webkit-filter: blur(0); | |||
| filter: blur(0); | |||
| } | |||
| } | |||
| @-webkit-keyframes remodal-overlay-opening-keyframes { | |||
| from { | |||
| opacity: 0; | |||
| } | |||
| to { | |||
| opacity: 1; | |||
| } | |||
| } | |||
| @keyframes remodal-overlay-opening-keyframes { | |||
| from { | |||
| opacity: 0; | |||
| } | |||
| to { | |||
| opacity: 1; | |||
| } | |||
| } | |||
| @-webkit-keyframes remodal-overlay-closing-keyframes { | |||
| from { | |||
| opacity: 1; | |||
| } | |||
| to { | |||
| opacity: 0; | |||
| } | |||
| } | |||
| @keyframes remodal-overlay-closing-keyframes { | |||
| from { | |||
| opacity: 1; | |||
| } | |||
| to { | |||
| opacity: 0; | |||
| } | |||
| } | |||
| /* Media queries | |||
| ========================================================================== */ | |||
| @media only screen and (min-width: 641px) { | |||
| .remodal { | |||
| max-width: 700px; | |||
| } | |||
| } | |||
| /* IE8 | |||
| ========================================================================== */ | |||
| .lt-ie9 .remodal-overlay { | |||
| background: #2b2e38; | |||
| } | |||
| .lt-ie9 .remodal { | |||
| width: 700px; | |||
| } | |||
| @ -0,0 +1,93 @@ | |||
| /* | |||
| * Remodal - v1.1.1 | |||
| * Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking. | |||
| * http://vodkabears.github.io/remodal/ | |||
| * | |||
| * Made by Ilya Makarov | |||
| * Under MIT License | |||
| */ | |||
| /* ========================================================================== | |||
| Remodal's necessary styles | |||
| ========================================================================== */ | |||
| /* Hide scroll bar */ | |||
| html.remodal-is-locked { | |||
| overflow: hidden; | |||
| -ms-touch-action: none; | |||
| touch-action: none; | |||
| } | |||
| /* Anti FOUC */ | |||
| .remodal, | |||
| [data-remodal-id] { | |||
| display: none; | |||
| } | |||
| /* Necessary styles of the overlay */ | |||
| .remodal-overlay { | |||
| position: fixed; | |||
| z-index: 9999; | |||
| top: -5000px; | |||
| right: -5000px; | |||
| bottom: -5000px; | |||
| left: -5000px; | |||
| display: none; | |||
| } | |||
| /* Necessary styles of the wrapper */ | |||
| .remodal-wrapper { | |||
| position: fixed; | |||
| z-index: 10000; | |||
| top: 0; | |||
| right: 0; | |||
| bottom: 0; | |||
| left: 0; | |||
| display: none; | |||
| overflow: auto; | |||
| text-align: center; | |||
| -webkit-overflow-scrolling: touch; | |||
| } | |||
| .remodal-wrapper:after { | |||
| display: inline-block; | |||
| height: 100%; | |||
| margin-left: -0.05em; | |||
| content: ""; | |||
| } | |||
| /* Fix iPad, iPhone glitches */ | |||
| .remodal-overlay, | |||
| .remodal-wrapper { | |||
| -webkit-backface-visibility: hidden; | |||
| backface-visibility: hidden; | |||
| } | |||
| /* Necessary styles of the modal dialog */ | |||
| .remodal { | |||
| position: relative; | |||
| outline: none; | |||
| -webkit-text-size-adjust: 100%; | |||
| -ms-text-size-adjust: 100%; | |||
| text-size-adjust: 100%; | |||
| } | |||
| .remodal-is-initialized { | |||
| /* Disable Anti-FOUC */ | |||
| display: inline-block; | |||
| } | |||
| @ -0,0 +1,785 @@ | |||
| /* | |||
| * Remodal - v1.1.1 | |||
| * Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking. | |||
| * http://vodkabears.github.io/remodal/ | |||
| * | |||
| * Made by Ilya Makarov | |||
| * Under MIT License | |||
| */ | |||
| !(function(root, factory) { | |||
| if (typeof define === 'function' && define.amd) { | |||
| define(['jquery'], function($) { | |||
| return factory(root, $); | |||
| }); | |||
| } else if (typeof exports === 'object') { | |||
| factory(root, require('jquery')); | |||
| } else { | |||
| factory(root, root.jQuery || root.Zepto); | |||
| } | |||
| })(this, function(global, $) { | |||
| 'use strict'; | |||
| /** | |||
| * Name of the plugin | |||
| * @private | |||
| * @const | |||
| * @type {String} | |||
| */ | |||
| var PLUGIN_NAME = 'remodal'; | |||
| /** | |||
| * Namespace for CSS and events | |||
| * @private | |||
| * @const | |||
| * @type {String} | |||
| */ | |||
| var NAMESPACE = global.REMODAL_GLOBALS && global.REMODAL_GLOBALS.NAMESPACE || PLUGIN_NAME; | |||
| /** | |||
| * Animationstart event with vendor prefixes | |||
| * @private | |||
| * @const | |||
| * @type {String} | |||
| */ | |||
| var ANIMATIONSTART_EVENTS = $.map( | |||
| ['animationstart', 'webkitAnimationStart', 'MSAnimationStart', 'oAnimationStart'], | |||
| function(eventName) { | |||
| return eventName + '.' + NAMESPACE; | |||
| } | |||
| ).join(' '); | |||
| /** | |||
| * Animationend event with vendor prefixes | |||
| * @private | |||
| * @const | |||
| * @type {String} | |||
| */ | |||
| var ANIMATIONEND_EVENTS = $.map( | |||
| ['animationend', 'webkitAnimationEnd', 'MSAnimationEnd', 'oAnimationEnd'], | |||
| function(eventName) { | |||
| return eventName + '.' + NAMESPACE; | |||
| } | |||
| ).join(' '); | |||
| /** | |||
| * Default settings | |||
| * @private | |||
| * @const | |||
| * @type {Object} | |||
| */ | |||
| var DEFAULTS = $.extend({ | |||
| hashTracking: true, | |||
| closeOnConfirm: true, | |||
| closeOnCancel: true, | |||
| closeOnEscape: true, | |||
| closeOnOutsideClick: true, | |||
| modifier: '', | |||
| appendTo: null | |||
| }, global.REMODAL_GLOBALS && global.REMODAL_GLOBALS.DEFAULTS); | |||
| /** | |||
| * States of the Remodal | |||
| * @private | |||
| * @const | |||
| * @enum {String} | |||
| */ | |||
| var STATES = { | |||
| CLOSING: 'closing', | |||
| CLOSED: 'closed', | |||
| OPENING: 'opening', | |||
| OPENED: 'opened' | |||
| }; | |||
| /** | |||
| * Reasons of the state change. | |||
| * @private | |||
| * @const | |||
| * @enum {String} | |||
| */ | |||
| var STATE_CHANGE_REASONS = { | |||
| CONFIRMATION: 'confirmation', | |||
| CANCELLATION: 'cancellation' | |||
| }; | |||
| /** | |||
| * Is animation supported? | |||
| * @private | |||
| * @const | |||
| * @type {Boolean} | |||
| */ | |||
| var IS_ANIMATION = (function() { | |||
| var style = document.createElement('div').style; | |||
| return style.animationName !== undefined || | |||
| style.WebkitAnimationName !== undefined || | |||
| style.MozAnimationName !== undefined || | |||
| style.msAnimationName !== undefined || | |||
| style.OAnimationName !== undefined; | |||
| })(); | |||
| /** | |||
| * Is iOS? | |||
| * @private | |||
| * @const | |||
| * @type {Boolean} | |||
| */ | |||
| var IS_IOS = /iPad|iPhone|iPod/.test(navigator.platform); | |||
| /** | |||
| * Current modal | |||
| * @private | |||
| * @type {Remodal} | |||
| */ | |||
| var current; | |||
| /** | |||
| * Scrollbar position | |||
| * @private | |||
| * @type {Number} | |||
| */ | |||
| var scrollTop; | |||
| /** | |||
| * Returns an animation duration | |||
| * @private | |||
| * @param {jQuery} $elem | |||
| * @returns {Number} | |||
| */ | |||
| function getAnimationDuration($elem) { | |||
| if ( | |||
| IS_ANIMATION && | |||
| $elem.css('animation-name') === 'none' && | |||
| $elem.css('-webkit-animation-name') === 'none' && | |||
| $elem.css('-moz-animation-name') === 'none' && | |||
| $elem.css('-o-animation-name') === 'none' && | |||
| $elem.css('-ms-animation-name') === 'none' | |||
| ) { | |||
| return 0; | |||
| } | |||
| var duration = $elem.css('animation-duration') || | |||
| $elem.css('-webkit-animation-duration') || | |||
| $elem.css('-moz-animation-duration') || | |||
| $elem.css('-o-animation-duration') || | |||
| $elem.css('-ms-animation-duration') || | |||
| '0s'; | |||
| var delay = $elem.css('animation-delay') || | |||
| $elem.css('-webkit-animation-delay') || | |||
| $elem.css('-moz-animation-delay') || | |||
| $elem.css('-o-animation-delay') || | |||
| $elem.css('-ms-animation-delay') || | |||
| '0s'; | |||
| var iterationCount = $elem.css('animation-iteration-count') || | |||
| $elem.css('-webkit-animation-iteration-count') || | |||
| $elem.css('-moz-animation-iteration-count') || | |||
| $elem.css('-o-animation-iteration-count') || | |||
| $elem.css('-ms-animation-iteration-count') || | |||
| '1'; | |||
| var max; | |||
| var len; | |||
| var num; | |||
| var i; | |||
| duration = duration.split(', '); | |||
| delay = delay.split(', '); | |||
| iterationCount = iterationCount.split(', '); | |||
| // The 'duration' size is the same as the 'delay' size | |||
| for (i = 0, len = duration.length, max = Number.NEGATIVE_INFINITY; i < len; i++) { | |||
| num = parseFloat(duration[i]) * parseInt(iterationCount[i], 10) + parseFloat(delay[i]); | |||
| if (num > max) { | |||
| max = num; | |||
| } | |||
| } | |||
| return max; | |||
| } | |||
| /** | |||
| * Returns a scrollbar width | |||
| * @private | |||
| * @returns {Number} | |||
| */ | |||
| function getScrollbarWidth() { | |||
| if ($(document).height() <= $(window).height()) { | |||
| return 0; | |||
| } | |||
| var outer = document.createElement('div'); | |||
| var inner = document.createElement('div'); | |||
| var widthNoScroll; | |||
| var widthWithScroll; | |||
| outer.style.visibility = 'hidden'; | |||
| outer.style.width = '100px'; | |||
| document.body.appendChild(outer); | |||
| widthNoScroll = outer.offsetWidth; | |||
| // Force scrollbars | |||
| outer.style.overflow = 'scroll'; | |||
| // Add inner div | |||
| inner.style.width = '100%'; | |||
| outer.appendChild(inner); | |||
| widthWithScroll = inner.offsetWidth; | |||
| // Remove divs | |||
| outer.parentNode.removeChild(outer); | |||
| return widthNoScroll - widthWithScroll; | |||
| } | |||
| /** | |||
| * Locks the screen | |||
| * @private | |||
| */ | |||
| function lockScreen() { | |||
| if (IS_IOS) { | |||
| return; | |||
| } | |||
| var $html = $('html'); | |||
| var lockedClass = namespacify('is-locked'); | |||
| var paddingRight; | |||
| var $body; | |||
| if (!$html.hasClass(lockedClass)) { | |||
| $body = $(document.body); | |||
| // Zepto does not support '-=', '+=' in the `css` method | |||
| paddingRight = parseInt($body.css('padding-right'), 10) + getScrollbarWidth(); | |||
| $body.css('padding-right', paddingRight + 'px'); | |||
| $html.addClass(lockedClass); | |||
| } | |||
| } | |||
| /** | |||
| * Unlocks the screen | |||
| * @private | |||
| */ | |||
| function unlockScreen() { | |||
| if (IS_IOS) { | |||
| return; | |||
| } | |||
| var $html = $('html'); | |||
| var lockedClass = namespacify('is-locked'); | |||
| var paddingRight; | |||
| var $body; | |||
| if ($html.hasClass(lockedClass)) { | |||
| $body = $(document.body); | |||
| // Zepto does not support '-=', '+=' in the `css` method | |||
| paddingRight = parseInt($body.css('padding-right'), 10) - getScrollbarWidth(); | |||
| $body.css('padding-right', paddingRight + 'px'); | |||
| $html.removeClass(lockedClass); | |||
| } | |||
| } | |||
| /** | |||
| * Sets a state for an instance | |||
| * @private | |||
| * @param {Remodal} instance | |||
| * @param {STATES} state | |||
| * @param {Boolean} isSilent If true, Remodal does not trigger events | |||
| * @param {String} Reason of a state change. | |||
| */ | |||
| function setState(instance, state, isSilent, reason) { | |||
| var newState = namespacify('is', state); | |||
| var allStates = [namespacify('is', STATES.CLOSING), | |||
| namespacify('is', STATES.OPENING), | |||
| namespacify('is', STATES.CLOSED), | |||
| namespacify('is', STATES.OPENED)].join(' '); | |||
| instance.$bg | |||
| .removeClass(allStates) | |||
| .addClass(newState); | |||
| instance.$overlay | |||
| .removeClass(allStates) | |||
| .addClass(newState); | |||
| instance.$wrapper | |||
| .removeClass(allStates) | |||
| .addClass(newState); | |||
| instance.$modal | |||
| .removeClass(allStates) | |||
| .addClass(newState); | |||
| instance.state = state; | |||
| !isSilent && instance.$modal.trigger({ | |||
| type: state, | |||
| reason: reason | |||
| }, [{ reason: reason }]); | |||
| } | |||
| /** | |||
| * Synchronizes with the animation | |||
| * @param {Function} doBeforeAnimation | |||
| * @param {Function} doAfterAnimation | |||
| * @param {Remodal} instance | |||
| */ | |||
| function syncWithAnimation(doBeforeAnimation, doAfterAnimation, instance) { | |||
| var runningAnimationsCount = 0; | |||
| var handleAnimationStart = function(e) { | |||
| if (e.target !== this) { | |||
| return; | |||
| } | |||
| runningAnimationsCount++; | |||
| }; | |||
| var handleAnimationEnd = function(e) { | |||
| if (e.target !== this) { | |||
| return; | |||
| } | |||
| if (--runningAnimationsCount === 0) { | |||
| // Remove event listeners | |||
| $.each(['$bg', '$overlay', '$wrapper', '$modal'], function(index, elemName) { | |||
| instance[elemName].off(ANIMATIONSTART_EVENTS + ' ' + ANIMATIONEND_EVENTS); | |||
| }); | |||
| doAfterAnimation(); | |||
| } | |||
| }; | |||
| $.each(['$bg', '$overlay', '$wrapper', '$modal'], function(index, elemName) { | |||
| instance[elemName] | |||
| .on(ANIMATIONSTART_EVENTS, handleAnimationStart) | |||
| .on(ANIMATIONEND_EVENTS, handleAnimationEnd); | |||
| }); | |||
| doBeforeAnimation(); | |||
| // If the animation is not supported by a browser or its duration is 0 | |||
| if ( | |||
| getAnimationDuration(instance.$bg) === 0 && | |||
| getAnimationDuration(instance.$overlay) === 0 && | |||
| getAnimationDuration(instance.$wrapper) === 0 && | |||
| getAnimationDuration(instance.$modal) === 0 | |||
| ) { | |||
| // Remove event listeners | |||
| $.each(['$bg', '$overlay', '$wrapper', '$modal'], function(index, elemName) { | |||
| instance[elemName].off(ANIMATIONSTART_EVENTS + ' ' + ANIMATIONEND_EVENTS); | |||
| }); | |||
| doAfterAnimation(); | |||
| } | |||
| } | |||
| /** | |||
| * Closes immediately | |||
| * @private | |||
| * @param {Remodal} instance | |||
| */ | |||
| function halt(instance) { | |||
| if (instance.state === STATES.CLOSED) { | |||
| return; | |||
| } | |||
| $.each(['$bg', '$overlay', '$wrapper', '$modal'], function(index, elemName) { | |||
| instance[elemName].off(ANIMATIONSTART_EVENTS + ' ' + ANIMATIONEND_EVENTS); | |||
| }); | |||
| instance.$bg.removeClass(instance.settings.modifier); | |||
| instance.$overlay.removeClass(instance.settings.modifier).hide(); | |||
| instance.$wrapper.hide(); | |||
| unlockScreen(); | |||
| setState(instance, STATES.CLOSED, true); | |||
| } | |||
| /** | |||
| * Parses a string with options | |||
| * @private | |||
| * @param str | |||
| * @returns {Object} | |||
| */ | |||
| function parseOptions(str) { | |||
| var obj = {}; | |||
| var arr; | |||
| var len; | |||
| var val; | |||
| var i; | |||
| // Remove spaces before and after delimiters | |||
| str = str.replace(/\s*:\s*/g, ':').replace(/\s*,\s*/g, ','); | |||
| // Parse a string | |||
| arr = str.split(','); | |||
| for (i = 0, len = arr.length; i < len; i++) { | |||
| arr[i] = arr[i].split(':'); | |||
| val = arr[i][1]; | |||
| // Convert a string value if it is like a boolean | |||
| if (typeof val === 'string' || val instanceof String) { | |||
| val = val === 'true' || (val === 'false' ? false : val); | |||
| } | |||
| // Convert a string value if it is like a number | |||
| if (typeof val === 'string' || val instanceof String) { | |||
| val = !isNaN(val) ? +val : val; | |||
| } | |||
| obj[arr[i][0]] = val; | |||
| } | |||
| return obj; | |||
| } | |||
| /** | |||
| * Generates a string separated by dashes and prefixed with NAMESPACE | |||
| * @private | |||
| * @param {...String} | |||
| * @returns {String} | |||
| */ | |||
| function namespacify() { | |||
| var result = NAMESPACE; | |||
| for (var i = 0; i < arguments.length; ++i) { | |||
| result += '-' + arguments[i]; | |||
| } | |||
| return result; | |||
| } | |||
| /** | |||
| * Handles the hashchange event | |||
| * @private | |||
| * @listens hashchange | |||
| */ | |||
| function handleHashChangeEvent() { | |||
| var id = location.hash.replace('#', ''); | |||
| var instance; | |||
| var $elem; | |||
| if (!id) { | |||
| // Check if we have currently opened modal and animation was completed | |||
| if (current && current.state === STATES.OPENED && current.settings.hashTracking) { | |||
| current.close(); | |||
| } | |||
| } else { | |||
| // Catch syntax error if your hash is bad | |||
| try { | |||
| $elem = $( | |||
| '[data-' + PLUGIN_NAME + '-id="' + id + '"]' | |||
| ); | |||
| } catch (err) {} | |||
| if ($elem && $elem.length) { | |||
| instance = $[PLUGIN_NAME].lookup[$elem.data(PLUGIN_NAME)]; | |||
| if (instance && instance.settings.hashTracking) { | |||
| instance.open(); | |||
| } | |||
| } | |||
| } | |||
| } | |||
| /** | |||
| * Remodal constructor | |||
| * @constructor | |||
| * @param {jQuery} $modal | |||
| * @param {Object} options | |||
| */ | |||
| function Remodal($modal, options) { | |||
| var $body = $(document.body); | |||
| var $appendTo = $body; | |||
| var remodal = this; | |||
| remodal.settings = $.extend({}, DEFAULTS, options); | |||
| remodal.index = $[PLUGIN_NAME].lookup.push(remodal) - 1; | |||
| remodal.state = STATES.CLOSED; | |||
| remodal.$overlay = $('.' + namespacify('overlay')); | |||
| if (remodal.settings.appendTo !== null && remodal.settings.appendTo.length) { | |||
| $appendTo = $(remodal.settings.appendTo); | |||
| } | |||
| if (!remodal.$overlay.length) { | |||
| remodal.$overlay = $('<div>').addClass(namespacify('overlay') + ' ' + namespacify('is', STATES.CLOSED)).hide(); | |||
| $appendTo.append(remodal.$overlay); | |||
| } | |||
| remodal.$bg = $('.' + namespacify('bg')).addClass(namespacify('is', STATES.CLOSED)); | |||
| remodal.$modal = $modal | |||
| .addClass( | |||
| NAMESPACE + ' ' + | |||
| namespacify('is-initialized') + ' ' + | |||
| remodal.settings.modifier + ' ' + | |||
| namespacify('is', STATES.CLOSED)) | |||
| .attr('tabindex', '-1'); | |||
| remodal.$wrapper = $('<div>') | |||
| .addClass( | |||
| namespacify('wrapper') + ' ' + | |||
| remodal.settings.modifier + ' ' + | |||
| namespacify('is', STATES.CLOSED)) | |||
| .hide() | |||
| .append(remodal.$modal); | |||
| $appendTo.append(remodal.$wrapper); | |||
| // Add the event listener for the close button | |||
| remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + PLUGIN_NAME + '-action="close"]', function(e) { | |||
| e.preventDefault(); | |||
| remodal.close(); | |||
| }); | |||
| // Add the event listener for the cancel button | |||
| remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + PLUGIN_NAME + '-action="cancel"]', function(e) { | |||
| e.preventDefault(); | |||
| remodal.$modal.trigger(STATE_CHANGE_REASONS.CANCELLATION); | |||
| if (remodal.settings.closeOnCancel) { | |||
| remodal.close(STATE_CHANGE_REASONS.CANCELLATION); | |||
| } | |||
| }); | |||
| // Add the event listener for the confirm button | |||
| remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + PLUGIN_NAME + '-action="confirm"]', function(e) { | |||
| e.preventDefault(); | |||
| remodal.$modal.trigger(STATE_CHANGE_REASONS.CONFIRMATION); | |||
| if (remodal.settings.closeOnConfirm) { | |||
| remodal.close(STATE_CHANGE_REASONS.CONFIRMATION); | |||
| } | |||
| }); | |||
| // Add the event listener for the overlay | |||
| remodal.$wrapper.on('click.' + NAMESPACE, function(e) { | |||
| var $target = $(e.target); | |||
| if (!$target.hasClass(namespacify('wrapper'))) { | |||
| return; | |||
| } | |||
| if (remodal.settings.closeOnOutsideClick) { | |||
| remodal.close(); | |||
| } | |||
| }); | |||
| } | |||
| /** | |||
| * Opens a modal window | |||
| * @public | |||
| */ | |||
| Remodal.prototype.open = function() { | |||
| var remodal = this; | |||
| var id; | |||
| // Check if the animation was completed | |||
| if (remodal.state === STATES.OPENING || remodal.state === STATES.CLOSING) { | |||
| return; | |||
| } | |||
| id = remodal.$modal.attr('data-' + PLUGIN_NAME + '-id'); | |||
| if (id && remodal.settings.hashTracking) { | |||
| scrollTop = $(window).scrollTop(); | |||
| location.hash = id; | |||
| } | |||
| if (current && current !== remodal) { | |||
| halt(current); | |||
| } | |||
| current = remodal; | |||
| lockScreen(); | |||
| remodal.$bg.addClass(remodal.settings.modifier); | |||
| remodal.$overlay.addClass(remodal.settings.modifier).show(); | |||
| remodal.$wrapper.show().scrollTop(0); | |||
| remodal.$modal.focus(); | |||
| syncWithAnimation( | |||
| function() { | |||
| setState(remodal, STATES.OPENING); | |||
| }, | |||
| function() { | |||
| setState(remodal, STATES.OPENED); | |||
| }, | |||
| remodal); | |||
| }; | |||
| /** | |||
| * Closes a modal window | |||
| * @public | |||
| * @param {String} reason | |||
| */ | |||
| Remodal.prototype.close = function(reason) { | |||
| var remodal = this; | |||
| // Check if the animation was completed | |||
| if (remodal.state === STATES.OPENING || remodal.state === STATES.CLOSING || remodal.state === STATES.CLOSED) { | |||
| return; | |||
| } | |||
| if ( | |||
| remodal.settings.hashTracking && | |||
| remodal.$modal.attr('data-' + PLUGIN_NAME + '-id') === location.hash.substr(1) | |||
| ) { | |||
| location.hash = ''; | |||
| $(window).scrollTop(scrollTop); | |||
| } | |||
| syncWithAnimation( | |||
| function() { | |||
| setState(remodal, STATES.CLOSING, false, reason); | |||
| }, | |||
| function() { | |||
| remodal.$bg.removeClass(remodal.settings.modifier); | |||
| remodal.$overlay.removeClass(remodal.settings.modifier).hide(); | |||
| remodal.$wrapper.hide(); | |||
| unlockScreen(); | |||
| setState(remodal, STATES.CLOSED, false, reason); | |||
| }, | |||
| remodal); | |||
| }; | |||
| /** | |||
| * Returns a current state of a modal | |||
| * @public | |||
| * @returns {STATES} | |||
| */ | |||
| Remodal.prototype.getState = function() { | |||
| return this.state; | |||
| }; | |||
| /** | |||
| * Destroys a modal | |||
| * @public | |||
| */ | |||
| Remodal.prototype.destroy = function() { | |||
| var lookup = $[PLUGIN_NAME].lookup; | |||
| var instanceCount; | |||
| halt(this); | |||
| this.$wrapper.remove(); | |||
| delete lookup[this.index]; | |||
| instanceCount = $.grep(lookup, function(instance) { | |||
| return !!instance; | |||
| }).length; | |||
| if (instanceCount === 0) { | |||
| this.$overlay.remove(); | |||
| this.$bg.removeClass( | |||
| namespacify('is', STATES.CLOSING) + ' ' + | |||
| namespacify('is', STATES.OPENING) + ' ' + | |||
| namespacify('is', STATES.CLOSED) + ' ' + | |||
| namespacify('is', STATES.OPENED)); | |||
| } | |||
| }; | |||
| /** | |||
| * Special plugin object for instances | |||
| * @public | |||
| * @type {Object} | |||
| */ | |||
| $[PLUGIN_NAME] = { | |||
| lookup: [] | |||
| }; | |||
| /** | |||
| * Plugin constructor | |||
| * @constructor | |||
| * @param {Object} options | |||
| * @returns {JQuery} | |||
| */ | |||
| $.fn[PLUGIN_NAME] = function(opts) { | |||
| var instance; | |||
| var $elem; | |||
| this.each(function(index, elem) { | |||
| $elem = $(elem); | |||
| if ($elem.data(PLUGIN_NAME) == null) { | |||
| instance = new Remodal($elem, opts); | |||
| $elem.data(PLUGIN_NAME, instance.index); | |||
| if ( | |||
| instance.settings.hashTracking && | |||
| $elem.attr('data-' + PLUGIN_NAME + '-id') === location.hash.substr(1) | |||
| ) { | |||
| instance.open(); | |||
| } | |||
| } else { | |||
| instance = $[PLUGIN_NAME].lookup[$elem.data(PLUGIN_NAME)]; | |||
| } | |||
| }); | |||
| return instance; | |||
| }; | |||
| $(document).ready(function() { | |||
| // data-remodal-target opens a modal window with the special Id | |||
| $(document).on('click', '[data-' + PLUGIN_NAME + '-target]', function(e) { | |||
| e.preventDefault(); | |||
| var elem = e.currentTarget; | |||
| var id = elem.getAttribute('data-' + PLUGIN_NAME + '-target'); | |||
| var $target = $('[data-' + PLUGIN_NAME + '-id="' + id + '"]'); | |||
| $[PLUGIN_NAME].lookup[$target.data(PLUGIN_NAME)].open(); | |||
| }); | |||
| // Auto initialization of modal windows | |||
| // They should have the 'remodal' class attribute | |||
| // Also you can write the `data-remodal-options` attribute to pass params into the modal | |||
| $(document).find('.' + NAMESPACE).each(function(i, container) { | |||
| var $container = $(container); | |||
| var options = $container.data(PLUGIN_NAME + '-options'); | |||
| if (!options) { | |||
| options = {}; | |||
| } else if (typeof options === 'string' || options instanceof String) { | |||
| options = parseOptions(options); | |||
| } | |||
| $container[PLUGIN_NAME](options); | |||
| }); | |||
| // Handles the keydown event | |||
| $(document).on('keydown.' + NAMESPACE, function(e) { | |||
| if (current && current.settings.closeOnEscape && current.state === STATES.OPENED && e.keyCode === 27) { | |||
| current.close(); | |||
| } | |||
| }); | |||
| // Handles the hashchange event | |||
| $(window).on('hashchange.' + NAMESPACE, handleHashChangeEvent); | |||
| }); | |||
| }); | |||