· 8 years ago · Mar 08, 2018, 12:38 PM
1
2<!doctype html>
3<html lang="en" dir="ltr">
4<head>
5
6<meta charset="utf-8">
7
8<link rel="stylesheet" type="text/css" href="assets/vendor/cbc-videoplayer-controls-tvnow/css/bitmovinplayer-ui.css"><script type="text/javascript" async="" src="https://cdn.adrtx.net/adrtxtag.min.js"></script><script async="">var _adrtx = _adrtx || {}; _adrtx.rt = "ti"; _adrtx.p = "adaud"; (function() { var adrtx = document.createElement("script"); adrtx.type = "text/javascript"; adrtx.async = true; adrtx.src = ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.adrtx.net/adrtxtag.min.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(adrtx, s); })();</script><script async="">window.ada_publisher = "ada_publisher=EMS";</script><script async="">_EQPService.Cookie.setCookie('adp_segs', 'e0', 3);</script><script async="">var _emqYL = new Image(); _emqYL.src = ("https:" == document.location.protocol ? "https:" : "http:") + "//p.yieldlab.net/m?dm_id=23666&ext_id=BSakBia-BDaZESbABSf-BiUABifkBi7kWsfABiUABifABfrr&ddata_seg=e0";</script><script async="">var _emqConImpact = new Image(); _emqConImpact.src = ("https:" == document.location.protocol ? "https:" : "http:") + "//d.df-srv.de/match/a.js?pid=42";</script><script async="">var _emqAdexGif = new Image(); _emqAdexGif.src = ("https:" == document.location.protocol ? "https:" : "http:") + "//xpl.theadex.com/d/279/i/2.gif?axd_pid=22&axd_fuid=BSakBia-BDaZESbABSf-BiUABifkBi7kWsfABiUABifABfrr";</script><script src="https://ups.xplosion.de/data?title=Die%20Millionen-Party%20-%20Das%20Oktoberfest%20aus%20n-tv%20Dokumentation%20online%20schauen%20als%20Stream%20bei%20TV%20NOW&hostSiteUrl=https%3A%2F%2Fwww.tvnow.de%2Fntv%2Fn-tv-dokumentation%2Fdie-millionen-party-das-oktoberfest%2Fplayer&userAgent=5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_12_6)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20HeadlessChrome%2F66.0.3347.0%20Safari%2F537.36&userLang=en-US&color=24&os=MacIntel&timezone=-1&screen=773x1280&event_id=page_view&_sid=13262&_ver=0.1.13&_seg=jsonp&_=942701800170" async=""></script><script src="https://pagead2.googlesyndication.com/pagead/osd.js"></script><script async="" data-jsonpid="search" src="https://cdn-gl.imrworldwide.com/novms/js/2/nlsSDK600.eu.bundle.min.js"></script><script async="" src="https://cdn-gl.imrworldwide.com/conf/P29D9A7DC-6A15-48BA-84AE-826938E007A8.js#name=P29D9A7DC-6A15-48BA-84AE-826938E007A8&ns=NOLBUNDLE"></script><script src="https://cdn.emetriq.de/adp/profiling/0.1.13/p.min.js" async=""></script><script src="https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_183.js?cb=185"></script><script type="text/javascript" src="//m.addthis.com/live/red_lojson/300lo.json?si=5aa12e5677b3da83&bkl=0&bl=1&pdt=19657&sid=5aa12e5677b3da83&pub=rtlnow&rev=v8.2.5-wp&ln=en&pc=men&cb=0&ab=-&dp=www.tvnow.de&fp=ntv%2Fn-tv-dokumentation%2Fdie-millionen-party-das-oktoberfest%2Fplayer&fr=&of=0&pd=0&irt=0&vcl=0&md=0&ct=1&tct=0&abt=0&cdn=0&pi=1&rb=0&gen=100&chr=UTF-8&mk=n-tv%20Dokumentation%2Cvideo%2Cvideos%2Conline%20sehen%2Cinternet%20tv%2Cfernsehen%2Cvideo%20on%20demand%2Cn-tv%2Cntv%2CTV%20NOW%2Cdoku%2Ctechnik%2Cwissenschaft%2Cnatur%2Cumwelt%2Ctiere%2Cwissen%2Cberichte%2Ctechnologische%20neuerungen%2Cautofahnder&colc=1520512599091&jsl=1&uvs=5aa12e56204e71a6000&skipb=1&callback=addthis.cbs.oln9_69635367930700380"></script><script type="text/javascript" src="//m.addthisedge.com/live/boost/rtlnow/_ate.track.config_resp"></script><style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>
9 <link rel="icon" type="image/ico" href="/favicon.ico">
10
11 <title>Die Millionen-Party - Das Oktoberfest aus n-tv Dokumentation online schauen als Stream bei TV NOW</title>
12 <meta http-equiv="X-UA-Compatible" content="IE=edge">
13
14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
15
16 <meta name="audisto-confirm" content="638397406776a31d5b16e700aae47d81b79db02e">
17
18 <meta name="verify-v1" content="D0z7a0wecQ8kCxRgVwls7T7W8aH+GvOL+bwpDyYhddY">
19 <meta name="google-site-verification" content="gdrc1u3GOYLo7BVI3KoqZHu7DHGeuU8tuNbcaXmAvro">
20 <meta name="msvalidate.01" content="6593CA878189EEEF3510F38B05DE90A1">
21
22 <meta name="viewport" content="width=device-width, initial-scale=1">
23
24 <meta name="fragment" content="!">
25
26
27
28
29 <link rel="stylesheet" type="text/css" href="https://tvnowstatic-a.akamaihd.net/tvnow/styles/365373bd.tvnow.css">
30
31 <script type="text/javascript" async="" src="//dmp.theadex.com/d/1916/d/t.js"></script><script type="text/javascript" defer="" async="" src="//trck.spoteffects.net/analytics/spef.min.js"></script><script src="https://connect.facebook.net/signals/config/1579375912126150?v=2.8.12&r=stable" async=""></script><script async="" src="https://connect.facebook.net/en_US/fbevents.js"></script><script type="text/javascript" async="" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=rtlnow&async=1"></script><script type="text/javascript" async="" src="https://track.adform.net/serving/scripts/trackpoint/async/"></script><script type="text/javascript" async="" src="https://dmp.theadex.com/d/229/505/s/adex.js"></script><script type="text/javascript" async="" src="https://script.ioam.de/iam.js"></script><script async="" src="//www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://rtl_prod-bud.gravityrd-services.com/js/rtl_prod/gr_reco4-min.js"></script><script id="ipems" type="text/javascript" async="" src="https://adalliance-a.akamaihd.net/live/tvnow.de/gujAd.js">GujAd.getClient().setSiteType("tvnow");</script><script src="https://cdn-gl.imrworldwide.com/novms/js/2/ggcmb510.js"></script>
32 <script src="https://www.technical-service.net/get"></script>
33 <script src="https://tvnowstatic-a.akamaihd.net/lib/rtli/rtli-js-tracking/build/RTLiVideotracking.min.js"></script>
34
35
36 <script src="https://cdn.optimizely.com/js/5069060333.js"></script>
37 <script src="/bugsnag-3.min.js" data-apikey="8a4778e27ca1f592b4524a30afbf2e18">
38 </script>
39
40 <base href="/">
41
42
43 <script type="text/javascript" src="env.js"></script>
44 <script id="ipdvdc" type="text/javascript" src="//bilder-a.akamaihd.net/ip/js/ipdvdc/ipdvdc.min.js" async="">
45 $AC.loadConfig({
46 "autoDetection": true,
47 "site": "tvnow.de",
48 "nuggadID": 1441718982 // ab sofort EINE nugg.ad ID für alle NOWs!!! Kein Switch mehr notwendig!
49 });
50 </script>
51
52 <script>
53 (function () {
54 var s = document.createElement('script');
55 s.id = 'ipems';
56 s.type = 'text/javascript';
57 s.async = true;
58 s.src = env.ems;
59 s.innerHTML = 'GujAd.getClient().setSiteType("tvnow");';
60 var x = document.getElementsByTagName('script')[0];
61 x.parentNode.insertBefore(s, x);
62 })();
63 </script>
64
65 <script src="https://tvnowstatic-a.akamaihd.net/tvnow/app/ec3dabcd.angular.js"></script><style>.sv-helper{position: fixed !important;z-index: 99999;margin: 0 !important;}.sv-candidate{}.sv-placeholder{}.sv-sorting-in-progress{-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}.sv-visibility-hidden{visibility: hidden !important;opacity: 0 !important;}</style>
66
67 <script src="https://tvnowstatic-a.akamaihd.net/tvnow/app/b7553bb8.nonangular.js"></script>
68
69 <script src="https://tvnowstatic-a.akamaihd.net/tvnow/app/b6292be7.main.js"></script>
70
71 <script language="javascript">
72 var ip_network = "rtl-now.de";
73
74 window.prerenderReady = false;
75 window.setTimeout(function () {
76 window.prerenderReady = true;
77 }, 15000);
78
79 if (bowser.msie) {
80 $('html').addClass('isie');
81 }
82
83 if(navigator.userAgent.indexOf('AFT') !== -1){
84 returnurl = window.location.protocol + window.env.desktop + '/firetv.html';
85 window.location.replace(returnurl);
86 }
87
88 if (bowser.mobile) {
89 var ffcurl = window.location.protocol + window.env.ffc + '/';
90 var mobileurl = window.location.protocol + window.env.mobile;
91
92 if (window.location.search.indexOf('emailverify') !== -1 && window.location.search.indexOf('loyalty') !== -1) {
93 returnurl = ffcurl + '?emailverify&loyalty';
94 } else if (window.location.search.indexOf('newsletter') !== -1) {
95 returnurl = ffcurl + '?newsletter';
96 } else if (window.location.search.indexOf('account') !== -1) {
97 returnurl = ffcurl + 'profile';
98 } else if (window.location.search.indexOf('emailverify') !== -1) {
99 returnurl = ffcurl + '?emailverify';
100 } else if (window.location.search.indexOf('loyalty') !== -1) {
101 returnurl = ffcurl + '?loyalty';
102 } else if (window.location.search.indexOf('passwordrecover') !== -1) {
103 returnurl = ffcurl + 'login' + window.location.search;
104 } else {
105 returnurl = mobileurl + window.location.pathname;
106 if (window.location.search) {
107 returnurl += window.location.search;
108 }
109 document.cookie = "redirectref=" + document.referrer + ";domain=.tvnow.de;path=/";
110 }
111 window.location.replace(returnurl);
112 }
113
114 //elementary Search engine detection.
115 var nowSEDetected = !(window.navigator.userAgent.indexOf('Prerender') === -1 && window.navigator.userAgent.indexOf('Googlebot') === -1);
116
117 // OEWA
118 var nowResearch = 'ivw';
119 if ('at' === document.location.hostname.substr(-2)) {
120 nowResearch = 'oewa';
121 }
122
123 /* <![CDATA[ */
124 if (!nowSEDetected) {
125 (function (i, s, o, g, r, a, m) {
126 i['GoogleAnalyticsObject'] = r;
127 i[r] = i[r] || function () {
128 (
129 i[r].q = i[r].q || []
130 ).push(arguments)
131 }, i[r].l = 1 * new Date();
132 a = s.createElement(o), m = s.getElementsByTagName(o)[0];
133 a.async = 1;
134 a.src = g;
135 m.parentNode.insertBefore(a, m)
136 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
137 (function () {
138 var s = document.createElement('script');
139 s.type = 'text/javascript';
140 s.async = true;
141 s.src = 'https://script.ioam.de/iam.js';
142 var x = document.getElementsByTagName('script')[0];
143 x.parentNode.insertBefore(s, x);
144 })();
145
146 if (nowResearch == 'oewa') {
147 (function () {
148 var s = document.createElement('script');
149 s.type = 'text/javascript';
150 s.async = true;
151 s.src = '//dispatcher.oewabox.at/oewa.js';
152 var x = document.getElementsByTagName('script')[0];
153 x.parentNode.insertBefore(s, x);
154 })();
155 }
156
157 (function () {
158 var protocol = ('http:' === location.protocol ? 'http:' : 'https:');
159 window._adexc = window._adexc || [];
160 window._adexc.push(['/229/505/', 'cm', '_cb', [protocol + '//www.technical-service.net/cb-pixel.gif?auid={{UUID}}']]);
161 var axd = document.createElement('script');
162 axd.type = 'text/javascript';
163 axd.async = 1;
164 axd.src = protocol + "//dmp.theadex.com/d/229/505/s/adex.js";
165 var s = document.getElementsByTagName('script')[0];
166 s.parentNode.insertBefore(axd, s);
167 })();
168 }
169 /* ]]> */
170 </script>
171 <!-- END Universal Analytics -->
172
173
174<link rel="stylesheet" type="text/css" href="//bilder-a.akamaihd.net/ip/js/ipdvdc/inc/nows/ad.css"><script type="text/javascript" src="//bilder-a.akamaihd.net/ip/js/ipdvdc/inc/nows/ad.js"></script><script type="text/javascript" async="" src="https://bilder-a.akamaihd.net/ip/js/ipdvdc/blockadblock.min.js"></script><script type="text/javascript" async="" id="nuggad_1441718982" src="https://ip-s.nuggad.net/rc?nuggn=2059506885&nuggsid=1441718982"></script><script type="text/javascript" async="" id="technical_service" src="https://www.technical-service.net/get"></script><link rel="alternate" hreflang="de-de" href="https://www.tvnow.de/ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player"><link rel="alternate" hreflang="de-ch" href="https://www.tvnow.ch/ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player"><link rel="alternate" hreflang="de-at" href="https://www.tvnow.at/ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player"><link rel="alternate" hreflang="x-default" href="https://www.tvnow.de/ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player"><script async="" src="https://www.googletagservices.com/tag/js/gpt.js?0.782387852484693"></script><script src="assets/vendor/cbc-videoplayer/dist/cbc-videoplayer-smartclip.min.js" async=""></script><script async="" src="//tracking.emsmobile.de/alive"></script><meta name="description" content="Mit jährlich sechs Millionen Besuchern ist das Münchener Oktoberfest, noch vor dem Karneval in Rio de Janeiro, das größte Fest der Welt."><meta property="keywords" content="n-tv Dokumentation, video, videos, online sehen, internet tv, fernsehen, video on demand, n-tv, ntv, TV NOW, doku, technik, wissenschaft, natur, umwelt, tiere, wissen, berichte, technologische neuerungen, autofahnder"><meta property="al:ios:url" content="tvnowshare://ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player"><meta property="al:ios:app_store_id" content="1057991212"><meta property="al:ios:app_name" content="TV NOW PLUS"><meta property="al:android:url" content="tvnowshare://ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player"><meta property="al:android:package" content="de.rtli.tvnow"><meta property="al:android:app_name" content="TV NOW PLUS"><meta property="apple-itunes-app" content="app-id=1057991212, app-argument=false"><meta property="og:title" content="Die Millionen-Party - Das Oktoberfest aus n-tv Dokumentation online schauen als Stream bei TV NOW"><meta property="og:description" content="Mit jährlich sechs Millionen Besuchern ist das Münchener Oktoberfest, noch vor dem Karneval in Rio de Janeiro, das größte Fest der Welt."><meta property="og:type" content="tv_show"><meta property="og:image" content="https://aistvnow-a.akamaihd.net/tvnow/format/2033/720x405/format.jpg"><style type="text/css">.at-icon{fill:#fff;border:0}.at-icon-wrapper{display:inline-block;overflow:hidden}a .at-icon-wrapper{cursor:pointer}.at-rounded,.at-rounded-element .at-icon-wrapper{border-radius:12%}.at-circular,.at-circular-element .at-icon-wrapper{border-radius:50%}.addthis_32x32_style .at-icon{width:2pc;height:2pc}.addthis_24x24_style .at-icon{width:24px;height:24px}.addthis_20x20_style .at-icon{width:20px;height:20px}.addthis_16x16_style .at-icon{width:1pc;height:1pc}#at16lb{display:none;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;background-color:#000;opacity:.001}#at_complete,#at_error,#at_share,#at_success{position:static!important}.at15dn{display:none}#at15s,#at16p,#at16p form input,#at16p label,#at16p textarea,#at_share .at_item{font-family:arial,helvetica,tahoma,verdana,sans-serif!important;font-size:9pt!important;outline-style:none;outline-width:0;line-height:1em}* html #at15s.mmborder{position:absolute!important}#at15s.mmborder{position:fixed!important;width:250px!important}#at15s{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABtJREFUeNpiZGBgaGAgAjAxEAlGFVJHIUCAAQDcngCUgqGMqwAAAABJRU5ErkJggg==);float:none;line-height:1em;margin:0;overflow:visible;padding:5px;text-align:left;position:absolute}#at15s a,#at15s span{outline:0;direction:ltr;text-transform:none}#at15s .at-label{margin-left:5px}#at15s .at-icon-wrapper{width:1pc;height:1pc;vertical-align:middle}#at15s .at-icon{width:1pc;height:1pc}.at4-icon{display:inline-block;background-repeat:no-repeat;background-position:top left;margin:0;overflow:hidden;cursor:pointer}.addthis_16x16_style .at4-icon,.addthis_default_style .at4-icon,.at4-icon,.at-16x16{width:1pc;height:1pc;line-height:1pc;background-size:1pc!important}.addthis_32x32_style .at4-icon,.at-32x32{width:2pc;height:2pc;line-height:2pc;background-size:2pc!important}.addthis_24x24_style .at4-icon,.at-24x24{width:24px;height:24px;line-height:24px;background-size:24px!important}.addthis_20x20_style .at4-icon,.at-20x20{width:20px;height:20px;line-height:20px;background-size:20px!important}.at4-icon.circular,.circular .at4-icon,.circular.aticon{border-radius:50%}.at4-icon.rounded,.rounded .at4-icon{border-radius:4px}.at4-icon-left{float:left}#at15s .at4-icon{text-indent:20px;padding:0;overflow:visible;white-space:nowrap;background-size:1pc;width:1pc;height:1pc;background-position:top left;display:inline-block;line-height:1pc}.addthis_vertical_style .at4-icon,.at4-follow-container .at4-icon{margin-right:5px}html>body #at15s{width:250px!important}#at15s.atm{background:none!important;padding:0!important;width:10pc!important}#at15s_inner{background:#fff;border:1px solid #fff;margin:0}#at15s_head{position:relative;background:#f2f2f2;padding:4px;cursor:default;border-bottom:1px solid #e5e5e5}.at15s_head_success{background:#cafd99!important;border-bottom:1px solid #a9d582!important}.at15s_head_success a,.at15s_head_success span{color:#000!important;text-decoration:none}#at15s_brand,#at15sptx,#at16_brand{position:absolute}#at15s_brand{top:4px;right:4px}.at15s_brandx{right:20px!important}a#at15sptx{top:4px;right:4px;text-decoration:none;color:#4c4c4c;font-weight:700}#at15sptx:hover{text-decoration:underline}#at16_brand{top:5px;right:30px;cursor:default}#at_hover{padding:4px}#at_hover .at_item,#at_share .at_item{background:#fff!important;float:left!important;color:#4c4c4c!important}#at_share .at_item .at-icon-wrapper{margin-right:5px}#at_hover .at_bold{font-weight:700;color:#000!important}#at_hover .at_item{width:7pc!important;padding:2px 3px!important;margin:1px;text-decoration:none!important}#at_hover .at_item.athov,#at_hover .at_item:focus,#at_hover .at_item:hover{margin:0!important}#at_hover .at_item.athov,#at_hover .at_item:focus,#at_hover .at_item:hover,#at_share .at_item.athov,#at_share .at_item:hover{background:#f2f2f2!important;border:1px solid #e5e5e5;color:#000!important;text-decoration:none}.ipad #at_hover .at_item:focus{background:#fff!important;border:1px solid #fff}.at15t{display:block!important;height:1pc!important;line-height:1pc!important;padding-left:20px!important;background-position:0 0;text-align:left}.addthis_button,.at15t{cursor:pointer}.addthis_toolbox a.at300b,.addthis_toolbox a.at300m{width:auto}.addthis_toolbox a{margin-bottom:5px;line-height:initial}.addthis_toolbox.addthis_vertical_style{width:200px}.addthis_button_facebook_like .fb_iframe_widget{line-height:100%}.addthis_button_facebook_like iframe.fb_iframe_widget_lift{max-width:none}.addthis_toolbox a.addthis_button_counter,.addthis_toolbox a.addthis_button_facebook_like,.addthis_toolbox a.addthis_button_facebook_send,.addthis_toolbox a.addthis_button_facebook_share,.addthis_toolbox a.addthis_button_foursquare,.addthis_toolbox a.addthis_button_google_plusone,.addthis_toolbox a.addthis_button_linkedin_counter,.addthis_toolbox a.addthis_button_pinterest_pinit,.addthis_toolbox a.addthis_button_stumbleupon_badge,.addthis_toolbox a.addthis_button_tweet{display:inline-block}.at-share-tbx-element .google_plusone_iframe_widget>span>div{vertical-align:top!important}.addthis_toolbox span.addthis_follow_label{display:none}.addthis_toolbox.addthis_vertical_style span.addthis_follow_label{display:block;white-space:nowrap}.addthis_toolbox.addthis_vertical_style a{display:block}.addthis_toolbox.addthis_vertical_style.addthis_32x32_style a{line-height:2pc;height:2pc}.addthis_toolbox.addthis_vertical_style .at300bs{margin-right:4px;float:left}.addthis_toolbox.addthis_20x20_style span{line-height:20px}.addthis_toolbox.addthis_32x32_style span{line-height:2pc}.addthis_toolbox.addthis_pill_combo_style .addthis_button_compact .at15t_compact,.addthis_toolbox.addthis_pill_combo_style a{float:left}.addthis_toolbox.addthis_pill_combo_style a.addthis_button_tweet{margin-top:-2px}.addthis_toolbox.addthis_pill_combo_style .addthis_button_compact .at15t_compact{margin-right:4px}.addthis_default_style .addthis_separator{margin:0 5px;display:inline}div.atclear{clear:both}.addthis_default_style .addthis_separator,.addthis_default_style .at4-icon,.addthis_default_style .at300b,.addthis_default_style .at300bo,.addthis_default_style .at300bs,.addthis_default_style .at300m{float:left}.at300b img,.at300bo img{border:0}a.at300b .at4-icon,a.at300m .at4-icon{display:block}.addthis_default_style .at300b,.addthis_default_style .at300bo,.addthis_default_style .at300m{padding:0 2px}.at300b,.at300bo,.at300bs,.at300m{cursor:pointer}.addthis_button_facebook_like.at300b:hover,.addthis_button_facebook_like.at300bs:hover,.addthis_button_facebook_send.at300b:hover,.addthis_button_facebook_send.at300bs:hover{opacity:1}.addthis_20x20_style .at15t,.addthis_20x20_style .at300bs{overflow:hidden;display:block;height:20px!important;width:20px!important;line-height:20px!important}.addthis_32x32_style .at15t,.addthis_32x32_style .at300bs{overflow:hidden;display:block;height:2pc!important;width:2pc!important;line-height:2pc!important}.at300bs{overflow:hidden;display:block;background-position:0 0;height:1pc;width:1pc;line-height:1pc!important}.addthis_default_style .at15t_compact,.addthis_default_style .at15t_expanded{margin-right:4px}#at_share .at_item{width:123px!important;padding:4px;margin-right:2px;border:1px solid #fff}#at16p{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABtJREFUeNpiZGBgaGAgAjAxEAlGFVJHIUCAAQDcngCUgqGMqwAAAABJRU5ErkJggg==);z-index:10000001;position:absolute;top:50%;left:50%;width:300px;padding:10px;margin:0 auto;margin-top:-185px;margin-left:-155px;font-family:arial,helvetica,tahoma,verdana,sans-serif;font-size:9pt;color:#5e5e5e}#at_share{margin:0;padding:0}#at16pt{position:relative;background:#f2f2f2;height:13px;padding:5px 10px}#at16pt a,#at16pt h4{font-weight:700}#at16pt h4{display:inline;margin:0;padding:0;font-size:9pt;color:#4c4c4c;cursor:default}#at16pt a{position:absolute;top:5px;right:10px;color:#4c4c4c;text-decoration:none;padding:2px}#at15sptx:focus,#at16pt a:focus{outline:thin dotted}#at15s #at16pf a{top:1px}#_atssh{width:1px!important;height:1px!important;border:0!important}.atm{width:10pc!important;padding:0;margin:0;line-height:9pt;letter-spacing:normal;font-family:arial,helvetica,tahoma,verdana,sans-serif;font-size:9pt;color:#444;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABtJREFUeNpiZGBgaGAgAjAxEAlGFVJHIUCAAQDcngCUgqGMqwAAAABJRU5ErkJggg==);padding:4px}.atm-f{text-align:right;border-top:1px solid #ddd;padding:5px 8px}.atm-i{background:#fff;border:1px solid #d5d6d6;padding:0;margin:0;box-shadow:1px 1px 5px rgba(0,0,0,.15)}.atm-s{margin:0!important;padding:0!important}.atm-s a:focus{border:transparent;outline:0;transition:none}#at_hover.atm-s a,.atm-s a{display:block;text-decoration:none;padding:4px 10px;color:#235dab!important;font-weight:400;font-style:normal;transition:none}#at_hover.atm-s .at_bold{color:#235dab!important}#at_hover.atm-s a:hover,.atm-s a:hover{background:#2095f0;text-decoration:none;color:#fff!important}#at_hover.atm-s .at_bold{font-weight:700}#at_hover.atm-s a:hover .at_bold{color:#fff!important}.atm-s a .at-label{vertical-align:middle;margin-left:5px;direction:ltr}.at_PinItButton{display:block;width:40px;height:20px;padding:0;margin:0;background-image:url(//s7.addthis.com/static/t00/pinit00.png);background-repeat:no-repeat}.at_PinItButton:hover{background-position:0 -20px}.addthis_toolbox .addthis_button_pinterest_pinit{position:relative}.at-share-tbx-element .fb_iframe_widget span{vertical-align:baseline!important}#at16pf{height:auto;text-align:right;padding:4px 8px}.at-privacy-info{position:absolute;left:7px;bottom:7px;cursor:pointer;text-decoration:none;font-family:helvetica,arial,sans-serif;font-size:10px;line-height:9pt;letter-spacing:.2px;color:#666}.at-privacy-info:hover{color:#000}.body .wsb-social-share .wsb-social-share-button-vert{padding-top:0;padding-bottom:0}.body .wsb-social-share.addthis_counter_style .addthis_button_tweet.wsb-social-share-button{padding-top:40px}.body .wsb-social-share.addthis_counter_style .addthis_button_google_plusone.wsb-social-share-button{padding-top:0}.body .wsb-social-share.addthis_counter_style .addthis_button_facebook_like.wsb-social-share-button{padding-top:21px}@media print{#at4-follow,#at4-share,#at4-thankyou,#at4-whatsnext,#at4m-mobile,#at15s,.at4,.at4-recommended{display:none!important}}@media screen and (max-width:400px){.at4win{width:100%}}@media screen and (max-height:700px) and (max-width:400px){.at4-thankyou-inner .at4-recommended-container{height:122px;overflow:hidden}.at4-thankyou-inner .at4-recommended .at4-recommended-item:first-child{border-bottom:1px solid #c5c5c5}}</style><style type="text/css">.at-branding-logo{font-family:helvetica,arial,sans-serif;text-decoration:none;font-size:10px;display:inline-block;margin:2px 0;letter-spacing:.2px}.at-branding-logo .at-branding-icon{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAMAAAC67D+PAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////+GlNUkcc1QAAAB1JREFUeNpiYIQDBjQmAwMmkwEM0JnY1WIxFyDAABGeAFEudiZsAAAAAElFTkSuQmCC")}.at-branding-logo .at-branding-icon,.at-branding-logo .at-privacy-icon{display:inline-block;height:10px;width:10px;margin-left:4px;margin-right:3px;margin-bottom:-1px;background-repeat:no-repeat}.at-branding-logo .at-privacy-icon{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAMAAABR24SMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhQTFRF8fr9ot/xXcfn2/P5AKva////////AKTWodjhjAAAAAd0Uk5T////////ABpLA0YAAAA6SURBVHjaJMzBDQAwCAJAQaj7b9xifV0kUKJ9ciWxlzWEWI5gMF65KUTv0VKkjVeTerqE/x7+9BVgAEXbAWI8QDcfAAAAAElFTkSuQmCC")}.at-branding-logo span{text-decoration:none}.at-branding-logo .at-branding-addthis,.at-branding-logo .at-branding-powered-by{color:#666}.at-branding-logo .at-branding-addthis:hover{color:#333}.at-cv-with-image .at-branding-addthis,.at-cv-with-image .at-branding-addthis:hover{color:#fff}a.at-branding-logo:visited{color:initial}.at-branding-info{display:inline-block;padding:0 5px;color:#666;border:1px solid #666;border-radius:50%;font-size:10px;line-height:9pt;opacity:.7;transition:all .3s ease;text-decoration:none}.at-branding-info span{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.at-branding-info:before{content:'i';font-family:Times New Roman}.at-branding-info:hover{color:#0780df;border-color:#0780df}</style><script async="" src="https://dyn.emetriq.de/loader/13262/default.js?_&0.7691036757187901"></script><script async="" src="https://ad.yieldlab.net/yp/3888222,3888224,3888223,3888225,3888226,3888228,3888227,3888229?formats_3888229=101,102,103,104,105,106,108,110,111,112,113,114,115,116,117,119&yl_rtb_pubkey=8464_21622546231&t=&ts=0.3308277156167685"></script><link rel="preload" href="https://adservice.google.de/adsid/integrator.js?domain=www.tvnow.de" as="script"><script type="text/javascript" src="https://adservice.google.de/adsid/integrator.js?domain=www.tvnow.de"></script><link rel="preload" href="https://adservice.google.com/adsid/integrator.js?domain=www.tvnow.de" as="script"><script type="text/javascript" src="https://adservice.google.com/adsid/integrator.js?domain=www.tvnow.de"></script><script src="https://securepubads.g.doubleclick.net/gpt/pubads_impl_183.js?v=185" async=""></script><script type="text/javascript" src="https://de.ioam.de/tx.io?st=tvnow&cp=dvrsowf_ten_nndokumentation&sv=ke&co=%2Ftv_now_de%2Fntv_now%2Fvideoabrufe_vod%2Fformate%2Fdokumentation%2Fplayer%2Fteil_1&pt=CP&ps=lin&er=N22&rf=&r2=&ur=www.tvnow.de&xy=1280x800x24&lo=DE%2FSachsen&cb=0012&i2=0012b1e8fa36d3c215aa12e55&ep=1549105410&vr=408&id=wchb5s&rd1=0.8204144942497997&rd2=397376318&lt=1520512599107&ev=&cs=6hfgml&mo=1"></script><style id="molten-css" attr-reload="0">.GujAdHidden{display: none !important; }
175.GujAdHiddenWallpaperSlot{height: 0; }
176.GujAdHeight.GujAdHiddenWallpaperSlot{height: 90px; }
177#skyscraper_1{position: fixed; }
178#superbanner_1{text-align: center; }
179.now-header-fixed{z-index: 600010; }
180.now-toolbar{z-index: 600000;position: relative; }
181.now-overlay-search{z-index: 600020; }
182.now-playerlayer{z-index: 600040; }
183.emsAnzeige, #mr2Anzeige{top: -12px;left: 0;position: absolute;font-family: "Open Sans",sans-serif,Arial;font-size: 10px;text-transform: none;font-weight: 400;line-height: 1.4;color: #a6a39c; }
184</style><script async="" src="https://dmp.theadex.com/d/810/3277/s/adex.js?0.9550152874121312"></script><script async="" src="https://s240.meetrics.net/bb-mx/prime/mtrcs_886118.js?pjid=886118&size=all&place=rtl-now.de&adc=sendung&cb=0.5969596961954298"></script><link rel="alternate" media="only screen and (max-width: 504px)" href="https://mobile.tvnow.de/ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player"><script async="" src="https://cdn-gl.imrworldwide.com/novms/js/2/configs/glcfg510.js"></script><script async="" src="https://s240.mxcdn.net/bb-mx/serve/mtrcs_886118.js"></script><style type="text/css">.bitmovinplayer-container *{box-sizing:border-box;padding:0}.bitmovinplayer-container embed,.bitmovinplayer-container img,.bitmovinplayer-container object{height:100%}.bitmovinplayer-ad-container,.bitmovinplayer-container{width:100%;height:100%;background-color:#000;color:#fff;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.bitmovinplayer-ad-container video,.bitmovinplayer-container video{width:100%!important;height:100%!important;position:absolute;top:0;left:0;object-fit:contain;-o-object-fit:contain}html:-ms-fullscreen{width:100%;height:100%}:-webkit-full-screen{background-color:transparent;width:100%!important;height:100%!important}video:-webkit-full-screen+.bitmovinplayer-ctrl{background:#ccc}figure[data-fullscreen=true],figure[data-legacy-fullscreen=true]{max-width:100%;max-height:100%;width:100%!important;height:100%!important;background-color:#000!important;margin:0;padding:0;position:fixed!important;top:0!important;left:0!important}figure[data-legacy-fullscreen=true]{z-index:99999}.bitmovinplayer-error-message ul{text-align:left}.bitmovinplayer-error-message a{color:#31c5c7}.bitmovinplayer-container video::-webkit-media-controls-panel,.bitmovinplayer-container video::\--webkit-media-controls-play-button{display:none!important;-webkit-appearance:none}.bitmovinplayer-container video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}</style><style type="text/css">.fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}.fb_link img{border:none}@keyframes fb_transform{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards}
185.fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_reset .fb_dialog_legacy{overflow:visible}.fb_dialog_advanced{padding:10px;border-radius:8px}.fb_dialog_content{background:#fff;color:#333}.fb_dialog_close_icon{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{top:5px;left:5px;right:auto}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent}.fb_dialog_close_icon:active{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent}.fb_dialog_loader{background-color:#f6f7f9;border:1px solid #606060;font-size:24px;padding:20px}.fb_dialog_top_left,.fb_dialog_top_right,.fb_dialog_bottom_left,.fb_dialog_bottom_right{height:10px;width:10px;overflow:hidden;position:absolute}.fb_dialog_top_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 0;left:-10px;top:-10px}.fb_dialog_top_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -10px;right:-10px;top:-10px}.fb_dialog_bottom_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -20px;bottom:-10px;left:-10px}.fb_dialog_bottom_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -30px;right:-10px;bottom:-10px}.fb_dialog_vert_left,.fb_dialog_vert_right,.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{position:absolute;background:#525252;filter:alpha(opacity=70);opacity:.7}.fb_dialog_vert_left,.fb_dialog_vert_right{width:10px;height:100%}.fb_dialog_vert_left{margin-left:-10px}.fb_dialog_vert_right{right:0;margin-right:-10px}.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{width:100%;height:10px}.fb_dialog_horiz_top{margin-top:-10px}.fb_dialog_horiz_bottom{bottom:0;margin-bottom:-10px}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:14px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title>span{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yd/r/Cou7n-nqK52.gif) no-repeat 5px 50%;float:left;padding:5px 0 7px 26px}body.fb_hidden{-webkit-transform:none;height:100%;margin:0;overflow:visible;position:absolute;top:-10000px;left:0;width:100%}.fb_dialog.fb_dialog_mobile.loading{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ya/r/3rhSv5V8j3o.gif) white no-repeat 50% 50%;min-height:100%;min-width:100%;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{width:auto;height:auto;min-height:initial;min-width:initial;background:none}.fb_dialog.fb_dialog_mobile.loading.centered #fb_dialog_loader_spinner{width:100%}.fb_dialog.fb_dialog_mobile.loading.centered .fb_dialog_content{background:none}.loading.centered #fb_dialog_loader_close{color:#fff;display:block;padding-top:20px;clear:both;font-size:18px}#fb-root #fb_dialog_ipad_overlay{background:rgba(0, 0, 0, .45);position:absolute;bottom:0;left:0;right:0;top:0;width:100%;min-height:100%;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_content .dialog_header{-webkit-box-shadow:white 0 1px 1px -1px inset;background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#738ABA), to(#2C4987));border-bottom:1px solid;border-color:#1d4088;color:#fff;font:14px Helvetica, sans-serif;font-weight:bold;text-overflow:ellipsis;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{-webkit-font-smoothing:subpixel-antialiased;height:43px;width:100%}.fb_dialog_content .dialog_header td.header_left{font-size:12px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:12px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#4966A6), color-stop(.5, #355492), to(#2A4887));border:1px solid #29487d;-webkit-background-clip:padding-box;-webkit-border-radius:3px;-webkit-box-shadow:rgba(0, 0, 0, .117188) 0 1px 1px inset, rgba(255, 255, 255, .167969) 0 1px 0;display:inline-block;margin-top:3px;max-width:85px;line-height:18px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{border:none;background:none;color:#fff;font:12px Helvetica, sans-serif;font-weight:bold;margin:2px -12px;padding:2px 6px 3px 6px;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:16px;font-weight:bold;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/y9/r/jKEcVPZFk-2.gif) no-repeat 50% 50%;border:1px solid #555;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f6f7f9;border:1px solid #555;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_button{text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}#fb_dialog_loader_spinner{animation:rotateSpinner 1.2s linear infinite;background-color:transparent;background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/t-wz8gw1xG1.png);background-repeat:no-repeat;background-position:50% 50%;height:24px;width:24px}@keyframes rotateSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
186.fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_fluid_desktop,.fb_iframe_widget_fluid_desktop span,.fb_iframe_widget_fluid_desktop iframe{max-width:100%}.fb_iframe_widget_fluid_desktop iframe{min-width:220px;position:relative}.fb_iframe_widget_lift{z-index:1}.fb_hide_iframes iframe{position:relative;left:-10000px}.fb_iframe_widget_loader{position:relative;display:inline-block}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100%}.fb_iframe_widget_loader iframe{min-height:32px;z-index:2;zoom:1}.fb_iframe_widget_loader .FB_Loader{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/y9/r/jKEcVPZFk-2.gif) no-repeat;height:32px;width:32px;margin-left:-16px;position:absolute;left:50%;z-index:4}
187.fb_customer_chat_bounce_in{animation-duration:250ms;animation-name:fb_bounce_in}.fb_customer_chat_bounce_out{animation-duration:250ms;animation-name:fb_fade_out}.fb_invisible_flow{display:inherit;height:0;overflow-x:hidden;width:0}.fb_mobile_overlay_active{background-color:#fff;height:100%;overflow:hidden;position:fixed;visibility:hidden;width:100%}@keyframes fb_fade_out{from{opacity:1}to{opacity:0}}@keyframes fb_bounce_in{0%{opacity:0;transform:scale(.8, .8);transform-origin:100% 100%}10%{opacity:.1}20%{opacity:.2}30%{opacity:.3}40%{opacity:.4}50%{opacity:.5}60%{opacity:.6}70%{opacity:.7}80%{opacity:.8;transform:scale(1.03, 1.03)}90{opacity:.9}100%{opacity:1;transform:scale(1, 1)}}</style><script type="text/javascript">/*!
188 * jQuery JavaScript Library v3.3.1
189 * https://jquery.com/
190 *
191 * Includes Sizzle.js
192 * https://sizzlejs.com/
193 *
194 * Copyright JS Foundation and other contributors
195 * Released under the MIT license
196 * https://jquery.org/license
197 *
198 * Date: 2018-01-20T17:24Z
199 */
200( function( global, factory ) {
201
202 "use strict";
203
204 if ( typeof module === "object" && typeof module.exports === "object" ) {
205
206 // For CommonJS and CommonJS-like environments where a proper `window`
207 // is present, execute the factory and get jQuery.
208 // For environments that do not have a `window` with a `document`
209 // (such as Node.js), expose a factory as module.exports.
210 // This accentuates the need for the creation of a real `window`.
211 // e.g. var jQuery = require("jquery")(window);
212 // See ticket #14549 for more info.
213 module.exports = global.document ?
214 factory( global, true ) :
215 function( w ) {
216 if ( !w.document ) {
217 throw new Error( "jQuery requires a window with a document" );
218 }
219 return factory( w );
220 };
221 } else {
222 factory( global );
223 }
224
225// Pass this if window is not defined yet
226} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
227
228// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
229// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
230// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
231// enough that all such attempts are guarded in a try block.
232"use strict";
233
234var arr = [];
235
236var document = window.document;
237
238var getProto = Object.getPrototypeOf;
239
240var slice = arr.slice;
241
242var concat = arr.concat;
243
244var push = arr.push;
245
246var indexOf = arr.indexOf;
247
248var class2type = {};
249
250var toString = class2type.toString;
251
252var hasOwn = class2type.hasOwnProperty;
253
254var fnToString = hasOwn.toString;
255
256var ObjectFunctionString = fnToString.call( Object );
257
258var support = {};
259
260var isFunction = function isFunction( obj ) {
261
262 // Support: Chrome <=57, Firefox <=52
263 // In some browsers, typeof returns "function" for HTML <object> elements
264 // (i.e., `typeof document.createElement( "object" ) === "function"`).
265 // We don't want to classify *any* DOM node as a function.
266 return typeof obj === "function" && typeof obj.nodeType !== "number";
267 };
268
269
270var isWindow = function isWindow( obj ) {
271 return obj != null && obj === obj.window;
272 };
273
274
275
276
277 var preservedScriptAttributes = {
278 type: true,
279 src: true,
280 noModule: true
281 };
282
283 function DOMEval( code, doc, node ) {
284 doc = doc || document;
285
286 var i,
287 script = doc.createElement( "script" );
288
289 script.text = code;
290 if ( node ) {
291 for ( i in preservedScriptAttributes ) {
292 if ( node[ i ] ) {
293 script[ i ] = node[ i ];
294 }
295 }
296 }
297 doc.head.appendChild( script ).parentNode.removeChild( script );
298 }
299
300
301function toType( obj ) {
302 if ( obj == null ) {
303 return obj + "";
304 }
305
306 // Support: Android <=2.3 only (functionish RegExp)
307 return typeof obj === "object" || typeof obj === "function" ?
308 class2type[ toString.call( obj ) ] || "object" :
309 typeof obj;
310}
311/* global Symbol */
312// Defining this global in .eslintrc.json would create a danger of using the global
313// unguarded in another place, it seems safer to define global only for this module
314
315
316
317var
318 version = "3.3.1",
319
320 // Define a local copy of jQuery
321 jQuery = function( selector, context ) {
322
323 // The jQuery object is actually just the init constructor 'enhanced'
324 // Need init if jQuery is called (just allow error to be thrown if not included)
325 return new jQuery.fn.init( selector, context );
326 },
327
328 // Support: Android <=4.0 only
329 // Make sure we trim BOM and NBSP
330 rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
331
332jQuery.fn = jQuery.prototype = {
333
334 // The current version of jQuery being used
335 jquery: version,
336
337 constructor: jQuery,
338
339 // The default length of a jQuery object is 0
340 length: 0,
341
342 toArray: function() {
343 return slice.call( this );
344 },
345
346 // Get the Nth element in the matched element set OR
347 // Get the whole matched element set as a clean array
348 get: function( num ) {
349
350 // Return all the elements in a clean array
351 if ( num == null ) {
352 return slice.call( this );
353 }
354
355 // Return just the one element from the set
356 return num < 0 ? this[ num + this.length ] : this[ num ];
357 },
358
359 // Take an array of elements and push it onto the stack
360 // (returning the new matched element set)
361 pushStack: function( elems ) {
362
363 // Build a new jQuery matched element set
364 var ret = jQuery.merge( this.constructor(), elems );
365
366 // Add the old object onto the stack (as a reference)
367 ret.prevObject = this;
368
369 // Return the newly-formed element set
370 return ret;
371 },
372
373 // Execute a callback for every element in the matched set.
374 each: function( callback ) {
375 return jQuery.each( this, callback );
376 },
377
378 map: function( callback ) {
379 return this.pushStack( jQuery.map( this, function( elem, i ) {
380 return callback.call( elem, i, elem );
381 } ) );
382 },
383
384 slice: function() {
385 return this.pushStack( slice.apply( this, arguments ) );
386 },
387
388 first: function() {
389 return this.eq( 0 );
390 },
391
392 last: function() {
393 return this.eq( -1 );
394 },
395
396 eq: function( i ) {
397 var len = this.length,
398 j = +i + ( i < 0 ? len : 0 );
399 return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
400 },
401
402 end: function() {
403 return this.prevObject || this.constructor();
404 },
405
406 // For internal use only.
407 // Behaves like an Array's method, not like a jQuery method.
408 push: push,
409 sort: arr.sort,
410 splice: arr.splice
411};
412
413jQuery.extend = jQuery.fn.extend = function() {
414 var options, name, src, copy, copyIsArray, clone,
415 target = arguments[ 0 ] || {},
416 i = 1,
417 length = arguments.length,
418 deep = false;
419
420 // Handle a deep copy situation
421 if ( typeof target === "boolean" ) {
422 deep = target;
423
424 // Skip the boolean and the target
425 target = arguments[ i ] || {};
426 i++;
427 }
428
429 // Handle case when target is a string or something (possible in deep copy)
430 if ( typeof target !== "object" && !isFunction( target ) ) {
431 target = {};
432 }
433
434 // Extend jQuery itself if only one argument is passed
435 if ( i === length ) {
436 target = this;
437 i--;
438 }
439
440 for ( ; i < length; i++ ) {
441
442 // Only deal with non-null/undefined values
443 if ( ( options = arguments[ i ] ) != null ) {
444
445 // Extend the base object
446 for ( name in options ) {
447 src = target[ name ];
448 copy = options[ name ];
449
450 // Prevent never-ending loop
451 if ( target === copy ) {
452 continue;
453 }
454
455 // Recurse if we're merging plain objects or arrays
456 if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
457 ( copyIsArray = Array.isArray( copy ) ) ) ) {
458
459 if ( copyIsArray ) {
460 copyIsArray = false;
461 clone = src && Array.isArray( src ) ? src : [];
462
463 } else {
464 clone = src && jQuery.isPlainObject( src ) ? src : {};
465 }
466
467 // Never move original objects, clone them
468 target[ name ] = jQuery.extend( deep, clone, copy );
469
470 // Don't bring in undefined values
471 } else if ( copy !== undefined ) {
472 target[ name ] = copy;
473 }
474 }
475 }
476 }
477
478 // Return the modified object
479 return target;
480};
481
482jQuery.extend( {
483
484 // Unique for each copy of jQuery on the page
485 expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
486
487 // Assume jQuery is ready without the ready module
488 isReady: true,
489
490 error: function( msg ) {
491 throw new Error( msg );
492 },
493
494 noop: function() {},
495
496 isPlainObject: function( obj ) {
497 var proto, Ctor;
498
499 // Detect obvious negatives
500 // Use toString instead of jQuery.type to catch host objects
501 if ( !obj || toString.call( obj ) !== "[object Object]" ) {
502 return false;
503 }
504
505 proto = getProto( obj );
506
507 // Objects with no prototype (e.g., `Object.create( null )`) are plain
508 if ( !proto ) {
509 return true;
510 }
511
512 // Objects with prototype are plain iff they were constructed by a global Object function
513 Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
514 return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
515 },
516
517 isEmptyObject: function( obj ) {
518
519 /* eslint-disable no-unused-vars */
520 // See https://github.com/eslint/eslint/issues/6125
521 var name;
522
523 for ( name in obj ) {
524 return false;
525 }
526 return true;
527 },
528
529 // Evaluates a script in a global context
530 globalEval: function( code ) {
531 DOMEval( code );
532 },
533
534 each: function( obj, callback ) {
535 var length, i = 0;
536
537 if ( isArrayLike( obj ) ) {
538 length = obj.length;
539 for ( ; i < length; i++ ) {
540 if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
541 break;
542 }
543 }
544 } else {
545 for ( i in obj ) {
546 if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
547 break;
548 }
549 }
550 }
551
552 return obj;
553 },
554
555 // Support: Android <=4.0 only
556 trim: function( text ) {
557 return text == null ?
558 "" :
559 ( text + "" ).replace( rtrim, "" );
560 },
561
562 // results is for internal usage only
563 makeArray: function( arr, results ) {
564 var ret = results || [];
565
566 if ( arr != null ) {
567 if ( isArrayLike( Object( arr ) ) ) {
568 jQuery.merge( ret,
569 typeof arr === "string" ?
570 [ arr ] : arr
571 );
572 } else {
573 push.call( ret, arr );
574 }
575 }
576
577 return ret;
578 },
579
580 inArray: function( elem, arr, i ) {
581 return arr == null ? -1 : indexOf.call( arr, elem, i );
582 },
583
584 // Support: Android <=4.0 only, PhantomJS 1 only
585 // push.apply(_, arraylike) throws on ancient WebKit
586 merge: function( first, second ) {
587 var len = +second.length,
588 j = 0,
589 i = first.length;
590
591 for ( ; j < len; j++ ) {
592 first[ i++ ] = second[ j ];
593 }
594
595 first.length = i;
596
597 return first;
598 },
599
600 grep: function( elems, callback, invert ) {
601 var callbackInverse,
602 matches = [],
603 i = 0,
604 length = elems.length,
605 callbackExpect = !invert;
606
607 // Go through the array, only saving the items
608 // that pass the validator function
609 for ( ; i < length; i++ ) {
610 callbackInverse = !callback( elems[ i ], i );
611 if ( callbackInverse !== callbackExpect ) {
612 matches.push( elems[ i ] );
613 }
614 }
615
616 return matches;
617 },
618
619 // arg is for internal usage only
620 map: function( elems, callback, arg ) {
621 var length, value,
622 i = 0,
623 ret = [];
624
625 // Go through the array, translating each of the items to their new values
626 if ( isArrayLike( elems ) ) {
627 length = elems.length;
628 for ( ; i < length; i++ ) {
629 value = callback( elems[ i ], i, arg );
630
631 if ( value != null ) {
632 ret.push( value );
633 }
634 }
635
636 // Go through every key on the object,
637 } else {
638 for ( i in elems ) {
639 value = callback( elems[ i ], i, arg );
640
641 if ( value != null ) {
642 ret.push( value );
643 }
644 }
645 }
646
647 // Flatten any nested arrays
648 return concat.apply( [], ret );
649 },
650
651 // A global GUID counter for objects
652 guid: 1,
653
654 // jQuery.support is not used in Core but other projects attach their
655 // properties to it so it needs to exist.
656 support: support
657} );
658
659if ( typeof Symbol === "function" ) {
660 jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
661}
662
663// Populate the class2type map
664jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
665function( i, name ) {
666 class2type[ "[object " + name + "]" ] = name.toLowerCase();
667} );
668
669function isArrayLike( obj ) {
670
671 // Support: real iOS 8.2 only (not reproducible in simulator)
672 // `in` check used to prevent JIT error (gh-2145)
673 // hasOwn isn't used here due to false negatives
674 // regarding Nodelist length in IE
675 var length = !!obj && "length" in obj && obj.length,
676 type = toType( obj );
677
678 if ( isFunction( obj ) || isWindow( obj ) ) {
679 return false;
680 }
681
682 return type === "array" || length === 0 ||
683 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
684}
685var Sizzle =
686/*!
687 * Sizzle CSS Selector Engine v2.3.3
688 * https://sizzlejs.com/
689 *
690 * Copyright jQuery Foundation and other contributors
691 * Released under the MIT license
692 * http://jquery.org/license
693 *
694 * Date: 2016-08-08
695 */
696(function( window ) {
697
698var i,
699 support,
700 Expr,
701 getText,
702 isXML,
703 tokenize,
704 compile,
705 select,
706 outermostContext,
707 sortInput,
708 hasDuplicate,
709
710 // Local document vars
711 setDocument,
712 document,
713 docElem,
714 documentIsHTML,
715 rbuggyQSA,
716 rbuggyMatches,
717 matches,
718 contains,
719
720 // Instance-specific data
721 expando = "sizzle" + 1 * new Date(),
722 preferredDoc = window.document,
723 dirruns = 0,
724 done = 0,
725 classCache = createCache(),
726 tokenCache = createCache(),
727 compilerCache = createCache(),
728 sortOrder = function( a, b ) {
729 if ( a === b ) {
730 hasDuplicate = true;
731 }
732 return 0;
733 },
734
735 // Instance methods
736 hasOwn = ({}).hasOwnProperty,
737 arr = [],
738 pop = arr.pop,
739 push_native = arr.push,
740 push = arr.push,
741 slice = arr.slice,
742 // Use a stripped-down indexOf as it's faster than native
743 // https://jsperf.com/thor-indexof-vs-for/5
744 indexOf = function( list, elem ) {
745 var i = 0,
746 len = list.length;
747 for ( ; i < len; i++ ) {
748 if ( list[i] === elem ) {
749 return i;
750 }
751 }
752 return -1;
753 },
754
755 booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
756
757 // Regular expressions
758
759 // http://www.w3.org/TR/css3-selectors/#whitespace
760 whitespace = "[\\x20\\t\\r\\n\\f]",
761
762 // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
763 identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
764
765 // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
766 attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
767 // Operator (capture 2)
768 "*([*^$|!~]?=)" + whitespace +
769 // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
770 "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
771 "*\\]",
772
773 pseudos = ":(" + identifier + ")(?:\\((" +
774 // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
775 // 1. quoted (capture 3; capture 4 or capture 5)
776 "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
777 // 2. simple (capture 6)
778 "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
779 // 3. anything else (capture 2)
780 ".*" +
781 ")\\)|)",
782
783 // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
784 rwhitespace = new RegExp( whitespace + "+", "g" ),
785 rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
786
787 rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
788 rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
789
790 rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
791
792 rpseudo = new RegExp( pseudos ),
793 ridentifier = new RegExp( "^" + identifier + "$" ),
794
795 matchExpr = {
796 "ID": new RegExp( "^#(" + identifier + ")" ),
797 "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
798 "TAG": new RegExp( "^(" + identifier + "|[*])" ),
799 "ATTR": new RegExp( "^" + attributes ),
800 "PSEUDO": new RegExp( "^" + pseudos ),
801 "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
802 "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
803 "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
804 "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
805 // For use in libraries implementing .is()
806 // We use this for POS matching in `select`
807 "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
808 whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
809 },
810
811 rinputs = /^(?:input|select|textarea|button)$/i,
812 rheader = /^h\d$/i,
813
814 rnative = /^[^{]+\{\s*\[native \w/,
815
816 // Easily-parseable/retrievable ID or TAG or CLASS selectors
817 rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
818
819 rsibling = /[+~]/,
820
821 // CSS escapes
822 // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
823 runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
824 funescape = function( _, escaped, escapedWhitespace ) {
825 var high = "0x" + escaped - 0x10000;
826 // NaN means non-codepoint
827 // Support: Firefox<24
828 // Workaround erroneous numeric interpretation of +"0x"
829 return high !== high || escapedWhitespace ?
830 escaped :
831 high < 0 ?
832 // BMP codepoint
833 String.fromCharCode( high + 0x10000 ) :
834 // Supplemental Plane codepoint (surrogate pair)
835 String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
836 },
837
838 // CSS string/identifier serialization
839 // https://drafts.csswg.org/cssom/#common-serializing-idioms
840 rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
841 fcssescape = function( ch, asCodePoint ) {
842 if ( asCodePoint ) {
843
844 // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
845 if ( ch === "\0" ) {
846 return "\uFFFD";
847 }
848
849 // Control characters and (dependent upon position) numbers get escaped as code points
850 return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
851 }
852
853 // Other potentially-special ASCII characters get backslash-escaped
854 return "\\" + ch;
855 },
856
857 // Used for iframes
858 // See setDocument()
859 // Removing the function wrapper causes a "Permission Denied"
860 // error in IE
861 unloadHandler = function() {
862 setDocument();
863 },
864
865 disabledAncestor = addCombinator(
866 function( elem ) {
867 return elem.disabled === true && ("form" in elem || "label" in elem);
868 },
869 { dir: "parentNode", next: "legend" }
870 );
871
872// Optimize for push.apply( _, NodeList )
873try {
874 push.apply(
875 (arr = slice.call( preferredDoc.childNodes )),
876 preferredDoc.childNodes
877 );
878 // Support: Android<4.0
879 // Detect silently failing push.apply
880 arr[ preferredDoc.childNodes.length ].nodeType;
881} catch ( e ) {
882 push = { apply: arr.length ?
883
884 // Leverage slice if possible
885 function( target, els ) {
886 push_native.apply( target, slice.call(els) );
887 } :
888
889 // Support: IE<9
890 // Otherwise append directly
891 function( target, els ) {
892 var j = target.length,
893 i = 0;
894 // Can't trust NodeList.length
895 while ( (target[j++] = els[i++]) ) {}
896 target.length = j - 1;
897 }
898 };
899}
900
901function Sizzle( selector, context, results, seed ) {
902 var m, i, elem, nid, match, groups, newSelector,
903 newContext = context && context.ownerDocument,
904
905 // nodeType defaults to 9, since context defaults to document
906 nodeType = context ? context.nodeType : 9;
907
908 results = results || [];
909
910 // Return early from calls with invalid selector or context
911 if ( typeof selector !== "string" || !selector ||
912 nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
913
914 return results;
915 }
916
917 // Try to shortcut find operations (as opposed to filters) in HTML documents
918 if ( !seed ) {
919
920 if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
921 setDocument( context );
922 }
923 context = context || document;
924
925 if ( documentIsHTML ) {
926
927 // If the selector is sufficiently simple, try using a "get*By*" DOM method
928 // (excepting DocumentFragment context, where the methods don't exist)
929 if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
930
931 // ID selector
932 if ( (m = match[1]) ) {
933
934 // Document context
935 if ( nodeType === 9 ) {
936 if ( (elem = context.getElementById( m )) ) {
937
938 // Support: IE, Opera, Webkit
939 // TODO: identify versions
940 // getElementById can match elements by name instead of ID
941 if ( elem.id === m ) {
942 results.push( elem );
943 return results;
944 }
945 } else {
946 return results;
947 }
948
949 // Element context
950 } else {
951
952 // Support: IE, Opera, Webkit
953 // TODO: identify versions
954 // getElementById can match elements by name instead of ID
955 if ( newContext && (elem = newContext.getElementById( m )) &&
956 contains( context, elem ) &&
957 elem.id === m ) {
958
959 results.push( elem );
960 return results;
961 }
962 }
963
964 // Type selector
965 } else if ( match[2] ) {
966 push.apply( results, context.getElementsByTagName( selector ) );
967 return results;
968
969 // Class selector
970 } else if ( (m = match[3]) && support.getElementsByClassName &&
971 context.getElementsByClassName ) {
972
973 push.apply( results, context.getElementsByClassName( m ) );
974 return results;
975 }
976 }
977
978 // Take advantage of querySelectorAll
979 if ( support.qsa &&
980 !compilerCache[ selector + " " ] &&
981 (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
982
983 if ( nodeType !== 1 ) {
984 newContext = context;
985 newSelector = selector;
986
987 // qSA looks outside Element context, which is not what we want
988 // Thanks to Andrew Dupont for this workaround technique
989 // Support: IE <=8
990 // Exclude object elements
991 } else if ( context.nodeName.toLowerCase() !== "object" ) {
992
993 // Capture the context ID, setting it first if necessary
994 if ( (nid = context.getAttribute( "id" )) ) {
995 nid = nid.replace( rcssescape, fcssescape );
996 } else {
997 context.setAttribute( "id", (nid = expando) );
998 }
999
1000 // Prefix every selector in the list
1001 groups = tokenize( selector );
1002 i = groups.length;
1003 while ( i-- ) {
1004 groups[i] = "#" + nid + " " + toSelector( groups[i] );
1005 }
1006 newSelector = groups.join( "," );
1007
1008 // Expand context for sibling selectors
1009 newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
1010 context;
1011 }
1012
1013 if ( newSelector ) {
1014 try {
1015 push.apply( results,
1016 newContext.querySelectorAll( newSelector )
1017 );
1018 return results;
1019 } catch ( qsaError ) {
1020 } finally {
1021 if ( nid === expando ) {
1022 context.removeAttribute( "id" );
1023 }
1024 }
1025 }
1026 }
1027 }
1028 }
1029
1030 // All others
1031 return select( selector.replace( rtrim, "$1" ), context, results, seed );
1032}
1033
1034/**
1035 * Create key-value caches of limited size
1036 * @returns {function(string, object)} Returns the Object data after storing it on itself with
1037 * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
1038 * deleting the oldest entry
1039 */
1040function createCache() {
1041 var keys = [];
1042
1043 function cache( key, value ) {
1044 // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
1045 if ( keys.push( key + " " ) > Expr.cacheLength ) {
1046 // Only keep the most recent entries
1047 delete cache[ keys.shift() ];
1048 }
1049 return (cache[ key + " " ] = value);
1050 }
1051 return cache;
1052}
1053
1054/**
1055 * Mark a function for special use by Sizzle
1056 * @param {Function} fn The function to mark
1057 */
1058function markFunction( fn ) {
1059 fn[ expando ] = true;
1060 return fn;
1061}
1062
1063/**
1064 * Support testing using an element
1065 * @param {Function} fn Passed the created element and returns a boolean result
1066 */
1067function assert( fn ) {
1068 var el = document.createElement("fieldset");
1069
1070 try {
1071 return !!fn( el );
1072 } catch (e) {
1073 return false;
1074 } finally {
1075 // Remove from its parent by default
1076 if ( el.parentNode ) {
1077 el.parentNode.removeChild( el );
1078 }
1079 // release memory in IE
1080 el = null;
1081 }
1082}
1083
1084/**
1085 * Adds the same handler for all of the specified attrs
1086 * @param {String} attrs Pipe-separated list of attributes
1087 * @param {Function} handler The method that will be applied
1088 */
1089function addHandle( attrs, handler ) {
1090 var arr = attrs.split("|"),
1091 i = arr.length;
1092
1093 while ( i-- ) {
1094 Expr.attrHandle[ arr[i] ] = handler;
1095 }
1096}
1097
1098/**
1099 * Checks document order of two siblings
1100 * @param {Element} a
1101 * @param {Element} b
1102 * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
1103 */
1104function siblingCheck( a, b ) {
1105 var cur = b && a,
1106 diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
1107 a.sourceIndex - b.sourceIndex;
1108
1109 // Use IE sourceIndex if available on both nodes
1110 if ( diff ) {
1111 return diff;
1112 }
1113
1114 // Check if b follows a
1115 if ( cur ) {
1116 while ( (cur = cur.nextSibling) ) {
1117 if ( cur === b ) {
1118 return -1;
1119 }
1120 }
1121 }
1122
1123 return a ? 1 : -1;
1124}
1125
1126/**
1127 * Returns a function to use in pseudos for input types
1128 * @param {String} type
1129 */
1130function createInputPseudo( type ) {
1131 return function( elem ) {
1132 var name = elem.nodeName.toLowerCase();
1133 return name === "input" && elem.type === type;
1134 };
1135}
1136
1137/**
1138 * Returns a function to use in pseudos for buttons
1139 * @param {String} type
1140 */
1141function createButtonPseudo( type ) {
1142 return function( elem ) {
1143 var name = elem.nodeName.toLowerCase();
1144 return (name === "input" || name === "button") && elem.type === type;
1145 };
1146}
1147
1148/**
1149 * Returns a function to use in pseudos for :enabled/:disabled
1150 * @param {Boolean} disabled true for :disabled; false for :enabled
1151 */
1152function createDisabledPseudo( disabled ) {
1153
1154 // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
1155 return function( elem ) {
1156
1157 // Only certain elements can match :enabled or :disabled
1158 // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
1159 // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
1160 if ( "form" in elem ) {
1161
1162 // Check for inherited disabledness on relevant non-disabled elements:
1163 // * listed form-associated elements in a disabled fieldset
1164 // https://html.spec.whatwg.org/multipage/forms.html#category-listed
1165 // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
1166 // * option elements in a disabled optgroup
1167 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
1168 // All such elements have a "form" property.
1169 if ( elem.parentNode && elem.disabled === false ) {
1170
1171 // Option elements defer to a parent optgroup if present
1172 if ( "label" in elem ) {
1173 if ( "label" in elem.parentNode ) {
1174 return elem.parentNode.disabled === disabled;
1175 } else {
1176 return elem.disabled === disabled;
1177 }
1178 }
1179
1180 // Support: IE 6 - 11
1181 // Use the isDisabled shortcut property to check for disabled fieldset ancestors
1182 return elem.isDisabled === disabled ||
1183
1184 // Where there is no isDisabled, check manually
1185 /* jshint -W018 */
1186 elem.isDisabled !== !disabled &&
1187 disabledAncestor( elem ) === disabled;
1188 }
1189
1190 return elem.disabled === disabled;
1191
1192 // Try to winnow out elements that can't be disabled before trusting the disabled property.
1193 // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
1194 // even exist on them, let alone have a boolean value.
1195 } else if ( "label" in elem ) {
1196 return elem.disabled === disabled;
1197 }
1198
1199 // Remaining elements are neither :enabled nor :disabled
1200 return false;
1201 };
1202}
1203
1204/**
1205 * Returns a function to use in pseudos for positionals
1206 * @param {Function} fn
1207 */
1208function createPositionalPseudo( fn ) {
1209 return markFunction(function( argument ) {
1210 argument = +argument;
1211 return markFunction(function( seed, matches ) {
1212 var j,
1213 matchIndexes = fn( [], seed.length, argument ),
1214 i = matchIndexes.length;
1215
1216 // Match elements found at the specified indexes
1217 while ( i-- ) {
1218 if ( seed[ (j = matchIndexes[i]) ] ) {
1219 seed[j] = !(matches[j] = seed[j]);
1220 }
1221 }
1222 });
1223 });
1224}
1225
1226/**
1227 * Checks a node for validity as a Sizzle context
1228 * @param {Element|Object=} context
1229 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
1230 */
1231function testContext( context ) {
1232 return context && typeof context.getElementsByTagName !== "undefined" && context;
1233}
1234
1235// Expose support vars for convenience
1236support = Sizzle.support = {};
1237
1238/**
1239 * Detects XML nodes
1240 * @param {Element|Object} elem An element or a document
1241 * @returns {Boolean} True iff elem is a non-HTML XML node
1242 */
1243isXML = Sizzle.isXML = function( elem ) {
1244 // documentElement is verified for cases where it doesn't yet exist
1245 // (such as loading iframes in IE - #4833)
1246 var documentElement = elem && (elem.ownerDocument || elem).documentElement;
1247 return documentElement ? documentElement.nodeName !== "HTML" : false;
1248};
1249
1250/**
1251 * Sets document-related variables once based on the current document
1252 * @param {Element|Object} [doc] An element or document object to use to set the document
1253 * @returns {Object} Returns the current document
1254 */
1255setDocument = Sizzle.setDocument = function( node ) {
1256 var hasCompare, subWindow,
1257 doc = node ? node.ownerDocument || node : preferredDoc;
1258
1259 // Return early if doc is invalid or already selected
1260 if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
1261 return document;
1262 }
1263
1264 // Update global variables
1265 document = doc;
1266 docElem = document.documentElement;
1267 documentIsHTML = !isXML( document );
1268
1269 // Support: IE 9-11, Edge
1270 // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
1271 if ( preferredDoc !== document &&
1272 (subWindow = document.defaultView) && subWindow.top !== subWindow ) {
1273
1274 // Support: IE 11, Edge
1275 if ( subWindow.addEventListener ) {
1276 subWindow.addEventListener( "unload", unloadHandler, false );
1277
1278 // Support: IE 9 - 10 only
1279 } else if ( subWindow.attachEvent ) {
1280 subWindow.attachEvent( "onunload", unloadHandler );
1281 }
1282 }
1283
1284 /* Attributes
1285 ---------------------------------------------------------------------- */
1286
1287 // Support: IE<8
1288 // Verify that getAttribute really returns attributes and not properties
1289 // (excepting IE8 booleans)
1290 support.attributes = assert(function( el ) {
1291 el.className = "i";
1292 return !el.getAttribute("className");
1293 });
1294
1295 /* getElement(s)By*
1296 ---------------------------------------------------------------------- */
1297
1298 // Check if getElementsByTagName("*") returns only elements
1299 support.getElementsByTagName = assert(function( el ) {
1300 el.appendChild( document.createComment("") );
1301 return !el.getElementsByTagName("*").length;
1302 });
1303
1304 // Support: IE<9
1305 support.getElementsByClassName = rnative.test( document.getElementsByClassName );
1306
1307 // Support: IE<10
1308 // Check if getElementById returns elements by name
1309 // The broken getElementById methods don't pick up programmatically-set names,
1310 // so use a roundabout getElementsByName test
1311 support.getById = assert(function( el ) {
1312 docElem.appendChild( el ).id = expando;
1313 return !document.getElementsByName || !document.getElementsByName( expando ).length;
1314 });
1315
1316 // ID filter and find
1317 if ( support.getById ) {
1318 Expr.filter["ID"] = function( id ) {
1319 var attrId = id.replace( runescape, funescape );
1320 return function( elem ) {
1321 return elem.getAttribute("id") === attrId;
1322 };
1323 };
1324 Expr.find["ID"] = function( id, context ) {
1325 if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
1326 var elem = context.getElementById( id );
1327 return elem ? [ elem ] : [];
1328 }
1329 };
1330 } else {
1331 Expr.filter["ID"] = function( id ) {
1332 var attrId = id.replace( runescape, funescape );
1333 return function( elem ) {
1334 var node = typeof elem.getAttributeNode !== "undefined" &&
1335 elem.getAttributeNode("id");
1336 return node && node.value === attrId;
1337 };
1338 };
1339
1340 // Support: IE 6 - 7 only
1341 // getElementById is not reliable as a find shortcut
1342 Expr.find["ID"] = function( id, context ) {
1343 if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
1344 var node, i, elems,
1345 elem = context.getElementById( id );
1346
1347 if ( elem ) {
1348
1349 // Verify the id attribute
1350 node = elem.getAttributeNode("id");
1351 if ( node && node.value === id ) {
1352 return [ elem ];
1353 }
1354
1355 // Fall back on getElementsByName
1356 elems = context.getElementsByName( id );
1357 i = 0;
1358 while ( (elem = elems[i++]) ) {
1359 node = elem.getAttributeNode("id");
1360 if ( node && node.value === id ) {
1361 return [ elem ];
1362 }
1363 }
1364 }
1365
1366 return [];
1367 }
1368 };
1369 }
1370
1371 // Tag
1372 Expr.find["TAG"] = support.getElementsByTagName ?
1373 function( tag, context ) {
1374 if ( typeof context.getElementsByTagName !== "undefined" ) {
1375 return context.getElementsByTagName( tag );
1376
1377 // DocumentFragment nodes don't have gEBTN
1378 } else if ( support.qsa ) {
1379 return context.querySelectorAll( tag );
1380 }
1381 } :
1382
1383 function( tag, context ) {
1384 var elem,
1385 tmp = [],
1386 i = 0,
1387 // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
1388 results = context.getElementsByTagName( tag );
1389
1390 // Filter out possible comments
1391 if ( tag === "*" ) {
1392 while ( (elem = results[i++]) ) {
1393 if ( elem.nodeType === 1 ) {
1394 tmp.push( elem );
1395 }
1396 }
1397
1398 return tmp;
1399 }
1400 return results;
1401 };
1402
1403 // Class
1404 Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
1405 if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
1406 return context.getElementsByClassName( className );
1407 }
1408 };
1409
1410 /* QSA/matchesSelector
1411 ---------------------------------------------------------------------- */
1412
1413 // QSA and matchesSelector support
1414
1415 // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
1416 rbuggyMatches = [];
1417
1418 // qSa(:focus) reports false when true (Chrome 21)
1419 // We allow this because of a bug in IE8/9 that throws an error
1420 // whenever `document.activeElement` is accessed on an iframe
1421 // So, we allow :focus to pass through QSA all the time to avoid the IE error
1422 // See https://bugs.jquery.com/ticket/13378
1423 rbuggyQSA = [];
1424
1425 if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
1426 // Build QSA regex
1427 // Regex strategy adopted from Diego Perini
1428 assert(function( el ) {
1429 // Select is set to empty string on purpose
1430 // This is to test IE's treatment of not explicitly
1431 // setting a boolean content attribute,
1432 // since its presence should be enough
1433 // https://bugs.jquery.com/ticket/12359
1434 docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
1435 "<select id='" + expando + "-\r\\' msallowcapture=''>" +
1436 "<option selected=''></option></select>";
1437
1438 // Support: IE8, Opera 11-12.16
1439 // Nothing should be selected when empty strings follow ^= or $= or *=
1440 // The test attribute must be unknown in Opera but "safe" for WinRT
1441 // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
1442 if ( el.querySelectorAll("[msallowcapture^='']").length ) {
1443 rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
1444 }
1445
1446 // Support: IE8
1447 // Boolean attributes and "value" are not treated correctly
1448 if ( !el.querySelectorAll("[selected]").length ) {
1449 rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
1450 }
1451
1452 // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
1453 if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
1454 rbuggyQSA.push("~=");
1455 }
1456
1457 // Webkit/Opera - :checked should return selected option elements
1458 // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
1459 // IE8 throws error here and will not see later tests
1460 if ( !el.querySelectorAll(":checked").length ) {
1461 rbuggyQSA.push(":checked");
1462 }
1463
1464 // Support: Safari 8+, iOS 8+
1465 // https://bugs.webkit.org/show_bug.cgi?id=136851
1466 // In-page `selector#id sibling-combinator selector` fails
1467 if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
1468 rbuggyQSA.push(".#.+[+~]");
1469 }
1470 });
1471
1472 assert(function( el ) {
1473 el.innerHTML = "<a href='' disabled='disabled'></a>" +
1474 "<select disabled='disabled'><option/></select>";
1475
1476 // Support: Windows 8 Native Apps
1477 // The type and name attributes are restricted during .innerHTML assignment
1478 var input = document.createElement("input");
1479 input.setAttribute( "type", "hidden" );
1480 el.appendChild( input ).setAttribute( "name", "D" );
1481
1482 // Support: IE8
1483 // Enforce case-sensitivity of name attribute
1484 if ( el.querySelectorAll("[name=d]").length ) {
1485 rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
1486 }
1487
1488 // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
1489 // IE8 throws error here and will not see later tests
1490 if ( el.querySelectorAll(":enabled").length !== 2 ) {
1491 rbuggyQSA.push( ":enabled", ":disabled" );
1492 }
1493
1494 // Support: IE9-11+
1495 // IE's :disabled selector does not pick up the children of disabled fieldsets
1496 docElem.appendChild( el ).disabled = true;
1497 if ( el.querySelectorAll(":disabled").length !== 2 ) {
1498 rbuggyQSA.push( ":enabled", ":disabled" );
1499 }
1500
1501 // Opera 10-11 does not throw on post-comma invalid pseudos
1502 el.querySelectorAll("*,:x");
1503 rbuggyQSA.push(",.*:");
1504 });
1505 }
1506
1507 if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
1508 docElem.webkitMatchesSelector ||
1509 docElem.mozMatchesSelector ||
1510 docElem.oMatchesSelector ||
1511 docElem.msMatchesSelector) )) ) {
1512
1513 assert(function( el ) {
1514 // Check to see if it's possible to do matchesSelector
1515 // on a disconnected node (IE 9)
1516 support.disconnectedMatch = matches.call( el, "*" );
1517
1518 // This should fail with an exception
1519 // Gecko does not error, returns false instead
1520 matches.call( el, "[s!='']:x" );
1521 rbuggyMatches.push( "!=", pseudos );
1522 });
1523 }
1524
1525 rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
1526 rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
1527
1528 /* Contains
1529 ---------------------------------------------------------------------- */
1530 hasCompare = rnative.test( docElem.compareDocumentPosition );
1531
1532 // Element contains another
1533 // Purposefully self-exclusive
1534 // As in, an element does not contain itself
1535 contains = hasCompare || rnative.test( docElem.contains ) ?
1536 function( a, b ) {
1537 var adown = a.nodeType === 9 ? a.documentElement : a,
1538 bup = b && b.parentNode;
1539 return a === bup || !!( bup && bup.nodeType === 1 && (
1540 adown.contains ?
1541 adown.contains( bup ) :
1542 a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
1543 ));
1544 } :
1545 function( a, b ) {
1546 if ( b ) {
1547 while ( (b = b.parentNode) ) {
1548 if ( b === a ) {
1549 return true;
1550 }
1551 }
1552 }
1553 return false;
1554 };
1555
1556 /* Sorting
1557 ---------------------------------------------------------------------- */
1558
1559 // Document order sorting
1560 sortOrder = hasCompare ?
1561 function( a, b ) {
1562
1563 // Flag for duplicate removal
1564 if ( a === b ) {
1565 hasDuplicate = true;
1566 return 0;
1567 }
1568
1569 // Sort on method existence if only one input has compareDocumentPosition
1570 var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
1571 if ( compare ) {
1572 return compare;
1573 }
1574
1575 // Calculate position if both inputs belong to the same document
1576 compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
1577 a.compareDocumentPosition( b ) :
1578
1579 // Otherwise we know they are disconnected
1580 1;
1581
1582 // Disconnected nodes
1583 if ( compare & 1 ||
1584 (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
1585
1586 // Choose the first element that is related to our preferred document
1587 if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
1588 return -1;
1589 }
1590 if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
1591 return 1;
1592 }
1593
1594 // Maintain original order
1595 return sortInput ?
1596 ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
1597 0;
1598 }
1599
1600 return compare & 4 ? -1 : 1;
1601 } :
1602 function( a, b ) {
1603 // Exit early if the nodes are identical
1604 if ( a === b ) {
1605 hasDuplicate = true;
1606 return 0;
1607 }
1608
1609 var cur,
1610 i = 0,
1611 aup = a.parentNode,
1612 bup = b.parentNode,
1613 ap = [ a ],
1614 bp = [ b ];
1615
1616 // Parentless nodes are either documents or disconnected
1617 if ( !aup || !bup ) {
1618 return a === document ? -1 :
1619 b === document ? 1 :
1620 aup ? -1 :
1621 bup ? 1 :
1622 sortInput ?
1623 ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
1624 0;
1625
1626 // If the nodes are siblings, we can do a quick check
1627 } else if ( aup === bup ) {
1628 return siblingCheck( a, b );
1629 }
1630
1631 // Otherwise we need full lists of their ancestors for comparison
1632 cur = a;
1633 while ( (cur = cur.parentNode) ) {
1634 ap.unshift( cur );
1635 }
1636 cur = b;
1637 while ( (cur = cur.parentNode) ) {
1638 bp.unshift( cur );
1639 }
1640
1641 // Walk down the tree looking for a discrepancy
1642 while ( ap[i] === bp[i] ) {
1643 i++;
1644 }
1645
1646 return i ?
1647 // Do a sibling check if the nodes have a common ancestor
1648 siblingCheck( ap[i], bp[i] ) :
1649
1650 // Otherwise nodes in our document sort first
1651 ap[i] === preferredDoc ? -1 :
1652 bp[i] === preferredDoc ? 1 :
1653 0;
1654 };
1655
1656 return document;
1657};
1658
1659Sizzle.matches = function( expr, elements ) {
1660 return Sizzle( expr, null, null, elements );
1661};
1662
1663Sizzle.matchesSelector = function( elem, expr ) {
1664 // Set document vars if needed
1665 if ( ( elem.ownerDocument || elem ) !== document ) {
1666 setDocument( elem );
1667 }
1668
1669 // Make sure that attribute selectors are quoted
1670 expr = expr.replace( rattributeQuotes, "='$1']" );
1671
1672 if ( support.matchesSelector && documentIsHTML &&
1673 !compilerCache[ expr + " " ] &&
1674 ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
1675 ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
1676
1677 try {
1678 var ret = matches.call( elem, expr );
1679
1680 // IE 9's matchesSelector returns false on disconnected nodes
1681 if ( ret || support.disconnectedMatch ||
1682 // As well, disconnected nodes are said to be in a document
1683 // fragment in IE 9
1684 elem.document && elem.document.nodeType !== 11 ) {
1685 return ret;
1686 }
1687 } catch (e) {}
1688 }
1689
1690 return Sizzle( expr, document, null, [ elem ] ).length > 0;
1691};
1692
1693Sizzle.contains = function( context, elem ) {
1694 // Set document vars if needed
1695 if ( ( context.ownerDocument || context ) !== document ) {
1696 setDocument( context );
1697 }
1698 return contains( context, elem );
1699};
1700
1701Sizzle.attr = function( elem, name ) {
1702 // Set document vars if needed
1703 if ( ( elem.ownerDocument || elem ) !== document ) {
1704 setDocument( elem );
1705 }
1706
1707 var fn = Expr.attrHandle[ name.toLowerCase() ],
1708 // Don't get fooled by Object.prototype properties (jQuery #13807)
1709 val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
1710 fn( elem, name, !documentIsHTML ) :
1711 undefined;
1712
1713 return val !== undefined ?
1714 val :
1715 support.attributes || !documentIsHTML ?
1716 elem.getAttribute( name ) :
1717 (val = elem.getAttributeNode(name)) && val.specified ?
1718 val.value :
1719 null;
1720};
1721
1722Sizzle.escape = function( sel ) {
1723 return (sel + "").replace( rcssescape, fcssescape );
1724};
1725
1726Sizzle.error = function( msg ) {
1727 throw new Error( "Syntax error, unrecognized expression: " + msg );
1728};
1729
1730/**
1731 * Document sorting and removing duplicates
1732 * @param {ArrayLike} results
1733 */
1734Sizzle.uniqueSort = function( results ) {
1735 var elem,
1736 duplicates = [],
1737 j = 0,
1738 i = 0;
1739
1740 // Unless we *know* we can detect duplicates, assume their presence
1741 hasDuplicate = !support.detectDuplicates;
1742 sortInput = !support.sortStable && results.slice( 0 );
1743 results.sort( sortOrder );
1744
1745 if ( hasDuplicate ) {
1746 while ( (elem = results[i++]) ) {
1747 if ( elem === results[ i ] ) {
1748 j = duplicates.push( i );
1749 }
1750 }
1751 while ( j-- ) {
1752 results.splice( duplicates[ j ], 1 );
1753 }
1754 }
1755
1756 // Clear input after sorting to release objects
1757 // See https://github.com/jquery/sizzle/pull/225
1758 sortInput = null;
1759
1760 return results;
1761};
1762
1763/**
1764 * Utility function for retrieving the text value of an array of DOM nodes
1765 * @param {Array|Element} elem
1766 */
1767getText = Sizzle.getText = function( elem ) {
1768 var node,
1769 ret = "",
1770 i = 0,
1771 nodeType = elem.nodeType;
1772
1773 if ( !nodeType ) {
1774 // If no nodeType, this is expected to be an array
1775 while ( (node = elem[i++]) ) {
1776 // Do not traverse comment nodes
1777 ret += getText( node );
1778 }
1779 } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
1780 // Use textContent for elements
1781 // innerText usage removed for consistency of new lines (jQuery #11153)
1782 if ( typeof elem.textContent === "string" ) {
1783 return elem.textContent;
1784 } else {
1785 // Traverse its children
1786 for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
1787 ret += getText( elem );
1788 }
1789 }
1790 } else if ( nodeType === 3 || nodeType === 4 ) {
1791 return elem.nodeValue;
1792 }
1793 // Do not include comment or processing instruction nodes
1794
1795 return ret;
1796};
1797
1798Expr = Sizzle.selectors = {
1799
1800 // Can be adjusted by the user
1801 cacheLength: 50,
1802
1803 createPseudo: markFunction,
1804
1805 match: matchExpr,
1806
1807 attrHandle: {},
1808
1809 find: {},
1810
1811 relative: {
1812 ">": { dir: "parentNode", first: true },
1813 " ": { dir: "parentNode" },
1814 "+": { dir: "previousSibling", first: true },
1815 "~": { dir: "previousSibling" }
1816 },
1817
1818 preFilter: {
1819 "ATTR": function( match ) {
1820 match[1] = match[1].replace( runescape, funescape );
1821
1822 // Move the given value to match[3] whether quoted or unquoted
1823 match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
1824
1825 if ( match[2] === "~=" ) {
1826 match[3] = " " + match[3] + " ";
1827 }
1828
1829 return match.slice( 0, 4 );
1830 },
1831
1832 "CHILD": function( match ) {
1833 /* matches from matchExpr["CHILD"]
1834 1 type (only|nth|...)
1835 2 what (child|of-type)
1836 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
1837 4 xn-component of xn+y argument ([+-]?\d*n|)
1838 5 sign of xn-component
1839 6 x of xn-component
1840 7 sign of y-component
1841 8 y of y-component
1842 */
1843 match[1] = match[1].toLowerCase();
1844
1845 if ( match[1].slice( 0, 3 ) === "nth" ) {
1846 // nth-* requires argument
1847 if ( !match[3] ) {
1848 Sizzle.error( match[0] );
1849 }
1850
1851 // numeric x and y parameters for Expr.filter.CHILD
1852 // remember that false/true cast respectively to 0/1
1853 match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
1854 match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
1855
1856 // other types prohibit arguments
1857 } else if ( match[3] ) {
1858 Sizzle.error( match[0] );
1859 }
1860
1861 return match;
1862 },
1863
1864 "PSEUDO": function( match ) {
1865 var excess,
1866 unquoted = !match[6] && match[2];
1867
1868 if ( matchExpr["CHILD"].test( match[0] ) ) {
1869 return null;
1870 }
1871
1872 // Accept quoted arguments as-is
1873 if ( match[3] ) {
1874 match[2] = match[4] || match[5] || "";
1875
1876 // Strip excess characters from unquoted arguments
1877 } else if ( unquoted && rpseudo.test( unquoted ) &&
1878 // Get excess from tokenize (recursively)
1879 (excess = tokenize( unquoted, true )) &&
1880 // advance to the next closing parenthesis
1881 (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
1882
1883 // excess is a negative index
1884 match[0] = match[0].slice( 0, excess );
1885 match[2] = unquoted.slice( 0, excess );
1886 }
1887
1888 // Return only captures needed by the pseudo filter method (type and argument)
1889 return match.slice( 0, 3 );
1890 }
1891 },
1892
1893 filter: {
1894
1895 "TAG": function( nodeNameSelector ) {
1896 var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
1897 return nodeNameSelector === "*" ?
1898 function() { return true; } :
1899 function( elem ) {
1900 return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
1901 };
1902 },
1903
1904 "CLASS": function( className ) {
1905 var pattern = classCache[ className + " " ];
1906
1907 return pattern ||
1908 (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
1909 classCache( className, function( elem ) {
1910 return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
1911 });
1912 },
1913
1914 "ATTR": function( name, operator, check ) {
1915 return function( elem ) {
1916 var result = Sizzle.attr( elem, name );
1917
1918 if ( result == null ) {
1919 return operator === "!=";
1920 }
1921 if ( !operator ) {
1922 return true;
1923 }
1924
1925 result += "";
1926
1927 return operator === "=" ? result === check :
1928 operator === "!=" ? result !== check :
1929 operator === "^=" ? check && result.indexOf( check ) === 0 :
1930 operator === "*=" ? check && result.indexOf( check ) > -1 :
1931 operator === "$=" ? check && result.slice( -check.length ) === check :
1932 operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
1933 operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
1934 false;
1935 };
1936 },
1937
1938 "CHILD": function( type, what, argument, first, last ) {
1939 var simple = type.slice( 0, 3 ) !== "nth",
1940 forward = type.slice( -4 ) !== "last",
1941 ofType = what === "of-type";
1942
1943 return first === 1 && last === 0 ?
1944
1945 // Shortcut for :nth-*(n)
1946 function( elem ) {
1947 return !!elem.parentNode;
1948 } :
1949
1950 function( elem, context, xml ) {
1951 var cache, uniqueCache, outerCache, node, nodeIndex, start,
1952 dir = simple !== forward ? "nextSibling" : "previousSibling",
1953 parent = elem.parentNode,
1954 name = ofType && elem.nodeName.toLowerCase(),
1955 useCache = !xml && !ofType,
1956 diff = false;
1957
1958 if ( parent ) {
1959
1960 // :(first|last|only)-(child|of-type)
1961 if ( simple ) {
1962 while ( dir ) {
1963 node = elem;
1964 while ( (node = node[ dir ]) ) {
1965 if ( ofType ?
1966 node.nodeName.toLowerCase() === name :
1967 node.nodeType === 1 ) {
1968
1969 return false;
1970 }
1971 }
1972 // Reverse direction for :only-* (if we haven't yet done so)
1973 start = dir = type === "only" && !start && "nextSibling";
1974 }
1975 return true;
1976 }
1977
1978 start = [ forward ? parent.firstChild : parent.lastChild ];
1979
1980 // non-xml :nth-child(...) stores cache data on `parent`
1981 if ( forward && useCache ) {
1982
1983 // Seek `elem` from a previously-cached index
1984
1985 // ...in a gzip-friendly way
1986 node = parent;
1987 outerCache = node[ expando ] || (node[ expando ] = {});
1988
1989 // Support: IE <9 only
1990 // Defend against cloned attroperties (jQuery gh-1709)
1991 uniqueCache = outerCache[ node.uniqueID ] ||
1992 (outerCache[ node.uniqueID ] = {});
1993
1994 cache = uniqueCache[ type ] || [];
1995 nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
1996 diff = nodeIndex && cache[ 2 ];
1997 node = nodeIndex && parent.childNodes[ nodeIndex ];
1998
1999 while ( (node = ++nodeIndex && node && node[ dir ] ||
2000
2001 // Fallback to seeking `elem` from the start
2002 (diff = nodeIndex = 0) || start.pop()) ) {
2003
2004 // When found, cache indexes on `parent` and break
2005 if ( node.nodeType === 1 && ++diff && node === elem ) {
2006 uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
2007 break;
2008 }
2009 }
2010
2011 } else {
2012 // Use previously-cached element index if available
2013 if ( useCache ) {
2014 // ...in a gzip-friendly way
2015 node = elem;
2016 outerCache = node[ expando ] || (node[ expando ] = {});
2017
2018 // Support: IE <9 only
2019 // Defend against cloned attroperties (jQuery gh-1709)
2020 uniqueCache = outerCache[ node.uniqueID ] ||
2021 (outerCache[ node.uniqueID ] = {});
2022
2023 cache = uniqueCache[ type ] || [];
2024 nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
2025 diff = nodeIndex;
2026 }
2027
2028 // xml :nth-child(...)
2029 // or :nth-last-child(...) or :nth(-last)?-of-type(...)
2030 if ( diff === false ) {
2031 // Use the same loop as above to seek `elem` from the start
2032 while ( (node = ++nodeIndex && node && node[ dir ] ||
2033 (diff = nodeIndex = 0) || start.pop()) ) {
2034
2035 if ( ( ofType ?
2036 node.nodeName.toLowerCase() === name :
2037 node.nodeType === 1 ) &&
2038 ++diff ) {
2039
2040 // Cache the index of each encountered element
2041 if ( useCache ) {
2042 outerCache = node[ expando ] || (node[ expando ] = {});
2043
2044 // Support: IE <9 only
2045 // Defend against cloned attroperties (jQuery gh-1709)
2046 uniqueCache = outerCache[ node.uniqueID ] ||
2047 (outerCache[ node.uniqueID ] = {});
2048
2049 uniqueCache[ type ] = [ dirruns, diff ];
2050 }
2051
2052 if ( node === elem ) {
2053 break;
2054 }
2055 }
2056 }
2057 }
2058 }
2059
2060 // Incorporate the offset, then check against cycle size
2061 diff -= last;
2062 return diff === first || ( diff % first === 0 && diff / first >= 0 );
2063 }
2064 };
2065 },
2066
2067 "PSEUDO": function( pseudo, argument ) {
2068 // pseudo-class names are case-insensitive
2069 // http://www.w3.org/TR/selectors/#pseudo-classes
2070 // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
2071 // Remember that setFilters inherits from pseudos
2072 var args,
2073 fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
2074 Sizzle.error( "unsupported pseudo: " + pseudo );
2075
2076 // The user may use createPseudo to indicate that
2077 // arguments are needed to create the filter function
2078 // just as Sizzle does
2079 if ( fn[ expando ] ) {
2080 return fn( argument );
2081 }
2082
2083 // But maintain support for old signatures
2084 if ( fn.length > 1 ) {
2085 args = [ pseudo, pseudo, "", argument ];
2086 return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
2087 markFunction(function( seed, matches ) {
2088 var idx,
2089 matched = fn( seed, argument ),
2090 i = matched.length;
2091 while ( i-- ) {
2092 idx = indexOf( seed, matched[i] );
2093 seed[ idx ] = !( matches[ idx ] = matched[i] );
2094 }
2095 }) :
2096 function( elem ) {
2097 return fn( elem, 0, args );
2098 };
2099 }
2100
2101 return fn;
2102 }
2103 },
2104
2105 pseudos: {
2106 // Potentially complex pseudos
2107 "not": markFunction(function( selector ) {
2108 // Trim the selector passed to compile
2109 // to avoid treating leading and trailing
2110 // spaces as combinators
2111 var input = [],
2112 results = [],
2113 matcher = compile( selector.replace( rtrim, "$1" ) );
2114
2115 return matcher[ expando ] ?
2116 markFunction(function( seed, matches, context, xml ) {
2117 var elem,
2118 unmatched = matcher( seed, null, xml, [] ),
2119 i = seed.length;
2120
2121 // Match elements unmatched by `matcher`
2122 while ( i-- ) {
2123 if ( (elem = unmatched[i]) ) {
2124 seed[i] = !(matches[i] = elem);
2125 }
2126 }
2127 }) :
2128 function( elem, context, xml ) {
2129 input[0] = elem;
2130 matcher( input, null, xml, results );
2131 // Don't keep the element (issue #299)
2132 input[0] = null;
2133 return !results.pop();
2134 };
2135 }),
2136
2137 "has": markFunction(function( selector ) {
2138 return function( elem ) {
2139 return Sizzle( selector, elem ).length > 0;
2140 };
2141 }),
2142
2143 "contains": markFunction(function( text ) {
2144 text = text.replace( runescape, funescape );
2145 return function( elem ) {
2146 return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
2147 };
2148 }),
2149
2150 // "Whether an element is represented by a :lang() selector
2151 // is based solely on the element's language value
2152 // being equal to the identifier C,
2153 // or beginning with the identifier C immediately followed by "-".
2154 // The matching of C against the element's language value is performed case-insensitively.
2155 // The identifier C does not have to be a valid language name."
2156 // http://www.w3.org/TR/selectors/#lang-pseudo
2157 "lang": markFunction( function( lang ) {
2158 // lang value must be a valid identifier
2159 if ( !ridentifier.test(lang || "") ) {
2160 Sizzle.error( "unsupported lang: " + lang );
2161 }
2162 lang = lang.replace( runescape, funescape ).toLowerCase();
2163 return function( elem ) {
2164 var elemLang;
2165 do {
2166 if ( (elemLang = documentIsHTML ?
2167 elem.lang :
2168 elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
2169
2170 elemLang = elemLang.toLowerCase();
2171 return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
2172 }
2173 } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
2174 return false;
2175 };
2176 }),
2177
2178 // Miscellaneous
2179 "target": function( elem ) {
2180 var hash = window.location && window.location.hash;
2181 return hash && hash.slice( 1 ) === elem.id;
2182 },
2183
2184 "root": function( elem ) {
2185 return elem === docElem;
2186 },
2187
2188 "focus": function( elem ) {
2189 return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
2190 },
2191
2192 // Boolean properties
2193 "enabled": createDisabledPseudo( false ),
2194 "disabled": createDisabledPseudo( true ),
2195
2196 "checked": function( elem ) {
2197 // In CSS3, :checked should return both checked and selected elements
2198 // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
2199 var nodeName = elem.nodeName.toLowerCase();
2200 return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
2201 },
2202
2203 "selected": function( elem ) {
2204 // Accessing this property makes selected-by-default
2205 // options in Safari work properly
2206 if ( elem.parentNode ) {
2207 elem.parentNode.selectedIndex;
2208 }
2209
2210 return elem.selected === true;
2211 },
2212
2213 // Contents
2214 "empty": function( elem ) {
2215 // http://www.w3.org/TR/selectors/#empty-pseudo
2216 // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
2217 // but not by others (comment: 8; processing instruction: 7; etc.)
2218 // nodeType < 6 works because attributes (2) do not appear as children
2219 for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
2220 if ( elem.nodeType < 6 ) {
2221 return false;
2222 }
2223 }
2224 return true;
2225 },
2226
2227 "parent": function( elem ) {
2228 return !Expr.pseudos["empty"]( elem );
2229 },
2230
2231 // Element/input types
2232 "header": function( elem ) {
2233 return rheader.test( elem.nodeName );
2234 },
2235
2236 "input": function( elem ) {
2237 return rinputs.test( elem.nodeName );
2238 },
2239
2240 "button": function( elem ) {
2241 var name = elem.nodeName.toLowerCase();
2242 return name === "input" && elem.type === "button" || name === "button";
2243 },
2244
2245 "text": function( elem ) {
2246 var attr;
2247 return elem.nodeName.toLowerCase() === "input" &&
2248 elem.type === "text" &&
2249
2250 // Support: IE<8
2251 // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
2252 ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
2253 },
2254
2255 // Position-in-collection
2256 "first": createPositionalPseudo(function() {
2257 return [ 0 ];
2258 }),
2259
2260 "last": createPositionalPseudo(function( matchIndexes, length ) {
2261 return [ length - 1 ];
2262 }),
2263
2264 "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
2265 return [ argument < 0 ? argument + length : argument ];
2266 }),
2267
2268 "even": createPositionalPseudo(function( matchIndexes, length ) {
2269 var i = 0;
2270 for ( ; i < length; i += 2 ) {
2271 matchIndexes.push( i );
2272 }
2273 return matchIndexes;
2274 }),
2275
2276 "odd": createPositionalPseudo(function( matchIndexes, length ) {
2277 var i = 1;
2278 for ( ; i < length; i += 2 ) {
2279 matchIndexes.push( i );
2280 }
2281 return matchIndexes;
2282 }),
2283
2284 "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
2285 var i = argument < 0 ? argument + length : argument;
2286 for ( ; --i >= 0; ) {
2287 matchIndexes.push( i );
2288 }
2289 return matchIndexes;
2290 }),
2291
2292 "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
2293 var i = argument < 0 ? argument + length : argument;
2294 for ( ; ++i < length; ) {
2295 matchIndexes.push( i );
2296 }
2297 return matchIndexes;
2298 })
2299 }
2300};
2301
2302Expr.pseudos["nth"] = Expr.pseudos["eq"];
2303
2304// Add button/input type pseudos
2305for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
2306 Expr.pseudos[ i ] = createInputPseudo( i );
2307}
2308for ( i in { submit: true, reset: true } ) {
2309 Expr.pseudos[ i ] = createButtonPseudo( i );
2310}
2311
2312// Easy API for creating new setFilters
2313function setFilters() {}
2314setFilters.prototype = Expr.filters = Expr.pseudos;
2315Expr.setFilters = new setFilters();
2316
2317tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
2318 var matched, match, tokens, type,
2319 soFar, groups, preFilters,
2320 cached = tokenCache[ selector + " " ];
2321
2322 if ( cached ) {
2323 return parseOnly ? 0 : cached.slice( 0 );
2324 }
2325
2326 soFar = selector;
2327 groups = [];
2328 preFilters = Expr.preFilter;
2329
2330 while ( soFar ) {
2331
2332 // Comma and first run
2333 if ( !matched || (match = rcomma.exec( soFar )) ) {
2334 if ( match ) {
2335 // Don't consume trailing commas as valid
2336 soFar = soFar.slice( match[0].length ) || soFar;
2337 }
2338 groups.push( (tokens = []) );
2339 }
2340
2341 matched = false;
2342
2343 // Combinators
2344 if ( (match = rcombinators.exec( soFar )) ) {
2345 matched = match.shift();
2346 tokens.push({
2347 value: matched,
2348 // Cast descendant combinators to space
2349 type: match[0].replace( rtrim, " " )
2350 });
2351 soFar = soFar.slice( matched.length );
2352 }
2353
2354 // Filters
2355 for ( type in Expr.filter ) {
2356 if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
2357 (match = preFilters[ type ]( match ))) ) {
2358 matched = match.shift();
2359 tokens.push({
2360 value: matched,
2361 type: type,
2362 matches: match
2363 });
2364 soFar = soFar.slice( matched.length );
2365 }
2366 }
2367
2368 if ( !matched ) {
2369 break;
2370 }
2371 }
2372
2373 // Return the length of the invalid excess
2374 // if we're just parsing
2375 // Otherwise, throw an error or return tokens
2376 return parseOnly ?
2377 soFar.length :
2378 soFar ?
2379 Sizzle.error( selector ) :
2380 // Cache the tokens
2381 tokenCache( selector, groups ).slice( 0 );
2382};
2383
2384function toSelector( tokens ) {
2385 var i = 0,
2386 len = tokens.length,
2387 selector = "";
2388 for ( ; i < len; i++ ) {
2389 selector += tokens[i].value;
2390 }
2391 return selector;
2392}
2393
2394function addCombinator( matcher, combinator, base ) {
2395 var dir = combinator.dir,
2396 skip = combinator.next,
2397 key = skip || dir,
2398 checkNonElements = base && key === "parentNode",
2399 doneName = done++;
2400
2401 return combinator.first ?
2402 // Check against closest ancestor/preceding element
2403 function( elem, context, xml ) {
2404 while ( (elem = elem[ dir ]) ) {
2405 if ( elem.nodeType === 1 || checkNonElements ) {
2406 return matcher( elem, context, xml );
2407 }
2408 }
2409 return false;
2410 } :
2411
2412 // Check against all ancestor/preceding elements
2413 function( elem, context, xml ) {
2414 var oldCache, uniqueCache, outerCache,
2415 newCache = [ dirruns, doneName ];
2416
2417 // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
2418 if ( xml ) {
2419 while ( (elem = elem[ dir ]) ) {
2420 if ( elem.nodeType === 1 || checkNonElements ) {
2421 if ( matcher( elem, context, xml ) ) {
2422 return true;
2423 }
2424 }
2425 }
2426 } else {
2427 while ( (elem = elem[ dir ]) ) {
2428 if ( elem.nodeType === 1 || checkNonElements ) {
2429 outerCache = elem[ expando ] || (elem[ expando ] = {});
2430
2431 // Support: IE <9 only
2432 // Defend against cloned attroperties (jQuery gh-1709)
2433 uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
2434
2435 if ( skip && skip === elem.nodeName.toLowerCase() ) {
2436 elem = elem[ dir ] || elem;
2437 } else if ( (oldCache = uniqueCache[ key ]) &&
2438 oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
2439
2440 // Assign to newCache so results back-propagate to previous elements
2441 return (newCache[ 2 ] = oldCache[ 2 ]);
2442 } else {
2443 // Reuse newcache so results back-propagate to previous elements
2444 uniqueCache[ key ] = newCache;
2445
2446 // A match means we're done; a fail means we have to keep checking
2447 if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
2448 return true;
2449 }
2450 }
2451 }
2452 }
2453 }
2454 return false;
2455 };
2456}
2457
2458function elementMatcher( matchers ) {
2459 return matchers.length > 1 ?
2460 function( elem, context, xml ) {
2461 var i = matchers.length;
2462 while ( i-- ) {
2463 if ( !matchers[i]( elem, context, xml ) ) {
2464 return false;
2465 }
2466 }
2467 return true;
2468 } :
2469 matchers[0];
2470}
2471
2472function multipleContexts( selector, contexts, results ) {
2473 var i = 0,
2474 len = contexts.length;
2475 for ( ; i < len; i++ ) {
2476 Sizzle( selector, contexts[i], results );
2477 }
2478 return results;
2479}
2480
2481function condense( unmatched, map, filter, context, xml ) {
2482 var elem,
2483 newUnmatched = [],
2484 i = 0,
2485 len = unmatched.length,
2486 mapped = map != null;
2487
2488 for ( ; i < len; i++ ) {
2489 if ( (elem = unmatched[i]) ) {
2490 if ( !filter || filter( elem, context, xml ) ) {
2491 newUnmatched.push( elem );
2492 if ( mapped ) {
2493 map.push( i );
2494 }
2495 }
2496 }
2497 }
2498
2499 return newUnmatched;
2500}
2501
2502function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2503 if ( postFilter && !postFilter[ expando ] ) {
2504 postFilter = setMatcher( postFilter );
2505 }
2506 if ( postFinder && !postFinder[ expando ] ) {
2507 postFinder = setMatcher( postFinder, postSelector );
2508 }
2509 return markFunction(function( seed, results, context, xml ) {
2510 var temp, i, elem,
2511 preMap = [],
2512 postMap = [],
2513 preexisting = results.length,
2514
2515 // Get initial elements from seed or context
2516 elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
2517
2518 // Prefilter to get matcher input, preserving a map for seed-results synchronization
2519 matcherIn = preFilter && ( seed || !selector ) ?
2520 condense( elems, preMap, preFilter, context, xml ) :
2521 elems,
2522
2523 matcherOut = matcher ?
2524 // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
2525 postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
2526
2527 // ...intermediate processing is necessary
2528 [] :
2529
2530 // ...otherwise use results directly
2531 results :
2532 matcherIn;
2533
2534 // Find primary matches
2535 if ( matcher ) {
2536 matcher( matcherIn, matcherOut, context, xml );
2537 }
2538
2539 // Apply postFilter
2540 if ( postFilter ) {
2541 temp = condense( matcherOut, postMap );
2542 postFilter( temp, [], context, xml );
2543
2544 // Un-match failing elements by moving them back to matcherIn
2545 i = temp.length;
2546 while ( i-- ) {
2547 if ( (elem = temp[i]) ) {
2548 matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
2549 }
2550 }
2551 }
2552
2553 if ( seed ) {
2554 if ( postFinder || preFilter ) {
2555 if ( postFinder ) {
2556 // Get the final matcherOut by condensing this intermediate into postFinder contexts
2557 temp = [];
2558 i = matcherOut.length;
2559 while ( i-- ) {
2560 if ( (elem = matcherOut[i]) ) {
2561 // Restore matcherIn since elem is not yet a final match
2562 temp.push( (matcherIn[i] = elem) );
2563 }
2564 }
2565 postFinder( null, (matcherOut = []), temp, xml );
2566 }
2567
2568 // Move matched elements from seed to results to keep them synchronized
2569 i = matcherOut.length;
2570 while ( i-- ) {
2571 if ( (elem = matcherOut[i]) &&
2572 (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
2573
2574 seed[temp] = !(results[temp] = elem);
2575 }
2576 }
2577 }
2578
2579 // Add elements to results, through postFinder if defined
2580 } else {
2581 matcherOut = condense(
2582 matcherOut === results ?
2583 matcherOut.splice( preexisting, matcherOut.length ) :
2584 matcherOut
2585 );
2586 if ( postFinder ) {
2587 postFinder( null, results, matcherOut, xml );
2588 } else {
2589 push.apply( results, matcherOut );
2590 }
2591 }
2592 });
2593}
2594
2595function matcherFromTokens( tokens ) {
2596 var checkContext, matcher, j,
2597 len = tokens.length,
2598 leadingRelative = Expr.relative[ tokens[0].type ],
2599 implicitRelative = leadingRelative || Expr.relative[" "],
2600 i = leadingRelative ? 1 : 0,
2601
2602 // The foundational matcher ensures that elements are reachable from top-level context(s)
2603 matchContext = addCombinator( function( elem ) {
2604 return elem === checkContext;
2605 }, implicitRelative, true ),
2606 matchAnyContext = addCombinator( function( elem ) {
2607 return indexOf( checkContext, elem ) > -1;
2608 }, implicitRelative, true ),
2609 matchers = [ function( elem, context, xml ) {
2610 var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
2611 (checkContext = context).nodeType ?
2612 matchContext( elem, context, xml ) :
2613 matchAnyContext( elem, context, xml ) );
2614 // Avoid hanging onto element (issue #299)
2615 checkContext = null;
2616 return ret;
2617 } ];
2618
2619 for ( ; i < len; i++ ) {
2620 if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
2621 matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
2622 } else {
2623 matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
2624
2625 // Return special upon seeing a positional matcher
2626 if ( matcher[ expando ] ) {
2627 // Find the next relative operator (if any) for proper handling
2628 j = ++i;
2629 for ( ; j < len; j++ ) {
2630 if ( Expr.relative[ tokens[j].type ] ) {
2631 break;
2632 }
2633 }
2634 return setMatcher(
2635 i > 1 && elementMatcher( matchers ),
2636 i > 1 && toSelector(
2637 // If the preceding token was a descendant combinator, insert an implicit any-element `*`
2638 tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
2639 ).replace( rtrim, "$1" ),
2640 matcher,
2641 i < j && matcherFromTokens( tokens.slice( i, j ) ),
2642 j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
2643 j < len && toSelector( tokens )
2644 );
2645 }
2646 matchers.push( matcher );
2647 }
2648 }
2649
2650 return elementMatcher( matchers );
2651}
2652
2653function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
2654 var bySet = setMatchers.length > 0,
2655 byElement = elementMatchers.length > 0,
2656 superMatcher = function( seed, context, xml, results, outermost ) {
2657 var elem, j, matcher,
2658 matchedCount = 0,
2659 i = "0",
2660 unmatched = seed && [],
2661 setMatched = [],
2662 contextBackup = outermostContext,
2663 // We must always have either seed elements or outermost context
2664 elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
2665 // Use integer dirruns iff this is the outermost matcher
2666 dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
2667 len = elems.length;
2668
2669 if ( outermost ) {
2670 outermostContext = context === document || context || outermost;
2671 }
2672
2673 // Add elements passing elementMatchers directly to results
2674 // Support: IE<9, Safari
2675 // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
2676 for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
2677 if ( byElement && elem ) {
2678 j = 0;
2679 if ( !context && elem.ownerDocument !== document ) {
2680 setDocument( elem );
2681 xml = !documentIsHTML;
2682 }
2683 while ( (matcher = elementMatchers[j++]) ) {
2684 if ( matcher( elem, context || document, xml) ) {
2685 results.push( elem );
2686 break;
2687 }
2688 }
2689 if ( outermost ) {
2690 dirruns = dirrunsUnique;
2691 }
2692 }
2693
2694 // Track unmatched elements for set filters
2695 if ( bySet ) {
2696 // They will have gone through all possible matchers
2697 if ( (elem = !matcher && elem) ) {
2698 matchedCount--;
2699 }
2700
2701 // Lengthen the array for every element, matched or not
2702 if ( seed ) {
2703 unmatched.push( elem );
2704 }
2705 }
2706 }
2707
2708 // `i` is now the count of elements visited above, and adding it to `matchedCount`
2709 // makes the latter nonnegative.
2710 matchedCount += i;
2711
2712 // Apply set filters to unmatched elements
2713 // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
2714 // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
2715 // no element matchers and no seed.
2716 // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
2717 // case, which will result in a "00" `matchedCount` that differs from `i` but is also
2718 // numerically zero.
2719 if ( bySet && i !== matchedCount ) {
2720 j = 0;
2721 while ( (matcher = setMatchers[j++]) ) {
2722 matcher( unmatched, setMatched, context, xml );
2723 }
2724
2725 if ( seed ) {
2726 // Reintegrate element matches to eliminate the need for sorting
2727 if ( matchedCount > 0 ) {
2728 while ( i-- ) {
2729 if ( !(unmatched[i] || setMatched[i]) ) {
2730 setMatched[i] = pop.call( results );
2731 }
2732 }
2733 }
2734
2735 // Discard index placeholder values to get only actual matches
2736 setMatched = condense( setMatched );
2737 }
2738
2739 // Add matches to results
2740 push.apply( results, setMatched );
2741
2742 // Seedless set matches succeeding multiple successful matchers stipulate sorting
2743 if ( outermost && !seed && setMatched.length > 0 &&
2744 ( matchedCount + setMatchers.length ) > 1 ) {
2745
2746 Sizzle.uniqueSort( results );
2747 }
2748 }
2749
2750 // Override manipulation of globals by nested matchers
2751 if ( outermost ) {
2752 dirruns = dirrunsUnique;
2753 outermostContext = contextBackup;
2754 }
2755
2756 return unmatched;
2757 };
2758
2759 return bySet ?
2760 markFunction( superMatcher ) :
2761 superMatcher;
2762}
2763
2764compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
2765 var i,
2766 setMatchers = [],
2767 elementMatchers = [],
2768 cached = compilerCache[ selector + " " ];
2769
2770 if ( !cached ) {
2771 // Generate a function of recursive functions that can be used to check each element
2772 if ( !match ) {
2773 match = tokenize( selector );
2774 }
2775 i = match.length;
2776 while ( i-- ) {
2777 cached = matcherFromTokens( match[i] );
2778 if ( cached[ expando ] ) {
2779 setMatchers.push( cached );
2780 } else {
2781 elementMatchers.push( cached );
2782 }
2783 }
2784
2785 // Cache the compiled function
2786 cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
2787
2788 // Save selector and tokenization
2789 cached.selector = selector;
2790 }
2791 return cached;
2792};
2793
2794/**
2795 * A low-level selection function that works with Sizzle's compiled
2796 * selector functions
2797 * @param {String|Function} selector A selector or a pre-compiled
2798 * selector function built with Sizzle.compile
2799 * @param {Element} context
2800 * @param {Array} [results]
2801 * @param {Array} [seed] A set of elements to match against
2802 */
2803select = Sizzle.select = function( selector, context, results, seed ) {
2804 var i, tokens, token, type, find,
2805 compiled = typeof selector === "function" && selector,
2806 match = !seed && tokenize( (selector = compiled.selector || selector) );
2807
2808 results = results || [];
2809
2810 // Try to minimize operations if there is only one selector in the list and no seed
2811 // (the latter of which guarantees us context)
2812 if ( match.length === 1 ) {
2813
2814 // Reduce context if the leading compound selector is an ID
2815 tokens = match[0] = match[0].slice( 0 );
2816 if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
2817 context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
2818
2819 context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
2820 if ( !context ) {
2821 return results;
2822
2823 // Precompiled matchers will still verify ancestry, so step up a level
2824 } else if ( compiled ) {
2825 context = context.parentNode;
2826 }
2827
2828 selector = selector.slice( tokens.shift().value.length );
2829 }
2830
2831 // Fetch a seed set for right-to-left matching
2832 i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
2833 while ( i-- ) {
2834 token = tokens[i];
2835
2836 // Abort if we hit a combinator
2837 if ( Expr.relative[ (type = token.type) ] ) {
2838 break;
2839 }
2840 if ( (find = Expr.find[ type ]) ) {
2841 // Search, expanding context for leading sibling combinators
2842 if ( (seed = find(
2843 token.matches[0].replace( runescape, funescape ),
2844 rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
2845 )) ) {
2846
2847 // If seed is empty or no tokens remain, we can return early
2848 tokens.splice( i, 1 );
2849 selector = seed.length && toSelector( tokens );
2850 if ( !selector ) {
2851 push.apply( results, seed );
2852 return results;
2853 }
2854
2855 break;
2856 }
2857 }
2858 }
2859 }
2860
2861 // Compile and execute a filtering function if one is not provided
2862 // Provide `match` to avoid retokenization if we modified the selector above
2863 ( compiled || compile( selector, match ) )(
2864 seed,
2865 context,
2866 !documentIsHTML,
2867 results,
2868 !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
2869 );
2870 return results;
2871};
2872
2873// One-time assignments
2874
2875// Sort stability
2876support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
2877
2878// Support: Chrome 14-35+
2879// Always assume duplicates if they aren't passed to the comparison function
2880support.detectDuplicates = !!hasDuplicate;
2881
2882// Initialize against the default document
2883setDocument();
2884
2885// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
2886// Detached nodes confoundingly follow *each other*
2887support.sortDetached = assert(function( el ) {
2888 // Should return 1, but returns 4 (following)
2889 return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
2890});
2891
2892// Support: IE<8
2893// Prevent attribute/property "interpolation"
2894// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
2895if ( !assert(function( el ) {
2896 el.innerHTML = "<a href='#'></a>";
2897 return el.firstChild.getAttribute("href") === "#" ;
2898}) ) {
2899 addHandle( "type|href|height|width", function( elem, name, isXML ) {
2900 if ( !isXML ) {
2901 return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
2902 }
2903 });
2904}
2905
2906// Support: IE<9
2907// Use defaultValue in place of getAttribute("value")
2908if ( !support.attributes || !assert(function( el ) {
2909 el.innerHTML = "<input/>";
2910 el.firstChild.setAttribute( "value", "" );
2911 return el.firstChild.getAttribute( "value" ) === "";
2912}) ) {
2913 addHandle( "value", function( elem, name, isXML ) {
2914 if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
2915 return elem.defaultValue;
2916 }
2917 });
2918}
2919
2920// Support: IE<9
2921// Use getAttributeNode to fetch booleans when getAttribute lies
2922if ( !assert(function( el ) {
2923 return el.getAttribute("disabled") == null;
2924}) ) {
2925 addHandle( booleans, function( elem, name, isXML ) {
2926 var val;
2927 if ( !isXML ) {
2928 return elem[ name ] === true ? name.toLowerCase() :
2929 (val = elem.getAttributeNode( name )) && val.specified ?
2930 val.value :
2931 null;
2932 }
2933 });
2934}
2935
2936return Sizzle;
2937
2938})( window );
2939
2940
2941
2942jQuery.find = Sizzle;
2943jQuery.expr = Sizzle.selectors;
2944
2945// Deprecated
2946jQuery.expr[ ":" ] = jQuery.expr.pseudos;
2947jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
2948jQuery.text = Sizzle.getText;
2949jQuery.isXMLDoc = Sizzle.isXML;
2950jQuery.contains = Sizzle.contains;
2951jQuery.escapeSelector = Sizzle.escape;
2952
2953
2954
2955
2956var dir = function( elem, dir, until ) {
2957 var matched = [],
2958 truncate = until !== undefined;
2959
2960 while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
2961 if ( elem.nodeType === 1 ) {
2962 if ( truncate && jQuery( elem ).is( until ) ) {
2963 break;
2964 }
2965 matched.push( elem );
2966 }
2967 }
2968 return matched;
2969};
2970
2971
2972var siblings = function( n, elem ) {
2973 var matched = [];
2974
2975 for ( ; n; n = n.nextSibling ) {
2976 if ( n.nodeType === 1 && n !== elem ) {
2977 matched.push( n );
2978 }
2979 }
2980
2981 return matched;
2982};
2983
2984
2985var rneedsContext = jQuery.expr.match.needsContext;
2986
2987
2988
2989function nodeName( elem, name ) {
2990
2991 return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
2992
2993};
2994var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
2995
2996
2997
2998// Implement the identical functionality for filter and not
2999function winnow( elements, qualifier, not ) {
3000 if ( isFunction( qualifier ) ) {
3001 return jQuery.grep( elements, function( elem, i ) {
3002 return !!qualifier.call( elem, i, elem ) !== not;
3003 } );
3004 }
3005
3006 // Single element
3007 if ( qualifier.nodeType ) {
3008 return jQuery.grep( elements, function( elem ) {
3009 return ( elem === qualifier ) !== not;
3010 } );
3011 }
3012
3013 // Arraylike of elements (jQuery, arguments, Array)
3014 if ( typeof qualifier !== "string" ) {
3015 return jQuery.grep( elements, function( elem ) {
3016 return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
3017 } );
3018 }
3019
3020 // Filtered directly for both simple and complex selectors
3021 return jQuery.filter( qualifier, elements, not );
3022}
3023
3024jQuery.filter = function( expr, elems, not ) {
3025 var elem = elems[ 0 ];
3026
3027 if ( not ) {
3028 expr = ":not(" + expr + ")";
3029 }
3030
3031 if ( elems.length === 1 && elem.nodeType === 1 ) {
3032 return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
3033 }
3034
3035 return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
3036 return elem.nodeType === 1;
3037 } ) );
3038};
3039
3040jQuery.fn.extend( {
3041 find: function( selector ) {
3042 var i, ret,
3043 len = this.length,
3044 self = this;
3045
3046 if ( typeof selector !== "string" ) {
3047 return this.pushStack( jQuery( selector ).filter( function() {
3048 for ( i = 0; i < len; i++ ) {
3049 if ( jQuery.contains( self[ i ], this ) ) {
3050 return true;
3051 }
3052 }
3053 } ) );
3054 }
3055
3056 ret = this.pushStack( [] );
3057
3058 for ( i = 0; i < len; i++ ) {
3059 jQuery.find( selector, self[ i ], ret );
3060 }
3061
3062 return len > 1 ? jQuery.uniqueSort( ret ) : ret;
3063 },
3064 filter: function( selector ) {
3065 return this.pushStack( winnow( this, selector || [], false ) );
3066 },
3067 not: function( selector ) {
3068 return this.pushStack( winnow( this, selector || [], true ) );
3069 },
3070 is: function( selector ) {
3071 return !!winnow(
3072 this,
3073
3074 // If this is a positional/relative selector, check membership in the returned set
3075 // so $("p:first").is("p:last") won't return true for a doc with two "p".
3076 typeof selector === "string" && rneedsContext.test( selector ) ?
3077 jQuery( selector ) :
3078 selector || [],
3079 false
3080 ).length;
3081 }
3082} );
3083
3084
3085// Initialize a jQuery object
3086
3087
3088// A central reference to the root jQuery(document)
3089var rootjQuery,
3090
3091 // A simple way to check for HTML strings
3092 // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
3093 // Strict HTML recognition (#11290: must start with <)
3094 // Shortcut simple #id case for speed
3095 rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
3096
3097 init = jQuery.fn.init = function( selector, context, root ) {
3098 var match, elem;
3099
3100 // HANDLE: $(""), $(null), $(undefined), $(false)
3101 if ( !selector ) {
3102 return this;
3103 }
3104
3105 // Method init() accepts an alternate rootjQuery
3106 // so migrate can support jQuery.sub (gh-2101)
3107 root = root || rootjQuery;
3108
3109 // Handle HTML strings
3110 if ( typeof selector === "string" ) {
3111 if ( selector[ 0 ] === "<" &&
3112 selector[ selector.length - 1 ] === ">" &&
3113 selector.length >= 3 ) {
3114
3115 // Assume that strings that start and end with <> are HTML and skip the regex check
3116 match = [ null, selector, null ];
3117
3118 } else {
3119 match = rquickExpr.exec( selector );
3120 }
3121
3122 // Match html or make sure no context is specified for #id
3123 if ( match && ( match[ 1 ] || !context ) ) {
3124
3125 // HANDLE: $(html) -> $(array)
3126 if ( match[ 1 ] ) {
3127 context = context instanceof jQuery ? context[ 0 ] : context;
3128
3129 // Option to run scripts is true for back-compat
3130 // Intentionally let the error be thrown if parseHTML is not present
3131 jQuery.merge( this, jQuery.parseHTML(
3132 match[ 1 ],
3133 context && context.nodeType ? context.ownerDocument || context : document,
3134 true
3135 ) );
3136
3137 // HANDLE: $(html, props)
3138 if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
3139 for ( match in context ) {
3140
3141 // Properties of context are called as methods if possible
3142 if ( isFunction( this[ match ] ) ) {
3143 this[ match ]( context[ match ] );
3144
3145 // ...and otherwise set as attributes
3146 } else {
3147 this.attr( match, context[ match ] );
3148 }
3149 }
3150 }
3151
3152 return this;
3153
3154 // HANDLE: $(#id)
3155 } else {
3156 elem = document.getElementById( match[ 2 ] );
3157
3158 if ( elem ) {
3159
3160 // Inject the element directly into the jQuery object
3161 this[ 0 ] = elem;
3162 this.length = 1;
3163 }
3164 return this;
3165 }
3166
3167 // HANDLE: $(expr, $(...))
3168 } else if ( !context || context.jquery ) {
3169 return ( context || root ).find( selector );
3170
3171 // HANDLE: $(expr, context)
3172 // (which is just equivalent to: $(context).find(expr)
3173 } else {
3174 return this.constructor( context ).find( selector );
3175 }
3176
3177 // HANDLE: $(DOMElement)
3178 } else if ( selector.nodeType ) {
3179 this[ 0 ] = selector;
3180 this.length = 1;
3181 return this;
3182
3183 // HANDLE: $(function)
3184 // Shortcut for document ready
3185 } else if ( isFunction( selector ) ) {
3186 return root.ready !== undefined ?
3187 root.ready( selector ) :
3188
3189 // Execute immediately if ready is not present
3190 selector( jQuery );
3191 }
3192
3193 return jQuery.makeArray( selector, this );
3194 };
3195
3196// Give the init function the jQuery prototype for later instantiation
3197init.prototype = jQuery.fn;
3198
3199// Initialize central reference
3200rootjQuery = jQuery( document );
3201
3202
3203var rparentsprev = /^(?:parents|prev(?:Until|All))/,
3204
3205 // Methods guaranteed to produce a unique set when starting from a unique set
3206 guaranteedUnique = {
3207 children: true,
3208 contents: true,
3209 next: true,
3210 prev: true
3211 };
3212
3213jQuery.fn.extend( {
3214 has: function( target ) {
3215 var targets = jQuery( target, this ),
3216 l = targets.length;
3217
3218 return this.filter( function() {
3219 var i = 0;
3220 for ( ; i < l; i++ ) {
3221 if ( jQuery.contains( this, targets[ i ] ) ) {
3222 return true;
3223 }
3224 }
3225 } );
3226 },
3227
3228 closest: function( selectors, context ) {
3229 var cur,
3230 i = 0,
3231 l = this.length,
3232 matched = [],
3233 targets = typeof selectors !== "string" && jQuery( selectors );
3234
3235 // Positional selectors never match, since there's no _selection_ context
3236 if ( !rneedsContext.test( selectors ) ) {
3237 for ( ; i < l; i++ ) {
3238 for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
3239
3240 // Always skip document fragments
3241 if ( cur.nodeType < 11 && ( targets ?
3242 targets.index( cur ) > -1 :
3243
3244 // Don't pass non-elements to Sizzle
3245 cur.nodeType === 1 &&
3246 jQuery.find.matchesSelector( cur, selectors ) ) ) {
3247
3248 matched.push( cur );
3249 break;
3250 }
3251 }
3252 }
3253 }
3254
3255 return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
3256 },
3257
3258 // Determine the position of an element within the set
3259 index: function( elem ) {
3260
3261 // No argument, return index in parent
3262 if ( !elem ) {
3263 return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
3264 }
3265
3266 // Index in selector
3267 if ( typeof elem === "string" ) {
3268 return indexOf.call( jQuery( elem ), this[ 0 ] );
3269 }
3270
3271 // Locate the position of the desired element
3272 return indexOf.call( this,
3273
3274 // If it receives a jQuery object, the first element is used
3275 elem.jquery ? elem[ 0 ] : elem
3276 );
3277 },
3278
3279 add: function( selector, context ) {
3280 return this.pushStack(
3281 jQuery.uniqueSort(
3282 jQuery.merge( this.get(), jQuery( selector, context ) )
3283 )
3284 );
3285 },
3286
3287 addBack: function( selector ) {
3288 return this.add( selector == null ?
3289 this.prevObject : this.prevObject.filter( selector )
3290 );
3291 }
3292} );
3293
3294function sibling( cur, dir ) {
3295 while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
3296 return cur;
3297}
3298
3299jQuery.each( {
3300 parent: function( elem ) {
3301 var parent = elem.parentNode;
3302 return parent && parent.nodeType !== 11 ? parent : null;
3303 },
3304 parents: function( elem ) {
3305 return dir( elem, "parentNode" );
3306 },
3307 parentsUntil: function( elem, i, until ) {
3308 return dir( elem, "parentNode", until );
3309 },
3310 next: function( elem ) {
3311 return sibling( elem, "nextSibling" );
3312 },
3313 prev: function( elem ) {
3314 return sibling( elem, "previousSibling" );
3315 },
3316 nextAll: function( elem ) {
3317 return dir( elem, "nextSibling" );
3318 },
3319 prevAll: function( elem ) {
3320 return dir( elem, "previousSibling" );
3321 },
3322 nextUntil: function( elem, i, until ) {
3323 return dir( elem, "nextSibling", until );
3324 },
3325 prevUntil: function( elem, i, until ) {
3326 return dir( elem, "previousSibling", until );
3327 },
3328 siblings: function( elem ) {
3329 return siblings( ( elem.parentNode || {} ).firstChild, elem );
3330 },
3331 children: function( elem ) {
3332 return siblings( elem.firstChild );
3333 },
3334 contents: function( elem ) {
3335 if ( nodeName( elem, "iframe" ) ) {
3336 return elem.contentDocument;
3337 }
3338
3339 // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
3340 // Treat the template element as a regular one in browsers that
3341 // don't support it.
3342 if ( nodeName( elem, "template" ) ) {
3343 elem = elem.content || elem;
3344 }
3345
3346 return jQuery.merge( [], elem.childNodes );
3347 }
3348}, function( name, fn ) {
3349 jQuery.fn[ name ] = function( until, selector ) {
3350 var matched = jQuery.map( this, fn, until );
3351
3352 if ( name.slice( -5 ) !== "Until" ) {
3353 selector = until;
3354 }
3355
3356 if ( selector && typeof selector === "string" ) {
3357 matched = jQuery.filter( selector, matched );
3358 }
3359
3360 if ( this.length > 1 ) {
3361
3362 // Remove duplicates
3363 if ( !guaranteedUnique[ name ] ) {
3364 jQuery.uniqueSort( matched );
3365 }
3366
3367 // Reverse order for parents* and prev-derivatives
3368 if ( rparentsprev.test( name ) ) {
3369 matched.reverse();
3370 }
3371 }
3372
3373 return this.pushStack( matched );
3374 };
3375} );
3376var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
3377
3378
3379
3380// Convert String-formatted options into Object-formatted ones
3381function createOptions( options ) {
3382 var object = {};
3383 jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
3384 object[ flag ] = true;
3385 } );
3386 return object;
3387}
3388
3389/*
3390 * Create a callback list using the following parameters:
3391 *
3392 * options: an optional list of space-separated options that will change how
3393 * the callback list behaves or a more traditional option object
3394 *
3395 * By default a callback list will act like an event callback list and can be
3396 * "fired" multiple times.
3397 *
3398 * Possible options:
3399 *
3400 * once: will ensure the callback list can only be fired once (like a Deferred)
3401 *
3402 * memory: will keep track of previous values and will call any callback added
3403 * after the list has been fired right away with the latest "memorized"
3404 * values (like a Deferred)
3405 *
3406 * unique: will ensure a callback can only be added once (no duplicate in the list)
3407 *
3408 * stopOnFalse: interrupt callings when a callback returns false
3409 *
3410 */
3411jQuery.Callbacks = function( options ) {
3412
3413 // Convert options from String-formatted to Object-formatted if needed
3414 // (we check in cache first)
3415 options = typeof options === "string" ?
3416 createOptions( options ) :
3417 jQuery.extend( {}, options );
3418
3419 var // Flag to know if list is currently firing
3420 firing,
3421
3422 // Last fire value for non-forgettable lists
3423 memory,
3424
3425 // Flag to know if list was already fired
3426 fired,
3427
3428 // Flag to prevent firing
3429 locked,
3430
3431 // Actual callback list
3432 list = [],
3433
3434 // Queue of execution data for repeatable lists
3435 queue = [],
3436
3437 // Index of currently firing callback (modified by add/remove as needed)
3438 firingIndex = -1,
3439
3440 // Fire callbacks
3441 fire = function() {
3442
3443 // Enforce single-firing
3444 locked = locked || options.once;
3445
3446 // Execute callbacks for all pending executions,
3447 // respecting firingIndex overrides and runtime changes
3448 fired = firing = true;
3449 for ( ; queue.length; firingIndex = -1 ) {
3450 memory = queue.shift();
3451 while ( ++firingIndex < list.length ) {
3452
3453 // Run callback and check for early termination
3454 if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
3455 options.stopOnFalse ) {
3456
3457 // Jump to end and forget the data so .add doesn't re-fire
3458 firingIndex = list.length;
3459 memory = false;
3460 }
3461 }
3462 }
3463
3464 // Forget the data if we're done with it
3465 if ( !options.memory ) {
3466 memory = false;
3467 }
3468
3469 firing = false;
3470
3471 // Clean up if we're done firing for good
3472 if ( locked ) {
3473
3474 // Keep an empty list if we have data for future add calls
3475 if ( memory ) {
3476 list = [];
3477
3478 // Otherwise, this object is spent
3479 } else {
3480 list = "";
3481 }
3482 }
3483 },
3484
3485 // Actual Callbacks object
3486 self = {
3487
3488 // Add a callback or a collection of callbacks to the list
3489 add: function() {
3490 if ( list ) {
3491
3492 // If we have memory from a past run, we should fire after adding
3493 if ( memory && !firing ) {
3494 firingIndex = list.length - 1;
3495 queue.push( memory );
3496 }
3497
3498 ( function add( args ) {
3499 jQuery.each( args, function( _, arg ) {
3500 if ( isFunction( arg ) ) {
3501 if ( !options.unique || !self.has( arg ) ) {
3502 list.push( arg );
3503 }
3504 } else if ( arg && arg.length && toType( arg ) !== "string" ) {
3505
3506 // Inspect recursively
3507 add( arg );
3508 }
3509 } );
3510 } )( arguments );
3511
3512 if ( memory && !firing ) {
3513 fire();
3514 }
3515 }
3516 return this;
3517 },
3518
3519 // Remove a callback from the list
3520 remove: function() {
3521 jQuery.each( arguments, function( _, arg ) {
3522 var index;
3523 while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
3524 list.splice( index, 1 );
3525
3526 // Handle firing indexes
3527 if ( index <= firingIndex ) {
3528 firingIndex--;
3529 }
3530 }
3531 } );
3532 return this;
3533 },
3534
3535 // Check if a given callback is in the list.
3536 // If no argument is given, return whether or not list has callbacks attached.
3537 has: function( fn ) {
3538 return fn ?
3539 jQuery.inArray( fn, list ) > -1 :
3540 list.length > 0;
3541 },
3542
3543 // Remove all callbacks from the list
3544 empty: function() {
3545 if ( list ) {
3546 list = [];
3547 }
3548 return this;
3549 },
3550
3551 // Disable .fire and .add
3552 // Abort any current/pending executions
3553 // Clear all callbacks and values
3554 disable: function() {
3555 locked = queue = [];
3556 list = memory = "";
3557 return this;
3558 },
3559 disabled: function() {
3560 return !list;
3561 },
3562
3563 // Disable .fire
3564 // Also disable .add unless we have memory (since it would have no effect)
3565 // Abort any pending executions
3566 lock: function() {
3567 locked = queue = [];
3568 if ( !memory && !firing ) {
3569 list = memory = "";
3570 }
3571 return this;
3572 },
3573 locked: function() {
3574 return !!locked;
3575 },
3576
3577 // Call all callbacks with the given context and arguments
3578 fireWith: function( context, args ) {
3579 if ( !locked ) {
3580 args = args || [];
3581 args = [ context, args.slice ? args.slice() : args ];
3582 queue.push( args );
3583 if ( !firing ) {
3584 fire();
3585 }
3586 }
3587 return this;
3588 },
3589
3590 // Call all the callbacks with the given arguments
3591 fire: function() {
3592 self.fireWith( this, arguments );
3593 return this;
3594 },
3595
3596 // To know if the callbacks have already been called at least once
3597 fired: function() {
3598 return !!fired;
3599 }
3600 };
3601
3602 return self;
3603};
3604
3605
3606function Identity( v ) {
3607 return v;
3608}
3609function Thrower( ex ) {
3610 throw ex;
3611}
3612
3613function adoptValue( value, resolve, reject, noValue ) {
3614 var method;
3615
3616 try {
3617
3618 // Check for promise aspect first to privilege synchronous behavior
3619 if ( value && isFunction( ( method = value.promise ) ) ) {
3620 method.call( value ).done( resolve ).fail( reject );
3621
3622 // Other thenables
3623 } else if ( value && isFunction( ( method = value.then ) ) ) {
3624 method.call( value, resolve, reject );
3625
3626 // Other non-thenables
3627 } else {
3628
3629 // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
3630 // * false: [ value ].slice( 0 ) => resolve( value )
3631 // * true: [ value ].slice( 1 ) => resolve()
3632 resolve.apply( undefined, [ value ].slice( noValue ) );
3633 }
3634
3635 // For Promises/A+, convert exceptions into rejections
3636 // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
3637 // Deferred#then to conditionally suppress rejection.
3638 } catch ( value ) {
3639
3640 // Support: Android 4.0 only
3641 // Strict mode functions invoked without .call/.apply get global-object context
3642 reject.apply( undefined, [ value ] );
3643 }
3644}
3645
3646jQuery.extend( {
3647
3648 Deferred: function( func ) {
3649 var tuples = [
3650
3651 // action, add listener, callbacks,
3652 // ... .then handlers, argument index, [final state]
3653 [ "notify", "progress", jQuery.Callbacks( "memory" ),
3654 jQuery.Callbacks( "memory" ), 2 ],
3655 [ "resolve", "done", jQuery.Callbacks( "once memory" ),
3656 jQuery.Callbacks( "once memory" ), 0, "resolved" ],
3657 [ "reject", "fail", jQuery.Callbacks( "once memory" ),
3658 jQuery.Callbacks( "once memory" ), 1, "rejected" ]
3659 ],
3660 state = "pending",
3661 promise = {
3662 state: function() {
3663 return state;
3664 },
3665 always: function() {
3666 deferred.done( arguments ).fail( arguments );
3667 return this;
3668 },
3669 "catch": function( fn ) {
3670 return promise.then( null, fn );
3671 },
3672
3673 // Keep pipe for back-compat
3674 pipe: function( /* fnDone, fnFail, fnProgress */ ) {
3675 var fns = arguments;
3676
3677 return jQuery.Deferred( function( newDefer ) {
3678 jQuery.each( tuples, function( i, tuple ) {
3679
3680 // Map tuples (progress, done, fail) to arguments (done, fail, progress)
3681 var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
3682
3683 // deferred.progress(function() { bind to newDefer or newDefer.notify })
3684 // deferred.done(function() { bind to newDefer or newDefer.resolve })
3685 // deferred.fail(function() { bind to newDefer or newDefer.reject })
3686 deferred[ tuple[ 1 ] ]( function() {
3687 var returned = fn && fn.apply( this, arguments );
3688 if ( returned && isFunction( returned.promise ) ) {
3689 returned.promise()
3690 .progress( newDefer.notify )
3691 .done( newDefer.resolve )
3692 .fail( newDefer.reject );
3693 } else {
3694 newDefer[ tuple[ 0 ] + "With" ](
3695 this,
3696 fn ? [ returned ] : arguments
3697 );
3698 }
3699 } );
3700 } );
3701 fns = null;
3702 } ).promise();
3703 },
3704 then: function( onFulfilled, onRejected, onProgress ) {
3705 var maxDepth = 0;
3706 function resolve( depth, deferred, handler, special ) {
3707 return function() {
3708 var that = this,
3709 args = arguments,
3710 mightThrow = function() {
3711 var returned, then;
3712
3713 // Support: Promises/A+ section 2.3.3.3.3
3714 // https://promisesaplus.com/#point-59
3715 // Ignore double-resolution attempts
3716 if ( depth < maxDepth ) {
3717 return;
3718 }
3719
3720 returned = handler.apply( that, args );
3721
3722 // Support: Promises/A+ section 2.3.1
3723 // https://promisesaplus.com/#point-48
3724 if ( returned === deferred.promise() ) {
3725 throw new TypeError( "Thenable self-resolution" );
3726 }
3727
3728 // Support: Promises/A+ sections 2.3.3.1, 3.5
3729 // https://promisesaplus.com/#point-54
3730 // https://promisesaplus.com/#point-75
3731 // Retrieve `then` only once
3732 then = returned &&
3733
3734 // Support: Promises/A+ section 2.3.4
3735 // https://promisesaplus.com/#point-64
3736 // Only check objects and functions for thenability
3737 ( typeof returned === "object" ||
3738 typeof returned === "function" ) &&
3739 returned.then;
3740
3741 // Handle a returned thenable
3742 if ( isFunction( then ) ) {
3743
3744 // Special processors (notify) just wait for resolution
3745 if ( special ) {
3746 then.call(
3747 returned,
3748 resolve( maxDepth, deferred, Identity, special ),
3749 resolve( maxDepth, deferred, Thrower, special )
3750 );
3751
3752 // Normal processors (resolve) also hook into progress
3753 } else {
3754
3755 // ...and disregard older resolution values
3756 maxDepth++;
3757
3758 then.call(
3759 returned,
3760 resolve( maxDepth, deferred, Identity, special ),
3761 resolve( maxDepth, deferred, Thrower, special ),
3762 resolve( maxDepth, deferred, Identity,
3763 deferred.notifyWith )
3764 );
3765 }
3766
3767 // Handle all other returned values
3768 } else {
3769
3770 // Only substitute handlers pass on context
3771 // and multiple values (non-spec behavior)
3772 if ( handler !== Identity ) {
3773 that = undefined;
3774 args = [ returned ];
3775 }
3776
3777 // Process the value(s)
3778 // Default process is resolve
3779 ( special || deferred.resolveWith )( that, args );
3780 }
3781 },
3782
3783 // Only normal processors (resolve) catch and reject exceptions
3784 process = special ?
3785 mightThrow :
3786 function() {
3787 try {
3788 mightThrow();
3789 } catch ( e ) {
3790
3791 if ( jQuery.Deferred.exceptionHook ) {
3792 jQuery.Deferred.exceptionHook( e,
3793 process.stackTrace );
3794 }
3795
3796 // Support: Promises/A+ section 2.3.3.3.4.1
3797 // https://promisesaplus.com/#point-61
3798 // Ignore post-resolution exceptions
3799 if ( depth + 1 >= maxDepth ) {
3800
3801 // Only substitute handlers pass on context
3802 // and multiple values (non-spec behavior)
3803 if ( handler !== Thrower ) {
3804 that = undefined;
3805 args = [ e ];
3806 }
3807
3808 deferred.rejectWith( that, args );
3809 }
3810 }
3811 };
3812
3813 // Support: Promises/A+ section 2.3.3.3.1
3814 // https://promisesaplus.com/#point-57
3815 // Re-resolve promises immediately to dodge false rejection from
3816 // subsequent errors
3817 if ( depth ) {
3818 process();
3819 } else {
3820
3821 // Call an optional hook to record the stack, in case of exception
3822 // since it's otherwise lost when execution goes async
3823 if ( jQuery.Deferred.getStackHook ) {
3824 process.stackTrace = jQuery.Deferred.getStackHook();
3825 }
3826 window.setTimeout( process );
3827 }
3828 };
3829 }
3830
3831 return jQuery.Deferred( function( newDefer ) {
3832
3833 // progress_handlers.add( ... )
3834 tuples[ 0 ][ 3 ].add(
3835 resolve(
3836 0,
3837 newDefer,
3838 isFunction( onProgress ) ?
3839 onProgress :
3840 Identity,
3841 newDefer.notifyWith
3842 )
3843 );
3844
3845 // fulfilled_handlers.add( ... )
3846 tuples[ 1 ][ 3 ].add(
3847 resolve(
3848 0,
3849 newDefer,
3850 isFunction( onFulfilled ) ?
3851 onFulfilled :
3852 Identity
3853 )
3854 );
3855
3856 // rejected_handlers.add( ... )
3857 tuples[ 2 ][ 3 ].add(
3858 resolve(
3859 0,
3860 newDefer,
3861 isFunction( onRejected ) ?
3862 onRejected :
3863 Thrower
3864 )
3865 );
3866 } ).promise();
3867 },
3868
3869 // Get a promise for this deferred
3870 // If obj is provided, the promise aspect is added to the object
3871 promise: function( obj ) {
3872 return obj != null ? jQuery.extend( obj, promise ) : promise;
3873 }
3874 },
3875 deferred = {};
3876
3877 // Add list-specific methods
3878 jQuery.each( tuples, function( i, tuple ) {
3879 var list = tuple[ 2 ],
3880 stateString = tuple[ 5 ];
3881
3882 // promise.progress = list.add
3883 // promise.done = list.add
3884 // promise.fail = list.add
3885 promise[ tuple[ 1 ] ] = list.add;
3886
3887 // Handle state
3888 if ( stateString ) {
3889 list.add(
3890 function() {
3891
3892 // state = "resolved" (i.e., fulfilled)
3893 // state = "rejected"
3894 state = stateString;
3895 },
3896
3897 // rejected_callbacks.disable
3898 // fulfilled_callbacks.disable
3899 tuples[ 3 - i ][ 2 ].disable,
3900
3901 // rejected_handlers.disable
3902 // fulfilled_handlers.disable
3903 tuples[ 3 - i ][ 3 ].disable,
3904
3905 // progress_callbacks.lock
3906 tuples[ 0 ][ 2 ].lock,
3907
3908 // progress_handlers.lock
3909 tuples[ 0 ][ 3 ].lock
3910 );
3911 }
3912
3913 // progress_handlers.fire
3914 // fulfilled_handlers.fire
3915 // rejected_handlers.fire
3916 list.add( tuple[ 3 ].fire );
3917
3918 // deferred.notify = function() { deferred.notifyWith(...) }
3919 // deferred.resolve = function() { deferred.resolveWith(...) }
3920 // deferred.reject = function() { deferred.rejectWith(...) }
3921 deferred[ tuple[ 0 ] ] = function() {
3922 deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
3923 return this;
3924 };
3925
3926 // deferred.notifyWith = list.fireWith
3927 // deferred.resolveWith = list.fireWith
3928 // deferred.rejectWith = list.fireWith
3929 deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
3930 } );
3931
3932 // Make the deferred a promise
3933 promise.promise( deferred );
3934
3935 // Call given func if any
3936 if ( func ) {
3937 func.call( deferred, deferred );
3938 }
3939
3940 // All done!
3941 return deferred;
3942 },
3943
3944 // Deferred helper
3945 when: function( singleValue ) {
3946 var
3947
3948 // count of uncompleted subordinates
3949 remaining = arguments.length,
3950
3951 // count of unprocessed arguments
3952 i = remaining,
3953
3954 // subordinate fulfillment data
3955 resolveContexts = Array( i ),
3956 resolveValues = slice.call( arguments ),
3957
3958 // the master Deferred
3959 master = jQuery.Deferred(),
3960
3961 // subordinate callback factory
3962 updateFunc = function( i ) {
3963 return function( value ) {
3964 resolveContexts[ i ] = this;
3965 resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
3966 if ( !( --remaining ) ) {
3967 master.resolveWith( resolveContexts, resolveValues );
3968 }
3969 };
3970 };
3971
3972 // Single- and empty arguments are adopted like Promise.resolve
3973 if ( remaining <= 1 ) {
3974 adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
3975 !remaining );
3976
3977 // Use .then() to unwrap secondary thenables (cf. gh-3000)
3978 if ( master.state() === "pending" ||
3979 isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
3980
3981 return master.then();
3982 }
3983 }
3984
3985 // Multiple arguments are aggregated like Promise.all array elements
3986 while ( i-- ) {
3987 adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
3988 }
3989
3990 return master.promise();
3991 }
3992} );
3993
3994
3995// These usually indicate a programmer mistake during development,
3996// warn about them ASAP rather than swallowing them by default.
3997var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
3998
3999jQuery.Deferred.exceptionHook = function( error, stack ) {
4000
4001 // Support: IE 8 - 9 only
4002 // Console exists when dev tools are open, which can happen at any time
4003 if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
4004 window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
4005 }
4006};
4007
4008
4009
4010
4011jQuery.readyException = function( error ) {
4012 window.setTimeout( function() {
4013 throw error;
4014 } );
4015};
4016
4017
4018
4019
4020// The deferred used on DOM ready
4021var readyList = jQuery.Deferred();
4022
4023jQuery.fn.ready = function( fn ) {
4024
4025 readyList
4026 .then( fn )
4027
4028 // Wrap jQuery.readyException in a function so that the lookup
4029 // happens at the time of error handling instead of callback
4030 // registration.
4031 .catch( function( error ) {
4032 jQuery.readyException( error );
4033 } );
4034
4035 return this;
4036};
4037
4038jQuery.extend( {
4039
4040 // Is the DOM ready to be used? Set to true once it occurs.
4041 isReady: false,
4042
4043 // A counter to track how many items to wait for before
4044 // the ready event fires. See #6781
4045 readyWait: 1,
4046
4047 // Handle when the DOM is ready
4048 ready: function( wait ) {
4049
4050 // Abort if there are pending holds or we're already ready
4051 if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
4052 return;
4053 }
4054
4055 // Remember that the DOM is ready
4056 jQuery.isReady = true;
4057
4058 // If a normal DOM Ready event fired, decrement, and wait if need be
4059 if ( wait !== true && --jQuery.readyWait > 0 ) {
4060 return;
4061 }
4062
4063 // If there are functions bound, to execute
4064 readyList.resolveWith( document, [ jQuery ] );
4065 }
4066} );
4067
4068jQuery.ready.then = readyList.then;
4069
4070// The ready event handler and self cleanup method
4071function completed() {
4072 document.removeEventListener( "DOMContentLoaded", completed );
4073 window.removeEventListener( "load", completed );
4074 jQuery.ready();
4075}
4076
4077// Catch cases where $(document).ready() is called
4078// after the browser event has already occurred.
4079// Support: IE <=9 - 10 only
4080// Older IE sometimes signals "interactive" too soon
4081if ( document.readyState === "complete" ||
4082 ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
4083
4084 // Handle it asynchronously to allow scripts the opportunity to delay ready
4085 window.setTimeout( jQuery.ready );
4086
4087} else {
4088
4089 // Use the handy event callback
4090 document.addEventListener( "DOMContentLoaded", completed );
4091
4092 // A fallback to window.onload, that will always work
4093 window.addEventListener( "load", completed );
4094}
4095
4096
4097
4098
4099// Multifunctional method to get and set values of a collection
4100// The value/s can optionally be executed if it's a function
4101var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
4102 var i = 0,
4103 len = elems.length,
4104 bulk = key == null;
4105
4106 // Sets many values
4107 if ( toType( key ) === "object" ) {
4108 chainable = true;
4109 for ( i in key ) {
4110 access( elems, fn, i, key[ i ], true, emptyGet, raw );
4111 }
4112
4113 // Sets one value
4114 } else if ( value !== undefined ) {
4115 chainable = true;
4116
4117 if ( !isFunction( value ) ) {
4118 raw = true;
4119 }
4120
4121 if ( bulk ) {
4122
4123 // Bulk operations run against the entire set
4124 if ( raw ) {
4125 fn.call( elems, value );
4126 fn = null;
4127
4128 // ...except when executing function values
4129 } else {
4130 bulk = fn;
4131 fn = function( elem, key, value ) {
4132 return bulk.call( jQuery( elem ), value );
4133 };
4134 }
4135 }
4136
4137 if ( fn ) {
4138 for ( ; i < len; i++ ) {
4139 fn(
4140 elems[ i ], key, raw ?
4141 value :
4142 value.call( elems[ i ], i, fn( elems[ i ], key ) )
4143 );
4144 }
4145 }
4146 }
4147
4148 if ( chainable ) {
4149 return elems;
4150 }
4151
4152 // Gets
4153 if ( bulk ) {
4154 return fn.call( elems );
4155 }
4156
4157 return len ? fn( elems[ 0 ], key ) : emptyGet;
4158};
4159
4160
4161// Matches dashed string for camelizing
4162var rmsPrefix = /^-ms-/,
4163 rdashAlpha = /-([a-z])/g;
4164
4165// Used by camelCase as callback to replace()
4166function fcamelCase( all, letter ) {
4167 return letter.toUpperCase();
4168}
4169
4170// Convert dashed to camelCase; used by the css and data modules
4171// Support: IE <=9 - 11, Edge 12 - 15
4172// Microsoft forgot to hump their vendor prefix (#9572)
4173function camelCase( string ) {
4174 return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
4175}
4176var acceptData = function( owner ) {
4177
4178 // Accepts only:
4179 // - Node
4180 // - Node.ELEMENT_NODE
4181 // - Node.DOCUMENT_NODE
4182 // - Object
4183 // - Any
4184 return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
4185};
4186
4187
4188
4189
4190function Data() {
4191 this.expando = jQuery.expando + Data.uid++;
4192}
4193
4194Data.uid = 1;
4195
4196Data.prototype = {
4197
4198 cache: function( owner ) {
4199
4200 // Check if the owner object already has a cache
4201 var value = owner[ this.expando ];
4202
4203 // If not, create one
4204 if ( !value ) {
4205 value = {};
4206
4207 // We can accept data for non-element nodes in modern browsers,
4208 // but we should not, see #8335.
4209 // Always return an empty object.
4210 if ( acceptData( owner ) ) {
4211
4212 // If it is a node unlikely to be stringify-ed or looped over
4213 // use plain assignment
4214 if ( owner.nodeType ) {
4215 owner[ this.expando ] = value;
4216
4217 // Otherwise secure it in a non-enumerable property
4218 // configurable must be true to allow the property to be
4219 // deleted when data is removed
4220 } else {
4221 Object.defineProperty( owner, this.expando, {
4222 value: value,
4223 configurable: true
4224 } );
4225 }
4226 }
4227 }
4228
4229 return value;
4230 },
4231 set: function( owner, data, value ) {
4232 var prop,
4233 cache = this.cache( owner );
4234
4235 // Handle: [ owner, key, value ] args
4236 // Always use camelCase key (gh-2257)
4237 if ( typeof data === "string" ) {
4238 cache[ camelCase( data ) ] = value;
4239
4240 // Handle: [ owner, { properties } ] args
4241 } else {
4242
4243 // Copy the properties one-by-one to the cache object
4244 for ( prop in data ) {
4245 cache[ camelCase( prop ) ] = data[ prop ];
4246 }
4247 }
4248 return cache;
4249 },
4250 get: function( owner, key ) {
4251 return key === undefined ?
4252 this.cache( owner ) :
4253
4254 // Always use camelCase key (gh-2257)
4255 owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];
4256 },
4257 access: function( owner, key, value ) {
4258
4259 // In cases where either:
4260 //
4261 // 1. No key was specified
4262 // 2. A string key was specified, but no value provided
4263 //
4264 // Take the "read" path and allow the get method to determine
4265 // which value to return, respectively either:
4266 //
4267 // 1. The entire cache object
4268 // 2. The data stored at the key
4269 //
4270 if ( key === undefined ||
4271 ( ( key && typeof key === "string" ) && value === undefined ) ) {
4272
4273 return this.get( owner, key );
4274 }
4275
4276 // When the key is not a string, or both a key and value
4277 // are specified, set or extend (existing objects) with either:
4278 //
4279 // 1. An object of properties
4280 // 2. A key and value
4281 //
4282 this.set( owner, key, value );
4283
4284 // Since the "set" path can have two possible entry points
4285 // return the expected data based on which path was taken[*]
4286 return value !== undefined ? value : key;
4287 },
4288 remove: function( owner, key ) {
4289 var i,
4290 cache = owner[ this.expando ];
4291
4292 if ( cache === undefined ) {
4293 return;
4294 }
4295
4296 if ( key !== undefined ) {
4297
4298 // Support array or space separated string of keys
4299 if ( Array.isArray( key ) ) {
4300
4301 // If key is an array of keys...
4302 // We always set camelCase keys, so remove that.
4303 key = key.map( camelCase );
4304 } else {
4305 key = camelCase( key );
4306
4307 // If a key with the spaces exists, use it.
4308 // Otherwise, create an array by matching non-whitespace
4309 key = key in cache ?
4310 [ key ] :
4311 ( key.match( rnothtmlwhite ) || [] );
4312 }
4313
4314 i = key.length;
4315
4316 while ( i-- ) {
4317 delete cache[ key[ i ] ];
4318 }
4319 }
4320
4321 // Remove the expando if there's no more data
4322 if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
4323
4324 // Support: Chrome <=35 - 45
4325 // Webkit & Blink performance suffers when deleting properties
4326 // from DOM nodes, so set to undefined instead
4327 // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
4328 if ( owner.nodeType ) {
4329 owner[ this.expando ] = undefined;
4330 } else {
4331 delete owner[ this.expando ];
4332 }
4333 }
4334 },
4335 hasData: function( owner ) {
4336 var cache = owner[ this.expando ];
4337 return cache !== undefined && !jQuery.isEmptyObject( cache );
4338 }
4339};
4340var dataPriv = new Data();
4341
4342var dataUser = new Data();
4343
4344
4345
4346// Implementation Summary
4347//
4348// 1. Enforce API surface and semantic compatibility with 1.9.x branch
4349// 2. Improve the module's maintainability by reducing the storage
4350// paths to a single mechanism.
4351// 3. Use the same single mechanism to support "private" and "user" data.
4352// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
4353// 5. Avoid exposing implementation details on user objects (eg. expando properties)
4354// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
4355
4356var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
4357 rmultiDash = /[A-Z]/g;
4358
4359function getData( data ) {
4360 if ( data === "true" ) {
4361 return true;
4362 }
4363
4364 if ( data === "false" ) {
4365 return false;
4366 }
4367
4368 if ( data === "null" ) {
4369 return null;
4370 }
4371
4372 // Only convert to a number if it doesn't change the string
4373 if ( data === +data + "" ) {
4374 return +data;
4375 }
4376
4377 if ( rbrace.test( data ) ) {
4378 return JSON.parse( data );
4379 }
4380
4381 return data;
4382}
4383
4384function dataAttr( elem, key, data ) {
4385 var name;
4386
4387 // If nothing was found internally, try to fetch any
4388 // data from the HTML5 data-* attribute
4389 if ( data === undefined && elem.nodeType === 1 ) {
4390 name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
4391 data = elem.getAttribute( name );
4392
4393 if ( typeof data === "string" ) {
4394 try {
4395 data = getData( data );
4396 } catch ( e ) {}
4397
4398 // Make sure we set the data so it isn't changed later
4399 dataUser.set( elem, key, data );
4400 } else {
4401 data = undefined;
4402 }
4403 }
4404 return data;
4405}
4406
4407jQuery.extend( {
4408 hasData: function( elem ) {
4409 return dataUser.hasData( elem ) || dataPriv.hasData( elem );
4410 },
4411
4412 data: function( elem, name, data ) {
4413 return dataUser.access( elem, name, data );
4414 },
4415
4416 removeData: function( elem, name ) {
4417 dataUser.remove( elem, name );
4418 },
4419
4420 // TODO: Now that all calls to _data and _removeData have been replaced
4421 // with direct calls to dataPriv methods, these can be deprecated.
4422 _data: function( elem, name, data ) {
4423 return dataPriv.access( elem, name, data );
4424 },
4425
4426 _removeData: function( elem, name ) {
4427 dataPriv.remove( elem, name );
4428 }
4429} );
4430
4431jQuery.fn.extend( {
4432 data: function( key, value ) {
4433 var i, name, data,
4434 elem = this[ 0 ],
4435 attrs = elem && elem.attributes;
4436
4437 // Gets all values
4438 if ( key === undefined ) {
4439 if ( this.length ) {
4440 data = dataUser.get( elem );
4441
4442 if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
4443 i = attrs.length;
4444 while ( i-- ) {
4445
4446 // Support: IE 11 only
4447 // The attrs elements can be null (#14894)
4448 if ( attrs[ i ] ) {
4449 name = attrs[ i ].name;
4450 if ( name.indexOf( "data-" ) === 0 ) {
4451 name = camelCase( name.slice( 5 ) );
4452 dataAttr( elem, name, data[ name ] );
4453 }
4454 }
4455 }
4456 dataPriv.set( elem, "hasDataAttrs", true );
4457 }
4458 }
4459
4460 return data;
4461 }
4462
4463 // Sets multiple values
4464 if ( typeof key === "object" ) {
4465 return this.each( function() {
4466 dataUser.set( this, key );
4467 } );
4468 }
4469
4470 return access( this, function( value ) {
4471 var data;
4472
4473 // The calling jQuery object (element matches) is not empty
4474 // (and therefore has an element appears at this[ 0 ]) and the
4475 // `value` parameter was not undefined. An empty jQuery object
4476 // will result in `undefined` for elem = this[ 0 ] which will
4477 // throw an exception if an attempt to read a data cache is made.
4478 if ( elem && value === undefined ) {
4479
4480 // Attempt to get data from the cache
4481 // The key will always be camelCased in Data
4482 data = dataUser.get( elem, key );
4483 if ( data !== undefined ) {
4484 return data;
4485 }
4486
4487 // Attempt to "discover" the data in
4488 // HTML5 custom data-* attrs
4489 data = dataAttr( elem, key );
4490 if ( data !== undefined ) {
4491 return data;
4492 }
4493
4494 // We tried really hard, but the data doesn't exist.
4495 return;
4496 }
4497
4498 // Set the data...
4499 this.each( function() {
4500
4501 // We always store the camelCased key
4502 dataUser.set( this, key, value );
4503 } );
4504 }, null, value, arguments.length > 1, null, true );
4505 },
4506
4507 removeData: function( key ) {
4508 return this.each( function() {
4509 dataUser.remove( this, key );
4510 } );
4511 }
4512} );
4513
4514
4515jQuery.extend( {
4516 queue: function( elem, type, data ) {
4517 var queue;
4518
4519 if ( elem ) {
4520 type = ( type || "fx" ) + "queue";
4521 queue = dataPriv.get( elem, type );
4522
4523 // Speed up dequeue by getting out quickly if this is just a lookup
4524 if ( data ) {
4525 if ( !queue || Array.isArray( data ) ) {
4526 queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
4527 } else {
4528 queue.push( data );
4529 }
4530 }
4531 return queue || [];
4532 }
4533 },
4534
4535 dequeue: function( elem, type ) {
4536 type = type || "fx";
4537
4538 var queue = jQuery.queue( elem, type ),
4539 startLength = queue.length,
4540 fn = queue.shift(),
4541 hooks = jQuery._queueHooks( elem, type ),
4542 next = function() {
4543 jQuery.dequeue( elem, type );
4544 };
4545
4546 // If the fx queue is dequeued, always remove the progress sentinel
4547 if ( fn === "inprogress" ) {
4548 fn = queue.shift();
4549 startLength--;
4550 }
4551
4552 if ( fn ) {
4553
4554 // Add a progress sentinel to prevent the fx queue from being
4555 // automatically dequeued
4556 if ( type === "fx" ) {
4557 queue.unshift( "inprogress" );
4558 }
4559
4560 // Clear up the last queue stop function
4561 delete hooks.stop;
4562 fn.call( elem, next, hooks );
4563 }
4564
4565 if ( !startLength && hooks ) {
4566 hooks.empty.fire();
4567 }
4568 },
4569
4570 // Not public - generate a queueHooks object, or return the current one
4571 _queueHooks: function( elem, type ) {
4572 var key = type + "queueHooks";
4573 return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
4574 empty: jQuery.Callbacks( "once memory" ).add( function() {
4575 dataPriv.remove( elem, [ type + "queue", key ] );
4576 } )
4577 } );
4578 }
4579} );
4580
4581jQuery.fn.extend( {
4582 queue: function( type, data ) {
4583 var setter = 2;
4584
4585 if ( typeof type !== "string" ) {
4586 data = type;
4587 type = "fx";
4588 setter--;
4589 }
4590
4591 if ( arguments.length < setter ) {
4592 return jQuery.queue( this[ 0 ], type );
4593 }
4594
4595 return data === undefined ?
4596 this :
4597 this.each( function() {
4598 var queue = jQuery.queue( this, type, data );
4599
4600 // Ensure a hooks for this queue
4601 jQuery._queueHooks( this, type );
4602
4603 if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
4604 jQuery.dequeue( this, type );
4605 }
4606 } );
4607 },
4608 dequeue: function( type ) {
4609 return this.each( function() {
4610 jQuery.dequeue( this, type );
4611 } );
4612 },
4613 clearQueue: function( type ) {
4614 return this.queue( type || "fx", [] );
4615 },
4616
4617 // Get a promise resolved when queues of a certain type
4618 // are emptied (fx is the type by default)
4619 promise: function( type, obj ) {
4620 var tmp,
4621 count = 1,
4622 defer = jQuery.Deferred(),
4623 elements = this,
4624 i = this.length,
4625 resolve = function() {
4626 if ( !( --count ) ) {
4627 defer.resolveWith( elements, [ elements ] );
4628 }
4629 };
4630
4631 if ( typeof type !== "string" ) {
4632 obj = type;
4633 type = undefined;
4634 }
4635 type = type || "fx";
4636
4637 while ( i-- ) {
4638 tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
4639 if ( tmp && tmp.empty ) {
4640 count++;
4641 tmp.empty.add( resolve );
4642 }
4643 }
4644 resolve();
4645 return defer.promise( obj );
4646 }
4647} );
4648var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
4649
4650var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
4651
4652
4653var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
4654
4655var isHiddenWithinTree = function( elem, el ) {
4656
4657 // isHiddenWithinTree might be called from jQuery#filter function;
4658 // in that case, element will be second argument
4659 elem = el || elem;
4660
4661 // Inline style trumps all
4662 return elem.style.display === "none" ||
4663 elem.style.display === "" &&
4664
4665 // Otherwise, check computed style
4666 // Support: Firefox <=43 - 45
4667 // Disconnected elements can have computed display: none, so first confirm that elem is
4668 // in the document.
4669 jQuery.contains( elem.ownerDocument, elem ) &&
4670
4671 jQuery.css( elem, "display" ) === "none";
4672 };
4673
4674var swap = function( elem, options, callback, args ) {
4675 var ret, name,
4676 old = {};
4677
4678 // Remember the old values, and insert the new ones
4679 for ( name in options ) {
4680 old[ name ] = elem.style[ name ];
4681 elem.style[ name ] = options[ name ];
4682 }
4683
4684 ret = callback.apply( elem, args || [] );
4685
4686 // Revert the old values
4687 for ( name in options ) {
4688 elem.style[ name ] = old[ name ];
4689 }
4690
4691 return ret;
4692};
4693
4694
4695
4696
4697function adjustCSS( elem, prop, valueParts, tween ) {
4698 var adjusted, scale,
4699 maxIterations = 20,
4700 currentValue = tween ?
4701 function() {
4702 return tween.cur();
4703 } :
4704 function() {
4705 return jQuery.css( elem, prop, "" );
4706 },
4707 initial = currentValue(),
4708 unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
4709
4710 // Starting value computation is required for potential unit mismatches
4711 initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
4712 rcssNum.exec( jQuery.css( elem, prop ) );
4713
4714 if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
4715
4716 // Support: Firefox <=54
4717 // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
4718 initial = initial / 2;
4719
4720 // Trust units reported by jQuery.css
4721 unit = unit || initialInUnit[ 3 ];
4722
4723 // Iteratively approximate from a nonzero starting point
4724 initialInUnit = +initial || 1;
4725
4726 while ( maxIterations-- ) {
4727
4728 // Evaluate and update our best guess (doubling guesses that zero out).
4729 // Finish if the scale equals or crosses 1 (making the old*new product non-positive).
4730 jQuery.style( elem, prop, initialInUnit + unit );
4731 if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
4732 maxIterations = 0;
4733 }
4734 initialInUnit = initialInUnit / scale;
4735
4736 }
4737
4738 initialInUnit = initialInUnit * 2;
4739 jQuery.style( elem, prop, initialInUnit + unit );
4740
4741 // Make sure we update the tween properties later on
4742 valueParts = valueParts || [];
4743 }
4744
4745 if ( valueParts ) {
4746 initialInUnit = +initialInUnit || +initial || 0;
4747
4748 // Apply relative offset (+=/-=) if specified
4749 adjusted = valueParts[ 1 ] ?
4750 initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
4751 +valueParts[ 2 ];
4752 if ( tween ) {
4753 tween.unit = unit;
4754 tween.start = initialInUnit;
4755 tween.end = adjusted;
4756 }
4757 }
4758 return adjusted;
4759}
4760
4761
4762var defaultDisplayMap = {};
4763
4764function getDefaultDisplay( elem ) {
4765 var temp,
4766 doc = elem.ownerDocument,
4767 nodeName = elem.nodeName,
4768 display = defaultDisplayMap[ nodeName ];
4769
4770 if ( display ) {
4771 return display;
4772 }
4773
4774 temp = doc.body.appendChild( doc.createElement( nodeName ) );
4775 display = jQuery.css( temp, "display" );
4776
4777 temp.parentNode.removeChild( temp );
4778
4779 if ( display === "none" ) {
4780 display = "block";
4781 }
4782 defaultDisplayMap[ nodeName ] = display;
4783
4784 return display;
4785}
4786
4787function showHide( elements, show ) {
4788 var display, elem,
4789 values = [],
4790 index = 0,
4791 length = elements.length;
4792
4793 // Determine new display value for elements that need to change
4794 for ( ; index < length; index++ ) {
4795 elem = elements[ index ];
4796 if ( !elem.style ) {
4797 continue;
4798 }
4799
4800 display = elem.style.display;
4801 if ( show ) {
4802
4803 // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
4804 // check is required in this first loop unless we have a nonempty display value (either
4805 // inline or about-to-be-restored)
4806 if ( display === "none" ) {
4807 values[ index ] = dataPriv.get( elem, "display" ) || null;
4808 if ( !values[ index ] ) {
4809 elem.style.display = "";
4810 }
4811 }
4812 if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
4813 values[ index ] = getDefaultDisplay( elem );
4814 }
4815 } else {
4816 if ( display !== "none" ) {
4817 values[ index ] = "none";
4818
4819 // Remember what we're overwriting
4820 dataPriv.set( elem, "display", display );
4821 }
4822 }
4823 }
4824
4825 // Set the display of the elements in a second loop to avoid constant reflow
4826 for ( index = 0; index < length; index++ ) {
4827 if ( values[ index ] != null ) {
4828 elements[ index ].style.display = values[ index ];
4829 }
4830 }
4831
4832 return elements;
4833}
4834
4835jQuery.fn.extend( {
4836 show: function() {
4837 return showHide( this, true );
4838 },
4839 hide: function() {
4840 return showHide( this );
4841 },
4842 toggle: function( state ) {
4843 if ( typeof state === "boolean" ) {
4844 return state ? this.show() : this.hide();
4845 }
4846
4847 return this.each( function() {
4848 if ( isHiddenWithinTree( this ) ) {
4849 jQuery( this ).show();
4850 } else {
4851 jQuery( this ).hide();
4852 }
4853 } );
4854 }
4855} );
4856var rcheckableType = ( /^(?:checkbox|radio)$/i );
4857
4858var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i );
4859
4860var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i );
4861
4862
4863
4864// We have to close these tags to support XHTML (#13200)
4865var wrapMap = {
4866
4867 // Support: IE <=9 only
4868 option: [ 1, "<select multiple='multiple'>", "</select>" ],
4869
4870 // XHTML parsers do not magically insert elements in the
4871 // same way that tag soup parsers do. So we cannot shorten
4872 // this by omitting <tbody> or other required elements.
4873 thead: [ 1, "<table>", "</table>" ],
4874 col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
4875 tr: [ 2, "<table><tbody>", "</tbody></table>" ],
4876 td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
4877
4878 _default: [ 0, "", "" ]
4879};
4880
4881// Support: IE <=9 only
4882wrapMap.optgroup = wrapMap.option;
4883
4884wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
4885wrapMap.th = wrapMap.td;
4886
4887
4888function getAll( context, tag ) {
4889
4890 // Support: IE <=9 - 11 only
4891 // Use typeof to avoid zero-argument method invocation on host objects (#15151)
4892 var ret;
4893
4894 if ( typeof context.getElementsByTagName !== "undefined" ) {
4895 ret = context.getElementsByTagName( tag || "*" );
4896
4897 } else if ( typeof context.querySelectorAll !== "undefined" ) {
4898 ret = context.querySelectorAll( tag || "*" );
4899
4900 } else {
4901 ret = [];
4902 }
4903
4904 if ( tag === undefined || tag && nodeName( context, tag ) ) {
4905 return jQuery.merge( [ context ], ret );
4906 }
4907
4908 return ret;
4909}
4910
4911
4912// Mark scripts as having already been evaluated
4913function setGlobalEval( elems, refElements ) {
4914 var i = 0,
4915 l = elems.length;
4916
4917 for ( ; i < l; i++ ) {
4918 dataPriv.set(
4919 elems[ i ],
4920 "globalEval",
4921 !refElements || dataPriv.get( refElements[ i ], "globalEval" )
4922 );
4923 }
4924}
4925
4926
4927var rhtml = /<|&#?\w+;/;
4928
4929function buildFragment( elems, context, scripts, selection, ignored ) {
4930 var elem, tmp, tag, wrap, contains, j,
4931 fragment = context.createDocumentFragment(),
4932 nodes = [],
4933 i = 0,
4934 l = elems.length;
4935
4936 for ( ; i < l; i++ ) {
4937 elem = elems[ i ];
4938
4939 if ( elem || elem === 0 ) {
4940
4941 // Add nodes directly
4942 if ( toType( elem ) === "object" ) {
4943
4944 // Support: Android <=4.0 only, PhantomJS 1 only
4945 // push.apply(_, arraylike) throws on ancient WebKit
4946 jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
4947
4948 // Convert non-html into a text node
4949 } else if ( !rhtml.test( elem ) ) {
4950 nodes.push( context.createTextNode( elem ) );
4951
4952 // Convert html into DOM nodes
4953 } else {
4954 tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
4955
4956 // Deserialize a standard representation
4957 tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
4958 wrap = wrapMap[ tag ] || wrapMap._default;
4959 tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
4960
4961 // Descend through wrappers to the right content
4962 j = wrap[ 0 ];
4963 while ( j-- ) {
4964 tmp = tmp.lastChild;
4965 }
4966
4967 // Support: Android <=4.0 only, PhantomJS 1 only
4968 // push.apply(_, arraylike) throws on ancient WebKit
4969 jQuery.merge( nodes, tmp.childNodes );
4970
4971 // Remember the top-level container
4972 tmp = fragment.firstChild;
4973
4974 // Ensure the created nodes are orphaned (#12392)
4975 tmp.textContent = "";
4976 }
4977 }
4978 }
4979
4980 // Remove wrapper from fragment
4981 fragment.textContent = "";
4982
4983 i = 0;
4984 while ( ( elem = nodes[ i++ ] ) ) {
4985
4986 // Skip elements already in the context collection (trac-4087)
4987 if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
4988 if ( ignored ) {
4989 ignored.push( elem );
4990 }
4991 continue;
4992 }
4993
4994 contains = jQuery.contains( elem.ownerDocument, elem );
4995
4996 // Append to fragment
4997 tmp = getAll( fragment.appendChild( elem ), "script" );
4998
4999 // Preserve script evaluation history
5000 if ( contains ) {
5001 setGlobalEval( tmp );
5002 }
5003
5004 // Capture executables
5005 if ( scripts ) {
5006 j = 0;
5007 while ( ( elem = tmp[ j++ ] ) ) {
5008 if ( rscriptType.test( elem.type || "" ) ) {
5009 scripts.push( elem );
5010 }
5011 }
5012 }
5013 }
5014
5015 return fragment;
5016}
5017
5018
5019( function() {
5020 var fragment = document.createDocumentFragment(),
5021 div = fragment.appendChild( document.createElement( "div" ) ),
5022 input = document.createElement( "input" );
5023
5024 // Support: Android 4.0 - 4.3 only
5025 // Check state lost if the name is set (#11217)
5026 // Support: Windows Web Apps (WWA)
5027 // `name` and `type` must use .setAttribute for WWA (#14901)
5028 input.setAttribute( "type", "radio" );
5029 input.setAttribute( "checked", "checked" );
5030 input.setAttribute( "name", "t" );
5031
5032 div.appendChild( input );
5033
5034 // Support: Android <=4.1 only
5035 // Older WebKit doesn't clone checked state correctly in fragments
5036 support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
5037
5038 // Support: IE <=11 only
5039 // Make sure textarea (and checkbox) defaultValue is properly cloned
5040 div.innerHTML = "<textarea>x</textarea>";
5041 support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
5042} )();
5043var documentElement = document.documentElement;
5044
5045
5046
5047var
5048 rkeyEvent = /^key/,
5049 rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
5050 rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
5051
5052function returnTrue() {
5053 return true;
5054}
5055
5056function returnFalse() {
5057 return false;
5058}
5059
5060// Support: IE <=9 only
5061// See #13393 for more info
5062function safeActiveElement() {
5063 try {
5064 return document.activeElement;
5065 } catch ( err ) { }
5066}
5067
5068function on( elem, types, selector, data, fn, one ) {
5069 var origFn, type;
5070
5071 // Types can be a map of types/handlers
5072 if ( typeof types === "object" ) {
5073
5074 // ( types-Object, selector, data )
5075 if ( typeof selector !== "string" ) {
5076
5077 // ( types-Object, data )
5078 data = data || selector;
5079 selector = undefined;
5080 }
5081 for ( type in types ) {
5082 on( elem, type, selector, data, types[ type ], one );
5083 }
5084 return elem;
5085 }
5086
5087 if ( data == null && fn == null ) {
5088
5089 // ( types, fn )
5090 fn = selector;
5091 data = selector = undefined;
5092 } else if ( fn == null ) {
5093 if ( typeof selector === "string" ) {
5094
5095 // ( types, selector, fn )
5096 fn = data;
5097 data = undefined;
5098 } else {
5099
5100 // ( types, data, fn )
5101 fn = data;
5102 data = selector;
5103 selector = undefined;
5104 }
5105 }
5106 if ( fn === false ) {
5107 fn = returnFalse;
5108 } else if ( !fn ) {
5109 return elem;
5110 }
5111
5112 if ( one === 1 ) {
5113 origFn = fn;
5114 fn = function( event ) {
5115
5116 // Can use an empty set, since event contains the info
5117 jQuery().off( event );
5118 return origFn.apply( this, arguments );
5119 };
5120
5121 // Use same guid so caller can remove using origFn
5122 fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
5123 }
5124 return elem.each( function() {
5125 jQuery.event.add( this, types, fn, data, selector );
5126 } );
5127}
5128
5129/*
5130 * Helper functions for managing events -- not part of the public interface.
5131 * Props to Dean Edwards' addEvent library for many of the ideas.
5132 */
5133jQuery.event = {
5134
5135 global: {},
5136
5137 add: function( elem, types, handler, data, selector ) {
5138
5139 var handleObjIn, eventHandle, tmp,
5140 events, t, handleObj,
5141 special, handlers, type, namespaces, origType,
5142 elemData = dataPriv.get( elem );
5143
5144 // Don't attach events to noData or text/comment nodes (but allow plain objects)
5145 if ( !elemData ) {
5146 return;
5147 }
5148
5149 // Caller can pass in an object of custom data in lieu of the handler
5150 if ( handler.handler ) {
5151 handleObjIn = handler;
5152 handler = handleObjIn.handler;
5153 selector = handleObjIn.selector;
5154 }
5155
5156 // Ensure that invalid selectors throw exceptions at attach time
5157 // Evaluate against documentElement in case elem is a non-element node (e.g., document)
5158 if ( selector ) {
5159 jQuery.find.matchesSelector( documentElement, selector );
5160 }
5161
5162 // Make sure that the handler has a unique ID, used to find/remove it later
5163 if ( !handler.guid ) {
5164 handler.guid = jQuery.guid++;
5165 }
5166
5167 // Init the element's event structure and main handler, if this is the first
5168 if ( !( events = elemData.events ) ) {
5169 events = elemData.events = {};
5170 }
5171 if ( !( eventHandle = elemData.handle ) ) {
5172 eventHandle = elemData.handle = function( e ) {
5173
5174 // Discard the second event of a jQuery.event.trigger() and
5175 // when an event is called after a page has unloaded
5176 return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
5177 jQuery.event.dispatch.apply( elem, arguments ) : undefined;
5178 };
5179 }
5180
5181 // Handle multiple events separated by a space
5182 types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
5183 t = types.length;
5184 while ( t-- ) {
5185 tmp = rtypenamespace.exec( types[ t ] ) || [];
5186 type = origType = tmp[ 1 ];
5187 namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
5188
5189 // There *must* be a type, no attaching namespace-only handlers
5190 if ( !type ) {
5191 continue;
5192 }
5193
5194 // If event changes its type, use the special event handlers for the changed type
5195 special = jQuery.event.special[ type ] || {};
5196
5197 // If selector defined, determine special event api type, otherwise given type
5198 type = ( selector ? special.delegateType : special.bindType ) || type;
5199
5200 // Update special based on newly reset type
5201 special = jQuery.event.special[ type ] || {};
5202
5203 // handleObj is passed to all event handlers
5204 handleObj = jQuery.extend( {
5205 type: type,
5206 origType: origType,
5207 data: data,
5208 handler: handler,
5209 guid: handler.guid,
5210 selector: selector,
5211 needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
5212 namespace: namespaces.join( "." )
5213 }, handleObjIn );
5214
5215 // Init the event handler queue if we're the first
5216 if ( !( handlers = events[ type ] ) ) {
5217 handlers = events[ type ] = [];
5218 handlers.delegateCount = 0;
5219
5220 // Only use addEventListener if the special events handler returns false
5221 if ( !special.setup ||
5222 special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
5223
5224 if ( elem.addEventListener ) {
5225 elem.addEventListener( type, eventHandle );
5226 }
5227 }
5228 }
5229
5230 if ( special.add ) {
5231 special.add.call( elem, handleObj );
5232
5233 if ( !handleObj.handler.guid ) {
5234 handleObj.handler.guid = handler.guid;
5235 }
5236 }
5237
5238 // Add to the element's handler list, delegates in front
5239 if ( selector ) {
5240 handlers.splice( handlers.delegateCount++, 0, handleObj );
5241 } else {
5242 handlers.push( handleObj );
5243 }
5244
5245 // Keep track of which events have ever been used, for event optimization
5246 jQuery.event.global[ type ] = true;
5247 }
5248
5249 },
5250
5251 // Detach an event or set of events from an element
5252 remove: function( elem, types, handler, selector, mappedTypes ) {
5253
5254 var j, origCount, tmp,
5255 events, t, handleObj,
5256 special, handlers, type, namespaces, origType,
5257 elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
5258
5259 if ( !elemData || !( events = elemData.events ) ) {
5260 return;
5261 }
5262
5263 // Once for each type.namespace in types; type may be omitted
5264 types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
5265 t = types.length;
5266 while ( t-- ) {
5267 tmp = rtypenamespace.exec( types[ t ] ) || [];
5268 type = origType = tmp[ 1 ];
5269 namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
5270
5271 // Unbind all events (on this namespace, if provided) for the element
5272 if ( !type ) {
5273 for ( type in events ) {
5274 jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
5275 }
5276 continue;
5277 }
5278
5279 special = jQuery.event.special[ type ] || {};
5280 type = ( selector ? special.delegateType : special.bindType ) || type;
5281 handlers = events[ type ] || [];
5282 tmp = tmp[ 2 ] &&
5283 new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
5284
5285 // Remove matching events
5286 origCount = j = handlers.length;
5287 while ( j-- ) {
5288 handleObj = handlers[ j ];
5289
5290 if ( ( mappedTypes || origType === handleObj.origType ) &&
5291 ( !handler || handler.guid === handleObj.guid ) &&
5292 ( !tmp || tmp.test( handleObj.namespace ) ) &&
5293 ( !selector || selector === handleObj.selector ||
5294 selector === "**" && handleObj.selector ) ) {
5295 handlers.splice( j, 1 );
5296
5297 if ( handleObj.selector ) {
5298 handlers.delegateCount--;
5299 }
5300 if ( special.remove ) {
5301 special.remove.call( elem, handleObj );
5302 }
5303 }
5304 }
5305
5306 // Remove generic event handler if we removed something and no more handlers exist
5307 // (avoids potential for endless recursion during removal of special event handlers)
5308 if ( origCount && !handlers.length ) {
5309 if ( !special.teardown ||
5310 special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
5311
5312 jQuery.removeEvent( elem, type, elemData.handle );
5313 }
5314
5315 delete events[ type ];
5316 }
5317 }
5318
5319 // Remove data and the expando if it's no longer used
5320 if ( jQuery.isEmptyObject( events ) ) {
5321 dataPriv.remove( elem, "handle events" );
5322 }
5323 },
5324
5325 dispatch: function( nativeEvent ) {
5326
5327 // Make a writable jQuery.Event from the native event object
5328 var event = jQuery.event.fix( nativeEvent );
5329
5330 var i, j, ret, matched, handleObj, handlerQueue,
5331 args = new Array( arguments.length ),
5332 handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
5333 special = jQuery.event.special[ event.type ] || {};
5334
5335 // Use the fix-ed jQuery.Event rather than the (read-only) native event
5336 args[ 0 ] = event;
5337
5338 for ( i = 1; i < arguments.length; i++ ) {
5339 args[ i ] = arguments[ i ];
5340 }
5341
5342 event.delegateTarget = this;
5343
5344 // Call the preDispatch hook for the mapped type, and let it bail if desired
5345 if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
5346 return;
5347 }
5348
5349 // Determine handlers
5350 handlerQueue = jQuery.event.handlers.call( this, event, handlers );
5351
5352 // Run delegates first; they may want to stop propagation beneath us
5353 i = 0;
5354 while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
5355 event.currentTarget = matched.elem;
5356
5357 j = 0;
5358 while ( ( handleObj = matched.handlers[ j++ ] ) &&
5359 !event.isImmediatePropagationStopped() ) {
5360
5361 // Triggered event must either 1) have no namespace, or 2) have namespace(s)
5362 // a subset or equal to those in the bound event (both can have no namespace).
5363 if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
5364
5365 event.handleObj = handleObj;
5366 event.data = handleObj.data;
5367
5368 ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
5369 handleObj.handler ).apply( matched.elem, args );
5370
5371 if ( ret !== undefined ) {
5372 if ( ( event.result = ret ) === false ) {
5373 event.preventDefault();
5374 event.stopPropagation();
5375 }
5376 }
5377 }
5378 }
5379 }
5380
5381 // Call the postDispatch hook for the mapped type
5382 if ( special.postDispatch ) {
5383 special.postDispatch.call( this, event );
5384 }
5385
5386 return event.result;
5387 },
5388
5389 handlers: function( event, handlers ) {
5390 var i, handleObj, sel, matchedHandlers, matchedSelectors,
5391 handlerQueue = [],
5392 delegateCount = handlers.delegateCount,
5393 cur = event.target;
5394
5395 // Find delegate handlers
5396 if ( delegateCount &&
5397
5398 // Support: IE <=9
5399 // Black-hole SVG <use> instance trees (trac-13180)
5400 cur.nodeType &&
5401
5402 // Support: Firefox <=42
5403 // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
5404 // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
5405 // Support: IE 11 only
5406 // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
5407 !( event.type === "click" && event.button >= 1 ) ) {
5408
5409 for ( ; cur !== this; cur = cur.parentNode || this ) {
5410
5411 // Don't check non-elements (#13208)
5412 // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
5413 if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
5414 matchedHandlers = [];
5415 matchedSelectors = {};
5416 for ( i = 0; i < delegateCount; i++ ) {
5417 handleObj = handlers[ i ];
5418
5419 // Don't conflict with Object.prototype properties (#13203)
5420 sel = handleObj.selector + " ";
5421
5422 if ( matchedSelectors[ sel ] === undefined ) {
5423 matchedSelectors[ sel ] = handleObj.needsContext ?
5424 jQuery( sel, this ).index( cur ) > -1 :
5425 jQuery.find( sel, this, null, [ cur ] ).length;
5426 }
5427 if ( matchedSelectors[ sel ] ) {
5428 matchedHandlers.push( handleObj );
5429 }
5430 }
5431 if ( matchedHandlers.length ) {
5432 handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
5433 }
5434 }
5435 }
5436 }
5437
5438 // Add the remaining (directly-bound) handlers
5439 cur = this;
5440 if ( delegateCount < handlers.length ) {
5441 handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
5442 }
5443
5444 return handlerQueue;
5445 },
5446
5447 addProp: function( name, hook ) {
5448 Object.defineProperty( jQuery.Event.prototype, name, {
5449 enumerable: true,
5450 configurable: true,
5451
5452 get: isFunction( hook ) ?
5453 function() {
5454 if ( this.originalEvent ) {
5455 return hook( this.originalEvent );
5456 }
5457 } :
5458 function() {
5459 if ( this.originalEvent ) {
5460 return this.originalEvent[ name ];
5461 }
5462 },
5463
5464 set: function( value ) {
5465 Object.defineProperty( this, name, {
5466 enumerable: true,
5467 configurable: true,
5468 writable: true,
5469 value: value
5470 } );
5471 }
5472 } );
5473 },
5474
5475 fix: function( originalEvent ) {
5476 return originalEvent[ jQuery.expando ] ?
5477 originalEvent :
5478 new jQuery.Event( originalEvent );
5479 },
5480
5481 special: {
5482 load: {
5483
5484 // Prevent triggered image.load events from bubbling to window.load
5485 noBubble: true
5486 },
5487 focus: {
5488
5489 // Fire native event if possible so blur/focus sequence is correct
5490 trigger: function() {
5491 if ( this !== safeActiveElement() && this.focus ) {
5492 this.focus();
5493 return false;
5494 }
5495 },
5496 delegateType: "focusin"
5497 },
5498 blur: {
5499 trigger: function() {
5500 if ( this === safeActiveElement() && this.blur ) {
5501 this.blur();
5502 return false;
5503 }
5504 },
5505 delegateType: "focusout"
5506 },
5507 click: {
5508
5509 // For checkbox, fire native event so checked state will be right
5510 trigger: function() {
5511 if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
5512 this.click();
5513 return false;
5514 }
5515 },
5516
5517 // For cross-browser consistency, don't fire native .click() on links
5518 _default: function( event ) {
5519 return nodeName( event.target, "a" );
5520 }
5521 },
5522
5523 beforeunload: {
5524 postDispatch: function( event ) {
5525
5526 // Support: Firefox 20+
5527 // Firefox doesn't alert if the returnValue field is not set.
5528 if ( event.result !== undefined && event.originalEvent ) {
5529 event.originalEvent.returnValue = event.result;
5530 }
5531 }
5532 }
5533 }
5534};
5535
5536jQuery.removeEvent = function( elem, type, handle ) {
5537
5538 // This "if" is needed for plain objects
5539 if ( elem.removeEventListener ) {
5540 elem.removeEventListener( type, handle );
5541 }
5542};
5543
5544jQuery.Event = function( src, props ) {
5545
5546 // Allow instantiation without the 'new' keyword
5547 if ( !( this instanceof jQuery.Event ) ) {
5548 return new jQuery.Event( src, props );
5549 }
5550
5551 // Event object
5552 if ( src && src.type ) {
5553 this.originalEvent = src;
5554 this.type = src.type;
5555
5556 // Events bubbling up the document may have been marked as prevented
5557 // by a handler lower down the tree; reflect the correct value.
5558 this.isDefaultPrevented = src.defaultPrevented ||
5559 src.defaultPrevented === undefined &&
5560
5561 // Support: Android <=2.3 only
5562 src.returnValue === false ?
5563 returnTrue :
5564 returnFalse;
5565
5566 // Create target properties
5567 // Support: Safari <=6 - 7 only
5568 // Target should not be a text node (#504, #13143)
5569 this.target = ( src.target && src.target.nodeType === 3 ) ?
5570 src.target.parentNode :
5571 src.target;
5572
5573 this.currentTarget = src.currentTarget;
5574 this.relatedTarget = src.relatedTarget;
5575
5576 // Event type
5577 } else {
5578 this.type = src;
5579 }
5580
5581 // Put explicitly provided properties onto the event object
5582 if ( props ) {
5583 jQuery.extend( this, props );
5584 }
5585
5586 // Create a timestamp if incoming event doesn't have one
5587 this.timeStamp = src && src.timeStamp || Date.now();
5588
5589 // Mark it as fixed
5590 this[ jQuery.expando ] = true;
5591};
5592
5593// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
5594// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
5595jQuery.Event.prototype = {
5596 constructor: jQuery.Event,
5597 isDefaultPrevented: returnFalse,
5598 isPropagationStopped: returnFalse,
5599 isImmediatePropagationStopped: returnFalse,
5600 isSimulated: false,
5601
5602 preventDefault: function() {
5603 var e = this.originalEvent;
5604
5605 this.isDefaultPrevented = returnTrue;
5606
5607 if ( e && !this.isSimulated ) {
5608 e.preventDefault();
5609 }
5610 },
5611 stopPropagation: function() {
5612 var e = this.originalEvent;
5613
5614 this.isPropagationStopped = returnTrue;
5615
5616 if ( e && !this.isSimulated ) {
5617 e.stopPropagation();
5618 }
5619 },
5620 stopImmediatePropagation: function() {
5621 var e = this.originalEvent;
5622
5623 this.isImmediatePropagationStopped = returnTrue;
5624
5625 if ( e && !this.isSimulated ) {
5626 e.stopImmediatePropagation();
5627 }
5628
5629 this.stopPropagation();
5630 }
5631};
5632
5633// Includes all common event props including KeyEvent and MouseEvent specific props
5634jQuery.each( {
5635 altKey: true,
5636 bubbles: true,
5637 cancelable: true,
5638 changedTouches: true,
5639 ctrlKey: true,
5640 detail: true,
5641 eventPhase: true,
5642 metaKey: true,
5643 pageX: true,
5644 pageY: true,
5645 shiftKey: true,
5646 view: true,
5647 "char": true,
5648 charCode: true,
5649 key: true,
5650 keyCode: true,
5651 button: true,
5652 buttons: true,
5653 clientX: true,
5654 clientY: true,
5655 offsetX: true,
5656 offsetY: true,
5657 pointerId: true,
5658 pointerType: true,
5659 screenX: true,
5660 screenY: true,
5661 targetTouches: true,
5662 toElement: true,
5663 touches: true,
5664
5665 which: function( event ) {
5666 var button = event.button;
5667
5668 // Add which for key events
5669 if ( event.which == null && rkeyEvent.test( event.type ) ) {
5670 return event.charCode != null ? event.charCode : event.keyCode;
5671 }
5672
5673 // Add which for click: 1 === left; 2 === middle; 3 === right
5674 if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
5675 if ( button & 1 ) {
5676 return 1;
5677 }
5678
5679 if ( button & 2 ) {
5680 return 3;
5681 }
5682
5683 if ( button & 4 ) {
5684 return 2;
5685 }
5686
5687 return 0;
5688 }
5689
5690 return event.which;
5691 }
5692}, jQuery.event.addProp );
5693
5694// Create mouseenter/leave events using mouseover/out and event-time checks
5695// so that event delegation works in jQuery.
5696// Do the same for pointerenter/pointerleave and pointerover/pointerout
5697//
5698// Support: Safari 7 only
5699// Safari sends mouseenter too often; see:
5700// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
5701// for the description of the bug (it existed in older Chrome versions as well).
5702jQuery.each( {
5703 mouseenter: "mouseover",
5704 mouseleave: "mouseout",
5705 pointerenter: "pointerover",
5706 pointerleave: "pointerout"
5707}, function( orig, fix ) {
5708 jQuery.event.special[ orig ] = {
5709 delegateType: fix,
5710 bindType: fix,
5711
5712 handle: function( event ) {
5713 var ret,
5714 target = this,
5715 related = event.relatedTarget,
5716 handleObj = event.handleObj;
5717
5718 // For mouseenter/leave call the handler if related is outside the target.
5719 // NB: No relatedTarget if the mouse left/entered the browser window
5720 if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
5721 event.type = handleObj.origType;
5722 ret = handleObj.handler.apply( this, arguments );
5723 event.type = fix;
5724 }
5725 return ret;
5726 }
5727 };
5728} );
5729
5730jQuery.fn.extend( {
5731
5732 on: function( types, selector, data, fn ) {
5733 return on( this, types, selector, data, fn );
5734 },
5735 one: function( types, selector, data, fn ) {
5736 return on( this, types, selector, data, fn, 1 );
5737 },
5738 off: function( types, selector, fn ) {
5739 var handleObj, type;
5740 if ( types && types.preventDefault && types.handleObj ) {
5741
5742 // ( event ) dispatched jQuery.Event
5743 handleObj = types.handleObj;
5744 jQuery( types.delegateTarget ).off(
5745 handleObj.namespace ?
5746 handleObj.origType + "." + handleObj.namespace :
5747 handleObj.origType,
5748 handleObj.selector,
5749 handleObj.handler
5750 );
5751 return this;
5752 }
5753 if ( typeof types === "object" ) {
5754
5755 // ( types-object [, selector] )
5756 for ( type in types ) {
5757 this.off( type, selector, types[ type ] );
5758 }
5759 return this;
5760 }
5761 if ( selector === false || typeof selector === "function" ) {
5762
5763 // ( types [, fn] )
5764 fn = selector;
5765 selector = undefined;
5766 }
5767 if ( fn === false ) {
5768 fn = returnFalse;
5769 }
5770 return this.each( function() {
5771 jQuery.event.remove( this, types, fn, selector );
5772 } );
5773 }
5774} );
5775
5776
5777var
5778
5779 /* eslint-disable max-len */
5780
5781 // See https://github.com/eslint/eslint/issues/3229
5782 rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
5783
5784 /* eslint-enable */
5785
5786 // Support: IE <=10 - 11, Edge 12 - 13 only
5787 // In IE/Edge using regex groups here causes severe slowdowns.
5788 // See https://connect.microsoft.com/IE/feedback/details/1736512/
5789 rnoInnerhtml = /<script|<style|<link/i,
5790
5791 // checked="checked" or checked
5792 rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
5793 rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
5794
5795// Prefer a tbody over its parent table for containing new rows
5796function manipulationTarget( elem, content ) {
5797 if ( nodeName( elem, "table" ) &&
5798 nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
5799
5800 return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
5801 }
5802
5803 return elem;
5804}
5805
5806// Replace/restore the type attribute of script elements for safe DOM manipulation
5807function disableScript( elem ) {
5808 elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
5809 return elem;
5810}
5811function restoreScript( elem ) {
5812 if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
5813 elem.type = elem.type.slice( 5 );
5814 } else {
5815 elem.removeAttribute( "type" );
5816 }
5817
5818 return elem;
5819}
5820
5821function cloneCopyEvent( src, dest ) {
5822 var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
5823
5824 if ( dest.nodeType !== 1 ) {
5825 return;
5826 }
5827
5828 // 1. Copy private data: events, handlers, etc.
5829 if ( dataPriv.hasData( src ) ) {
5830 pdataOld = dataPriv.access( src );
5831 pdataCur = dataPriv.set( dest, pdataOld );
5832 events = pdataOld.events;
5833
5834 if ( events ) {
5835 delete pdataCur.handle;
5836 pdataCur.events = {};
5837
5838 for ( type in events ) {
5839 for ( i = 0, l = events[ type ].length; i < l; i++ ) {
5840 jQuery.event.add( dest, type, events[ type ][ i ] );
5841 }
5842 }
5843 }
5844 }
5845
5846 // 2. Copy user data
5847 if ( dataUser.hasData( src ) ) {
5848 udataOld = dataUser.access( src );
5849 udataCur = jQuery.extend( {}, udataOld );
5850
5851 dataUser.set( dest, udataCur );
5852 }
5853}
5854
5855// Fix IE bugs, see support tests
5856function fixInput( src, dest ) {
5857 var nodeName = dest.nodeName.toLowerCase();
5858
5859 // Fails to persist the checked state of a cloned checkbox or radio button.
5860 if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
5861 dest.checked = src.checked;
5862
5863 // Fails to return the selected option to the default selected state when cloning options
5864 } else if ( nodeName === "input" || nodeName === "textarea" ) {
5865 dest.defaultValue = src.defaultValue;
5866 }
5867}
5868
5869function domManip( collection, args, callback, ignored ) {
5870
5871 // Flatten any nested arrays
5872 args = concat.apply( [], args );
5873
5874 var fragment, first, scripts, hasScripts, node, doc,
5875 i = 0,
5876 l = collection.length,
5877 iNoClone = l - 1,
5878 value = args[ 0 ],
5879 valueIsFunction = isFunction( value );
5880
5881 // We can't cloneNode fragments that contain checked, in WebKit
5882 if ( valueIsFunction ||
5883 ( l > 1 && typeof value === "string" &&
5884 !support.checkClone && rchecked.test( value ) ) ) {
5885 return collection.each( function( index ) {
5886 var self = collection.eq( index );
5887 if ( valueIsFunction ) {
5888 args[ 0 ] = value.call( this, index, self.html() );
5889 }
5890 domManip( self, args, callback, ignored );
5891 } );
5892 }
5893
5894 if ( l ) {
5895 fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
5896 first = fragment.firstChild;
5897
5898 if ( fragment.childNodes.length === 1 ) {
5899 fragment = first;
5900 }
5901
5902 // Require either new content or an interest in ignored elements to invoke the callback
5903 if ( first || ignored ) {
5904 scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
5905 hasScripts = scripts.length;
5906
5907 // Use the original fragment for the last item
5908 // instead of the first because it can end up
5909 // being emptied incorrectly in certain situations (#8070).
5910 for ( ; i < l; i++ ) {
5911 node = fragment;
5912
5913 if ( i !== iNoClone ) {
5914 node = jQuery.clone( node, true, true );
5915
5916 // Keep references to cloned scripts for later restoration
5917 if ( hasScripts ) {
5918
5919 // Support: Android <=4.0 only, PhantomJS 1 only
5920 // push.apply(_, arraylike) throws on ancient WebKit
5921 jQuery.merge( scripts, getAll( node, "script" ) );
5922 }
5923 }
5924
5925 callback.call( collection[ i ], node, i );
5926 }
5927
5928 if ( hasScripts ) {
5929 doc = scripts[ scripts.length - 1 ].ownerDocument;
5930
5931 // Reenable scripts
5932 jQuery.map( scripts, restoreScript );
5933
5934 // Evaluate executable scripts on first document insertion
5935 for ( i = 0; i < hasScripts; i++ ) {
5936 node = scripts[ i ];
5937 if ( rscriptType.test( node.type || "" ) &&
5938 !dataPriv.access( node, "globalEval" ) &&
5939 jQuery.contains( doc, node ) ) {
5940
5941 if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) {
5942
5943 // Optional AJAX dependency, but won't run scripts if not present
5944 if ( jQuery._evalUrl ) {
5945 jQuery._evalUrl( node.src );
5946 }
5947 } else {
5948 DOMEval( node.textContent.replace( rcleanScript, "" ), doc, node );
5949 }
5950 }
5951 }
5952 }
5953 }
5954 }
5955
5956 return collection;
5957}
5958
5959function remove( elem, selector, keepData ) {
5960 var node,
5961 nodes = selector ? jQuery.filter( selector, elem ) : elem,
5962 i = 0;
5963
5964 for ( ; ( node = nodes[ i ] ) != null; i++ ) {
5965 if ( !keepData && node.nodeType === 1 ) {
5966 jQuery.cleanData( getAll( node ) );
5967 }
5968
5969 if ( node.parentNode ) {
5970 if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
5971 setGlobalEval( getAll( node, "script" ) );
5972 }
5973 node.parentNode.removeChild( node );
5974 }
5975 }
5976
5977 return elem;
5978}
5979
5980jQuery.extend( {
5981 htmlPrefilter: function( html ) {
5982 return html.replace( rxhtmlTag, "<$1></$2>" );
5983 },
5984
5985 clone: function( elem, dataAndEvents, deepDataAndEvents ) {
5986 var i, l, srcElements, destElements,
5987 clone = elem.cloneNode( true ),
5988 inPage = jQuery.contains( elem.ownerDocument, elem );
5989
5990 // Fix IE cloning issues
5991 if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
5992 !jQuery.isXMLDoc( elem ) ) {
5993
5994 // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
5995 destElements = getAll( clone );
5996 srcElements = getAll( elem );
5997
5998 for ( i = 0, l = srcElements.length; i < l; i++ ) {
5999 fixInput( srcElements[ i ], destElements[ i ] );
6000 }
6001 }
6002
6003 // Copy the events from the original to the clone
6004 if ( dataAndEvents ) {
6005 if ( deepDataAndEvents ) {
6006 srcElements = srcElements || getAll( elem );
6007 destElements = destElements || getAll( clone );
6008
6009 for ( i = 0, l = srcElements.length; i < l; i++ ) {
6010 cloneCopyEvent( srcElements[ i ], destElements[ i ] );
6011 }
6012 } else {
6013 cloneCopyEvent( elem, clone );
6014 }
6015 }
6016
6017 // Preserve script evaluation history
6018 destElements = getAll( clone, "script" );
6019 if ( destElements.length > 0 ) {
6020 setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
6021 }
6022
6023 // Return the cloned set
6024 return clone;
6025 },
6026
6027 cleanData: function( elems ) {
6028 var data, elem, type,
6029 special = jQuery.event.special,
6030 i = 0;
6031
6032 for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
6033 if ( acceptData( elem ) ) {
6034 if ( ( data = elem[ dataPriv.expando ] ) ) {
6035 if ( data.events ) {
6036 for ( type in data.events ) {
6037 if ( special[ type ] ) {
6038 jQuery.event.remove( elem, type );
6039
6040 // This is a shortcut to avoid jQuery.event.remove's overhead
6041 } else {
6042 jQuery.removeEvent( elem, type, data.handle );
6043 }
6044 }
6045 }
6046
6047 // Support: Chrome <=35 - 45+
6048 // Assign undefined instead of using delete, see Data#remove
6049 elem[ dataPriv.expando ] = undefined;
6050 }
6051 if ( elem[ dataUser.expando ] ) {
6052
6053 // Support: Chrome <=35 - 45+
6054 // Assign undefined instead of using delete, see Data#remove
6055 elem[ dataUser.expando ] = undefined;
6056 }
6057 }
6058 }
6059 }
6060} );
6061
6062jQuery.fn.extend( {
6063 detach: function( selector ) {
6064 return remove( this, selector, true );
6065 },
6066
6067 remove: function( selector ) {
6068 return remove( this, selector );
6069 },
6070
6071 text: function( value ) {
6072 return access( this, function( value ) {
6073 return value === undefined ?
6074 jQuery.text( this ) :
6075 this.empty().each( function() {
6076 if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
6077 this.textContent = value;
6078 }
6079 } );
6080 }, null, value, arguments.length );
6081 },
6082
6083 append: function() {
6084 return domManip( this, arguments, function( elem ) {
6085 if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
6086 var target = manipulationTarget( this, elem );
6087 target.appendChild( elem );
6088 }
6089 } );
6090 },
6091
6092 prepend: function() {
6093 return domManip( this, arguments, function( elem ) {
6094 if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
6095 var target = manipulationTarget( this, elem );
6096 target.insertBefore( elem, target.firstChild );
6097 }
6098 } );
6099 },
6100
6101 before: function() {
6102 return domManip( this, arguments, function( elem ) {
6103 if ( this.parentNode ) {
6104 this.parentNode.insertBefore( elem, this );
6105 }
6106 } );
6107 },
6108
6109 after: function() {
6110 return domManip( this, arguments, function( elem ) {
6111 if ( this.parentNode ) {
6112 this.parentNode.insertBefore( elem, this.nextSibling );
6113 }
6114 } );
6115 },
6116
6117 empty: function() {
6118 var elem,
6119 i = 0;
6120
6121 for ( ; ( elem = this[ i ] ) != null; i++ ) {
6122 if ( elem.nodeType === 1 ) {
6123
6124 // Prevent memory leaks
6125 jQuery.cleanData( getAll( elem, false ) );
6126
6127 // Remove any remaining nodes
6128 elem.textContent = "";
6129 }
6130 }
6131
6132 return this;
6133 },
6134
6135 clone: function( dataAndEvents, deepDataAndEvents ) {
6136 dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
6137 deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
6138
6139 return this.map( function() {
6140 return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
6141 } );
6142 },
6143
6144 html: function( value ) {
6145 return access( this, function( value ) {
6146 var elem = this[ 0 ] || {},
6147 i = 0,
6148 l = this.length;
6149
6150 if ( value === undefined && elem.nodeType === 1 ) {
6151 return elem.innerHTML;
6152 }
6153
6154 // See if we can take a shortcut and just use innerHTML
6155 if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
6156 !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
6157
6158 value = jQuery.htmlPrefilter( value );
6159
6160 try {
6161 for ( ; i < l; i++ ) {
6162 elem = this[ i ] || {};
6163
6164 // Remove element nodes and prevent memory leaks
6165 if ( elem.nodeType === 1 ) {
6166 jQuery.cleanData( getAll( elem, false ) );
6167 elem.innerHTML = value;
6168 }
6169 }
6170
6171 elem = 0;
6172
6173 // If using innerHTML throws an exception, use the fallback method
6174 } catch ( e ) {}
6175 }
6176
6177 if ( elem ) {
6178 this.empty().append( value );
6179 }
6180 }, null, value, arguments.length );
6181 },
6182
6183 replaceWith: function() {
6184 var ignored = [];
6185
6186 // Make the changes, replacing each non-ignored context element with the new content
6187 return domManip( this, arguments, function( elem ) {
6188 var parent = this.parentNode;
6189
6190 if ( jQuery.inArray( this, ignored ) < 0 ) {
6191 jQuery.cleanData( getAll( this ) );
6192 if ( parent ) {
6193 parent.replaceChild( elem, this );
6194 }
6195 }
6196
6197 // Force callback invocation
6198 }, ignored );
6199 }
6200} );
6201
6202jQuery.each( {
6203 appendTo: "append",
6204 prependTo: "prepend",
6205 insertBefore: "before",
6206 insertAfter: "after",
6207 replaceAll: "replaceWith"
6208}, function( name, original ) {
6209 jQuery.fn[ name ] = function( selector ) {
6210 var elems,
6211 ret = [],
6212 insert = jQuery( selector ),
6213 last = insert.length - 1,
6214 i = 0;
6215
6216 for ( ; i <= last; i++ ) {
6217 elems = i === last ? this : this.clone( true );
6218 jQuery( insert[ i ] )[ original ]( elems );
6219
6220 // Support: Android <=4.0 only, PhantomJS 1 only
6221 // .get() because push.apply(_, arraylike) throws on ancient WebKit
6222 push.apply( ret, elems.get() );
6223 }
6224
6225 return this.pushStack( ret );
6226 };
6227} );
6228var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
6229
6230var getStyles = function( elem ) {
6231
6232 // Support: IE <=11 only, Firefox <=30 (#15098, #14150)
6233 // IE throws on elements created in popups
6234 // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
6235 var view = elem.ownerDocument.defaultView;
6236
6237 if ( !view || !view.opener ) {
6238 view = window;
6239 }
6240
6241 return view.getComputedStyle( elem );
6242 };
6243
6244var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
6245
6246
6247
6248( function() {
6249
6250 // Executing both pixelPosition & boxSizingReliable tests require only one layout
6251 // so they're executed at the same time to save the second computation.
6252 function computeStyleTests() {
6253
6254 // This is a singleton, we need to execute it only once
6255 if ( !div ) {
6256 return;
6257 }
6258
6259 container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
6260 "margin-top:1px;padding:0;border:0";
6261 div.style.cssText =
6262 "position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
6263 "margin:auto;border:1px;padding:1px;" +
6264 "width:60%;top:1%";
6265 documentElement.appendChild( container ).appendChild( div );
6266
6267 var divStyle = window.getComputedStyle( div );
6268 pixelPositionVal = divStyle.top !== "1%";
6269
6270 // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
6271 reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
6272
6273 // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
6274 // Some styles come back with percentage values, even though they shouldn't
6275 div.style.right = "60%";
6276 pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
6277
6278 // Support: IE 9 - 11 only
6279 // Detect misreporting of content dimensions for box-sizing:border-box elements
6280 boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
6281
6282 // Support: IE 9 only
6283 // Detect overflow:scroll screwiness (gh-3699)
6284 div.style.position = "absolute";
6285 scrollboxSizeVal = div.offsetWidth === 36 || "absolute";
6286
6287 documentElement.removeChild( container );
6288
6289 // Nullify the div so it wouldn't be stored in the memory and
6290 // it will also be a sign that checks already performed
6291 div = null;
6292 }
6293
6294 function roundPixelMeasures( measure ) {
6295 return Math.round( parseFloat( measure ) );
6296 }
6297
6298 var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
6299 reliableMarginLeftVal,
6300 container = document.createElement( "div" ),
6301 div = document.createElement( "div" );
6302
6303 // Finish early in limited (non-browser) environments
6304 if ( !div.style ) {
6305 return;
6306 }
6307
6308 // Support: IE <=9 - 11 only
6309 // Style of cloned element affects source element cloned (#8908)
6310 div.style.backgroundClip = "content-box";
6311 div.cloneNode( true ).style.backgroundClip = "";
6312 support.clearCloneStyle = div.style.backgroundClip === "content-box";
6313
6314 jQuery.extend( support, {
6315 boxSizingReliable: function() {
6316 computeStyleTests();
6317 return boxSizingReliableVal;
6318 },
6319 pixelBoxStyles: function() {
6320 computeStyleTests();
6321 return pixelBoxStylesVal;
6322 },
6323 pixelPosition: function() {
6324 computeStyleTests();
6325 return pixelPositionVal;
6326 },
6327 reliableMarginLeft: function() {
6328 computeStyleTests();
6329 return reliableMarginLeftVal;
6330 },
6331 scrollboxSize: function() {
6332 computeStyleTests();
6333 return scrollboxSizeVal;
6334 }
6335 } );
6336} )();
6337
6338
6339function curCSS( elem, name, computed ) {
6340 var width, minWidth, maxWidth, ret,
6341
6342 // Support: Firefox 51+
6343 // Retrieving style before computed somehow
6344 // fixes an issue with getting wrong values
6345 // on detached elements
6346 style = elem.style;
6347
6348 computed = computed || getStyles( elem );
6349
6350 // getPropertyValue is needed for:
6351 // .css('filter') (IE 9 only, #12537)
6352 // .css('--customProperty) (#3144)
6353 if ( computed ) {
6354 ret = computed.getPropertyValue( name ) || computed[ name ];
6355
6356 if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
6357 ret = jQuery.style( elem, name );
6358 }
6359
6360 // A tribute to the "awesome hack by Dean Edwards"
6361 // Android Browser returns percentage for some values,
6362 // but width seems to be reliably pixels.
6363 // This is against the CSSOM draft spec:
6364 // https://drafts.csswg.org/cssom/#resolved-values
6365 if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
6366
6367 // Remember the original values
6368 width = style.width;
6369 minWidth = style.minWidth;
6370 maxWidth = style.maxWidth;
6371
6372 // Put in the new values to get a computed value out
6373 style.minWidth = style.maxWidth = style.width = ret;
6374 ret = computed.width;
6375
6376 // Revert the changed values
6377 style.width = width;
6378 style.minWidth = minWidth;
6379 style.maxWidth = maxWidth;
6380 }
6381 }
6382
6383 return ret !== undefined ?
6384
6385 // Support: IE <=9 - 11 only
6386 // IE returns zIndex value as an integer.
6387 ret + "" :
6388 ret;
6389}
6390
6391
6392function addGetHookIf( conditionFn, hookFn ) {
6393
6394 // Define the hook, we'll check on the first run if it's really needed.
6395 return {
6396 get: function() {
6397 if ( conditionFn() ) {
6398
6399 // Hook not needed (or it's not possible to use it due
6400 // to missing dependency), remove it.
6401 delete this.get;
6402 return;
6403 }
6404
6405 // Hook needed; redefine it so that the support test is not executed again.
6406 return ( this.get = hookFn ).apply( this, arguments );
6407 }
6408 };
6409}
6410
6411
6412var
6413
6414 // Swappable if display is none or starts with table
6415 // except "table", "table-cell", or "table-caption"
6416 // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
6417 rdisplayswap = /^(none|table(?!-c[ea]).+)/,
6418 rcustomProp = /^--/,
6419 cssShow = { position: "absolute", visibility: "hidden", display: "block" },
6420 cssNormalTransform = {
6421 letterSpacing: "0",
6422 fontWeight: "400"
6423 },
6424
6425 cssPrefixes = [ "Webkit", "Moz", "ms" ],
6426 emptyStyle = document.createElement( "div" ).style;
6427
6428// Return a css property mapped to a potentially vendor prefixed property
6429function vendorPropName( name ) {
6430
6431 // Shortcut for names that are not vendor prefixed
6432 if ( name in emptyStyle ) {
6433 return name;
6434 }
6435
6436 // Check for vendor prefixed names
6437 var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
6438 i = cssPrefixes.length;
6439
6440 while ( i-- ) {
6441 name = cssPrefixes[ i ] + capName;
6442 if ( name in emptyStyle ) {
6443 return name;
6444 }
6445 }
6446}
6447
6448// Return a property mapped along what jQuery.cssProps suggests or to
6449// a vendor prefixed property.
6450function finalPropName( name ) {
6451 var ret = jQuery.cssProps[ name ];
6452 if ( !ret ) {
6453 ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name;
6454 }
6455 return ret;
6456}
6457
6458function setPositiveNumber( elem, value, subtract ) {
6459
6460 // Any relative (+/-) values have already been
6461 // normalized at this point
6462 var matches = rcssNum.exec( value );
6463 return matches ?
6464
6465 // Guard against undefined "subtract", e.g., when used as in cssHooks
6466 Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
6467 value;
6468}
6469
6470function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
6471 var i = dimension === "width" ? 1 : 0,
6472 extra = 0,
6473 delta = 0;
6474
6475 // Adjustment may not be necessary
6476 if ( box === ( isBorderBox ? "border" : "content" ) ) {
6477 return 0;
6478 }
6479
6480 for ( ; i < 4; i += 2 ) {
6481
6482 // Both box models exclude margin
6483 if ( box === "margin" ) {
6484 delta += jQuery.css( elem, box + cssExpand[ i ], true, styles );
6485 }
6486
6487 // If we get here with a content-box, we're seeking "padding" or "border" or "margin"
6488 if ( !isBorderBox ) {
6489
6490 // Add padding
6491 delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
6492
6493 // For "border" or "margin", add border
6494 if ( box !== "padding" ) {
6495 delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6496
6497 // But still keep track of it otherwise
6498 } else {
6499 extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6500 }
6501
6502 // If we get here with a border-box (content + padding + border), we're seeking "content" or
6503 // "padding" or "margin"
6504 } else {
6505
6506 // For "content", subtract padding
6507 if ( box === "content" ) {
6508 delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
6509 }
6510
6511 // For "content" or "padding", subtract border
6512 if ( box !== "margin" ) {
6513 delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6514 }
6515 }
6516 }
6517
6518 // Account for positive content-box scroll gutter when requested by providing computedVal
6519 if ( !isBorderBox && computedVal >= 0 ) {
6520
6521 // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
6522 // Assuming integer scroll gutter, subtract the rest and round down
6523 delta += Math.max( 0, Math.ceil(
6524 elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
6525 computedVal -
6526 delta -
6527 extra -
6528 0.5
6529 ) );
6530 }
6531
6532 return delta;
6533}
6534
6535function getWidthOrHeight( elem, dimension, extra ) {
6536
6537 // Start with computed style
6538 var styles = getStyles( elem ),
6539 val = curCSS( elem, dimension, styles ),
6540 isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
6541 valueIsBorderBox = isBorderBox;
6542
6543 // Support: Firefox <=54
6544 // Return a confounding non-pixel value or feign ignorance, as appropriate.
6545 if ( rnumnonpx.test( val ) ) {
6546 if ( !extra ) {
6547 return val;
6548 }
6549 val = "auto";
6550 }
6551
6552 // Check for style in case a browser which returns unreliable values
6553 // for getComputedStyle silently falls back to the reliable elem.style
6554 valueIsBorderBox = valueIsBorderBox &&
6555 ( support.boxSizingReliable() || val === elem.style[ dimension ] );
6556
6557 // Fall back to offsetWidth/offsetHeight when value is "auto"
6558 // This happens for inline elements with no explicit setting (gh-3571)
6559 // Support: Android <=4.1 - 4.3 only
6560 // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
6561 if ( val === "auto" ||
6562 !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) {
6563
6564 val = elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ];
6565
6566 // offsetWidth/offsetHeight provide border-box values
6567 valueIsBorderBox = true;
6568 }
6569
6570 // Normalize "" and auto
6571 val = parseFloat( val ) || 0;
6572
6573 // Adjust for the element's box model
6574 return ( val +
6575 boxModelAdjustment(
6576 elem,
6577 dimension,
6578 extra || ( isBorderBox ? "border" : "content" ),
6579 valueIsBorderBox,
6580 styles,
6581
6582 // Provide the current computed size to request scroll gutter calculation (gh-3589)
6583 val
6584 )
6585 ) + "px";
6586}
6587
6588jQuery.extend( {
6589
6590 // Add in style property hooks for overriding the default
6591 // behavior of getting and setting a style property
6592 cssHooks: {
6593 opacity: {
6594 get: function( elem, computed ) {
6595 if ( computed ) {
6596
6597 // We should always get a number back from opacity
6598 var ret = curCSS( elem, "opacity" );
6599 return ret === "" ? "1" : ret;
6600 }
6601 }
6602 }
6603 },
6604
6605 // Don't automatically add "px" to these possibly-unitless properties
6606 cssNumber: {
6607 "animationIterationCount": true,
6608 "columnCount": true,
6609 "fillOpacity": true,
6610 "flexGrow": true,
6611 "flexShrink": true,
6612 "fontWeight": true,
6613 "lineHeight": true,
6614 "opacity": true,
6615 "order": true,
6616 "orphans": true,
6617 "widows": true,
6618 "zIndex": true,
6619 "zoom": true
6620 },
6621
6622 // Add in properties whose names you wish to fix before
6623 // setting or getting the value
6624 cssProps: {},
6625
6626 // Get and set the style property on a DOM Node
6627 style: function( elem, name, value, extra ) {
6628
6629 // Don't set styles on text and comment nodes
6630 if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
6631 return;
6632 }
6633
6634 // Make sure that we're working with the right name
6635 var ret, type, hooks,
6636 origName = camelCase( name ),
6637 isCustomProp = rcustomProp.test( name ),
6638 style = elem.style;
6639
6640 // Make sure that we're working with the right name. We don't
6641 // want to query the value if it is a CSS custom property
6642 // since they are user-defined.
6643 if ( !isCustomProp ) {
6644 name = finalPropName( origName );
6645 }
6646
6647 // Gets hook for the prefixed version, then unprefixed version
6648 hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6649
6650 // Check if we're setting a value
6651 if ( value !== undefined ) {
6652 type = typeof value;
6653
6654 // Convert "+=" or "-=" to relative numbers (#7345)
6655 if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
6656 value = adjustCSS( elem, name, ret );
6657
6658 // Fixes bug #9237
6659 type = "number";
6660 }
6661
6662 // Make sure that null and NaN values aren't set (#7116)
6663 if ( value == null || value !== value ) {
6664 return;
6665 }
6666
6667 // If a number was passed in, add the unit (except for certain CSS properties)
6668 if ( type === "number" ) {
6669 value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
6670 }
6671
6672 // background-* props affect original clone's values
6673 if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
6674 style[ name ] = "inherit";
6675 }
6676
6677 // If a hook was provided, use that value, otherwise just set the specified value
6678 if ( !hooks || !( "set" in hooks ) ||
6679 ( value = hooks.set( elem, value, extra ) ) !== undefined ) {
6680
6681 if ( isCustomProp ) {
6682 style.setProperty( name, value );
6683 } else {
6684 style[ name ] = value;
6685 }
6686 }
6687
6688 } else {
6689
6690 // If a hook was provided get the non-computed value from there
6691 if ( hooks && "get" in hooks &&
6692 ( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
6693
6694 return ret;
6695 }
6696
6697 // Otherwise just get the value from the style object
6698 return style[ name ];
6699 }
6700 },
6701
6702 css: function( elem, name, extra, styles ) {
6703 var val, num, hooks,
6704 origName = camelCase( name ),
6705 isCustomProp = rcustomProp.test( name );
6706
6707 // Make sure that we're working with the right name. We don't
6708 // want to modify the value if it is a CSS custom property
6709 // since they are user-defined.
6710 if ( !isCustomProp ) {
6711 name = finalPropName( origName );
6712 }
6713
6714 // Try prefixed name followed by the unprefixed name
6715 hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6716
6717 // If a hook was provided get the computed value from there
6718 if ( hooks && "get" in hooks ) {
6719 val = hooks.get( elem, true, extra );
6720 }
6721
6722 // Otherwise, if a way to get the computed value exists, use that
6723 if ( val === undefined ) {
6724 val = curCSS( elem, name, styles );
6725 }
6726
6727 // Convert "normal" to computed value
6728 if ( val === "normal" && name in cssNormalTransform ) {
6729 val = cssNormalTransform[ name ];
6730 }
6731
6732 // Make numeric if forced or a qualifier was provided and val looks numeric
6733 if ( extra === "" || extra ) {
6734 num = parseFloat( val );
6735 return extra === true || isFinite( num ) ? num || 0 : val;
6736 }
6737
6738 return val;
6739 }
6740} );
6741
6742jQuery.each( [ "height", "width" ], function( i, dimension ) {
6743 jQuery.cssHooks[ dimension ] = {
6744 get: function( elem, computed, extra ) {
6745 if ( computed ) {
6746
6747 // Certain elements can have dimension info if we invisibly show them
6748 // but it must have a current display style that would benefit
6749 return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
6750
6751 // Support: Safari 8+
6752 // Table columns in Safari have non-zero offsetWidth & zero
6753 // getBoundingClientRect().width unless display is changed.
6754 // Support: IE <=11 only
6755 // Running getBoundingClientRect on a disconnected node
6756 // in IE throws an error.
6757 ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
6758 swap( elem, cssShow, function() {
6759 return getWidthOrHeight( elem, dimension, extra );
6760 } ) :
6761 getWidthOrHeight( elem, dimension, extra );
6762 }
6763 },
6764
6765 set: function( elem, value, extra ) {
6766 var matches,
6767 styles = getStyles( elem ),
6768 isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
6769 subtract = extra && boxModelAdjustment(
6770 elem,
6771 dimension,
6772 extra,
6773 isBorderBox,
6774 styles
6775 );
6776
6777 // Account for unreliable border-box dimensions by comparing offset* to computed and
6778 // faking a content-box to get border and padding (gh-3699)
6779 if ( isBorderBox && support.scrollboxSize() === styles.position ) {
6780 subtract -= Math.ceil(
6781 elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
6782 parseFloat( styles[ dimension ] ) -
6783 boxModelAdjustment( elem, dimension, "border", false, styles ) -
6784 0.5
6785 );
6786 }
6787
6788 // Convert to pixels if value adjustment is needed
6789 if ( subtract && ( matches = rcssNum.exec( value ) ) &&
6790 ( matches[ 3 ] || "px" ) !== "px" ) {
6791
6792 elem.style[ dimension ] = value;
6793 value = jQuery.css( elem, dimension );
6794 }
6795
6796 return setPositiveNumber( elem, value, subtract );
6797 }
6798 };
6799} );
6800
6801jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
6802 function( elem, computed ) {
6803 if ( computed ) {
6804 return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
6805 elem.getBoundingClientRect().left -
6806 swap( elem, { marginLeft: 0 }, function() {
6807 return elem.getBoundingClientRect().left;
6808 } )
6809 ) + "px";
6810 }
6811 }
6812);
6813
6814// These hooks are used by animate to expand properties
6815jQuery.each( {
6816 margin: "",
6817 padding: "",
6818 border: "Width"
6819}, function( prefix, suffix ) {
6820 jQuery.cssHooks[ prefix + suffix ] = {
6821 expand: function( value ) {
6822 var i = 0,
6823 expanded = {},
6824
6825 // Assumes a single number if not a string
6826 parts = typeof value === "string" ? value.split( " " ) : [ value ];
6827
6828 for ( ; i < 4; i++ ) {
6829 expanded[ prefix + cssExpand[ i ] + suffix ] =
6830 parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
6831 }
6832
6833 return expanded;
6834 }
6835 };
6836
6837 if ( prefix !== "margin" ) {
6838 jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
6839 }
6840} );
6841
6842jQuery.fn.extend( {
6843 css: function( name, value ) {
6844 return access( this, function( elem, name, value ) {
6845 var styles, len,
6846 map = {},
6847 i = 0;
6848
6849 if ( Array.isArray( name ) ) {
6850 styles = getStyles( elem );
6851 len = name.length;
6852
6853 for ( ; i < len; i++ ) {
6854 map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
6855 }
6856
6857 return map;
6858 }
6859
6860 return value !== undefined ?
6861 jQuery.style( elem, name, value ) :
6862 jQuery.css( elem, name );
6863 }, name, value, arguments.length > 1 );
6864 }
6865} );
6866
6867
6868function Tween( elem, options, prop, end, easing ) {
6869 return new Tween.prototype.init( elem, options, prop, end, easing );
6870}
6871jQuery.Tween = Tween;
6872
6873Tween.prototype = {
6874 constructor: Tween,
6875 init: function( elem, options, prop, end, easing, unit ) {
6876 this.elem = elem;
6877 this.prop = prop;
6878 this.easing = easing || jQuery.easing._default;
6879 this.options = options;
6880 this.start = this.now = this.cur();
6881 this.end = end;
6882 this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
6883 },
6884 cur: function() {
6885 var hooks = Tween.propHooks[ this.prop ];
6886
6887 return hooks && hooks.get ?
6888 hooks.get( this ) :
6889 Tween.propHooks._default.get( this );
6890 },
6891 run: function( percent ) {
6892 var eased,
6893 hooks = Tween.propHooks[ this.prop ];
6894
6895 if ( this.options.duration ) {
6896 this.pos = eased = jQuery.easing[ this.easing ](
6897 percent, this.options.duration * percent, 0, 1, this.options.duration
6898 );
6899 } else {
6900 this.pos = eased = percent;
6901 }
6902 this.now = ( this.end - this.start ) * eased + this.start;
6903
6904 if ( this.options.step ) {
6905 this.options.step.call( this.elem, this.now, this );
6906 }
6907
6908 if ( hooks && hooks.set ) {
6909 hooks.set( this );
6910 } else {
6911 Tween.propHooks._default.set( this );
6912 }
6913 return this;
6914 }
6915};
6916
6917Tween.prototype.init.prototype = Tween.prototype;
6918
6919Tween.propHooks = {
6920 _default: {
6921 get: function( tween ) {
6922 var result;
6923
6924 // Use a property on the element directly when it is not a DOM element,
6925 // or when there is no matching style property that exists.
6926 if ( tween.elem.nodeType !== 1 ||
6927 tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
6928 return tween.elem[ tween.prop ];
6929 }
6930
6931 // Passing an empty string as a 3rd parameter to .css will automatically
6932 // attempt a parseFloat and fallback to a string if the parse fails.
6933 // Simple values such as "10px" are parsed to Float;
6934 // complex values such as "rotate(1rad)" are returned as-is.
6935 result = jQuery.css( tween.elem, tween.prop, "" );
6936
6937 // Empty strings, null, undefined and "auto" are converted to 0.
6938 return !result || result === "auto" ? 0 : result;
6939 },
6940 set: function( tween ) {
6941
6942 // Use step hook for back compat.
6943 // Use cssHook if its there.
6944 // Use .style if available and use plain properties where available.
6945 if ( jQuery.fx.step[ tween.prop ] ) {
6946 jQuery.fx.step[ tween.prop ]( tween );
6947 } else if ( tween.elem.nodeType === 1 &&
6948 ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
6949 jQuery.cssHooks[ tween.prop ] ) ) {
6950 jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
6951 } else {
6952 tween.elem[ tween.prop ] = tween.now;
6953 }
6954 }
6955 }
6956};
6957
6958// Support: IE <=9 only
6959// Panic based approach to setting things on disconnected nodes
6960Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
6961 set: function( tween ) {
6962 if ( tween.elem.nodeType && tween.elem.parentNode ) {
6963 tween.elem[ tween.prop ] = tween.now;
6964 }
6965 }
6966};
6967
6968jQuery.easing = {
6969 linear: function( p ) {
6970 return p;
6971 },
6972 swing: function( p ) {
6973 return 0.5 - Math.cos( p * Math.PI ) / 2;
6974 },
6975 _default: "swing"
6976};
6977
6978jQuery.fx = Tween.prototype.init;
6979
6980// Back compat <1.8 extension point
6981jQuery.fx.step = {};
6982
6983
6984
6985
6986var
6987 fxNow, inProgress,
6988 rfxtypes = /^(?:toggle|show|hide)$/,
6989 rrun = /queueHooks$/;
6990
6991function schedule() {
6992 if ( inProgress ) {
6993 if ( document.hidden === false && window.requestAnimationFrame ) {
6994 window.requestAnimationFrame( schedule );
6995 } else {
6996 window.setTimeout( schedule, jQuery.fx.interval );
6997 }
6998
6999 jQuery.fx.tick();
7000 }
7001}
7002
7003// Animations created synchronously will run synchronously
7004function createFxNow() {
7005 window.setTimeout( function() {
7006 fxNow = undefined;
7007 } );
7008 return ( fxNow = Date.now() );
7009}
7010
7011// Generate parameters to create a standard animation
7012function genFx( type, includeWidth ) {
7013 var which,
7014 i = 0,
7015 attrs = { height: type };
7016
7017 // If we include width, step value is 1 to do all cssExpand values,
7018 // otherwise step value is 2 to skip over Left and Right
7019 includeWidth = includeWidth ? 1 : 0;
7020 for ( ; i < 4; i += 2 - includeWidth ) {
7021 which = cssExpand[ i ];
7022 attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
7023 }
7024
7025 if ( includeWidth ) {
7026 attrs.opacity = attrs.width = type;
7027 }
7028
7029 return attrs;
7030}
7031
7032function createTween( value, prop, animation ) {
7033 var tween,
7034 collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
7035 index = 0,
7036 length = collection.length;
7037 for ( ; index < length; index++ ) {
7038 if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
7039
7040 // We're done with this property
7041 return tween;
7042 }
7043 }
7044}
7045
7046function defaultPrefilter( elem, props, opts ) {
7047 var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
7048 isBox = "width" in props || "height" in props,
7049 anim = this,
7050 orig = {},
7051 style = elem.style,
7052 hidden = elem.nodeType && isHiddenWithinTree( elem ),
7053 dataShow = dataPriv.get( elem, "fxshow" );
7054
7055 // Queue-skipping animations hijack the fx hooks
7056 if ( !opts.queue ) {
7057 hooks = jQuery._queueHooks( elem, "fx" );
7058 if ( hooks.unqueued == null ) {
7059 hooks.unqueued = 0;
7060 oldfire = hooks.empty.fire;
7061 hooks.empty.fire = function() {
7062 if ( !hooks.unqueued ) {
7063 oldfire();
7064 }
7065 };
7066 }
7067 hooks.unqueued++;
7068
7069 anim.always( function() {
7070
7071 // Ensure the complete handler is called before this completes
7072 anim.always( function() {
7073 hooks.unqueued--;
7074 if ( !jQuery.queue( elem, "fx" ).length ) {
7075 hooks.empty.fire();
7076 }
7077 } );
7078 } );
7079 }
7080
7081 // Detect show/hide animations
7082 for ( prop in props ) {
7083 value = props[ prop ];
7084 if ( rfxtypes.test( value ) ) {
7085 delete props[ prop ];
7086 toggle = toggle || value === "toggle";
7087 if ( value === ( hidden ? "hide" : "show" ) ) {
7088
7089 // Pretend to be hidden if this is a "show" and
7090 // there is still data from a stopped show/hide
7091 if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
7092 hidden = true;
7093
7094 // Ignore all other no-op show/hide data
7095 } else {
7096 continue;
7097 }
7098 }
7099 orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
7100 }
7101 }
7102
7103 // Bail out if this is a no-op like .hide().hide()
7104 propTween = !jQuery.isEmptyObject( props );
7105 if ( !propTween && jQuery.isEmptyObject( orig ) ) {
7106 return;
7107 }
7108
7109 // Restrict "overflow" and "display" styles during box animations
7110 if ( isBox && elem.nodeType === 1 ) {
7111
7112 // Support: IE <=9 - 11, Edge 12 - 15
7113 // Record all 3 overflow attributes because IE does not infer the shorthand
7114 // from identically-valued overflowX and overflowY and Edge just mirrors
7115 // the overflowX value there.
7116 opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
7117
7118 // Identify a display type, preferring old show/hide data over the CSS cascade
7119 restoreDisplay = dataShow && dataShow.display;
7120 if ( restoreDisplay == null ) {
7121 restoreDisplay = dataPriv.get( elem, "display" );
7122 }
7123 display = jQuery.css( elem, "display" );
7124 if ( display === "none" ) {
7125 if ( restoreDisplay ) {
7126 display = restoreDisplay;
7127 } else {
7128
7129 // Get nonempty value(s) by temporarily forcing visibility
7130 showHide( [ elem ], true );
7131 restoreDisplay = elem.style.display || restoreDisplay;
7132 display = jQuery.css( elem, "display" );
7133 showHide( [ elem ] );
7134 }
7135 }
7136
7137 // Animate inline elements as inline-block
7138 if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
7139 if ( jQuery.css( elem, "float" ) === "none" ) {
7140
7141 // Restore the original display value at the end of pure show/hide animations
7142 if ( !propTween ) {
7143 anim.done( function() {
7144 style.display = restoreDisplay;
7145 } );
7146 if ( restoreDisplay == null ) {
7147 display = style.display;
7148 restoreDisplay = display === "none" ? "" : display;
7149 }
7150 }
7151 style.display = "inline-block";
7152 }
7153 }
7154 }
7155
7156 if ( opts.overflow ) {
7157 style.overflow = "hidden";
7158 anim.always( function() {
7159 style.overflow = opts.overflow[ 0 ];
7160 style.overflowX = opts.overflow[ 1 ];
7161 style.overflowY = opts.overflow[ 2 ];
7162 } );
7163 }
7164
7165 // Implement show/hide animations
7166 propTween = false;
7167 for ( prop in orig ) {
7168
7169 // General show/hide setup for this element animation
7170 if ( !propTween ) {
7171 if ( dataShow ) {
7172 if ( "hidden" in dataShow ) {
7173 hidden = dataShow.hidden;
7174 }
7175 } else {
7176 dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
7177 }
7178
7179 // Store hidden/visible for toggle so `.stop().toggle()` "reverses"
7180 if ( toggle ) {
7181 dataShow.hidden = !hidden;
7182 }
7183
7184 // Show elements before animating them
7185 if ( hidden ) {
7186 showHide( [ elem ], true );
7187 }
7188
7189 /* eslint-disable no-loop-func */
7190
7191 anim.done( function() {
7192
7193 /* eslint-enable no-loop-func */
7194
7195 // The final step of a "hide" animation is actually hiding the element
7196 if ( !hidden ) {
7197 showHide( [ elem ] );
7198 }
7199 dataPriv.remove( elem, "fxshow" );
7200 for ( prop in orig ) {
7201 jQuery.style( elem, prop, orig[ prop ] );
7202 }
7203 } );
7204 }
7205
7206 // Per-property setup
7207 propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
7208 if ( !( prop in dataShow ) ) {
7209 dataShow[ prop ] = propTween.start;
7210 if ( hidden ) {
7211 propTween.end = propTween.start;
7212 propTween.start = 0;
7213 }
7214 }
7215 }
7216}
7217
7218function propFilter( props, specialEasing ) {
7219 var index, name, easing, value, hooks;
7220
7221 // camelCase, specialEasing and expand cssHook pass
7222 for ( index in props ) {
7223 name = camelCase( index );
7224 easing = specialEasing[ name ];
7225 value = props[ index ];
7226 if ( Array.isArray( value ) ) {
7227 easing = value[ 1 ];
7228 value = props[ index ] = value[ 0 ];
7229 }
7230
7231 if ( index !== name ) {
7232 props[ name ] = value;
7233 delete props[ index ];
7234 }
7235
7236 hooks = jQuery.cssHooks[ name ];
7237 if ( hooks && "expand" in hooks ) {
7238 value = hooks.expand( value );
7239 delete props[ name ];
7240
7241 // Not quite $.extend, this won't overwrite existing keys.
7242 // Reusing 'index' because we have the correct "name"
7243 for ( index in value ) {
7244 if ( !( index in props ) ) {
7245 props[ index ] = value[ index ];
7246 specialEasing[ index ] = easing;
7247 }
7248 }
7249 } else {
7250 specialEasing[ name ] = easing;
7251 }
7252 }
7253}
7254
7255function Animation( elem, properties, options ) {
7256 var result,
7257 stopped,
7258 index = 0,
7259 length = Animation.prefilters.length,
7260 deferred = jQuery.Deferred().always( function() {
7261
7262 // Don't match elem in the :animated selector
7263 delete tick.elem;
7264 } ),
7265 tick = function() {
7266 if ( stopped ) {
7267 return false;
7268 }
7269 var currentTime = fxNow || createFxNow(),
7270 remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
7271
7272 // Support: Android 2.3 only
7273 // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
7274 temp = remaining / animation.duration || 0,
7275 percent = 1 - temp,
7276 index = 0,
7277 length = animation.tweens.length;
7278
7279 for ( ; index < length; index++ ) {
7280 animation.tweens[ index ].run( percent );
7281 }
7282
7283 deferred.notifyWith( elem, [ animation, percent, remaining ] );
7284
7285 // If there's more to do, yield
7286 if ( percent < 1 && length ) {
7287 return remaining;
7288 }
7289
7290 // If this was an empty animation, synthesize a final progress notification
7291 if ( !length ) {
7292 deferred.notifyWith( elem, [ animation, 1, 0 ] );
7293 }
7294
7295 // Resolve the animation and report its conclusion
7296 deferred.resolveWith( elem, [ animation ] );
7297 return false;
7298 },
7299 animation = deferred.promise( {
7300 elem: elem,
7301 props: jQuery.extend( {}, properties ),
7302 opts: jQuery.extend( true, {
7303 specialEasing: {},
7304 easing: jQuery.easing._default
7305 }, options ),
7306 originalProperties: properties,
7307 originalOptions: options,
7308 startTime: fxNow || createFxNow(),
7309 duration: options.duration,
7310 tweens: [],
7311 createTween: function( prop, end ) {
7312 var tween = jQuery.Tween( elem, animation.opts, prop, end,
7313 animation.opts.specialEasing[ prop ] || animation.opts.easing );
7314 animation.tweens.push( tween );
7315 return tween;
7316 },
7317 stop: function( gotoEnd ) {
7318 var index = 0,
7319
7320 // If we are going to the end, we want to run all the tweens
7321 // otherwise we skip this part
7322 length = gotoEnd ? animation.tweens.length : 0;
7323 if ( stopped ) {
7324 return this;
7325 }
7326 stopped = true;
7327 for ( ; index < length; index++ ) {
7328 animation.tweens[ index ].run( 1 );
7329 }
7330
7331 // Resolve when we played the last frame; otherwise, reject
7332 if ( gotoEnd ) {
7333 deferred.notifyWith( elem, [ animation, 1, 0 ] );
7334 deferred.resolveWith( elem, [ animation, gotoEnd ] );
7335 } else {
7336 deferred.rejectWith( elem, [ animation, gotoEnd ] );
7337 }
7338 return this;
7339 }
7340 } ),
7341 props = animation.props;
7342
7343 propFilter( props, animation.opts.specialEasing );
7344
7345 for ( ; index < length; index++ ) {
7346 result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
7347 if ( result ) {
7348 if ( isFunction( result.stop ) ) {
7349 jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
7350 result.stop.bind( result );
7351 }
7352 return result;
7353 }
7354 }
7355
7356 jQuery.map( props, createTween, animation );
7357
7358 if ( isFunction( animation.opts.start ) ) {
7359 animation.opts.start.call( elem, animation );
7360 }
7361
7362 // Attach callbacks from options
7363 animation
7364 .progress( animation.opts.progress )
7365 .done( animation.opts.done, animation.opts.complete )
7366 .fail( animation.opts.fail )
7367 .always( animation.opts.always );
7368
7369 jQuery.fx.timer(
7370 jQuery.extend( tick, {
7371 elem: elem,
7372 anim: animation,
7373 queue: animation.opts.queue
7374 } )
7375 );
7376
7377 return animation;
7378}
7379
7380jQuery.Animation = jQuery.extend( Animation, {
7381
7382 tweeners: {
7383 "*": [ function( prop, value ) {
7384 var tween = this.createTween( prop, value );
7385 adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
7386 return tween;
7387 } ]
7388 },
7389
7390 tweener: function( props, callback ) {
7391 if ( isFunction( props ) ) {
7392 callback = props;
7393 props = [ "*" ];
7394 } else {
7395 props = props.match( rnothtmlwhite );
7396 }
7397
7398 var prop,
7399 index = 0,
7400 length = props.length;
7401
7402 for ( ; index < length; index++ ) {
7403 prop = props[ index ];
7404 Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
7405 Animation.tweeners[ prop ].unshift( callback );
7406 }
7407 },
7408
7409 prefilters: [ defaultPrefilter ],
7410
7411 prefilter: function( callback, prepend ) {
7412 if ( prepend ) {
7413 Animation.prefilters.unshift( callback );
7414 } else {
7415 Animation.prefilters.push( callback );
7416 }
7417 }
7418} );
7419
7420jQuery.speed = function( speed, easing, fn ) {
7421 var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
7422 complete: fn || !fn && easing ||
7423 isFunction( speed ) && speed,
7424 duration: speed,
7425 easing: fn && easing || easing && !isFunction( easing ) && easing
7426 };
7427
7428 // Go to the end state if fx are off
7429 if ( jQuery.fx.off ) {
7430 opt.duration = 0;
7431
7432 } else {
7433 if ( typeof opt.duration !== "number" ) {
7434 if ( opt.duration in jQuery.fx.speeds ) {
7435 opt.duration = jQuery.fx.speeds[ opt.duration ];
7436
7437 } else {
7438 opt.duration = jQuery.fx.speeds._default;
7439 }
7440 }
7441 }
7442
7443 // Normalize opt.queue - true/undefined/null -> "fx"
7444 if ( opt.queue == null || opt.queue === true ) {
7445 opt.queue = "fx";
7446 }
7447
7448 // Queueing
7449 opt.old = opt.complete;
7450
7451 opt.complete = function() {
7452 if ( isFunction( opt.old ) ) {
7453 opt.old.call( this );
7454 }
7455
7456 if ( opt.queue ) {
7457 jQuery.dequeue( this, opt.queue );
7458 }
7459 };
7460
7461 return opt;
7462};
7463
7464jQuery.fn.extend( {
7465 fadeTo: function( speed, to, easing, callback ) {
7466
7467 // Show any hidden elements after setting opacity to 0
7468 return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
7469
7470 // Animate to the value specified
7471 .end().animate( { opacity: to }, speed, easing, callback );
7472 },
7473 animate: function( prop, speed, easing, callback ) {
7474 var empty = jQuery.isEmptyObject( prop ),
7475 optall = jQuery.speed( speed, easing, callback ),
7476 doAnimation = function() {
7477
7478 // Operate on a copy of prop so per-property easing won't be lost
7479 var anim = Animation( this, jQuery.extend( {}, prop ), optall );
7480
7481 // Empty animations, or finishing resolves immediately
7482 if ( empty || dataPriv.get( this, "finish" ) ) {
7483 anim.stop( true );
7484 }
7485 };
7486 doAnimation.finish = doAnimation;
7487
7488 return empty || optall.queue === false ?
7489 this.each( doAnimation ) :
7490 this.queue( optall.queue, doAnimation );
7491 },
7492 stop: function( type, clearQueue, gotoEnd ) {
7493 var stopQueue = function( hooks ) {
7494 var stop = hooks.stop;
7495 delete hooks.stop;
7496 stop( gotoEnd );
7497 };
7498
7499 if ( typeof type !== "string" ) {
7500 gotoEnd = clearQueue;
7501 clearQueue = type;
7502 type = undefined;
7503 }
7504 if ( clearQueue && type !== false ) {
7505 this.queue( type || "fx", [] );
7506 }
7507
7508 return this.each( function() {
7509 var dequeue = true,
7510 index = type != null && type + "queueHooks",
7511 timers = jQuery.timers,
7512 data = dataPriv.get( this );
7513
7514 if ( index ) {
7515 if ( data[ index ] && data[ index ].stop ) {
7516 stopQueue( data[ index ] );
7517 }
7518 } else {
7519 for ( index in data ) {
7520 if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
7521 stopQueue( data[ index ] );
7522 }
7523 }
7524 }
7525
7526 for ( index = timers.length; index--; ) {
7527 if ( timers[ index ].elem === this &&
7528 ( type == null || timers[ index ].queue === type ) ) {
7529
7530 timers[ index ].anim.stop( gotoEnd );
7531 dequeue = false;
7532 timers.splice( index, 1 );
7533 }
7534 }
7535
7536 // Start the next in the queue if the last step wasn't forced.
7537 // Timers currently will call their complete callbacks, which
7538 // will dequeue but only if they were gotoEnd.
7539 if ( dequeue || !gotoEnd ) {
7540 jQuery.dequeue( this, type );
7541 }
7542 } );
7543 },
7544 finish: function( type ) {
7545 if ( type !== false ) {
7546 type = type || "fx";
7547 }
7548 return this.each( function() {
7549 var index,
7550 data = dataPriv.get( this ),
7551 queue = data[ type + "queue" ],
7552 hooks = data[ type + "queueHooks" ],
7553 timers = jQuery.timers,
7554 length = queue ? queue.length : 0;
7555
7556 // Enable finishing flag on private data
7557 data.finish = true;
7558
7559 // Empty the queue first
7560 jQuery.queue( this, type, [] );
7561
7562 if ( hooks && hooks.stop ) {
7563 hooks.stop.call( this, true );
7564 }
7565
7566 // Look for any active animations, and finish them
7567 for ( index = timers.length; index--; ) {
7568 if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
7569 timers[ index ].anim.stop( true );
7570 timers.splice( index, 1 );
7571 }
7572 }
7573
7574 // Look for any animations in the old queue and finish them
7575 for ( index = 0; index < length; index++ ) {
7576 if ( queue[ index ] && queue[ index ].finish ) {
7577 queue[ index ].finish.call( this );
7578 }
7579 }
7580
7581 // Turn off finishing flag
7582 delete data.finish;
7583 } );
7584 }
7585} );
7586
7587jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
7588 var cssFn = jQuery.fn[ name ];
7589 jQuery.fn[ name ] = function( speed, easing, callback ) {
7590 return speed == null || typeof speed === "boolean" ?
7591 cssFn.apply( this, arguments ) :
7592 this.animate( genFx( name, true ), speed, easing, callback );
7593 };
7594} );
7595
7596// Generate shortcuts for custom animations
7597jQuery.each( {
7598 slideDown: genFx( "show" ),
7599 slideUp: genFx( "hide" ),
7600 slideToggle: genFx( "toggle" ),
7601 fadeIn: { opacity: "show" },
7602 fadeOut: { opacity: "hide" },
7603 fadeToggle: { opacity: "toggle" }
7604}, function( name, props ) {
7605 jQuery.fn[ name ] = function( speed, easing, callback ) {
7606 return this.animate( props, speed, easing, callback );
7607 };
7608} );
7609
7610jQuery.timers = [];
7611jQuery.fx.tick = function() {
7612 var timer,
7613 i = 0,
7614 timers = jQuery.timers;
7615
7616 fxNow = Date.now();
7617
7618 for ( ; i < timers.length; i++ ) {
7619 timer = timers[ i ];
7620
7621 // Run the timer and safely remove it when done (allowing for external removal)
7622 if ( !timer() && timers[ i ] === timer ) {
7623 timers.splice( i--, 1 );
7624 }
7625 }
7626
7627 if ( !timers.length ) {
7628 jQuery.fx.stop();
7629 }
7630 fxNow = undefined;
7631};
7632
7633jQuery.fx.timer = function( timer ) {
7634 jQuery.timers.push( timer );
7635 jQuery.fx.start();
7636};
7637
7638jQuery.fx.interval = 13;
7639jQuery.fx.start = function() {
7640 if ( inProgress ) {
7641 return;
7642 }
7643
7644 inProgress = true;
7645 schedule();
7646};
7647
7648jQuery.fx.stop = function() {
7649 inProgress = null;
7650};
7651
7652jQuery.fx.speeds = {
7653 slow: 600,
7654 fast: 200,
7655
7656 // Default speed
7657 _default: 400
7658};
7659
7660
7661// Based off of the plugin by Clint Helfers, with permission.
7662// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
7663jQuery.fn.delay = function( time, type ) {
7664 time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
7665 type = type || "fx";
7666
7667 return this.queue( type, function( next, hooks ) {
7668 var timeout = window.setTimeout( next, time );
7669 hooks.stop = function() {
7670 window.clearTimeout( timeout );
7671 };
7672 } );
7673};
7674
7675
7676( function() {
7677 var input = document.createElement( "input" ),
7678 select = document.createElement( "select" ),
7679 opt = select.appendChild( document.createElement( "option" ) );
7680
7681 input.type = "checkbox";
7682
7683 // Support: Android <=4.3 only
7684 // Default value for a checkbox should be "on"
7685 support.checkOn = input.value !== "";
7686
7687 // Support: IE <=11 only
7688 // Must access selectedIndex to make default options select
7689 support.optSelected = opt.selected;
7690
7691 // Support: IE <=11 only
7692 // An input loses its value after becoming a radio
7693 input = document.createElement( "input" );
7694 input.value = "t";
7695 input.type = "radio";
7696 support.radioValue = input.value === "t";
7697} )();
7698
7699
7700var boolHook,
7701 attrHandle = jQuery.expr.attrHandle;
7702
7703jQuery.fn.extend( {
7704 attr: function( name, value ) {
7705 return access( this, jQuery.attr, name, value, arguments.length > 1 );
7706 },
7707
7708 removeAttr: function( name ) {
7709 return this.each( function() {
7710 jQuery.removeAttr( this, name );
7711 } );
7712 }
7713} );
7714
7715jQuery.extend( {
7716 attr: function( elem, name, value ) {
7717 var ret, hooks,
7718 nType = elem.nodeType;
7719
7720 // Don't get/set attributes on text, comment and attribute nodes
7721 if ( nType === 3 || nType === 8 || nType === 2 ) {
7722 return;
7723 }
7724
7725 // Fallback to prop when attributes are not supported
7726 if ( typeof elem.getAttribute === "undefined" ) {
7727 return jQuery.prop( elem, name, value );
7728 }
7729
7730 // Attribute hooks are determined by the lowercase version
7731 // Grab necessary hook if one is defined
7732 if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
7733 hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
7734 ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
7735 }
7736
7737 if ( value !== undefined ) {
7738 if ( value === null ) {
7739 jQuery.removeAttr( elem, name );
7740 return;
7741 }
7742
7743 if ( hooks && "set" in hooks &&
7744 ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
7745 return ret;
7746 }
7747
7748 elem.setAttribute( name, value + "" );
7749 return value;
7750 }
7751
7752 if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
7753 return ret;
7754 }
7755
7756 ret = jQuery.find.attr( elem, name );
7757
7758 // Non-existent attributes return null, we normalize to undefined
7759 return ret == null ? undefined : ret;
7760 },
7761
7762 attrHooks: {
7763 type: {
7764 set: function( elem, value ) {
7765 if ( !support.radioValue && value === "radio" &&
7766 nodeName( elem, "input" ) ) {
7767 var val = elem.value;
7768 elem.setAttribute( "type", value );
7769 if ( val ) {
7770 elem.value = val;
7771 }
7772 return value;
7773 }
7774 }
7775 }
7776 },
7777
7778 removeAttr: function( elem, value ) {
7779 var name,
7780 i = 0,
7781
7782 // Attribute names can contain non-HTML whitespace characters
7783 // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
7784 attrNames = value && value.match( rnothtmlwhite );
7785
7786 if ( attrNames && elem.nodeType === 1 ) {
7787 while ( ( name = attrNames[ i++ ] ) ) {
7788 elem.removeAttribute( name );
7789 }
7790 }
7791 }
7792} );
7793
7794// Hooks for boolean attributes
7795boolHook = {
7796 set: function( elem, value, name ) {
7797 if ( value === false ) {
7798
7799 // Remove boolean attributes when set to false
7800 jQuery.removeAttr( elem, name );
7801 } else {
7802 elem.setAttribute( name, name );
7803 }
7804 return name;
7805 }
7806};
7807
7808jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
7809 var getter = attrHandle[ name ] || jQuery.find.attr;
7810
7811 attrHandle[ name ] = function( elem, name, isXML ) {
7812 var ret, handle,
7813 lowercaseName = name.toLowerCase();
7814
7815 if ( !isXML ) {
7816
7817 // Avoid an infinite loop by temporarily removing this function from the getter
7818 handle = attrHandle[ lowercaseName ];
7819 attrHandle[ lowercaseName ] = ret;
7820 ret = getter( elem, name, isXML ) != null ?
7821 lowercaseName :
7822 null;
7823 attrHandle[ lowercaseName ] = handle;
7824 }
7825 return ret;
7826 };
7827} );
7828
7829
7830
7831
7832var rfocusable = /^(?:input|select|textarea|button)$/i,
7833 rclickable = /^(?:a|area)$/i;
7834
7835jQuery.fn.extend( {
7836 prop: function( name, value ) {
7837 return access( this, jQuery.prop, name, value, arguments.length > 1 );
7838 },
7839
7840 removeProp: function( name ) {
7841 return this.each( function() {
7842 delete this[ jQuery.propFix[ name ] || name ];
7843 } );
7844 }
7845} );
7846
7847jQuery.extend( {
7848 prop: function( elem, name, value ) {
7849 var ret, hooks,
7850 nType = elem.nodeType;
7851
7852 // Don't get/set properties on text, comment and attribute nodes
7853 if ( nType === 3 || nType === 8 || nType === 2 ) {
7854 return;
7855 }
7856
7857 if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
7858
7859 // Fix name and attach hooks
7860 name = jQuery.propFix[ name ] || name;
7861 hooks = jQuery.propHooks[ name ];
7862 }
7863
7864 if ( value !== undefined ) {
7865 if ( hooks && "set" in hooks &&
7866 ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
7867 return ret;
7868 }
7869
7870 return ( elem[ name ] = value );
7871 }
7872
7873 if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
7874 return ret;
7875 }
7876
7877 return elem[ name ];
7878 },
7879
7880 propHooks: {
7881 tabIndex: {
7882 get: function( elem ) {
7883
7884 // Support: IE <=9 - 11 only
7885 // elem.tabIndex doesn't always return the
7886 // correct value when it hasn't been explicitly set
7887 // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
7888 // Use proper attribute retrieval(#12072)
7889 var tabindex = jQuery.find.attr( elem, "tabindex" );
7890
7891 if ( tabindex ) {
7892 return parseInt( tabindex, 10 );
7893 }
7894
7895 if (
7896 rfocusable.test( elem.nodeName ) ||
7897 rclickable.test( elem.nodeName ) &&
7898 elem.href
7899 ) {
7900 return 0;
7901 }
7902
7903 return -1;
7904 }
7905 }
7906 },
7907
7908 propFix: {
7909 "for": "htmlFor",
7910 "class": "className"
7911 }
7912} );
7913
7914// Support: IE <=11 only
7915// Accessing the selectedIndex property
7916// forces the browser to respect setting selected
7917// on the option
7918// The getter ensures a default option is selected
7919// when in an optgroup
7920// eslint rule "no-unused-expressions" is disabled for this code
7921// since it considers such accessions noop
7922if ( !support.optSelected ) {
7923 jQuery.propHooks.selected = {
7924 get: function( elem ) {
7925
7926 /* eslint no-unused-expressions: "off" */
7927
7928 var parent = elem.parentNode;
7929 if ( parent && parent.parentNode ) {
7930 parent.parentNode.selectedIndex;
7931 }
7932 return null;
7933 },
7934 set: function( elem ) {
7935
7936 /* eslint no-unused-expressions: "off" */
7937
7938 var parent = elem.parentNode;
7939 if ( parent ) {
7940 parent.selectedIndex;
7941
7942 if ( parent.parentNode ) {
7943 parent.parentNode.selectedIndex;
7944 }
7945 }
7946 }
7947 };
7948}
7949
7950jQuery.each( [
7951 "tabIndex",
7952 "readOnly",
7953 "maxLength",
7954 "cellSpacing",
7955 "cellPadding",
7956 "rowSpan",
7957 "colSpan",
7958 "useMap",
7959 "frameBorder",
7960 "contentEditable"
7961], function() {
7962 jQuery.propFix[ this.toLowerCase() ] = this;
7963} );
7964
7965
7966
7967
7968 // Strip and collapse whitespace according to HTML spec
7969 // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
7970 function stripAndCollapse( value ) {
7971 var tokens = value.match( rnothtmlwhite ) || [];
7972 return tokens.join( " " );
7973 }
7974
7975
7976function getClass( elem ) {
7977 return elem.getAttribute && elem.getAttribute( "class" ) || "";
7978}
7979
7980function classesToArray( value ) {
7981 if ( Array.isArray( value ) ) {
7982 return value;
7983 }
7984 if ( typeof value === "string" ) {
7985 return value.match( rnothtmlwhite ) || [];
7986 }
7987 return [];
7988}
7989
7990jQuery.fn.extend( {
7991 addClass: function( value ) {
7992 var classes, elem, cur, curValue, clazz, j, finalValue,
7993 i = 0;
7994
7995 if ( isFunction( value ) ) {
7996 return this.each( function( j ) {
7997 jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
7998 } );
7999 }
8000
8001 classes = classesToArray( value );
8002
8003 if ( classes.length ) {
8004 while ( ( elem = this[ i++ ] ) ) {
8005 curValue = getClass( elem );
8006 cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
8007
8008 if ( cur ) {
8009 j = 0;
8010 while ( ( clazz = classes[ j++ ] ) ) {
8011 if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
8012 cur += clazz + " ";
8013 }
8014 }
8015
8016 // Only assign if different to avoid unneeded rendering.
8017 finalValue = stripAndCollapse( cur );
8018 if ( curValue !== finalValue ) {
8019 elem.setAttribute( "class", finalValue );
8020 }
8021 }
8022 }
8023 }
8024
8025 return this;
8026 },
8027
8028 removeClass: function( value ) {
8029 var classes, elem, cur, curValue, clazz, j, finalValue,
8030 i = 0;
8031
8032 if ( isFunction( value ) ) {
8033 return this.each( function( j ) {
8034 jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
8035 } );
8036 }
8037
8038 if ( !arguments.length ) {
8039 return this.attr( "class", "" );
8040 }
8041
8042 classes = classesToArray( value );
8043
8044 if ( classes.length ) {
8045 while ( ( elem = this[ i++ ] ) ) {
8046 curValue = getClass( elem );
8047
8048 // This expression is here for better compressibility (see addClass)
8049 cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
8050
8051 if ( cur ) {
8052 j = 0;
8053 while ( ( clazz = classes[ j++ ] ) ) {
8054
8055 // Remove *all* instances
8056 while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
8057 cur = cur.replace( " " + clazz + " ", " " );
8058 }
8059 }
8060
8061 // Only assign if different to avoid unneeded rendering.
8062 finalValue = stripAndCollapse( cur );
8063 if ( curValue !== finalValue ) {
8064 elem.setAttribute( "class", finalValue );
8065 }
8066 }
8067 }
8068 }
8069
8070 return this;
8071 },
8072
8073 toggleClass: function( value, stateVal ) {
8074 var type = typeof value,
8075 isValidValue = type === "string" || Array.isArray( value );
8076
8077 if ( typeof stateVal === "boolean" && isValidValue ) {
8078 return stateVal ? this.addClass( value ) : this.removeClass( value );
8079 }
8080
8081 if ( isFunction( value ) ) {
8082 return this.each( function( i ) {
8083 jQuery( this ).toggleClass(
8084 value.call( this, i, getClass( this ), stateVal ),
8085 stateVal
8086 );
8087 } );
8088 }
8089
8090 return this.each( function() {
8091 var className, i, self, classNames;
8092
8093 if ( isValidValue ) {
8094
8095 // Toggle individual class names
8096 i = 0;
8097 self = jQuery( this );
8098 classNames = classesToArray( value );
8099
8100 while ( ( className = classNames[ i++ ] ) ) {
8101
8102 // Check each className given, space separated list
8103 if ( self.hasClass( className ) ) {
8104 self.removeClass( className );
8105 } else {
8106 self.addClass( className );
8107 }
8108 }
8109
8110 // Toggle whole class name
8111 } else if ( value === undefined || type === "boolean" ) {
8112 className = getClass( this );
8113 if ( className ) {
8114
8115 // Store className if set
8116 dataPriv.set( this, "__className__", className );
8117 }
8118
8119 // If the element has a class name or if we're passed `false`,
8120 // then remove the whole classname (if there was one, the above saved it).
8121 // Otherwise bring back whatever was previously saved (if anything),
8122 // falling back to the empty string if nothing was stored.
8123 if ( this.setAttribute ) {
8124 this.setAttribute( "class",
8125 className || value === false ?
8126 "" :
8127 dataPriv.get( this, "__className__" ) || ""
8128 );
8129 }
8130 }
8131 } );
8132 },
8133
8134 hasClass: function( selector ) {
8135 var className, elem,
8136 i = 0;
8137
8138 className = " " + selector + " ";
8139 while ( ( elem = this[ i++ ] ) ) {
8140 if ( elem.nodeType === 1 &&
8141 ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
8142 return true;
8143 }
8144 }
8145
8146 return false;
8147 }
8148} );
8149
8150
8151
8152
8153var rreturn = /\r/g;
8154
8155jQuery.fn.extend( {
8156 val: function( value ) {
8157 var hooks, ret, valueIsFunction,
8158 elem = this[ 0 ];
8159
8160 if ( !arguments.length ) {
8161 if ( elem ) {
8162 hooks = jQuery.valHooks[ elem.type ] ||
8163 jQuery.valHooks[ elem.nodeName.toLowerCase() ];
8164
8165 if ( hooks &&
8166 "get" in hooks &&
8167 ( ret = hooks.get( elem, "value" ) ) !== undefined
8168 ) {
8169 return ret;
8170 }
8171
8172 ret = elem.value;
8173
8174 // Handle most common string cases
8175 if ( typeof ret === "string" ) {
8176 return ret.replace( rreturn, "" );
8177 }
8178
8179 // Handle cases where value is null/undef or number
8180 return ret == null ? "" : ret;
8181 }
8182
8183 return;
8184 }
8185
8186 valueIsFunction = isFunction( value );
8187
8188 return this.each( function( i ) {
8189 var val;
8190
8191 if ( this.nodeType !== 1 ) {
8192 return;
8193 }
8194
8195 if ( valueIsFunction ) {
8196 val = value.call( this, i, jQuery( this ).val() );
8197 } else {
8198 val = value;
8199 }
8200
8201 // Treat null/undefined as ""; convert numbers to string
8202 if ( val == null ) {
8203 val = "";
8204
8205 } else if ( typeof val === "number" ) {
8206 val += "";
8207
8208 } else if ( Array.isArray( val ) ) {
8209 val = jQuery.map( val, function( value ) {
8210 return value == null ? "" : value + "";
8211 } );
8212 }
8213
8214 hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
8215
8216 // If set returns undefined, fall back to normal setting
8217 if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
8218 this.value = val;
8219 }
8220 } );
8221 }
8222} );
8223
8224jQuery.extend( {
8225 valHooks: {
8226 option: {
8227 get: function( elem ) {
8228
8229 var val = jQuery.find.attr( elem, "value" );
8230 return val != null ?
8231 val :
8232
8233 // Support: IE <=10 - 11 only
8234 // option.text throws exceptions (#14686, #14858)
8235 // Strip and collapse whitespace
8236 // https://html.spec.whatwg.org/#strip-and-collapse-whitespace
8237 stripAndCollapse( jQuery.text( elem ) );
8238 }
8239 },
8240 select: {
8241 get: function( elem ) {
8242 var value, option, i,
8243 options = elem.options,
8244 index = elem.selectedIndex,
8245 one = elem.type === "select-one",
8246 values = one ? null : [],
8247 max = one ? index + 1 : options.length;
8248
8249 if ( index < 0 ) {
8250 i = max;
8251
8252 } else {
8253 i = one ? index : 0;
8254 }
8255
8256 // Loop through all the selected options
8257 for ( ; i < max; i++ ) {
8258 option = options[ i ];
8259
8260 // Support: IE <=9 only
8261 // IE8-9 doesn't update selected after form reset (#2551)
8262 if ( ( option.selected || i === index ) &&
8263
8264 // Don't return options that are disabled or in a disabled optgroup
8265 !option.disabled &&
8266 ( !option.parentNode.disabled ||
8267 !nodeName( option.parentNode, "optgroup" ) ) ) {
8268
8269 // Get the specific value for the option
8270 value = jQuery( option ).val();
8271
8272 // We don't need an array for one selects
8273 if ( one ) {
8274 return value;
8275 }
8276
8277 // Multi-Selects return an array
8278 values.push( value );
8279 }
8280 }
8281
8282 return values;
8283 },
8284
8285 set: function( elem, value ) {
8286 var optionSet, option,
8287 options = elem.options,
8288 values = jQuery.makeArray( value ),
8289 i = options.length;
8290
8291 while ( i-- ) {
8292 option = options[ i ];
8293
8294 /* eslint-disable no-cond-assign */
8295
8296 if ( option.selected =
8297 jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
8298 ) {
8299 optionSet = true;
8300 }
8301
8302 /* eslint-enable no-cond-assign */
8303 }
8304
8305 // Force browsers to behave consistently when non-matching value is set
8306 if ( !optionSet ) {
8307 elem.selectedIndex = -1;
8308 }
8309 return values;
8310 }
8311 }
8312 }
8313} );
8314
8315// Radios and checkboxes getter/setter
8316jQuery.each( [ "radio", "checkbox" ], function() {
8317 jQuery.valHooks[ this ] = {
8318 set: function( elem, value ) {
8319 if ( Array.isArray( value ) ) {
8320 return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
8321 }
8322 }
8323 };
8324 if ( !support.checkOn ) {
8325 jQuery.valHooks[ this ].get = function( elem ) {
8326 return elem.getAttribute( "value" ) === null ? "on" : elem.value;
8327 };
8328 }
8329} );
8330
8331
8332
8333
8334// Return jQuery for attributes-only inclusion
8335
8336
8337support.focusin = "onfocusin" in window;
8338
8339
8340var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
8341 stopPropagationCallback = function( e ) {
8342 e.stopPropagation();
8343 };
8344
8345jQuery.extend( jQuery.event, {
8346
8347 trigger: function( event, data, elem, onlyHandlers ) {
8348
8349 var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
8350 eventPath = [ elem || document ],
8351 type = hasOwn.call( event, "type" ) ? event.type : event,
8352 namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
8353
8354 cur = lastElement = tmp = elem = elem || document;
8355
8356 // Don't do events on text and comment nodes
8357 if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
8358 return;
8359 }
8360
8361 // focus/blur morphs to focusin/out; ensure we're not firing them right now
8362 if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
8363 return;
8364 }
8365
8366 if ( type.indexOf( "." ) > -1 ) {
8367
8368 // Namespaced trigger; create a regexp to match event type in handle()
8369 namespaces = type.split( "." );
8370 type = namespaces.shift();
8371 namespaces.sort();
8372 }
8373 ontype = type.indexOf( ":" ) < 0 && "on" + type;
8374
8375 // Caller can pass in a jQuery.Event object, Object, or just an event type string
8376 event = event[ jQuery.expando ] ?
8377 event :
8378 new jQuery.Event( type, typeof event === "object" && event );
8379
8380 // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
8381 event.isTrigger = onlyHandlers ? 2 : 3;
8382 event.namespace = namespaces.join( "." );
8383 event.rnamespace = event.namespace ?
8384 new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
8385 null;
8386
8387 // Clean up the event in case it is being reused
8388 event.result = undefined;
8389 if ( !event.target ) {
8390 event.target = elem;
8391 }
8392
8393 // Clone any incoming data and prepend the event, creating the handler arg list
8394 data = data == null ?
8395 [ event ] :
8396 jQuery.makeArray( data, [ event ] );
8397
8398 // Allow special events to draw outside the lines
8399 special = jQuery.event.special[ type ] || {};
8400 if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
8401 return;
8402 }
8403
8404 // Determine event propagation path in advance, per W3C events spec (#9951)
8405 // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
8406 if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {
8407
8408 bubbleType = special.delegateType || type;
8409 if ( !rfocusMorph.test( bubbleType + type ) ) {
8410 cur = cur.parentNode;
8411 }
8412 for ( ; cur; cur = cur.parentNode ) {
8413 eventPath.push( cur );
8414 tmp = cur;
8415 }
8416
8417 // Only add window if we got to document (e.g., not plain obj or detached DOM)
8418 if ( tmp === ( elem.ownerDocument || document ) ) {
8419 eventPath.push( tmp.defaultView || tmp.parentWindow || window );
8420 }
8421 }
8422
8423 // Fire handlers on the event path
8424 i = 0;
8425 while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
8426 lastElement = cur;
8427 event.type = i > 1 ?
8428 bubbleType :
8429 special.bindType || type;
8430
8431 // jQuery handler
8432 handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
8433 dataPriv.get( cur, "handle" );
8434 if ( handle ) {
8435 handle.apply( cur, data );
8436 }
8437
8438 // Native handler
8439 handle = ontype && cur[ ontype ];
8440 if ( handle && handle.apply && acceptData( cur ) ) {
8441 event.result = handle.apply( cur, data );
8442 if ( event.result === false ) {
8443 event.preventDefault();
8444 }
8445 }
8446 }
8447 event.type = type;
8448
8449 // If nobody prevented the default action, do it now
8450 if ( !onlyHandlers && !event.isDefaultPrevented() ) {
8451
8452 if ( ( !special._default ||
8453 special._default.apply( eventPath.pop(), data ) === false ) &&
8454 acceptData( elem ) ) {
8455
8456 // Call a native DOM method on the target with the same name as the event.
8457 // Don't do default actions on window, that's where global variables be (#6170)
8458 if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
8459
8460 // Don't re-trigger an onFOO event when we call its FOO() method
8461 tmp = elem[ ontype ];
8462
8463 if ( tmp ) {
8464 elem[ ontype ] = null;
8465 }
8466
8467 // Prevent re-triggering of the same event, since we already bubbled it above
8468 jQuery.event.triggered = type;
8469
8470 if ( event.isPropagationStopped() ) {
8471 lastElement.addEventListener( type, stopPropagationCallback );
8472 }
8473
8474 elem[ type ]();
8475
8476 if ( event.isPropagationStopped() ) {
8477 lastElement.removeEventListener( type, stopPropagationCallback );
8478 }
8479
8480 jQuery.event.triggered = undefined;
8481
8482 if ( tmp ) {
8483 elem[ ontype ] = tmp;
8484 }
8485 }
8486 }
8487 }
8488
8489 return event.result;
8490 },
8491
8492 // Piggyback on a donor event to simulate a different one
8493 // Used only for `focus(in | out)` events
8494 simulate: function( type, elem, event ) {
8495 var e = jQuery.extend(
8496 new jQuery.Event(),
8497 event,
8498 {
8499 type: type,
8500 isSimulated: true
8501 }
8502 );
8503
8504 jQuery.event.trigger( e, null, elem );
8505 }
8506
8507} );
8508
8509jQuery.fn.extend( {
8510
8511 trigger: function( type, data ) {
8512 return this.each( function() {
8513 jQuery.event.trigger( type, data, this );
8514 } );
8515 },
8516 triggerHandler: function( type, data ) {
8517 var elem = this[ 0 ];
8518 if ( elem ) {
8519 return jQuery.event.trigger( type, data, elem, true );
8520 }
8521 }
8522} );
8523
8524
8525// Support: Firefox <=44
8526// Firefox doesn't have focus(in | out) events
8527// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
8528//
8529// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
8530// focus(in | out) events fire after focus & blur events,
8531// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
8532// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
8533if ( !support.focusin ) {
8534 jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
8535
8536 // Attach a single capturing handler on the document while someone wants focusin/focusout
8537 var handler = function( event ) {
8538 jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
8539 };
8540
8541 jQuery.event.special[ fix ] = {
8542 setup: function() {
8543 var doc = this.ownerDocument || this,
8544 attaches = dataPriv.access( doc, fix );
8545
8546 if ( !attaches ) {
8547 doc.addEventListener( orig, handler, true );
8548 }
8549 dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
8550 },
8551 teardown: function() {
8552 var doc = this.ownerDocument || this,
8553 attaches = dataPriv.access( doc, fix ) - 1;
8554
8555 if ( !attaches ) {
8556 doc.removeEventListener( orig, handler, true );
8557 dataPriv.remove( doc, fix );
8558
8559 } else {
8560 dataPriv.access( doc, fix, attaches );
8561 }
8562 }
8563 };
8564 } );
8565}
8566var location = window.location;
8567
8568var nonce = Date.now();
8569
8570var rquery = ( /\?/ );
8571
8572
8573
8574// Cross-browser xml parsing
8575jQuery.parseXML = function( data ) {
8576 var xml;
8577 if ( !data || typeof data !== "string" ) {
8578 return null;
8579 }
8580
8581 // Support: IE 9 - 11 only
8582 // IE throws on parseFromString with invalid input.
8583 try {
8584 xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
8585 } catch ( e ) {
8586 xml = undefined;
8587 }
8588
8589 if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
8590 jQuery.error( "Invalid XML: " + data );
8591 }
8592 return xml;
8593};
8594
8595
8596var
8597 rbracket = /\[\]$/,
8598 rCRLF = /\r?\n/g,
8599 rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
8600 rsubmittable = /^(?:input|select|textarea|keygen)/i;
8601
8602function buildParams( prefix, obj, traditional, add ) {
8603 var name;
8604
8605 if ( Array.isArray( obj ) ) {
8606
8607 // Serialize array item.
8608 jQuery.each( obj, function( i, v ) {
8609 if ( traditional || rbracket.test( prefix ) ) {
8610
8611 // Treat each array item as a scalar.
8612 add( prefix, v );
8613
8614 } else {
8615
8616 // Item is non-scalar (array or object), encode its numeric index.
8617 buildParams(
8618 prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
8619 v,
8620 traditional,
8621 add
8622 );
8623 }
8624 } );
8625
8626 } else if ( !traditional && toType( obj ) === "object" ) {
8627
8628 // Serialize object item.
8629 for ( name in obj ) {
8630 buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
8631 }
8632
8633 } else {
8634
8635 // Serialize scalar item.
8636 add( prefix, obj );
8637 }
8638}
8639
8640// Serialize an array of form elements or a set of
8641// key/values into a query string
8642jQuery.param = function( a, traditional ) {
8643 var prefix,
8644 s = [],
8645 add = function( key, valueOrFunction ) {
8646
8647 // If value is a function, invoke it and use its return value
8648 var value = isFunction( valueOrFunction ) ?
8649 valueOrFunction() :
8650 valueOrFunction;
8651
8652 s[ s.length ] = encodeURIComponent( key ) + "=" +
8653 encodeURIComponent( value == null ? "" : value );
8654 };
8655
8656 // If an array was passed in, assume that it is an array of form elements.
8657 if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
8658
8659 // Serialize the form elements
8660 jQuery.each( a, function() {
8661 add( this.name, this.value );
8662 } );
8663
8664 } else {
8665
8666 // If traditional, encode the "old" way (the way 1.3.2 or older
8667 // did it), otherwise encode params recursively.
8668 for ( prefix in a ) {
8669 buildParams( prefix, a[ prefix ], traditional, add );
8670 }
8671 }
8672
8673 // Return the resulting serialization
8674 return s.join( "&" );
8675};
8676
8677jQuery.fn.extend( {
8678 serialize: function() {
8679 return jQuery.param( this.serializeArray() );
8680 },
8681 serializeArray: function() {
8682 return this.map( function() {
8683
8684 // Can add propHook for "elements" to filter or add form elements
8685 var elements = jQuery.prop( this, "elements" );
8686 return elements ? jQuery.makeArray( elements ) : this;
8687 } )
8688 .filter( function() {
8689 var type = this.type;
8690
8691 // Use .is( ":disabled" ) so that fieldset[disabled] works
8692 return this.name && !jQuery( this ).is( ":disabled" ) &&
8693 rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
8694 ( this.checked || !rcheckableType.test( type ) );
8695 } )
8696 .map( function( i, elem ) {
8697 var val = jQuery( this ).val();
8698
8699 if ( val == null ) {
8700 return null;
8701 }
8702
8703 if ( Array.isArray( val ) ) {
8704 return jQuery.map( val, function( val ) {
8705 return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
8706 } );
8707 }
8708
8709 return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
8710 } ).get();
8711 }
8712} );
8713
8714
8715var
8716 r20 = /%20/g,
8717 rhash = /#.*$/,
8718 rantiCache = /([?&])_=[^&]*/,
8719 rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
8720
8721 // #7653, #8125, #8152: local protocol detection
8722 rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
8723 rnoContent = /^(?:GET|HEAD)$/,
8724 rprotocol = /^\/\//,
8725
8726 /* Prefilters
8727 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
8728 * 2) These are called:
8729 * - BEFORE asking for a transport
8730 * - AFTER param serialization (s.data is a string if s.processData is true)
8731 * 3) key is the dataType
8732 * 4) the catchall symbol "*" can be used
8733 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
8734 */
8735 prefilters = {},
8736
8737 /* Transports bindings
8738 * 1) key is the dataType
8739 * 2) the catchall symbol "*" can be used
8740 * 3) selection will start with transport dataType and THEN go to "*" if needed
8741 */
8742 transports = {},
8743
8744 // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
8745 allTypes = "*/".concat( "*" ),
8746
8747 // Anchor tag for parsing the document origin
8748 originAnchor = document.createElement( "a" );
8749 originAnchor.href = location.href;
8750
8751// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
8752function addToPrefiltersOrTransports( structure ) {
8753
8754 // dataTypeExpression is optional and defaults to "*"
8755 return function( dataTypeExpression, func ) {
8756
8757 if ( typeof dataTypeExpression !== "string" ) {
8758 func = dataTypeExpression;
8759 dataTypeExpression = "*";
8760 }
8761
8762 var dataType,
8763 i = 0,
8764 dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
8765
8766 if ( isFunction( func ) ) {
8767
8768 // For each dataType in the dataTypeExpression
8769 while ( ( dataType = dataTypes[ i++ ] ) ) {
8770
8771 // Prepend if requested
8772 if ( dataType[ 0 ] === "+" ) {
8773 dataType = dataType.slice( 1 ) || "*";
8774 ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
8775
8776 // Otherwise append
8777 } else {
8778 ( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
8779 }
8780 }
8781 }
8782 };
8783}
8784
8785// Base inspection function for prefilters and transports
8786function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
8787
8788 var inspected = {},
8789 seekingTransport = ( structure === transports );
8790
8791 function inspect( dataType ) {
8792 var selected;
8793 inspected[ dataType ] = true;
8794 jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
8795 var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
8796 if ( typeof dataTypeOrTransport === "string" &&
8797 !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
8798
8799 options.dataTypes.unshift( dataTypeOrTransport );
8800 inspect( dataTypeOrTransport );
8801 return false;
8802 } else if ( seekingTransport ) {
8803 return !( selected = dataTypeOrTransport );
8804 }
8805 } );
8806 return selected;
8807 }
8808
8809 return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
8810}
8811
8812// A special extend for ajax options
8813// that takes "flat" options (not to be deep extended)
8814// Fixes #9887
8815function ajaxExtend( target, src ) {
8816 var key, deep,
8817 flatOptions = jQuery.ajaxSettings.flatOptions || {};
8818
8819 for ( key in src ) {
8820 if ( src[ key ] !== undefined ) {
8821 ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
8822 }
8823 }
8824 if ( deep ) {
8825 jQuery.extend( true, target, deep );
8826 }
8827
8828 return target;
8829}
8830
8831/* Handles responses to an ajax request:
8832 * - finds the right dataType (mediates between content-type and expected dataType)
8833 * - returns the corresponding response
8834 */
8835function ajaxHandleResponses( s, jqXHR, responses ) {
8836
8837 var ct, type, finalDataType, firstDataType,
8838 contents = s.contents,
8839 dataTypes = s.dataTypes;
8840
8841 // Remove auto dataType and get content-type in the process
8842 while ( dataTypes[ 0 ] === "*" ) {
8843 dataTypes.shift();
8844 if ( ct === undefined ) {
8845 ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
8846 }
8847 }
8848
8849 // Check if we're dealing with a known content-type
8850 if ( ct ) {
8851 for ( type in contents ) {
8852 if ( contents[ type ] && contents[ type ].test( ct ) ) {
8853 dataTypes.unshift( type );
8854 break;
8855 }
8856 }
8857 }
8858
8859 // Check to see if we have a response for the expected dataType
8860 if ( dataTypes[ 0 ] in responses ) {
8861 finalDataType = dataTypes[ 0 ];
8862 } else {
8863
8864 // Try convertible dataTypes
8865 for ( type in responses ) {
8866 if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
8867 finalDataType = type;
8868 break;
8869 }
8870 if ( !firstDataType ) {
8871 firstDataType = type;
8872 }
8873 }
8874
8875 // Or just use first one
8876 finalDataType = finalDataType || firstDataType;
8877 }
8878
8879 // If we found a dataType
8880 // We add the dataType to the list if needed
8881 // and return the corresponding response
8882 if ( finalDataType ) {
8883 if ( finalDataType !== dataTypes[ 0 ] ) {
8884 dataTypes.unshift( finalDataType );
8885 }
8886 return responses[ finalDataType ];
8887 }
8888}
8889
8890/* Chain conversions given the request and the original response
8891 * Also sets the responseXXX fields on the jqXHR instance
8892 */
8893function ajaxConvert( s, response, jqXHR, isSuccess ) {
8894 var conv2, current, conv, tmp, prev,
8895 converters = {},
8896
8897 // Work with a copy of dataTypes in case we need to modify it for conversion
8898 dataTypes = s.dataTypes.slice();
8899
8900 // Create converters map with lowercased keys
8901 if ( dataTypes[ 1 ] ) {
8902 for ( conv in s.converters ) {
8903 converters[ conv.toLowerCase() ] = s.converters[ conv ];
8904 }
8905 }
8906
8907 current = dataTypes.shift();
8908
8909 // Convert to each sequential dataType
8910 while ( current ) {
8911
8912 if ( s.responseFields[ current ] ) {
8913 jqXHR[ s.responseFields[ current ] ] = response;
8914 }
8915
8916 // Apply the dataFilter if provided
8917 if ( !prev && isSuccess && s.dataFilter ) {
8918 response = s.dataFilter( response, s.dataType );
8919 }
8920
8921 prev = current;
8922 current = dataTypes.shift();
8923
8924 if ( current ) {
8925
8926 // There's only work to do if current dataType is non-auto
8927 if ( current === "*" ) {
8928
8929 current = prev;
8930
8931 // Convert response if prev dataType is non-auto and differs from current
8932 } else if ( prev !== "*" && prev !== current ) {
8933
8934 // Seek a direct converter
8935 conv = converters[ prev + " " + current ] || converters[ "* " + current ];
8936
8937 // If none found, seek a pair
8938 if ( !conv ) {
8939 for ( conv2 in converters ) {
8940
8941 // If conv2 outputs current
8942 tmp = conv2.split( " " );
8943 if ( tmp[ 1 ] === current ) {
8944
8945 // If prev can be converted to accepted input
8946 conv = converters[ prev + " " + tmp[ 0 ] ] ||
8947 converters[ "* " + tmp[ 0 ] ];
8948 if ( conv ) {
8949
8950 // Condense equivalence converters
8951 if ( conv === true ) {
8952 conv = converters[ conv2 ];
8953
8954 // Otherwise, insert the intermediate dataType
8955 } else if ( converters[ conv2 ] !== true ) {
8956 current = tmp[ 0 ];
8957 dataTypes.unshift( tmp[ 1 ] );
8958 }
8959 break;
8960 }
8961 }
8962 }
8963 }
8964
8965 // Apply converter (if not an equivalence)
8966 if ( conv !== true ) {
8967
8968 // Unless errors are allowed to bubble, catch and return them
8969 if ( conv && s.throws ) {
8970 response = conv( response );
8971 } else {
8972 try {
8973 response = conv( response );
8974 } catch ( e ) {
8975 return {
8976 state: "parsererror",
8977 error: conv ? e : "No conversion from " + prev + " to " + current
8978 };
8979 }
8980 }
8981 }
8982 }
8983 }
8984 }
8985
8986 return { state: "success", data: response };
8987}
8988
8989jQuery.extend( {
8990
8991 // Counter for holding the number of active queries
8992 active: 0,
8993
8994 // Last-Modified header cache for next request
8995 lastModified: {},
8996 etag: {},
8997
8998 ajaxSettings: {
8999 url: location.href,
9000 type: "GET",
9001 isLocal: rlocalProtocol.test( location.protocol ),
9002 global: true,
9003 processData: true,
9004 async: true,
9005 contentType: "application/x-www-form-urlencoded; charset=UTF-8",
9006
9007 /*
9008 timeout: 0,
9009 data: null,
9010 dataType: null,
9011 username: null,
9012 password: null,
9013 cache: null,
9014 throws: false,
9015 traditional: false,
9016 headers: {},
9017 */
9018
9019 accepts: {
9020 "*": allTypes,
9021 text: "text/plain",
9022 html: "text/html",
9023 xml: "application/xml, text/xml",
9024 json: "application/json, text/javascript"
9025 },
9026
9027 contents: {
9028 xml: /\bxml\b/,
9029 html: /\bhtml/,
9030 json: /\bjson\b/
9031 },
9032
9033 responseFields: {
9034 xml: "responseXML",
9035 text: "responseText",
9036 json: "responseJSON"
9037 },
9038
9039 // Data converters
9040 // Keys separate source (or catchall "*") and destination types with a single space
9041 converters: {
9042
9043 // Convert anything to text
9044 "* text": String,
9045
9046 // Text to html (true = no transformation)
9047 "text html": true,
9048
9049 // Evaluate text as a json expression
9050 "text json": JSON.parse,
9051
9052 // Parse text as xml
9053 "text xml": jQuery.parseXML
9054 },
9055
9056 // For options that shouldn't be deep extended:
9057 // you can add your own custom options here if
9058 // and when you create one that shouldn't be
9059 // deep extended (see ajaxExtend)
9060 flatOptions: {
9061 url: true,
9062 context: true
9063 }
9064 },
9065
9066 // Creates a full fledged settings object into target
9067 // with both ajaxSettings and settings fields.
9068 // If target is omitted, writes into ajaxSettings.
9069 ajaxSetup: function( target, settings ) {
9070 return settings ?
9071
9072 // Building a settings object
9073 ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
9074
9075 // Extending ajaxSettings
9076 ajaxExtend( jQuery.ajaxSettings, target );
9077 },
9078
9079 ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
9080 ajaxTransport: addToPrefiltersOrTransports( transports ),
9081
9082 // Main method
9083 ajax: function( url, options ) {
9084
9085 // If url is an object, simulate pre-1.5 signature
9086 if ( typeof url === "object" ) {
9087 options = url;
9088 url = undefined;
9089 }
9090
9091 // Force options to be an object
9092 options = options || {};
9093
9094 var transport,
9095
9096 // URL without anti-cache param
9097 cacheURL,
9098
9099 // Response headers
9100 responseHeadersString,
9101 responseHeaders,
9102
9103 // timeout handle
9104 timeoutTimer,
9105
9106 // Url cleanup var
9107 urlAnchor,
9108
9109 // Request state (becomes false upon send and true upon completion)
9110 completed,
9111
9112 // To know if global events are to be dispatched
9113 fireGlobals,
9114
9115 // Loop variable
9116 i,
9117
9118 // uncached part of the url
9119 uncached,
9120
9121 // Create the final options object
9122 s = jQuery.ajaxSetup( {}, options ),
9123
9124 // Callbacks context
9125 callbackContext = s.context || s,
9126
9127 // Context for global events is callbackContext if it is a DOM node or jQuery collection
9128 globalEventContext = s.context &&
9129 ( callbackContext.nodeType || callbackContext.jquery ) ?
9130 jQuery( callbackContext ) :
9131 jQuery.event,
9132
9133 // Deferreds
9134 deferred = jQuery.Deferred(),
9135 completeDeferred = jQuery.Callbacks( "once memory" ),
9136
9137 // Status-dependent callbacks
9138 statusCode = s.statusCode || {},
9139
9140 // Headers (they are sent all at once)
9141 requestHeaders = {},
9142 requestHeadersNames = {},
9143
9144 // Default abort message
9145 strAbort = "canceled",
9146
9147 // Fake xhr
9148 jqXHR = {
9149 readyState: 0,
9150
9151 // Builds headers hashtable if needed
9152 getResponseHeader: function( key ) {
9153 var match;
9154 if ( completed ) {
9155 if ( !responseHeaders ) {
9156 responseHeaders = {};
9157 while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
9158 responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
9159 }
9160 }
9161 match = responseHeaders[ key.toLowerCase() ];
9162 }
9163 return match == null ? null : match;
9164 },
9165
9166 // Raw string
9167 getAllResponseHeaders: function() {
9168 return completed ? responseHeadersString : null;
9169 },
9170
9171 // Caches the header
9172 setRequestHeader: function( name, value ) {
9173 if ( completed == null ) {
9174 name = requestHeadersNames[ name.toLowerCase() ] =
9175 requestHeadersNames[ name.toLowerCase() ] || name;
9176 requestHeaders[ name ] = value;
9177 }
9178 return this;
9179 },
9180
9181 // Overrides response content-type header
9182 overrideMimeType: function( type ) {
9183 if ( completed == null ) {
9184 s.mimeType = type;
9185 }
9186 return this;
9187 },
9188
9189 // Status-dependent callbacks
9190 statusCode: function( map ) {
9191 var code;
9192 if ( map ) {
9193 if ( completed ) {
9194
9195 // Execute the appropriate callbacks
9196 jqXHR.always( map[ jqXHR.status ] );
9197 } else {
9198
9199 // Lazy-add the new callbacks in a way that preserves old ones
9200 for ( code in map ) {
9201 statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
9202 }
9203 }
9204 }
9205 return this;
9206 },
9207
9208 // Cancel the request
9209 abort: function( statusText ) {
9210 var finalText = statusText || strAbort;
9211 if ( transport ) {
9212 transport.abort( finalText );
9213 }
9214 done( 0, finalText );
9215 return this;
9216 }
9217 };
9218
9219 // Attach deferreds
9220 deferred.promise( jqXHR );
9221
9222 // Add protocol if not provided (prefilters might expect it)
9223 // Handle falsy url in the settings object (#10093: consistency with old signature)
9224 // We also use the url parameter if available
9225 s.url = ( ( url || s.url || location.href ) + "" )
9226 .replace( rprotocol, location.protocol + "//" );
9227
9228 // Alias method option to type as per ticket #12004
9229 s.type = options.method || options.type || s.method || s.type;
9230
9231 // Extract dataTypes list
9232 s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
9233
9234 // A cross-domain request is in order when the origin doesn't match the current origin.
9235 if ( s.crossDomain == null ) {
9236 urlAnchor = document.createElement( "a" );
9237
9238 // Support: IE <=8 - 11, Edge 12 - 15
9239 // IE throws exception on accessing the href property if url is malformed,
9240 // e.g. http://example.com:80x/
9241 try {
9242 urlAnchor.href = s.url;
9243
9244 // Support: IE <=8 - 11 only
9245 // Anchor's host property isn't correctly set when s.url is relative
9246 urlAnchor.href = urlAnchor.href;
9247 s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
9248 urlAnchor.protocol + "//" + urlAnchor.host;
9249 } catch ( e ) {
9250
9251 // If there is an error parsing the URL, assume it is crossDomain,
9252 // it can be rejected by the transport if it is invalid
9253 s.crossDomain = true;
9254 }
9255 }
9256
9257 // Convert data if not already a string
9258 if ( s.data && s.processData && typeof s.data !== "string" ) {
9259 s.data = jQuery.param( s.data, s.traditional );
9260 }
9261
9262 // Apply prefilters
9263 inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
9264
9265 // If request was aborted inside a prefilter, stop there
9266 if ( completed ) {
9267 return jqXHR;
9268 }
9269
9270 // We can fire global events as of now if asked to
9271 // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
9272 fireGlobals = jQuery.event && s.global;
9273
9274 // Watch for a new set of requests
9275 if ( fireGlobals && jQuery.active++ === 0 ) {
9276 jQuery.event.trigger( "ajaxStart" );
9277 }
9278
9279 // Uppercase the type
9280 s.type = s.type.toUpperCase();
9281
9282 // Determine if request has content
9283 s.hasContent = !rnoContent.test( s.type );
9284
9285 // Save the URL in case we're toying with the If-Modified-Since
9286 // and/or If-None-Match header later on
9287 // Remove hash to simplify url manipulation
9288 cacheURL = s.url.replace( rhash, "" );
9289
9290 // More options handling for requests with no content
9291 if ( !s.hasContent ) {
9292
9293 // Remember the hash so we can put it back
9294 uncached = s.url.slice( cacheURL.length );
9295
9296 // If data is available and should be processed, append data to url
9297 if ( s.data && ( s.processData || typeof s.data === "string" ) ) {
9298 cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
9299
9300 // #9682: remove data so that it's not used in an eventual retry
9301 delete s.data;
9302 }
9303
9304 // Add or update anti-cache param if needed
9305 if ( s.cache === false ) {
9306 cacheURL = cacheURL.replace( rantiCache, "$1" );
9307 uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
9308 }
9309
9310 // Put hash and anti-cache on the URL that will be requested (gh-1732)
9311 s.url = cacheURL + uncached;
9312
9313 // Change '%20' to '+' if this is encoded form body content (gh-2658)
9314 } else if ( s.data && s.processData &&
9315 ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
9316 s.data = s.data.replace( r20, "+" );
9317 }
9318
9319 // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
9320 if ( s.ifModified ) {
9321 if ( jQuery.lastModified[ cacheURL ] ) {
9322 jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
9323 }
9324 if ( jQuery.etag[ cacheURL ] ) {
9325 jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
9326 }
9327 }
9328
9329 // Set the correct header, if data is being sent
9330 if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
9331 jqXHR.setRequestHeader( "Content-Type", s.contentType );
9332 }
9333
9334 // Set the Accepts header for the server, depending on the dataType
9335 jqXHR.setRequestHeader(
9336 "Accept",
9337 s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
9338 s.accepts[ s.dataTypes[ 0 ] ] +
9339 ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
9340 s.accepts[ "*" ]
9341 );
9342
9343 // Check for headers option
9344 for ( i in s.headers ) {
9345 jqXHR.setRequestHeader( i, s.headers[ i ] );
9346 }
9347
9348 // Allow custom headers/mimetypes and early abort
9349 if ( s.beforeSend &&
9350 ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
9351
9352 // Abort if not done already and return
9353 return jqXHR.abort();
9354 }
9355
9356 // Aborting is no longer a cancellation
9357 strAbort = "abort";
9358
9359 // Install callbacks on deferreds
9360 completeDeferred.add( s.complete );
9361 jqXHR.done( s.success );
9362 jqXHR.fail( s.error );
9363
9364 // Get transport
9365 transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
9366
9367 // If no transport, we auto-abort
9368 if ( !transport ) {
9369 done( -1, "No Transport" );
9370 } else {
9371 jqXHR.readyState = 1;
9372
9373 // Send global event
9374 if ( fireGlobals ) {
9375 globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
9376 }
9377
9378 // If request was aborted inside ajaxSend, stop there
9379 if ( completed ) {
9380 return jqXHR;
9381 }
9382
9383 // Timeout
9384 if ( s.async && s.timeout > 0 ) {
9385 timeoutTimer = window.setTimeout( function() {
9386 jqXHR.abort( "timeout" );
9387 }, s.timeout );
9388 }
9389
9390 try {
9391 completed = false;
9392 transport.send( requestHeaders, done );
9393 } catch ( e ) {
9394
9395 // Rethrow post-completion exceptions
9396 if ( completed ) {
9397 throw e;
9398 }
9399
9400 // Propagate others as results
9401 done( -1, e );
9402 }
9403 }
9404
9405 // Callback for when everything is done
9406 function done( status, nativeStatusText, responses, headers ) {
9407 var isSuccess, success, error, response, modified,
9408 statusText = nativeStatusText;
9409
9410 // Ignore repeat invocations
9411 if ( completed ) {
9412 return;
9413 }
9414
9415 completed = true;
9416
9417 // Clear timeout if it exists
9418 if ( timeoutTimer ) {
9419 window.clearTimeout( timeoutTimer );
9420 }
9421
9422 // Dereference transport for early garbage collection
9423 // (no matter how long the jqXHR object will be used)
9424 transport = undefined;
9425
9426 // Cache response headers
9427 responseHeadersString = headers || "";
9428
9429 // Set readyState
9430 jqXHR.readyState = status > 0 ? 4 : 0;
9431
9432 // Determine if successful
9433 isSuccess = status >= 200 && status < 300 || status === 304;
9434
9435 // Get response data
9436 if ( responses ) {
9437 response = ajaxHandleResponses( s, jqXHR, responses );
9438 }
9439
9440 // Convert no matter what (that way responseXXX fields are always set)
9441 response = ajaxConvert( s, response, jqXHR, isSuccess );
9442
9443 // If successful, handle type chaining
9444 if ( isSuccess ) {
9445
9446 // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
9447 if ( s.ifModified ) {
9448 modified = jqXHR.getResponseHeader( "Last-Modified" );
9449 if ( modified ) {
9450 jQuery.lastModified[ cacheURL ] = modified;
9451 }
9452 modified = jqXHR.getResponseHeader( "etag" );
9453 if ( modified ) {
9454 jQuery.etag[ cacheURL ] = modified;
9455 }
9456 }
9457
9458 // if no content
9459 if ( status === 204 || s.type === "HEAD" ) {
9460 statusText = "nocontent";
9461
9462 // if not modified
9463 } else if ( status === 304 ) {
9464 statusText = "notmodified";
9465
9466 // If we have data, let's convert it
9467 } else {
9468 statusText = response.state;
9469 success = response.data;
9470 error = response.error;
9471 isSuccess = !error;
9472 }
9473 } else {
9474
9475 // Extract error from statusText and normalize for non-aborts
9476 error = statusText;
9477 if ( status || !statusText ) {
9478 statusText = "error";
9479 if ( status < 0 ) {
9480 status = 0;
9481 }
9482 }
9483 }
9484
9485 // Set data for the fake xhr object
9486 jqXHR.status = status;
9487 jqXHR.statusText = ( nativeStatusText || statusText ) + "";
9488
9489 // Success/Error
9490 if ( isSuccess ) {
9491 deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
9492 } else {
9493 deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
9494 }
9495
9496 // Status-dependent callbacks
9497 jqXHR.statusCode( statusCode );
9498 statusCode = undefined;
9499
9500 if ( fireGlobals ) {
9501 globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
9502 [ jqXHR, s, isSuccess ? success : error ] );
9503 }
9504
9505 // Complete
9506 completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
9507
9508 if ( fireGlobals ) {
9509 globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
9510
9511 // Handle the global AJAX counter
9512 if ( !( --jQuery.active ) ) {
9513 jQuery.event.trigger( "ajaxStop" );
9514 }
9515 }
9516 }
9517
9518 return jqXHR;
9519 },
9520
9521 getJSON: function( url, data, callback ) {
9522 return jQuery.get( url, data, callback, "json" );
9523 },
9524
9525 getScript: function( url, callback ) {
9526 return jQuery.get( url, undefined, callback, "script" );
9527 }
9528} );
9529
9530jQuery.each( [ "get", "post" ], function( i, method ) {
9531 jQuery[ method ] = function( url, data, callback, type ) {
9532
9533 // Shift arguments if data argument was omitted
9534 if ( isFunction( data ) ) {
9535 type = type || callback;
9536 callback = data;
9537 data = undefined;
9538 }
9539
9540 // The url can be an options object (which then must have .url)
9541 return jQuery.ajax( jQuery.extend( {
9542 url: url,
9543 type: method,
9544 dataType: type,
9545 data: data,
9546 success: callback
9547 }, jQuery.isPlainObject( url ) && url ) );
9548 };
9549} );
9550
9551
9552jQuery._evalUrl = function( url ) {
9553 return jQuery.ajax( {
9554 url: url,
9555
9556 // Make this explicit, since user can override this through ajaxSetup (#11264)
9557 type: "GET",
9558 dataType: "script",
9559 cache: true,
9560 async: false,
9561 global: false,
9562 "throws": true
9563 } );
9564};
9565
9566
9567jQuery.fn.extend( {
9568 wrapAll: function( html ) {
9569 var wrap;
9570
9571 if ( this[ 0 ] ) {
9572 if ( isFunction( html ) ) {
9573 html = html.call( this[ 0 ] );
9574 }
9575
9576 // The elements to wrap the target around
9577 wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
9578
9579 if ( this[ 0 ].parentNode ) {
9580 wrap.insertBefore( this[ 0 ] );
9581 }
9582
9583 wrap.map( function() {
9584 var elem = this;
9585
9586 while ( elem.firstElementChild ) {
9587 elem = elem.firstElementChild;
9588 }
9589
9590 return elem;
9591 } ).append( this );
9592 }
9593
9594 return this;
9595 },
9596
9597 wrapInner: function( html ) {
9598 if ( isFunction( html ) ) {
9599 return this.each( function( i ) {
9600 jQuery( this ).wrapInner( html.call( this, i ) );
9601 } );
9602 }
9603
9604 return this.each( function() {
9605 var self = jQuery( this ),
9606 contents = self.contents();
9607
9608 if ( contents.length ) {
9609 contents.wrapAll( html );
9610
9611 } else {
9612 self.append( html );
9613 }
9614 } );
9615 },
9616
9617 wrap: function( html ) {
9618 var htmlIsFunction = isFunction( html );
9619
9620 return this.each( function( i ) {
9621 jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );
9622 } );
9623 },
9624
9625 unwrap: function( selector ) {
9626 this.parent( selector ).not( "body" ).each( function() {
9627 jQuery( this ).replaceWith( this.childNodes );
9628 } );
9629 return this;
9630 }
9631} );
9632
9633
9634jQuery.expr.pseudos.hidden = function( elem ) {
9635 return !jQuery.expr.pseudos.visible( elem );
9636};
9637jQuery.expr.pseudos.visible = function( elem ) {
9638 return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
9639};
9640
9641
9642
9643
9644jQuery.ajaxSettings.xhr = function() {
9645 try {
9646 return new window.XMLHttpRequest();
9647 } catch ( e ) {}
9648};
9649
9650var xhrSuccessStatus = {
9651
9652 // File protocol always yields status code 0, assume 200
9653 0: 200,
9654
9655 // Support: IE <=9 only
9656 // #1450: sometimes IE returns 1223 when it should be 204
9657 1223: 204
9658 },
9659 xhrSupported = jQuery.ajaxSettings.xhr();
9660
9661support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
9662support.ajax = xhrSupported = !!xhrSupported;
9663
9664jQuery.ajaxTransport( function( options ) {
9665 var callback, errorCallback;
9666
9667 // Cross domain only allowed if supported through XMLHttpRequest
9668 if ( support.cors || xhrSupported && !options.crossDomain ) {
9669 return {
9670 send: function( headers, complete ) {
9671 var i,
9672 xhr = options.xhr();
9673
9674 xhr.open(
9675 options.type,
9676 options.url,
9677 options.async,
9678 options.username,
9679 options.password
9680 );
9681
9682 // Apply custom fields if provided
9683 if ( options.xhrFields ) {
9684 for ( i in options.xhrFields ) {
9685 xhr[ i ] = options.xhrFields[ i ];
9686 }
9687 }
9688
9689 // Override mime type if needed
9690 if ( options.mimeType && xhr.overrideMimeType ) {
9691 xhr.overrideMimeType( options.mimeType );
9692 }
9693
9694 // X-Requested-With header
9695 // For cross-domain requests, seeing as conditions for a preflight are
9696 // akin to a jigsaw puzzle, we simply never set it to be sure.
9697 // (it can always be set on a per-request basis or even using ajaxSetup)
9698 // For same-domain requests, won't change header if already provided.
9699 if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
9700 headers[ "X-Requested-With" ] = "XMLHttpRequest";
9701 }
9702
9703 // Set headers
9704 for ( i in headers ) {
9705 xhr.setRequestHeader( i, headers[ i ] );
9706 }
9707
9708 // Callback
9709 callback = function( type ) {
9710 return function() {
9711 if ( callback ) {
9712 callback = errorCallback = xhr.onload =
9713 xhr.onerror = xhr.onabort = xhr.ontimeout =
9714 xhr.onreadystatechange = null;
9715
9716 if ( type === "abort" ) {
9717 xhr.abort();
9718 } else if ( type === "error" ) {
9719
9720 // Support: IE <=9 only
9721 // On a manual native abort, IE9 throws
9722 // errors on any property access that is not readyState
9723 if ( typeof xhr.status !== "number" ) {
9724 complete( 0, "error" );
9725 } else {
9726 complete(
9727
9728 // File: protocol always yields status 0; see #8605, #14207
9729 xhr.status,
9730 xhr.statusText
9731 );
9732 }
9733 } else {
9734 complete(
9735 xhrSuccessStatus[ xhr.status ] || xhr.status,
9736 xhr.statusText,
9737
9738 // Support: IE <=9 only
9739 // IE9 has no XHR2 but throws on binary (trac-11426)
9740 // For XHR2 non-text, let the caller handle it (gh-2498)
9741 ( xhr.responseType || "text" ) !== "text" ||
9742 typeof xhr.responseText !== "string" ?
9743 { binary: xhr.response } :
9744 { text: xhr.responseText },
9745 xhr.getAllResponseHeaders()
9746 );
9747 }
9748 }
9749 };
9750 };
9751
9752 // Listen to events
9753 xhr.onload = callback();
9754 errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" );
9755
9756 // Support: IE 9 only
9757 // Use onreadystatechange to replace onabort
9758 // to handle uncaught aborts
9759 if ( xhr.onabort !== undefined ) {
9760 xhr.onabort = errorCallback;
9761 } else {
9762 xhr.onreadystatechange = function() {
9763
9764 // Check readyState before timeout as it changes
9765 if ( xhr.readyState === 4 ) {
9766
9767 // Allow onerror to be called first,
9768 // but that will not handle a native abort
9769 // Also, save errorCallback to a variable
9770 // as xhr.onerror cannot be accessed
9771 window.setTimeout( function() {
9772 if ( callback ) {
9773 errorCallback();
9774 }
9775 } );
9776 }
9777 };
9778 }
9779
9780 // Create the abort callback
9781 callback = callback( "abort" );
9782
9783 try {
9784
9785 // Do send the request (this may raise an exception)
9786 xhr.send( options.hasContent && options.data || null );
9787 } catch ( e ) {
9788
9789 // #14683: Only rethrow if this hasn't been notified as an error yet
9790 if ( callback ) {
9791 throw e;
9792 }
9793 }
9794 },
9795
9796 abort: function() {
9797 if ( callback ) {
9798 callback();
9799 }
9800 }
9801 };
9802 }
9803} );
9804
9805
9806
9807
9808// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
9809jQuery.ajaxPrefilter( function( s ) {
9810 if ( s.crossDomain ) {
9811 s.contents.script = false;
9812 }
9813} );
9814
9815// Install script dataType
9816jQuery.ajaxSetup( {
9817 accepts: {
9818 script: "text/javascript, application/javascript, " +
9819 "application/ecmascript, application/x-ecmascript"
9820 },
9821 contents: {
9822 script: /\b(?:java|ecma)script\b/
9823 },
9824 converters: {
9825 "text script": function( text ) {
9826 jQuery.globalEval( text );
9827 return text;
9828 }
9829 }
9830} );
9831
9832// Handle cache's special case and crossDomain
9833jQuery.ajaxPrefilter( "script", function( s ) {
9834 if ( s.cache === undefined ) {
9835 s.cache = false;
9836 }
9837 if ( s.crossDomain ) {
9838 s.type = "GET";
9839 }
9840} );
9841
9842// Bind script tag hack transport
9843jQuery.ajaxTransport( "script", function( s ) {
9844
9845 // This transport only deals with cross domain requests
9846 if ( s.crossDomain ) {
9847 var script, callback;
9848 return {
9849 send: function( _, complete ) {
9850 script = jQuery( "<script>" ).prop( {
9851 charset: s.scriptCharset,
9852 src: s.url
9853 } ).on(
9854 "load error",
9855 callback = function( evt ) {
9856 script.remove();
9857 callback = null;
9858 if ( evt ) {
9859 complete( evt.type === "error" ? 404 : 200, evt.type );
9860 }
9861 }
9862 );
9863
9864 // Use native DOM manipulation to avoid our domManip AJAX trickery
9865 document.head.appendChild( script[ 0 ] );
9866 },
9867 abort: function() {
9868 if ( callback ) {
9869 callback();
9870 }
9871 }
9872 };
9873 }
9874} );
9875
9876
9877
9878
9879var oldCallbacks = [],
9880 rjsonp = /(=)\?(?=&|$)|\?\?/;
9881
9882// Default jsonp settings
9883jQuery.ajaxSetup( {
9884 jsonp: "callback",
9885 jsonpCallback: function() {
9886 var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
9887 this[ callback ] = true;
9888 return callback;
9889 }
9890} );
9891
9892// Detect, normalize options and install callbacks for jsonp requests
9893jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
9894
9895 var callbackName, overwritten, responseContainer,
9896 jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
9897 "url" :
9898 typeof s.data === "string" &&
9899 ( s.contentType || "" )
9900 .indexOf( "application/x-www-form-urlencoded" ) === 0 &&
9901 rjsonp.test( s.data ) && "data"
9902 );
9903
9904 // Handle iff the expected data type is "jsonp" or we have a parameter to set
9905 if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
9906
9907 // Get callback name, remembering preexisting value associated with it
9908 callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?
9909 s.jsonpCallback() :
9910 s.jsonpCallback;
9911
9912 // Insert callback into url or form data
9913 if ( jsonProp ) {
9914 s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
9915 } else if ( s.jsonp !== false ) {
9916 s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
9917 }
9918
9919 // Use data converter to retrieve json after script execution
9920 s.converters[ "script json" ] = function() {
9921 if ( !responseContainer ) {
9922 jQuery.error( callbackName + " was not called" );
9923 }
9924 return responseContainer[ 0 ];
9925 };
9926
9927 // Force json dataType
9928 s.dataTypes[ 0 ] = "json";
9929
9930 // Install callback
9931 overwritten = window[ callbackName ];
9932 window[ callbackName ] = function() {
9933 responseContainer = arguments;
9934 };
9935
9936 // Clean-up function (fires after converters)
9937 jqXHR.always( function() {
9938
9939 // If previous value didn't exist - remove it
9940 if ( overwritten === undefined ) {
9941 jQuery( window ).removeProp( callbackName );
9942
9943 // Otherwise restore preexisting value
9944 } else {
9945 window[ callbackName ] = overwritten;
9946 }
9947
9948 // Save back as free
9949 if ( s[ callbackName ] ) {
9950
9951 // Make sure that re-using the options doesn't screw things around
9952 s.jsonpCallback = originalSettings.jsonpCallback;
9953
9954 // Save the callback name for future use
9955 oldCallbacks.push( callbackName );
9956 }
9957
9958 // Call if it was a function and we have a response
9959 if ( responseContainer && isFunction( overwritten ) ) {
9960 overwritten( responseContainer[ 0 ] );
9961 }
9962
9963 responseContainer = overwritten = undefined;
9964 } );
9965
9966 // Delegate to script
9967 return "script";
9968 }
9969} );
9970
9971
9972
9973
9974// Support: Safari 8 only
9975// In Safari 8 documents created via document.implementation.createHTMLDocument
9976// collapse sibling forms: the second one becomes a child of the first one.
9977// Because of that, this security measure has to be disabled in Safari 8.
9978// https://bugs.webkit.org/show_bug.cgi?id=137337
9979support.createHTMLDocument = ( function() {
9980 var body = document.implementation.createHTMLDocument( "" ).body;
9981 body.innerHTML = "<form></form><form></form>";
9982 return body.childNodes.length === 2;
9983} )();
9984
9985
9986// Argument "data" should be string of html
9987// context (optional): If specified, the fragment will be created in this context,
9988// defaults to document
9989// keepScripts (optional): If true, will include scripts passed in the html string
9990jQuery.parseHTML = function( data, context, keepScripts ) {
9991 if ( typeof data !== "string" ) {
9992 return [];
9993 }
9994 if ( typeof context === "boolean" ) {
9995 keepScripts = context;
9996 context = false;
9997 }
9998
9999 var base, parsed, scripts;
10000
10001 if ( !context ) {
10002
10003 // Stop scripts or inline event handlers from being executed immediately
10004 // by using document.implementation
10005 if ( support.createHTMLDocument ) {
10006 context = document.implementation.createHTMLDocument( "" );
10007
10008 // Set the base href for the created document
10009 // so any parsed elements with URLs
10010 // are based on the document's URL (gh-2965)
10011 base = context.createElement( "base" );
10012 base.href = document.location.href;
10013 context.head.appendChild( base );
10014 } else {
10015 context = document;
10016 }
10017 }
10018
10019 parsed = rsingleTag.exec( data );
10020 scripts = !keepScripts && [];
10021
10022 // Single tag
10023 if ( parsed ) {
10024 return [ context.createElement( parsed[ 1 ] ) ];
10025 }
10026
10027 parsed = buildFragment( [ data ], context, scripts );
10028
10029 if ( scripts && scripts.length ) {
10030 jQuery( scripts ).remove();
10031 }
10032
10033 return jQuery.merge( [], parsed.childNodes );
10034};
10035
10036
10037/**
10038 * Load a url into a page
10039 */
10040jQuery.fn.load = function( url, params, callback ) {
10041 var selector, type, response,
10042 self = this,
10043 off = url.indexOf( " " );
10044
10045 if ( off > -1 ) {
10046 selector = stripAndCollapse( url.slice( off ) );
10047 url = url.slice( 0, off );
10048 }
10049
10050 // If it's a function
10051 if ( isFunction( params ) ) {
10052
10053 // We assume that it's the callback
10054 callback = params;
10055 params = undefined;
10056
10057 // Otherwise, build a param string
10058 } else if ( params && typeof params === "object" ) {
10059 type = "POST";
10060 }
10061
10062 // If we have elements to modify, make the request
10063 if ( self.length > 0 ) {
10064 jQuery.ajax( {
10065 url: url,
10066
10067 // If "type" variable is undefined, then "GET" method will be used.
10068 // Make value of this field explicit since
10069 // user can override it through ajaxSetup method
10070 type: type || "GET",
10071 dataType: "html",
10072 data: params
10073 } ).done( function( responseText ) {
10074
10075 // Save response for use in complete callback
10076 response = arguments;
10077
10078 self.html( selector ?
10079
10080 // If a selector was specified, locate the right elements in a dummy div
10081 // Exclude scripts to avoid IE 'Permission Denied' errors
10082 jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
10083
10084 // Otherwise use the full result
10085 responseText );
10086
10087 // If the request succeeds, this function gets "data", "status", "jqXHR"
10088 // but they are ignored because response was set above.
10089 // If it fails, this function gets "jqXHR", "status", "error"
10090 } ).always( callback && function( jqXHR, status ) {
10091 self.each( function() {
10092 callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
10093 } );
10094 } );
10095 }
10096
10097 return this;
10098};
10099
10100
10101
10102
10103// Attach a bunch of functions for handling common AJAX events
10104jQuery.each( [
10105 "ajaxStart",
10106 "ajaxStop",
10107 "ajaxComplete",
10108 "ajaxError",
10109 "ajaxSuccess",
10110 "ajaxSend"
10111], function( i, type ) {
10112 jQuery.fn[ type ] = function( fn ) {
10113 return this.on( type, fn );
10114 };
10115} );
10116
10117
10118
10119
10120jQuery.expr.pseudos.animated = function( elem ) {
10121 return jQuery.grep( jQuery.timers, function( fn ) {
10122 return elem === fn.elem;
10123 } ).length;
10124};
10125
10126
10127
10128
10129jQuery.offset = {
10130 setOffset: function( elem, options, i ) {
10131 var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
10132 position = jQuery.css( elem, "position" ),
10133 curElem = jQuery( elem ),
10134 props = {};
10135
10136 // Set position first, in-case top/left are set even on static elem
10137 if ( position === "static" ) {
10138 elem.style.position = "relative";
10139 }
10140
10141 curOffset = curElem.offset();
10142 curCSSTop = jQuery.css( elem, "top" );
10143 curCSSLeft = jQuery.css( elem, "left" );
10144 calculatePosition = ( position === "absolute" || position === "fixed" ) &&
10145 ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
10146
10147 // Need to be able to calculate position if either
10148 // top or left is auto and position is either absolute or fixed
10149 if ( calculatePosition ) {
10150 curPosition = curElem.position();
10151 curTop = curPosition.top;
10152 curLeft = curPosition.left;
10153
10154 } else {
10155 curTop = parseFloat( curCSSTop ) || 0;
10156 curLeft = parseFloat( curCSSLeft ) || 0;
10157 }
10158
10159 if ( isFunction( options ) ) {
10160
10161 // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
10162 options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
10163 }
10164
10165 if ( options.top != null ) {
10166 props.top = ( options.top - curOffset.top ) + curTop;
10167 }
10168 if ( options.left != null ) {
10169 props.left = ( options.left - curOffset.left ) + curLeft;
10170 }
10171
10172 if ( "using" in options ) {
10173 options.using.call( elem, props );
10174
10175 } else {
10176 curElem.css( props );
10177 }
10178 }
10179};
10180
10181jQuery.fn.extend( {
10182
10183 // offset() relates an element's border box to the document origin
10184 offset: function( options ) {
10185
10186 // Preserve chaining for setter
10187 if ( arguments.length ) {
10188 return options === undefined ?
10189 this :
10190 this.each( function( i ) {
10191 jQuery.offset.setOffset( this, options, i );
10192 } );
10193 }
10194
10195 var rect, win,
10196 elem = this[ 0 ];
10197
10198 if ( !elem ) {
10199 return;
10200 }
10201
10202 // Return zeros for disconnected and hidden (display: none) elements (gh-2310)
10203 // Support: IE <=11 only
10204 // Running getBoundingClientRect on a
10205 // disconnected node in IE throws an error
10206 if ( !elem.getClientRects().length ) {
10207 return { top: 0, left: 0 };
10208 }
10209
10210 // Get document-relative position by adding viewport scroll to viewport-relative gBCR
10211 rect = elem.getBoundingClientRect();
10212 win = elem.ownerDocument.defaultView;
10213 return {
10214 top: rect.top + win.pageYOffset,
10215 left: rect.left + win.pageXOffset
10216 };
10217 },
10218
10219 // position() relates an element's margin box to its offset parent's padding box
10220 // This corresponds to the behavior of CSS absolute positioning
10221 position: function() {
10222 if ( !this[ 0 ] ) {
10223 return;
10224 }
10225
10226 var offsetParent, offset, doc,
10227 elem = this[ 0 ],
10228 parentOffset = { top: 0, left: 0 };
10229
10230 // position:fixed elements are offset from the viewport, which itself always has zero offset
10231 if ( jQuery.css( elem, "position" ) === "fixed" ) {
10232
10233 // Assume position:fixed implies availability of getBoundingClientRect
10234 offset = elem.getBoundingClientRect();
10235
10236 } else {
10237 offset = this.offset();
10238
10239 // Account for the *real* offset parent, which can be the document or its root element
10240 // when a statically positioned element is identified
10241 doc = elem.ownerDocument;
10242 offsetParent = elem.offsetParent || doc.documentElement;
10243 while ( offsetParent &&
10244 ( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
10245 jQuery.css( offsetParent, "position" ) === "static" ) {
10246
10247 offsetParent = offsetParent.parentNode;
10248 }
10249 if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
10250
10251 // Incorporate borders into its offset, since they are outside its content origin
10252 parentOffset = jQuery( offsetParent ).offset();
10253 parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
10254 parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
10255 }
10256 }
10257
10258 // Subtract parent offsets and element margins
10259 return {
10260 top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
10261 left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
10262 };
10263 },
10264
10265 // This method will return documentElement in the following cases:
10266 // 1) For the element inside the iframe without offsetParent, this method will return
10267 // documentElement of the parent window
10268 // 2) For the hidden or detached element
10269 // 3) For body or html element, i.e. in case of the html node - it will return itself
10270 //
10271 // but those exceptions were never presented as a real life use-cases
10272 // and might be considered as more preferable results.
10273 //
10274 // This logic, however, is not guaranteed and can change at any point in the future
10275 offsetParent: function() {
10276 return this.map( function() {
10277 var offsetParent = this.offsetParent;
10278
10279 while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
10280 offsetParent = offsetParent.offsetParent;
10281 }
10282
10283 return offsetParent || documentElement;
10284 } );
10285 }
10286} );
10287
10288// Create scrollLeft and scrollTop methods
10289jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
10290 var top = "pageYOffset" === prop;
10291
10292 jQuery.fn[ method ] = function( val ) {
10293 return access( this, function( elem, method, val ) {
10294
10295 // Coalesce documents and windows
10296 var win;
10297 if ( isWindow( elem ) ) {
10298 win = elem;
10299 } else if ( elem.nodeType === 9 ) {
10300 win = elem.defaultView;
10301 }
10302
10303 if ( val === undefined ) {
10304 return win ? win[ prop ] : elem[ method ];
10305 }
10306
10307 if ( win ) {
10308 win.scrollTo(
10309 !top ? val : win.pageXOffset,
10310 top ? val : win.pageYOffset
10311 );
10312
10313 } else {
10314 elem[ method ] = val;
10315 }
10316 }, method, val, arguments.length );
10317 };
10318} );
10319
10320// Support: Safari <=7 - 9.1, Chrome <=37 - 49
10321// Add the top/left cssHooks using jQuery.fn.position
10322// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
10323// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
10324// getComputedStyle returns percent when specified for top/left/bottom/right;
10325// rather than make the css module depend on the offset module, just check for it here
10326jQuery.each( [ "top", "left" ], function( i, prop ) {
10327 jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
10328 function( elem, computed ) {
10329 if ( computed ) {
10330 computed = curCSS( elem, prop );
10331
10332 // If curCSS returns percentage, fallback to offset
10333 return rnumnonpx.test( computed ) ?
10334 jQuery( elem ).position()[ prop ] + "px" :
10335 computed;
10336 }
10337 }
10338 );
10339} );
10340
10341
10342// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
10343jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
10344 jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
10345 function( defaultExtra, funcName ) {
10346
10347 // Margin is only for outerHeight, outerWidth
10348 jQuery.fn[ funcName ] = function( margin, value ) {
10349 var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
10350 extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
10351
10352 return access( this, function( elem, type, value ) {
10353 var doc;
10354
10355 if ( isWindow( elem ) ) {
10356
10357 // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
10358 return funcName.indexOf( "outer" ) === 0 ?
10359 elem[ "inner" + name ] :
10360 elem.document.documentElement[ "client" + name ];
10361 }
10362
10363 // Get document width or height
10364 if ( elem.nodeType === 9 ) {
10365 doc = elem.documentElement;
10366
10367 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
10368 // whichever is greatest
10369 return Math.max(
10370 elem.body[ "scroll" + name ], doc[ "scroll" + name ],
10371 elem.body[ "offset" + name ], doc[ "offset" + name ],
10372 doc[ "client" + name ]
10373 );
10374 }
10375
10376 return value === undefined ?
10377
10378 // Get width or height on the element, requesting but not forcing parseFloat
10379 jQuery.css( elem, type, extra ) :
10380
10381 // Set width or height on the element
10382 jQuery.style( elem, type, value, extra );
10383 }, type, chainable ? margin : undefined, chainable );
10384 };
10385 } );
10386} );
10387
10388
10389jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
10390 "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
10391 "change select submit keydown keypress keyup contextmenu" ).split( " " ),
10392 function( i, name ) {
10393
10394 // Handle event binding
10395 jQuery.fn[ name ] = function( data, fn ) {
10396 return arguments.length > 0 ?
10397 this.on( name, null, data, fn ) :
10398 this.trigger( name );
10399 };
10400} );
10401
10402jQuery.fn.extend( {
10403 hover: function( fnOver, fnOut ) {
10404 return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
10405 }
10406} );
10407
10408
10409
10410
10411jQuery.fn.extend( {
10412
10413 bind: function( types, data, fn ) {
10414 return this.on( types, null, data, fn );
10415 },
10416 unbind: function( types, fn ) {
10417 return this.off( types, null, fn );
10418 },
10419
10420 delegate: function( selector, types, data, fn ) {
10421 return this.on( types, selector, data, fn );
10422 },
10423 undelegate: function( selector, types, fn ) {
10424
10425 // ( namespace ) or ( selector, types [, fn] )
10426 return arguments.length === 1 ?
10427 this.off( selector, "**" ) :
10428 this.off( types, selector || "**", fn );
10429 }
10430} );
10431
10432// Bind a function to a context, optionally partially applying any
10433// arguments.
10434// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
10435// However, it is not slated for removal any time soon
10436jQuery.proxy = function( fn, context ) {
10437 var tmp, args, proxy;
10438
10439 if ( typeof context === "string" ) {
10440 tmp = fn[ context ];
10441 context = fn;
10442 fn = tmp;
10443 }
10444
10445 // Quick check to determine if target is callable, in the spec
10446 // this throws a TypeError, but we will just return undefined.
10447 if ( !isFunction( fn ) ) {
10448 return undefined;
10449 }
10450
10451 // Simulated bind
10452 args = slice.call( arguments, 2 );
10453 proxy = function() {
10454 return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
10455 };
10456
10457 // Set the guid of unique handler to the same of original handler, so it can be removed
10458 proxy.guid = fn.guid = fn.guid || jQuery.guid++;
10459
10460 return proxy;
10461};
10462
10463jQuery.holdReady = function( hold ) {
10464 if ( hold ) {
10465 jQuery.readyWait++;
10466 } else {
10467 jQuery.ready( true );
10468 }
10469};
10470jQuery.isArray = Array.isArray;
10471jQuery.parseJSON = JSON.parse;
10472jQuery.nodeName = nodeName;
10473jQuery.isFunction = isFunction;
10474jQuery.isWindow = isWindow;
10475jQuery.camelCase = camelCase;
10476jQuery.type = toType;
10477
10478jQuery.now = Date.now;
10479
10480jQuery.isNumeric = function( obj ) {
10481
10482 // As of jQuery 3.0, isNumeric is limited to
10483 // strings and numbers (primitives or objects)
10484 // that can be coerced to finite numbers (gh-2662)
10485 var type = jQuery.type( obj );
10486 return ( type === "number" || type === "string" ) &&
10487
10488 // parseFloat NaNs numeric-cast false positives ("")
10489 // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
10490 // subtraction forces infinities to NaN
10491 !isNaN( obj - parseFloat( obj ) );
10492};
10493
10494
10495
10496
10497// Register as a named AMD module, since jQuery can be concatenated with other
10498// files that may use define, but not via a proper concatenation script that
10499// understands anonymous AMD modules. A named AMD is safest and most robust
10500// way to register. Lowercase jquery is used because AMD module names are
10501// derived from file names, and jQuery is normally delivered in a lowercase
10502// file name. Do this after creating the global so that if an AMD module wants
10503// to call noConflict to hide this version of jQuery, it will work.
10504
10505// Note that for maximum portability, libraries that are not jQuery should
10506// declare themselves as anonymous modules, and avoid setting a global if an
10507// AMD loader is present. jQuery is a special case. For more information, see
10508// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
10509
10510if ( typeof define === "function" && define.amd ) {
10511 define( "jquery", [], function() {
10512 return jQuery;
10513 } );
10514}
10515
10516
10517
10518
10519var
10520
10521 // Map over jQuery in case of overwrite
10522 _jQuery = window.jQuery,
10523
10524 // Map over the $ in case of overwrite
10525 _$ = window.$;
10526
10527jQuery.noConflict = function( deep ) {
10528 if ( window.$ === jQuery ) {
10529 window.$ = _$;
10530 }
10531
10532 if ( deep && window.jQuery === jQuery ) {
10533 window.jQuery = _jQuery;
10534 }
10535
10536 return jQuery;
10537};
10538
10539// Expose jQuery and $ identifiers, even in AMD
10540// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
10541// and CommonJS for browser emulators (#13566)
10542if ( !noGlobal ) {
10543 window.jQuery = window.$ = jQuery;
10544}
10545
10546
10547
10548
10549return jQuery;
10550} );
10551//# sourceURL=/Users/viktoria/node_modules/jquery/dist/jquery.js</script>
10552
10553
10554</head>
10555<body>
10556
10557
10558<script language="javascript">
10559 if (window.location.search.webview || window.location.href.indexOf('?webview') > -1) {
10560 $('body').addClass('webview');
10561 window.isWebview = true;
10562 }
10563</script>
10564<noscript>
10565 <div class="nojs">
10566 <h2>Willkommen bei TV NOW,</h2>
10567
10568 <p>
10569 das neue TV NOW hält viele neue Funktionen für Sie bereit. Um die Neuerungen nutzen zu können, ist es jedoch
10570 erforderlich, JavaScript zu aktivieren.<br>
10571 Alle Informationen zur Aktivierung von JavaScript erhalten Sie <a href="https://hilfe.tvnow.de/hc/de/articles/206944559"><strong>hier</strong></a>.<br><br>
10572 Ihr TV NOW Team
10573 </p>
10574 </div>
10575</noscript>
10576<div class="background">
10577 <div class="now-overlay now-overlay-search ng-hide" ng-show="overlay"><div class="arrow"></div><div class="top" ng-show="query.length <3">Bitte geben Sie mindestens 3 Buchstaben ein</div><div ng-show="initializing" class="ng-hide"><div class="top">Suche wird geladen...<br>0%</div></div><div ng-show="initialized && query.length > 2" ng-switch="(results | filter:filterAllFormats).length" class="ng-hide"><!----><div ng-switch-when="0"><div class="top">Leider keine Ergebnisse!</div><!----></div><!----><!----></div></div>
10578 <div class="now-header now-header-fixed page-player" style="overflow: hidden;"><div></div><div class="now-header-background"><div class="now-header-inner center-box" ng-class="{'tablet-view-side':isTabletHome}"><div class="now-header-content" ng-class="{'tablet-view-side':isTabletHome}" ng-controller="NowHeaderController"><div><div class="now-header-logo" ng-click="goHome()"></div></div><div ng-controller="NowAccountController"><div class="now-overlay-dark now-overlay-dark-login ng-hide" ng-show="showdark" ng-click="closeAll(true);" style="top: 80px;"></div><div ng-show="!loggedin" class="button now-header-button now-register-button now-base-background-30" ng-click="showRegistration();trackHeaderButton('registrierung');" ng-class="{'tablet-margin':isTabletRegister}"><span class="lable">Registrieren</span></div><div class="button now-login-button now-header-button now-base-background-30" ng-click="showAccount();trackHeaderButton('login');" ng-show="isTablet();"><span class="icon icon_person pull-left"></span> <span class="lable" ng-show="!loggedin">Einloggen</span> <span class="lable ng-hide" ng-show="loggedin">Mein Profil</span></div><div class="now-overlay now-overlay-myworld ng-hide" ng-show="allowedPopupTypes.indexOf(type) > -1"><div class="arrow"></div><div class="top"><span class="icon_close" ng-click="show=closeAll()"></span></div><div class="forms"><div class="alert ng-hide" ng-show="type=='alert'"><div class="alertlogin clear"><div class="icon"><span ng-class="alert.icon"></span></div><div class="info"><div ng-bind-html="alert.message|htmlize"></div></div><div class="clear"></div></div><div class="textlinks"><a ng-show="alert.buttons.regmail" ng-click="resendRegmail();" style="float:left" class="ng-hide">Erneut senden</a> <a ng-show="alert.buttons.regmail" ng-click="type='account'" style="float:right" class="ng-hide">E-Mail Adresse ändern</a><div class="clear"></div></div><div class="bottombuttons"><button ng-show="alert.buttons.login" ng-click="type='login'" class="ng-hide">ZUM LOGIN</button> <button ng-show="alert.buttons.ok" ng-click="closeAll()" class="ng-hide">OK</button> <button ng-show="alert.buttons.profil" ng-click="type='account'" class="ng-hide">MEIN PROFIL</button> <a ng-show="alert.buttons.cancel" ng-click="closeAll();" style="float:left;margin-top:20px" class="ng-hide">Abbrechen</a> <a ng-show="alert.buttons.agb" ng-click="doLogout();" style="float:left;margin-top:20px" class="ng-hide">Abbrechen</a> <button ng-show="alert.buttons.custom" ng-click="alert.buttons.custom.callback()" class="ng-hide"></button></div><div class="clear"></div></div><div class="alert ng-hide" ng-show="type=='alertlogin'"><div class="alertlogin clear"><div class="icon"><span class="icon-nowbookmark_add"></span></div><div class="info">Jetzt <a ng-click="type='login'">einloggen</a> und kostenlos die Playliste- und Favoritenfunktion nutzen.</div></div><button class="clear" ng-click="type='login'">ZUM LOGIN</button></div><div class="alert ng-hide" ng-show="type=='emailverify'"><div class="alertlogin clear"><div class="icon"><span class="icon-nowenvelop"></span></div><div class="info">Vielen Dank! Ihre E-Mail Adresse ist nun bestätigt und Sie haben Ihr Profil aktiviert.</div></div><button class="clear" ng-click="type='login'" ng-show="!loggedin">ZUM LOGIN</button> <button class="clear ng-hide" ng-click="type='account'" ng-show="loggedin">MEIN PROFIL</button></div></div></div><div class="now-fulfillment-overlay ng-hide" ng-show="allowedTypes.indexOf(type) > -1" style="top: 100px; left: 90px; height: 475px;"><iframe class="now-fulfillment-iframe" ng-src="/blank.html" frameborder="0" id="now-fulfillment-overlay-iframe" src="/blank.html"></iframe></div></div><div class="now-header-search"><form class="ng-pristine ng-valid"><input placeholder="Suchen" ng-model="service.query" class="search-input ng-pristine ng-untouched ng-valid ng-empty" ng-model-options="{debounce: 500}"></form><span class="icon icon_M_Search pull-right"></span> <span class="icon close icon_IC_Close pull-right"></span></div><div class="icon_navigation"><div class="button button-az" ng-class="{active:isActive('/az')}" ng-click="goPage('/az',false,true)"><!----><tooltip tooltip-template="Sendungen A-Z" tooltip-side="top" class="tooltips _top _steady _ready"><tip-cont><span class="icon icon_menu_az"></span></tip-cont><tip class=""><tip-tip><span class="close-button" style="display: none;">×</span>Sendungen A-Z</tip-tip><tip-arrow></tip-arrow></tip></tooltip></div><div class="button button-missed" ng-class="{active:isActive('/sendung-verpasst')}" ng-click="goPage('/sendung-verpasst',false,true)"><!----><tooltip tooltip-template="Sendung verpasst?" tooltip-side="top" class="tooltips _top _steady _ready"><tip-cont><span class="icon icon_menu_missed"></span></tip-cont><tip class=""><tip-tip><span class="close-button" style="display: none;">×</span>Sendung verpasst?</tip-tip><tip-arrow></tip-arrow></tip></tooltip></div><div class="button button-livetv" ng-class="{active:isActive('/live-tv')}" ng-click="goPage('/live-tv',false,true)"><!----><tooltip tooltip-template="Live TV" tooltip-side="top" class="tooltips _top _steady _ready"><tip-cont><span class="icon icon_menu_live"></span></tip-cont><tip class=""><tip-tip><span class="close-button" style="display: none;">×</span>Live TV</tip-tip><tip-arrow></tip-arrow></tip></tooltip></div><div class="button button-tvprogramme" ng-class="{active:isActive('/tv-programm')}" ng-click="goPage('/tv-programm')"><!----><tooltip tooltip-template="TV Programm" tooltip-side="top" class="tooltips _top _steady _ready"><tip-cont><span class="icon icon_menu_epg"></span></tip-cont><tip class=""><tip-tip><span class="close-button" style="display: none;">×</span>TV Programm</tip-tip><tip-arrow></tip-arrow></tip></tooltip></div><div class="button button-channels" ng-class="{active:isActive('/channels')}" ng-click="goPage('/channels',false,true)"><!----><tooltip tooltip-template="Channels" tooltip-side="top" class="tooltips _top _steady _ready"><tip-cont><span class="icon icon_menu_channels"></span></tip-cont><tip class=""><tip-tip><span class="close-button" style="display: none;">×</span>Channels</tip-tip><tip-arrow></tip-arrow></tip></tooltip></div><div class="button button-myprogramme" ng-class="{active:isActive('/meine-merkliste')}" ng-click="goPage('/meine-merkliste',false,true)"><!----><tooltip tooltip-template=" Meine Merkliste" tooltip-side="top" class="tooltips _top _steady _ready"><tip-cont><span class="icon icon_menu_playlist"></span></tip-cont><tip class=""><tip-tip><span class="close-button" style="display: none;">×</span>Meine Merkliste</tip-tip><tip-arrow></tip-arrow></tip></tooltip></div><div class="button navi-search-button" ng-click="togleSearch()"><!----><tooltip tooltip-template="Suche" tooltip-side="top" class="tooltips _top _steady _ready"><tip-cont><span class="icon icon_menu_search"></span></tip-cont><tip class=""><tip-tip><span class="close-button" style="display: none;">×</span>Suche</tip-tip><tip-arrow></tip-arrow></tip></tooltip></div></div></div></div></div><div class="now-navigation now-base-background-50" ng-controller="NowHeaderController"><div class="now-navigation-inner center-box" ng-class="{'tablet-view-side':isTabletHome}"><div class="now-navigation-buttons"><div class="button now-navigation-button now-navigation-button-az" ng-class="{active:isActive('/az')}" ng-click="goPage('/az',false,true)"><div class="now-navigation-button-inner show-l show-m"><span class="icon icon_menu_az"></span> Sendungen A-Z</div><div class="now-navigation-button-inner show-s"><span class="icon icon_menu_az"></span> A-Z</div></div><div class="button now-navigation-button now-navigation-button-missed" ng-class="{active:isActive('/sendung-verpasst')}" ng-click="goPage('/sendung-verpasst',false,true)"><div class="now-navigation-button-inner"><span class="icon icon_menu_missed"></span> Sendung verpasst?</div></div><div class="button now-navigation-button now-navigation-button-live" ng-class="{active:isActive('live-tv')}" ng-click="goPage('/live-tv')"><div class="now-navigation-button-inner"><span class="icon icon_menu_live"></span> Live TV</div></div><div class="button now-navigation-button now-navigation-button-epg" ng-class="{active:isActive('tv-programm')}" ng-click="goPage('/tv-programm')"><div class="now-navigation-button-inner"><span class="icon icon_menu_epg"></span> TV Programm</div></div><div class="button now-navigation-button now-navigation-button-channel tour-channel" ng-class="{active:isActive('/channels',false,true)}" ng-click="goPage('/channels',false,true)"><div class="now-navigation-button-inner"><span class="icon icon_menu_channels"></span> Channels</div></div><div class="button now-navigation-button now-navigation-button-myprogramm tour-myprogramm" ng-class="{active:isActive('/meine-merkliste')}" ng-click="goPage('/meine-merkliste',false,true)"><div class="now-navigation-button-inner show-l show-m"><span class="icon icon_menu_playlist"></span> Meine Merkliste<span class="now-badge ng-hide" ng-show="(favcount > 0)">0</span></div><div class="now-navigation-button-inner show-s"><span class="icon icon_menu_playlist"></span> Merkliste<span class="now-badge ng-hide" ng-show="(favcount > 0)">0</span></div></div></div></div></div></div>
10579 <div class="now-content-top-spacer now-content-top-spacer-fixed"></div>
10580 <div class="now-content center-box" ng-class="{'tablet-view-box':isTablet}"><div id="mediamind_wallpaper" style="position: absolute; top: -10px; left: 1270px;"></div>
10581 <div class="billboard-wrapper">
10582 <div id="superbanner_1" class="gujAd superbanner now-dom-clean-children ng-hide GujAdInUse" ng-show="showInPageAd" style="display: block;" data-google-query-id="CIfx6ere3NkCFcI54AoddZIHxQ"><div id="google_ads_iframe_/6032/rtl-now.de/sendung_0__container__" style="border: 0pt none;"><iframe width="728" height="90" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" id="google_adalliance_iframe_138224078317" name="google_adalliance_iframe_138224078317" src="javascript:"<html><body style='background:transparent'></body></html>"" style="border: 0px; vertical-align: bottom;"></iframe><iframe id="google_ads_iframe_/6032/rtl-now.de/sendung_0" title="3rd party ad content" name="google_ads_iframe_/6032/rtl-now.de/sendung_0" width="728" height="90" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" srcdoc="" style="border: 0px; vertical-align: bottom; display: none; visibility: hidden;"></iframe></div></div>
10583 </div>
10584 <div id="wallpaper_1" class="wallpaper gujAd now-dom-clean-children ng-hide GujAdHidden" ng-show="showInPageAd" data-google-query-id="CInx6ere3NkCFcI54AoddZIHxQ" style="display: none;"><div id="google_ads_iframe_/6032/rtl-now.de/sendung_1__container__" style="border: 0pt none;"><iframe id="google_ads_iframe_/6032/rtl-now.de/sendung_1" title="3rd party ad content" name="google_ads_iframe_/6032/rtl-now.de/sendung_1" width="728" height="600" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" srcdoc="" style="border: 0px; vertical-align: bottom; display: none;"></iframe></div></div>
10585 <div class="now-content-inner" ng-class="{'tablet-view-side':isTablet}" style="margin-left: 0px;">
10586 <div class="now-breadcrumb"><!----></div>
10587 <!----><div ng-view=""><h1 ng-show="loading" class="ng-hide">PLAYER</h1><div ng-show="loading" class="center-box text-center ng-hide"></div></div>
10588 </div>
10589 <div class="sky-wrapper ng-hide" ng-show="showInPageAd">
10590 <div id="skyscraper_1" class="gujAd skyscraper now-dom-clean-children ng-hide GujAdInUse" ng-show="showInPageAd" data-google-query-id="CIjx6ere3NkCFcI54AoddZIHxQ" style=""><div id="google_ads_iframe_/6032/rtl-now.de/sendung_2__container__" style="border: 0pt none;"><div id="ftdiv3053470" style="width: 800px; height: 600px; position: fixed; z-index: 2;"><iframe width="300" height="600" frameborder="0" scrolling="no" margin="0" allowtransparency="true" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" id="ftframe3053470" name="{"clicks":{"clickTag19":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;249;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=657265113&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag18":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;248;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=133204994&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag17":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;247;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=275774721&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag16":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;246;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=671876972&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag15":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;245;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=384677054&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag14":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;244;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=71091463&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag13":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;243;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=898084853&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag12":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;242;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=624470624&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag11":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;241;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=117397950&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag10":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;220;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=759304199&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag9":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;219;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=231264223&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag8":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;218;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=645639585&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag7":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;217;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=933727080&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag6":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;216;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=754464688&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag5":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;215;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=685693243&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag4":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;214;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=621910831&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag3":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;213;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=222128608&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag2":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;212;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=942839426&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag1":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;211;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=152907539&ft_width=300&ft_height=600&url=https://www.hornbach.de","clickTag":"https://tracking.emsmobile.de/?id=138227239279&url=https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjssa3YpF6K3-rr-h9waa9SX9uP7b0lla4sKtLlevKaH3yr_ALsOc2mih-iCh9YkJOHPe0IYyaIEouawCKzAL1j7WSDNkAjWbTnA-Ly3RDrQIwG45J4iR9hwAa_8QN1mCggn6Uj3yWPec8dg3sLlYm9yoUdOi7ep6ipv3jWHW-ClYJ7byX05AGOwFKhLgnPSo3xhlbglX4VoLpwWpsBLiXIE4q0Y1bZY3okSWJcByQ10VxSX7bWNf84VSsA&sig=Cg0ArKJSzELLbFPJT0KVEAE&urlfix=1&adurl=https://servedby.flashtalking.com/click/2/90201;3053470;2154873;211;8342385/?ft_impID=3719D07FA2AE99&g=37195B3E8952E2&random=152907539&ft_width=300&ft_height=600&url=https://www.hornbach.de"},"ftServedStump":"http://servedby.flashtalking.com","impressionID":"3719D07FA2AE99","guid":"37195B3E8952E2","ftSegmentList":[],"serveDom":"https://cdn.flashtalking.com","ftServeDom":"https://cdn.flashtalking.com","ftMVT":true,"ftStatBaseURL":"https://stat.flashtalking.com/reportV3/ft.stat?105794071-3053470;2154873;","pID":"3053470","ftPlacementID":"3053470","cID":"87477","creativeID":"2154873","ftfuncid":"3053470","divID":"ftdiv3053470","adVis":1,"ftConfID":"8342385","ftGUID":"37195B3E8952E2","state":"loading","isViewable":false,"orientation":0,"maxWidth":0,"maxHeight":0,"name":"ftframe3053470"}" src="https://cdn.flashtalking.com/87477/2154873/index.html" style="width: 800px; height: 600px;"></iframe></div><iframe width="160" height="600" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" id="google_adalliance_iframe_138227239279" name="google_adalliance_iframe_138227239279" src="javascript:"<html><body style='background:transparent'></body></html>"" style="border: 0px; vertical-align: bottom; display: none;"></iframe><iframe id="google_ads_iframe_/6032/rtl-now.de/sendung_2" title="3rd party ad content" name="google_ads_iframe_/6032/rtl-now.de/sendung_2" width="160" height="600" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" srcdoc="" style="border: 0px; vertical-align: bottom; display: none; visibility: hidden;"></iframe><div id="ftpos3053470" style="width: 300px; height: 600px; position: relative; z-index: 1;"></div></div></div>
10591 </div>
10592 </div>
10593
10594 <nowfooter><div class="now-footer now-base-background-50"><div class="now-footer-content center-box text-center" ng-class="{'tablet-view-footer':vm.isTabletFooter}"><div class="now-footer-nav"><a href="http://hilfe.tvnow.de" class="tour-help-contact" ng-click="vm.trackEvent('hilfe_kontakt');">Hilfe & Kontakt</a> | <a href="/impressum" ng-click="vm.trackEvent('impressum');">Impressum</a> | <a href="/agb" ng-click="vm.trackEvent('agb');">AGB</a> | <a href="/datenschutz" ng-click="vm.trackEvent('datenschutz');">Datenschutz</a> | <a href="http://tvnowstatic-a.akamaihd.net/pms/widerrufsformular-now.pdf" ng-click="trackEvent('widerruf');">Widerrufsformular</a><br><a href="http://www.ip-deutschland.de/datenschutzinfo_online-werbung" ng-click="vm.trackEvent('nutzungsbasierte_werbung');">Nutzungsbasierte Online-Werbung</a> | <a href="http://www.ip.de/loadfile.cfml?file=%3A9P%2EHPH_%23H8%2EOM%224V3AU%23NY%29-K%3D%26PJ%2E%2E%29EPH%20%0A&type=application%2Fx-pdf&type=application/pdf" ng-click="vm.trackEvent('werben_auf_now');">Werben auf TV NOW</a> | <a href="/glossar" ng-click="trackEvent('glossar');">Glossar</a> | <a href="#" ng-click="vm.toggleVideo()" ng-hide="vm.disableVideo">Vorschauvideos deaktivieren</a> | <a href="#" ng-click="vm.toggleVideo()" ng-show="vm.disableVideo" class="ng-hide">Vorschauvideos aktivieren</a><br><table class="footer-station-logos center-box text-center"><tbody><tr><td colspan="8"> </td></tr></tbody></table></div><span data-ng-click="vm.clickVersion()">©</span> 2018 RTL interactive GmbH <span class="version ng-hide" data-ng-show="vm.showVersion"><br>2605</span><span class="version ng-hide" data-ng-show="vm.forceHTML5"><br>HTML5Mode aktiv</span><br><div class="debugbar ng-hide" ng-class="{expanded:vm.expand}" ng-show="vm.debugMode"><div class="header">TVNOW-Debugbar - Version 2605<div class="button pull-right" ng-click="vm.expand=!vm.expand"><span class="icon icon_arrow_down" ng-class="{icon_arrow_down:!vm.expand,icon_arrow_up:vm.expand}"></span></div></div><div class="content"><div class="column"><div class="header">Optionen</div><div class="button" ng-class="{active:vm.forceHTML5}" ng-click="vm.forceHTML5=!vm.forceHTML5"><span ng-show="vm.forceHTML5" class="ng-hide">HTML5-Mode deaktivieren</span> <span ng-hide="vm.forceHTML5">HTML5-Mode aktivieren</span></div><div class="button" ng-click="vm.logout()">Logout</div><div class="button" ng-click="vm.clearStorage()">Local- und Sessionstorage löschen</div></div><div class="column"><div class="header">Logs - <a ng-click="vm.logs = []">löschen</a></div><table class="logs"><thead><tr><td>#</td><td>Log</td></tr></thead><tbody><!----></tbody></table></div></div></div></div></div></nowfooter>
10595 <customheader><div class="og"></div></customheader>
10596 <div class="now-playerlayer" now-adcontrol="" ng-show="show"><div ng-show="showNoFlash" class="ng-hide"><now-html5-overlay show="showNoFlash"><div class="no-flash-overlay" ng-click="close()"><div class="description" ng-click="$event.stopPropagation()"><div class="title">Gleich geht's los!<div class="closer" ng-click="close()">Hinweis schließen <span class="icon icon_close"></span></div></div><div class="sub-title">Um Videos bei TV NOW schauen zu können, musst du den Adobe Flash Player installieren und aktivieren.<br>Weitere Informationen findest du in unserer <a href="https://hilfe.tvnow.de/hc/de/articles/207118449" target="_blank">Hilfe</a>.</div><!----><!----><div ng-if="class!='unknown'"><div class="image chrome"> </div><div class="list" ng-bind-html="listhtml|htmlize"></div></div><!----><div class="clear"></div></div></div></now-html5-overlay></div><div class="videobar-spacer" ng-show="spacer"></div><div class="top"><div ng-hide="isHTML5Mode()" class="bar ng-hide"><div id="videobar_wrapper" style="overflow: hidden; height: 50px"></div></div></div><div class="content" ng-class="{'content-android':isAndroid}"><div class="player"><div id="vaa_underlay"></div><div class="player_box" ng-class="{'tablet-player':isTablet, 'tablet-player-android':isAndroid}"><!----><div id="player_wrapper" ng-if="playerWrapperShow"><div id="player_container" ng-mousemove="showBar()"><div class="html5-top"><now-videobar exit="exitPlayer"><div class="videobar" ng-class="{expanded:expand,fadeout:fadeout}" ng-hide="hidden" ng-mouseenter="killBarLeaveTimeout()" ng-mouseleave="onBarLeave()"><div class="header"><div class="menu-wrapper"><div class="menu" ng-click="(!ad)?expand=!expand:''" ng-class="{ad:ad}">Empfehlungen <span class="icon icon_arrow_down" ng-class="{icon_arrow_down:!expand,icon_arrow_up:expand}"></span></div></div><div class="closer" ng-class="{'tablet-closer':isTablet}" ng-click="close()">Player schließen <span class="icon icon_close"></span></div></div><!----><!----><div class="teasers loading" ng-if="loading && !live"><div class="loading-spinner"><div class="now-circle now-circle-pay" ng-class="{isClickable:isClickable}" custom="spin" text="Lade Daten"><div class="circle-svg"><figure class="chart" data-percent="0"><svg ng-show="tslayout === 10" width="25" height="25" class="ng-hide"><circle class="inner" cx="12" cy="14" r="10"></circle><circle class="outer" cx="12" cy="14" r="10" transform="rotate(-90, 30, 30)"></circle></svg> <svg ng-show="tslayout === 20" width="40" height="40" class="ng-hide"><circle class="inner" cx="18" cy="21" r="15"></circle></svg> <svg ng-hide="tslayout === 10 || tslayout === 20" width="60" height="60"><circle class="inner" cx="30" cy="30" r="28"></circle><circle class="outer" cx="30" cy="30" r="28" transform="rotate(-90, 30, 30)"></circle></svg></figure></div><div class="circle"><div class="spinner" style="display: block;"></div><span class="icon circleicon spin"></span></div><div class="text">Lade Daten</div></div></div></div><!----><!----></div></now-videobar></div><now-player-infobox><!----></now-player-infobox><figure class="bitmovinplayer-container" style="padding: 0px; margin: 0px; position: relative; overflow: hidden; min-height: 150px; min-width: 260px; box-sizing: content-box; background-color: black; width: 100%; height: 360px;"><video id="bitmovinplayer-video-player_container" preload="auto" width="100%" height="100%" webkit-playsinline="" playsinline="" x-webkit-airplay="deny" style="visibility: hidden; top: -1px !important; left: -1.77778px !important; width: 643.556px !important; height: 362px !important;"></video><div class="bitmovinplayer-poster" style="position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; display: block; background-size: contain; background-position: center center; background-repeat: no-repeat; background-image: none;"></div><div id="bmpui-id-121" class="bmpui-ui-uicontainer bmpui-ui-skin-custom bmpui-flexbox bmpui-player-state-prepared bmpui-layout-max-width-800"><div class="bmpui-container-wrapper"><div id="bmpui-id-109" class="bmpui-ui-container bmpui-ui-logo bmpui-bottom-right" style="top: auto; bottom: 0em;"><div class="bmpui-container-wrapper"></div><img class="logo-img" src="https://tvnowstatic-a.akamaihd.net/tvnow/styles/images/cornerlogos/ntv/cornerlogo_16zu9.png" style="" width="340px"></div><div id="bmpui-id-110" class="bmpui-ui-buffering-overlay bmpui-hidden"><div class="bmpui-container-wrapper"><div id="bmpui-id-111" class="bmpui-ui-buffering-overlay-indicator"></div><div id="bmpui-id-112" class="bmpui-ui-buffering-overlay-indicator"></div><div id="bmpui-id-113" class="bmpui-ui-buffering-overlay-indicator"></div></div></div><div id="bmpui-id-114" class="bmpui-ui-playbacktoggle-overlay"><div class="bmpui-container-wrapper"><button type="button" id="bmpui-id-115" class="bmpui-ui-hugeplaybacktogglebutton"><span class="bmpui-label">Play/Pause</span><div class="bmpui-image"></div></button></div></div><div id="bmpui-id-108" class="bmpui-ui-controlbar bmpui-hidden"><div class="bmpui-container-wrapper"><div id="bmpui-id-87" class="bmpui-ui-titlebar bmpui-hidden"><div class="bmpui-container-wrapper"><span id="bmpui-id-88" class="bmpui-ui-label bmpui-label-metadata bmpui-label-metadata-format">n-tv Dokumentation </span><span id="bmpui-id-89" class="bmpui-ui-label bmpui-label-metadata bmpui-label-metadata-title">Die Millionen-Party - Das Oktoberfest</span><span id="bmpui-id-90" class="bmpui-ui-label bmpui-label-metadata bmpui-label-metadata-description">FREE | Di. 06.03.2018 22:10</span></div></div><div id="bmpui-id-100" class="bmpui-ui-container bmpui-controlbar-top"><div class="bmpui-container-wrapper"><button type="button" id="bmpui-id-91" class="bmpui-ui-playbacktogglebutton"><span class="bmpui-label">Play/Pause</span></button><div id="bmpui-id-98" class="bmpui-ui-seekbar"><div class="bmpui-seekbar"><div class="bmpui-seekbar-backdrop"></div><div class="bmpui-seekbar-bufferlevel" style="transform: scaleX(0);"></div><div class="bmpui-seekbar-seekposition" style="transform: scaleX(0);"></div><div class="bmpui-seekbar-playbackposition"></div><div class="bmpui-seekbar-markers"></div><div class="bmpui-seekbar-playbackposition-marker"></div></div><div id="bmpui-id-92" class="bmpui-ui-seekbar-label bmpui-hidden"><div class="bmpui-container-wrapper"><div id="bmpui-id-97" class="bmpui-seekbar-label-inner"><div class="bmpui-container-wrapper"><div id="bmpui-id-95" class="bmpui-ui-component bmpui-seekbar-thumbnail"></div><div id="bmpui-id-96" class="bmpui-seekbar-label-metadata"><div class="bmpui-container-wrapper"><span id="bmpui-id-94" class="bmpui-ui-label bmpui-seekbar-label-title"></span><span id="bmpui-id-93" class="bmpui-ui-label bmpui-seekbar-label-time"></span></div></div></div></div></div></div></div><span id="bmpui-id-99" class="bmpui-ui-playbacktimelabel">00:00 / 00:00</span></div></div><div id="bmpui-id-107" class="bmpui-ui-container bmpui-controlbar-bottom"><div class="bmpui-container-wrapper"><div id="bmpui-id-85" class="bmpui-ui-fskpanel"><div class="bmpui-container-wrapper"><span id="bmpui-id-86" class="bmpui-ui-label">ab 6</span></div></div><div id="bmpui-id-83" class="bmpui-ui-partspanel"><div class="bmpui-container-wrapper"><span id="bmpui-id-79" class="bmpui-label-parts">Kapitel</span><button type="button" id="bmpui-id-80" class="bmpui-ui-partbutton active"><span class="bmpui-label">1</span></button><button type="button" id="bmpui-id-81" class="bmpui-ui-partbutton"><span class="bmpui-label">2</span></button><button type="button" id="bmpui-id-82" class="bmpui-ui-partbutton"><span class="bmpui-label">3</span></button></div></div><div id="bmpui-id-101" class="bmpui-ui-spacer"></div><button type="button" id="bmpui-id-102" class="bmpui-ui-feedbackbutton"><span class="bmpui-label">Feedback</span></button><div id="bmpui-id-103" class="bmpui-ui-volumecontrolbutton"><div class="bmpui-container-wrapper"><button type="button" id="bmpui-id-104" class="bmpui-ui-volumetogglebutton bmpui-low"><span class="bmpui-label">Volume/Mute</span></button><div id="bmpui-id-105" class="bmpui-ui-volumeslider bmpui-vertical bmpui-hidden"><div class="bmpui-seekbar"><div class="bmpui-seekbar-backdrop"></div><div class="bmpui-seekbar-bufferlevel" style="transform: scaleY(0);"></div><div class="bmpui-seekbar-seekposition"></div><div class="bmpui-seekbar-playbackposition" style="transform: scaleY(0);"></div><div class="bmpui-seekbar-markers"></div><div class="bmpui-seekbar-playbackposition-marker" style="transform: translateY(0px);"></div></div></div></div></div><button type="button" id="bmpui-id-106" class="bmpui-ui-fullscreentogglebutton"><span class="bmpui-label">Fullscreen</span></button></div></div></div></div><div id="bmpui-id-116" class="bmpui-ui-recommendation-overlay bmpui-hidden"><div class="bmpui-container-wrapper"><button type="button" id="bmpui-id-117" class="bmpui-ui-hugereplaybutton"><span class="bmpui-label">Replay</span><div class="bmpui-image"></div></button></div></div><div id="bmpui-id-118" class="bmpui-ui-errormessage-overlay bmpui-hidden"><div class="bmpui-container-wrapper"><canvas class="bmpui-ui-tvnoisecanvas"></canvas><span id="bmpui-id-119" class="bmpui-ui-errormessage-label"></span></div></div></div></div></figure></div></div><!----><div class="player_footer_wrapper ng-hide" ng-hide="isHTML5Mode()" ng-controller="NowShareController"><div class="player_share_wrapper inactive" ng-show="showPlayerAd || playerAdState == 'none' || noFlash == false" ng-class="{'inactive': !showShare}"><div class="player_share_panel inactive ng-hide" ng-class="{inactive:(!shareTime)}" ng-show="showShare"><div class="inputfield checkbox ng-hide" ng-show="showShareTime"><div class="checkbox"><input id="checkbox_share" type="checkbox" class="regular-checkbox ng-pristine ng-untouched ng-valid ng-empty" ng-model="shareTime" ng-true-value="false" ng-false-value="true"><label for="checkbox_share"></label></div><div class="label">Video teilen</div></div><div class="inputfield checkbox ng-hide" ng-show="showShareTime"><div class="checkbox"><input id="checkbox_shareTime" type="checkbox" class="regular-checkbox ng-pristine ng-untouched ng-valid ng-empty" ng-model="shareTime" ng-change="getTimecodePlayer()"><label for="checkbox_shareTime"></label></div><div class="label">Teilen ab</div></div><input class="player_time ng-pristine ng-untouched ng-valid ng-empty ng-hide" ng-show="showShareTime" ng-model="shareTimeCodeDisplay" ng-change="updateseconds()"><div class="player_time_buttons ng-hide" ng-show="showShareTime"><div class="button player_time_choose_add" ng-mousedown="modtime(+1);" ng-mouseup="cancelmod()" ng-mouseleave="cancelmod()" ng-class="{inactive:(seconds >= maxseconds)}">+</div><div class="button player_time_choose_sub" ng-mousedown="modtime(-1);" ng-mouseup="cancelmod()" ng-mouseleave="cancelmod()" ng-class="{inactive:(seconds === 0)}">-</div></div><div class="text ng-hide" ng-show="showShareTime">auf</div><div class="text" ng-hide="showShareTime">Video teilen auf</div><span class="addthis"><a class="addthis_button_facebook at300b" title="Facebook" href="#"><span class="share-icon icon icon_social_facebook"></span></a> <a class="addthis_button_twitter at300b" title="Twitter" href="#"><span class="share-icon icon icon_social_twitter"></span></a> <a class="addthis_button_google_plusone_share at300b" target="_blank" title="Google+" href="#"><span class="share-icon icon icon_social_google"></span></a> <span class="share-facebook"><a class="addthis_button_facebook_like at300b" fb:like:layout="button_count" fb:like:action="like"><div class="fb-like fb_iframe_widget" data-layout="button_count" data-action="like" data-show_faces="false" data-share="false" data-width="90" data-height="25" data-font="arial" data-href="https://www.tvnow.de/ntv/n-tv-dokumentation/die-millionen-party-das-oktoberfest/player" data-send="false" style="height: 25px;" fb-xfbml-state="parsed" fb-iframe-plugin-query="action=like&app_id=172525162793917&container_width=0&font=arial&height=25&href=https%3A%2F%2Fwww.tvnow.de%2Fntv%2Fn-tv-dokumentation%2Fdie-millionen-party-das-oktoberfest%2Fplayer&layout=button_count&locale=en_US&sdk=joey&send=false&share=false&show_faces=false&width=90"><span style="vertical-align: top; width: 0px; height: 0px; overflow: hidden;"><iframe name="f2a8c35a00cbda8" width="90px" height="25px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" title="fb:like Facebook Social Plugin" src="https://www.facebook.com/v2.6/plugins/like.php?action=like&app_id=172525162793917&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2FMs1VZf1Vg1J.js%3Fversion%3D42%23cb%3Df391bea0062786%26domain%3Dwww.tvnow.de%26origin%3Dhttps%253A%252F%252Fwww.tvnow.de%252Ffdc2b74d8f9dd%26relation%3Dparent.parent&container_width=0&font=arial&height=25&href=https%3A%2F%2Fwww.tvnow.de%2Fntv%2Fn-tv-dokumentation%2Fdie-millionen-party-das-oktoberfest%2Fplayer&layout=button_count&locale=en_US&sdk=joey&send=false&share=false&show_faces=false&width=90" style="border: none; visibility: hidden;"></iframe></span></div></a></span></span><div class="button now-closebutton pull-right ng-hide" ng-hide="isHTML5Mode()" ng-click="hideShare();"><span class="icon icon_close"></span></div></div></div><div id="sponsorbanner" class="sponsorbanner pullup" ng-show="showPlayerAd && !isNoFlash()" ng-class="{'pullup': !showShare}"></div></div><div id="breakad" class="breakad_wrapper ng-hide" ng-show="showBreakAd"><div id="breakad_1" class="gujAd breakad now-dom-clean-children"></div></div></div><div id="vaa_sky_right"></div></div></div><div id="vaa_overlay"></div></div><div id="cbdelmts"><a id="ad300-250"></a><a id="ad_halfpage"></a><a id="ad_rect1"></a><a id="ads728"></a><a id="ads_button"></a><a id="adscolumn"></a><a id="flashad"></a><a id="ad"></a><a id="ads"></a><a id="adsense"></a></div>
10597</div>
10598<div class="oldbrowser">
10599 <h2>Willkommen bei TV NOW,</h2>
10600
10601 <p>
10602 um das neue TV NOW nutzen zu können, bitten wir Sie ein Browserupdate vorzunehmen. Alle Informationen dazu
10603 erhalten Sie <a href="https://hilfe.tvnow.de/hc/de/articles/203034992-Aktualisierung-des-Browsers"><strong>hier</strong></a>.<br><br>
10604 Ihr TV NOW Team
10605 </p>
10606</div>
10607
10608<script>
10609 if ((bowser.firefox && bowser.version < 4) ||
10610 (bowser.msie && bowser.version < 11)) {
10611 document.getElementsByClassName('background')[0].style.display = 'none';
10612 document.getElementsByClassName('oldbrowser')[0].style.display = 'block';
10613 }
10614</script>
10615
10616<!-- Adform Tracking Code BEGIN -->
10617<script type="text/javascript">
10618 if (!nowSEDetected) {
10619 (function () {
10620 var s = document.createElement('script');
10621 s.type = 'text/javascript';
10622 s.async = true;
10623 s.src = 'https://track.adform.net/serving/scripts/trackpoint/async/';
10624 var x = document.getElementsByTagName('script')[0];
10625 x.parentNode.insertBefore(s, x);
10626 })();
10627
10628 (function () {
10629 var s = document.createElement('script');
10630 s.type = 'text/javascript';
10631 s.async = true;
10632 s.src = '//s7.addthis.com/js/300/addthis_widget.js#pubid=rtlnow&async=1';
10633 var x = document.getElementsByTagName('script')[0];
10634 x.parentNode.insertBefore(s, x);
10635 })();
10636 }
10637</script>
10638<!-- Adform Tracking Code END -->
10639<!-- Facebook Pixel Code -->
10640<script>
10641 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
10642 n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
10643 n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
10644 t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
10645 document,'script','https://connect.facebook.net/en_US/fbevents.js');
10646 // Insert Your Facebook Pixel ID below.
10647 fbq('init', '1579375912126150');
10648 fbq('track', 'PageView');
10649</script>
10650<!-- Insert Your Facebook Pixel ID below. -->
10651<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1579375912126150&ev=PageView&noscript=1"></noscript>
10652<!-- End Facebook Pixel Code -->
10653<!-- Piwik Tracking Code BEGIN -->
10654<script type="text/javascript">
10655 var _spef = _spef || [];
10656 _spef.push(["trackPageView"]);
10657 _spef.push(["enableLinkTracking"]);
10658 (function () {
10659 var u = "//trck.spoteffects.net/analytics/";
10660 _spef.push(['setTrackerUrl', u + 'piwik.php']);
10661 _spef.push(['setSiteId', 484]);
10662 var d = document, g = d.createElement("script"), s = d.getElementsByTagName("script")[0];
10663 g.type = "text/javascript";
10664 g.defer = true;
10665 g.async = true;
10666 g.src = u + "spef.min.js";
10667 s.parentNode.insertBefore(g, s);
10668 })();
10669</script>
10670<!-- Piwik Tracking Code END -->
10671
10672
10673<img class="pixel" id="ivwpixel_internal" width="1" height="1" alt="">
10674
10675
10676<style>#wee9 {
10677 position: fixed !important;
10678 position: absolute;
10679 top: 3px;
10680 top: expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");
10681 left: -1px;
10682 width: 101%;
10683 height: 102%;
10684 background-color: #ffffff;
10685 opacity: .95;
10686 filter: alpha(opacity=95);
10687 display: block;
10688 padding: 20% 0
10689}
10690
10691#wee9 * {
10692 text-align: center;
10693 margin: 0 auto;
10694 display: block;
10695 filter: none;
10696 font: bold 14px Verdana, Arial, sans-serif;
10697 text-decoration: none
10698}
10699
10700#wee9 ~ * {
10701 display: none
10702}</style>
10703
10704<script>window.document.getElementById("wee9").parentNode.removeChild(window.document.getElementById("wee9"));</script>
10705
10706<div id="opp_1" class="oop gujAd"></div>
10707
10708<img src="https://sync.search.spotxchange.com/partner?source=pub_106817" style="position: absolute; width: 1px; height: 1px; margin: 0px; padding: 0px; left: -999999px; top: -999999px; display: none; visibility: hidden;"><img src="https://ad.sxp.smartclip.net/sync?type=red&dsp=62" style="position: absolute; width: 1px; height: 1px; margin: 0px; padding: 0px; left: -999999px; top: -999999px; display: none; visibility: hidden;"><img src="https://ad.sxp.smartclip.net/sync?type=red&dsp=68" style="position: absolute; width: 1px; height: 1px; margin: 0px; padding: 0px; left: -999999px; top: -999999px; display: none; visibility: hidden;"><img src="https://c1.adform.net/serving/cookie/match?party=24&bidswitch_ssp_id=v1" style="position: absolute; width: 1px; height: 1px; margin: 0px; padding: 0px; left: -999999px; top: -999999px; display: none; visibility: hidden;"><img src="https://x.bidswitch.net/sync?dsp_id=70&user_id=42" style="position: absolute; width: 1px; height: 1px; margin: 0px; padding: 0px; left: -999999px; top: -999999px; display: none; visibility: hidden;"><img src="https://c1.adform.net/serving/cookie/match?party=30" style="position: absolute; width: 1px; height: 1px; margin: 0px; padding: 0px; left: -999999px; top: -999999px; display: none; visibility: hidden;"><div id="_atssh" style="visibility: hidden; height: 1px; width: 1px; position: absolute; top: -9999px; z-index: 100000;"><iframe id="_atssh173" title="AddThis utility frame" src="https://s7.addthis.com/static/sh.d663e43787b663d5491cf753.html#rand=0.7172095857320724&iit=1520512599081&tmr=load%3D1520512598291%26core%3D1520512598335%26main%3D1520512599076%26ifr%3D1520512599087&cb=0&cdn=0&md=0&kw=n-tv%20Dokumentation%2Cvideo%2Cvideos%2Conline%20sehen%2Cinternet%20tv%2Cfernsehen%2Cvideo%20on%20demand%2Cn-tv%2Cntv%2CTV%20NOW%2Cdoku%2Ctechnik%2Cwissenschaft%2Cnatur%2Cumwelt%2Ctiere%2Cwissen%2Cberichte%2Ctechnologische%20neuerungen%2Cautofahnder&ab=-&dh=www.tvnow.de&dr=&du=https%3A%2F%2Fwww.tvnow.de%2Fntv%2Fn-tv-dokumentation%2Fdie-millionen-party-das-oktoberfest%2Fplayer&href=https%3A%2F%2Fwww.tvnow.de%2Fntv%2Fn-tv-dokumentation%2Fdie-millionen-party-das-oktoberfest%2Fplayer&dt=Die%20Millionen-Party%20-%20Das%20Oktoberfest%20aus%20n-tv%20Dokumentation%20%20online%20schauen%20als%20Stream%20bei%20TV%20NOW&dbg=0&cap=tc%3D0%26ab%3D0&inst=1&jsl=1&prod=undefined&lng=en&ogt=image%2Ctype%3Dtv_show%2Cdescription%2Ctitle&pc=men&pub=rtlnow&ssl=1&sid=5aa12e5677b3da83&srf=0.01&ver=300&xck=0&xtr=0&og=title%3DDie%2520Millionen-Party%2520-%2520Das%2520Oktoberfest%2520aus%2520n-tv%2520Dokumentation%2520%2520online%2520schauen%2520als%2520Stream%2520bei%2520TV%2520NOW%26description%3DMit%2520j%25C3%25A4hrlich%2520sechs%2520Millionen%2520Besuchern%2520ist%2520das%2520M%25C3%25BCnchener%2520Oktoberfest%252C%2520noch%2520vor%2520dem%2520Karneval%2520in%2520Rio%2520de%2520Janeiro%252C%2520das%2520gr%25C3%25B6%25C3%259Fte%2520Fest%2520der%2520Welt.%26type%3Dtv_show%26image%3Dhttps%253A%252F%252Faistvnow-a.akamaihd.net%252Ftvnow%252Fformat%252F2033%252F720x405%252Fformat.jpg&csi=undefined&rev=v8.2.5-wp&ct=1&xld=1&xd=1" style="height: 1px; width: 1px; position: absolute; top: 0px; z-index: 100000; border: 0px; left: 0px;"></iframe></div><style id="service-icons-0"></style><iframe width="1" height="1" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" id="guj_ems_iframe_1520512598365" name="guj_ems_iframe_1520512598365" src="javascript:"<html><body style='background:transparent'></body></html>"" style="border: 0px; vertical-align: bottom; display: none; visibility: hidden;"></iframe><iframe width="1" height="1" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" id="guj_ems_iframe_1520512599114" name="guj_ems_iframe_1520512599114" src="javascript:"<html><body style='background:transparent'></body></html>"" style="border: 0px; vertical-align: bottom; display: none; visibility: hidden;"></iframe><div id="oop_1" class=" GujAdHidden" style="display: none;"></div><iframe id="rdr_229_505" src="//dmp.theadex.com/r/229/505/?c=1001416421336380068" style="height: 1px; width: 1px; border: none; position: absolute; top: -100px; left: -100px; z-index: -5;"></iframe><iframe id="rdr_810_3277" src="//dmp.theadex.com/r/229/505/?c=1001416421336380068" style="height: 1px; width: 1px; border: none; position: absolute; top: -100px; left: -100px; z-index: -5;"></iframe><div id="fb-root" class=" fb_reset"><script src="//connect.facebook.net/en_US/sdk.js#version=v2.6" async=""></script><div style="position: absolute; top: -10000px; height: 0px; width: 0px;"><div><iframe name="fb_xdm_frame_https" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" id="fb_xdm_frame_https" aria-hidden="true" title="Facebook Cross Domain Communication Frame" tabindex="-1" src="https://staticxx.facebook.com/connect/xd_arbiter/r/Ms1VZf1Vg1J.js?version=42#channel=fdc2b74d8f9dd&origin=https%3A%2F%2Fwww.tvnow.de" style="border: none;"></iframe></div></div><div style="position: absolute; top: -10000px; height: 0px; width: 0px;"><div></div></div></div><iframe src="https://cdn-gl.imrworldwide.com/novms/html/ls.html" height="0" width="0" id="lsframe" style="display: none;"></iframe><iframe id="google_osd_static_frame_7367428145790" name="google_osd_static_frame" style="display: none; width: 0px; height: 0px;"></iframe><iframe src="https://adstax-match.adrtx.net/activation?receiverId=adaud" width="0" height="0" frameborder="0" id="adrtx_tag" hidden="" style="position: absolute; top: -99999px;"></iframe><div class="pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links" style="width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"></div>
10709
10710</body>
10711</html>