diff --git a/.github/workflows/helpers.js b/.github/workflows/helpers.js index b8b733eb0c..6734189d92 100644 --- a/.github/workflows/helpers.js +++ b/.github/workflows/helpers.js @@ -3,43 +3,62 @@ const owner = process.env.REPO_OWNER || ''; // example owner: adobecom const repo = process.env.REPO_NAME || ''; // example repo name: milo const auth = process.env.GH_TOKEN || ''; // https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens -const CURRENT_YEAR = 2024; const RCPDates = [ { - start: new Date('2024-05-26T00:00:00-07:00'), - end: new Date('2024-06-01T00:00:00-07:00'), + start: new Date('2024-12-12T11:00:00-08:00'), + end: new Date('2024-12-12T14:00:00-08:00'), }, { - start: new Date('2024-06-13T11:00:00-07:00'), - end: new Date('2024-06-13T14:00:00-07:00'), + start: new Date('2024-12-15T00:00:00-08:00'), + end: new Date('2025-01-02T00:00:00-08:00'), }, { - start: new Date('2024-06-30T00:00:00-07:00'), - end: new Date('2024-07-06T00:00:00-07:00'), + start: new Date('2025-02-23T00:00:00-08:00'), + end: new Date('2025-03-01T00:00:00-08:00'), }, { - start: new Date('2024-08-25T00:00:00-07:00'), - end: new Date('2024-08-31T00:00:00-07:00'), + start: new Date('2025-03-12T11:00:00-07:00'), + end: new Date('2025-03-12T14:00:00-07:00'), }, { - start: new Date('2024-09-12T11:00:00-07:00'), - end: new Date('2024-09-12T14:00:00-07:00'), + start: new Date('2025-03-17T00:00:00-07:00'), + end: new Date('2025-03-20T17:00:00-07:00'), }, { - start: new Date('2024-10-07T00:00:00-07:00'), - end: new Date('2024-10-18T17:00:00-07:00'), + start: new Date('2025-05-25T00:00:00-07:00'), + end: new Date('2025-05-31T00:00:00-07:00'), }, { - start: new Date('2024-11-17T00:00:00-08:00'), - end: new Date('2024-11-30T00:00:00-08:00'), + start: new Date('2025-06-12T11:00:00-07:00'), + end: new Date('2025-06-12T14:00:00-07:00'), }, { - start: new Date('2024-12-12T11:00:00-08:00'), - end: new Date('2024-12-12T14:00:00-08:00'), + start: new Date('2025-06-29T00:00:00-07:00'), + end: new Date('2025-07-05T00:00:00-07:00'), }, { - start: new Date('2024-12-15T00:00:00-08:00'), - end: new Date('2025-01-02T00:00:00-08:00'), + start: new Date('2025-08-24T00:00:00-07:00'), + end: new Date('2025-08-30T00:00:00-07:00'), + }, + { + start: new Date('2025-09-11T11:00:00-07:00'), + end: new Date('2025-09-11T14:00:00-07:00'), + }, + { + start: new Date('2025-10-06T00:00:00-07:00'), + end: new Date('2025-10-16T17:00:00-07:00'), + }, + { + start: new Date('2025-11-16T00:00:00-08:00'), + end: new Date('2025-11-29T00:00:00-08:00'), + }, + { + start: new Date('2025-12-10T11:00:00-08:00'), + end: new Date('2025-12-10T14:00:00-08:00'), + }, + { + start: new Date('2025-12-14T00:00:00-08:00'), + end: new Date('2026-01-04T00:00:00-08:00'), }, ]; @@ -49,8 +68,9 @@ const isShortRCP = (start, end) => { const isWithinRCP = ({ offset = 0, excludeShortRCP = false } = {}) => { const now = new Date(); - if (now.getFullYear() !== CURRENT_YEAR) { - console.log(`ADD NEW RCPs for ${CURRENT_YEAR + 1}`); + const lastRcpDate = RCPDates.reverse()[0]; + if (now > lastRcpDate.end) { + console.log('ADD NEW RCPs for the current year'); return true; } diff --git a/.github/workflows/update-dependencies.yaml b/.github/workflows/update-dependencies.yaml index a6cc0aaf32..0e7cfe7f59 100644 --- a/.github/workflows/update-dependencies.yaml +++ b/.github/workflows/update-dependencies.yaml @@ -13,7 +13,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Update file and create PR if needed + - name: Update ims lib and create PR if needed uses: actions/github-script@v7 with: script: | @@ -26,5 +26,18 @@ jobs: branch: 'update-imslib', scriptPath: './libs/deps/imslib.min.js' }) + - name: Update forms2 and create PR if needed + uses: actions/github-script@v7 + with: + script: | + const updateDependency = require('./.github/workflows/update-script.js') + updateDependency({ + github, + context, + title: '[AUTOMATED-PR] Update forms2.min.js dependency', + path: 'https://engage.adobe.com/js/forms2/js/forms2.min.js', + branch: 'update-forms2', + scriptPath: './libs/deps/forms2.min.js' + }) env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update-script.js b/.github/workflows/update-script.js index c50dafa93e..69c4ffca8f 100644 --- a/.github/workflows/update-script.js +++ b/.github/workflows/update-script.js @@ -17,41 +17,67 @@ const localRunConfigs = { origin: process.env.LOCAL_RUN_ORIGIN || 'origin', }; -const getPrDescription = ({ branch, scriptPath }) => `## Description -Update ${scriptPath} to the latest version - -## Related Issue -Resolves: NO TICKET - AUTOMATED CREATED PR. - -## Testing instructions -1. Signing in should still function -2. Signing out should still work -3. Regression tests on all consumers - -## Test URLs -**Acrobat:** -- Before: https://www.stage.adobe.com/acrobat/online/sign-pdf.html?martech=off -- After: https://www.stage.adobe.com/acrobat/online/sign-pdf.html?martech=off&milolibs=${branch}--milo--adobecom - -**BACOM:** -- Before: https://business.stage.adobe.com/fr/customer-success-stories.html?martech=off -- After: https://business.stage.adobe.com/fr/customer-success-stories.html?martech=off&milolibs=${branch}--milo--adobecom - -**CC:** -- Before: https://main--cc--adobecom.hlx.live/?martech=off -- After: https://main--cc--adobecom.hlx.live/?martech=off&milolibs=${branch}--milo--adobecom - -**Homepage:** -- Before: https://main--homepage--adobecom.hlx.page/homepage/index-loggedout?martech=off -- After: https://main--homepage--adobecom.hlx.page/homepage/index-loggedout?martech=off&milolibs=${branch}--milo--adobecom - -**Blog:** -- Before: https://main--blog--adobecom.hlx.page/?martech=off -- After: https://main--blog--adobecom.hlx.page/?martech=off&milolibs=${branch}--milo--adobecom - -**Milo:** -- Before: https://main--milo--adobecom.aem.page/ch_de/drafts/ramuntea/gnav-refactor?martech=off -- After: https://${branch}--milo--adobecom.aem.page/ch_de/drafts/ramuntea/gnav-refactor?martech=off`; +const getPrDescription = ({ branch, scriptPath }) => { + switch(scriptPath) { + case './libs/deps/imslib.min.js': + return `## Description + Update ${scriptPath} to the latest version + + ## Related Issue + Resolves: NO TICKET - AUTOMATED CREATED PR. + + ## Testing instructions - IMS Libs + 1. Signing in should still function + 2. Signing out should still work + 3. Regression tests on all consumers + + ## Test URLs - IMS + **Acrobat:** + - Before: https://www.stage.adobe.com/acrobat/online/sign-pdf.html?martech=off + - After: https://www.stage.adobe.com/acrobat/online/sign-pdf.html?martech=off&milolibs=${branch}--milo--adobecom + + **BACOM:** + - Before: https://business.stage.adobe.com/fr/customer-success-stories.html?martech=off + - After: https://business.stage.adobe.com/fr/customer-success-stories.html?martech=off&milolibs=${branch}--milo--adobecom + + **CC:** + - Before: https://main--cc--adobecom.hlx.live/?martech=off + - After: https://main--cc--adobecom.hlx.live/?martech=off&milolibs=${branch}--milo--adobecom + + **Homepage:** + - Before: https://main--homepage--adobecom.hlx.page/homepage/index-loggedout?martech=off + - After: https://main--homepage--adobecom.hlx.page/homepage/index-loggedout?martech=off&milolibs=${branch}--milo--adobecom + + **Blog:** + - Before: https://main--blog--adobecom.hlx.page/?martech=off + - After: https://main--blog--adobecom.hlx.page/?martech=off&milolibs=${branch}--milo--adobecom + + **Milo:** + - Before: https://main--milo--adobecom.aem.page/ch_de/drafts/ramuntea/gnav-refactor?martech=off + - After: https://${branch}--milo--adobecom.aem.page/ch_de/drafts/ramuntea/gnav-refactor?martech=off` + case './libs/deps/forms2.min.js': + return `## Description + Update ${scriptPath} to the latest version + + ## Related Issue + Resolves: NO TICKET - AUTOMATED CREATED PR. + + ## Testing instructions - Marketo Forms + 1. The form should still load + 2. The form should still submit + 3. The form should redirect you a new page + + ## Test URLs - Marketo + + **BACOM:** + - Before: https://business.stage.adobe.com?martech=off + - After: https://business.stage.adobe.com?martech=off&milolibs=${branch}--milo--adobecom + + **Milo:** + - Before: https://main--milo--adobecom.hlx.live/drafts/bmarshal/marketo/full + - After: https://${branch}--milo--adobecom.hlx.live/drafts/bmarshal/marketo/full` + } +} const fetchScript = (path) => new Promise((resolve, reject) => { diff --git a/libs/blocks/carousel/carousel.css b/libs/blocks/carousel/carousel.css index 08bffdf704..1039022afb 100644 --- a/libs/blocks/carousel/carousel.css +++ b/libs/blocks/carousel/carousel.css @@ -373,36 +373,38 @@ html[dir="rtl"] .carousel-slides .section.carousel-slide { width: unset; } -.carousel.rounded-corners .carousel-slide, -.carousel.rounded-corners .carousel-slide > div :is(p):has(> picture) img { +.carousel:is(.rounded-corners, .m-rounded-corners) .carousel-slide, +.carousel:is(.rounded-corners, .m-rounded-corners) .carousel-slide > div :is(p > picture img, p > video, p > .milo-video, p > .video-holder video) { border-radius: var(--m-rounded-corners); } -.carousel.l-rounded-corners .carousel-slide, -.carousel.l-rounded-corners .carousel-slide > div :is(p):has(> picture) img { - border-radius: var(--l-rounded-corners); +.carousel[class*='rounded-corners'] .carousel-slide, +.carousel[class*='rounded-corners'] .carousel-slide > div :is(p > video, p > .milo-video, p > .video-holder video) { + overflow: hidden; } .carousel.s-rounded-corners .carousel-slide, -.carousel.s-rounded-corners .carousel-slide > div :is(p):has(> picture) img { +.carousel.s-rounded-corners .carousel-slide > div :is(p > picture img, p > video, p > .milo-video, p > .video-holder video) { border-radius: var(--s-rounded-corners); } -.carousel.full-rounded-corners .carousel-slide, -.carousel.full-rounded-corners .carousel-slide > div :is(p):has(> picture) img { - border-radius: var(--full-rounded-corners); +.carousel.l-rounded-corners .carousel-slide, +.carousel.l-rounded-corners .carousel-slide > div :is(p > picture img, p > video, p > .milo-video, p > .video-holder video) { + border-radius: var(--l-rounded-corners); } -.carousel[class*='rounded-corners'] .carousel-slide { - overflow: hidden; +.carousel.full-rounded-corners .carousel-slide, +.carousel.full-rounded-corners .carousel-slide > div :is(p > picture img, p > video, p > .milo-video, p > .video-holder video) { + border-radius: var(--full-rounded-corners); } -.carousel .carousel-slide > div p :is(.video-holder, video) { +.carousel.video-fill .carousel-slide > div p :is(.video-holder, video), +.carousel .carousel-slide.video-fill > div p :is(.video-holder, video) { width: 100%; height: auto; } -.carousel[class*='rounded-corners'] .carousel-slide > div :is(p):has(> video, > picture, > .milo-video, > .modal-img-link) { +.carousel[class*='rounded-corners'] .carousel-slide > div :is(p):has(> video, > picture, > .milo-video, > .modal-img-link, > .video-holder) { margin-top: 0; margin-bottom: 0; line-height: 0; diff --git a/libs/blocks/marketo/marketo.js b/libs/blocks/marketo/marketo.js index a91fa2ee6d..bb3e8fc414 100644 --- a/libs/blocks/marketo/marketo.js +++ b/libs/blocks/marketo/marketo.js @@ -19,6 +19,7 @@ import { loadLink, localizeLink, createTag, + getConfig, createIntersectionObserver, SLD, } from '../../utils/utils.js'; @@ -173,8 +174,9 @@ export const loadMarketo = (el, formData) => { const baseURL = formData[BASE_URL]; const munchkinID = formData[MUNCHKIN_ID]; const formID = formData[FORM_ID]; + const { base } = getConfig(); - loadScript(`https://${baseURL}/js/forms2/js/forms2.min.js`) + loadScript(`${base}/deps/forms2.min.js`) .then(() => { const { MktoForms2 } = window; if (!MktoForms2) throw new Error('Marketo forms not loaded'); diff --git a/libs/blocks/merch/merch.js b/libs/blocks/merch/merch.js index 73afd8b8eb..744e1825a9 100644 --- a/libs/blocks/merch/merch.js +++ b/libs/blocks/merch/merch.js @@ -512,6 +512,14 @@ export function setCtaHash(el, checkoutLinkConfig, offerType) { return hash; } +const isProdModal = (url) => { + try { + return (new URL(url)).hostname.endsWith('.adobe.com'); + } catch (e) { + return false; + } +}; + export async function getModalAction(offers, options, el) { const [{ offerType, @@ -529,7 +537,7 @@ export async function getModalAction(offers, options, el) { const hash = setCtaHash(el, checkoutLinkConfig, offerType); let url = checkoutLinkConfig[columnName]; if (!url) return undefined; - url = isInternalModal(url) + url = isInternalModal(url) || isProdModal(url) ? localizeLink(checkoutLinkConfig[columnName]) : checkoutLinkConfig[columnName]; return { url, handler: (e) => openModal(e, url, offerType, hash, options.extraOptions) }; } diff --git a/libs/blocks/mmm/mmm.css b/libs/blocks/mmm/mmm.css new file mode 100644 index 0000000000..9ee9086170 --- /dev/null +++ b/libs/blocks/mmm/mmm.css @@ -0,0 +1,467 @@ +@import '../../styles/inline.css'; + +.mmm-container { + padding: var(--spacing-m) 0; +} + +div.mmm { + display: none; +} + +dl.mmm { + margin: 0 auto; + max-width: var(--grid-container-width); + border-bottom: 1px solid var(--color-gray-500); +} + +.mmm-container.no-borders dl.mmm { + border: none; +} + +.mmm dd { + margin: 0; + padding: var(--spacing-xs); + font-size: var(--type-body-s-size); + line-height: var(--type-body-s-lh); + background: #eee; +} + +.mmm dt button { + align-items: center; + background: none; + border: 1px solid var(--color-gray-500); + border-width: 1px 0 0; + color: var(--text-color); + display: flex; + font-family: var(--body-font-family); + font-size: var(--type-heading-xs-size); + font-weight: 700; + line-height: var(--type-heading-s-lh); + padding: var(--spacing-s) var(--spacing-m) var(--spacing-s) var(--spacing-xs); + position: relative; + text-align: start; + width: 100%; + -webkit-text-size-adjust: 100%; +} + +.mmm dt button:hover { + cursor: pointer; + color: var(--color-black); +} + +.mmm-container dt button h5 { + word-wrap: break-word; + display: inline-block; + width: calc(100% - 30px); +} + +.mmm-container.no-borders .mmm dt button { + border: none; +} + +.mmm dt .mmm-heading { + margin: 0; +} + +.mmm dt .mmm-heading h5 { + margin: 0; +} + +.mmm-icon { + position: absolute; + right: var(--spacing-xs); + top: 50%; + margin-top: -6px; + width: 12px; + height: 12px; + pointer-events: none; +} + +html[dir="rtl"] .mmm-icon { + right: unset; + left: var(--spacing-xs); +} + +.mmm-icon::before, +.mmm-icon::after { + content: ""; + display: block; + position: absolute; + width: 2px; + height: 12px; + background: var(--color-gray-600); + border-radius: 2px; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; + transition: all .2s ease; +} + +.mmm-icon::after { + width: 12px; + height: 2px; +} + +.mmm dt button::before { + content: ""; + display: block; + position: absolute; + width: 2px; + height: 100%; + left: 0; + top: 0; + background-color: transparent; +} + +.mmm dt button[aria-expanded="true"]::before { + background-color: var(--link-color-dark); +} + +.quiet .mmm dt button[aria-expanded="true"]::before { + display: none; +} + +.mmm dt button[aria-expanded="true"] .mmm-icon::before, +.mmm dt button[aria-expanded="true"] .mmm-icon::after { + transform: rotate(90deg); +} + +.mmm dt button[aria-expanded="true"] .mmm-icon::after { + opacity: 0; +} + +.mmm dt button:hover .mmm-icon::before, +.mmm dt button:hover .mmm-icon::after { + background: var(--color-black); +} + +.mmm dt button:focus, +.mmm dt button:hover, +.mmm dt button[aria-expanded="true"] { + background: #00000005; +} + +.mmm dd p:first-child { + margin-top: 0; +} + +/* dark */ +.dark .mmm dt button, +.darkest .mmm dt button { + color: #fff; +} + +.dark dl.mmm { + border-bottom-color: var(--color-gray-600); +} + +.dark .mmm dt button { + border-top-color: var(--color-gray-600); +} + +.dark .mmm dt button:focus, +.dark .mmm dt button:hover, +.dark .mmm dt button[aria-expanded="true"] { + background: #00000060; +} + +.dark .mmm dt button:hover .mmm-icon::before, +.dark .mmm dt button:hover .mmm-icon::after { + background: var(--color-gray-100); +} + +html[dir="rtl"] .mmm dt button { + padding: var(--spacing-s) var(--spacing-xs) var(--spacing-s) var(--spacing-m); +} + +html[dir="rtl"] .mmm dt button::before { + right: 0; +} + +.section[class*='-up'] dl.mmm { + max-width: unset; +} + +/* Editorial Variation */ +.mmm-media { + display: none; +} + +.mmm-media > div { + position: relative; + display: none; + animation-duration: 1s; + animation-name: fade-in; +} + + +@keyframes fade-in { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +.mmm-media > div.expanded, +.mmm-media > div.expanded > img { + display: inline; + position: relative; + height: 525px; + max-height: 525px; + max-width: 700px; + width: auto; +} + +div.media-p { + width: 268px; + padding: 0; +} + +dd .mep-popup-header .mep-close { + display: none; +} +@media screen and (min-width: 1200px) { + .editorial { + display: flex; + gap: 54px; + align-items: center; + justify-content: center; + } + + .editorial .mmm { + width: 50%; + display: inline-block; + margin: 0; + } + + .media-p { + display: none; + } + + .mmm-media { + width: 700px; + height: 525px; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + margin: 0; + } +} + +.mmm-container .filter-hide { + display: none; +} + +.mmm-form-container { + display: flex; + justify-content: center; + gap: var(--spacing-s); + margin: var(--spacing-m) auto 0; + width: 800px; + flex-flow: row nowrap; + max-width: 80vw; +} +.mmm-form-container > div { + flex: 1; +} +.mmm-form-container label { + margin-right: var(--spacing-xxs); + display: block; + font-size: var(--type-body-xs-size); +} +.mmm-form-container input, +.mmm-form-container select { + width: 100%; + padding: var(--spacing-xxs); + font-size: var(--type-body-xs-size); + padding-inline-start: 12px; + box-sizing: border-box; +} + +.loading { + width: 100px; + margin: 0 auto; +} +#mmm-shareButtonContainer { + position: absolute; + top: 0; + right: 0; +} +@media screen and (min-width: 1199px) { + .mmm-form-container { + flex-flow: row nowrap; + } + #mmm-dropdown-sub-container { + display: flex; + gap: var(--spacing-s); + } + #mmm-dropdown-container { + flex: 0 0 50%; + } + #mmm-search-query-container { + max-width: 700px; + } + #mmm-shareButtonContainer { + right: 100px; + } + #mmm-dropdown-container > div > div { + flex: 1; + } +} + + +.mmm-form-container > div.share-mmm { + margin-left: auto; + margin-right: auto; + text-align: center; + padding-top: 10px; + flex: 0; + display: flex; + align-items: flex-start; +} + +.share-mmm svg.icon { + height: 28px; + transition: filter 0.3s; + display: inline-block; + width: 28px; + margin: 0; + color: #adadad; +} + +.share-mmm a svg.icon:hover { + filter: brightness(0.7); +} + +.share-mmm p.icon-container, +.share-mmm p.icon-container a { + display: flex; + align-items: center; + padding-bottom: 0; + justify-content: center; +} + +.share-mmm p { + padding-bottom: 8px; +} + +.share-mmm p.icon-container svg { + color: #adadad; +} + +.share-mmm p.icon-container > a:not(:first-child) { + margin-inline-start: 18px; +} + +.share-mmm .copy-to-clipboard { + padding: 0; + background: none; + margin: 0; + line-height: 0; + cursor: pointer; + position: relative; + transition: filter 0.3s; + border-radius: 4px; + border: 2px solid transparent; + outline: none; + margin-inline-start: 16px; +} + +.share-mmm .copy-to-clipboard:focus-visible { + border: 2px solid black; +} + +.share-mmm .copy-to-clipboard:hover svg { + filter: brightness(0.7); +} + +.share-mmm .copy-to-clipboard::before { + content: attr(data-copy-to-clipboard); + display: block; + pointer-events: none; + position : absolute; + bottom: 100%; + left: 50%; + transform: translate(-50%, -4px); + opacity: 0; + visibility: hidden; + transition: transform 130ms ease-in-out, opacity 130ms ease-in-out, visibility 0ms linear 130ms; + background-color: #6d6d6d; + color: #fff; + padding: 4px 9px 5px; + font-size: 12px; + line-height: 1.3; + border-radius: 4px; + white-space: nowrap; +} + +.share-mmm .copy-to-clipboard::after { + content: ''; + display: block; + pointer-events: none; + position : absolute; + bottom: 100%; + left: 50%; + transform: translate(-50%, 0); + opacity: 0; + visibility: hidden; + transition: transform 130ms ease-in-out, opacity 130ms ease-in-out, visibility 0ms linear 130ms; + height: 4px; + width: 8px; + background-color: #6d6d6d; + clip-path: polygon(0 -5%, 50% 100%, 100% -5%); +} + +.share-mmm .copy-to-clipboard:hover::before, +.share-mmm .copy-to-clipboard:focus::before, +.share-mmm .copy-to-clipboard:hover::after, +.share-mmm .copy-to-clipboard:focus::after { + visibility: visible; + opacity: 1; + transition-delay: 0ms; +} + +.share-mmm .copy-to-clipboard:hover::before, +.share-mmm .copy-to-clipboard:focus::before { + transform: translate(-50%, -6px); +} + +.share-mmm .copy-to-clipboard:hover::after, +.share-mmm .copy-to-clipboard:focus::after { + transform: translate(-50%, -2px); +} + +.share-mmm .copy-to-clipboard.copy-to-clipboard-copied::before { + content: attr(data-copied); +} + +.share-mmm.inline { + margin: 0 auto; + text-align: center; + padding: 8px 0 16px; +} + +.share-mmm.inline p.icon-container { + justify-content: flex-start; + margin: 0; +} + +main > .section > .share-mmm.inline { + margin: 0 auto; +} + +main > .section > .inline-wrapper > .share-mmm.inline { + margin-top: 0; + margin-bottom: 0; +} + +main > .section.center .share-mmm.inline p.icon-container { + margin: 0 auto; + justify-content: center; +} diff --git a/libs/blocks/mmm/mmm.js b/libs/blocks/mmm/mmm.js new file mode 100644 index 0000000000..f1f0e3fbf9 --- /dev/null +++ b/libs/blocks/mmm/mmm.js @@ -0,0 +1,239 @@ +import { createTag, loadStyle } from '../../utils/utils.js'; +import { fetchData, DATA_TYPE } from '../../features/personalization/personalization.js'; +import { getMepPopup, API_URLS } from '../../features/personalization/preview.js'; + +async function toggleDrawer(target, dd) { + const el = target.closest('button'); + const expanded = el.getAttribute('aria-expanded') === 'true'; + if (expanded) { + el.setAttribute('aria-expanded', 'false'); + dd.setAttribute('hidden', ''); + } else { + document.querySelectorAll('dd:not([hidden])').forEach((openDd) => { + openDd.setAttribute('hidden', ''); + }); + document.querySelectorAll('dt button[aria-expanded="true"]').forEach((openButton) => { + openButton.setAttribute('aria-expanded', 'false'); + }); + el.setAttribute('aria-expanded', 'true'); + dd.removeAttribute('hidden'); + const loading = dd.querySelector('.loading'); + if (dd.classList.contains('placeholder-resolved') || !loading) return; + const { pageId } = dd.dataset; + const pageData = await fetchData(`${API_URLS.pageDetails}${pageId}`, DATA_TYPE.JSON); + loading.replaceWith(getMepPopup(pageData, true)); + dd.classList.add('placeholder-resolved'); + } +} +function createButtonDetailsPair(mmmEl, page) { + const { url, pageId } = page; + const triggerId = `mmm-trigger-${pageId}`; + const panelId = `mmm-content-${pageId}`; + const icon = createTag('span', { class: 'mmm-icon' }); + const hTag = createTag('h5', false, url); + const button = createTag('button', { + type: 'button', + id: triggerId, + class: 'mmm-trigger tracking-header', + 'aria-expanded': 'false', + 'aria-controls': panelId, + }, hTag); + button.append(icon); + + const dtHtml = hTag ? createTag(hTag.tagName, { class: 'mmm-heading' }, button) : button; + const dt = createTag('dt', false, dtHtml); + const loading = createTag( + 'div', + { class: 'loading' }, + ` + + + + + + + + + + `, + ); + const dd = createTag('dd', { id: panelId, hidden: true }, loading); + Object.keys(page).forEach((key) => { + const val = page[key] || 'us'; + dt.dataset[key] = val; + dd.dataset[key] = val; + }); + button.addEventListener('click', (e) => { toggleDrawer(e.target, dd, pageId, 'mmm'); }); + mmmEl.append(dt, dd); +} +function filterPageList() { + const mmmEntries = document.querySelectorAll('div.mmm-container > dl > *'); + const shareUrl = new URL(`${window.location.origin}${window.location.pathname}`); + const searchValues = {}; + document.querySelectorAll('.tabs input, .tabs select').forEach((field) => { + const id = field.getAttribute('id').split('-').pop(); + const { value, tagName } = field; + searchValues[id] = { + value, + tagName, + }; + if (value) shareUrl.searchParams.set(id, value); + }); + const selectedRadio = document.querySelector('.tab-list-container button[aria-selected="true"]'); + const filterType = selectedRadio?.getAttribute('id') === 'tab-mmm-options-2' ? 'search' : 'filter'; + if (filterType === 'search') shareUrl.searchParams.set('tab', 'mmm-options-2'); + document.querySelectorAll('button.copy-to-clipboard').forEach((button) => { + button.dataset.destination = shareUrl.href; + }); + + mmmEntries.forEach((entry) => { + const data = entry.dataset; + entry.classList.remove('filter-hide'); + if (filterType === 'search') { + if (!data.url.includes(searchValues.query.value)) entry.classList.add('filter-hide'); + return; + } + Object.keys(searchValues).forEach((key) => { + const { value, tagName } = searchValues[key]; + if (tagName !== 'SELECT') return; + const inputVal = data[key]; + if (value && !value.split(',').some((val) => inputVal === val)) { + entry.classList.add('filter-hide'); + } + }); + }); +} +function parseData(el) { + const data = {}; + const rows = el.querySelectorAll('div'); + let currentKey = ''; + rows.forEach((row) => { + const cols = row.querySelectorAll('div'); + if (cols.length < 2) return; + const val = cols[1].innerText.trim(); + let key = cols[0].innerText.toLowerCase().replace(/\s+/g, ''); + if (key.startsWith('menu')) { + key = key.split(':')[1].trim(); + currentKey = key; + data[key] = { + label: val, + options: {}, + }; + return; + } + if (data[currentKey]) data[currentKey].options[key] = val; + }); + return data; +} +function createShareButton() { + const div = createTag( + 'div', + { class: 'share-mmm' }, + ); + const p = createTag('p', { class: 'icon-container' }); + div.append(p); + const buttonLabel = 'Copy link to these search settings'; + const button = createTag( + 'button', + { + type: 'button', + class: 'copy-to-clipboard', + 'aria-label': buttonLabel, + 'data-copy-to-clipboard': buttonLabel, + 'data-copied': 'Copied!', + }, + ` + + `, + ); + p.append(button); + button.addEventListener('click', (e) => { + /* c8 ignore start */ + e.preventDefault(); + navigator.clipboard.writeText(button.dataset.destination).then(() => { + button.classList.add('copy-to-clipboard-copied'); + setTimeout(() => document.activeElement.blur(), 500); + setTimeout( + () => button.classList.remove('copy-to-clipboard-copied'), + 2000, + ); + }); + /* c8 ignore end */ + }); + return div; +} +function createDropdowns(data, sharedUrlSettings) { + const dropdownTab = document.querySelector('.section-metadata.dropdowns'); + const dropdownForm = createTag( + 'div', + { id: 'mmm-dropdown-container', class: 'mmm-form-container' }, + ); + dropdownTab.parentNode.append(dropdownForm); + const dropdownSubContainer = createTag('div', { id: 'mmm-dropdown-sub-container' }); + dropdownForm.append(dropdownSubContainer); + dropdownForm.append(createShareButton()); + Object.keys(data).forEach((key) => { + const { label, options } = data[key]; + const container = createTag('div'); + dropdownSubContainer.append(container); + container.append(createTag('label', { for: `mmm-dropdown-${key}` }, `${label}:`)); + const select = createTag('select', { id: `mmm-dropdown-${key}` }); + container.append(select); + select.append(createTag('option', { value: '' }, 'Show all')); + Object.keys(options).forEach((option) => { + const optionEl = createTag('option', { value: option }, options[option]); + select.append(optionEl); + const startingVal = sharedUrlSettings[key]; + if (startingVal === option) optionEl.setAttribute('selected', 'selected'); + }); + select.addEventListener('change', filterPageList); + }); +} +function createSearchField(data, sharedUrlSettings) { + const searchTab = document.querySelector('.section-metadata.search'); + const searchForm = createTag( + 'div', + { id: 'mmm-search-query-container', class: 'mmm-form-container' }, + `
+ + +
`, + ); + searchForm.append(createShareButton()); + searchTab.parentNode.insertBefore(searchForm, searchTab); + const searchField = searchForm.querySelector('input'); + if (sharedUrlSettings.query) searchField.value = sharedUrlSettings.query; + searchField.addEventListener('keyup', filterPageList); + searchField.addEventListener('change', filterPageList); +} +async function createForm(el) { + const data = parseData(el); + const urlParams = new URLSearchParams(window.location.search); + const sharedUrlSettings = Object.fromEntries(urlParams.entries()); + createSearchField(data, sharedUrlSettings); + createDropdowns(data, sharedUrlSettings); + document.querySelectorAll('.tab-list-container button').forEach((button) => { + button.addEventListener('click', filterPageList); + }); +} +async function createPageList(el) { + const mmmElContainer = createTag('div', { class: 'mmm-container max-width-12-desktop' }); + const mmmEl = createTag('dl', { + class: 'mmm foreground', + id: 'mmm', + role: 'presentation', + }); + mmmElContainer.append(mmmEl); + const pageList = await fetchData(API_URLS.pageList, DATA_TYPE.JSON); + pageList.map((page) => createButtonDetailsPair(mmmEl, page)); + const section = createTag('div', { id: 'mep-section', class: 'section' }); + const main = document.querySelector('main'); + el.replaceWith(mmmElContainer); + main.append(section); + filterPageList(); + loadStyle('/libs/features/personalization/preview.css'); +} +export default async function init(el) { + createForm(el); + createPageList(el); +} diff --git a/libs/blocks/table/table.css b/libs/blocks/table/table.css index d2476a42ce..19eb5beed9 100644 --- a/libs/blocks/table/table.css +++ b/libs/blocks/table/table.css @@ -360,7 +360,6 @@ width: 15px; height: 15px; cursor: pointer; - margin-inline: unset; } .table .section-head-title:hover .icon.expand { diff --git a/libs/blocks/text/text.css b/libs/blocks/text/text.css index f8cbefd365..6242f50132 100644 --- a/libs/blocks/text/text.css +++ b/libs/blocks/text/text.css @@ -100,7 +100,7 @@ position: relative; } -.text-block .icon-list-item .icon.node-index-first { +.text-block .icon-list-item .icon.margin-right:not(.margin-left) { /* target first node only */ position: absolute; inset: 0 100% auto auto; } @@ -122,6 +122,7 @@ .text-block .icon-area { display: flex; + column-gap: var(--spacing-xs); } .text-block p.icon-area { /* NOT tags with icons in them */ @@ -217,6 +218,10 @@ max-width: unset; } +.text-block .icon-area.con-button { + column-gap: unset; +} + .text-block .icon-area picture { line-height: 0em; height: inherit; /* Safari + FF bug fix */ diff --git a/libs/deps/forms2.min.js b/libs/deps/forms2.min.js new file mode 100644 index 0000000000..7814eea911 --- /dev/null +++ b/libs/deps/forms2.min.js @@ -0,0 +1,8 @@ +/*! forms2 2024-11-06 See forms2.js for license info */ +!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;gb?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof c?this.base64js={}:c)},{}],2:[function(a,b,c){(function(b){"use strict";function d(){function a(){}try{var b=new Uint8Array(1);return b.foo=function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(c){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){("string"!=typeof c||""===c)&&(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0);var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if($>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;fa)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(b>e||f>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(aa,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return W.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=a("base64-js"),X=a("ieee754"),Y=a("isarray");c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;var Z={};f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e&&a[e]===b[e];)++e;return e!==g&&(c=a[e],d=b[e]),d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},f.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=f._augment(this.subarray(a,b));else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-bc&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else a._set(this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}},f.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(f.TYPED_ARRAY_SUPPORT)return new f(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var _=f.prototype;f._augment=function(a){return a.constructor=f,a._isBuffer=!0,a._set=a.set,a.get=_.get,a.set=_.set,a.write=_.write,a.toString=_.toString,a.toLocaleString=_.toString,a.toJSON=_.toJSON,a.equals=_.equals,a.compare=_.compare,a.indexOf=_.indexOf,a.copy=_.copy,a.slice=_.slice,a.readUIntLE=_.readUIntLE,a.readUIntBE=_.readUIntBE,a.readUInt8=_.readUInt8,a.readUInt16LE=_.readUInt16LE,a.readUInt16BE=_.readUInt16BE,a.readUInt32LE=_.readUInt32LE,a.readUInt32BE=_.readUInt32BE,a.readIntLE=_.readIntLE,a.readIntBE=_.readIntBE,a.readInt8=_.readInt8,a.readInt16LE=_.readInt16LE,a.readInt16BE=_.readInt16BE,a.readInt32LE=_.readInt32LE,a.readInt32BE=_.readInt32BE,a.readFloatLE=_.readFloatLE,a.readFloatBE=_.readFloatBE,a.readDoubleLE=_.readDoubleLE,a.readDoubleBE=_.readDoubleBE,a.writeUInt8=_.writeUInt8,a.writeUIntLE=_.writeUIntLE,a.writeUIntBE=_.writeUIntBE,a.writeUInt16LE=_.writeUInt16LE,a.writeUInt16BE=_.writeUInt16BE,a.writeUInt32LE=_.writeUInt32LE,a.writeUInt32BE=_.writeUInt32BE,a.writeIntLE=_.writeIntLE,a.writeIntBE=_.writeIntBE,a.writeInt8=_.writeInt8,a.writeInt16LE=_.writeInt16LE,a.writeInt16BE=_.writeInt16BE,a.writeInt32LE=_.writeInt32LE,a.writeInt32BE=_.writeInt32BE,a.writeFloatLE=_.writeFloatLE,a.writeFloatBE=_.writeFloatBE,a.writeDoubleLE=_.writeDoubleLE,a.writeDoubleBE=_.writeDoubleBE,a.fill=_.fill,a.inspect=_.inspect,a.toArrayBuffer=_.toArrayBuffer,a};var aa=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":1,ieee754:6,isarray:3}],3:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],4:[function(a,b,c){var d=function(a,b,c){c=c||{};var d=c.encode||h,e=[a+"="+d(b)];return c.maxAge&&e.push("Max-Age="+c.maxAge),c.domain&&e.push("Domain="+c.domain),c.path&&e.push("Path="+c.path),c.expires&&e.push("Expires="+c.expires.toUTCString()),c.httpOnly&&e.push("HttpOnly"),c.secure&&e.push("Secure"),e.join("; ")},e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,f=function(a){return a.trim?a.trim():a.replace(e,"")},g=function(a,b){b=b||{};for(var c={},d=a.split(/[;,] */),e=b.decode||i,g=d.length,h=0;g>h;h++){var j=d[h],k=j.indexOf("=");if(!(0>k)){var l=f(j.substr(0,k)),m=f(j.substr(++k,j.length));if('"'==m[0]&&(m=m.slice(1,-1)),void 0==c[l])try{c[l]=e(m)}catch(n){c[l]=m}}}return c},h=encodeURIComponent,i=decodeURIComponent;b.exports.serialize=d,b.exports.parse=g},{}],5:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];for(j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f)}return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned){var c;c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())}return this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-->0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.listenerCount=function(a,b){var c;return c=a._events&&a._events[b]?e(a._events[b])?1:a._events[b].length:0}},{}],6:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],7:[function(a,b,c){"function"==typeof Object.create?b.exports=function(a,b){b&&(a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:b.exports=function(a,b){if(b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}}},{}],8:[function(a,b,c){b.exports=a("./jquery.build.js")},{"./jquery.build.js":9}],9:[function(a,b,c){!function(){var a=function(a,b){var c=!0;try{var d=b.createElement("button");d.type="button"}catch(e){c=!1}var f=b.createElement("style");f.type="text/css";var g=f.styleSheet&&"cssText"in f.styleSheet,h=b.createElement("div");h.innerHTML=" s ";var i=h.childNodes[0].nodeValue,j=0!=i.indexOf(" "),k=2!=i.lastIndexOf(" "),l=/'/g,m=/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,n=/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,o=/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/g,p=/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/g,q=/[\[\]]/g,r=function(a,c){j&&" "===c.charAt(0)&&a.appendChild(b.createTextNode(" ")),a.appendChild(b.createTextNode(c)),k&&" "===c.charAt(c.length-1)&&a.appendChild(b.createTextNode(" "))},s=function(b,c){if(c)if(c.jquery)b.appendChild(c.get(0));else if(1==c.nodeType||3==c.nodeType||11==c.nodeType)b.appendChild(c);else if(a.isArray(c)){var d=0,e=c.length;for(d=0;e>d;d++)s(b,c[d])}else r(b,c.toString())},t=function(c){var d=b.createDocumentFragment();if(c)if(a.isArray(c)){var e=0,f=c.length;for(e=0;f>e;e++)s(d,c[e])}else s(d,c);return d},u=function(a){var c=b.createDocumentFragment();if(a)if("undefined"!=typeof c.innerHTML)c.innerHTML=a;else{var d=b.createElement("div");for(d.innerHTML=a.replace(l,"'"),j&&0==a.indexOf(" ")&&c.appendChild(b.createTextNode(" "));d.hasChildNodes();)c.appendChild(d.firstChild);k&&a.lastIndexOf(" ")==a.length-1&&c.appendChild(b.createTextNode(" "))}return c};return a.build=function(d,e,f){2==arguments.length&&null!=e&&("string"==typeof e||a.isArray(e)||e.nodeType||e.jquery)&&(f=e,e=null),d=d||"";var h;h=d.match(m),h&&(h=h[0]);var i=null;if(-1!=d.indexOf("#")){var i=d.match(n);i=i?i[1]:null}var j;-1!=d.indexOf(".")&&(j=d.match(o));var k;-1!=d.indexOf("[")&&(k=d.match(p)),h=h||"div",k&&(e=e||{},a.each(k,function(a,b){var c=b.replace(q,"").split("=");c&&2==c.length&&(e[c[0]]=c[1])})),e=e||{};var l;if(c||"input"!==h&&"button"!==h)l=b.createElement(h);else{var r=e.type?'type="'+e.type+'"':"",s=e.name?'name="'+e.name+'"':"";l=b.createElement("<"+h+" "+r+" "+s+">"),delete e.type,delete e.name}var u=a(l);if(e&&u.attr(e),i&&(l.id=i),"img"===h&&(e.width||u.removeAttr("width"),e.height||u.removeAttr("height")),j){var v="";a.each(j,function(a,b){v+=b.replace(".","")+" "}),l.className=a.trim(l.className+" "+v)}return g&&"style"==h&&"string"==typeof f?(u.attr("type")||u.attr("type","text/css"),l.styleSheet.cssText=f):f&&(11==f.nodeType?l.appendChild(f):l.appendChild(t(f))),u},a.build.docFrag=t,a.build.html=u,a.build};"undefined"!=typeof b&&b.exports&&(b.exports=a),"undefined"!=typeof window&&window.jQuery&&window.document&&a(window.jQuery,window.document)}()},{}],10:[function(a,b,c){(function(a){!function(d){function e(a){throw RangeError(H[a])}function f(a,b){for(var c=a.length;c--;)a[c]=b(a[c]);return a}function g(a,b){return f(a.split(G),b).join(".")}function h(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:w}function k(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;q>f;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=t>=k?x:k>=t+y?y:k-t,!(n>m);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;q>i;++i)p=a[i],128>p&&u.push(K(p));for(d=f=u.length,f&&u.push(D);q>d;){for(j=v,i=0;q>i;++i)p=a[i],p>=b&&j>p&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;q>i;++i)if(p=a[i],b>p&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=g>=n?x:n>=g+y?y:n-g,!(o>m);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c,r="object"==typeof b&&b&&b.exports==q&&b,s="object"==typeof a&&a;(s.global===s||s.window===s)&&(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^ -~]/,G=/\x2E|\u3002|\uFF0E|\uFF61/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.2.4",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&!q.nodeType)if(r)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys); + var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],12:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;dh;){for(var i=g%d,j=Math.min(f-h,d-i),k=0;j>k;k++)c[i+k]=a[h+k];g+=j,h+=j,g%d===0&&this._update(c)}return this._len+=f,this},d.prototype.digest=function(a){var b=this._len%this._blockSize;this._block[b]=128,this._block.fill(0,b+1),b>=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(4294967295>=c)this._block.writeUInt32BE(c,this._blockSize-4);else{var d=(4294967295&c)>>>0,e=(c-d)/4294967296;this._block.writeUInt32BE(e,this._blockSize-8),this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);var f=this._hash();return a?f.toString(a):f},d.prototype._update=function(){throw new Error("_update must be implemented by subclass")},b.exports=d},{"safe-buffer":14}],16:[function(a,b,c){var c=b.exports=function(a){a=a.toLowerCase();var b=c[a];if(!b)throw new Error(a+" is not supported (we accept pull requests)");return new b};c.sha=a("./sha"),c.sha1=a("./sha1"),c.sha224=a("./sha224"),c.sha256=a("./sha256"),c.sha384=a("./sha384"),c.sha512=a("./sha512")},{"./sha":17,"./sha1":18,"./sha224":19,"./sha256":20,"./sha384":21,"./sha512":22}],17:[function(a,b,c){function d(){this.init(),this._w=l,i.call(this,64,56)}function e(a){return a<<5|a>>>27}function f(a){return a<<30|a>>>2}function g(a,b,c,d){return 0===a?b&c|~b&d:2===a?b&c|b&d|c&d:b^c^d}var h=a("inherits"),i=a("./hash"),j=a("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);h(d,i),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._a,d=0|this._b,h=0|this._c,i=0|this._d,j=0|this._e,l=0;16>l;++l)b[l]=a.readInt32BE(4*l);for(;80>l;++l)b[l]=b[l-3]^b[l-8]^b[l-14]^b[l-16];for(var m=0;80>m;++m){var n=~~(m/20),o=e(c)+g(n,d,h,i)+j+b[m]+k[n]|0;j=i,i=h,h=f(d),d=c,c=o}this._a=c+this._a|0,this._b=d+this._b|0,this._c=h+this._c|0,this._d=i+this._d|0,this._e=j+this._e|0},d.prototype._hash=function(){var a=j.allocUnsafe(20);return a.writeInt32BE(0|this._a,0),a.writeInt32BE(0|this._b,4),a.writeInt32BE(0|this._c,8),a.writeInt32BE(0|this._d,12),a.writeInt32BE(0|this._e,16),a},b.exports=d},{"./hash":15,inherits:7,"safe-buffer":14}],18:[function(a,b,c){function d(){this.init(),this._w=m,j.call(this,64,56)}function e(a){return a<<1|a>>>31}function f(a){return a<<5|a>>>27}function g(a){return a<<30|a>>>2}function h(a,b,c,d){return 0===a?b&c|~b&d:2===a?b&c|b&d|c&d:b^c^d}var i=a("inherits"),j=a("./hash"),k=a("safe-buffer").Buffer,l=[1518500249,1859775393,-1894007588,-899497514],m=new Array(80);i(d,j),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._a,d=0|this._b,i=0|this._c,j=0|this._d,k=0|this._e,m=0;16>m;++m)b[m]=a.readInt32BE(4*m);for(;80>m;++m)b[m]=e(b[m-3]^b[m-8]^b[m-14]^b[m-16]);for(var n=0;80>n;++n){var o=~~(n/20),p=f(c)+h(o,d,i,j)+k+b[n]+l[o]|0;k=j,j=i,i=g(d),d=c,c=p}this._a=c+this._a|0,this._b=d+this._b|0,this._c=i+this._c|0,this._d=j+this._d|0,this._e=k+this._e|0},d.prototype._hash=function(){var a=k.allocUnsafe(20);return a.writeInt32BE(0|this._a,0),a.writeInt32BE(0|this._b,4),a.writeInt32BE(0|this._c,8),a.writeInt32BE(0|this._d,12),a.writeInt32BE(0|this._e,16),a},b.exports=d},{"./hash":15,inherits:7,"safe-buffer":14}],19:[function(a,b,c){function d(){this.init(),this._w=i,g.call(this,64,56)}var e=a("inherits"),f=a("./sha256"),g=a("./hash"),h=a("safe-buffer").Buffer,i=new Array(64);e(d,f),d.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},d.prototype._hash=function(){var a=h.allocUnsafe(28);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a},b.exports=d},{"./hash":15,"./sha256":20,inherits:7,"safe-buffer":14}],20:[function(a,b,c){function d(){this.init(),this._w=o,l.call(this,64,56)}function e(a,b,c){return c^a&(b^c)}function f(a,b,c){return a&b|c&(a|b)}function g(a){return(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10)}function h(a){return(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7)}function i(a){return(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3}function j(a){return(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10}var k=a("inherits"),l=a("./hash"),m=a("safe-buffer").Buffer,n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);k(d,l),d.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._a,d=0|this._b,k=0|this._c,l=0|this._d,m=0|this._e,o=0|this._f,p=0|this._g,q=0|this._h,r=0;16>r;++r)b[r]=a.readInt32BE(4*r);for(;64>r;++r)b[r]=j(b[r-2])+b[r-7]+i(b[r-15])+b[r-16]|0;for(var s=0;64>s;++s){var t=q+h(m)+e(m,o,p)+n[s]+b[s]|0,u=g(c)+f(c,d,k)|0;q=p,p=o,o=m,m=l+t|0,l=k,k=d,d=c,c=t+u|0}this._a=c+this._a|0,this._b=d+this._b|0,this._c=k+this._c|0,this._d=l+this._d|0,this._e=m+this._e|0,this._f=o+this._f|0,this._g=p+this._g|0,this._h=q+this._h|0},d.prototype._hash=function(){var a=m.allocUnsafe(32);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a.writeInt32BE(this._h,28),a},b.exports=d},{"./hash":15,inherits:7,"safe-buffer":14}],21:[function(a,b,c){function d(){this.init(),this._w=i,g.call(this,128,112)}var e=a("inherits"),f=a("./sha512"),g=a("./hash"),h=a("safe-buffer").Buffer,i=new Array(160);e(d,f),d.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},d.prototype._hash=function(){function a(a,c,d){b.writeInt32BE(a,d),b.writeInt32BE(c,d+4)}var b=h.allocUnsafe(48);return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),b},b.exports=d},{"./hash":15,"./sha512":22,inherits:7,"safe-buffer":14}],22:[function(a,b,c){function d(){this.init(),this._w=r,o.call(this,128,112)}function e(a,b,c){return c^a&(b^c)}function f(a,b,c){return a&b|c&(a|b)}function g(a,b){return(a>>>28|b<<4)^(b>>>2|a<<30)^(b>>>7|a<<25)}function h(a,b){return(a>>>14|b<<18)^(a>>>18|b<<14)^(b>>>9|a<<23)}function i(a,b){return(a>>>1|b<<31)^(a>>>8|b<<24)^a>>>7}function j(a,b){return(a>>>1|b<<31)^(a>>>8|b<<24)^(a>>>7|b<<25)}function k(a,b){return(a>>>19|b<<13)^(b>>>29|a<<3)^a>>>6}function l(a,b){return(a>>>19|b<<13)^(b>>>29|a<<3)^(a>>>6|b<<26)}function m(a,b){return b>>>0>a>>>0?1:0}var n=a("inherits"),o=a("./hash"),p=a("safe-buffer").Buffer,q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],r=new Array(160);n(d,o),d.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},d.prototype._update=function(a){for(var b=this._w,c=0|this._ah,d=0|this._bh,n=0|this._ch,o=0|this._dh,p=0|this._eh,r=0|this._fh,s=0|this._gh,t=0|this._hh,u=0|this._al,v=0|this._bl,w=0|this._cl,x=0|this._dl,y=0|this._el,z=0|this._fl,A=0|this._gl,B=0|this._hl,C=0;32>C;C+=2)b[C]=a.readInt32BE(4*C),b[C+1]=a.readInt32BE(4*C+4);for(;160>C;C+=2){var D=b[C-30],E=b[C-30+1],F=i(D,E),G=j(E,D);D=b[C-4],E=b[C-4+1];var H=k(D,E),I=l(E,D),J=b[C-14],K=b[C-14+1],L=b[C-32],M=b[C-32+1],N=G+K|0,O=F+J+m(N,G)|0;N=N+I|0,O=O+H+m(N,I)|0,N=N+M|0,O=O+L+m(N,M)|0,b[C]=O,b[C+1]=N}for(var P=0;160>P;P+=2){O=b[P],N=b[P+1];var Q=f(c,d,n),R=f(u,v,w),S=g(c,u),T=g(u,c),U=h(p,y),V=h(y,p),W=q[P],X=q[P+1],Y=e(p,r,s),Z=e(y,z,A),$=B+V|0,_=t+U+m($,B)|0;$=$+Z|0,_=_+Y+m($,Z)|0,$=$+X|0,_=_+W+m($,X)|0,$=$+N|0,_=_+O+m($,N)|0;var aa=T+R|0,ba=S+Q+m(aa,T)|0;t=s,B=A,s=r,A=z,r=p,z=y,y=x+$|0,p=o+_+m(y,x)|0,o=n,x=w,n=d,w=v,d=c,v=u,u=$+aa|0,c=_+ba+m(u,$)|0}this._al=this._al+u|0,this._bl=this._bl+v|0,this._cl=this._cl+w|0,this._dl=this._dl+x|0,this._el=this._el+y|0,this._fl=this._fl+z|0,this._gl=this._gl+A|0,this._hl=this._hl+B|0,this._ah=this._ah+c+m(this._al,u)|0,this._bh=this._bh+d+m(this._bl,v)|0,this._ch=this._ch+n+m(this._cl,w)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+p+m(this._el,y)|0,this._fh=this._fh+r+m(this._fl,z)|0,this._gh=this._gh+s+m(this._gl,A)|0,this._hh=this._hh+t+m(this._hl,B)|0},d.prototype._hash=function(){function a(a,c,d){b.writeInt32BE(a,d),b.writeInt32BE(c,d+4)}var b=p.allocUnsafe(64);return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),a(this._gh,this._gl,48),a(this._hh,this._hl,56),b},b.exports=d},{"./hash":15,inherits:7,"safe-buffer":14}],23:[function(a,b,c){function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return i(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}function i(a){return"string"==typeof a}function j(a){return"object"==typeof a&&null!==a}function k(a){return null===a}function l(a){return null==a}var m=a("punycode");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,p=["<",">",'"',"`"," ","\r","\n"," "],q=["{","}","|","\\","^","`"].concat(p),r=["'"].concat(q),s=["%","/","?",";","#"].concat(r),t=["/","?","#"],u=255,v=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=a("querystring");d.prototype.parse=function(a,b,c){if(!i(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a;d=d.trim();var e=n.exec(d);if(e){e=e[0];var f=e.toLowerCase();this.protocol=f,d=d.substr(e.length)}if(c||e||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===d.substr(0,2);!g||e&&y[e]||(d=d.substr(2),this.slashes=!0)}if(!y[e]&&(g||e&&!z[e])){for(var h=-1,j=0;jk)&&(h=k)}var l,o;o=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==o&&(l=d.slice(0,o),d=d.slice(o+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;jk)&&(h=k)}-1===h&&(h=d.length),this.host=d.slice(0,h),d=d.slice(h),this.parseHost(),this.hostname=this.hostname||"";var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p)for(var q=this.hostname.split(/\./),j=0,B=q.length;B>j;j++){var C=q[j];if(C&&!C.match(v)){for(var D="",E=0,F=C.length;F>E;E++)D+=C.charCodeAt(E)>127?"x":C[E];if(!D.match(v)){var G=q.slice(0,j),H=q.slice(j+1),I=C.match(w);I&&(G.push(I[1]),H.unshift(I[2])),H.length&&(d="/"+H.join(".")+d),this.hostname=G.join(".");break}}}if(this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),!p){for(var J=this.hostname.split("."),K=[],j=0;jj;j++){var O=r[j],P=encodeURIComponent(O);P===O&&(P=escape(O)),d=d.split(O).join(P)}var Q=d.indexOf("#");-1!==Q&&(this.hash=d.substr(Q),d=d.slice(0,Q));var R=d.indexOf("?");if(-1!==R?(this.search=d.substr(R),this.query=d.substr(R+1),b&&(this.query=A.parse(this.query)),d=d.slice(0,R)):b&&(this.search="",this.query={}),d&&(this.pathname=d),z[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(f=A.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||z[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(i(a)){var b=new d;b.parse(a,!1,!0),a=b}var c=new d;if(Object.keys(this).forEach(function(a){c[a]=this[a]},this),c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol)return Object.keys(a).forEach(function(b){"protocol"!==b&&(c[b]=a[b])}),z[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c;if(a.protocol&&a.protocol!==c.protocol){if(!z[a.protocol])return Object.keys(a).forEach(function(b){c[b]=a[b]}),c.href=c.format(),c;if(c.protocol=a.protocol,a.host||y[a.protocol])c.pathname=a.pathname;else{for(var e=(a.pathname||"").split("/");e.length&&!(a.host=e.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),c.pathname=e.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var f=c.pathname||"",g=c.search||"";c.path=f+g}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var h=c.pathname&&"/"===c.pathname.charAt(0),j=a.host||a.pathname&&"/"===a.pathname.charAt(0),m=j||h||c.host&&a.pathname,n=m,o=c.pathname&&c.pathname.split("/")||[],e=a.pathname&&a.pathname.split("/")||[],p=c.protocol&&!z[c.protocol];if(p&&(c.hostname="",c.port=null,c.host&&(""===o[0]?o[0]=c.host:o.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===e[0]?e[0]=a.host:e.unshift(a.host)),a.host=null),m=m&&(""===e[0]||""===o[0])),j)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname||""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,o=e;else if(e.length)o||(o=[]),o.pop(),o=o.concat(e),c.search=a.search,c.query=a.query;else if(!l(a.search)){if(p){c.hostname=c.host=o.shift();var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return c.search=a.search,c.query=a.query,k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!o.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var r=o.slice(-1)[0],s=(c.host||a.host)&&("."===r||".."===r)||""===r,t=0,u=o.length;u>=0;u--)r=o[u],"."==r?o.splice(u,1):".."===r?(o.splice(u,1),t++):t&&(o.splice(u,1),t--);if(!m&&!n)for(;t--;t)o.unshift("..");!m||""===o[0]||o[0]&&"/"===o[0].charAt(0)||o.unshift(""),s&&"/"!==o.join("/").substr(-1)&&o.push("");var v=""===o[0]||o[0]&&"/"===o[0].charAt(0);if(p){c.hostname=c.host=v?"":o.length?o.shift():"";var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return m=m||c.host&&o.length,m&&!v&&o.unshift(""),o.length?c.pathname=o.join("/"):(c.pathname=null,c.path=null),k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=o.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{punycode:10,querystring:13}],24:[function(a,b,c){function d(a,b){var c={};return h.each(a,function(a,d){if("hidden"!=d.Datatype&&"profiling"!=d.Datatype){var e=d.VisibilityRule;if(e){if("fieldset"==d.Datatype&&Object.keys(b.fieldsetRows).length>0){var f=j.flatten(b.fieldsetRows[""+d.Id]),g=c[d.Name];g||(g=[]),g=g.concat(h.map(f,function(a){return a.Name})),c[d.Name]=g}var i=e.rules||[e];h.each(i,function(a,b){if("string"!=typeof b){var e=c[b.subjectField];e||(e=[]),-1===h.inArray(d.Name,e)&&e.push(d.Name),c[b.subjectField]=e}})}}}),c}function e(a,b){for(var c=a.length,d=0;c>d;d++){var e=a[d];if(b(e))return e}return void 0}function f(a,b){if(b&&(a.PicklistValues||b.picklistKeys||b.altLabel)){if(a=h.extend(!0,{},a),a.PicklistValues)if(b.picklistFilterValues){var c={};h.each(b.picklistFilterValues,function(a,b){c.hasOwnProperty(b.value)||(c[b.value]=[]),c[b.value].push(b.label)}),a.PicklistValues=h.map(a.PicklistValues,function(a){return c.hasOwnProperty(a.value)&&-1!=h.inArray(a.label,c[a.value])?a:void 0})}else b.picklistKeys&&(a.PicklistValues=h.map(a.PicklistValues,function(a){return-1!=h.inArray(a.value,b.picklistKeys)?a:void 0}));b.altLabel&&(a.InputLabel=b.altLabel)}return a}function g(a,b){if(!a)return{show:!0};var c="show"==a.defaultVisibility,d=a.rules||[a],f=h.map(d,function(a){if("string"!=typeof a){var c=b[a.subjectField];h.isArray(c)||(c=c?[c]:[]);var d=i[a.operator],e=d(c,a.values);return e?a:null}}),g=e(f,function(a){return null!==a});return c?{show:!g,rule:g}:{show:!!g,rule:g}}var h=a("./jquery.js"),i=a("./comparators.js"),j=a("./fields/fieldhelpers.js");b.exports={getChangeMap:d,fieldChangeChecker:g,applyPicklistAlterations:f}},{"./comparators.js":26,"./fields/fieldhelpers.js":30,"./jquery.js":45}],25:[function(a,b,c){function d(a){var b,c=parseInt;return a=(a||"").replace(/\s\s*/g,""),(b=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})/i.exec(a))?[c(b[1],16),c(b[2],16),c(b[3],16),1]:(b=/^#([\da-f])([\da-f])([\da-f])/i.exec(a))?[17*c(b[1],16),17*c(b[2],16),17*c(b[3],16),1]:(b=/^rgba\(([\d]+),([\d]+),([\d]+),([\d]+|[\d]*.[\d]+)\)/i.exec(a))?[+b[1],+b[2],+b[3],+b[4]]:(b=/^rgb\(([\d]+),([\d]+),([\d]+)\)/i.exec(a))?[+b[1],+b[2],+b[3],1]:null}function e(a,b){var c=d(a),e=d(b);if(!c||!e)return!1;for(var f=0;4>f;f++)if(c[f]!==e[f])return!1;return!0}b.exports={parseColor:d,compareColor:e}},{}],26:[function(a,b,c){var d=function(a,b,c){for(var d=[],e=0;e0},notEqual:function(a,b){var c=function(a,b){return a===b};return 0===d(a,b,c).length},empty:function(a,b){return 0===a.length},notEmpty:function(a,b){return a.length>0},any:function(a,b){return a.length>0},startsWith:function(a,b){var c=function(a,b){return 0===a.indexOf(b)};return d(a,b,c).length>0},notStartsWith:function(a,b){var c=function(a,b){return 0===a.indexOf(b)};return 0===d(a,b,c).length},endsWith:function(a,b){var c=function(a,b){return a.slice(-b.length)===b};return d(a,b,c).length>0},notEndsWith:function(a,b){var c=function(a,b){return a.slice(-b.length)===b};return 0===d(a,b,c).length},contains:function(a,b){var c=function(a,b){return a.match(new RegExp(b,"g"))};return d(a,b,c).length>0},notContains:function(a,b){var c=function(a,b){return a.match(new RegExp(b,"g"))};return 0===d(a,b,c).length},atLeast:function(a,b){return a[0]>=b[0]},atMost:function(a,b){return a[0]<=b[0]},greaterThan:function(a,b){return a[0]>b[0]},lessThan:function(a,b){return a[0]b[0]&&a[0]b[1]},inTimeFrame:function(a,b){return new Date(a[0])>new Date(b[0])&&new Date(a[0])new Date(b[1])},inPast:function(a,b){return new Date(a[0])=new Date},before:function(a,b){return new Date(a[0])new Date(b[0])},onOrBefore:function(a,b){return new Date(a[0])<=new Date(b[0])},onOrAfter:function(a,b){return new Date(a[0])>=new Date(b[0])}};b.exports=e},{}],27:[function(a,b,c){function d(a,b){b=b||location.hostname;var c=new Date;c.setFullYear(c.getFullYear()-1);var d=[];document.cookie=e.serialize(a,"",{expires:c,path:"/"}),d.push("");for(var f=b.split(".");f.length>1;){var g="."+f.join(".");document.cookie=e.serialize(a,"",{expires:c,path:"/",domain:g}),d.push(g),f.shift()}return d}var e=a("cookie");b.exports.removeCookieAllDomains=d},{cookie:4}],28:[function(a,b,c){var d=a("../jquery.js"),e=(d.build,a("./fieldHelpers.js")),f={};b.exports=f,f.fieldType="currency";var g=/[0-9]+/g,h=function(a){return a?a.match(g):!0};f.newField=function(a,b){var c=e.renderInput("text",a,b);return{name:a.Name,elem:e.formatStandardField(c,a,b),val:d.proxy(c.val,c),required:a.IsRequired,validator:h,validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":45,"./fieldHelpers.js":29}],29:[function(a,b,c){var d=a("../jquery.js"),e=d.build,f={};f.splitSemis=function(a){return a=""+a,a.split(/\s?;\s?/)},f.cap=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},f.first=function(){for(var a=0;aa?!1:h.isSet(c)&&a>c?!1:!0)}function f(a,b,c){return function(b){if(0===arguments.length){var c=a.val();if(h.isSet(c)){var d=parseFloat(c);return isNaN(d)?"":d}return null}a.val(b)}}var g=a("../jquery.js"),h=(g.build,a("./fieldHelpers.js")),g=a("../jquery.js"),h=(g.build,a("./fieldHelpers.js")),i={};b.exports=i,i.fieldType="number",i.newField=function(a,b){var c=h.renderInput("number",a,b);c.attr({min:d(a.MinimumNumber),max:d(a.MaximumNumber),step:d(a.StepNumber)});return{name:a.Name,val:f(c,a.MinimumNumber,a.MaximumNumber),elem:h.formatStandardField(c,a,b),required:a.IsRequired,validator:function(b){return e(b,a.MinimumNumber,a.MaximumNumber)},validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":45, + "./fieldHelpers.js":29}],35:[function(a,b,c){var d=a("../jquery.js"),e=d.build,f=a("./fieldHelpers.js"),g={};b.exports=g,g.fieldType="radio";var h=function(a){return function(b){if(0===arguments.length){var c=a.find("input:checked").val();return c}a.find("input").prop("checked",!1),""!==b?a.find("input[value='"+b+"']").prop("checked",!0):a.find("input").each(function(a,b){b=d(b),""===b.val()&&b.prop("checked",!0)})}};g.newField=function(a,b){var c=e(".mktoRadioList",{title:a.Description},[d.map(a.PicklistValues||[],function(b,c){var d="mktoRadio_"+a.Id+"_"+c;return c||(firstVal=b.value),e.docFrag([e("input[type=radio].mktoField",{name:a.Name,id:d,value:b.value,"aria-required":a.IsRequired,"aria-labelledby":[f.getLabelId(a.Name,d),f.getInstructionId(a.Name)].join(" ")}),e("label",{"for":d,id:f.getLabelId(d)},[e.html(b.label||b.name)])])})]);a.IsLabelToLeft&&c.addClass("mktoLabelToLeft");var g=h(c);return{name:a.Name,elem:f.formatStandardField(c,a,b),val:g,required:a.IsRequired,validatorElem:c,validatorFocusElem:c.find("input:eq(0)"),onChange:function(a){c.on("change",a)}}}},{"../jquery.js":45,"./fieldHelpers.js":29}],36:[function(a,b,c){var d=a("../jquery.js"),e=d.build,f=a("./fieldHelpers.js"),g=a("../modernizr.js"),h={};b.exports=h,h.fieldType="range";var i=function(a,b,c){var d=a.get(0);if(d.validity&&!d.validity.valid)return!1;var e=a.val();return e?j(e,b,c):!0},j=function(a,b,c){return a=parseFloat(a,10),isNaN(a)?!1:f.isSet(b)&&b>a?!1:f.isSet(c)&&a>c?!1:!0},k=function(a,b,c){return function(d){if(0===arguments.length){var e=a.val();if(f.isSet(e)){var g=parseFloat(e,10);return isNaN(g)?null:g}return null}null!==d&&void 0!==d&&""!==d&&j(d,b,c)&&(a.val(parseFloat(d,10)),a.trigger("change"))}};h.newField=function(a,b){var c,h,j,l,m=a.MinimumNumber||0,n=a.MaximumNumber||100,o=e(".mktoLogicalField.mktoRangeField",[j=e(".mktoRangeValue",[l=e(".mktoRangeValueArrowWrap",e(".mktoRangeValueArrow")),h=e(".mktoRangeValueText",""+a.MinimumNumber||0)]),c=e("input[type=range].mktoField",{id:a.Name,name:a.Name,min:m,max:n,step:a.StepNumber||1,title:a.Description,"aria-labelledby":[f.getLabelId(a.Name),f.getInstructionId(a.Name)].join(" ")}).addClass("mktoHasWidth").css({width:f.first(a.FieldWidth,b.FieldWidth,0)})]).hover(function(){o.addClass("mktoHover"),p()},function(){o.removeClass("mktoHover")});g.csstransforms||l.addClass("mktoArrowImage");var p=function(){var a=c.val()||0;h.html(""+a);var b=12,d=c.data("mktoNoCubicEase"),e=c.data("mktoPxAboveSlider")||0,f=(a-m)/(n-m),g=c.width()*f,i=0;d||(.5>f&&(i=Math.pow(1-f,3)*(b/2)),f>.5&&(i=-1*Math.pow(f,3)*(b/2)),g+=Math.floor(i));var k=g-j.outerWidth()/2,o=h.outerWidth()/2-l.outerWidth()/2;j.css("margin-left",k),j.css("margin-top",-1*(l.outerHeight()+h.outerHeight()+e)),l.css("margin-left",o)};return c.on("change",p),c.on("input",p),c.data("mktoRangeUpdate",p),d("body").on("mktoRender",p),{name:a.Name,val:k(c,a.MinimumNumber,a.MaximumNumber),elem:f.formatStandardField(o,a,b),required:a.IsRequired,validator:function(){return i(c,m,n)},validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":45,"../modernizr.js":48,"./fieldHelpers.js":29}],37:[function(a,b,c){var d=a("../jquery.js"),e=(d.build,a("./fieldHelpers.js")),f=/^([0-9()+. \t-])+(\s?(x|ext|extension)\s?([0-9()])+)?$/,g={};b.exports=g,g.fieldType="phone";var h=function(a){var b=a.val()||"";return b?b.match(f):!0};g.newField=function(a,b){var c=e.renderInput("tel",a,b);return{name:a.Name,elem:e.formatStandardField(c,a,b),val:d.proxy(c.val,c),required:a.IsRequired,validator:function(){return h(c)},validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":45,"./fieldHelpers.js":29}],38:[function(a,b,c){var d=a("../jquery.js"),e=(d.build,a("./fieldHelpers.js")),f={};b.exports=f,f.fieldType="string",f.newField=function(a,b){var c=a.Maxlength||255,d=e.renderInput("text",a,b);return a.FieldMask&&d.addClass("mktoInputMask").data("mktoInputMask",a.FieldMask),{name:a.Name,elem:e.formatStandardField(d,a,b),val:function(a){return 0===arguments.length?d.val():(a&&a.length>c&&(a=a.substring(0,c)),d.val(a))},required:a.IsRequired,validatorElem:d,onChange:function(a){d.on("change",a)}}}},{"../jquery.js":45,"./fieldHelpers.js":29}],39:[function(a,b,c){var d=a("../jquery.js"),e=(d.build,a("./fieldHelpers.js")),f={};b.exports=f,f.fieldType="url";var g=/^[a-zA-z0-9\.\-_~:/\?#\[\]@!$&\'\(\)\*\+,;=%]*$/,h=function(a){if(!a)return!0;var b=a.indexOf("://");return 1>b?!1:a.match(g)};f.newField=function(a,b){var c=e.renderInput("url",a,b);return{name:a.Name,elem:e.formatStandardField(c,a,b),val:d.proxy(c.val,c),required:a.IsRequired,validatorElem:c,validator:h,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":45,"./fieldHelpers.js":29}],40:[function(a,b,c){var d=a("../jquery.js"),e=d.build,f=a("./fieldHelpers.js"),g=function(a,b){return function(c){return 0===arguments.length?a.val():(b&&c&&!d.isArray(c)&&(c=f.splitSemis(c)),a.val(c))}},h={};b.exports=h,h.fieldType="picklist",h.newField=function(a,b){var c=e("select.mktoField",{id:a.Name,name:a.Name,title:a.Description,"aria-labelledby":[f.getLabelId(a.Name),f.getInstructionId(a.Name)].join(" ")},[d.map(a.PicklistValues||[],function(a,b){return!a.isDefault||a.selected?e("option",{value:a.value},a.label||a.name):void 0})]);return a.IsMultiselect&&(c.attr("multiple","multiple"),c.attr("size",a.VisibleRows||5)),{name:a.Name,elem:f.formatStandardField(c,a,b),val:g(c,a.IsMultiselect),required:a.IsRequired,validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":45,"./fieldHelpers.js":29}],41:[function(a,b,c){var d=a("../jquery.js"),e=d.build,f=a("./fieldHelpers.js"),g={};b.exports=g,g.fieldType="textarea",g.newField=function(a,b){var c=a.Maxlength||2e3,d=e("textarea.mktoField",{id:a.Name,name:a.Name,placeholder:a.PlaceholderText,rows:Math.max(2,a.VisibleRows||2),title:a.Description,"aria-labelledby":[f.getLabelId(a.Name),f.getInstructionId(a.Name)].join(" ")});try{d.attr("maxlength",c)}catch(g){d.get(0).setAttribute("maxlength",""+c)}return{name:a.Name,elem:f.formatStandardField(d,a,b),val:function(a){return 0===arguments.length?d.val():(a&&a.length>c&&(a=a.substring(0,c)),d.val(a))},required:a.IsRequired,validatorElem:d,onChange:function(a){d.on("change",a)}}}},{"../jquery.js":45,"./fieldHelpers.js":29}],42:[function(a,b,c){var d=a("./jquery.js"),e=d.build,f=a("./validation.js"),g=a("./measure.js"),h=a("./fields/fieldhelpers.js"),j=h.cap,k=h.isSet,l=h.first,m=a("querystring"),n=a("url"),o=a("cookie"),p=a("./cookiehelper.js"),q=a("./tokenTemplate.js"),r=a("./changeManager.js"),s=a("./urlhelper.js"),t=a("./prefillcoercer.js"),u=a("./iframeproxy.js"),v=a("./safelog.js"),w=a("sha.js"),x=[a("./fields/inputRadio.js"),a("./fields/inputDate.js"),a("./fields/inputEmail.js"),a("./fields/inputCheckbox.js"),a("./fields/select.js"),a("./fields/inputRange.js"),a("./fields/inputText.js"),a("./fields/inputUrl.js"),a("./fields/inputTel.js"),a("./fields/inputNumber.js"),a("./fields/textarea.js"),a("./fields/currency.js")],y={};d.each(x,function(a,b){y[b.fieldType]=b}),y["int"]=y.number,y["double"]=y.number,y.single_checkbox=y.checkbox;var z=(a("./comparators.js"),navigator.userAgent.match(/msie ([6789])/i)),A=z?"ie"+z[1]:"",B=location.href,C=function(a,b,c){var x={},z={};z.hiddenFields={formid:a.Id},z.onSuccess=[],z.onSubmit=[],z.onValidate=[],z.values={},z.fieldsByName=h.getFieldsByName(h.getFlattenedFields(a)),z.changeMap=r.getChangeMap(z.fieldsByName,a),z.fieldElemsByName={},z.latestFieldsByName={},z.canSubmit="draft"!=a.Status&&!a.isPreview;var C=function(a){var b=z.changeMap[a]||[],c=!1,f={defaultValuesToSet:{},fieldsToCheck:[]};d.each(b,function(a,b){var g=z.fieldElemsByName[b];if(g&&g[0]&&d.contains(z.formElem[0],g[0])){var h,i,j=!g.hasClass("mktoPlaceholder"),k=z.fieldsByName[b],l=r.fieldChangeChecker(k.VisibilityRule,x.getValues()),m=l.show,n=function(a,c){var d=D(a,f),e=F(d),g=e.elem;return g.hide(),c.replaceWith(g),J()&&K(g),z.latestFieldsByName[b]=a,g},o=function(a,b){var c=e(".mktoPlaceholder.mktoPlaceholder"+a.Name);return b.replaceWith(c),c};j&&m&&(h=r.applyPicklistAlterations(k,l.rule),JSON.stringify(h)!==JSON.stringify(z.latestFieldsByName[b])&&(i=n(h,g),i.show(),c=!0)),j&&!m&&(i=o(k,g),z.fieldElemsByName[b]=i,f.fieldsToCheck.push(k)),!j&&m&&(h=r.applyPicklistAlterations(k,l.rule),i=n(h,g),i.show(),f.fieldsToCheck.push(k),c=!0),i&&(z.fieldElemsByName[b]=i),"fieldset"==k.Datatype&&C(k.Name),c&&i&&z.validation&&z.validation.initScoped(i)}}),x.setValues(f.defaultValuesToSet),d.each(f.fieldsToCheck,function(a,b){C(b.Name)}),c&&d("body").data("mktoRendered")&&d("body").trigger("mktoRender",x)},D=function(b,c){var f=z.values[b.Name]||b.DefaultValue||b.InputInitialValue;if(y[b.Datatype]){var g=y[b.Datatype].newField(b,a);if(g.validationMessage=g.validationMessage||b.ValidationMessage,g.requiredMessage=g.requiredMessage||b.RequiredMessage,g.required){if(!g.validatorElem)throw new Error("Required fields must have a validatorElem");g.validatorElem.addClass("mktoRequired"),"single_checkbox"!=b.Datatype&&"checkbox"!=b.Datatype&&"radio"!=b.Datatype&&g.validatorElem.attr("aria-required","true")}z.changeMap[b.Name]&&g.onChange(function(a){C(b.Name)}),k(f)&&(c.defaultValuesToSet[b.Name]=f);var h=e(".mktoFieldDescriptor",g.elem);return h.data("mktoFieldDescriptor",g),h}if("htmltext"==b.Datatype||"richtext"==b.Datatype)return e.docFrag([e(".mktoOffset.mktoHasWidth").css({width:l(b.OffsetWidth,a.OffsetWidth,0)}),e(".mktoFieldWrap",[e(".mktoHtmlText.mktoHasWidth",[e.html(b.Htmltext||b.InputLabel)]).css({width:l(b.LabelWidth,a.LabelWidth,0)}),e(".mktoClear")]),e(".mktoClear")]);if("hidden"==b.Datatype){var i=b.InputSourceChannel,j=b.InputSourceSelector,p=b.Name,q="";if("url"==i&&j){var r=m.parse(location.search.replace("?",""));q=r[j]||""}else if("cookie"==i&&j){var s=o.parse(document.cookie);q=s[j]}else if("referrer"==i&&j){var t=n.parse(document.referrer,!0);q=t.query[j]}return!q&&f&&(q=f),c.defaultValuesToSet[p]=q,H(q,p)}if("fieldset"==b.Datatype){var u=a.fieldsetRows[b.Id.toString()]||[];if(!u.length)return null;var w=e("fieldset",[e("legend",e.html(b.InputLabel)),d.map(u,function(a,b){return G(a,b,c)})]);return u.length&&u[0].length&&w.css({"padding-right":l(u[0][0].OffsetWidth,a.OffsetWidth,0)}),w}"profiling"!=b.Datatype&&v("invalid data type: "+b.Datatype)},E=function(b,c){var f=a.ProcessOptions,g=0;f&&f.profiling&&f.profiling.numberOfProfilingFields&&(g=f.profiling.numberOfProfilingFields);var h=b.ProfilingFieldNumber||g,i=a.fieldsetRows[b.Id.toString()]||[],j=[],l=0;return d.each(i,function(b,c){var e=[],f=[];a.filledFields&&(f=a.filledFields),d.each(c,function(a,b){!k(z.values[b.Name])&&-1==d.inArray(b.Name,f)&&h>l&&(e.push(b),l++)}),e.length>0&&j.push(e)}),e.docFrag(d.map(j,function(a,b){return G(a,b,c)}))},F=function(b){var c,d=0;return c=11==b.nodeType?e(".mktoFormCol",b):b.addClass("mktoFormCol"),d+=g.measure(c).w,c.css("margin-bottom",a.LineMargin||0),{elem:c,width:d}},G=function(a,b,c){var f=0;if(1==a.length&&"profiling"==a[0].Datatype)return E(a[0],c);var g=d.map(a,function(a,b){var d=D(a,c);if(!d)return null;var e=F(d);return f+=e.width,a.VisibilityRule&&"hidden"!=a.Datatype&&c.fieldsToCheck.push(a),z.fieldElemsByName[a.Name]=e.elem,e.elem});if(0===g.length)return null;var h=e(".mktoFormRow",[g,e(".mktoClear")]);return f>z.formWidth&&(z.formWidth=f),h},H=function(a,b){var c=e("input.mktoField.mktoFieldDescriptor",{type:"hidden",name:b}),f={name:b,val:d.proxy(c.val,c),onChange:function(a){c.on("change",a)}};return z.changeMap[b]&&f.onChange(function(a){C(field.Name)}),c.data("mktoFieldDescriptor",f),c},I=function(a,b){var c={},f=function(a,b){c[a]=b};x.setValues(b,f);var g=d.map(c,H);a.append(e.docFrag(g)),x.setValues(b)},J=function(){return window.matchMedia&&d("body.mktoMobileShow").length?window.matchMedia("only screen and (max-width:480px), only screen and (max-device-width:480px), only screen and (max-device-height:480px)").matches:d(window).width()<=480},K=function(a){var b=a.find(".mktoHasWidth").addBack();b.each(function(){var a=d(this);a.data("mktoFixedWidth",a.css("width")),a.css("width","")})},L=function(){if(z.formElem){d(window).width();z.hasRemovedWidths?J()||(z.formElem.find(".mktoHasWidth").addBack().each(function(){var a=d(this);a.css("width",a.data("mktoFixedWidth"))}),z.hasRemovedWidths=!1):J()&&(K(z.formElem),z.hasRemovedWidths=!0)}},M=function(b){var c=a.ButtonStyle||{className:""},d=a.ButtonText||a.SubmitLabel||"Submit",f=a.ButtonLocation||"",g=parseInt(f,10)||0,h=e("span.mktoButtonWrap",[e("button.mktoButton",{type:"submit"},[d])]).addClass(c.className).css({"margin-left":g+"px"});return h},N=function(){var b=a.ProcessOptions;if(!(b&&b.socialSignOn&&b.socialSignOn.isEnabled&&b.socialSignOn.enabledNetworks.length))return"";var c=b.socialSignOn.cfId+"_SocialSignOn",d=e(".cf_widgetLoader.cf_w_"+c);return window.cf_scripts&&window.CF?(setTimeout(function(){CF.widget.restart(c)},10),d):e.docFrag([e("script",{src:a.loaderJsUrl,type:"text/javascript"}),d])},O=function(c){c.addClass("mktoForm mktoHasWidth mktoLayout"+j(a.Layout||"left")+(b.csschecked?"":" mktoNoCheckedSupport")),A&&c.addClass(A)},P=function(a,b){var c=!0;return d.each(z.onSuccess,function(d,e){e(a,b)===!1&&(c=!1)}),c},Q=function(a){var b,c=a.__cdrop;return c&&(b=c.split("."),3==b.length)?b[2]:null},R=function(a){var b={};return d.each(a,function(a,c){d.isArray(c)&&c.length>1?b[a+"[]"]=c:b[a]=c}),b},S=function(){var a=location;return-1!=a.hostname.indexOf(c.fbTabDomain)&&-1!=a.search.indexOf("fbTab=1")},T=function(b){var c=S(),d="";if(b){var e=x.getValues().followupLpId>0;e||"string"!=typeof a.FormFollowup?b.followUpUrl&&"string"==typeof b.followUpUrl?d=b.followUpUrl:b.followUpUrl&&b.followUpUrl.url&&(c&&b.followUpUrl.isLandingPage?(d=s.remapLandingPageUrl(b.followUpUrl.url,location.href),d=s.addQueryParams(d,{fbTab:"1"})):d=b.followUpUrl.url):(d=a.FormFollowup,c&&0!==d.indexOf("https://")&&(d=s.remapLandingPageUrl(d,location.href),d=s.addQueryParams(d,{fbTab:"1"})))}return d=d||location.href,b.aliId&&(d=s.addQueryParams(d,{aliId:b.aliId})),d},U=function(){function e(a){return decodeURIComponent(escape(a))}function f(a,b,c){var d;if(a&&a.responseJSON)d=a.responseJSON;else if(a&&a.responseText)try{d=JSON.parse(a.responseText)}catch(e){d=c}else d=c;F(d)}var g=x.getValues();if(window.Munchkin)try{window.Munchkin.createTrackingCookie(!0)}catch(h){}var i=n.parse(B,!0).query,j=o.parse(document.cookie),k=n.parse(a.action).hostname,l=(k?"//"+k:"")+c.formSubmitPath;window.location;S()&&(l=c.formSubmitPath,k=location.hostname);var q="json",r="POST";void 0===g._mkt_trk&&(g._mkt_trk=j._mkto_trk),g.formVid=a.Vid,i.mkt_tok&&void 0===g.mkt_tok&&(g.mkt_tok=i.mkt_tok);var s=Q(j);s&&(g.MarketoSocialSyndicationId=s),g._mktoReferrer=B;var t=[],v=[],y=function(a){var b=0;d.each(a,function(a,c){b>=20||(t.push(c),v.push(a),b++)})};y(g),g.checksumFields=v.join(","),g.checksum=w("sha256").update(t.join("|")).digest("hex"),z.captchaToken&&(g.captchaToken=z.captchaToken);var A=m.stringify(R(g)),C=function(a){var b=T(a);!1!==P(g,b)&&(p.removeCookieAllDomains("_mkto_purl"),location.href=b)},D=function(a){if(a.error)F(a);else if(a.formId)if(a.followupStreamValue&&window.AdobeDX&&window.AdobeDX.conversationalForms){var b=x.getValues(),c={id:a.followupStreamValue,type:a.deliveryType||"popup"};b&&b.Email&&(c.content={form:{emailAddress:b.Email}}),a&&a.conversationalFieldAttributes&&d.each(a.conversationalFieldAttributes,function(a,b){c.content.form[a]=b});var e=window.AdobeDX.conversationalForms(c);if(e.registerCallback&&e.Enum&&e.Enum.Events&&e.Enum.Events.CONVERSATION_CLOSED&&e.Enum.CallbackType&&e.Enum.CallbackType.EVENT_LISTENER){var f=window.AdobeDX.addListener;f&&f(e.Enum.Events.CONVERSATION_CLOSED,function(b){C(a)})}}else C(a)},E=function(a){for(var b=[],c=a.length-1;c>=0;c--)b.unshift(["&#",a[c].charCodeAt(),";"].join(""));return b.join("")},F=function(b){var c=a.formSubmitFailedMsg||"Submission failed, please try again later.";"invalid"===b.errorType&&(b.invalidInputMsg&&(b.invalidInputMsg=e(b.invalidInputMsg)),c=b.invalidInputMsg||a.invalidInputMsg||"Invalid input");var d=!1;if(b&&b.errorFields&&b.errorFields.length){var f=b.errorFields[0];if(f){var g=z.fieldElemsByName[f];if(g){var h=g.data("mktoFieldDescriptor");h&&h.validatorElem&&(z.validation.showError(h.validatorElem,E(c)),d=!0)}}}if(z.submitButton){var i=z.submitButton.find("button");i.removeAttr("disabled"),i.html(a.ButtonText||a.SubmitLabel||"Submit"),d||z.validation.showError(i,c)}},G={type:r,data:A,dataType:q,url:l,success:D,error:F};k&&k!=location.hostname?b.postmessage&&b.json?u.send(G):(G.dataType="jsonp",G.submitUrl+="?callback=?",G.type="GET",G.error=f,d.ajax(G)):(G.error=f,d.ajax(G))},V=function(b){var c=function(b){if(z.submitButton){var c=z.submitButton.find("button");c.attr("disabled","disabled"),a.ButtonSubmissionText&&c.html(a.ButtonSubmissionText)}return U(),!1},e=x.validate();return z.canSubmit&&e&&z.onSubmit&&d.each(z.onSubmit,function(a,b){b(x)}),b.preventDefault(),z.canSubmit&&e?!a.EnableCaptcha||!a.Captcha||"disabled"===a.Captcha.provider||z.captchaToken&&""!==z.captchaToken?c(!0):("reCaptcha"==a.Captcha.provider&&grecaptcha.ready(function(){grecaptcha.execute(a.Captcha.siteKey,{action:"submit"}).then(function(a){return c(!0)})}),b.stopPropagation(),!1):(b.stopPropagation(),!1)},W=function(b){var c=a.ButtonStyle||{className:""},d=e("span.mktoButtonWrap",[e("button.mktoButton",{type:"submit"},[b["default"]||""])]).addClass(c.className);return d.click(function(a){V(a),a.preventDefault()}),d},X=function(a){return e("a.mktoNotYou",[a["default"]||"Not You?"]).click(function(){p.removeCookieAllDomains("_mkto_trk"),location.href=s.removeQueryParams(location.href,["mkt_tok","aliId"])})},Y=function(){var b=a.ProcessOptions.knownLead.template;b=b.replace(/\{\[\((.*?)\)\]\}/g,"{{$1}}");var c={},f=0,g=function(a){return function(){var b=a.apply(null,arguments);if(b.jquery||b.nodeType){var d="__tempSwap"+f;return f++,c[d]=b,""}return b}},h=function(a){return d.each(a,function(b,c){a[b]=d("
").text(a[b]).html()}),a},i={lead:h(a.knownLead),form:{Button:g(W),NotYou:g(X)}},j=e("div.mktoTemplateBox",e.html(q(b,i)));return d.each(c,function(a,b){j.find("#"+a).replaceWith(b)}),j};x.render=function(b){z.id=a.Vid||a.Id||1,b||(b=d("form#mktoForm_"+(a.Vid||a.Id))),b.length||(b=e("form#mktoForm_"+(a.Vid||a.Id))),z.formElem=b,b.attr({novalidate:"novalidate"}),b.css({"font-family":a.FontFamily||"","font-size":a.FontSize||"",color:a.FontColor||""}),O(b),g.init(z.formElem),z.formWidth=0;var c={defaultValuesToSet:{},fieldsToCheck:[]},h=d.map(a.rows,function(a,b){return G(a,b,c)}),j=N();d.each(c.fieldsToCheck,function(a,b){if(!r.fieldChangeChecker(b.VisibilityRule,c.defaultValuesToSet).show){var d=e(".mktoPlaceholder.mktoPlaceholder"+b.Name),f=z.fieldElemsByName[b.Name];f&&(f.replaceWith(d),z.fieldElemsByName[b.Name]=d)}});var k="",l=a.ButtonStyle;if(l&&(l.css&&(k+=l.css),l.buttonColor&&(k+="\n.mktoForm .mktoButtonWrap."+l.className+" button.mktoButton {background:"+l.buttonColor+";}\n")),b.append(e("style",{type:"text/css"},k)),a.knownLead&&a.ProcessOptions&&a.ProcessOptions.knownLead&&"custom"==a.ProcessOptions.knownLead.type){b.append(Y());var m=[];if(a.EnableCaptcha&&a.Captcha&&"disabled"!==a.Captcha.provider){var n=addCaptchaScript(b,a);n&&n.forEach(function(a){m.push(a)})}b.append(e.docFrag(m))}else{var o=[j,h],p=e(".mktoButtonRow",[z.submitButton=M(b)]);if(a.EnableCaptcha&&a.Captcha&&"disabled"!==a.Captcha.provider){var q=addCaptchaScript(b,a,p);q&&q.forEach(function(a){o.push(a)})}if(o.push(p),a.dcJsUrl){var s=e("div");s.append(''),o.push(s)}if(b.append(e.docFrag(o)),a.removeDuplicateLabelId){var t=b.find('input[type="checkbox"]').next("label");for(i=0;i0)for(var c=0;c';j+="var formId = "+b.Vid+";",j+="var captchaCallback = "+g+";",j+="",i.append(j),"reCaptcha"==b.Captcha.provider&&(c["data-size"]="invisible");var k="";"reCaptcha"==b.Captcha.provider&&(k=e("div.mktoCaptchaDisclaimer"),k.append('This site is protected by reCAPTCHA and the Google\n Privacy Policy and Terms of Service apply.'));var l=e("
",c);return[h,i,l,k]};var Z=function(a){var b=a.find(".mktoFormRow, .mktoFormCol"),c=b.length;b.each(function(){d(this).css("z-index",c--)}),a.css("z-index",b.length+1)};x.getId=function(){return z.id},x.getFormElem=function(){return z.formElem},x.getElem=x.getFormElem(),x.validate=function(){var a=z.validation.check();return d.each(z.onValidate,function(b,c){c(a)}),a},x.onValidate=function(a){return a?z.onValidate.push(a):z.onValidate=[],x},x.offValidate=function(a){return z.onValidate=z.onValidate.filter(function(b){return b!==a}),x},x.submit=function(a){if(a&&"function"==typeof a){var b=function(){x.offSuccess(b),a.apply(null,arguments)};z.onSuccess.push(b)}return z.formElem.trigger("submit"),x},x.onSubmit=function(a){return a?z.onSubmit.push(a):z.onSubmit=[],x},x.offSubmit=function(a){return z.onSubmit=z.onSubmit.filter(function(b){return b!==a}),x},x.onSuccess=function(a){return a?z.onSuccess.push(a):z.onSuccess=[],x},x.offSuccess=function(a){return z.onSuccess=z.onSuccess.filter(function(b){return b!==a}),x},x.submitable=function(a){return arguments.length?(z.canSubmit=a,x):z.canSubmit},x.submittable=x.submitable,x.allFieldsFilled=function(){var a=x.getValues(),b=!0;return d.each(a,function(a,c){d.isArray(c)&&0===c.length?b=!1:(void 0===c||null===c||""===c)&&(b=!1)}),b};var $=function(){var a={};return z.formElem.find(".mktoFieldDescriptor").each(function(b,c){var e=d(c),f=e.data("mktoFieldDescriptor");a[f.name]=f.val}),a};return x.setValuesCoerced=function(b){var c=t.coerceTypes(b,a);x.setValues(c)},x.setValues=function(a,b){if(z.formElem){var c=[],e=$();d.each(a,function(a,d){e[a]?e[a](d):b&&b(a,d),z.changeMap[a]&&c.push(a)}),d.each(c,function(b,c){C(c);var e=$();d.each(z.changeMap[c],function(b,c){e[c]&&void 0!==a[c]&&e[c](a[c])})})}else z.values=a;return x},x.setCaptchaValue=function(a){if(z&&(z.captchaToken=a,z.submitButton)){var b=z.submitButton.find("button");b.removeAttr("disabled")}},x.setCaptchaExpired=function(){if(z&&(z.captchaToken="",z.submitButton)){var a=z.submitButton.find("button");a.attr("disabled","disabled")}},x.addHiddenFields=function(a){z.formElem?I(z.formElem,a):d.extend(z.hiddenFields,a)},x.getValues=function(){if(z.formElem){var a={},b=$();return d.each(b,function(b,c){var d=c();a[b]=d}),a}return z.values},x.vals=function(){return 0===arguments.length?x.getValues():x.setValues.apply(null,arguments)},x.showErrorMessage=function(a,b){return z.validation&&(b||(b=z.submitButton),z.validation.showError(b,a)),x},x.setErrorMessages=function(a){d.each(a,function(a,b){if(z.fieldsByName[a].ValidationMessage=b,z.formElem){var c=z.fieldElemsByName[a];if(c){var d=c.data("mktoFieldDescriptor");d&&(d.validationMessage=b,c.data("mktoFieldDescriptor",d))}}})},x};b.exports=C},{"./changeManager.js":24,"./comparators.js":26,"./cookiehelper.js":27,"./fields/currency.js":28,"./fields/fieldhelpers.js":30,"./fields/inputCheckbox.js":31,"./fields/inputDate.js":32,"./fields/inputEmail.js":33,"./fields/inputNumber.js":34,"./fields/inputRadio.js":35,"./fields/inputRange.js":36,"./fields/inputTel.js":37,"./fields/inputText.js":38,"./fields/inputUrl.js":39,"./fields/select.js":40,"./fields/textarea.js":41,"./iframeproxy.js":44,"./jquery.js":45,"./measure.js":46,"./prefillcoercer.js":49,"./safelog.js":50,"./tokenTemplate.js":52,"./urlhelper.js":53,"./validation.js":54,cookie:4,querystring:13,"sha.js":16,url:23}],43:[function(a,b,c){if("undefined"!=typeof window&&window.MktoForms2)return void(b.exports=window.MktoForms2);var d=a("./jquery.js");d.noConflict();var e=a("jquery.build")(d,document),f=a("./form.js");a("./shimsham.js");var g={};g.$=d,g.$b=e,g.Modernizr=a("./modernizr.js");var h=g.Modernizr,i=a("querystring"),j=a("./fields/fieldhelpers.js"),k=a("cookie"),l=a("events"),m=new l.EventEmitter,n=a("url"),o=a("./iframeproxy.js"),p=a("./color.js"),q=a("./safelog.js"),r=!0,s={rootUrl:"",baseUrl:"/js/forms2/",skipPolyfills:!1,formSubmitPath:"/index.php/leadCapture/save2",formXDPath:"/index.php/form/XDFrame",fbTabDomain:"marketo.com"},t=[];g.setOptions=function(a){d.extend(s,a)};var u=function(a){var b=e("#mktoStyleLoaded").css({display:"none","border-top-color":"#123456"}).appendTo(d("body")),c=0,f=1500,g=25,h=function(){var d=b.css("color"),e=b.css("background-color"),i=b.css("border-top-color");c>f/g?(q("Timeout loading CSS. #mktoStyleLoaded missing color #123456 for one of color, background-color, or border-top-color.",d,e,i),a()):p.compareColor(i,e)&&p.compareColor(i,d)?z(a):(c++,setTimeout(h,g))};h()},v=function(a,b){0===b.indexOf("//")&&(b=location.protocol+b);var c=e("link",{id:a,rel:"stylesheet",type:"text/css",href:b});d("head").append(c),document.createStyleSheet&&document.createStyleSheet(b)},w=function(a,b){window.console&&console.log("Error loading form:",a),b&&b(null)},x=function(a){return 0===a.indexOf("/")&&0!==a.indexOf("//")},y=function(a,b){var c="json";x(a)||(c="jsonp",a+="&callback=?"),d.ajax({dataType:c,url:a,success:b,error:function(a,c,d){w(d,b)}})};g.loadForm=function(a,b,c,d){g.setOptions({rootUrl:a,baseUrl:a+"/js/forms2/"});var e=function(c){r=!1,c.action=(0===a.indexOf("http")?a:location.protocol+a)+s.formSubmitPath,g.newForm(c,function(a){a.addHiddenFields({munchkinId:b}),a.render(),d&&d(a)})},f=location.href.split("?")[0].split("#")[0];f.length>255&&(f=f.substring(0,255));var h=a+"/index.php/form/getForm?munchkinId="+b+"&form="+c+"&url="+encodeURIComponent(f);return y(h,function(a){a.error?w(a,d):e(a)}),g},g.lightbox=function(b,c){var d,e;return c=c||{},b.getFormElem?(b.getFormElem()||b.render(),d=b.getFormElem(),b.onSuccess(c.onSuccess||function(a,b){return e.hide(),b?void 0:!1})):d=b,e=a("./modal.js")(d,c)};var z=function(a){setTimeout(a,0)},A=function(a,b,c,e,f){if(window.mktoPreFillFields&&mktoPreFillFields.FirstName&&mktoPreFillFields.LastName)return void z(function(){e(mktoPreFillFields)});var g=k.parse(document.cookie),h=i.parse(location.search.replace("?","")),j=s.rootUrl+"/index.php/form/getKnownLead?";if(g._mkto_trk||h.mkt_tok){var l={form:a,lpId:f,munchkinId:b,filledFields:c};return g._mkto_trk&&(l._mkt_trk=g._mkto_trk),h.mkt_tok&&(l.mkt_tok=h.mkt_tok),j+=i.stringify(l),void y(j,function(a){a&&a.error?w(a,e):(window.mktoPreFillFields&&(a=d.extend({},window.mktoPrefillFields,a)),e(a))})}z(e)};g.newForm=function(a,b){!r||a.isPreview||a.isFormTheme?g.processForm(a,b):g.getLatestFormDescriptor(a,b)},g.getLatestFormDescriptor=function(a,b){var c=function(a){console.log("Error loading form : ",a)},e=function(c){return c.Captcha?a.Captcha=c.Captcha:delete a.Captcha,g.processForm(a,b)},f=function(a,b){d.ajax({dataType:"json",url:a,success:b,error:function(a,d,e){c(e,b)}})},h=location.hostname,i=a.munchkinId,j=a.Id;if(i&&j){var k=h+"/index.php/form/getForm?munchkinId="+i+"&form="+j;k=0===k.indexOf("http")?k:location.protocol+"//"+k,f(k,function(a){a.error?c(a,b):e(a)})}},g.processForm=function(a,b){if(0===d("#mktoForms2BaseStyle").length){var c=s.baseUrl+"css/forms2.css";v("mktoForms2BaseStyle",c)}0===d("#mktoForms2ThemeStyle").length&&a.ThemeStyle&&a.ThemeStyle.href?v("mktoForms2ThemeStyle",s.baseUrl+a.ThemeStyle.href):d("head").append(e("style","#mktoStyleLoaded {color:#123456;}")),a.FontUrl&&v("mktoFontUrl",a.FontUrl),a.ThemeStyleOverride&&d("head").append(e("style",a.ThemeStyleOverride)),g._polyfillsLoaded||(C(a),g._polyfillsLoaded=!0);var i=a.ProcessOptions,j=0,k=function(){var a=location;return-1!=a.hostname.indexOf(s.fbTabDomain)&&-1!=a.search.indexOf("fbTab=1")},l=function(){return-1!=location.hostname.indexOf(".marketodesigner.com")},p=function(){if(j--,0>=j){var c=f(a,h,s);t.push(c),b&&b(c),z(function(){if(a.action&&!k()&&!l()){var b=n.parse(a.action).hostname;b&&b!=location.hostname&&h.postmessage&&h.json&&o.init("//"+b+s.formXDPath)}}),z(function(){m.emit("mktoFormReady",c)})}},q=i&&i.profiling&&i.profiling.isEnabled,r=i&&i.knownLead&&"custom"==i.knownLead.type&&a.munchkinId;(r||q)&&(j++,A(a.Vid,a.munchkinId,q,function(b){b&&(a.filledFields=b.filledFields,b.FirstName&&b.LastName&&(a.knownLead=b)),p()},a.lpId)),j++,u(p)},g.getForm=function(a){for(var b=0;b0&&b-1 in a}function f(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}function g(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a}function h(a,b,c){return sa(b)?ya.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?ya.grep(a,function(a){return a===b!==c}):"string"!=typeof b?ya.grep(a,function(a){return la.call(b,a)>-1!==c}):ya.filter(b,a,c)}function i(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function j(a){var b={};return ya.each(a.match(Qa)||[],function(a,c){b[c]=!0}),b}function k(a){return a}function l(a){throw a}function m(a,b,c,d){var e;try{a&&sa(e=a.promise)?e.call(a).done(b).fail(c):a&&sa(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}function n(){ua.removeEventListener("DOMContentLoaded",n),a.removeEventListener("load",n),ya.ready()}function o(a,b){return b.toUpperCase()}function p(a){return a.replace(Ua,"ms-").replace(Va,o)}function q(){this.expando=ya.expando+q.uid++}function r(a){return"true"===a?!0:"false"===a?!1:"null"===a?null:a===+a+""?+a:Za.test(a)?JSON.parse(a):a}function s(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace($a,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=r(c)}catch(e){}Ya.set(a,b,c)}else c=void 0;return c}function t(a,b,c,d){var e,f,g=20,h=d?function(){return d.cur()}:function(){return ya.css(a,b,"")},i=h(),j=c&&c[3]||(ya.cssNumber[b]?"":"px"),k=a.nodeType&&(ya.cssNumber[b]||"px"!==j&&+i)&&ab.exec(ya.css(a,b));if(k&&k[3]!==j){for(i/=2,j=j||k[3],k=+i||1;g--;)ya.style(a,b,k+j),(1-f)*(1-(f=h()/i||.5))<=0&&(g=0),k/=f;k=2*k,ya.style(a,b,k+j),c=c||[]}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function u(a){var b,c=a.ownerDocument,d=a.nodeName,e=gb[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=ya.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),gb[d]=e,e)}function v(a,b){for(var c,d,e=[],f=0,g=a.length;g>f;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=Xa.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&fb(d)&&(e[f]=u(d))):"none"!==c&&(e[f]="none",Xa.set(d,"display",c)));for(f=0;g>f;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}function w(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&f(a,b)?ya.merge([a],c):c}function x(a,b){for(var c=0,d=a.length;d>c;c++)Xa.set(a[c],"globalEval",!b||Xa.get(b[c],"globalEval"))}function y(a,b,c,e,f){for(var g,h,i,j,k,l,m=b.createDocumentFragment(),n=[],o=0,p=a.length;p>o;o++)if(g=a[o],g||0===g)if("object"===d(g))ya.merge(n,g.nodeType?[g]:g);else if(lb.test(g)){for(h=h||m.appendChild(b.createElement("div")),i=(ib.exec(g)||["",""])[1].toLowerCase(),j=kb[i]||kb._default,h.innerHTML=j[1]+ya.htmlPrefilter(g)+j[2],l=j[0];l--;)h=h.lastChild;ya.merge(n,h.childNodes),h=m.firstChild,h.textContent=""}else n.push(b.createTextNode(g));for(m.textContent="",o=0;g=n[o++];)if(e&&ya.inArray(g,e)>-1)f&&f.push(g);else if(k=db(g),h=w(m.appendChild(g),"script"),k&&x(h),c)for(l=0;g=h[l++];)jb.test(g.type||"")&&c.push(g);return m}function z(){return!0}function A(){return!1}function B(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)B(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=A;else if(!e)return a;return 1===f&&(g=e,e=function(a){return ya().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=ya.guid++)),a.each(function(){ya.event.add(this,b,e,d,c)})}function C(a,b,c){return c?(Xa.set(a,b,!1),void ya.event.add(a,b,{namespace:!1,handler:function(a){var c,d=Xa.get(this,b);if(1&a.isTrigger&&this[b]){if(d)(ya.event.special[b]||{}).delegateType&&a.stopPropagation();else if(d=ia.call(arguments),Xa.set(this,b,d),this[b](),c=Xa.get(this,b),Xa.set(this,b,!1),d!==c)return a.stopImmediatePropagation(),a.preventDefault(),c}else d&&(Xa.set(this,b,ya.event.trigger(d[0],d.slice(1),this)),a.stopPropagation(),a.isImmediatePropagationStopped=z)}})):void(void 0===Xa.get(a,b)&&ya.event.add(a,b,z))}function D(a,b){return f(a,"table")&&f(11!==b.nodeType?b:b.firstChild,"tr")?ya(a).children("tbody")[0]||a:a}function E(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function F(a){return"true/"===(a.type||"").slice(0,5)?a.type=a.type.slice(5):a.removeAttribute("type"),a}function G(a,b){var c,d,e,f,g,h,i;if(1===b.nodeType){if(Xa.hasData(a)&&(f=Xa.get(a),i=f.events)){Xa.remove(b,"handle events");for(e in i)for(c=0,d=i[e].length;d>c;c++)ya.event.add(b,e,i[e][c])}Ya.hasData(a)&&(g=Ya.access(a),h=ya.extend({},g),Ya.set(b,h))}}function H(a,b){var c=b.nodeName.toLowerCase();"input"===c&&hb.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function I(a,b,d,e){b=ja(b);var f,g,h,i,j,k,l=0,m=a.length,n=m-1,o=b[0],p=sa(o);if(p||m>1&&"string"==typeof o&&!ra.checkClone&&ob.test(o))return a.each(function(c){var f=a.eq(c);p&&(b[0]=o.call(this,c,f.html())),I(f,b,d,e)});if(m&&(f=y(b,a[0].ownerDocument,!1,a,e),g=f.firstChild,1===f.childNodes.length&&(f=g),g||e)){for(h=ya.map(w(f,"script"),E),i=h.length;m>l;l++)j=f,l!==n&&(j=ya.clone(j,!0,!0),i&&ya.merge(h,w(j,"script"))),d.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,ya.map(h,F),l=0;i>l;l++)j=h[l],jb.test(j.type||"")&&!Xa.access(j,"globalEval")&&ya.contains(k,j)&&(j.src&&"module"!==(j.type||"").toLowerCase()?ya._evalUrl&&!j.noModule&&ya._evalUrl(j.src,{nonce:j.nonce||j.getAttribute("nonce")},k):c(j.textContent.replace(pb,""),j,k))}return a}function J(a,b,c){for(var d,e=b?ya.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||ya.cleanData(w(d)),d.parentNode&&(c&&db(d)&&x(w(d,"script")),d.parentNode.removeChild(d));return a}function K(a,b,c){var d,e,f,g,h=rb.test(b),i=a.style;return c=c||sb(a),c&&(g=c.getPropertyValue(b)||c[b],h&&g&&(g=g.replace(Da,"$1")||void 0),""!==g||db(a)||(g=ya.style(a,b)),!ra.pixelBoxStyles()&&qb.test(g)&&ub.test(b)&&(d=i.width,e=i.minWidth,f=i.maxWidth,i.minWidth=i.maxWidth=i.width=g,g=c.width,i.width=d,i.minWidth=e,i.maxWidth=f)),void 0!==g?g+"":g}function L(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function M(a){for(var b=a[0].toUpperCase()+a.slice(1),c=vb.length;c--;)if(a=vb[c]+b,a in wb)return a}function N(a){var b=ya.cssProps[a]||xb[a];return b?b:a in wb?a:xb[a]=M(a)||a}function O(a,b,c){var d=ab.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function P(a,b,c,d,e,f){var g="width"===b?1:0,h=0,i=0,j=0;if(c===(d?"border":"content"))return 0;for(;4>g;g+=2)"margin"===c&&(j+=ya.css(a,c+bb[g],!0,e)),d?("content"===c&&(i-=ya.css(a,"padding"+bb[g],!0,e)),"margin"!==c&&(i-=ya.css(a,"border"+bb[g]+"Width",!0,e))):(i+=ya.css(a,"padding"+bb[g],!0,e),"padding"!==c?i+=ya.css(a,"border"+bb[g]+"Width",!0,e):h+=ya.css(a,"border"+bb[g]+"Width",!0,e));return!d&&f>=0&&(i+=Math.max(0,Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-f-i-h-.5))||0),i+j}function Q(a,b,c){var d=sb(a),e=!ra.boxSizingReliable()||c,g=e&&"border-box"===ya.css(a,"boxSizing",!1,d),h=g,i=K(a,b,d),j="offset"+b[0].toUpperCase()+b.slice(1);if(qb.test(i)){if(!c)return i;i="auto"}return(!ra.boxSizingReliable()&&g||!ra.reliableTrDimensions()&&f(a,"tr")||"auto"===i||!parseFloat(i)&&"inline"===ya.css(a,"display",!1,d))&&a.getClientRects().length&&(g="border-box"===ya.css(a,"boxSizing",!1,d),h=j in a,h&&(i=a[j])),i=parseFloat(i)||0,i+P(a,b,c||(g?"border":"content"),h,d,i)+"px"}function R(a,b,c,d,e){return new R.prototype.init(a,b,c,d,e)}function S(){Cb&&(ua.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(S):a.setTimeout(S,ya.fx.interval),ya.fx.tick())}function T(){return a.setTimeout(function(){Bb=void 0}),Bb=Date.now()}function U(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=bb[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function V(a,b,c){for(var d,e=(Y.tweeners[b]||[]).concat(Y.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function W(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&fb(a),q=Xa.get(a,"fxshow");c.queue||(g=ya._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,ya.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],Db.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||ya.style(a,d)}if(i=!ya.isEmptyObject(b),i||!ya.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=Xa.get(a,"display")),k=ya.css(a,"display"),"none"===k&&(j?k=j:(v([a],!0),j=a.style.display||j,k=ya.css(a,"display"),v([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===ya.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=Xa.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&v([a],!0),m.done(function(){p||v([a]),Xa.remove(a,"fxshow");for(d in n)ya.style(a,d,n[d])})),i=V(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function X(a,b){var c,d,e,f,g;for(c in a)if(d=p(c),e=b[d],f=a[c],Array.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=ya.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Y(a,b,c){var d,e,f=0,g=Y.prefilters.length,h=ya.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Bb||T(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(i||h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:ya.extend({},b),opts:ya.extend(!0,{specialEasing:{},easing:ya.easing._default},c),originalProperties:b,originalOptions:c,startTime:Bb||T(),duration:c.duration,tweens:[],createTween:function(b,c){var d=ya.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(X(k,j.opts.specialEasing);g>f;f++)if(d=Y.prefilters[f].call(j,a,k,j.opts))return sa(d.stop)&&(ya._queueHooks(j.elem,j.opts.queue).stop=d.stop.bind(d)),d;return ya.map(k,V,j),sa(j.opts.start)&&j.opts.start.call(a,j),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always),ya.fx.timer(ya.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j}function Z(a){var b=a.match(Qa)||[];return b.join(" ")}function $(a){return a.getAttribute&&a.getAttribute("class")||""}function _(a){return Array.isArray(a)?a:"string"==typeof a?a.match(Qa)||[]:[]}function aa(a,b,c,e){var f;if(Array.isArray(b))ya.each(b,function(b,d){c||Pb.test(a)?e(a,d):aa(a+"["+("object"==typeof d&&null!=d?b:"")+"]",d,c,e)});else if(c||"object"!==d(b))e(a,b);else for(f in b)aa(a+"["+f+"]",b[f],c,e)}function ba(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(Qa)||[];if(sa(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function ca(a,b,c,d){function e(h){var i;return f[h]=!0,ya.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===_b;return e(b.dataTypes[0])||!f["*"]&&e("*")}function da(a,b){var c,d,e=ya.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&ya.extend(!0,a,d),a}function ea(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function fa(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}var ga=[],ha=Object.getPrototypeOf,ia=ga.slice,ja=ga.flat?function(a){return ga.flat.call(a)}:function(a){return ga.concat.apply([],a)},ka=ga.push,la=ga.indexOf,ma={},na=ma.toString,oa=ma.hasOwnProperty,pa=oa.toString,qa=pa.call(Object),ra={},sa=function(a){return"function"==typeof a&&"number"!=typeof a.nodeType&&"function"!=typeof a.item},ta=function(a){return null!=a&&a===a.window},ua=a.document,va={type:!0,src:!0,nonce:!0,noModule:!0},wa="3.7.1",xa=/HTML$/i,ya=function(a,b){return new ya.fn.init(a,b)};ya.fn=ya.prototype={jquery:wa,constructor:ya,length:0,toArray:function(){return ia.call(this)},get:function(a){return null==a?ia.call(this):0>a?this[a+this.length]:this[a]},pushStack:function(a){var b=ya.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return ya.each(this,a)},map:function(a){return this.pushStack(ya.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(ia.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ya.grep(this,function(a,b){return(b+1)%2}))},odd:function(){return this.pushStack(ya.grep(this,function(a,b){return b%2}))},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:ka,sort:ga.sort,splice:ga.splice},ya.extend=ya.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||sa(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)d=a[b],"__proto__"!==b&&g!==d&&(j&&d&&(ya.isPlainObject(d)||(e=Array.isArray(d)))?(c=g[b],f=e&&!Array.isArray(c)?[]:e||ya.isPlainObject(c)?c:{},e=!1,g[b]=ya.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},ya.extend({expando:"jQuery"+(wa+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isPlainObject:function(a){var b,c;return a&&"[object Object]"===na.call(a)?(b=ha(a))?(c=oa.call(b,"constructor")&&b.constructor,"function"==typeof c&&pa.call(c)===qa):!0:!1},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},globalEval:function(a,b,d){c(a,{nonce:b&&b.nonce},d)},each:function(a,b){var c,d=0;if(e(a))for(c=a.length;c>d&&b.call(a[d],d,a[d])!==!1;d++);else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},text:function(a){var b,c="",d=0,e=a.nodeType;if(!e)for(;b=a[d++];)c+=ya.text(b);return 1===e||11===e?a.textContent:9===e?a.documentElement.textContent:3===e||4===e?a.nodeValue:c},makeArray:function(a,b){var c=b||[];return null!=a&&(e(Object(a))?ya.merge(c,"string"==typeof a?[a]:a):ka.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:la.call(b,a,c)},isXMLDoc:function(a){var b=a&&a.namespaceURI,c=a&&(a.ownerDocument||a).documentElement;return!xa.test(b||c&&c.nodeName||"HTML")},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f,g=0,h=[];if(e(a))for(d=a.length;d>g;g++)f=b(a[g],g,c),null!=f&&h.push(f);else for(g in a)f=b(a[g],g,c),null!=f&&h.push(f);return ja(h)},guid:1,support:ra}),"function"==typeof Symbol&&(ya.fn[Symbol.iterator]=ga[Symbol.iterator]),ya.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){ma["[object "+b+"]"]=b.toLowerCase()});var za=ga.pop,Aa=ga.sort,Ba=ga.splice,Ca="[\\x20\\t\\r\\n\\f]",Da=new RegExp("^"+Ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ca+"+$","g");ya.contains=function(a,b){var c=b&&b.parentNode;return a===c||!(!c||1!==c.nodeType||!(a.contains?a.contains(c):a.compareDocumentPosition&&16&a.compareDocumentPosition(c)))};var Ea=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;ya.escapeSelector=function(a){return(a+"").replace(Ea,g)};var Fa=ua,Ga=ka;!function(){function b(){try{return E.activeElement}catch(a){}}function c(a,b,d,e){var f,g,h,i,j,k,n,q=b&&b.ownerDocument,r=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==r&&9!==r&&11!==r)return d;if(!e&&(m(b),b=b||E,G)){if(11!==r&&(j=da.exec(a)))if(f=j[1]){if(9===r){if(!(h=b.getElementById(f)))return d;if(h.id===f)return J.call(d,h),d}else if(q&&(h=q.getElementById(f))&&c.contains(b,h)&&h.id===f)return J.call(d,h),d}else{if(j[2])return J.apply(d,b.getElementsByTagName(a)),d;if((f=j[3])&&b.getElementsByClassName)return J.apply(d,b.getElementsByClassName(f)),d}if(!(Q[a+" "]||H&&H.test(a))){if(n=a,q=b,1===r&&(Z.test(a)||Y.test(a))){for(q=ea.test(a)&&l(b.parentNode)||b,q==b&&ra.scope||((i=b.getAttribute("id"))?i=ya.escapeSelector(i):b.setAttribute("id",i=K)),k=o(a),g=k.length;g--;)k[g]=(i?"#"+i:":scope")+" "+p(k[g]);n=k.join(",")}try{return J.apply(d,q.querySelectorAll(n)),d}catch(s){Q(a,!0)}finally{i===K&&b.removeAttribute("id")}}}return y(a.replace(Da,"$1"),b,d,e)}function d(){function a(c,d){return b.push(c+" ")>A.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function e(a){return a[K]=!0,a}function g(a){var b=E.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function h(a){return function(b){return f(b,"input")&&b.type===a}}function i(a){return function(b){return(f(b,"input")||f(b,"button"))&&b.type===a}}function j(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ka(b)===a:b.disabled===a:"label"in b?b.disabled===a:!1}}function k(a){return e(function(b){return b=+b,e(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function l(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function m(a){var b,d=a?a.ownerDocument||a:Fa;return d!=E&&9===d.nodeType&&d.documentElement?(E=d,F=E.documentElement,G=!ya.isXMLDoc(E),I=F.matches||F.webkitMatchesSelector||F.msMatchesSelector,F.msMatchesSelector&&Fa!=E&&(b=E.defaultView)&&b.top!==b&&b.addEventListener("unload",ja),ra.getById=g(function(a){return F.appendChild(a).id=ya.expando,!E.getElementsByName||!E.getElementsByName(ya.expando).length}),ra.disconnectedMatch=g(function(a){return I.call(a,"*")}),ra.scope=g(function(){return E.querySelectorAll(":scope")}),ra.cssHas=g(function(){try{return E.querySelector(":has(*,:jqfake)"),!1}catch(a){return!0}}),ra.getById?(A.filter.ID=function(a){var b=a.replace(fa,ha);return function(a){return a.getAttribute("id")===b}},A.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&G){var c=b.getElementById(a);return c?[c]:[]}}):(A.filter.ID=function(a){var b=a.replace(fa,ha);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},A.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&G){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];for(e=b.getElementsByName(a),d=0;f=e[d++];)if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),A.find.TAG=function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):b.querySelectorAll(a)},A.find.CLASS=function(a,b){return"undefined"!=typeof b.getElementsByClassName&&G?b.getElementsByClassName(a):void 0},H=[],g(function(a){var b;F.appendChild(a).innerHTML="",a.querySelectorAll("[selected]").length||H.push("\\["+Ca+"*(?:value|"+S+")"),a.querySelectorAll("[id~="+K+"-]").length||H.push("~="),a.querySelectorAll("a#"+K+"+*").length||H.push(".#.+[+~]"),a.querySelectorAll(":checked").length||H.push(":checked"),b=E.createElement("input"),b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),F.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&H.push(":enabled",":disabled"),b=E.createElement("input"),b.setAttribute("name",""),a.appendChild(b),a.querySelectorAll("[name='']").length||H.push("\\["+Ca+"*name"+Ca+"*="+Ca+"*(?:''|\"\")")}),ra.cssHas||H.push(":has"),H=H.length&&new RegExp(H.join("|")),R=function(a,b){if(a===b)return D=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!ra.sortDetached&&b.compareDocumentPosition(a)===d?a===E||a.ownerDocument==Fa&&c.contains(Fa,a)?-1:b===E||b.ownerDocument==Fa&&c.contains(Fa,b)?1:C?la.call(C,a)-la.call(C,b):0:4&d?-1:1)},E):E}function n(){}function o(a,b){var d,e,f,g,h,i,j,k=O[a+" "];if(k)return b?0:k.slice(0);for(h=a,i=[],j=A.preFilter;h;){(!d||(e=X.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=Y.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(Da," ")}),h=h.slice(d.length));for(g in A.filter)!(e=aa[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return b?h.length:h?c.error(a):O(a,i).slice(0)}function p(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function q(a,b,c){var d=b.dir,e=b.next,g=e||d,h=c&&"parentNode"===g,i=M++;return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||h)return a(b,c,e);return!1}:function(b,c,j){var k,l,m=[L,i];if(j){for(;b=b[d];)if((1===b.nodeType||h)&&a(b,c,j))return!0}else for(;b=b[d];)if(1===b.nodeType||h)if(l=b[K]||(b[K]={}),e&&f(b,e))b=b[d]||b;else{if((k=l[g])&&k[0]===L&&k[1]===i)return m[2]=k[2];if(l[g]=m,m[2]=a(b,c,j))return!0}return!1}}function r(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function s(a,b,d){for(var e=0,f=b.length;f>e;e++)c(a,b[e],d);return d}function t(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function u(a,b,c,d,f,g){return d&&!d[K]&&(d=u(d)),f&&!f[K]&&(f=u(f,g)),e(function(e,g,h,i){var j,k,l,m,n=[],o=[],p=g.length,q=e||s(b||"*",h.nodeType?[h]:h,[]),r=!a||!e&&b?q:t(q,n,a,h,i);if(c?(m=f||(e?a:p||d)?[]:g,c(r,m,h,i)):m=r,d)for(j=t(m,o),d(j,[],h,i),k=j.length;k--;)(l=j[k])&&(m[o[k]]=!(r[o[k]]=l));if(e){if(f||a){if(f){for(j=[],k=m.length;k--;)(l=m[k])&&j.push(r[k]=l);f(null,m=[],j,i)}for(k=m.length;k--;)(l=m[k])&&(j=f?la.call(e,l):n[k])>-1&&(e[j]=!(g[j]=l))}}else m=t(m===g?m.splice(p,m.length):m),f?f(null,g,m,i):J.apply(g,m)})}function v(a){for(var b,c,d,e=a.length,f=A.relative[a[0].type],g=f||A.relative[" "],h=f?1:0,i=q(function(a){return a===b},g,!0),j=q(function(a){return la.call(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!=B)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=A.relative[a[h].type])k=[q(r(k),c)];else{if(c=A.filter[a[h].type].apply(null,a[h].matches),c[K]){for(d=++h;e>d&&!A.relative[a[d].type];d++);return u(h>1&&r(k),h>1&&p(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(Da,"$1"),c,d>h&&v(a.slice(h,d)),e>d&&v(a=a.slice(d)),e>d&&p(a))}k.push(c)}return r(k)}function w(a,b){var c=b.length>0,d=a.length>0,f=function(e,f,g,h,i){var j,k,l,n=0,o="0",p=e&&[],q=[],r=B,s=e||d&&A.find.TAG("*",i),u=L+=null==r?1:Math.random()||.1,v=s.length;for(i&&(B=f==E||f||i);o!==v&&null!=(j=s[o]);o++){if(d&&j){for(k=0,f||j.ownerDocument==E||(m(j),g=!G);l=a[k++];)if(l(j,f||E,g)){J.call(h,j);break}i&&(L=u)}c&&((j=!l&&j)&&n--,e&&p.push(j))}if(n+=o,c&&o!==n){for(k=0;l=b[k++];)l(p,q,f,g);if(e){if(n>0)for(;o--;)p[o]||q[o]||(q[o]=za.call(h));q=t(q)}J.apply(h,q),i&&!e&&q.length>0&&n+b.length>1&&ya.uniqueSort(h)}return i&&(L=u,B=r),p};return c?e(f):f}function x(a,b){var c,d=[],e=[],f=P[a+" "];if(!f){for(b||(b=o(a)),c=b.length;c--;)f=v(b[c]),f[K]?d.push(f):e.push(f);f=P(a,w(e,d)),f.selector=a}return f}function y(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,k=!d&&o(a=j.selector||a);if(c=c||[],1===k.length){if(f=k[0]=k[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&9===b.nodeType&&G&&A.relative[f[1].type]){if(b=(A.find.ID(g.matches[0].replace(fa,ha),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=aa.needsContext.test(a)?0:f.length;e--&&(g=f[e],!A.relative[h=g.type]);)if((i=A.find[h])&&(d=i(g.matches[0].replace(fa,ha),ea.test(f[0].type)&&l(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&p(f),!a)return J.apply(c,d),c;break}}return(j||x(a,k))(d,b,!G,c,!b||ea.test(a)&&l(b.parentNode)||b),c}var z,A,B,C,D,E,F,G,H,I,J=Ga,K=ya.expando,L=0,M=0,N=d(),O=d(),P=d(),Q=d(),R=function(a,b){return a===b&&(D=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",T="(?:\\\\[\\da-fA-F]{1,6}"+Ca+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+",U="\\["+Ca+"*("+T+")(?:"+Ca+"*([*^$|!~]?=)"+Ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+T+"))|)"+Ca+"*\\]",V=":("+T+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",W=new RegExp(Ca+"+","g"),X=new RegExp("^"+Ca+"*,"+Ca+"*"),Y=new RegExp("^"+Ca+"*([>+~]|"+Ca+")"+Ca+"*"),Z=new RegExp(Ca+"|>"),$=new RegExp(V),_=new RegExp("^"+T+"$"),aa={ID:new RegExp("^#("+T+")"),CLASS:new RegExp("^\\.("+T+")"),TAG:new RegExp("^("+T+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ca+"*(even|odd|(([+-]|)(\\d*)n|)"+Ca+"*(?:([+-]|)"+Ca+"*(\\d+)|))"+Ca+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+Ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ca+"*((?:-\\d)?\\d*)"+Ca+"*\\)|)(?=[^-]|$)","i")},ba=/^(?:input|select|textarea|button)$/i,ca=/^h\d$/i,da=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ea=/[+~]/,fa=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ca+"?|\\\\([^\\r\\n\\f])","g"),ha=function(a,b){var c="0x"+a.slice(1)-65536;return b?b:0>c?String.fromCharCode(c+65536):String.fromCharCode(c>>10|55296,1023&c|56320)},ja=function(){m()},ka=q(function(a){return a.disabled===!0&&f(a,"fieldset")},{dir:"parentNode",next:"legend"});try{J.apply(ga=ia.call(Fa.childNodes),Fa.childNodes),ga[Fa.childNodes.length].nodeType}catch(ma){J={apply:function(a,b){Ga.apply(a,ia.call(b))},call:function(a){Ga.apply(a,ia.call(arguments,1))}}}c.matches=function(a,b){return c(a,null,null,b)},c.matchesSelector=function(a,b){if(m(a),G&&!Q[b+" "]&&(!H||!H.test(b)))try{var d=I.call(a,b);if(d||ra.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){Q(b,!0)}return c(b,E,null,[a]).length>0},c.contains=function(a,b){return(a.ownerDocument||a)!=E&&m(a),ya.contains(a,b)},c.attr=function(a,b){(a.ownerDocument||a)!=E&&m(a);var c=A.attrHandle[b.toLowerCase()],d=c&&oa.call(A.attrHandle,b.toLowerCase())?c(a,b,!G):void 0;return void 0!==d?d:a.getAttribute(b)},c.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ya.uniqueSort=function(a){var b,c=[],d=0,e=0;if(D=!ra.sortStable,C=!ra.sortStable&&ia.call(a,0),Aa.call(a,R),D){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)Ba.call(a,c[d],1)}return C=null,a},ya.fn.uniqueSort=function(){return this.pushStack(ya.uniqueSort(ia.apply(this)))},A=ya.expr={cacheLength:50,createPseudo:e,match:aa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(fa,ha),a[3]=(a[3]||a[4]||a[5]||"").replace(fa,ha),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||c.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&c.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return aa.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&$.test(c)&&(b=o(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(fa,ha).toLowerCase();return"*"===a?function(){return!0}:function(a){return f(a,b)}},CLASS:function(a){var b=N[a+" "];return b||(b=new RegExp("(^|"+Ca+")"+a+"("+Ca+"|$)"))&&N(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,d){return function(e){var f=c.attr(e,a);return null==f?"!="===b:b?(f+="","="===b?f===d:"!="===b?f!==d:"^="===b?d&&0===f.indexOf(d):"*="===b?d&&f.indexOf(d)>-1:"$="===b?d&&f.slice(-d.length)===d:"~="===b?(" "+f.replace(W," ")+" ").indexOf(d)>-1:"|="===b?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var g="nth"!==a.slice(0,3),h="last"!==a.slice(-4),i="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,j){var k,l,m,n,o,p=g!==h?"nextSibling":"previousSibling",q=b.parentNode,r=i&&b.nodeName.toLowerCase(),s=!j&&!i,t=!1;if(q){if(g){for(;p;){for(m=b;m=m[p];)if(i?f(m,r):1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[h?q.firstChild:q.lastChild],h&&s){for(l=q[K]||(q[K]={}),k=l[a]||[],n=k[0]===L&&k[1],t=n&&k[2],m=n&&q.childNodes[n];m=++n&&m&&m[p]||(t=n=0)||o.pop();)if(1===m.nodeType&&++t&&m===b){l[a]=[L,n,t];break}}else if(s&&(l=b[K]||(b[K]={}),k=l[a]||[],n=k[0]===L&&k[1],t=n),t===!1)for(;(m=++n&&m&&m[p]||(t=n=0)||o.pop())&&((i?!f(m,r):1!==m.nodeType)||!++t||(s&&(l=m[K]||(m[K]={}),l[a]=[L,t]),m!==b)););return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var d,f=A.pseudos[a]||A.setFilters[a.toLowerCase()]||c.error("unsupported pseudo: "+a);return f[K]?f(b):f.length>1?(d=[a,a,"",b],A.setFilters.hasOwnProperty(a.toLowerCase())?e(function(a,c){for(var d,e=f(a,b),g=e.length;g--;)d=la.call(a,e[g]),a[d]=!(c[d]=e[g])}):function(a){return f(a,0,d); + }):f}},pseudos:{not:e(function(a){var b=[],c=[],d=x(a.replace(Da,"$1"));return d[K]?e(function(a,b,c,e){for(var f,g=d(a,null,e,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:e(function(a){return function(b){return c(a,b).length>0}}),contains:e(function(a){return a=a.replace(fa,ha),function(b){return(b.textContent||ya.text(b)).indexOf(a)>-1}}),lang:e(function(a){return _.test(a||"")||c.error("unsupported lang: "+a),a=a.replace(fa,ha).toLowerCase(),function(b){var c;do if(c=G?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===F},focus:function(a){return a===b()&&E.hasFocus()&&!!(a.type||a.href||~a.tabIndex)},enabled:j(!1),disabled:j(!0),checked:function(a){return f(a,"input")&&!!a.checked||f(a,"option")&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!A.pseudos.empty(a)},header:function(a){return ca.test(a.nodeName)},input:function(a){return ba.test(a.nodeName)},button:function(a){return f(a,"input")&&"button"===a.type||f(a,"button")},text:function(a){var b;return f(a,"input")&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:k(function(){return[0]}),last:k(function(a,b){return[b-1]}),eq:k(function(a,b,c){return[0>c?c+b:c]}),even:k(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:k(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:k(function(a,b,c){var d;for(d=0>c?c+b:c>b?b:c;--d>=0;)a.push(d);return a}),gt:k(function(a,b,c){for(var d=0>c?c+b:c;++d:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;ya.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?ya.find.matchesSelector(d,a)?[d]:[]:ya.find.matches(a,ya.grep(b,function(a){return 1===a.nodeType}))},ya.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(ya(a).filter(function(){for(b=0;d>b;b++)if(ya.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;d>b;b++)ya.find(a,e[b],c);return d>1?ya.uniqueSort(c):c},filter:function(a){return this.pushStack(h(this,a||[],!1))},not:function(a){return this.pushStack(h(this,a||[],!0))},is:function(a){return!!h(this,"string"==typeof a&&Ja.test(a)?ya(a):a||[],!1).length}});var La,Ma=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Na=ya.fn.init=function(a,b,c){var d,e;if(!a)return this;if(c=c||La,"string"==typeof a){if(d="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:Ma.exec(a),!d||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(d[1]){if(b=b instanceof ya?b[0]:b,ya.merge(this,ya.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:ua,!0)),Ka.test(d[1])&&ya.isPlainObject(b))for(d in b)sa(this[d])?this[d](b[d]):this.attr(d,b[d]);return this}return e=ua.getElementById(d[2]),e&&(this[0]=e,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):sa(a)?void 0!==c.ready?c.ready(a):a(ya):ya.makeArray(a,this)};Na.prototype=ya.fn,La=ya(ua);var Oa=/^(?:parents|prev(?:Until|All))/,Pa={children:!0,contents:!0,next:!0,prev:!0};ya.fn.extend({has:function(a){var b=ya(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(ya.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&ya(a);if(!Ja.test(a))for(;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&ya.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?ya.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?la.call(ya(a),this[0]):la.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(ya.uniqueSort(ya.merge(this.get(),ya(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),ya.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return Ha(a,"parentNode")},parentsUntil:function(a,b,c){return Ha(a,"parentNode",c)},next:function(a){return i(a,"nextSibling")},prev:function(a){return i(a,"previousSibling")},nextAll:function(a){return Ha(a,"nextSibling")},prevAll:function(a){return Ha(a,"previousSibling")},nextUntil:function(a,b,c){return Ha(a,"nextSibling",c)},prevUntil:function(a,b,c){return Ha(a,"previousSibling",c)},siblings:function(a){return Ia((a.parentNode||{}).firstChild,a)},children:function(a){return Ia(a.firstChild)},contents:function(a){return null!=a.contentDocument&&ha(a.contentDocument)?a.contentDocument:(f(a,"template")&&(a=a.content||a),ya.merge([],a.childNodes))}},function(a,b){ya.fn[a]=function(c,d){var e=ya.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=ya.filter(d,e)),this.length>1&&(Pa[a]||ya.uniqueSort(e),Oa.test(a)&&e.reverse()),this.pushStack(e)}});var Qa=/[^\x20\t\r\n\f]+/g;ya.Callbacks=function(a){a="string"==typeof a?j(a):ya.extend({},a);var b,c,e,f,g=[],h=[],i=-1,k=function(){for(f=f||a.once,e=b=!0;h.length;i=-1)for(c=h.shift();++i-1;)g.splice(c,1),i>=c&&i--}),this},has:function(a){return a?ya.inArray(a,g)>-1:g.length>0},empty:function(){return g&&(g=[]),this},disable:function(){return f=h=[],g=c="",this},disabled:function(){return!g},lock:function(){return f=h=[],c||b||(g=c=""),this},locked:function(){return!!f},fireWith:function(a,c){return f||(c=c||[],c=[a,c.slice?c.slice():c],h.push(c),b||k()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!e}};return l},ya.extend({Deferred:function(b){var c=[["notify","progress",ya.Callbacks("memory"),ya.Callbacks("memory"),2],["resolve","done",ya.Callbacks("once memory"),ya.Callbacks("once memory"),0,"resolved"],["reject","fail",ya.Callbacks("once memory"),ya.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return ya.Deferred(function(b){ya.each(c,function(c,d){var e=sa(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&sa(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){function f(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(g>b)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,sa(j)?e?j.call(a,f(g,c,k,e),f(g,c,l,e)):(g++,j.call(a,f(g,c,k,e),f(g,c,l,e),f(g,c,k,c.notifyWith))):(d!==k&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},m=e?j:function(){try{j()}catch(a){ya.Deferred.exceptionHook&&ya.Deferred.exceptionHook(a,m.error),b+1>=g&&(d!==l&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?m():(ya.Deferred.getErrorHook?m.error=ya.Deferred.getErrorHook():ya.Deferred.getStackHook&&(m.error=ya.Deferred.getStackHook()),a.setTimeout(m))}}var g=0;return ya.Deferred(function(a){c[0][3].add(f(0,a,sa(e)?e:k,a.notifyWith)),c[1][3].add(f(0,a,sa(b)?b:k)),c[2][3].add(f(0,a,sa(d)?d:l))}).promise()},promise:function(a){return null!=a?ya.extend(a,e):e}},f={};return ya.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[3-a][3].disable,c[0][2].lock,c[0][3].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=ia.call(arguments),f=ya.Deferred(),g=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?ia.call(arguments):c,--b||f.resolveWith(d,e)}};if(1>=b&&(m(a,f.done(g(c)).resolve,f.reject,!b),"pending"===f.state()||sa(e[c]&&e[c].then)))return f.then();for(;c--;)m(e[c],g(c),f.reject);return f.promise()}});var Ra=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ya.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Ra.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},ya.readyException=function(b){a.setTimeout(function(){throw b})};var Sa=ya.Deferred();ya.fn.ready=function(a){return Sa.then(a)["catch"](function(a){ya.readyException(a)}),this},ya.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--ya.readyWait:ya.isReady)||(ya.isReady=!0,a!==!0&&--ya.readyWait>0||Sa.resolveWith(ua,[ya]))}}),ya.ready.then=Sa.then,"complete"===ua.readyState||"loading"!==ua.readyState&&!ua.documentElement.doScroll?a.setTimeout(ya.ready):(ua.addEventListener("DOMContentLoaded",n),a.addEventListener("load",n));var Ta=function(a,b,c,e,f,g,h){var i=0,j=a.length,k=null==c;if("object"===d(c)){f=!0;for(i in c)Ta(a,b,i,c[i],!0,g,h)}else if(void 0!==e&&(f=!0,sa(e)||(h=!0),k&&(h?(b.call(a,e),b=null):(k=b,b=function(a,b,c){return k.call(ya(a),c)})),b))for(;j>i;i++)b(a[i],c,h?e:e.call(a[i],i,b(a[i],c)));return f?a:k?b.call(a):j?b(a[0],c):g},Ua=/^-ms-/,Va=/-([a-z])/g,Wa=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};q.uid=1,q.prototype={cache:function(a){var b=a[this.expando];return b||(b={},Wa(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[p(b)]=c;else for(d in b)e[p(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][p(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){Array.isArray(b)?b=b.map(p):(b=p(b),b=b in d?[b]:b.match(Qa)||[]),c=b.length;for(;c--;)delete d[b[c]]}(void 0===b||ya.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!ya.isEmptyObject(b)}};var Xa=new q,Ya=new q,Za=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$a=/[A-Z]/g;ya.extend({hasData:function(a){return Ya.hasData(a)||Xa.hasData(a)},data:function(a,b,c){return Ya.access(a,b,c)},removeData:function(a,b){Ya.remove(a,b)},_data:function(a,b,c){return Xa.access(a,b,c)},_removeData:function(a,b){Xa.remove(a,b)}}),ya.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=Ya.get(f),1===f.nodeType&&!Xa.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=p(d.slice(5)),s(f,d,e[d])));Xa.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){Ya.set(this,a)}):Ta(this,function(b){var c;if(f&&void 0===b){if(c=Ya.get(f,a),void 0!==c)return c;if(c=s(f,a),void 0!==c)return c}else this.each(function(){Ya.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){Ya.remove(this,a)})}}),ya.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=Xa.get(a,b),c&&(!d||Array.isArray(c)?d=Xa.access(a,b,ya.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=ya.queue(a,b),d=c.length,e=c.shift(),f=ya._queueHooks(a,b),g=function(){ya.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return Xa.get(a,c)||Xa.access(a,c,{empty:ya.Callbacks("once memory").add(function(){Xa.remove(a,[b+"queue",c])})})}}),ya.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]*)/i,jb=/^$|^module$|\/(?:java|ecma)script/i;!function(){var a=ua.createDocumentFragment(),b=a.appendChild(ua.createElement("div")),c=ua.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),ra.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",ra.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML="",ra.option=!!b.lastChild}();var kb={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};kb.tbody=kb.tfoot=kb.colgroup=kb.caption=kb.thead,kb.th=kb.td,ra.option||(kb.optgroup=kb.option=[1,""]);var lb=/<|&#?\w+;/,mb=/^([^.]*)(?:\.(.+)|)/;ya.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Xa.get(a);if(Wa(a))for(c.handler&&(f=c,c=f.handler,e=f.selector),e&&ya.find.matchesSelector(cb,e),c.guid||(c.guid=ya.guid++),(i=q.events)||(i=q.events=Object.create(null)),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof ya&&ya.event.triggered!==b.type?ya.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(Qa)||[""],j=b.length;j--;)h=mb.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=ya.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=ya.event.special[n]||{},k=ya.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&ya.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),ya.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Xa.hasData(a)&&Xa.get(a);if(q&&(i=q.events)){for(b=(b||"").match(Qa)||[""],j=b.length;j--;)if(h=mb.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=ya.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||ya.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)ya.event.remove(a,n+b[j],c,d,!0);ya.isEmptyObject(i)&&Xa.remove(a,"handle events")}},dispatch:function(a){var b,c,d,e,f,g,h=new Array(arguments.length),i=ya.event.fix(a),j=(Xa.get(this,"events")||Object.create(null))[i.type]||[],k=ya.event.special[i.type]||{};for(h[0]=i,b=1;b=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;i>c;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?ya(e,this).index(j)>-1:ya.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i\s*$/g;ya.extend({htmlPrefilter:function(a){return a},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=db(a);if(!(ra.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||ya.isXMLDoc(a)))for(g=w(h),f=w(a),d=0,e=f.length;e>d;d++)H(f[d],g[d]);if(b)if(c)for(f=f||w(a),g=g||w(h),d=0,e=f.length;e>d;d++)G(f[d],g[d]);else G(a,h);return g=w(h,"script"),g.length>0&&x(g,!i&&w(a,"script")),h},cleanData:function(a){for(var b,c,d,e=ya.event.special,f=0;void 0!==(c=a[f]);f++)if(Wa(c)){if(b=c[Xa.expando]){if(b.events)for(d in b.events)e[d]?ya.event.remove(c,d):ya.removeEvent(c,d,b.handle);c[Xa.expando]=void 0}c[Ya.expando]&&(c[Ya.expando]=void 0)}}}),ya.fn.extend({detach:function(a){return J(this,a,!0)},remove:function(a){return J(this,a)},text:function(a){return Ta(this,function(a){return void 0===a?ya.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return I(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=D(this,a);b.appendChild(a)}})},prepend:function(){return I(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=D(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return I(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return I(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(ya.cleanData(w(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return ya.clone(this,a,b)})},html:function(a){return Ta(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!nb.test(a)&&!kb[(ib.exec(a)||["",""])[1].toLowerCase()]){a=ya.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(ya.cleanData(w(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return I(this,arguments,function(b){var c=this.parentNode;ya.inArray(this,a)<0&&(ya.cleanData(w(this)),c&&c.replaceChild(b,this))},a)}}),ya.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){ya.fn[a]=function(a){for(var c,d=[],e=ya(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),ya(e[g])[b](c),ka.apply(d,c.get());return this.pushStack(d)}});var qb=new RegExp("^("+_a+")(?!px)[a-z%]+$","i"),rb=/^--/,sb=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},tb=function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d},ub=new RegExp(bb.join("|"),"i");!function(){function b(){if(k){j.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",k.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",cb.appendChild(j).appendChild(k);var b=a.getComputedStyle(k);d="1%"!==b.top,i=12===c(b.marginLeft),k.style.right="60%",g=36===c(b.right),e=36===c(b.width),k.style.position="absolute",f=12===c(k.offsetWidth/3),cb.removeChild(j),k=null}}function c(a){return Math.round(parseFloat(a))}var d,e,f,g,h,i,j=ua.createElement("div"),k=ua.createElement("div");k.style&&(k.style.backgroundClip="content-box",k.cloneNode(!0).style.backgroundClip="",ra.clearCloneStyle="content-box"===k.style.backgroundClip,ya.extend(ra,{boxSizingReliable:function(){return b(),e},pixelBoxStyles:function(){return b(),g},pixelPosition:function(){return b(),d},reliableMarginLeft:function(){return b(),i},scrollboxSize:function(){return b(),f},reliableTrDimensions:function(){var b,c,d,e;return null==h&&(b=ua.createElement("table"),c=ua.createElement("tr"),d=ua.createElement("div"),b.style.cssText="position:absolute;left:-11111px;border-collapse:separate",c.style.cssText="box-sizing:content-box;border:1px solid",c.style.height="1px",d.style.height="9px",d.style.display="block",cb.appendChild(b).appendChild(c).appendChild(d),e=a.getComputedStyle(c),h=parseInt(e.height,10)+parseInt(e.borderTopWidth,10)+parseInt(e.borderBottomWidth,10)===c.offsetHeight,cb.removeChild(b)),h}}))}();var vb=["Webkit","Moz","ms"],wb=ua.createElement("div").style,xb={},yb=/^(none|table(?!-c[ea]).+)/,zb={position:"absolute",visibility:"hidden",display:"block"},Ab={letterSpacing:"0",fontWeight:"400"};ya.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=K(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=p(b),i=rb.test(b),j=a.style;return i||(b=N(h)),g=ya.cssHooks[b]||ya.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:j[b]:(f=typeof c,"string"===f&&(e=ab.exec(c))&&e[1]&&(c=t(a,b,e),f="number"),null!=c&&c===c&&("number"!==f||i||(c+=e&&e[3]||(ya.cssNumber[h]?"":"px")),ra.clearCloneStyle||""!==c||0!==b.indexOf("background")||(j[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i?j.setProperty(b,c):j[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=p(b),i=rb.test(b);return i||(b=N(h)),g=ya.cssHooks[b]||ya.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=K(a,b,d)),"normal"===e&&b in Ab&&(e=Ab[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),ya.each(["height","width"],function(a,b){ya.cssHooks[b]={get:function(a,c,d){return c?!yb.test(ya.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?Q(a,b,d):tb(a,zb,function(){return Q(a,b,d)}):void 0},set:function(a,c,d){var e,f=sb(a),g=!ra.scrollboxSize()&&"absolute"===f.position,h=g||d,i=h&&"border-box"===ya.css(a,"boxSizing",!1,f),j=d?P(a,b,d,i,f):0;return i&&g&&(j-=Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(f[b])-P(a,b,"border",!1,f)-.5)),j&&(e=ab.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=ya.css(a,b)),O(a,c,j)}}}),ya.cssHooks.marginLeft=L(ra.reliableMarginLeft,function(a,b){return b?(parseFloat(K(a,"marginLeft"))||a.getBoundingClientRect().left-tb(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),ya.each({margin:"",padding:"",border:"Width"},function(a,b){ya.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+bb[d]+b]=f[d]||f[d-2]||f[0];return e}},"margin"!==a&&(ya.cssHooks[a+b].set=O)}),ya.fn.extend({css:function(a,b){return Ta(this,function(a,b,c){var d,e,f={},g=0;if(Array.isArray(b)){for(d=sb(a),e=b.length;e>g;g++)f[b[g]]=ya.css(a,b[g],!1,d);return f}return void 0!==c?ya.style(a,b,c):ya.css(a,b)},a,b,arguments.length>1)}}),ya.Tween=R,R.prototype={constructor:R,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||ya.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(ya.cssNumber[c]?"":"px")},cur:function(){var a=R.propHooks[this.prop];return a&&a.get?a.get(this):R.propHooks._default.get(this)},run:function(a){var b,c=R.propHooks[this.prop];return this.options.duration?this.pos=b=ya.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=ya.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){ya.fx.step[a.prop]?ya.fx.step[a.prop](a):1!==a.elem.nodeType||!ya.cssHooks[a.prop]&&null==a.elem.style[N(a.prop)]?a.elem[a.prop]=a.now:ya.style(a.elem,a.prop,a.now+a.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},ya.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},ya.fx=R.prototype.init,ya.fx.step={};var Bb,Cb,Db=/^(?:toggle|show|hide)$/,Eb=/queueHooks$/;ya.Animation=ya.extend(Y,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return t(c.elem,a,ab.exec(b),c),c}]},tweener:function(a,b){sa(a)?(b=a,a=["*"]):a=a.match(Qa);for(var c,d=0,e=a.length;e>d;d++)c=a[d],Y.tweeners[c]=Y.tweeners[c]||[],Y.tweeners[c].unshift(b)},prefilters:[W],prefilter:function(a,b){b?Y.prefilters.unshift(a):Y.prefilters.push(a)}}),ya.speed=function(a,b,c){var d=a&&"object"==typeof a?ya.extend({},a):{complete:c||!c&&b||sa(a)&&a,duration:a,easing:c&&b||b&&!sa(b)&&b};return ya.fx.off?d.duration=0:"number"!=typeof d.duration&&(d.duration in ya.fx.speeds?d.duration=ya.fx.speeds[d.duration]:d.duration=ya.fx.speeds._default),(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){ + sa(d.old)&&d.old.call(this),d.queue&&ya.dequeue(this,d.queue)},d},ya.fn.extend({fadeTo:function(a,b,c,d){return this.filter(fb).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=ya.isEmptyObject(a),f=ya.speed(b,c,d),g=function(){var b=Y(this,ya.extend({},a),f);(e||Xa.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=ya.timers,g=Xa.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Eb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&ya.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=Xa.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=ya.timers,g=d?d.length:0;for(c.finish=!0,ya.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),ya.each(["toggle","show","hide"],function(a,b){var c=ya.fn[b];ya.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(U(b,!0),a,d,e)}}),ya.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){ya.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),ya.timers=[],ya.fx.tick=function(){var a,b=0,c=ya.timers;for(Bb=Date.now();b1)},removeAttr:function(a){return this.each(function(){ya.removeAttr(this,a)})}}),ya.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?ya.prop(a,b,c):(1===f&&ya.isXMLDoc(a)||(e=ya.attrHooks[b.toLowerCase()]||(ya.expr.match.bool.test(b)?Fb:void 0)),void 0!==c?null===c?void ya.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=ya.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!ra.radioValue&&"radio"===b&&f(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(Qa);if(e&&1===a.nodeType)for(;c=e[d++];)a.removeAttribute(c)}}),Fb={set:function(a,b,c){return b===!1?ya.removeAttr(a,c):a.setAttribute(c,c),c}},ya.each(ya.expr.match.bool.source.match(/\w+/g),function(a,b){var c=Gb[b]||ya.find.attr;Gb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=Gb[g],Gb[g]=e,e=null!=c(a,b,d)?g:null,Gb[g]=f),e}});var Hb=/^(?:input|select|textarea|button)$/i,Ib=/^(?:a|area)$/i;ya.fn.extend({prop:function(a,b){return Ta(this,ya.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[ya.propFix[a]||a]})}}),ya.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&ya.isXMLDoc(a)||(b=ya.propFix[b]||b,e=ya.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=ya.find.attr(a,"tabindex");return b?parseInt(b,10):Hb.test(a.nodeName)||Ib.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ra.optSelected||(ya.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),ya.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ya.propFix[this.toLowerCase()]=this}),ya.fn.extend({addClass:function(a){var b,c,d,e,f,g;return sa(a)?this.each(function(b){ya(this).addClass(a.call(this,b,$(this)))}):(b=_(a),b.length?this.each(function(){if(d=$(this),c=1===this.nodeType&&" "+Z(d)+" "){for(f=0;f-1;)c=c.replace(" "+e+" "," ");g=Z(c),d!==g&&this.setAttribute("class",g)}}):this):this.attr("class","")},toggleClass:function(a,b){var c,d,e,f,g=typeof a,h="string"===g||Array.isArray(a);return sa(a)?this.each(function(c){ya(this).toggleClass(a.call(this,c,$(this),b),b)}):"boolean"==typeof b&&h?b?this.addClass(a):this.removeClass(a):(c=_(a),this.each(function(){if(h)for(f=ya(this),e=0;e-1)return!0;return!1}});var Jb=/\r/g;ya.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=sa(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,ya(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=ya.map(e,function(a){return null==a?"":a+""})),b=ya.valHooks[this.type]||ya.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=ya.valHooks[e.type]||ya.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(Jb,""):null==c?"":c)}}}),ya.extend({valHooks:{option:{get:function(a){var b=ya.find.attr(a,"value");return null!=b?b:Z(ya.text(a))}},select:{get:function(a){var b,c,d,e=a.options,g=a.selectedIndex,h="select-one"===a.type,i=h?null:[],j=h?g+1:e.length;for(d=0>g?j:h?g:0;j>d;d++)if(c=e[d],(c.selected||d===g)&&!c.disabled&&(!c.parentNode.disabled||!f(c.parentNode,"optgroup"))){if(b=ya(c).val(),h)return b;i.push(b)}return i},set:function(a,b){for(var c,d,e=a.options,f=ya.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=ya.inArray(ya.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),ya.each(["radio","checkbox"],function(){ya.valHooks[this]={set:function(a,b){return Array.isArray(b)?a.checked=ya.inArray(ya(a).val(),b)>-1:void 0}},ra.checkOn||(ya.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var Kb=a.location,Lb={guid:Date.now()},Mb=/\?/;ya.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(e){}return d=c&&c.getElementsByTagName("parsererror")[0],(!c||d)&&ya.error("Invalid XML: "+(d?ya.map(d.childNodes,function(a){return a.textContent}).join("\n"):b)),c};var Nb=/^(?:focusinfocus|focusoutblur)$/,Ob=function(a){a.stopPropagation()};ya.extend(ya.event,{trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m,n=[d||ua],o=oa.call(b,"type")?b.type:b,p=oa.call(b,"namespace")?b.namespace.split("."):[];if(g=m=h=d=d||ua,3!==d.nodeType&&8!==d.nodeType&&!Nb.test(o+ya.event.triggered)&&(o.indexOf(".")>-1&&(p=o.split("."),o=p.shift(),p.sort()),j=o.indexOf(":")<0&&"on"+o,b=b[ya.expando]?b:new ya.Event(o,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=p.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:ya.makeArray(c,[b]),l=ya.event.special[o]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!ta(d)){for(i=l.delegateType||o,Nb.test(i+o)||(g=g.parentNode);g;g=g.parentNode)n.push(g),h=g;h===(d.ownerDocument||ua)&&n.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=n[f++])&&!b.isPropagationStopped();)m=g,b.type=f>1?i:l.bindType||o,k=(Xa.get(g,"events")||Object.create(null))[b.type]&&Xa.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&Wa(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=o,e||b.isDefaultPrevented()||l._default&&l._default.apply(n.pop(),c)!==!1||!Wa(d)||j&&sa(d[o])&&!ta(d)&&(h=d[j],h&&(d[j]=null),ya.event.triggered=o,b.isPropagationStopped()&&m.addEventListener(o,Ob),d[o](),b.isPropagationStopped()&&m.removeEventListener(o,Ob),ya.event.triggered=void 0,h&&(d[j]=h)),b.result}},simulate:function(a,b,c){var d=ya.extend(new ya.Event,c,{type:a,isSimulated:!0});ya.event.trigger(d,null,b)}}),ya.fn.extend({trigger:function(a,b){return this.each(function(){ya.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?ya.event.trigger(a,b,c,!0):void 0}});var Pb=/\[\]$/,Qb=/\r?\n/g,Rb=/^(?:submit|button|image|reset|file)$/i,Sb=/^(?:input|select|textarea|keygen)/i;ya.param=function(a,b){var c,d=[],e=function(a,b){var c=sa(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(null==a)return"";if(Array.isArray(a)||a.jquery&&!ya.isPlainObject(a))ya.each(a,function(){e(this.name,this.value)});else for(c in a)aa(c,a[c],b,e);return d.join("&")},ya.fn.extend({serialize:function(){return ya.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=ya.prop(this,"elements");return a?ya.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!ya(this).is(":disabled")&&Sb.test(this.nodeName)&&!Rb.test(a)&&(this.checked||!hb.test(a))}).map(function(a,b){var c=ya(this).val();return null==c?null:Array.isArray(c)?ya.map(c,function(a){return{name:b.name,value:a.replace(Qb,"\r\n")}}):{name:b.name,value:c.replace(Qb,"\r\n")}}).get()}});var Tb=/%20/g,Ub=/#.*$/,Vb=/([?&])_=[^&]*/,Wb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Xb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yb=/^(?:GET|HEAD)$/,Zb=/^\/\//,$b={},_b={},ac="*/".concat("*"),bc=ua.createElement("a");bc.href=Kb.href,ya.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Kb.href,type:"GET",isLocal:Xb.test(Kb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ac,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ya.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?da(da(a,ya.ajaxSettings),b):da(ya.ajaxSettings,a)},ajaxPrefilter:ba($b),ajaxTransport:ba(_b),ajax:function(b,c){function d(b,c,d,h){var j,m,n,u,v,w=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=ea(o,x,d)),!j&&ya.inArray("script",o.dataTypes)>-1&&ya.inArray("json",o.dataTypes)<0&&(o.converters["text script"]=function(){}),u=fa(o,u,x,j),j?(o.ifModified&&(v=x.getResponseHeader("Last-Modified"),v&&(ya.lastModified[f]=v),v=x.getResponseHeader("etag"),v&&(ya.etag[f]=v)),204===b||"HEAD"===o.type?w="nocontent":304===b?w="notmodified":(w=u.state,m=u.data,n=u.error,j=!n)):(n=w,(b||!w)&&(w="error",0>b&&(b=0))),x.status=b,x.statusText=(c||w)+"",j?r.resolveWith(p,[m,w,x]):r.rejectWith(p,[x,w,n]),x.statusCode(t),t=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[x,o,j?m:n]),s.fireWith(p,[x,w]),l&&(q.trigger("ajaxComplete",[x,o]),--ya.active||ya.event.trigger("ajaxStop")))}"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=ya.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?ya(p):ya.event,r=ya.Deferred(),s=ya.Callbacks("once memory"),t=o.statusCode||{},u={},v={},w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h)for(h={};b=Wb.exec(g);)h[b[1].toLowerCase()+" "]=(h[b[1].toLowerCase()+" "]||[]).concat(b[2]);b=h[a.toLowerCase()+" "]}return null==b?null:b.join(", ")},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=v[a.toLowerCase()]=v[a.toLowerCase()]||a,u[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)x.always(a[x.status]);else for(b in a)t[b]=[t[b],a[b]];return this},abort:function(a){var b=a||w;return e&&e.abort(b),d(0,b),this}};if(r.promise(x),o.url=((b||o.url||Kb.href)+"").replace(Zb,Kb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(Qa)||[""],null==o.crossDomain){j=ua.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=bc.protocol+"//"+bc.host!=j.protocol+"//"+j.host}catch(y){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=ya.param(o.data,o.traditional)),ca($b,o,c,x),k)return x;l=ya.event&&o.global,l&&0===ya.active++&&ya.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Yb.test(o.type),f=o.url.replace(Ub,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Tb,"+")):(n=o.url.slice(f.length),o.data&&(o.processData||"string"==typeof o.data)&&(f+=(Mb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Vb,"$1"),n=(Mb.test(f)?"&":"?")+"_="+Lb.guid++ +n),o.url=f+n),o.ifModified&&(ya.lastModified[f]&&x.setRequestHeader("If-Modified-Since",ya.lastModified[f]),ya.etag[f]&&x.setRequestHeader("If-None-Match",ya.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",o.contentType),x.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+ac+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)x.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,x,o)===!1||k))return x.abort();if(w="abort",s.add(o.complete),x.done(o.success),x.fail(o.error),e=ca(_b,o,c,x)){if(x.readyState=1,l&&q.trigger("ajaxSend",[x,o]),k)return x;o.async&&o.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},o.timeout));try{k=!1,e.send(u,d)}catch(y){if(k)throw y;d(-1,y)}}else d(-1,"No Transport");return x},getJSON:function(a,b,c){return ya.get(a,b,c,"json")},getScript:function(a,b){return ya.get(a,void 0,b,"script")}}),ya.each(["get","post"],function(a,b){ya[b]=function(a,c,d,e){return sa(c)&&(e=e||d,d=c,c=void 0),ya.ajax(ya.extend({url:a,type:b,dataType:e,data:c,success:d},ya.isPlainObject(a)&&a))}}),ya.ajaxPrefilter(function(a){var b;for(b in a.headers)"content-type"===b.toLowerCase()&&(a.contentType=a.headers[b]||"")}),ya._evalUrl=function(a,b,c){return ya.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(a){ya.globalEval(a,b,c)}})},ya.fn.extend({wrapAll:function(a){var b;return this[0]&&(sa(a)&&(a=a.call(this[0])),b=ya(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return sa(a)?this.each(function(b){ya(this).wrapInner(a.call(this,b))}):this.each(function(){var b=ya(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=sa(a);return this.each(function(c){ya(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){ya(this).replaceWith(this.childNodes)}),this}}),ya.expr.pseudos.hidden=function(a){return!ya.expr.pseudos.visible(a)},ya.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},ya.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var cc={0:200,1223:204},dc=ya.ajaxSettings.xhr();ra.cors=!!dc&&"withCredentials"in dc,ra.ajax=dc=!!dc,ya.ajaxTransport(function(b){var c,d;return ra.cors||dc&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.ontimeout=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(cc[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=h.ontimeout=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),ya.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),ya.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return ya.globalEval(a),a}}}),ya.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),ya.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var b,c;return{send:function(d,e){b=ya("