vendor: 4,628 bytes, line 1
1var factory;if(factory=function(undefined$1){return function(){for(var allCountries=[["Afghanistan (â«Ø§ÙØºØ§ÙØ³ØªØ§Ùâ¬â)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (â«Ø§Ùجزائرâ¬â)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Ãsterreich)","at","43"],["Azerbaijan (AzÉrbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (â«Ø§ÙØ¨ØØ±ÙÙâ¬â)","bh","973"],["Bangladesh (বাà¦à¦²à¦¾à¦¦à§à¦¶)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (ÐелаÑÑÑÑ)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འà½à¾²à½´à½)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (ÐоÑна и ХеÑÑеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (ÐÑлгаÑиÑ)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (ááááá»áá¶)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (ä¸å½)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (â«Ø¬Ø²Ø± اÙÙÙ
رâ¬â)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte dâIvoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (ÎÏÏÏοÏ)","cy","357"],["Czech Republic (Äeská republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (â«Ù
صرâ¬â)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (á¡áá¥áá ááááá)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Îλλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (馿¸¯)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ãsland)","is","354"],["India (à¤à¤¾à¤°à¤¤)","in","91"],["Indonesia","id","62"],["Iran (â«Ø§ÛراÙâ¬â)","ir","98"],["Iraq (â«Ø§ÙعراÙâ¬â)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (â«×שר××â¬â)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (æ¥æ¬)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (â«Ø§ÙأردÙâ¬â)","jo","962"],["Kazakhstan (ÐазаÑ
ÑÑан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (â«Ø§ÙÙÙÙØªâ¬â)","kw","965"],["Kyrgyzstan (ÐÑÑг
1ÑзÑÑан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (â«ÙØ¨ÙØ§Ùâ¬â)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (â«ÙÙØ¨Ùاâ¬â)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (æ¾³é)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (â«Ù
ÙØ±ÙتاÙÙØ§â¬â)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Ðонгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (â«Ø§ÙÙ
غربâ¬â)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (áá¼ááºáá¬)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नà¥à¤ªà¤¾à¤²)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (ì¡°ì 민주주ì ì¸ë¯¼ ê³µíêµ)","kp","850"],["North Macedonia (СевеÑна ÐакедониÑа)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (â«Ø¹ÙÙ
اÙâ¬â)","om","968"],["Pakistan (â«Ù¾Ø§Ú©Ø³ØªØ§Ùâ¬â)","pk","92"],["Palau","pw","680"],["Palestine (â«ÙÙØ³Ø·ÙÙâ¬â)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (â«Ùطرâ¬â)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (РоÑÑиÑ)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and PrÃncipe (São Tomé e PrÃncipe)","st","239"],["Saudi Arabia (â«Ø§ÙÙ
Ù
ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©â¬â)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (СÑбиÑа)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (ëí민êµ)","kr","82"],["South Sudan (â«Ø¬ÙÙØ¨ Ø§ÙØ³ÙداÙâ¬â)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (à·à·âර෠ලà¶à¶à·à·)","lk","94"],["Sudan (â«Ø§ÙØ³ÙØ¯Ø§Ùâ¬â)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (â«Ø³ÙØ±ÙØ§â¬â)","sy","963"],["Taiwan (å°ç£)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (à¹à¸à¸¢)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (â«ØªÙÙØ³â¬â)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (УкÑаÑна)","ua","380"],["United Arab Emirates (â«Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©â¬â)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (OÊ»zbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Viá»t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (â«Ø§ÙØµØØ±Ø§Ø¡ Ø§ÙØºØ±Ø¨ÙØ©â¬â)","eh","212",1,["5288","5289"]],["Yemen (â«Ø§ÙÙÙ
Ùâ¬â)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Ã
land Islands","ax","358",1,["18"]]],i=0;i<allCountries.length;i++){var c=allCountries[i];allCountries[i]={name:c[0],iso2:c[1],dialCode:c[2],priority:c[3]||0,areaCodes:c[4]||null}}function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _toPropertyKey(arg){var key=function(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined$1){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}var intlTelInputGlobals={getInstance:function(input){var id=input.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[id]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=intlTelInputGlobals);var id=0,defaults={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,showFlags:!0,utilsScript:""},regionlessNanpNumbers=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],forEachProp=function(obj,callback){for(var keys=Object.keys(obj),i=0;i<keys.length;i++)callback(keys[i],obj[keys[i]])}
vendor: 23,185 bytes, line 1
1,forEachInstance=function(method){forEachProp(window.intlTelInputGlobals.instances,(function(key){window.intlTelInputGlobals.instances[key][method]()}))},Iti=function(){function Iti(input,options){var _this=this;!function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Iti),this.id=id++,this.telInput=input,this.activeItem=null,this.highlightedItem=null;var customOptions=options||{};this.options={},forEachProp(defaults,(function(key,value){_this.options[key]=customOptions.hasOwnProperty(key)?customOptions[key]:value})),this.hadInitialPlaceholder=Boolean(input.getAttribute("placeholder"))}var Constructor,protoProps,staticProps;return Constructor=Iti,protoProps=[{key:"_init",value:function(){var _this2=this;this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.separateDialCode&&(this.options.autoInsertDialCode=!1);var forceShowFlags=this.options.allowDropdown&&!this.options.separateDialCode;if(!this.options.showFlags&&forceShowFlags&&(this.options.showFlags=!0),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),"undefined"!=typeof Promise){var autoCountryPromise=new Promise((function(resolve,reject){_this2.resolveAutoCountryPromise=resolve,_this2.rejectAutoCountryPromise=reject})),utilsScriptPromise=new Promise((function(resolve,reject){_this2.resolveUtilsScriptPromise=resolve,_this2.rejectUtilsScriptPromise=reject}));this.promise=Promise.all([autoCountryPromise,utilsScriptPromise])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(iso2,countryCode,priority){countryCode.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=countryCode.length),this.countryCodes.hasOwnProperty(countryCode)||(this.countryCodes[countryCode]=[]);for(var i=0;i<this.countryCodes[countryCode].length;i++)if(this.countryCodes[countryCode][i]===iso2)return;var index=priority!==undefined$1?priority:this.countryCodes[countryCode].length;this.countryCodes[countryCode][index]=iso2}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var lowerCaseOnlyCountries=this.options.onlyCountries.map((function(country){return country.toLowerCase()}));this.countries=allCountries.filter((function(country){return lowerCaseOnlyCountries.indexOf(country.iso2)>-1}))}else if(this.options.excludeCountries.length){var lowerCaseExcludeCountries=this.options.excludeCountries.map((function(country){return country.toLowerCase()}));this.countries=allCountries.filter((function(country){return-1===lowerCaseExcludeCountries.indexOf(country.iso2)}))}else this.countries=allCountries}},{key:"_translateCountriesByLocale",value:function(){for(var i=0;i<this.countries.length;i++){var iso=this.countries[i].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(iso)&&(this.countries[i].name=this.options.localizedCountries[iso])}}},{key:"_countryNameSort",value:function(a,b){return a.name<b.name?-1:a.name>b.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var i=0;i<this.countries.length;i++){var c=this.countries[i];this.dialCodes[c.dialCode]||(this.dialCodes[c.dialCode]=!0),this._addCountryCode(c.iso2,c.dialCode,c.priority)}for(var _i=0;_i<this.countries.length;_i++){var _c=this.countries[_i];if(_c.areaCodes)for(var rootCountryCode=this.countryCodes[_c.dialCode][0],j=0;j<_c.areaCodes.length;j++){for(var areaCode=_c.areaCodes[j],k=1;k<areaCode.length;k++){var partialDialCode=_c.dialCode+areaCode.substr(0,k);this._addCountryCode(rootCountryCode,partialDialCode),this._addCountryCode(_c.iso2,partialDialCode)}this._addCountryCode(_c.iso2,_c.dialCode+areaCode)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var i=0;i<this.options.preferredCountries.length;i++){var countryCode=this.options.preferredCountries[i].toLowerCase(),countryData=this._getCountryData(countryCode,!1,!0);countryData&&this.preferredCountries.push(countryData)}}},{key:"_createEl",value:function(name,attrs,container){var el=document.createElement(name);return attrs&&forEachProp(attrs,(function(key,value){return el.setAttribute(key,value)})),container&&container.appendChild(el),el}},{key:"_generateMarkup",value:function(){this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var _this$options=this.options,allowDropdown=_this$options.allowDropdown,separateDialCode=_this$options.separateDialCode,showFlags=_this$options.showFlags,customContainer=_this$options.customContainer,hiddenInput=_this$options.hiddenInput,dropdownContainer=_this$options.dropdownContainer,parentClass="iti";allowDropdown&&(parentClass+=" iti--allow-dropdown"),separateDialCode&&(parentClass+=" iti--separate-dial-code"),showFlags&&(parentClass+=" iti--show-flags"),customContainer&&(parentClass+=" ".concat(customContainer));var wrapper=this._createEl("div",{class:parentClass});this.telInput.parentNode.insertBefore(wrapper,this.telInput);var showFlagsContainer=allowDropdown||showFlags||separateDialCode;if(showFlagsContainer&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},wrapper)),wrapper.appendChild(this.telInput),showFlagsContainer&&(this.selectedFlag=this._createEl("div",function(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?Object(arguments[i]):{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&ownKeys.push.apply(ownKeys,Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach((function(key){_defineProperty(target,key,source[key])}))}return target}({class:"iti__selected-flag"},allowDropdown&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":"Telephone country code"}),this.flagsContainer)),showFlags&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),separateDialCode&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),allowDropdown&&(this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),dropdownContainer?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),hiddenInput){var hiddenInputName=hiddenInput,name=this.telInput.getAttribute("name");if(name){var i=name.lastIndexOf("[");-1!==i&&(hiddenInputName="".concat(name.substr(0,i),"[").concat(hiddenInputName,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:hiddenInputName}),wrapper.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(countries,className,preferred){for(var tmp="",i=0;i<countries.length;i++){var c=countries[i],idSuffix=preferred?"-preferred":"";tmp+="<li class='iti__country ".concat(className,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(c.iso2).concat(idSuffix,"' role='option' data-dial-code='").concat(c.dialCode,"' data-country-code='").concat(c.iso2,"' aria-selected='false'>"),this.options.showFlags&&(tmp+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(c.iso2,"'></div></div>")),tmp+="<span class='iti__country-name'>".concat(c.name,"</span>"),tmp+="<span class='iti__dial-code'>+".concat(c.dialCode,"</span>"),tmp+="</li>"}this.countryList.insertAdjacentHTML("beforeend",tmp)}},{key:"_setInitialState",value:function(){var attributeValue=this.telInput.getAttribute("value"),inputValue=this.telInput.value,val=!attributeValue||"+"!==attributeValue.charAt(0)||inputValue&&"+"===inputValue.charAt(0)?inputValue:attributeValue,dialCode=this._getDialCode(val),isRegionlessNanp=this._isRegionlessNanp(val),_this$options2=this.options,initialCountry=_this$options2.initialCountry,autoInsertDialCode=_this$options2.autoInsertDialCode;dialCode&&!isRegionlessNanp?this._updateFlagFromNumber(val):"auto"!==initialCountry&&(initialCountry?this._setFlag(initialCountry.toLowerCase()):dialCode&&isRegionlessNanp?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,val||this._setFlag(this.defaultCountry)),!val&&autoInsertDialCode&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),val&&this._updateValFromNumber(val)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var _this3=this;this._handleHiddenInputSubmit=function(){_this3.hiddenInput.value=_this3.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var el=this.telInput;el&&"LABEL"!==el.tagName;)el=el.parentNode;return el}},{key:"_initDropdownListeners",value:function(){var _this4=this;this._handleLabelClick=function(e){_this4.countryList.classList.contains("iti__hide")?_this4.telInput.focus():e.preventDefault()};var label=this._getClosestLabel();label&&label.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!_this4.countryList.classList.contains("iti__hide")||_this4.telInput.disabled||_this4.telInput.readOnly||_this4._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){_this4.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),_this4._showDropdown()),"Tab"===e.key&&_this4._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var _this5=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(_this5.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(countryCode){window.intlTelInputGlobals.autoCountry=countryCode.toLowerCase(),setTimeout((function(){return forEachInstance("handleAutoCountry")}))}),(function(){return forEachInstance("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var _this6=this;this._handleKeyupEvent=function(){_this6._updateFlagFromNumber(_this6.telInput.value)&&_this6._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(_this6._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(number){var max=this.telInput.getAttribute("maxlength");return max&&number.length>max?number.substr(0,max):number}},{key:"_initBlurListeners",value:function(){var _this7=this;this._handleSubmitOrBlurEvent=function(){_this7._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var numeric=this._getNumeric(this.telInput.value);numeric&&this.selectedCountryData.dialCode!==numeric||(this.telInput.value="")}}},{key:"_getNumeric",value:function(s){return s.replace(/\D/g,"")}},{key:"_trigger",value:function(name){var e=document.createEvent("Event");e.initEvent(name,!0,!0),this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(el,className,shouldHaveClass){shouldHaveClass&&!el.classList.contains(className)?el.classList.add(className):!shouldHaveClass&&el.classList.contains(className)&&el.classList.remove(className)}},{key:"_setDropdownPosition",value:function(){var _this8=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var pos=this.telInput.getBoundingClientRect(),windowTop=window.pageYOffset||document.documentElement.scrollTop,inputTop=pos.top+windowTop,dropdownHeight=this.countryList.offsetHeight,dropdownFitsBelow=inputTop+this.telInput.offsetHeight+dropdownHeight<windowTop+window.innerHeight,dropdownFitsAbove=inputTop-dropdownHeight>windowTop;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!dropdownFitsBelow&&dropdownFitsAbove),this.options.dropdownContainer){var extraTop=!dropdownFitsBelow&&dropdownFitsAbove?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(inputTop+extraTop,"px"),this.dropdown.style.left="".concat(pos.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return _this8._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(target){for(var el=target;el&&el!==this.countryList&&!el.classList.contains("iti__country");)el=el.parentNode;return el===this.countryList?null:el}},{key:"_bindDropdownListeners",value:function(){var _this9=this;this._handleMouseoverCountryList=function(e){var listItem=_this9._getClosestListItem(e.target);listItem&&_this9._highlightListItem(listItem,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(e){var listItem=_this9._getClosestListItem(e.target);listItem&&_this9._selectListItem(listItem)},this.countryList.addEventListener("click",this._handleClickCountryList);var isOpening=!0;this._handleClickOffToClose=function(){isOpening||_this9._closeDropdown(),isOpening=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var query="",queryTimer=null;this._handleKeydownOnDropdown=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?_this9._handleUpDownKey(e.key):"Enter"===e.key?_this9._handleEnterKey():"Escape"===e.key?_this9._closeDropdown():/^[a-zA-ZÃ-ÿа-ÑÐ-Я ]$/.test(e.key)&&(queryTimer&&clearTimeout(queryTimer),query+=e.key.toLowerCase(),_this9._searchForCountry(query),queryTimer=setTimeout((function(){query=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(key){var next="ArrowUp"===key||"Up"===key?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;next&&(next.classList.contains("iti__divider")&&(next="ArrowUp"===key||"Up"===key?next.previousElementSibling:next.nextElementSibling),this._highlightListItem(next,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(query){for(var i=0;i<this.countries.length;i++)if(this._startsWith(this.countries[i].name,query)){var listItem=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[i].iso2));this._highlightListItem(listItem,!1),this._scrollTo(listItem,!0);break}}},{key:"_startsWith",value:function(a,b){return a.substr(0,b.length).toLowerCase()===b}},{key:"_updateValFromNumber",value:function(originalNumber){var number=originalNumber;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var useNational=this.options.nationalMode||"+"!==number.charAt(0)&&!this.options.separateDialCode,_intlTelInputUtils$nu=intlTelInputUtils.numberFormat,NATIONAL=_intlTelInputUtils$nu.NATIONAL,INTERNATIONAL=_intlTelInputUtils$nu.INTERNATIONAL,format=useNational?NATIONAL:INTERNATIONAL;number=intlTelInputUtils.formatNumber(number,this.selectedCountryData.iso2,format)}number=this._beforeSetNumber(number),this.telInput.value=number}},{key:"_updateFlagFromNumber",value:function(originalNumber){var number=originalNumber,selectedDialCode=this.selectedCountryData.dialCode;number&&"1"===selectedDialCode&&"+"!==number.charAt(0)&&("1"!==number.charAt(0)&&(number="1".concat(number)),number="+".concat(number)),this.options.separateDialCode&&selectedDialCode&&"+"!==number.charAt(0)&&(number="+".concat(selectedDialCode).concat(number));var dialCode=this._getDialCode(number,!0),numeric=this._getNumeric(number),countryCode=null;if(dialCode){var countryCodes=this.countryCodes[this._getNumeric(dialCode)],alreadySelected=-1!==countryCodes.indexOf(this.selectedCountryData.iso2)&&numeric.length<=dialCode.length-1;if(!("1"===selectedDialCode&&this._isRegionlessNanp(numeric)||alreadySelected))for(var j=0;j<countryCodes.length;j++)if(countryCodes[j]){countryCode=countryCodes[j];break}}else"+"===number.charAt(0)&&numeric.length?countryCode="":number&&"+"!==number||(countryCode=this.defaultCountry);return null!==countryCode&&this._setFlag(countryCode)}},{key:"_isRegionlessNanp",value:function(number){var numeric=this._getNumeric(number);if("1"===numeric.charAt(0)){var areaCode=numeric.substr(1,3);return-1!==regionlessNanpNumbers.indexOf(areaCode)}return!1}},{key:"_highlightListItem",value:function(listItem,shouldFocus){var prevItem=this.highlightedItem;prevItem&&prevItem.classList.remove("iti__highlight"),this.highlightedItem=listItem,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",listItem.getAttribute("id")),shouldFocus&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(countryCode,ignoreOnlyCountriesOption,allowFail){for(var countryList=ignoreOnlyCountriesOption?allCountries:this.countries,i=0;i<countryList.length;i++)if(countryList[i].iso2===countryCode)return countryList[i];if(allowFail)return null;throw new Error("No country data for '".concat(countryCode,"'"))}},{key:"_setFlag",value:function(countryCode){var prevCountry=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=countryCode?this._getCountryData(countryCode,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.options.showFlags&&this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(countryCode)),this.selectedFlag){var title=countryCode?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";this.selectedFlag.setAttribute("title",title)}if(this.options.separateDialCode){var dialCode=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=dialCode;var selectedFlagWidth=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(selectedFlagWidth+6,"px")}if(this._updatePlaceholder(),this.options.allowDropdown){var prevItem=this.activeItem;if(prevItem&&(prevItem.classList.remove("iti__active"),prevItem.setAttribute("aria-selected","false")),countryCode){var nextItem=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(countryCode,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(countryCode));nextItem.setAttribute("aria-selected","true"),nextItem.classList.add("iti__active"),this.activeItem=nextItem}}return prevCountry.iso2!==countryCode}},{key:"_getHiddenSelectedFlagWidth",value:function(){var containerClone=this.telInput.parentNode.cloneNode();containerClone.style.visibility="hidden",document.body.appendChild(containerClone);var flagsContainerClone=this.flagsContainer.cloneNode();containerClone.appendChild(flagsContainerClone);var selectedFlagClone=this.selectedFlag.cloneNode(!0);flagsContainerClone.appendChild(selectedFlagClone);var width=selectedFlagClone.offsetWidth;return containerClone.parentNode.removeChild(containerClone),width}},{key:"_updatePlaceholder",value:function(){var shouldSetPlaceholder="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;if(window.intlTelInputUtils&&shouldSetPlaceholder){var numberType=intlTelInputUtils.numberType[this.options.placeholderNumberType],placeholder=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,numberType):"";placeholder=this._beforeSetNumber(placeholder),"function"==typeof this.options.customPlaceholder&&(placeholder=this.options.customPlaceholder(placeholder,this.selectedCountryData)),this.telInput.setAttribute("placeholder",placeholder)}}},{key:"_selectListItem",value:function(listItem){var flagChanged=this._setFlag(listItem.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(listItem.getAttribute("data-dial-code")),this.telInput.focus();var len=this.telInput.value.length;this.telInput.setSelectionRange(len,len),flagChanged&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","fal
1se"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(element,middle){var container=this.countryList,windowTop=window.pageYOffset||document.documentElement.scrollTop,containerHeight=container.offsetHeight,containerTop=container.getBoundingClientRect().top+windowTop,containerBottom=containerTop+containerHeight,elementHeight=element.offsetHeight,elementTop=element.getBoundingClientRect().top+windowTop,elementBottom=elementTop+elementHeight,newScrollTop=elementTop-containerTop+container.scrollTop,middleOffset=containerHeight/2-elementHeight/2;if(elementTop<containerTop)middle&&(newScrollTop-=middleOffset),container.scrollTop=newScrollTop;else if(elementBottom>containerBottom){middle&&(newScrollTop+=middleOffset);var heightDifference=containerHeight-elementHeight;container.scrollTop=newScrollTop-heightDifference}}},{key:"_updateDialCode",value:function(newDialCodeBare){var newNumber,inputVal=this.telInput.value,newDialCode="+".concat(newDialCodeBare);if("+"===inputVal.charAt(0)){var prevDialCode=this._getDialCode(inputVal);newNumber=prevDialCode?inputVal.replace(prevDialCode,newDialCode):newDialCode,this.telInput.value=newNumber}else this.options.autoInsertDialCode&&(newNumber=inputVal?newDialCode+inputVal:newDialCode,this.telInput.value=newNumber)}},{key:"_getDialCode",value:function(number,includeAreaCode){var dialCode="";if("+"===number.charAt(0))for(var numericChars="",i=0;i<number.length;i++){var c=number.charAt(i);if(!isNaN(parseInt(c,10))){if(numericChars+=c,includeAreaCode)this.countryCodes[numericChars]&&(dialCode=number.substr(0,i+1));else if(this.dialCodes[numericChars]){dialCode=number.substr(0,i+1);break}if(numericChars.length===this.countryCodeMaxLen)break}}return dialCode}},{key:"_getFullNumber",value:function(){var val=this.telInput.value.trim(),dialCode=this.selectedCountryData.dialCode,numericVal=this._getNumeric(val);return(this.options.separateDialCode&&"+"!==val.charAt(0)&&dialCode&&numericVal?"+".concat(dialCode):"")+val}},{key:"_beforeSetNumber",value:function(originalNumber){var number=originalNumber;if(this.options.separateDialCode){var dialCode=this._getDialCode(number);if(dialCode){var start=" "===number[(dialCode="+".concat(this.selectedCountryData.dialCode)).length]||"-"===number[dialCode.length]?dialCode.length+1:dialCode.length;number=number.substr(start)}}return this._cap(number)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var form=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var label=this._getClosestLabel();label&&label.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&form&&form.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(form&&form.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var wrapper=this.telInput.parentNode;wrapper.parentNode.insertBefore(this.telInput,wrapper),wrapper.parentNode.removeChild(wrapper),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(format){if(window.intlTelInputUtils){var iso2=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),iso2,format)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var iso2=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),iso2)}return-99}},{key:"isValidNumber",value:function(){var val=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(val,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(originalCountryCode){var countryCode=originalCountryCode.toLowerCase();this.selectedCountryData.iso2!==countryCode&&(this._setFlag(countryCode),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(number){var flagChanged=this._updateFlagFromNumber(number);
vendor: 23,130 bytes, lines 1-12
1this._updateValFromNumber(number),flagChanged&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(type){this.options.placeholderNumberType=type,this._updatePlaceholder()}}],protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Iti}();intlTelInputGlobals.getCountryData=function(){return allCountries};var injectScript=function(path,handleSuccess,handleFailure){var script=document.createElement("script");script.onload=function(){forEachInstance("handleUtils"),handleSuccess&&handleSuccess()},script.onerror=function(){forEachInstance("rejectUtilsScriptPromise"),handleFailure&&handleFailure()},script.className="iti-load-utils",script.async=!0,script.src=path,document.body.appendChild(script)};return intlTelInputGlobals.loadUtils=function(path){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise((function(resolve,reject){return injectScript(path,resolve,reject)}));injectScript(path)}return null},intlTelInputGlobals.defaults=defaults,intlTelInputGlobals.version="18.1.3",function(input,options){var iti=new Iti(input,options);return iti._init(),input.setAttribute("data-intl-tel-input-id",iti.id),window.intlTelInputGlobals.instances[iti.id]=iti,iti}}()},"object"==typeof module&&module.exports?module.exports=factory():window.intlTelInput=factory(),void 0===myreplyLibIncluded){var myreplyLibIncluded=!0;if(function(global,factory){"object"==typeof module&&"object"==typeof module.exports?module.exports=global.document?factory(global,!0):function(w){if(!w.document)throw new Error("mQuery requires a window with a document");return factory(w)}:factory(global)}("undefined"!=typeof window?window:void 0,(function(window,noGlobal){var arr=[],document=window.document,slice=arr.slice,concat=arr.concat,push=arr.push,indexOf=arr.indexOf,class2type={},toString=class2type.toString,hasOwn=class2type.hasOwnProperty,support={},mQuery=function(selector,context){return new mQuery.fn.init(selector,context)},rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(all,letter){return letter.toUpperCase()};function isArrayLike(obj){var length=!!obj&&"length"in obj&&obj.length,type=mQuery.type(obj);return"function"!==type&&!mQuery.isWindow(obj)&&("array"===type||0===length||"number"==typeof length&&length>0&&length-1 in obj)}mQuery.fn=mQuery.prototype={jquery:"2.2.4",constructor:mQuery,selector:"",length:0,toArray:function(){return slice.call(this)},get:function(num){return null!=num?num<0?this[num+this.length]:this[num]:slice.call(this)},pushStack:function(elems){var ret=mQuery.merge(this.constructor(),elems);return ret.prevObject=this,ret.context=this.context,ret},each:function(callback){return mQuery.each(this,callback)},map:function(callback){return this.pushStack(mQuery.map(this,(function(elem,i){return callback.call(elem,i,elem)})))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[])},end:function(){return this.prevObject||this.constructor()},push:push,sort:arr.sort,splice:arr.splice},mQuery.extend=mQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;for("boolean"==typeof target&&(deep=target,target=arguments[i]||{},i++),"object"==typeof target||mQuery.isFunction(target)||(target={}),i===length&&(target=this,i--);i<length;i++)if(null!=(options=arguments[i]))for(name in options)src=target[name],target!==(copy=options[name])&&(deep&©&&(mQuery.isPlainObject(copy)||(copyIsArray=mQuery.isArray(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&mQuery.isArray(src)?src:[]):clone=src&&mQuery.isPlainObject(src)?src:{},target[name]=mQuery.extend(deep,clone,copy)):void 0!==copy&&(target[name]=copy));return target},mQuery.extend({expando:"mQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(msg){throw new Error(msg)},noop:function(){},isFunction:function(obj){return"function"===mQuery.type(obj)},isArray:Array.isArray,isWindow:function(obj){return null!=obj&&obj===obj.window},isNumeric:function(obj){var realStringObj=obj&&obj.toString();return!mQuery.isArray(obj)&&realStringObj-parseFloat(realStringObj)+1>=0},isPlainObject:function(obj){var key;if("object"!==mQuery.type(obj)||obj.nodeType||mQuery.isWindow(obj))return!1;if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype||{},"isPrototypeOf"))return!1;for(key in obj);return void 0===key||hasOwn.call(obj,key)},isEmptyObject:function(obj){var name;for(name in obj)return!1;return!0},type:function(obj){return null==obj?obj+"":"object"==typeof obj||"function"==typeof obj?class2type[toString.call(obj)]||"object":typeof obj},globalEval:function(code){var script,indirect=eval;(code=mQuery.trim(code))&&(1===code.indexOf("use strict")?((script=document.createElement("script")).text=code,document.head.appendChild(script).parentNode.removeChild(script)):indirect(code))},camelCase:function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()},each:function(obj,callback){var length,i=0;if(isArrayLike(obj))for(length=obj.length;i<length&&!1!==callback.call(obj[i],i,obj[i]);i++);else for(i in obj)if(!1===callback.call(obj[i],i,obj[i]))break;return obj},trim:function(text){return null==text?"":(text+"").replace(rtrim,"")},makeArray:function(arr,results){var ret=results||[];return null!=arr&&(isArrayLike(Object(arr))?mQuery.merge(ret,"string"==typeof arr?[arr]:arr):push.call(ret,arr)),ret},inArray:function(elem,arr,i){return null==arr?-1:indexOf.call(arr,elem,i)},merge:function(first,second){for(var len=+second.length,j=0,i=first.length;j<len;j++)first[i++]=second[j];return first.length=i,first},grep:function(elems,callback,invert){for(var matches=[],i=0,length=elems.length,callbackExpect=!invert;i<length;i++)!callback(elems[i],i)!==callbackExpect&&matches.push(elems[i]);return matches},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems))for(length=elems.length;i<length;i++)null!=(value=callback(elems[i],i,arg))&&ret.push(value);else for(i in elems)null!=(value=callback(elems[i],i,arg))&&ret.push(value);return concat.apply([],ret)},guid:1,proxy:function(fn,context){var tmp,args,proxy;if("string"==typeof context&&(tmp=fn[context],context=fn,fn=tmp),mQuery.isFunction(fn))return args=slice.call(arguments,2),proxy=function(){return fn.apply(context||this,args.concat(slice.call(arguments)))},proxy.guid=fn.guid=fn.guid||mQuery.guid++,proxy},now:Date.now,support:support}),"function"==typeof Symbol&&(mQuery.fn[Symbol.iterator]=arr[Symbol.iterator]),mQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(i,name){class2type["[object "+name+"]"]=name.toLowerCase()}));var Sizzle= 2/*! 3 * Sizzle CSS Selector Engine v2.2.1 4 * http://sizzlejs.com/ 5 * 6 * Copyright mQuery Foundation and other contributors 7 * Released under the MIT license 8 * http://jquery.org/license 9 * 10 * Date: 2015-10-17 11 */ 12function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,expando="sizzle"+1*new Date,preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),sortOrder=function(a,b){return a===b&&(hasDuplicate=!0),0},hasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,push_native=arr.push,push=arr.push,slice=arr.slice,indexOf=function(list,elem){for(var i=0,len=list.length;i<len;i++)if(list[i]===elem)return i;return-1},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",whitespace="[\\x20\\t\\r\\n\\f]",identifier="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",attributes="\\[[\\x20\\t\\r\\n\\f]*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|.*)\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rtrim=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),rcomma=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),rcombinators=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),rattributeQuotes=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,rescape=/'|\\/g,runescape=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),funescape=function(_,escaped,escapedWhitespace){var high="0x"+escaped-65536;return high!=high||escapedWhitespace?escaped:high<0?String.fromCharCode(high+65536):String.fromCharCode(high>>10|55296,1023&high|56320)},unloadHandler=function(){setDocument()};try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes),arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:arr.length?function(target,els){push_native.apply(target,slice.call(els))}:function(target,els){for(var j=target.length,i=0;target[j++]=els[i++];);target.length=j-1}}}function Sizzle(selector,context,results,seed){var m,i,elem,nid,nidselect,match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;if(results=results||[],"string"!=typeof selector||!selector||1!==nodeType&&9!==nodeType&&11!==nodeType)return results;if(!seed&&((context?context.ownerDocument||context:preferredDoc)!==document&&setDocument(context),context=context||document,documentIsHTML)){if(11!==nodeType&&(match=rquickExpr.exec(selector)))if(m=match[1]){if(9===nodeType){if(!(elem=context.getElementById(m)))return results;if(elem.id===m)return results.push(elem),results}else if(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m)return results.push(elem),results}else{if(match[2])return push.apply(results,context.getElementsByTagName(selector)),results;if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName)return push.apply(results,context.getElementsByClassName(m)),results}if(support.qsa&&!compilerCache[selector+" "]&&(!rbuggyQSA||!rbuggyQSA.test(selector))){if(1!==nodeType)newContext=context,newSelector=selector;else if("object"!==context.nodeName.toLowerCase()){for((nid=context.getAttribute("id"))?nid=nid.replace(rescape,"\\$&"):context.setAttribute("id",nid=expando),i=(groups=tokenize(selector)).length,nidselect=ridentifier.test(nid)?"#"+nid:"[id='"+nid+"']";i--;)groups[i]=nidselect+" "+toSelector(groups[i]);newSelector=groups.join(","),newContext=rsibling.test(selector)&&testContext(context.parentNode)||context}if(newSelector)try{return push.apply(results,newContext.querySelectorAll(newSelector)),results}catch(qsaError){}finally{nid===expando&&context.removeAttribute("id")}}}return select(selector.replace(rtrim,"$1"),context,results,seed)}function createCache(){var keys=[];return function cache(key,value){return keys.push(key+" ")>Expr.cacheLength&&delete cache[keys.shift()],cache[key+" "]=value}}function markFunction(fn){return fn[expando]=!0,fn}function assert(fn){var div=document.createElement("div");try{return!!fn(div)}catch(e){return!1}finally{div.parentNode&&div.parentNode.removeChild(div),div=null}}function addHandle(attrs,handler){for(var arr=attrs.split("|"),i=arr.length;i--;)Expr.attrHandle[arr[i]]=handler}function siblingCheck(a,b){var cur=b&&a,diff=cur&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||-2147483648)-(~a.sourceIndex||-2147483648);if(diff)return diff;if(cur)for(;cur=cur.nextSibling;)if(cur===b)return-1;return a?1:-1}function createInputPseudo(type){return function(elem){return"input"===elem.nodeName.toLowerCase()&&elem.type===type}}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return("input"===name||"button"===name)&&elem.type===type}}function createPositionalPseudo(fn){return markFunction((function(argument){return argument=+argument,markFunction((function(seed,matches){for(var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;i--;)seed[j=matchIndexes[i]]&&(seed[j]=!(matches[j]=seed[j]))}))}))}function testContext(context){return context&&void 0!==context.getElementsByTagName&&context}for(i in support=Sizzle.support={},isXML=Sizzle.isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return!!documentElement&&"HTML"!==documentElement.nodeName},setDocument=Sizzle.setDocument=function(node){var hasCompare,parent,doc=node?node.ownerDocument||node:preferredDoc;return doc!==document&&9===doc.nodeType&&doc.documentElement?(docElem=(document=doc).documentElement,documentIsHTML=!isXML(document),(parent=document.defaultView)&&parent.top!==parent&&(parent.addEventListener?parent.addEventListener("unload",unloadHandler,!1):parent.attachEvent&&parent.attachEvent("onunload",unloadHandler)),support.attributes=assert((function(div){return div.className="i",!div.getAttribute("className")})),support.getElementsByTagName=assert((function(div){return div.appendChild(document.createComment("")),!div.getElementsByTagName("*").length})),support.getElementsByClassName=rnative.test(document.getElementsByClassName),support.getById=assert((function(div){return docElem.appendChild(div).id=expando,!document.getElementsByName||!document.getElementsByName(expando).length})),support.getById?(Expr.find.ID=function(id,context){if(void 0!==context.getElementById&&documentIsHTML){var m=context.getElementById(id);return m?[m]:[]}},Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}}):(delete Expr.find.ID,Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=void 0!==elem.getAttributeNode&&elem.getAttributeNode("id");return node&&node.value===attrId}}),Expr.find.TAG=support.getElementsByTagName?function(tag,context){return void 0!==context.getElementsByTagName?context.getElementsByTagName(tag):support.qsa?context.querySelectorAll(tag):void 0}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);if("*"===tag){for(;elem=results[i++];)1===elem.nodeType&&tmp.push(elem);return tmp}return results},Expr.find.CLASS=support.getElementsByClassName&&function(className,context){if(void 0!==context.getElementsByClassName&&documentIsHTML)return context.getElementsByClassName(className)},rbuggyMatches=[],rbuggyQSA=[],(support.qsa=rnative.test(document.querySelectorAll))&&(assert((function(div){docElem.appendChild(div).innerHTML="<a id='"+expando+"'></a><select id='"+expando+"-\r\\' msallowcapture=''><option selected=''></option></select>",div.querySelectorAll("[msallowcapture^='']").length&&rbuggyQSA.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),div.querySelectorAll("[selected]").length||rbuggyQSA.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+booleans+")"),div.querySelectorAll("[id~="+expando+"-]").length||rbuggyQSA.push("~="),div.querySelectorAll(":checked").length||rbuggyQSA.push(":checked"),div.querySelectorAll("a#"+expando+"+*").length||rbuggyQSA.push(".#.+[+~]")})),assert((function(div){var input=document.createElement("input");input.setAttribute("type","hidden"),div.appendChild(input).setAttribute("name","D"),div.querySelectorAll("[name=d]").length&&rbuggyQSA.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),div.querySelectorAll(":enabled").length||rbuggyQSA.push(":enabled",":disabled"),div.querySelectorAll("*,:x"),rbuggyQSA.push(",.*:")}))),(support.matchesSelector=rnative.test(matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector))&&assert((function(div){support.disconnectedMatch=matches.call(div,"div"),matches.call(div,"[s!='']:x"),rbuggyMatches.push("!=",pseudos)})),rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")),rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|")),hasCompare=rnative.test(docElem.compareDocumentPosition),contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=9===a.nodeType?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!(!bup||1!==bup.nodeType||!(adown.contains?adown.contains(bup):a.compareDocumentPosition&&16&a.compareDocumentPosition(bup)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},sortOrder=hasCompare?function(a,b){if(a===b)return hasDuplicate=!0,0;var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;return compare||(1&(compare=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1)||!support.sortDetached&&b.compareDocumentPosition(a)===compare?a===document||a.ownerDocument===preferredDoc&&contains(preferredDoc,a)?-1:b===document||b.ownerDocument===preferredDoc&&contains(preferredDoc,b)?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0:4&compare?-1:1)}:function(a,b){if(a===b)return hasDuplicate=!0,0;var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup)return a===document?-1:b===document?1:aup?-1:bup?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0;if(aup===bup)return siblingCheck(a,b);for(cur=a;cur=cur.parentNode;)ap.unshift(cur);for(cur=b;cur=cur.parentNode;)bp.unshift(cur);for(;ap[i]===bp[i];)i++;return i?siblingCheck(ap[i],bp[i]):ap[i]===preferredDoc?-1:bp[i]===preferredDoc?1:0},document):document},Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements)},Sizzle.matchesSelector=function(elem,expr){if((elem.ownerDocument||elem)!==document&&setDocument(elem),expr=expr.replace(rattributeQuotes,"='$1']"),support.matchesSelector&&documentIsHTML&&!compilerCache[expr+" "]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr)))try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&11!==elem.document.nodeType)return ret}catch(e){}return Sizzle(expr,document,null,[elem]).length>0},Sizzle.contains=function(context,elem){return(context.ownerDocument||context)!==document&&setDocument(context),contains(context,elem)},Sizzle.attr=function(elem,name){(elem.ownerDocument||elem)!==document&&setDocument(elem);var fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):void 0;return void 0!==val?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null},Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)},Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;if(hasDuplicate=!support.detectDuplicates,sortInput=!support.sortStable&&results.slice(0),results.sort(sortOrder),hasDuplicate){for(;elem=results[i++];)elem===results[i]&&(j=duplicates.push(i));for(;j--;)results.splice(duplicates[j],1)}return sortInput=null,results},getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(nodeType){if(1===nodeType||9===nodeType||11===nodeType){if("string"==typeof elem.textContent)return elem.textContent;for(elem=elem.firstChild;elem;elem=elem.nextSibling)ret+=getText(elem)}else if(3===nodeType||4===nodeType)return elem.nodeValue}else for(;node=elem[i++];)ret+=getText(node);return ret},Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){return match[1]=match[1].replace(runescape,funescape),match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape),"~="===match[2]&&(match[3]=" "+match[3]+" "),match.slice(0,4)},CHILD:function(match){return match[1]=match[1].toLowerCase(),"nth"===match[1].slice(0,3)?(match[3]||Sizzle.error(match[0]),match[4]=+(match[4]?match[5]+(match[6]||1):2*("even"===match[3]||"odd"===match[3])),match[5]=+(match[7]+match[8]||"odd"===match[3])):match[3]&&Sizzle.error(match[0]),match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];return matchExpr.CHILD.test(match[0])?null:(match[3]?match[2]=match[4]||match[5]||"":unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,!0))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)&&(match[0]=match[0].slice(0,excess),match[2]=unquoted.slice(0,excess)),match.slice(0,3))}},filter:{TAG:function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return"*"===nodeNameSelector?function(){return!0}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+className+"("+whitespace+"|$)"))&&classCache(className,(function(elem){return pattern.test("string"==typeof elem.className&&elem.className||void 0!==elem.getAttribute&&elem.getAttribute("class")||"")}))},ATTR:function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);return null==result?"!="===operator:!operator||(result+="","="===operator?result===check:"!="===operator?result!==check:"^="===operator?check&&0===result.indexOf(check):"*="===operator?check&&result.indexOf(check)>-1:"$="===operator?check&&result.slice(-check.length)===check:"~="===operator?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:"|="===operator&&(result===check||result.slice(0,check.length+1)===check+"-"))}},CHILD:function(type,what,argument,first,last){var simple="nth"!==type.slice(0,3),forward="last"!==type.slice(-4),ofType="of-type"===what;return 1===first&&0===last?function(elem){return!!elem.parentNode}
vendor: 4,516 bytes, line 12
12:function(elem,context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=!1;if(parent){if(simple){for(;dir;){for(node=elem;node=node[dir];)if(ofType?node.nodeName.toLowerCase()===name:1===node.nodeType)return!1;start=dir="only"===type&&!start&&"nextSibling"}return!0}if(start=[forward?parent.firstChild:parent.lastChild],forward&&useCache){for(diff=(nodeIndex=(cache=(uniqueCache=(outerCache=(node=parent)[expando]||(node[expando]={}))[node.uniqueID]||(outerCache[node.uniqueID]={}))[type]||[])[0]===dirruns&&cache[1])&&cache[2],node=nodeIndex&&parent.childNodes[nodeIndex];node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop();)if(1===node.nodeType&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break}}else if(useCache&&(diff=nodeIndex=(cache=(uniqueCache=(outerCache=(node=elem)[expando]||(node[expando]={}))[node.uniqueID]||(outerCache[node.uniqueID]={}))[type]||[])[0]===dirruns&&cache[1]),!1===diff)for(;(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop())&&((ofType?node.nodeName.toLowerCase()!==name:1!==node.nodeType)||!++diff||(useCache&&((uniqueCache=(outerCache=node[expando]||(node[expando]={}))[node.uniqueID]||(outerCache[node.uniqueID]={}))[type]=[dirruns,diff]),node!==elem)););return(diff-=last)===first||diff%first==0&&diff/first>=0}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);return fn[expando]?fn(argument):fn.length>1?(args=[pseudo,pseudo,"",argument],Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction((function(seed,matches){for(var idx,matched=fn(seed,argument),i=matched.length;i--;)seed[idx=indexOf(seed,matched[i])]=!(matches[idx]=matched[i])})):function(elem){return fn(elem,0,args)}):fn}},pseudos:{not:markFunction((function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction((function(seed,matches,context,xml){for(var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;i--;)(elem=unmatched[i])&&(seed[i]=!(matches[i]=elem))})):function(elem,context,xml){return input[0]=elem,matcher(input,null,xml,results),input[0]=null,!results.pop()}})),has:markFunction((function(selector){return function(elem){return Sizzle(selector,elem).length>0}})),contains:markFunction((function(text){return text=text.replace(runescape,funescape),function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1}})),lang:markFunction((function(lang){return ridentifier.test(lang||"")||Sizzle.error("unsupported lang: "+lang),lang=lang.replace(runescape,funescape).toLowerCase(),function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang"))return(elemLang=elemLang.toLowerCase())===lang||0===elemLang.indexOf(lang+"-")}while((elem=elem.parentNode)&&1===elem.nodeType);return!1}})),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:function(elem){return!1===elem.disabled},disabled:function(elem){return!0===elem.disabled},checked:function(elem){var nodeName=elem.nodeName.toLowerCase();return"input"===nodeName&&!!elem.checked||"option"===nodeName&&!!elem.selected},selected:function(elem){return elem.parentNode&&elem.parentNode.selectedIndex,!0===elem.selected},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling)if(elem.nodeType<6)return!1;return!0},parent:function(elem){return!Expr.pseudos.empty(elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return"input"===name&&"button"===elem.type||"button"===name},text:function(elem){var attr;return"input"===elem.nodeName.toLowerCase()&&"text"===elem.type&&(null==(attr=elem.getAttribute("type"))||"text"===attr.toLowerCase())},first:createPositionalPseudo((function(){return[0]})),last:createPositionalPseudo((function(matchIndexes,length){return[length-1]})),eq:createPositionalPseudo((function(matchIndexes,length,argument){return[argument<0?argument+length:argument]}
vendor: 12,336 bytes, line 12
12)),even:createPositionalPseudo((function(matchIndexes,length){for(var i=0;i<length;i+=2)matchIndexes.push(i);return matchIndexes})),odd:createPositionalPseudo((function(matchIndexes,length){for(var i=1;i<length;i+=2)matchIndexes.push(i);return matchIndexes})),lt:createPositionalPseudo((function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;--i>=0;)matchIndexes.push(i);return matchIndexes})),gt:createPositionalPseudo((function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;++i<length;)matchIndexes.push(i);return matchIndexes}))}},Expr.pseudos.nth=Expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Expr.pseudos[i]=createInputPseudo(i);for(i in{submit:!0,reset:!0})Expr.pseudos[i]=createButtonPseudo(i);function setFilters(){}function toSelector(tokens){for(var i=0,len=tokens.length,selector="";i<len;i++)selector+=tokens[i].value;return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,checkNonElements=base&&"parentNode"===dir,doneName=done++;return combinator.first?function(elem,context,xml){for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)return matcher(elem,context,xml)}:function(elem,context,xml){var oldCache,uniqueCache,outerCache,newCache=[dirruns,doneName];if(xml){for(;elem=elem[dir];)if((1===elem.nodeType||checkNonElements)&&matcher(elem,context,xml))return!0}else for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements){if((oldCache=(uniqueCache=(outerCache=elem[expando]||(elem[expando]={}))[elem.uniqueID]||(outerCache[elem.uniqueID]={}))[dir])&&oldCache[0]===dirruns&&oldCache[1]===doneName)return newCache[2]=oldCache[2];if(uniqueCache[dir]=newCache,newCache[2]=matcher(elem,context,xml))return!0}}}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){for(var i=matchers.length;i--;)if(!matchers[i](elem,context,xml))return!1;return!0}:matchers[0]}function condense(unmatched,map,filter,context,xml){for(var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=null!=map;i<len;i++)(elem=unmatched[i])&&(filter&&!filter(elem,context,xml)||(newUnmatched.push(elem),mapped&&map.push(i)));return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){return postFilter&&!postFilter[expando]&&(postFilter=setMatcher(postFilter)),postFinder&&!postFinder[expando]&&(postFinder=setMatcher(postFinder,postSelector)),markFunction((function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||function(selector,contexts,results){for(var i=0,len=contexts.length;i<len;i++)Sizzle(selector,contexts[i],results);return results}(selector||"*",context.nodeType?[context]:context,[]),matcherIn=!preFilter||!seed&&selector?elems:condense(elems,preMap,preFilter,context,xml),matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher&&matcher(matcherIn,matcherOut,context,xml),postFilter)for(temp=condense(matcherOut,postMap),postFilter(temp,[],context,xml),i=temp.length;i--;)(elem=temp[i])&&(matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem));if(seed){if(postFinder||preFilter){if(postFinder){for(temp=[],i=matcherOut.length;i--;)(elem=matcherOut[i])&&temp.push(matcherIn[i]=elem);postFinder(null,matcherOut=[],temp,xml)}for(i=matcherOut.length;i--;)(elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1&&(seed[temp]=!(results[temp]=elem))}}else matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut),postFinder?postFinder(null,results,matcherOut,xml):push.apply(results,matcherOut)}))}function matcherFromTokens(tokens){for(var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator((function(elem){return elem===checkContext}),implicitRelative,!0),matchAnyContext=addCombinator((function(elem){return indexOf(checkContext,elem)>-1}),implicitRelative,!0),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));return checkContext=null,ret}];i<len;i++)if(matcher=Expr.relative[tokens[i].type])matchers=[addCombinator(elementMatcher(matchers),matcher)];else{if((matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches))[expando]){for(j=++i;j<len&&!Expr.relative[tokens[j].type];j++);return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:" "===tokens[i-2].type?"*":""})).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}return elementMatcher(matchers)}return setFilters.prototype=Expr.filters=Expr.pseudos,Expr.setFilters=new setFilters,tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached)return parseOnly?0:cached.slice(0);for(soFar=selector,groups=[],preFilters=Expr.preFilter;soFar;){for(type in matched&&!(match=rcomma.exec(soFar))||(match&&(soFar=soFar.slice(match[0].length)||soFar),groups.push(tokens=[])),matched=!1,(match=rcombinators.exec(soFar))&&(matched=match.shift(),tokens.push({value:matched,type:match[0].replace(rtrim," ")}),soFar=soFar.slice(matched.length)),Expr.filter)!(match=matchExpr[type].exec(soFar))||preFilters[type]&&!(match=preFilters[type](match))||(matched=match.shift(),tokens.push({value:matched,type:type,matches:match}),soFar=soFar.slice(matched.length));if(!matched)break}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0)},compile=Sizzle.compile=function(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){for(match||(match=tokenize(selector)),i=match.length;i--;)(cached=matcherFromTokens(match[i]))[expando]?setMatchers.push(cached):elementMatchers.push(cached);cached=compilerCache(selector,function(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",outermost),dirrunsUnique=dirruns+=null==contextBackup?1:Math.random()||.1,len=elems.length;for(outermost&&(outermostContext=context===document||context||outermost);i!==len&&null!=(elem=elems[i]);i++){if(byElement&&elem){for(j=0,context||elem.ownerDocument===document||(setDocument(elem),xml=!documentIsHTML);matcher=elementMatchers[j++];)if(matcher(elem,context||document,xml)){results.push(elem);break}outermost&&(dirruns=dirrunsUnique)}bySet&&((elem=!matcher&&elem)&&matchedCount--,seed&&unmatched.push(elem))}if(matchedCount+=i,bySet&&i!==matchedCount){for(j=0;matcher=setMatchers[j++];)matcher(unmatched,setMatched,context,xml);if(seed){if(matchedCount>0)for(;i--;)unmatched[i]||setMatched[i]||(setMatched[i]=pop.call(results));setMatched=condense(setMatched)}push.apply(results,setMatched),outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1&&Sizzle.uniqueSort(results)}return outermost&&(dirruns=dirrunsUnique,outermostContext=contextBackup),unmatched};return bySet?markFunction(superMatcher):superMatcher}(elementMatchers,setMatchers)),cached.selector=selector}return cached},select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled="function"==typeof selector&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);if(results=results||[],1===match.length){if((tokens=match[0]=match[0].slice(0)).length>2&&"ID"===(token=tokens[0]).type&&support.getById&&9===context.nodeType&&documentIsHTML&&Expr.relative[tokens[1].type]){if(!(context=(Expr.find.ID(token.matches[0].replace(runescape,funescape),context)||[])[0]))return results;compiled&&(context=context.parentNode),selector=selector.slice(tokens.shift().value.length)}for(i=matchExpr.needsContext.test(selector)?0:tokens.length;i--&&(token=tokens[i],!Expr.relative[type=token.type]);)if((find=Expr.find[type])&&(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){if(tokens.splice(i,1),!(selector=seed.length&&toSelector(tokens)))return push.apply(results,seed),results;break}}return(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context),results},support.sortStable=expando.split("").sort(sortOrder).join("")===expando,support.detectDuplicates=!!hasDuplicate,setDocument(),support.sortDetached=assert((function(div1){return 1&div1.compareDocumentPosition(document.createElement("div"))})),assert((function(div){return div.innerHTML="<a href='#'></a>","#"===div.firstChild.getAttribute("href")}))||addHandle("type|href|height|width",(function(elem,name,isXML){if(!isXML)return elem.getAttribute(name,"type"===name.toLowerCase()?1:2)})),support.attributes&&assert((function(div){return div.innerHTML="<input/>",div.firstChild.setAttribute("value",""),""===div.firstChild.getAttribute("value")}))||addHandle("value",(function(elem,name,isXML){if(!isXML&&"input"===elem.nodeName.toLowerCase())return elem.defaultValue})),assert((function(div){return null==div.getAttribute("disabled")}))||addHandle(booleans,(function(elem,name,isXML){var val;if(!isXML)return!0===elem[name]?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null})),Sizzle}(window);mQuery.find=Sizzle,mQuery.expr=Sizzle.selectors,mQuery.expr[":"]=mQuery.expr.pseudos,mQuery.uniqueSort=mQuery.unique=Sizzle.uniqueSort,mQuery.text=Sizzle.getText,mQuery.isXMLDoc=Sizzle.isXML,mQuery.contains=Sizzle.contains;var dir=function(elem,dir,until){for(var matched=[],truncate=void 0!==until;(elem=elem[dir])&&9!==elem.nodeType;)if(1===elem.nodeType){if(truncate&&mQuery(elem).is(until))break;matched.push(elem)}return matched},siblings=function(n,elem){for(var matched=[];n;n=n.nextSibling)1===n.nodeType&&n!==elem&&matched.push(n);return matched},rneedsContext=mQuery.expr.match.needsContext,rsingleTag=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,risSimple=/^.[^:#\[\.,]*$/;function winnow(elements,qualifier,not){if(mQuery.isFunction(qualifier))return mQuery.grep(elements,(function(elem,i){return!!qualifier.call(elem,i,elem)!==not}));if(qualifier.nodeType)return mQuery.grep(elements,(function(elem){return elem===qualifier!==not}));if("string"==typeof qualifier){if(risSimple.test(qualifier))return mQuery.filter(qualifier,elements,not);qualifier=mQuery.filter(qualifier,elements)}return mQuery.grep(elements,(function(elem){return indexOf.call(qualifier,elem)>-1!==not}))}mQuery.filter=function(expr,elems,not){var elem=elems[0];return not&&(expr=":not("+expr+")"),1===elems.length&&1===elem.nodeType?mQuery.find.matchesSelector(elem,expr)?[elem]:[]:mQuery.find.matches(expr,mQuery.grep(elems,(function(elem){return 1===elem.nodeType})))},mQuery.fn.extend({find:function(selector){var i,len=this.length,ret=[],self=this;if("string"!=typeof selector)return this.pushStack(mQuery(selector).filter((function(){for(i=0;i<len;i++)if(mQuery.contains(self[i],this))return!0})));for(i=0;i<len;i++)mQuery.find(selector,self[i],ret);return(ret=this.pushStack(len>1?mQuery.unique(ret):ret)).selector=this.selector?this.selector+" "+selector:selector,ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],!1))},not:function(selector){return this.pushStack(winnow(this,selector||[],!0))},is:function(selector){return!!winnow(this,"string"==typeof selector&&rneedsContext.test(selector)?mQuery(selector):selector||[],!1).length}});var rootmQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(mQuery.fn.init=function(selector,context,root){var match,elem;if(!selector)return this;if(root=root||rootmQuery,"string"==typeof selector){if(!(match="<"===selector[0]&&">"===selector[selector.length-1]&&selector.length>=3?[null,selector,null]:rquickExpr.exec(selector))||!match[1]&&context)return!context||context.jquery?(context||root).find(selector):this.constructor(context).find(selector);
vendor: 8,603 bytes, line 12
12if(match[1]){if(context=context instanceof mQuery?context[0]:context,mQuery.merge(this,mQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,!0)),rsingleTag.test(match[1])&&mQuery.isPlainObject(context))for(match in context)mQuery.isFunction(this[match])?this[match](context[match]):this.attr(match,context[match]);return this}return(elem=document.getElementById(match[2]))&&elem.parentNode&&(this.length=1,this[0]=elem),this.context=document,this.selector=selector,this}return selector.nodeType?(this.context=this[0]=selector,this.length=1,this):mQuery.isFunction(selector)?void 0!==root.ready?root.ready(selector):selector(mQuery):(void 0!==selector.selector&&(this.selector=selector.selector,this.context=selector.context),mQuery.makeArray(selector,this))}).prototype=mQuery.fn,rootmQuery=mQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};function sibling(cur,dir){for(;(cur=cur[dir])&&1!==cur.nodeType;);return cur}mQuery.fn.extend({has:function(target){var targets=mQuery(target,this),l=targets.length;return this.filter((function(){for(var i=0;i<l;i++)if(mQuery.contains(this,targets[i]))return!0}))},closest:function(selectors,context){for(var cur,i=0,l=this.length,matched=[],pos=rneedsContext.test(selectors)||"string"!=typeof selectors?mQuery(selectors,context||this.context):0;i<l;i++)for(cur=this[i];cur&&cur!==context;cur=cur.parentNode)if(cur.nodeType<11&&(pos?pos.index(cur)>-1:1===cur.nodeType&&mQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break}return this.pushStack(matched.length>1?mQuery.uniqueSort(matched):matched)},index:function(elem){return elem?"string"==typeof elem?indexOf.call(mQuery(elem),this[0]):indexOf.call(this,elem.jquery?elem[0]:elem):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(selector,context){return this.pushStack(mQuery.uniqueSort(mQuery.merge(this.get(),mQuery(selector,context))))},addBack:function(selector){return this.add(null==selector?this.prevObject:this.prevObject.filter(selector))}}),mQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&11!==parent.nodeType?parent:null},parents:function(elem){return dir(elem,"parentNode")},parentsUntil:function(elem,i,until){return dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return dir(elem,"nextSibling")},prevAll:function(elem){return dir(elem,"previousSibling")},nextUntil:function(elem,i,until){return dir(elem,"nextSibling",until)},prevUntil:function(elem,i,until){return dir(elem,"previousSibling",until)},siblings:function(elem){return siblings((elem.parentNode||{}).firstChild,elem)},children:function(elem){return siblings(elem.firstChild)},contents:function(elem){return elem.contentDocument||mQuery.merge([],elem.childNodes)}},(function(name,fn){mQuery.fn[name]=function(until,selector){var matched=mQuery.map(this,fn,until);return"Until"!==name.slice(-5)&&(selector=until),selector&&"string"==typeof selector&&(matched=mQuery.filter(selector,matched)),this.length>1&&(guaranteedUnique[name]||mQuery.uniqueSort(matched),rparentsprev.test(name)&&matched.reverse()),this.pushStack(matched)}}));var readyList,rnotwhite=/\S+/g;function completed(){document.removeEventListener("DOMContentLoaded",completed),window.removeEventListener("load",completed),mQuery.ready()}mQuery.Callbacks=function(options){options="string"==typeof options?function(options){var object={};return mQuery.each(options.match(rnotwhite)||[],(function(_,flag){object[flag]=!0})),object}(options):mQuery.extend({},options);var firing,memory,fired,locked,list=[],queue=[],firingIndex=-1,fire=function(){for(locked=options.once,fired=firing=!0;queue.length;firingIndex=-1)for(memory=queue.shift();++firingIndex<list.length;)!1===list[firingIndex].apply(memory[0],memory[1])&&options.stopOnFalse&&(firingIndex=list.length,memory=!1);options.memory||(memory=!1),firing=!1,locked&&(list=memory?[]:"")},self={add:function(){return list&&(memory&&!firing&&(firingIndex=list.length-1,queue.push(memory)),function add(args){mQuery.each(args,(function(_,arg){mQuery.isFunction(arg)?options.unique&&self.has(arg)||list.push(arg):arg&&arg.length&&"string"!==mQuery.type(arg)&&add(arg)}))}(arguments),memory&&!firing&&fire()),this},remove:function(){return mQuery.each(arguments,(function(_,arg){for(var index;(index=mQuery.inArray(arg,list,index))>-1;)list.splice(index,1),index<=firingIndex&&firingIndex--})),this},has:function(fn){return fn?mQuery.inArray(fn,list)>-1:list.length>0},empty:function(){return list&&(list=[]),this},disable:function(){return locked=queue=[],list=memory="",this},disabled:function(){return!list},lock:function(){return locked=queue=[],memory||(list=memory=""),this},locked:function(){return!!locked},fireWith:function(context,args){return locked||(args=[context,(args=args||[]).slice?args.slice():args],queue.push(args),firing||fire()),this},fire:function(){return self.fireWith(this,arguments),this},fired:function(){return!!fired}};return self},mQuery.extend({Deferred:function(func){var tuples=[["resolve","done",mQuery.Callbacks("once memory"),"resolved"],["reject","fail",mQuery.Callbacks("once memory"),"rejected"],["notify","progress",mQuery.Callbacks("memory")]],state="pending",promise={state:function(){return state},always:function(){return deferred.done(arguments).fail(arguments),this},then:function(){var fns=arguments;return mQuery.Deferred((function(newDefer){mQuery.each(tuples,(function(i,tuple){var fn=mQuery.isFunction(fns[i])&&fns[i];deferred[tuple[1]]((function(){var returned=fn&&fn.apply(this,arguments);returned&&mQuery.isFunction(returned.promise)?returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject):newDefer[tuple[0]+"With"](this===promise?newDefer.promise():this,fn?[returned]:arguments)}))})),fns=null})).promise()},promise:function(obj){return null!=obj?mQuery.extend(obj,promise):promise}},deferred={};return promise.pipe=promise.then,mQuery.each(tuples,(function(i,tuple){var list=tuple[2],stateString=tuple[3];promise[tuple[1]]=list.add,stateString&&list.add((function(){state=stateString}),tuples[1^i][2].disable,tuples[2][2].lock),deferred[tuple[0]]=function(){return deferred[tuple[0]+"With"](this===deferred?promise:this,arguments),this},deferred[tuple[0]+"With"]=list.fireWith})),promise.promise(deferred),func&&func.call(deferred,deferred),deferred},when:function(subordinate){var progressValues,progressContexts,resolveContexts,i=0,resolveValues=slice.call(arguments),length=resolveValues.length,remaining=1!==length||subordinate&&mQuery.isFunction(subordinate.promise)?length:0,deferred=1===remaining?subordinate:mQuery.Deferred(),updateFunc=function(i,contexts,values){return function(value){contexts[i]=this,values[i]=arguments.length>1?slice.call(arguments):value,values===progressValues?deferred.notifyWith(contexts,values):--remaining||deferred.resolveWith(contexts,values)}};if(length>1)for(progressValues=new Array(length),progressContexts=new Array(length),resolveContexts=new Array(length);i<length;i++)resolveValues[i]&&mQuery.isFunction(resolveValues[i].promise)?resolveValues[i].promise().progress(updateFunc(i,progressContexts,progressValues)).done(updateFunc(i,resolveContexts,resolveValues)).fail(deferred.reject):--remaining;return remaining||deferred.resolveWith(resolveContexts,resolveValues),deferred.promise()}}),mQuery.fn.ready=function(fn){return mQuery.ready.promise().done(fn),this},mQuery.extend({isReady:!1,readyWait:1,holdReady:function(hold){hold?mQuery.readyWait++:mQuery.ready(!0)},ready:function(wait){(!0===wait?--mQuery.readyWait:mQuery.isReady)||(mQuery.isReady=!0,!0!==wait&&--mQuery.readyWait>0||(readyList.resolveWith(document,[mQuery]),mQuery.fn.triggerHandler&&(mQuery(document).triggerHandler("ready"),mQuery(document).off("ready"))))}}),mQuery.ready.promise=function(obj){return readyList||(readyList=mQuery.Deferred(),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(mQuery.ready):(document.addEventListener("DOMContentLoaded",completed),window.addEventListener("load",completed))),readyList.promise(obj)},mQuery.ready.promise();var access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=null==key;if("object"===mQuery.type(key))for(i in chainable=!0,key)access(elems,fn,i,key[i],!0,emptyGet,raw);else if(void 0!==value&&(chainable=!0,mQuery.isFunction(value)||(raw=!0),bulk&&
vendor: 14,881 bytes, line 12
12(raw?(fn.call(elems,value),fn=null):(bulk=fn,fn=function(elem,key,value){return bulk.call(mQuery(elem),value)})),fn))for(;i<len;i++)fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));return chainable?elems:bulk?fn.call(elems):len?fn(elems[0],key):emptyGet},acceptData=function(owner){return 1===owner.nodeType||9===owner.nodeType||!+owner.nodeType};function Data(){this.expando=mQuery.expando+Data.uid++}Data.uid=1,Data.prototype={register:function(owner,initial){var value=initial||{};return owner.nodeType?owner[this.expando]=value:Object.defineProperty(owner,this.expando,{value:value,writable:!0,configurable:!0}),owner[this.expando]},cache:function(owner){if(!acceptData(owner))return{};var value=owner[this.expando];return value||(value={},acceptData(owner)&&(owner.nodeType?owner[this.expando]=value:Object.defineProperty(owner,this.expando,{value:value,configurable:!0}))),value},set:function(owner,data,value){var prop,cache=this.cache(owner);if("string"==typeof data)cache[data]=value;else for(prop in data)cache[prop]=data[prop];return cache},get:function(owner,key){return void 0===key?this.cache(owner):owner[this.expando]&&owner[this.expando][key]},access:function(owner,key,value){var stored;return void 0===key||key&&"string"==typeof key&&void 0===value?void 0!==(stored=this.get(owner,key))?stored:this.get(owner,mQuery.camelCase(key)):(this.set(owner,key,value),void 0!==value?value:key)},remove:function(owner,key){var i,name,camel,cache=owner[this.expando];if(void 0!==cache){if(void 0===key)this.register(owner);else{mQuery.isArray(key)?name=key.concat(key.map(mQuery.camelCase)):(camel=mQuery.camelCase(key),name=key in cache?[key,camel]:(name=camel)in cache?[name]:name.match(rnotwhite)||[]),i=name.length;for(;i--;)delete cache[name[i]]}(void 0===key||mQuery.isEmptyObject(cache))&&(owner.nodeType?owner[this.expando]=void 0:delete owner[this.expando])}},hasData:function(owner){var cache=owner[this.expando];return void 0!==cache&&!mQuery.isEmptyObject(cache)}};var dataPriv=new Data,dataUser=new Data,rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function dataAttr(elem,key,data){var name;if(void 0===data&&1===elem.nodeType)if(name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(),"string"==typeof(data=elem.getAttribute(name))){try{data="true"===data||"false"!==data&&("null"===data?null:+data+""===data?+data:rbrace.test(data)?mQuery.parseJSON(data):data)}catch(e){}dataUser.set(elem,key,data)}else data=void 0;return data}mQuery.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem)},data:function(elem,name,data){return dataUser.access(elem,name,data)},removeData:function(elem,name){dataUser.remove(elem,name)},_data:function(elem,name,data){return dataPriv.access(elem,name,data)},_removeData:function(elem,name){dataPriv.remove(elem,name)}}),mQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(void 0===key){if(this.length&&(data=dataUser.get(elem),1===elem.nodeType&&!dataPriv.get(elem,"hasDataAttrs"))){for(i=attrs.length;i--;)attrs[i]&&0===(name=attrs[i].name).indexOf("data-")&&(name=mQuery.camelCase(name.slice(5)),dataAttr(elem,name,data[name]));dataPriv.set(elem,"hasDataAttrs",!0)}return data}return"object"==typeof key?this.each((function(){dataUser.set(this,key)})):access(this,(function(value){var data,camelKey;if(elem&&void 0===value)return void 0!==(data=dataUser.get(elem,key)||dataUser.get(elem,key.replace(rmultiDash,"-$&").toLowerCase()))?data:(camelKey=mQuery.camelCase(key),void 0!==(data=dataUser.get(elem,camelKey))||void 0!==(data=dataAttr(elem,camelKey,void 0))?data:void 0);camelKey=mQuery.camelCase(key),this.each((function(){var data=dataUser.get(this,camelKey);dataUser.set(this,camelKey,value),key.indexOf("-")>-1&&void 0!==data&&dataUser.set(this,key,value)}))}),null,value,arguments.length>1,null,!0)},removeData:function(key){return this.each((function(){dataUser.remove(this,key)}))}}),mQuery.extend({queue:function(elem,type,data){var queue;if(elem)return type=(type||"fx")+"queue",queue=dataPriv.get(elem,type),data&&(!queue||mQuery.isArray(data)?queue=dataPriv.access(elem,type,mQuery.makeArray(data)):queue.push(data)),queue||[]},dequeue:function(elem,type){type=type||"fx";var queue=mQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=mQuery._queueHooks(elem,type);"inprogress"===fn&&(fn=queue.shift(),startLength--),fn&&("fx"===type&&queue.unshift("inprogress"),delete hooks.stop,fn.call(elem,(function(){mQuery.dequeue(elem,type)}),hooks)),!startLength&&hooks&&hooks.empty.fire()},_queueHooks:function(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:mQuery.Callbacks("once memory").add((function(){dataPriv.remove(elem,[type+"queue",key])}))})}}),mQuery.fn.extend({queue:function(type,data){var setter=2;return"string"!=typeof type&&(data=type,type="fx",setter--),arguments.length<setter?mQuery.queue(this[0],type):void 0===data?this:this.each((function(){var queue=mQuery.queue(this,type,data);mQuery._queueHooks(this,type),"fx"===type&&"inprogress"!==queue[0]&&mQuery.dequeue(this,type)}))},dequeue:function(type){return this.each((function(){mQuery.dequeue(this,type)}))},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){var tmp,count=1,defer=mQuery.Deferred(),elements=this,i=this.length,resolve=function(){--count||defer.resolveWith(elements,[elements])};for("string"!=typeof type&&(obj=type,type=void 0),type=type||"fx";i--;)(tmp=dataPriv.get(elements[i],type+"queueHooks"))&&tmp.empty&&(count++,tmp.empty.add(resolve));return resolve(),defer.promise(obj)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),cssExpand=["Top","Right","Bottom","Left"],isHidden=function(elem,el){return elem=el||elem,"none"===mQuery.css(elem,"display")||!mQuery.contains(elem.ownerDocument,elem)};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale=1,maxIterations=20,currentValue=tween?function(){return tween.cur()}:function(){return mQuery.css(elem,prop,"")},initial=currentValue(),unit=valueParts&&valueParts[3]||(mQuery.cssNumber[prop]?"":"px"),initialInUnit=(mQuery.cssNumber[prop]||"px"!==unit&&+initial)&&rcssNum.exec(mQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){unit=unit||initialInUnit[3],valueParts=valueParts||[],initialInUnit=+initial||1;do{initialInUnit/=scale=scale||".5",mQuery.style(elem,prop,initialInUnit+unit)}while(scale!==(scale=currentValue()/initial)&&1!==scale&&--maxIterations)}return valueParts&&(initialInUnit=+initialInUnit||+initial||0,adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2],tween&&(tween.unit=unit,tween.start=initialInUnit,tween.end=adjusted)),adjusted}var rcheckableType=/^(?:checkbox|radio)$/i,rtagName=/<([\w:-]+)/,rscriptType=/^$|\/(?:java|ecma)script/i,wrapMap={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function getAll(context,tag){var ret=void 0!==context.getElementsByTagName?context.getElementsByTagName(tag||"*"):void 0!==context.querySelectorAll?context.querySelectorAll(tag||"*"):[];return void 0===tag||tag&&mQuery.nodeName(context,tag)?mQuery.merge([context],ret):ret}function setGlobalEval(elems,refElements){for(var i=0,l=elems.length;i<l;i++)dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"))}wrapMap.optgroup=wrapMap.option,wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td;var div,input,rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){for(var elem,tmp,tag,wrap,contains,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;i<l;i++)if((elem=elems[i])||0===elem)if("object"===mQuery.type(elem))mQuery.merge(nodes,elem.nodeType?[elem]:elem);else if(rhtml.test(elem)){for(tmp=tmp||fragment.appendChild(context.createElement("div")),tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,tmp.innerHTML=wrap[1]+mQuery.htmlPrefilter(elem)+wrap[2],j=wrap[0];j--;)tmp=tmp.lastChild;mQuery.merge(nodes,tmp.childNodes),(tmp=fragment.firstChild).textContent=""}else nodes.push(context.createTextNode(elem));for(fragment.textContent="",i=0;elem=nodes[i++];)if(selection&&mQuery.inArray(elem,selection)>-1)ignored&&ignored.push(elem);else if(contains=mQuery.contains(elem.ownerDocument,elem),tmp=getAll(fragment.appendChild(elem),"script"),contains&&setGlobalEval(tmp),scripts)for(j=0;elem=tmp[j++];)rscriptType.test(elem.type||"")&&scripts.push(elem);return fragment}div=document.createDocumentFragment().appendChild(document.createElement("div")),(input=document.createElement("input")).setAttribute("type","radio"),input.setAttribute("checked","checked"),input.setAttribute("name","t"),div.appendChild(input),support.checkClone=div.cloneNode(!0).cloneNode(!0).lastChild.checked,div.innerHTML="<textarea>x</textarea>",support.noCloneChecked=!!div.cloneNode(!0).lastChild.defaultValue;var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return document.activeElement}catch(err){}}function on(elem,types,selector,data,fn,one){var origFn,type;if("object"==typeof types){for(type in"string"!=typeof selector&&(data=data||selector,selector=void 0),types)on(elem,type,selector,data,types[type],one);return elem}if(null==data&&null==fn?(fn=selector,data=selector=void 0):null==fn&&("string"==typeof selector?(fn=data,data=void 0):(fn=data,data=selector,selector=void 0)),!1===fn)fn=returnFalse;else if(!fn)return elem;return 1===one&&(origFn=fn,fn=function(event){return mQuery().off(event),origFn.apply(this,arguments)},fn.guid=origFn.guid||(origFn.guid=mQuery.guid++)),elem.each((function(){mQuery.event.add(this,types,fn,data,selector)}))}mQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);if(elemData)for(handler.handler&&(handler=(handleObjIn=handler).handler,selector=handleObjIn.selector),handler.guid||(handler.guid=mQuery.guid++),(events=elemData.events)||(events=elemData.events={}),(eventHandle=elemData.handle)||(eventHandle=elemData.handle=function(e){return void 0!==mQuery&&mQuery.event.triggered!==e.type?mQuery.event.dispatch.apply(elem,arguments):void 0}),t=(types=(types||"").match(rnotwhite)||[""]).length;t--;)type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],namespaces=(tmp[2]||"").split(".").sort(),type&&(special=mQuery.event.special[type]||{},type=(selector?special.delegateType:special.bindType)||type,special=mQuery.event.special[type]||{},handleObj=mQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&mQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn),(handlers=events[type])||((handlers=events[type]=[]).delegateCount=0,special.setup&&!1!==special.setup.call(elem,data,namespaces,eventHandle)||elem.addEventListener&&elem.addEventListener(type,eventHandle)),special.add&&(special.add.call(elem,handleObj),handleObj.handler.guid||(handleObj.handler.guid=handler.guid)),selector?handlers.splice(handlers.delegateCount++,0,handleObj):handlers.push(handleObj),mQuery.event.global[type]=!0)},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(elemData&&(events=elemData.events)){for(t=(types=(types||"").match(rnotwhite)||[""]).length;t--;)if(type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],namespaces=(tmp[2]||"").split(".").sort(),type){for(special=mQuery.event.special[type]||{},handlers=events[type=(selector?special.delegateType:special.bindType)||type]||[],tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"),origCount=j=handlers.length;j--;)handleObj=handlers[j],!mappedTypes&&origType!==handleObj.origType||handler&&handler.guid!==handleObj.guid||tmp&&!tmp.test(handleObj.namespace)||selector&&selector!==handleObj.selector&&("**"!==selector||!handleObj.selector)||(handlers.splice(j,1),handleObj.selector&&handlers.delegateCount--,special.remove&&special.remove.call(elem,handleObj));origCount&&!handlers.length&&(special.teardown&&!1!==special.teardown.call(elem,namespaces,elemData.handle)||mQuery.removeEvent(elem,type,elemData.handle),delete events[type])}else for(type in events)mQuery.event.remove(elem,type+types[t],handler,selector,!0);mQuery.isEmptyObject(events)&&dataPriv.remove(elem,"handle events")}},dispatch:function(event){event=mQuery.event.fix(event);var i,j,ret,matched,handleObj,handlerQueue,args=slice.call(arguments),handlers=(dataPriv.get(this,"events")||{})[event.type]||[],special=mQuery.event.special[event.type]||{};if(args[0]=event,event.delegateTarget=this,!special.preDispatch||!1!==special.preDispatch.call(this,event)){for(handlerQueue=mQuery.event.handlers.call(this,event,handlers),i=0;(matched=handlerQueue[i++])&&!event.isPropagationStopped();)for(event.currentTarget=matched.elem,j=0;(handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped();)event.rnamespace&&!event.rnamespace.test(handleObj.namespace)||(event.handleObj=handleObj,event.data=handleObj.data,void 0!==(ret=((mQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args))&&!1===(event.result=ret)&&(event.preventDefault(),event.stopPropagation()));return special.postDispatch&&special.postDispatch.call(this,event),event.result}},handlers:function(event,handlers){var i,matches,sel,handleObj,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&("click"!==event.type||isNaN(event.button)||event.button<1))for(;cur!==this;cur=cur.parentNode||this)if(1===cur.nodeType&&(!0!==cur.disabled||"click"!==event.type)){for(matches=[],i=0;i<delegateCount;i++)void 0===matches[sel=(handleObj=handlers[i]).selector+" "]&&(matches[sel]=handleObj.needsContext?mQuery(sel,this).index(cur)>-1:mQuery.find(sel,this,null,[cur]).length),matches[sel]&&matches.push(handleObj);matches.length&&handlerQueue.push({elem:cur,handlers:matches})}return delegateCount<handlers.length&&handlerQueue.push({elem:this,handlers:handlers.slice(delegateCount)}),handlerQueue},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{}
vendor: 3,155 bytes, line 12
12,keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(event,original){return null==event.which&&(event.which=null!=original.charCode?original.charCode:original.keyCode),event}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(event,original){var eventDoc,doc,body,button=original.button;return null==event.pageX&&null!=original.clientX&&(doc=(eventDoc=event.target.ownerDocument||document).documentElement,body=eventDoc.body,event.pageX=original.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0),event.pageY=original.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0)),event.which||void 0===button||(event.which=1&button?1:2&button?3:4&button?2:0),event}},fix:function(event){if(event[mQuery.expando])return event;var i,prop,copy,type=event.type,originalEvent=event,fixHook=this.fixHooks[type];for(fixHook||(this.fixHooks[type]=fixHook=rmouseEvent.test(type)?this.mouseHooks:rkeyEvent.test(type)?this.keyHooks:{}),copy=fixHook.props?this.props.concat(fixHook.props):this.props,event=new mQuery.Event(originalEvent),i=copy.length;i--;)event[prop=copy[i]]=originalEvent[prop];return event.target||(event.target=document),3===event.target.nodeType&&(event.target=event.target.parentNode),fixHook.filter?fixHook.filter(event,originalEvent):event},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&mQuery.nodeName(this,"input"))return this.click(),!1},_default:function(event){return mQuery.nodeName(event.target,"a")}},beforeunload:{postDispatch:function(event){void 0!==event.result&&event.originalEvent&&(event.originalEvent.returnValue=event.result)}}}},mQuery.removeEvent=function(elem,type,handle){elem.removeEventListener&&elem.removeEventListener(type,handle)},mQuery.Event=function(src,props){if(!(this instanceof mQuery.Event))return new mQuery.Event(src,props);src&&src.type?(this.originalEvent=src,this.type=src.type,this.isDefaultPrevented=src.defaultPrevented||void 0===src.defaultPrevented&&!1===src.returnValue?returnTrue:returnFalse):this.type=src,props&&mQuery.extend(this,props),this.timeStamp=src&&src.timeStamp||mQuery.now(),this[mQuery.expando]=!0},mQuery.Event.prototype={constructor:mQuery.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}}
vendor: 4,584 bytes, line 12
12,mQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(orig,fix){mQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,related=event.relatedTarget,handleObj=event.handleObj;return related&&(related===this||mQuery.contains(this,related))||(event.type=handleObj.origType,ret=handleObj.handler.apply(this,arguments),event.type=fix),ret}}})),mQuery.fn.extend({on:function(types,selector,data,fn){return on(this,types,selector,data,fn)},one:function(types,selector,data,fn){return on(this,types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj)return handleObj=types.handleObj,mQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler),this;if("object"==typeof types){for(type in types)this.off(type,selector,types[type]);return this}return!1!==selector&&"function"!=typeof selector||(fn=selector,selector=void 0),!1===fn&&(fn=returnFalse),this.each((function(){mQuery.event.remove(this,types,fn,selector)}))}});var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptTypeMasked=/^true\/(.*)/,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function manipulationTarget(elem,content){return mQuery.nodeName(elem,"table")&&mQuery.nodeName(11!==content.nodeType?content:content.firstChild,"tr")?elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody")):elem}function disableScript(elem){return elem.type=(null!==elem.getAttribute("type"))+"/"+elem.type,elem}function restoreScript(elem){var match=rscriptTypeMasked.exec(elem.type);return match?elem.type=match[1]:elem.removeAttribute("type"),elem}function cloneCopyEvent(src,dest){var i,l,type,pdataOld,pdataCur,udataOld,udataCur,events;if(1===dest.nodeType){if(dataPriv.hasData(src)&&(pdataOld=dataPriv.access(src),pdataCur=dataPriv.set(dest,pdataOld),events=pdataOld.events))for(type in delete pdataCur.handle,pdataCur.events={},events)for(i=0,l=events[type].length;i<l;i++)mQuery.event.add(dest,type,events[type][i]);dataUser.hasData(src)&&(udataOld=dataUser.access(src),udataCur=mQuery.extend({},udataOld),dataUser.set(dest,udataCur))}}function domManip(collection,args,callback,ignored){args=concat.apply([],args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],isFunction=mQuery.isFunction(value);if(isFunction||l>1&&"string"==typeof value&&!support.checkClone&&rchecked.test(value))return collection.each((function(index){var self=collection.eq(index);isFunction&&(args[0]=value.call(this,index,self.html())),domManip(self,args,callback,ignored)}));if(l&&(first=(fragment=buildFragment(args,collection[0].ownerDocument,!1,collection,ignored)).firstChild,1===fragment.childNodes.length&&(fragment=first),first||ignored)){for(hasScripts=(scripts=mQuery.map(getAll(fragment,"script"),disableScript)).length;i<l;i++)node=fragment,i!==iNoClone&&(node=mQuery.clone(node,!0,!0),hasScripts&&mQuery.merge(scripts,getAll(node,"script"))),callback.call(collection[i],node,i);if(hasScripts)for(doc=scripts[scripts.length-1].ownerDocument,mQuery.map(scripts,restoreScript),i=0;i<hasScripts;i++)node=scripts[i],rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&mQuery.contains(doc,node)&&(node.src?mQuery._evalUrl&&mQuery._evalUrl(node.src):mQuery.globalEval(node.textContent.replace(rcleanScript,"")))}return collection}function remove(elem,selector,keepData){for(var node,nodes=selector?mQuery.filter(selector,elem):elem,i=0;null!=(node=nodes[i]);i++)keepData||1!==node.nodeType||mQuery.cleanData(getAll(node)),node.parentNode&&(keepData&&mQuery.contains(node.ownerDocument,node)&&setGlobalEval(getAll(node,"script")),node.parentNode.removeChild(node));return elem}mQuery.extend({htmlPrefilter:function(html){return html.replace(rxhtmlTag,"<$1></$2>")},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,src,dest,nodeName,clone=elem.cloneNode(!0),inPage=mQuery.contains(elem.ownerDocument,elem);if(!(support.noCloneChecked||1!==elem.nodeType&&11!==elem.nodeType||mQuery.isXMLDoc(elem)))for(destElements=getAll(clone),i=0,l=(srcElements=getAll(elem)).length;i<l;i++)src=srcElements[i],dest=destElements[i],nodeName=void 0,"input"===(nodeName=dest.nodeName.toLowerCase())&&rcheckableType.test(src.type)?de
vendor: 9,564 bytes, line 12
12st.checked=src.checked:"input"!==nodeName&&"textarea"!==nodeName||(dest.defaultValue=src.defaultValue);if(dataAndEvents)if(deepDataAndEvents)for(srcElements=srcElements||getAll(elem),destElements=destElements||getAll(clone),i=0,l=srcElements.length;i<l;i++)cloneCopyEvent(srcElements[i],destElements[i]);else cloneCopyEvent(elem,clone);return(destElements=getAll(clone,"script")).length>0&&setGlobalEval(destElements,!inPage&&getAll(elem,"script")),clone},cleanData:function(elems){for(var data,elem,type,special=mQuery.event.special,i=0;void 0!==(elem=elems[i]);i++)if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events)for(type in data.events)special[type]?mQuery.event.remove(elem,type):mQuery.removeEvent(elem,type,data.handle);elem[dataPriv.expando]=void 0}elem[dataUser.expando]&&(elem[dataUser.expando]=void 0)}}}),mQuery.fn.extend({domManip:domManip,detach:function(selector){return remove(this,selector,!0)},remove:function(selector){return remove(this,selector)},text:function(value){return access(this,(function(value){return void 0===value?mQuery.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=value)}))}),null,value,arguments.length)},append:function(){return domManip(this,arguments,(function(elem){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||manipulationTarget(this,elem).appendChild(elem)}))},prepend:function(){return domManip(this,arguments,(function(elem){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild)}}))},before:function(){return domManip(this,arguments,(function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this)}))},after:function(){return domManip(this,arguments,(function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this.nextSibling)}))},empty:function(){for(var elem,i=0;null!=(elem=this[i]);i++)1===elem.nodeType&&(mQuery.cleanData(getAll(elem,!1)),elem.textContent="");return this},clone:function(dataAndEvents,deepDataAndEvents){return dataAndEvents=null!=dataAndEvents&&dataAndEvents,deepDataAndEvents=null==deepDataAndEvents?dataAndEvents:deepDataAndEvents,this.map((function(){return mQuery.clone(this,dataAndEvents,deepDataAndEvents)}))},html:function(value){return access(this,(function(value){var elem=this[0]||{},i=0,l=this.length;if(void 0===value&&1===elem.nodeType)return elem.innerHTML;if("string"==typeof value&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=mQuery.htmlPrefilter(value);try{for(;i<l;i++)1===(elem=this[i]||{}).nodeType&&(mQuery.cleanData(getAll(elem,!1)),elem.innerHTML=value);elem=0}catch(e){}}elem&&this.empty().append(value)}),null,value,arguments.length)},replaceWith:function(){var ignored=[];return domManip(this,arguments,(function(elem){var parent=this.parentNode;mQuery.inArray(this,ignored)<0&&(mQuery.cleanData(getAll(this)),parent&&parent.replaceChild(elem,this))}),ignored)}}),mQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(name,original){mQuery.fn[name]=function(selector){for(var elems,ret=[],insert=mQuery(selector),last=insert.length-1,i=0;i<=last;i++)elems=i===last?this:this.clone(!0),mQuery(insert[i])[original](elems),push.apply(ret,elems.get());return this.pushStack(ret)}}));var iframe,elemdisplay={HTML:"block",BODY:"block"};function actualDisplay(name,doc){var elem=mQuery(doc.createElement(name)).appendTo(doc.body),display=mQuery.css(elem[0],"display");return elem.detach(),display}function defaultDisplay(nodeName){var doc=document,display=elemdisplay[nodeName];return display||("none"!==(display=actualDisplay(nodeName,doc))&&display||((doc=(iframe=(iframe||mQuery("<iframe frameborder='0' width='0' height='0'/>")).appendTo(doc.documentElement))[0].contentDocument).write(),doc.close(),display=actualDisplay(nodeName,doc),iframe.detach()),elemdisplay[nodeName]=display),display}var rmargin=/^margin/,rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),getStyles=function(elem){var view=elem.ownerDocument.defaultView;return view&&view.opener||(view=window),view.getComputedStyle(elem)},swap=function(elem,options,callback,args){var ret,name,old={};for(name in options)old[name]=elem.style[name],elem.style[name]=options[name];for(name in ret=callback.apply(elem,args||[]),options)elem.style[name]=old[name];return ret},documentElement=document.documentElement;function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;return""!==(ret=(computed=computed||getStyles(elem))?computed.getPropertyValue(name)||computed[name]:void 0)&&void 0!==ret||mQuery.contains(elem.ownerDocument,elem)||(ret=mQuery.style(elem,name)),computed&&!support.pixelMarginRight()&&rnumnonpx.test(ret)&&rmargin.test(name)&&(width=style.width,minWidth=style.minWidth,maxWidth=style.maxWidth,style.minWidth=style.maxWidth=style.width=ret,ret=computed.width,style.width=width,style.minWidth=minWidth,style.maxWidth=maxWidth),void 0!==ret?ret+"":ret}function addGetHookIf(conditionFn,hookFn){return{get:function(){if(!conditionFn())return(this.get=hookFn).apply(this,arguments);delete this.get}}}!function(){var pixelPositionVal,boxSizingReliableVal,pixelMarginRightVal,reliableMarginLeftVal,container=document.createElement("div"),div=document.createElement("div");function computeStyleTests(){div.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",div.innerHTML="",documentElement.appendChild(container);var divStyle=window.getComputedStyle(div);pixelPositionVal="1%"!==divStyle.top,reliableMarginLeftVal="2px"===divStyle.marginLeft,boxSizingReliableVal="4px"===divStyle.width,div.style.marginRight="50%",pixelMarginRightVal="4px"===divStyle.marginRight,documentElement.removeChild(container)}div.style&&(div.style.backgroundClip="content-box",div.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle="content-box"===div.style.backgroundClip,container.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",container.appendChild(div),mQuery.extend(support,{pixelPosition:function(){return computeStyleTests(),pixelPositionVal},boxSizingReliable:function(){return null==boxSizingReliableVal&&computeStyleTests(),boxSizingReliableVal},pixelMarginRight:function(){return null==boxSizingReliableVal&&computeStyleTests(),pixelMarginRightVal},reliableMarginLeft:function(){return null==boxSizingReliableVal&&computeStyleTests(),reliableMarginLeftVal},reliableMarginRight:function(){var ret,marginDiv=div.appendChild(document.createElement("div"));return marginDiv.style.cssText=div.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",marginDiv.style.marginRight=marginDiv.style.width="0",div.style.width="1px",documentElement.appendChild(container),ret=!parseFloat(window.getComputedStyle(marginDiv).marginRight),documentElement.removeChild(container),div.removeChild(marginDiv),ret}}))}();var rdisplayswap=/^(none|table(?!-c[ea]).+)/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"},cssPrefixes=["Webkit","O","Moz","ms"],emptyStyle=document.createElement("div").style;function vendorPropName(name){if(name in emptyStyle)return name;for(var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;i--;)if((name=cssPrefixes[i]+capName)in emptyStyle)return name}function setPositiveNumber(elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value}function augmentWidthOrHeight(elem,name,extra,isBorderBox,styles){for(var i=extra===(isBorderBox?"border":"content")?4:"width"===name?1:0,val=0;i<4;i+=2)"margin"===extra&&(val+=mQuery.css(elem,extra+cssExpand[i],!0,styles)),isBorderBox?("content"===extra&&(val-=mQuery.css(elem,"padding"+cssExpand[i],!0,styles)),"margin"!==extra&&(val-=mQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles))):(val+=mQuery.css(elem,"padding"+cssExpand[i],!0,styles),"padding"!==extra&&(val+=mQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles)));return val}function getWidthOrHeight(elem,name,extra){var valueIsBorderBox=!0,val="width"===name?elem.offsetWidth:elem.offsetHeight,styles=getStyles(elem),isBorderBox="border-box"===mQuery.css(elem,"boxSizing",!1,styles);if(val<=0||null==val){if(((val=curCSS(elem,name,styles))<0||null==val)&&(val=elem.style[name]),rnumnonpx.test(val))return val;valueIsBorderBox=isBorderBox&&(support.boxSizingReliable()||val===elem.style[name]),val=parseFloat(val)||0}return val+augmentWidthOrHeight(elem,name,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles)+"px"}function showHide(elements,show){for(var display,elem,hidden,values=[],index=0,length=elements.length;index<length;index++)(elem=elements[index]).style&&(values[index]=dataPriv.get(elem,"olddisplay"),display=elem.style.display,show?(values[index]||"none"!==display||(elem.style.display=""),""===elem.style.display&&isHidden(elem)&&(values[index]=dataPriv.access(elem,"olddisplay",defaultDisplay(elem.nodeName)))):(hidden=isHidden(elem),"none"===display&&hidden||dataPriv.set(elem,"olddisplay",hidden?display:mQuery.css(elem,"display"))));for(index=0;index<length;index++)(elem=elements[index]).style&&(show&&"none"!==elem.style.display&&""!==elem.style.display||(elem.style.display=s
vendor: 7,786 bytes, line 12
12how?values[index]||"":"none"));return elements}function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}mQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return""===ret?"1":ret}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(elem,name,value,extra){if(elem&&3!==elem.nodeType&&8!==elem.nodeType&&elem.style){var ret,type,hooks,origName=mQuery.camelCase(name),style=elem.style;if(name=mQuery.cssProps[origName]||(mQuery.cssProps[origName]=vendorPropName(origName)||origName),hooks=mQuery.cssHooks[name]||mQuery.cssHooks[origName],void 0===value)return hooks&&"get"in hooks&&void 0!==(ret=hooks.get(elem,!1,extra))?ret:style[name];"string"===(type=typeof value)&&(ret=rcssNum.exec(value))&&ret[1]&&(value=adjustCSS(elem,name,ret),type="number"),null!=value&&value==value&&("number"===type&&(value+=ret&&ret[3]||(mQuery.cssNumber[origName]?"":"px")),support.clearCloneStyle||""!==value||0!==name.indexOf("background")||(style[name]="inherit"),hooks&&"set"in hooks&&void 0===(value=hooks.set(elem,value,extra))||(style[name]=value))}},css:function(elem,name,extra,styles){var val,num,hooks,origName=mQuery.camelCase(name);return name=mQuery.cssProps[origName]||(mQuery.cssProps[origName]=vendorPropName(origName)||origName),(hooks=mQuery.cssHooks[name]||mQuery.cssHooks[origName])&&"get"in hooks&&(val=hooks.get(elem,!0,extra)),void 0===val&&(val=curCSS(elem,name,styles)),"normal"===val&&name in cssNormalTransform&&(val=cssNormalTransform[name]),""===extra||extra?(num=parseFloat(val),!0===extra||isFinite(num)?num||0:val):val}}),mQuery.each(["height","width"],(function(i,name){mQuery.cssHooks[name]={get:function(elem,computed,extra){if(computed)return rdisplayswap.test(mQuery.css(elem,"display"))&&0===elem.offsetWidth?swap(elem,cssShow,(function(){return getWidthOrHeight(elem,name,extra)})):getWidthOrHeight(elem,name,extra)},set:function(elem,value,extra){var matches,styles=extra&&getStyles(elem),subtract=extra&&augmentWidthOrHeight(elem,name,extra,"border-box"===mQuery.css(elem,"boxSizing",!1,styles),styles);return subtract&&(matches=rcssNum.exec(value))&&"px"!==(matches[3]||"px")&&(elem.style[name]=value,value=mQuery.css(elem,name)),setPositiveNumber(0,value,subtract)}}})),mQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,(function(elem,computed){if(computed)return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},(function(){return elem.getBoundingClientRect().left})))+"px"})),mQuery.cssHooks.marginRight=addGetHookIf(support.reliableMarginRight,(function(elem,computed){if(computed)return swap(elem,{display:"inline-block"},curCSS,[elem,"marginRight"])})),mQuery.each({margin:"",padding:"",border:"Width"},(function(prefix,suffix){mQuery.cssHooks[prefix+suffix]={expand:function(value){for(var i=0,expanded={},parts="string"==typeof value?value.split(" "):[value];i<4;i++)expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];return expanded}},rmargin.test(prefix)||(mQuery.cssHooks[prefix+suffix].set=setPositiveNumber)})),mQuery.fn.extend({css:function(name,value){return access(this,(function(elem,name,value){var styles,len,map={},i=0;if(mQuery.isArray(name)){for(styles=getStyles(elem),len=name.length;i<len;i++)map[name[i]]=mQuery.css(elem,name[i],!1,styles);return map}return void 0!==value?mQuery.style(elem,name,value):mQuery.css(elem,name)}),name,value,arguments.length>1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(state){return"boolean"==typeof state?state?this.show():this.hide():this.each((function(){isHidden(this)?mQuery(this).show():mQuery(this).hide()}))}}),mQuery.Tween=Tween,Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem,this.prop=prop,this.easing=easing||mQuery.easing._default,this.options=options,this.start=this.now=this.cur(),this.end=end,this.unit=unit||(mQuery.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];return this.options.duration?this.pos=eased=mQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration):this.pos=eased=percent,this.now=(this.end-this.start)*eased+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),hooks&&hooks.set?hooks.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(tween){var result;return 1!==tween.elem.nodeType||null!=tween.elem[tween.prop]&&null==tween.elem.style[tween.prop]?tween.elem[tween.prop]:(result=mQuery.css(tween.elem,tween.prop,""))&&"auto"!==result?result:0},set:function(tween){mQuery.fx.step[tween.prop]?mQuery.fx.step[tween.prop](tween):1!==tween.elem.nodeType||null==tween.elem.style[mQuery.cssProps[tween.prop]]&&!mQuery.cssHooks[tween.prop]?tween.elem[tween.prop]=tween.now:mQuery.style(tween.elem,tween.prop,tween.now+tween.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){tween.elem.nodeType&&tween.elem.parentNode&&(tween.elem[tween.prop]=tween.now)}},mQuery.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},_default:"swing"},mQuery.fx=Tween.prototype.init,mQuery.fx.step={};var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function createFxNow(){return window.setTimeout((function(){fxNow=void 0})),fxNow=mQuery.now()}function genFx(type,includeWidth){var which,i=0,attrs={height:type};for(includeWidth=includeWidth?1:0;i<4;i+=2-includeWidth)attrs["margin"+(which=cssExpand[i])]=attrs["padding"+which]=type;return includeWidth&&(attrs.opacity=attrs.width=type),attrs}function createTween(value,prop,animation){for(var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;index<length;index++)if(tween=collection[index].call(animation,prop,value))return tween}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=mQuery.Deferred().always((function(){delete tick.elem})),tick=function(){if(stopped)return!1;for(var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),percent=1-(remaining/animation.duration||0),index=0,length=animation.tweens.length;index<length;index++)animation.tweens[index].run(percent);return deferred.notifyWith(elem,[animation,percent,remaining]),percent<1&&length?remaining:(deferred.resolveWith(elem,[animation]),!1)},animation=deferred.promise({elem:elem,props:mQuery.extend({},properties),opts:mQuery.extend(!0,{specialEasing:{},easing:mQuery.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){var tween=mQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);return animation.tweens.push(tween),tween},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped)return this;for(stopped=!0;index<length;index++)animation.tweens[index].run(1);return gotoEnd?(deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation,gotoEnd])):deferred.rejectWith(elem,[animation,gotoEnd]),this}}),props=animation.props;for(!function(props,specialEasing){var index,name,easing,value,hooks;
vendor: 4,305 bytes, line 12
12for(index in props)if(easing=specialEasing[name=mQuery.camelCase(index)],value=props[index],mQuery.isArray(value)&&(easing=value[1],value=props[index]=value[0]),index!==name&&(props[name]=value,delete props[index]),(hooks=mQuery.cssHooks[name])&&"expand"in hooks)for(index in value=hooks.expand(value),delete props[name],value)index in props||(props[index]=value[index],specialEasing[index]=easing);else specialEasing[name]=easing}(props,animation.opts.specialEasing);index<length;index++)if(result=Animation.prefilters[index].call(animation,elem,props,animation.opts))return mQuery.isFunction(result.stop)&&(mQuery._queueHooks(animation.elem,animation.opts.queue).stop=mQuery.proxy(result.stop,result)),result;return mQuery.map(props,createTween,animation),mQuery.isFunction(animation.opts.start)&&animation.opts.start.call(elem,animation),mQuery.fx.timer(mQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue})),animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always)}mQuery.Animation=mQuery.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);return adjustCSS(tween.elem,prop,rcssNum.exec(value),tween),tween}]},tweener:function(props,callback){mQuery.isFunction(props)?(callback=props,props=["*"]):props=props.match(rnotwhite);for(var prop,index=0,length=props.length;index<length;index++)prop=props[index],Animation.tweeners[prop]=Animation.tweeners[prop]||[],Animation.tweeners[prop].unshift(callback)},prefilters:[function(elem,props,opts){var prop,value,toggle,tween,hooks,oldfire,display,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHidden(elem),dataShow=dataPriv.get(elem,"fxshow");for(prop in opts.queue||(null==(hooks=mQuery._queueHooks(elem,"fx")).unqueued&&(hooks.unqueued=0,oldfire=hooks.empty.fire,hooks.empty.fire=function(){hooks.unqueued||oldfire()}),hooks.unqueued++,anim.always((function(){anim.always((function(){hooks.unqueued--,mQuery.queue(elem,"fx").length||hooks.empty.fire()}))}))),1===elem.nodeType&&("height"in props||"width"in props)&&(opts.overflow=[style.overflow,style.overflowX,style.overflowY],"inline"===("none"===(display=mQuery.css(elem,"display"))?dataPriv.get(elem,"olddisplay")||defaultDisplay(elem.nodeName):display)&&"none"===mQuery.css(elem,"float")&&(style.display="inline-block")),opts.overflow&&(style.overflow="hidden",anim.always((function(){style.overflow=opts.overflow[0],style.overflowX=opts.overflow[1],style.overflowY=opts.overflow[2]}))),props)if(value=props[prop],rfxtypes.exec(value)){if(delete props[prop],toggle=toggle||"toggle"===value,value===(hidden?"hide":"show")){if("show"!==value||!dataShow||void 0===dataShow[prop])continue;hidden=!0}orig[prop]=dataShow&&dataShow[prop]||mQuery.style(elem,prop)}else display=void 0;if(mQuery.isEmptyObject(orig))"inline"===("none"===display?defaultDisplay(elem.nodeName):display)&&(style.display=display);else for(prop in dataShow?"hidden"in dataShow&&(hidden=dataShow.hidden):dataShow=dataPriv.access(elem,"fxshow",{}),toggle&&(dataShow.hidden=!hidden),hidden?mQuery(elem).show():anim.done((function(){mQuery(elem).hide()})),anim.done((function(){var prop;for(prop in dataPriv.remove(elem,"fxshow"),orig)mQuery.style(elem,prop,orig[prop])})),orig)tween=createTween(hidden?dataShow[prop]:0,prop,anim),prop in dataShow||(dataShow[prop]=tween.start,hidden&&(tween.end=tween.start,tween.start="width"===prop||"height"===prop?1:0))}],prefilter:function(callback,prepend){prepend?Animation.prefilters.unshift(callback):Animation.prefilters.push(callback)}}),mQuery.speed=function(speed,easing,fn){var opt=speed&&"object"==typeof speed?mQuery.extend({},speed):{complete:fn||!fn&&easing||mQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!mQuery.isFunction(easing)&&easing};return opt.duration=mQuery.fx.off?0:"number"==typeof opt.duration?opt.duration:opt.duration in mQuery.fx.speeds?mQuery.fx.speeds[opt.duration]:mQuery.fx.speeds._default,null!=opt.queue&&!0!==opt.queue||(opt.queue="fx"),opt.old=opt.complete,opt.complete=function(){mQuery.isFunction(opt.old)&&opt.old.call(this),opt.queue&&mQuery.dequeue(this,opt.queue)},opt},mQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHidden
vendor: 6,184 bytes, line 12
12).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var empty=mQuery.isEmptyObject(prop),optall=mQuery.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,mQuery.extend({},prop),optall);(empty||dataPriv.get(this,"finish"))&&anim.stop(!0)};return doAnimation.finish=doAnimation,empty||!1===optall.queue?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop,stop(gotoEnd)};return"string"!=typeof type&&(gotoEnd=clearQueue,clearQueue=type,type=void 0),clearQueue&&!1!==type&&this.queue(type||"fx",[]),this.each((function(){var dequeue=!0,index=null!=type&&type+"queueHooks",timers=mQuery.timers,data=dataPriv.get(this);if(index)data[index]&&data[index].stop&&stopQueue(data[index]);else for(index in data)data[index]&&data[index].stop&&rrun.test(index)&&stopQueue(data[index]);for(index=timers.length;index--;)timers[index].elem!==this||null!=type&&timers[index].queue!==type||(timers[index].anim.stop(gotoEnd),dequeue=!1,timers.splice(index,1));!dequeue&&gotoEnd||mQuery.dequeue(this,type)}))},finish:function(type){return!1!==type&&(type=type||"fx"),this.each((function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=mQuery.timers,length=queue?queue.length:0;for(data.finish=!0,mQuery.queue(this,type,[]),hooks&&hooks.stop&&hooks.stop.call(this,!0),index=timers.length;index--;)timers[index].elem===this&&timers[index].queue===type&&(timers[index].anim.stop(!0),timers.splice(index,1));for(index=0;index<length;index++)queue[index]&&queue[index].finish&&queue[index].finish.call(this);delete data.finish}))}}),mQuery.each(["toggle","show","hide"],(function(i,name){var cssFn=mQuery.fn[name];mQuery.fn[name]=function(speed,easing,callback){return null==speed||"boolean"==typeof speed?cssFn.apply(this,arguments):this.animate(genFx(name,!0),speed,easing,callback)}})),mQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(name,props){mQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}})),mQuery.timers=[],mQuery.fx.tick=function(){var timer,i=0,timers=mQuery.timers;for(fxNow=mQuery.now();i<timers.length;i++)(timer=timers[i])()||timers[i]!==timer||timers.splice(i--,1);timers.length||mQuery.fx.stop(),fxNow=void 0},mQuery.fx.timer=function(timer){mQuery.timers.push(timer),timer()?mQuery.fx.start():mQuery.timers.pop()},mQuery.fx.interval=13,mQuery.fx.start=function(){timerId||(timerId=window.setInterval(mQuery.fx.tick,mQuery.fx.interval))},mQuery.fx.stop=function(){window.clearInterval(timerId),timerId=null},mQuery.fx.speeds={slow:600,fast:200,_default:400},mQuery.fn.delay=function(time,type){return time=mQuery.fx&&mQuery.fx.speeds[time]||time,type=type||"fx",this.queue(type,(function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout)}}))},function(){var input=document.createElement("input"),select=document.createElement("select"),opt=select.appendChild(document.createElement("option"));input.type="checkbox",support.checkOn=""!==input.value,support.optSelected=opt.selected,select.disabled=!0,support.optDisabled=!opt.disabled,(input=document.createElement("input")).value="t",input.type="radio",support.radioValue="t"===input.value}();var boolHook,attrHandle=mQuery.expr.attrHandle;mQuery.fn.extend({attr:function(name,value){return access(this,mQuery.attr,name,value,arguments.length>1)},removeAttr:function(name){return this.each((function(){mQuery.removeAttr(this,name)}))}}),mQuery.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return void 0===elem.getAttribute?mQuery.prop(elem,name,value):(1===nType&&mQuery.isXMLDoc(elem)||(name=name.toLowerCase(),hooks=mQuery.attrHooks[name]||(mQuery.expr.match.bool.test(name)?boolHook:void 0)),void 0!==value?null===value?void mQuery.removeAttr(elem,name):hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:(elem.setAttribute(name,value+""),value):hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name))?ret:null==(ret=mQuery.find.attr(elem,name))?void 0:ret)},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&"radio"===value&&mQuery.nodeName(elem,"input")){var val=elem.value;return elem.setAttribute("type",value),val&&(elem.value=val),value}}}},removeAttr:function(elem,value){var name,propName,i=0,attrNames=value&&value.match(rnotwhite);if(attrNames&&1===elem.nodeType)for(;name=attrNames[i++];)propName=mQuery.propFix[name]||name,mQuery.expr.match.bool.test(name)&&(elem[propName]=!1),elem.removeAttribute(name)}}),boolHook={set:function(elem,value,name){return!1===value?mQuery.removeAttr(elem,name):elem.setAttribute(name,name),name}},mQuery.each(mQuery.expr.match.bool.source.match(/\w+/g),(function(i,name){var getter=attrHandle[name]||mQuery.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle;return isXML||(handle=attrHandle[name],attrHandle[name]=ret,ret=null!=getter(elem,name,isXML)?name.toLowerCase():null,attrHandle[name]=handle),ret}}));var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;mQuery.fn.extend({prop:function(name,value){return access(this,mQuery.prop,name,value,arguments.length>1)},removeProp:function(name){return this.each((function(){delete this[mQuery.propFix[name]||name]}))}}),mQuery.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return 1===nType&&mQuery.isXMLDoc(elem)||(name=mQuery.propFix[name]||name,hooks=mQuery.propHooks[name]),void 0!==value?hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:elem[name]=value:hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name))?ret:elem[name]},propHooks:{tabIndex:{get:function(elem){var tabindex=mQuery.find.attr(elem,"tabindex");return tabindex?parseInt(tabindex,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?
vendor: 5,604 bytes, line 12
120:-1}}},propFix:{for:"htmlFor",class:"className"}}),support.optSelected||(mQuery.propHooks.selected={get:function(elem){var parent=elem.parentNode;return parent&&parent.parentNode&&parent.parentNode.selectedIndex,null},set:function(elem){var parent=elem.parentNode;parent&&(parent.selectedIndex,parent.parentNode&&parent.parentNode.selectedIndex)}}),mQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){mQuery.propFix[this.toLowerCase()]=this}));var rclass=/[\t\r\n\f]/g;function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||""}mQuery.fn.extend({addClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(mQuery.isFunction(value))return this.each((function(j){mQuery(this).addClass(value.call(this,j,getClass(this)))}));if("string"==typeof value&&value)for(classes=value.match(rnotwhite)||[];elem=this[i++];)if(curValue=getClass(elem),cur=1===elem.nodeType&&(" "+curValue+" ").replace(rclass," ")){for(j=0;clazz=classes[j++];)cur.indexOf(" "+clazz+" ")<0&&(cur+=clazz+" ");curValue!==(finalValue=mQuery.trim(cur))&&elem.setAttribute("class",finalValue)}return this},removeClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(mQuery.isFunction(value))return this.each((function(j){mQuery(this).removeClass(value.call(this,j,getClass(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof value&&value)for(classes=value.match(rnotwhite)||[];elem=this[i++];)if(curValue=getClass(elem),cur=1===elem.nodeType&&(" "+curValue+" ").replace(rclass," ")){for(j=0;clazz=classes[j++];)for(;cur.indexOf(" "+clazz+" ")>-1;)cur=cur.replace(" "+clazz+" "," ");curValue!==(finalValue=mQuery.trim(cur))&&elem.setAttribute("class",finalValue)}return this},toggleClass:function(value,stateVal){var type=typeof value;return"boolean"==typeof stateVal&&"string"===type?stateVal?this.addClass(value):this.removeClass(value):mQuery.isFunction(value)?this.each((function(i){mQuery(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal)})):this.each((function(){var className,i,self,classNames;if("string"===type)for(i=0,self=mQuery(this),classNames=value.match(rnotwhite)||[];className=classNames[i++];)self.hasClass(className)?self.removeClass(className):self.addClass(className);else void 0!==value&&"boolean"!==type||((className=getClass(this))&&dataPriv.set(this,"__className__",className),this.setAttribute&&this.setAttribute("class",className||!1===value?"":dataPriv.get(this,"__className__")||""))}))},hasClass:function(selector){var className,elem,i=0;for(className=" "+selector+" ";elem=this[i++];)if(1===elem.nodeType&&(" "+getClass(elem)+" ").replace(rclass," ").indexOf(className)>-1)return!0;return!1}});var rreturn=/\r/g,rspaces=/[\x20\t\r\n\f]+/g;mQuery.fn.extend({val:function(value){var hooks,ret,isFunction,elem=this[0];return arguments.length?(isFunction=mQuery.isFunction(value),this.each((function(i){var val;1===this.nodeType&&(null==(val=isFunction?value.call(this,i,mQuery(this).val()):value)?val="":"number"==typeof val?val+="":mQuery.isArray(val)&&(val=mQuery.map(val,(function(value){return null==value?"":value+""}))),(hooks=mQuery.valHooks[this.type]||mQuery.valHooks[this.nodeName.toLowerCase()])&&"set"in hooks&&void 0!==hooks.set(this,val,"value")||(this.value=val))}))):elem?(hooks=mQuery.valHooks[elem.type]||mQuery.valHooks[elem.nodeName.toLowerCase()])&&"get"in hooks&&void 0!==(ret=hooks.get(elem,"value"))?ret:"string"==typeof(ret=elem.value)?ret.replace(rreturn,""):null==ret?"":ret:void 0}}),mQuery.extend({valHooks:{option:{get:function(elem){var val=mQuery.find.attr(elem,"value");return null!=val?val:mQuery.trim(mQuery.text(elem)).replace(rspaces," ")}},select:{get:function(elem){for(var value,option,options=elem.options,index=elem.selectedIndex,one="select-one"===elem.type||index<0,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;i<max;i++)if(((option=options[i]).selected||i===index)&&(support.optDisabled?!option.disabled:null===option.getAttribute("disabled"))&&(!option.parentNode.disabled||!mQuery.nodeName(option.parentNode,"optgroup"))){if(value=mQuery(option).val(),one)return value;values.push(value)}return values},set:function(elem,value){for(var optionSet,option,options=elem.options,values=mQuery.makeArray(value),i=options.length;i--;)((option=options[i]).selected=mQuery.inArray(mQuery.valHooks.option.get(option),values)>-1)&&(optionSet=!0);return optionSet||(elem.selectedIndex=-1),values}}}}),mQuery.each(["radio","checkbox"],(function(){mQuery.valHooks[this]={set:function(elem,value){if(mQuery.isArray(value))return elem.checked=mQuery.inArray(mQuery(elem).val(),value)>-1}},support.checkOn||(mQuery.valHooks[this].get=function(elem){return null===elem.getAttribute("value")?"on":elem.value})}));var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/;mQuery.extend(mQuery.event,{trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];if(cur=tmp=elem=elem||document,3!==elem.nodeType&&8!==elem.nodeType&&!rfocusMorph.test(type+mQuery.event.triggered)&&(type.indexOf(".")>-1&&(namespaces=type.split("."),type=namespaces.shift(),namespaces.sort()),ontype=type.indexOf(":")<0&&"on"+type,(event=event[mQuery.expando]?event:new mQuery.Event(type,"object"==typeof event&&event)).isTrigger=onlyHandlers?2:3,event.namespace=namespaces.join("."),event.rn
vendor: 4,058 bytes, line 12
12amespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,event.result=void 0,event.target||(event.target=elem),data=null==data?[event]:mQuery.makeArray(data,[event]),special=mQuery.event.special[type]||{},onlyHandlers||!special.trigger||!1!==special.trigger.apply(elem,data))){if(!onlyHandlers&&!special.noBubble&&!mQuery.isWindow(elem)){for(bubbleType=special.delegateType||type,rfocusMorph.test(bubbleType+type)||(cur=cur.parentNode);cur;cur=cur.parentNode)eventPath.push(cur),tmp=cur;tmp===(elem.ownerDocument||document)&&eventPath.push(tmp.defaultView||tmp.parentWindow||window)}for(i=0;(cur=eventPath[i++])&&!event.isPropagationStopped();)event.type=i>1?bubbleType:special.bindType||type,(handle=(dataPriv.get(cur,"events")||{})[event.type]&&dataPriv.get(cur,"handle"))&&handle.apply(cur,data),(handle=ontype&&cur[ontype])&&handle.apply&&acceptData(cur)&&(event.result=handle.apply(cur,data),!1===event.result&&event.preventDefault());return event.type=type,onlyHandlers||event.isDefaultPrevented()||special._default&&!1!==special._default.apply(eventPath.pop(),data)||!acceptData(elem)||ontype&&mQuery.isFunction(elem[type])&&!mQuery.isWindow(elem)&&((tmp=elem[ontype])&&(elem[ontype]=null),mQuery.event.triggered=type,elem[type](),mQuery.event.triggered=void 0,tmp&&(elem[ontype]=tmp)),event.result}},simulate:function(type,elem,event){var e=mQuery.extend(new mQuery.Event,event,{type:type,isSimulated:!0});mQuery.event.trigger(e,null,elem)}}),mQuery.fn.extend({trigger:function(type,data){return this.each((function(){mQuery.event.trigger(type,data,this)}))},triggerHandler:function(type,data){var elem=this[0];if(elem)return mQuery.event.trigger(type,data,elem,!0)}}),mQuery.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(i,name){mQuery.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name)}})),mQuery.fn.extend({hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)}}),support.focusin="onfocusin"in window,support.focusin||mQuery.each({focus:"focusin",blur:"focusout"},(function(orig,fix){var handler=function(event){mQuery.event.simulate(fix,event.target,mQuery.event.fix(event))};mQuery.event.special[fix]={setup:function(){var doc=this.ownerDocument||this,attaches=dataPriv.access(doc,fix);attaches||doc.addEventListener(orig,handler,!0),dataPriv.access(doc,fix,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this,attaches=dataPriv.access(doc,fix)-1;attaches?dataPriv.access(doc,fix,attaches):(doc.removeEventListener(orig,handler,!0),dataPriv.remove(doc,fix))}}}));var location=window.location,nonce=mQuery.now(),rquery=/\?/;mQuery.parseJSON=function(data){return JSON.parse(data+"")},mQuery.parseXML=function(data){var xml;if(!data||"string"!=typeof data)return null;try{xml=(new window.DOMParser).parseFromString(data,"text/xml")}catch(e){xml=void 0}return xml&&!xml.getElementsByTagName("parsererror").length||mQuery.error("Invalid XML: "+data),xml};var rhash=/#.*$/,rts=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/gm,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document.createElement("a");function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){"string"!=typeof dataTypeExpression&&(func=dataTypeExpression,dataTypeExpression="*");var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnotwhite)||[];if(mQuery.isFunction(func))for(;dataType=dataTypes[i++];)"+"===dataType[0]?(dataType=dataType.slice(1)||"*",(structure[dataType]=structure[dataType]||[]).unshift(func)):(structure[dataType]=structure[dataType]||[]).push(func)}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;
vendor: 4,835 bytes, line 12
12return inspected[dataType]=!0,mQuery.each(structure[dataType]||[],(function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);return"string"!=typeof dataTypeOrTransport||seekingTransport||inspected[dataTypeOrTransport]?seekingTransport?!(selected=dataTypeOrTransport):void 0:(options.dataTypes.unshift(dataTypeOrTransport),inspect(dataTypeOrTransport),!1)})),selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var key,deep,flatOptions=mQuery.ajaxSettings.flatOptions||{};for(key in src)void 0!==src[key]&&((flatOptions[key]?target:deep||(deep={}))[key]=src[key]);return deep&&mQuery.extend(!0,target,deep),target}originAnchor.href=location.href,mQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(location.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":mQuery.parseJSON,"text xml":mQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,mQuery.ajaxSettings),settings):ajaxExtend(mQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){"object"==typeof url&&(options=url,url=void 0),options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,urlAnchor,fireGlobals,i,s=mQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?mQuery(callbackContext):mQuery.event,deferred=mQuery.Deferred(),completeDeferred=mQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(2===state){if(!responseHeaders)for(responseHeaders={};match=rheaders.exec(responseHeadersString);)responseHeaders[match[1].toLowerCase()]=match[2];match=responseHeaders[key.toLowerCase()]}return null==match?null:match},getAllResponseHeaders:function(){return 2===state?responseHeadersString:null},setRequestHeader:function(name,value){var lname=name.toLowerCase();return state||(name=requestHeadersNames[lname]=requestHeadersNames[lname]||name,requestHeaders[name]=value),this},overrideMimeType:function(type){return state||(s.mimeType=type),this},statusCode:function(map){var code;if(map)if(state<2)for(code in map)statusCode[code]=[statusCode[code],map[code]];else jqXHR.always(map[jqXHR.status]);return this},abort:function(statusText){var finalText=statusText||strAbort;return transport&&transport.abort(finalText),done(0,finalText),this}};if(deferred.promise(jqXHR).complete=completeDeferred.add,jqXHR.success=jqXHR.done,jqXHR.error=jqXHR.fail,s.url=((url||s.url||location.href)+"").replace(rhash,"").replace(rprotocol,location.protocol+"//"),s.type=options.method||options.type||s.method||s.type,s.dataTypes=mQuery.trim(s.dataType||"*").toLowerCase().match(rnotwhite)||[""],null==s.crossDomain){urlAnchor=document.createElement("a");try{urlAnchor.href=s.url,urlAnchor.href=urlAnchor.href,s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!=urlAnchor.protocol+"//"+urlAnchor.host}catch(e){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=mQuery.param(s.data,s.traditional)),inspectPrefiltersOrTransports(prefilters,s,options,jqXHR),2===state)return jqXHR;for(i in(fireGlobals=mQuery.event&&s.global)&&0==mQuery.active++&&mQuery.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!rnoContent.test(s.type),cacheURL=s.url,s.hasContent||(s.data&&(cacheURL=s.url+=(rquery.test(cacheURL)?"&":"?")+s.data,delete s.data),!1===s.cache&&(s.url=rts.test(cacheURL)?cacheURL.replace(rts,"$1_="+nonce++):cacheURL+(rquery.test(cacheURL)?"&":"?")+"_="+nonce++)),s.ifModified&&(mQuery.lastModified[cacheURL]&&jqXHR.setRequestHeader("If-Modified-Since",mQuery.lastModified[cacheURL]),mQuery.etag[cacheURL]&&jqXHR.setRequestHeader("If-None-Match",mQuery.etag[cacheURL])),(s.data&&s.hasContent&&!1!==s.contentType||options.contentType)&&jqXHR.setRequestHeader("Content-Type",s.contentType),jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+allTypes+"; q=0.01":""):s.accepts["*"]),s.headers)jqXHR.setRequestHeader(i,s.headers[i]);
vendor: 6,692 bytes, line 12
12if(s.beforeSend&&(!1===s.beforeSend.call(callbackContext,jqXHR,s)||2===state))return jqXHR.abort();for(i in strAbort="abort",{success:1,error:1,complete:1})jqXHR[i](s[i]);if(transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR)){if(jqXHR.readyState=1,fireGlobals&&globalEventContext.trigger("ajaxSend",[jqXHR,s]),2===state)return jqXHR;s.async&&s.timeout>0&&(timeoutTimer=window.setTimeout((function(){jqXHR.abort("timeout")}),s.timeout));try{state=1,transport.send(requestHeaders,done)}catch(e){if(!(state<2))throw e;done(-1,e)}}else done(-1,"No Transport");function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;2!==state&&(state=2,timeoutTimer&&window.clearTimeout(timeoutTimer),transport=void 0,responseHeadersString=headers||"",jqXHR.readyState=status>0?4:0,isSuccess=status>=200&&status<300||304===status,responses&&(response=function(s,jqXHR,responses){for(var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;"*"===dataTypes[0];)dataTypes.shift(),void 0===ct&&(ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"));if(ct)for(type in contents)if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}if(dataTypes[0]in responses)finalDataType=dataTypes[0];else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}firstDataType||(firstDataType=type)}finalDataType=finalDataType||firstDataType}if(finalDataType)return finalDataType!==dataTypes[0]&&dataTypes.unshift(finalDataType),responses[finalDataType]}(s,jqXHR,responses)),response=function(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1])for(conv in s.converters)converters[conv.toLowerCase()]=s.converters[conv];for(current=dataTypes.shift();current;)if(s.responseFields[current]&&(jqXHR[s.responseFields[current]]=response),!prev&&isSuccess&&s.dataFilter&&(response=s.dataFilter(response,s.dataType)),prev=current,current=dataTypes.shift())if("*"===current)current=prev;else if("*"!==prev&&prev!==current){if(!(conv=converters[prev+" "+current]||converters["* "+current]))for(conv2 in converters)if((tmp=conv2.split(" "))[1]===current&&(conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]])){!0===conv?conv=converters[conv2]:!0!==converters[conv2]&&(current=tmp[0],dataTypes.unshift(tmp[1]));break}if(!0!==conv)if(conv&&s.throws)response=conv(response);else try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}return{state:"success",data:response}}(s,response,jqXHR,isSuccess),isSuccess?(s.ifModified&&((modified=jqXHR.getResponseHeader("Last-Modified"))&&(mQuery.lastModified[cacheURL]=modified),(modified=jqXHR.getResponseHeader("etag"))&&(mQuery.etag[cacheURL]=modified)),204===status||"HEAD"===s.type?statusText="nocontent":304===status?statusText="notmodified":(statusText=response.state,success=response.data,isSuccess=!(error=response.error))):(error=statusText,!status&&statusText||(statusText="error",status<0&&(status=0))),jqXHR.status=status,jqXHR.statusText=(nativeStatusText||statusText)+"",isSuccess?deferred.resolveWith(callbackContext,[success,statusText,jqXHR]):deferred.rejectWith(callbackContext,[jqXHR,statusText,error]),jqXHR.statusCode(statusCode),statusCode=void 0,fireGlobals&&globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]),completeDeferred.fireWith(callbackContext,[jqXHR,statusText]),fireGlobals&&(globalEventContext.trigger("ajaxComplete",[jqXHR,s]),--mQuery.active||mQuery.event.trigger("ajaxStop")))}return jqXHR},getJSON:function(url,data,callback){return mQuery.get(url,data,callback,"json")},getScript:function(url,callback){return mQuery.get(url,void 0,callback,"script")}}),mQuery.each(["get","post"],(function(i,method){mQuery[method]=function(url,data,callback,type){return mQuery.isFunction(data)&&(type=type||callback,callback=data,data=void 0),mQuery.ajax(mQuery.extend({url:url,type:method,dataType:type,data:data,success:callback},mQuery.isPlainObject(url)&&url))}})),mQuery._evalUrl=function(url){return mQuery.ajax({url:url,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},mQuery.fn.extend({wrapAll:function(html){var wrap;return mQuery.isFunction(html)?this.each((function(i){mQuery(this).wrapAll(html.call(this,i))})):(this[0]&&(wrap=mQuery(html,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&wrap.insertBefore(this[0]),wrap.map((function(){for(var elem=this;elem.firstElementChild;)elem=elem.firstElementChild;return elem})).append(this)),this)},wrapInner:function(html){return mQuery.isFunction(html)?this.each((function(i){mQuery(this).wrapInner(html.call(this,i))})):this.each((function(){var self=mQuery(this),contents=self.contents();contents.length?contents.wrapAll(html):self.append(html)}))},wrap:function(html){var isFunction=mQuery.isFunction(html);return this.each((function(i){mQuery(this).wrapAll(isFunction?html.call(this,i):html)}))},unwrap:function(){return this.parent().each((function(){mQuery.nodeName(this,"body")||mQuery(this).replaceWith(this.childNodes)})).end()}}),mQuery.expr.filters.hidden=function(elem){return!mQuery.expr.filters.visible(elem)},mQuery.expr.filters.visible=function(elem){return elem.offsetWidth>0||elem.offsetHeight>0||elem.getClientRects().length>0};var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(mQuery.isArray(obj))mQuery.each(obj,(function(i,v){traditional||rbracket.test(prefix)?add(prefix,v):buildParams(prefix+"["+("object"==typeof v&&null!=v?i:"")+"]",v,traditional,add)}));else if(traditional||"object"!==mQuery.type(obj))add(prefix,obj);else for(name in obj)buildParams(prefix+"["+name+"]",obj[name],traditional,add)}mQuery.param=function(a,traditional){var prefix,s=[],add=function(key,value){value=mQuery.isFunction(value)?value():null==value?"":value,s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value)};if(void 0===traditional&&(traditional=mQuery.ajaxSettings&&mQuery.ajaxSettings.traditional),mQuery.isArray(a)||a.jquery&&!mQuery.isPlainObject(a))mQuery.each(a,(function(){add(this.name,this.value)}));else for(prefix in a)buildParams(prefix,a[prefix],traditional,add);return s.join("&").replace(r20,"+")},mQuery.fn.extend({serialize:function(){return mQuery.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var elements=mQuery.prop(this,"elements");return elements?mQuery.makeArray(elements):this}
vendor: 4,875 bytes, line 12
12)).filter((function(){var type=this.type;return this.name&&!mQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))})).map((function(i,elem){var val=mQuery(this).val();return null==val?null:mQuery.isArray(val)?mQuery.map(val,(function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}})):{name:elem.name,value:val.replace(rCRLF,"\r\n")}})).get()}}),mQuery.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(e){}};var xhrSuccessStatus={0:200,1223:204},xhrSupported=mQuery.ajaxSettings.xhr();support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,support.ajax=xhrSupported=!!xhrSupported,mQuery.ajaxTransport((function(options){var callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain)return{send:function(headers,complete){var i,xhr=options.xhr();if(xhr.open(options.type,options.url,options.async,options.username,options.password),options.xhrFields)for(i in options.xhrFields)xhr[i]=options.xhrFields[i];for(i in options.mimeType&&xhr.overrideMimeType&&xhr.overrideMimeType(options.mimeType),options.crossDomain||headers["X-Requested-With"]||(headers["X-Requested-With"]="XMLHttpRequest"),headers)xhr.setRequestHeader(i,headers[i]);callback=function(type){return function(){callback&&(callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.onreadystatechange=null,"abort"===type?xhr.abort():"error"===type?"number"!=typeof xhr.status?complete(0,"error"):complete(xhr.status,xhr.statusText):complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,"text"!==(xhr.responseType||"text")||"string"!=typeof xhr.responseText?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders()))}},xhr.onload=callback(),errorCallback=xhr.onerror=callback("error"),void 0!==xhr.onabort?xhr.onabort=errorCallback:xhr.onreadystatechange=function(){4===xhr.readyState&&window.setTimeout((function(){callback&&errorCallback()}))},callback=callback("abort");try{xhr.send(options.hasContent&&options.data||null)}catch(e){if(callback)throw e}},abort:function(){callback&&callback()}}})),mQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){return mQuery.globalEval(text),text}}}),mQuery.ajaxPrefilter("script",(function(s){void 0===s.cache&&(s.cache=!1),s.crossDomain&&(s.type="GET")})),mQuery.ajaxTransport("script",(function(s){var script,callback;if(s.crossDomain)return{send:function(_,complete){script=mQuery("<script>").prop({charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove(),callback=null,evt&&complete("error"===evt.type?404:200,evt.type)}),document.head.appendChild(script[0])},abort:function(){callback&&callback()}}}));var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;mQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||mQuery.expando+"_"+nonce++;return this[callback]=!0,callback}}),mQuery.ajaxPrefilter("json jsonp",(function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=!1!==s.jsonp&&(rjsonp.test(s.url)?"url":"string"==typeof s.data&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||"jsonp"===s.dataTypes[0])return callbackName=s.jsonpCallback=mQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,jsonProp?s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName):!1!==s.jsonp&&(s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName),s.converters["script json"]=function(){return responseContainer||mQuery.error(callbackName+" was not called"),responseContainer[0]},s.dataTypes[0]="json",overwritten=window[callbackName],window[callbackName]=function(){responseContainer=arguments},jqXHR.always((function(){void 0===overwritten?mQuery(window).removeProp(callbackName):window[callbackName]=overwritten,s[callbackName]&&(s.jsonpCallback=originalSettings.jsonpCallback,oldCallbacks.push(callbackName)),responseContainer&&mQuery.isFunction(overwritten)&&overwritten(responseContainer[0]),responseContainer=overwritten=void 0})),"script"})),mQuery.parseHTML=function(data,context,keepScripts){if(!data||"string"!=typeof data)return null;"boolean"==typeof context&&(keepScripts=context,context=!1),context=context||document;var parsed=rsingleTag.exec(data),scripts=!keepScripts&&[];return parsed?[context.createElement(parsed[1])]:(parsed=buildFragment([data],context,scripts),scripts&&scripts.length&&mQuery(scripts).remove(),mQuery.merge([],parsed.childNodes))};var _load=mQuery.fn.load;function getWindow(elem){return mQuery.isWindow(elem)?elem:9===elem.nodeType&&elem.defaultView}mQuery.fn.load=function(url,params,callback){if("string"!=typeof url&&_load
12)return _load.apply(this,arguments);var selector,type,response,self=this,off=url.indexOf(" ");return off>-1&&(selector=mQuery.trim(url.slice(off)),url=url.slice(0,off)),mQuery.isFunction(params)?(callback=params,params=void 0):params&&"object"==typeof params&&(type="POST"),self.length>0&&mQuery.ajax({url:url,type:type||"GET",dataType:"html",data:params}).done((function(responseText){response=arguments,self.html(selector?mQuery("<div>").append(mQuery.parseHTML(responseText)).find(selector):responseText)})).always(callback&&function(jqXHR,status){self.each((function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR])}))}),this},mQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(i,type){mQuery.fn[type]=function(fn){return this.on(type,fn)}})),mQuery.expr.filters.animated=function(elem){return mQuery.grep(mQuery.timers,(function(fn){return elem===fn.elem})).length},mQuery.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,position=mQuery.css(elem,"position"),curElem=mQuery(elem),props={};"static"===position&&(elem.style.position="relative"),curOffset=curElem.offset(),curCSSTop=mQuery.css(elem,"top"),curCSSLeft=mQuery.css(elem,"left"),("absolute"===position||"fixed"===position)&&(curCSSTop+curCSSLeft).indexOf("auto")>-1?(curTop=(curPosition=curElem.position()).top,curLeft=curPosition.left):(curTop=parseFloat(curCSSTop)||0,curLeft=parseFloat(curCSSLeft)||0),mQuery.isFunction(options)&&(options=options.call(elem,i,mQuery.extend({},curOffset))),null!=options.top&&(props.top=options.top-curOffset.top+curTop),null!=options.left&&(props.left=options.left-curOffset.left+curLeft),"using"in options?options.using.call(elem,props):curElem.css(props)}},mQuery.fn.extend({offset:function(options){if(arguments.length)return void 0===options?this:this.each((function(i){mQuery.offset.setOffset(this,options,i)}));var docElem,win,elem=this[0],box={top:0,left:0},doc=elem&&elem.ownerDocument;return doc?(docElem=doc.documentElement,mQuery.contains(docElem,elem)?(box=elem.getBoundingClientRect(),win=getWindow(doc),{top:box.top+win.pageYOffset-docElem.clientTop,left:box.left+win.pageXOffset-docElem.clientLeft}):box):void 0},position:function(){if(this[0]){var offsetParent,offset,elem=this[0],parentOffset={top:0,left:0};return"fixed"===mQuery.css(elem,"position")?offset=elem.getBoundingClientRect():(offsetParent=this.offsetParent(),offset=this.offset(),mQuery.nodeName(offsetParent[0],"html")||(parentOffset=offsetParent.offset()),parentOffset.top+=mQuery.css(offsetParent[0],"borderTopWidth",!0),parentOffset.left+=mQuery.css(offsetParent[0],"borderLeftWidth",!0)),{top:offset.top-parentOffset.top-mQuery.css(elem,"marginTop",!0),left:offset.left-parentOffset.left-mQuery.css(elem,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var offsetParent=this.offsetParent;offsetParent&&"static"===mQuery.css(offsetParent,"position");)offsetParent=offsetParent.offsetParent;return offsetParent||documentElement}))}}),mQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(method,prop){var top="pageYOffset"===prop;mQuery.fn[method]=function(val){return access(this,(function(elem,method,val){var win=getWindow(elem);if(void 0===val)return win?win[prop]:elem[method];win?win.scrollTo(top?win.pageXOffset:val,top?val:win.pageYOffset):elem[method]=val}),method,val,arguments.length)}})),mQuery.each(["top","left"],(function(i,prop){mQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,(function(elem,computed){if(computed)return computed=curCSS(elem,prop),rnumnonpx.test(computed)?mQuery(elem).position()[prop]+"px":computed}))})),mQuery.each({Height:"height",Width:"width"},(function(name,type){mQuery.each({padding:"inner"+name,content:type,"":"outer"+name},(function(defaultExtra,funcName){mQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||"boolean"!=typeof margin),extra=defaultExtra||(!0===margin||!0===value?"margin":"border");return access(this,(function(elem,type,value){var doc;return mQuery.isWindow(elem)?elem.document.documentElement["client"+name]:9===elem.nodeType?(doc=elem.documentElement,Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])):void 0===value?mQuery.css(elem,type,extra):mQuery.style(elem,type,value,extra)}),type,chainable?margin:void 0,chainable,null)}}))})),mQuery.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){return 1===arguments.length?this.off(selector,"**"):this.off(types,selector||"**",fn)},size:function(){return this.length}}),mQuery.fn.andSelf=mQuery.fn.addBack;var _mQuery=window.mQuery,_$=window.$;return mQuery.noConflict=function(deep){return window.$===mQuery&&(window.$=_$),deep&&window.mQuery===mQuery&&(window.mQuery=_mQuery),mQuery},noGlobal||(window.mQuery=window.$=mQuery),mQuery})),mQuery.noConflict(),function(window,$){var $document=$(window),$body=$("body"),$html=$("html"),Datepicker=function(element,options){var properties,$element=$(element);options=$.isPlainObject(options)?options:{},properties={options:$.extend({},Datepicker.prototype.DEFAULTS,options),isMobile:$html.hasClass("mobile"),$elem:$element,$input:$element.find(".jquery-datepicker__input"),$panel:null,selectedDate:null,displayMonth:null,isCreated:!1,isShown:!1,isDateSelected:"none"!==options.date},$.extend(this,properties),this.init()};Datepicker.prototype={constructor:Datepicker,DEFAULTS:{lang:"en",date:null,startDate:null,endD
12ate:null,disabledDates:[],format:"ddmmyy",position:"below",updView:!1},msg:{it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],days:["Lu","Ma","Me","Gi","Ve","Sa","Do"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],days:["Mo","Tu","We","Th","Fr","Sa","Su"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],days:["Lu","Ma","Me","Je","Ve","Sa","Di"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],days:["Mo","Di","Mi","Do","Fr","Sa","So"]},ru:{months:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"],days:["Ðо","вÑ","ÑÑ","Ñе","пÑ","ÑÑ","во"]},pl:{months:["StyczeÅ","luty","marzec","kwiecieÅ","maj","czerwiec","lipiec","sierpieÅ","wrzesieÅ","październik","listopad","grudzieÅ"],days:["Po","wt","År","cz","pi","so","ni"]},nl:{months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],days:["Ma","di","wo","do","vr","za","zo"]},es:{months:["Enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],days:["Lu","Ma","Mi","Ju","Vi","Sa","Do"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],days:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"]}},init:function(){this.initDateObj(),this.$input.on("focus",(function(e){e.preventDefault()})),this.$input.on("click",(function(e){e.preventDefault()})),this.$input.on("mousedown",(function(e){e.preventDefault()})),this.$input.on("keydown",(function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||e.preventDefault()})),this.$input.on("blur",(function(e){var period=mQuery(this).closest(".period"),arrival=period.find(".arrival"),minArrivalValue=arrival.data("min");minArrivalValue&&minArrivalValue.length>0&&(new Date(arrival.val())<new Date(minArrivalValue)&&arrival.val(""));var departure=period.find(".departure"),minDepartureValue=arrival.val();if(minDepartureValue&&minDepartureValue.length>0){var departureDate=new Date(departure.val()),minDepartureDate=new Date(minDepartureValue);minDepartureDate.setDate(minDepartureDate.getDate()+1),departureDate<minDepartureDate&&departure.val("")}})),this.isDateSelected&&this.updateInputfield(this.formatDateStr(this.selectedDate)),!0===this.isMobile&&(this.$container=$("<div>").addClass("jquery-datepicker__container").appendTo($body)),this.updateView(this.selectedDate),!0===this.isMobile?this.$container.addClass("-is--hidden"):this.$panel.addClass("-is--hidden"),this.attachToInput(),this.isCreated=!0},initDateObj:function(){this.selectedDate=this.getDateObj(this.options.date),this.options.startDate&&(this.startDate=this.getDateObj(this.options.startDate)),this.options.endDate&&(this.endDate=this.getDateObj(this.options.endDate))},updateView:function(dateObj){var $header,$content,$table,msgLang=this.msg[this.options.lang];msgLang||(msgLang=this.msg.en),$header=this.getHeader(msgLang,dateObj),$content=this.getContent(msgLang,dateObj),$table=$("<table>").addClass("jquery-datepicker__table").append($header,$content),this.isCreated?this.$panel.empty().append($table):this.$panel=$('<div aria-hidden tabindex="-1">').addClass("jquery-datepicker__panel").append($table),this.isMobile?this.$panel.addClass("-device--mobile").appendTo(this.$container):this.$panel.appendTo($body),this.adjustPanelPosition(),this.displayMonth=new Date(dateObj.getTime()),this.registerEventHandlers()},getHeader:function(msg,dateObj){var year,month,$previous,$next,$title,$header;return year=dateObj.getFullYear(),month=dateObj.getMonth(),$previous=$("<th>").addClass("jquery-datepicker__prev").append("<span>‹</span>"),$next=$("<th>").addClass("jquery-datepicker__next").append("<span>›</span>"),$title=$("<th>").attr("colspan","5").addClass("jquery-datepicker__title").append($("<span>").text(msg.months[month]+" "+year)),$header=$("<thead>"),$("<tr>").append($previous,$title,$next).appendTo($header),$header},getContent:function(msg,dateObj){var year,month,$content,firstDay,i,dayItem,dayItems=[];
12for(year=dateObj.getFullYear(),month=dateObj.getMonth(),$content=$("<tr>"),msg.days.forEach((function(name){$content.append($("<td>").addClass("jquery-datepicker__dayName").append($("<span>").text(name)))})),0===(firstDay=new Date(year,month,1).getDay())&&(firstDay=7),i=0;i<firstDay-1;i++)dayItems.push($("<td>").addClass("-is--disabled").append("<span>"));for(i=1;i<=this.getDaysOfMonth(month+1,year);i++)dayItem=$("<td>").addClass("jquery-datepicker__day").append($("<span>").text(i)),this.isDateSelected&&this.selectedDate.getFullYear()===year&&this.selectedDate.getMonth()===month&&this.selectedDate.getDate()===i&&dayItem.addClass("-is--selected"),this.startDate&&this.startDate.getTime()>new Date(year,month,i).getTime()&&dayItem.addClass("-is--disabled"),this.endDate&&this.endDate.getTime()<new Date(year,month,i).getTime()&&dayItem.addClass("-is--disabled"),dayItems.push(dayItem);for(i=0;i<dayItems.length;i+=7)$content=$content.add($("<tr>").append(dayItems.slice(i,i+7)));return $content},getDaysOfMonth:function(month,year){return new Date(year,month,0).getDate()},getDateObj:function(dateStr){var dateObj,dateArray,now,op,num;if(dateStr instanceof Date)return dateStr;if(this.isDateSelected&&dateStr&&"string"==typeof dateStr)if("+"===(op=dateStr.charAt(0))||"-"===op)if(num=parseInt(dateStr.slice(1,-1),10),now=new Date,dateObj=new Date(now.getFullYear(),now.getMonth(),now.getDate()),isNaN(num)&&(num=0),"-"===op)dateObj.setDate(dateObj.getDate()-num);else dateObj.setDate(dateObj.getDate()+num);else dateArray=dateStr.split("-"),dateObj=new Date(dateArray[0],parseInt(dateArray[1],10)-1,dateArray[2]);else now=new Date,dateObj=new Date(now.getFullYear(),now.getMonth(),now.getDate());return dateObj},formatDateStr:function(dateObj){return(dateObj.getFullYear()+"").slice(-2),`${dateObj.getFullYear()+""}-${("0"+(dateObj.getMonth()+1)).slice(-2)}-${("0"+dateObj.getDate()).slice(-2)}`},registerEventHandlers:function(){var that=this,$prevBtn=this.$panel.find(".jquery-datepicker__prev"),$nextBtn=this.$panel.find(".jquery-datepicker__next"),$dayItems=this.$panel.find("table td");$prevBtn.on("click",(function(ev){ev.stopPropagation(),that.displayMonth=new Date(that.displayMonth.getFullYear(),that.displayMonth.getMonth()-1,1),that.updateView(that.displayMonth)})),$nextBtn.on("click",(function(ev){ev.stopPropagation(),that.displayMonth=new Date(that.displayMonth.getFullYear(),that.displayMonth.getMonth()+1,1),that.updateView(that.displayMonth)})),$dayItems.on("click",(function(ev){var $this=$(this);if(ev.stopPropagation(),$this.hasClass("-is--disabled")||$this.hasClass("jquery-datepicker__dayName"))return!1;that.$panel.find(".-is--selected").removeClass("-is--selected"),$this.addClass("-is--selected"),that.selectedDate=that.getDateObj(that.displayMonth.getFullYear()+"-"+(that.displayMonth.getMonth()+1)+"-"+$this.find("span").text()),that.updateInputfield(that.formatDateStr(that.selectedDate)),that.isDateSelected=!0,that.hide()}))},attachToInput:function(){var that=this;this.$input.on("click",(function(){var year=null,month=null,day=null,current_date=this.value;if(current_date){var t=current_date.split("-");year=t[0],month=t[1]-1,day=t[2]}else if(that.startDate)year=that.startDate.getFullYear(),month=that.startDate.getMonth(),day=that.startDate.getDate();else{var today=new Date;year=today.getFullYear(),month=today.getMonth(),day=today.getDate()}that.selectedDate=new Date(year,month,day),that.updateView(that.selectedDate),that.$input.blur(),!1===that.isShown&&that.show()}))},updateInputfield:function(str){var event=new Event("change");this.$input.val(str).trigger("change"),this.$input[0].dispatchEvent(event)},adjustPanelPosition:function(){var offset=this.$input.offset();!0===this.isMobile?this.$panel.width(this.$panel.find("table").width()):"below"===this.options.position?(this.$panel.addClass("-position--below").removeClass("-position--above"),this.$panel.css({top:offset.top+this.$input.outerHeight(),left:offset.left})):(this.$panel.addClass("-position--above").removeClass("-position--below"),this.$panel.css({bottom:$document.height()-offset.top,left
12:offset.left})),this.$panel.height(this.$panel.find("table").height())},show:function(){var that=this;$document.click((function(ev){that.$input.is(ev.target)||that.$panel.is(ev.target)||0!==that.$panel.has(ev.target).length||that.hide()})),this.isMobile?this.$container.fadeIn(250,(function(){$body.css("cursor","pointer"),that.$container.removeClass("-is--hidden")})):this.$panel.fadeIn(250,(function(){that.$panel.removeClass("-is--hidden")})),this.adjustPanelPosition(),this.isShown=!0},hide:function(){var that=this;this.isMobile?this.$container.fadeOut(250,(function(){$body.css("cursor",""),that.$container.addClass("-is--hidden")})):this.$panel.fadeOut(250,(function(){that.$panel.addClass("-is--hidden")})),this.isShown=!1},get:function(){return this.isDateSelected?this.selectedDate:null},set:function(obj){null===obj?(this.isDateSelected=!1,this.selectedDate=this.getDateObj(),this.updateView(this.selectedDate),this.updateInputfield("")):(this.isDateSelected=!0,this.selectedDate=obj,this.updateView(this.selectedDate),this.updateInputfield(this.formatDateStr(this.selectedDate)))},setStartDate:function(obj){obj&&(this.startDate=obj,this.selectedDate=this.getDateObj(),this.updateView(this.selectedDate),this.updateInputfield(this.formatDateStr(this.selectedDate)))}},$.fn.datepicker=function(options){var ret,args=Array.prototype.slice.call(arguments);return this.each((function(){var func,dataOpts,$this=$(this),data=$this.data("jquery-datepicker");dataOpts={date:$this.attr("data-selected-date"),startDate:$this.attr("data-start-date"),endDate:$this.attr("data-end-date"),format:$this.attr("data-format")},data||$this.data("jquery-datepicker",data=new Datepicker(this,$.extend({},dataOpts,options))),"string"==typeof options&&"function"==typeof(func=data[options])&&(ret=func.apply(data,args.slice(1)))})),void 0===ret?this:ret},$.fn.datepicker.Constructor=Datepicker}(window,mQuery),"object"==typeof window.mrpFormInstances)for(var formOptions={},i=0;i<=window.mrpFormInstances.length-1;i++)if("object"==typeof(formOptions=window.mrpFormInstances[i])){var container=formOptions.container;container&&(document.querySelector(container).innerHTML='<div class="text-center" style="padding:20px; text-align:center"><div><img alt="Mr PRENO Form loading" align="absmiddle" src="data:image/png;base64,R0lGODlhFAAUAPEDAMzMzLOzs39/f////yH5BAUKAAMAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAFAAUAAACPJyPqcuNItyCUJoQBo0ANIxpXOctYHaQpYkiHfM2cUrCNT0nqr4uudsz/IC5na/2Mh4Hu+HR6YBaplRDAQAh+QQFCgADACwEAAIADAAGAAACFpwdcYupC8BwSogR46xWZHl0l8ZYQwEAIfkEBQoAAwAsCAACAAoACgAAAhccMKl2uHxGCCvO+eTNmishcCCYjWEZFgAh+QQFCgADACwMAAQABgAMAAACFxwweaebhl4K4VE6r61DiOd5SfiN5VAAACH5BAUKAAMALAgACAAKAAoAAAIYnD8AeKqcHIwwhGntEWLkO3CcB4biNEIFACH5BAUKAAMALAQADAAMAAYAAAIWnDSpAHa4GHgohCHbGdbipnBdSHphAQAh+QQFCgADACwCAAgACgAKAAACF5w0qXa4fF6KUoVQ75UaA7Bs3yeNYAkWACH5BAUKAAMALAIABAAGAAwAAAIXnCU2iMfaRghqTmMp1moAoHyfIYIkWAAAOw==" /><br>loading form </div></div>')}function viewForm(){if("object"==typeof window.mrpFormInstances)for(var formOptions={},i=0;i<=window.mrpFormInstances.length-1;i++)if("object"==typeof(formOptions=window.mrpFormInstances[i])){var container=formOptions.container;mQuery(container).MyreplyForm(formOptions)}}function parseDateFromString(dateString){if(null===dateString||""===dateString)return new Date;var parts=dateString.split("-");return 3!==parts.length?new Date:new Date(parts[0],parts[1]-1,parts[2])}"function"==typeof mQuery?function(mQuery){mQuery.fn.MyreplyForm=function(options){var lang="auto",ida=0;if(options.structure_id&&(ida=options.structure_id),!ida)return!1;var configuration={},default_params={structure_id:null,base_resources_url:"https://forms.mrpreno.net",env:"",lang:lang,source_name:null,source_section_code:null,template_name:null,custom_template:null,onFormReady:function(){},onBeforeSubmit:function(){},onSubmit:function(){},privacy_url:null,children:{qty:{max:4},age:{from:0,to:17},enabled:!0},adults:{qty:{min:0,max:6}},defaults:{gender:"",name:"",lastname:"",email:"",date_arrival:"",date_departure:"",address:"",postal_code:"",city:"",country:"",phone:"",annotations:""},minimum_stay:1,dateRangeStart:null,dateRangeEnd:null,skip_tracking:null},merged_params=mQuery.extend(!0,default_params,options);if(merged_params.dateRangeStart)try{var today=new Date,startRangeDate=new Date(merged_params.dateRangeStart);today.getTime()>startRangeDate.getTime()&&(merged_params.dateRangeStart=null)}catch(e){}if(merged_params.dateRangeEnd)try{today=new Date;var endRangeDate=new Date(merged_params.dateRangeEnd);today.getTime()>endRangeDate.getTime()&&(merged_params.dateRangeEnd=null)}catch(e){}var formTemplates=[],form={container:this,params:merged_params,configuration:{},init:function(){form.setLang(),view.loadingFormMessage(),form.loadCss(),form.loadConfiguration()},setLang:function(){var lng="auto";if(merged_params.lang&&(lng=merged_params.lang),"auto"==lng){var tmpb=(navigator.language||navigator.userLanguage).split("-")[0];tmpb&&(lng=tmpb);var page_language=mQuery("html").attr("lang");if(page_language){var tmp=page_language.split("-");tmp[0]&&(lng=tmp[0])}}lng||(lng="it"),lang=lng},loadJsLibs:function(){var url_js=form.params.base_resources_url+"/assets/formsV2/jquery-datepicker.js",s=document.createElement("script");s.type="text/javascript",s.src=url_js,mQuery("head").append(s)},loadCss:function(){var url_css;url_css=form.params.base_resources_url+"/assets/formsV2/dist/form-widget.css",mQuery("head").append(mQuery('<link rel="stylesheet" type="text/css" />').attr("href",url_css))},loadConfiguration:function(){var url_configutation_route=form.params.base_resources_url+form.params.env+"/configuration/id_attivita/"+ida+"/formV2/default/"+lang;mQuery.ajax({url:url_configutation_route,jsonp:"callback",dataType:"jsonp",success:function(response){configuration=response,form.configuration=response,form.hydrateTemplates(response.templates),response.customer&&(merged_params.defaults.gender=response.customer.gender_co
12de,merged_params.defaults.name=response.customer.name,merged_params.defaults.lastname=response.customer.lastname,merged_params.defaults.email=response.customer.email,merged_params.defaults.phone=response.customer.phone),form.analytics.analyticsAssociateUser(),view.form(form.params.defaults,(function(){form.enableUi()}))}})},hydrateTemplates:function(templates){for(var i in formTemplates=templates,merged_params.custom_template&&form.replaceTemplateHtml("formCustom",merged_params.custom_template),formTemplates)if("object"==typeof(tpl=formTemplates[i])){for(var match,html=tpl.html,pattern=/\[([A-Z_]+)\]/gm;match=pattern.exec(html);)if(match){var inside_match=match[1],all_match=match[0],replace_string="<% include('"+inside_match.toLowerCase()+"') %>";html=html.replace(all_match,replace_string)}tpl.html=html}if(merged_params.template_name)for(var i in formTemplates){var tpl;"object"==typeof(tpl=formTemplates[i])&&tpl.id=="form"+merged_params.template_name&&form.replaceTemplateHtml("form",tpl.html)}},setDefaults:function(){if(merged_params.defaults)for(var p_name in merged_params.defaults){var default_string=merged_params.defaults[p_name];if("string"==typeof default_string)switch(p_name){case"arrival_date":form.container.find(".mr_periodo-0-arrival-date").val(default_string);break;case"departure_date":form.container.find(".mr_periodo-0-departure-date").val(default_string);break;default:default_string&&"null"!=default_string&&form.container.find(".mr_"+p_name).val(default_string)}}},enableUi:function(){0==configuration.language_request_installed&&form.applyNotSupportedTranslations(configuration.language_request),form.setDefaults(),form.container.addClass("myreply myReplyForm mrpreno mrprenoForm"),form.phone.init("#phone",lang);var eventChangeNumber=function(e){if(form.phone.get(e.target)){var tmp=mQuery(".whatsapp-container");tmp.length>0&&tmp.remove();var whatsappOptin=configuration.structure.enable_whatsapp_optin;if(configuration.structure.mr_message&&("si"===whatsappOptin||"si_ma_inattivo"===whatsappOptin)&&form.phone.valid("#phone")){var whatsappCheck=`<div class="whatsapp-container"><input type="checkbox" id="whatsapp" name="whatsapp" ${"si"===whatsappOptin?'checked="checked"':""} /> ${configuration.texts.whatsapp_request_checkbox}</div>`;mQuery(".mr_field_phone_wrapper .iti").after(mQuery(whatsappCheck))}}},eventLoadCountriesFlag=function(event){var element=mQuery(event.target).closest(".iti").find(".iti__flag");"none"==element.css("background-image")&&element.css("background-image",`url('${form.params.base_resources_url}/assets/common/intl-tel-input/img/flags.png')`)};if(mQuery("#phone").on("input",eventChangeNumber),form.phone.onChangePrefix("#phone",(function(e){eventLoadCountriesFlag(e),eventChangeNumber(e)})),form.phone.onDropdownOpen("#phone",eventLoadCountriesFlag),0==merged_params.children.enabled?(form.container.find(".mr_living_unit_occupant_select_children").parent().remove(),form.container.find(".occupant_age").remove()):(parseInt(merged_params.children.age.from)>0&&form.container.find(".occupant_age").each((function(){mQuery(this).find("option").each((function(){var value=mQuery(this).attr("value");value.length>0&&parseInt(value)<merged_params.children.age.from&&mQuery(this).remove()}))})),parseInt(merged_params.children.age.to)<17&&form.container.find(".occupant_age").each((function(){mQuery(this).find("option").each((function(){var value=mQuery(this).attr("value");value.length>0&&parseInt(value)>merged_params.children.age.to&&mQuery(this).remove()}))}))),void 0!==merged_params.children.qty.max){var max_children=parseInt(merged_params.children.qty.max);max_children||(max_children=4),max_children>15&&(max_children=15),form.container.find(".mr_living_unit_occupant_select_children>option").remove();for(var i=0;i<=max_children;i++)form.container.find(".mr_living_unit_occupant_select_children").append('<option value="'+i+'">'+i+"</option>")}if(void 0!==merged_params.adults.qty.min&&void 0!==merged_params.adults.qty.max){var min_adults=parseInt(merged_params.adults.qty.min),max_adults=parseInt(merged_params.adults.qty.max);min_adults||(min_adults=0),max_adults||(max_adults=6),form.container.find(".mr_living_unit_occupant_select_adult").each((function(){mQuery(this).find("option").remove();for(var i=min_adults;i<=max_adults;i++)mQuery(this).append('<option value="'+i+'">'+i+"</option>")}))}form.container.find(".bt_send_form").unbind("click"),form.container.find(".bt_send_form").click((function(e){e.preventDefault();var errors=form.validateFields();if(errors.length>0){form.scrollTo(form.container.find(".required").first());var invalidMessage="";return errors.length>0&&(invalidMessage=`I seguenti campi sono obbligatori: ${errors.join(", ")}.`),void mQuery("#error-input").text(invalidMessage)}if("function"==typeof merged_params.onBeforeSubmit&&!1===merged_params.onBeforeSubmit(merged_params))return!1;var uidform=mQuery(this).data("uidform");form.send(uidform)})),form.container.find(".myreply_privacy_link").unbind("click"),form.container.find(".myreply_privacy_link").click((function(e){e.preventDefault();var url="https://gdpr.mrpreno.net/"+configuration.structure.subdomain+"/privacy_policy/"+lang;return merged_params.privacy_url&&(url=merged_params.privacy_url),form.privacy_policy_url&&(url=form.privacy_policy_url),window.open(url,"myreply_privacy_info","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width="+(form.getViewportWidth()-100)+", height="+(form.getViewportHe
12ight()-100)+", top=50, left=50"),!1})),form.container.find(".bt_add_living_unit").unbind("click"),form.container.find(".bt_add_living_unit").click((function(e){e.preventDefault(),form.container.find(".living_unit:hidden").eq(0).removeClass("hidden"),form.container.find(".living_unit:visible").length>1?form.container.find(".bt_remove_living_unit").removeClass("hidden"):form.container.find(".bt_remove_living_unit").addClass("hidden");var max_living_unit=parseInt(configuration.num_max_living_unit_add);form.container.find(".living_unit:visible").length>=max_living_unit&&form.container.find(".bt_add_living_unit").addClass("hidden"),form.container.find(".living_unit:not(:hidden) select.mr_living_unit_occupant").last().focus()})),form.container.find(".bt_remove_living_unit").unbind("click"),form.container.find(".bt_remove_living_unit").click((function(e){e.preventDefault(),form.container.find(".living_unit:visible:last").addClass("hidden"),form.container.find(".living_unit:visible").length>1?form.container.find(".bt_remove_living_unit").removeClass("hidden"):form.container.find(".bt_remove_living_unit").addClass("hidden");var max_living_unit=parseInt(configuration.num_max_living_unit_add);form.container.find(".living_unit:visible").length<max_living_unit&&form.container.find(".bt_add_living_unit").removeClass("hidden"),form.container.find(".living_unit:not(:hidden) select.mr_living_unit_occupant").last().focus()})),form.container.find(".bt_add_period").unbind("click"),form.container.find(".bt_add_period").click((function(e){e.preventDefault(),form.container.find(".period:hidden").eq(0).removeClass("hidden"),form.container.find(".period:visible").length>1?form.container.find(".bt_remove_period").removeClass("hidden"):form.container.find(".bt_remove_period").addClass("hidden");var max_period=parseInt(configuration.num_max_period_add);form.container.find(".period:visible").length>=max_period&&form.container.find(".bt_add_period").addClass("hidden"),form.container.find(".period:not(:hidden) input.arr
12ival").last().focus()})),form.container.find(".bt_remove_period").unbind("click"),form.container.find(".bt_remove_period").click((function(e){e.preventDefault(),form.container.find(".period:visible:last").addClass("hidden"),form.container.find(".period:visible").length>1?form.container.find(".bt_remove_period").removeClass("hidden"):form.container.find(".bt_remove_period").addClass("hidden");var max_period=parseInt(configuration.num_max_period_add);form.container.find(".period:visible").length<max_period&&form.container.find(".bt_add_period").removeClass("hidden"),form.container.find(".period:not(:hidden) input.arrival").last().focus()})),form.container.find(".mr_living_unit_occupant_select_children").unbind("change"),form.container.find(".mr_living_unit_occupant_select_children").change((function(){var living_unit_index=mQuery(this).data("living_unit_index");form.container.find(".occupant_age_lu"+living_unit_index).addClass("hidden");for(var num_children=mQuery(this).val(),i=1;i<=num_children;i++)form.container.find(".occupant_age_"+i+"_lu"+living_unit_index).removeClass("hidden")})),form.container.find(".service_qty_checkbox").unbind("change"),form.container.find(".service_qty_checkbox").change((function(){var service_id=mQuery(this).data("service_id");mQuery(this).is(":checked")?form.container.find(".service_"+service_id+"_qty_checkbox").removeClass("hidden"):form.container.find(".service_"+service_id+"_qty_checkbox").addClass("hidden")})),form.container.find(".mr_living_unit_occupant").unbind("change"),form.container.find(".mr_living_unit_occupant").change((function(){var living_unit_id=parseInt(mQuery(this).val());if(mQuery(this).parent().find(".living_unit_detail").html(""),mQuery(this).parent().find(".living_unit_detail").css("display","none"),0==configuration.view_living_unit_detail_on_select)return!1;var livingUnitDetail=mQuery(this).parent().find(".living_unit_detail"),livingUnitDetailLabel="";livingUnitDetail.css("display","block").attr("tabindex",0);for(var living_units=configuration.living_units,i=0;i<living_units.length;i++){var living_unit=living_units[i];if(living_unit.id==living_unit_id){var html="";if(living_unit.default_image.url&&(html+='<img src="'+living_unit.default_image.url+'" height="30" style="height:30px !important" align="absmiddle"> '),html+="<b>"+living_unit.name+"</b>",livingUnitDetailLabel+=living_unit.name,living_unit.occupants.max&&(html+=" <em>("+living_unit.occupants.max+" pax)</em>",livingUnitDetailLabel+=` ${living_unit.occupants.max} pax`),living_unit.description){var description_padding=0;mQuery(".living_unit_description").length,html+=' <a href="#" class="bt_living_unit_show_description" aria-hidden="true" tabindex="-1">info</a>',html+='<div class="living_unit_description">',living_unit.default_image.url&&(description_padding=10,html+='<div style="width: 50%; float: left;"><img src="'+living_unit.default_image.url+'" width="100%" align="left" style="margin-right: 10px; margin-bottom: 10px"></div>'),html+='<div style="width: 50%; float: left; padding-left: '+description_padding+'px;">'+living_unit.description+"</div>",html+="</div>",livingUnitDetailLabel+=`:\n${living_unit.description.replace(/<[^>]*>/g,"")}`}mQuery(this).parent().find(".living_unit_detail").html(html),mQuery(this).parent().find(".bt_living_unit_show_description").unbind("click"),mQuery(this).parent().find(".bt_living_unit_show_description").click((function(e){e.preventDefault();var elem_descr=mQuery(this).parent().find(".living_unit_description");elem_descr.is(":visible")?(mQuery(this).attr("aria-expanded","false"),elem_descr.css("display","none").attr("aria-hidden","true")):(mQuery(this).attr("aria-expanded","true"),elem_descr.css("display","block").attr("aria-hidden","false"))}))}}livingUnitDetail.attr("aria-label",livingUnitDetailLabel)})),form.container.find("input.jquery-datepicker").each((function(){var type;mQuery(this).parent().addClass("jquery-datepicker"),mQuery(this).addClass("jquery-datepicker__input"),mQuery(this).hasClass("arrival")&&(type="arrival"),mQuery(this).hasClass("departure")&&(type="departure");
12var date,days,result,startDate=null,endDate=null;if("arrival"==type&&(startDate=null!==merged_params.dateRangeStart?parseDateFromString(merged_params.dateRangeStart):"+0d"),"departure"==type)if(null!==merged_params.dateRangeStart){date=parseDateFromString(merged_params.dateRangeStart),days=merged_params.minimum_stay,(result=new Date(date)).setDate(result.getDate()+days),startDate=result}else startDate="+"+merged_params.minimum_stay+"d";null!==merged_params.dateRangeEnd&&(endDate=parseDateFromString(merged_params.dateRangeEnd));var idx=mQuery(this).closest(".period").data("period_index"),curr_date=null;switch(type){case"arrival":if("string"==typeof merged_params.defaults.date_arrival&&merged_params.defaults.date_arrival&&(curr_date=merged_params.defaults.date_arrival),!curr_date){var tmpArrival=form.container.find(".mr_periodo-"+idx+"-arrival-date");"date"==tmpArrival.attr("type")&&tmpArrival.val()&&(curr_date=tmpArrival.val())}break;case"departure":if("string"==typeof merged_params.defaults.date_departure&&merged_params.defaults.date_departure&&(curr_date=merged_params.defaults.date_departure),!curr_date){var tmpDeparture=form.container.find(".mr_periodo-"+idx+"-departure-date");"date"==tmpDeparture.attr("type")&&tmpDeparture.val()&&(curr_date=tmpDeparture.val())}}var datepicker_param={date:curr_date,format:"ddmmyyyy",startDate:startDate,endDate:endDate,lang:lang};switch(mQuery(this).parent().datepicker(datepicker_param),type){case"arrival":"string"==typeof merged_params.defaults.date_arrival&&(merged_params.defaults.date_arrival||form.container.find(".mr_periodo-"+idx+"-arrival-date").val(""));break;case"departure":"string"==typeof merged_params.defaults.date_departure&&(merged_params.defaults.date_departure||form.container.find(".mr_periodo-"+idx+"-departure-date").val(""))}mQuery(this).change((function(){var idx=mQuery(this).data("class").split("-")[1];if("arrival"==type){var t=this.value.split("-"),arrival_year=t[0],arrival_month=t[1],arrival_day=t[2],departure_date=new Date(arrival_year,arrival_month-1,arrival_day);departure_date.setDate(departure_date.getDate()+merged_params.minimum_stay),departure_date.getFullYear();var departure_month=departure_date.getMonth()+1,departure_day=departure_date.getDate(),picker=form.container.find(".mr_periodo-"+idx+"-departure-date").parent();setTimeout((function(){picker.datepicker("setStartDate",departure_date),picker.datepicker("set",departure_date),("0"+departure_day).slice(-2),("0"+departure_month).slice(-2),picker.datepicker("updateInputfield",""),picker.datepicker("show")}),100)}}))})),"function"==typeof merged_params.onFormReady&&merged_params.onFormReady(merged_params)},applyNotSupportedTranslations:function(language){if("object"==typeof configuration.translations&&"object"==typeof configuration.translations[language]){var translation=configuration.translations[language];form.container.find("[data-translation_path]").each((function(){var translattion_path=mQuery(this).data("translation_path");try{var text=function(obj,desc){for(var arr=desc.split(".");arr.length&&(obj=obj[arr.shift()]););return obj}(translation,translattion_path);text&&mQuery(this).html(text)}catch(err){}}));try{translation.fields.periodo.items.fields.arrival_date.label&&form.container.find('[data-translation_path="fields.periodo-0-arrival-date.label"]').html(translation.fields.periodo.items.fields.arrival_date.label)}catch(err){}try{translation.fields.periodo.items.fields.departure_date.label&&form.container.find('[data-translation_path="fields.periodo-0-departure-date.label"]').html(translation.fields.periodo.items.fields.departure_date.label)}catch(err){}}},validateFields:function(){var errors=[];form.container.find(".required").removeClass("required"),form.container.find(".input_required").removeClass("input_required").attr("aria-invalid","false"),form.container.find('[data-required="1"]:visible').each((function(){var value=mQuery(this).val();"string"==typeof value&&(value=value.trim()),""!=value&&0!=parseInt(value)||(errors.push(mQuery(this).attr("aria-label")),form.container.find(".field_label_"+mQuery(this).data("class")).addClass("required"),mQuery(this).addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"))}));var email=form.container.find(".mr_email");if(form.isValidemailAddress(email.val().trim())||(form.container.find(".field_label_email").addClass("required"),email.addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),errors.includes(email.attr("aria-label"))||errors.push(email.attr("aria-label"))),!1===form.phone.valid("#phone",lang)){var inputPhone=form.phone.get("#phone",!1);errors.includes(inputPhone.attr("aria-label"))||errors.push(inputPhone.attr("aria-label"))}return form.container.find(".privacy_policy").is(":checked")||(form.container.find(".field_label_privacy_policy").addClass("required"),mQuery(this).addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),errors.push("Privacy policy")),form.container.find(".occupant_age:visible").each((function(){""==mQuery(this).val()&&(form.container.find(".field_label_"+mQuery(this).data("class")).addClass("required"),mQuery(this).addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),errors.push(mQuery(this).attr("aria-label")))})),form.container.find("input.jquery-datepicker:visible").each((function(){var type;mQuery(this).hasClass("arrival")&&(type="arrival"),mQuery(this).hasClass("departure")&&(type="departure");var idx=mQuery(this).closest(".period").data("period_index");if("arrival"==type){var arrival=mQuery(this).val(),departure=form.container.find(".mr_peri
12odo-"+idx+"-departure-date").val();if(arrival||(form.container.find(".field_label_periodo-"+idx+"-arrival-date").addClass("required"),mQuery(this).addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),errors.push(mQuery(this).attr("aria-label"))),departure||(form.container.find(".field_label_periodo-"+idx+"-departure-date").addClass("required"),mQuery(this).addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),errors.push(mQuery(this).attr("aria-label"))),arrival&&departure){var t,year_a=(t=arrival.split("-"))[0],month_a=t[1],day_a=t[2],year_d=(t=departure.split("-"))[0],month_d=t[1],day_d=t[2],arrival_date=new Date(year_a,month_a-1,day_a),departure_date=new Date(year_d,month_d-1,day_d),arrival_ts=arrival_date.getTime()/1e3-60*arrival_date.getTimezoneOffset(),departure_ts=departure_date.getTime()/1e3-60*departure_date.getTimezoneOffset();arrival_ts>departure_ts?(form.container.find(".field_label_periodo-"+idx+"-departure-date").addClass("required"),mQuery(this).addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),errors.push(mQuery(this).attr("aria-label"))):(departure_ts-arrival_ts)/86400<merged_params.minimum_stay&&(form.container.find(".field_label_periodo-"+idx+"-departure-date").addClass("required"),form.container.find(".field_label_periodo-"+idx+"-departure-date").siblings("input:first").addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),errors.push(mQuery(this).attr("aria-label")))}}})),errors},send:function(uidform){view.loadingFormSendingMessage(),form.container.find("select:hidden, input:hidden").not('[name="telephone[prefix]"]').remove();var dataToPost=mQuery("#"+uidform).serializeArray(),fieldNameIndex=dataToPost.map((function(f){return f.name})).indexOf("firstname");-1!==fieldNameIndex&&(dataToPost[fieldNameIndex].name="name");var UID=null;"function"==typeof getCurrentUID?UID=getCurrentUID():"string"==typeof trkUID&&trkUID&&(UID=trkUID);var landing=form.cookie.get("Landing",!1),provenienza=form.cookie.get("Provenienza",!1),source_type_code="site_form_myreply";if(dataToPost.push({name:"custom_variables[pagina_corrente]",value:document.location.href?document.location.href:""}),dataToPost.push({name:"custom_variables[title_pagina]",value:document.title?document.title:""}),dataToPost.push({name:"custom_variables[lingua_richiesta]",value:configuration.language_request}),dataToPost.push({name:"custom_variables[lingua_richiesta_installata]",value:configuration.language_request_installed?"si":"no"}),!0!==merged_params.skip_tracking&&(dataToPost.push({name:"custom_variables[UID]",value:UID}),dataToPost.push({name:"custom_variables[provenienza]",value:provenienza}),dataToPost.push({name:"custom_variables[landing]",value:landing})),merged_params.custom_variables){for(var p_name in merged_params.custom_variables){var cust_var=merged_params.custom_variables[p_name];"string"!=typeof cust_var&&"number"!=typeof cust_var||dataToPost.push({name:"custom_variables["+p_name+"]",value:cust_var})}merged_params.custom_variables.hasOwnProperty("id_offerta")&&merged_params.custom_variables.hasOwnProperty("nome_offerta")&&""!=merged_params.custom_variables.id_offerta&&""!=merged_params.custom_variables.nome_offerta&&(source_type_code="site_form_myreply_offer")}dataToPost.push({name:"system_variables[lang]",value:configuration.language}),dataToPost.push({name:"system_variables[form_id]",value:configuration.id}),dataToPost.push({name:"system_variables[structure_id]",value:configuration.structure.id}),dataToPost.push({name:"system_variables[cookie_value]",value:configuration.cookie?configuration.cookie.value:null}),dataToPost.push({name:"system_variables[source_type_code]",value:source_type_code}),window.MrPRENODataAcq&&dataToPost.push({name:"system_variables[data_acquisition]",value:window.MrPRENODataAcq.getAttribution()}),merged_params.source_name&&dataToPost.push({name:"system_variables[source_type_custom_name]",value:merged_params.source_name}),dataToPost.push({name:"system_variables[source_section_code]",value:merged_params.source_section_code}),dataToPost.push({name:"token",value:form.generateToken()});var clientId=form.analytics.getAnalyticsClientId();clientId&&dataToPost.push({name:"googleAnalyticsClientId",value:clientId});var routeSend=form.params.base_resources_url+form.params.env+"/action/send/"+lang;mQuery.ajax({url:routeSend,jsonp:"callback",dataType:"jsonp",data:dataToPost,success:function(response){var newsletter_optin=!1;for(i=0;i<dataToPost.length;i++)"newsletter_optin"===dataToPost[i].name&&(newsletter_optin=!0);var message=response.response_message;"ok"==response.result?(newsletter_optin&&(message+=response.newsletter_confirm_message),view.thankyouMsg(message,response.whatsapp),form.event.trigger("MR_FormSent",dataToPost),"function"==typeof merged_params.onSubmit&&merged_params.onSubmit(dataToPost,form.configuration),"string"==typeof response.cookie&&(form.configuration.cookie.value=response.cookie,form.analytics.analyticsAssociateUser()),form.analytics.trackEvent()):view.sendErrorMsg(message)}})},cookie:{set:function(name,value,seconds){var expires;if(seconds){var date=new Date;date.setTime(date.getTime()+1e3*seconds),expires="; expires="+date.toGMTString()}else expires="";document.cookie=encodeURIComponent(name)+"="+encodeURIComponent(value)+expires+"; path=/"},get:function(name){for(var nameEQ=encodeURIComponent(name)+"=",ca=document.cookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "===c.charAt(0);)c=c.substring(1,c.length);if(0===c.indexOf(nameEQ))return decodeURIComponent(c.substring(nameEQ.length,c.length))}return null}},event:{trigger:function(event_name,params){if(void 0===mQuery.Event)return!1;var event=mQuery.Event(event_name);if(params&&(event.Tdata=params),mQuery.event.trigger(event),window.console){var currentTime=new Date,hdate=currentTime.getDate()+"/"+(currentTime.getMonth()+1)+"/"+currentTime.getFullYear()+" "+currentTime.getHours()+":"+currentTime.getMinutes()+":"+currentTime.getSeconds()+"(+"+currentTime.getMilliseconds()+"ms)";
12console.info(hdate+" MR event: "+event_name)}}},getTemplate:function(id){for(var t in formTemplates){var tpl=formTemplates[t];if("object"==typeof tpl&&tpl.id==id)return tpl.html}return null},replaceTemplateHtml:function(id,new_html){for(var t in formTemplates){var tpl=formTemplates[t];"object"==typeof tpl&&tpl.id==id&&(tpl.html=new_html)}return null},generateToken:function(){var rand=function(){return Math.random().toString(36).substr(2)};return rand()+rand()},getViewportWidth:function(){return mQuery(window).width()},getViewportHeight:function(){return mQuery(window).height()},isValidemailAddress:function(email){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(email).toLowerCase())},scrollTo:function(element){element&&element.offset()&&mQuery("html,body").animate({scrollTop:element.offset().top-150})},analytics:{trackEvent:function(){if("function"==typeof ga&&form.configuration.structure.google_analytics_ua){var tname=null;try{var i,len,trackers=ga.getAll();for(i=0,len=trackers.length;i<len;i+=1)trackers[i].get("trackingId")===form.configuration.structure.google_analytics_ua&&(tname=trackers[i].get("name"));tname&&ga(tname+".send","event","Mr PRENO","Invio Form richiesta preventivo")}catch(e){}}},getAnalyticsClientId:function(){if(null==configuration.structure.google_analytics_ua)return null;if("function"==typeof ga)try{var i,len,trackers=ga.getAll();for(i=0,len=trackers.length;i<len;i+=1)if(trackers[i].get("trackingId")===configuration.structure.google_analytics_ua)return trackers[i].get("clientId")}catch(e){}return null},analyticsAssociateUser:function(){if(null==form.configuration.cookie)return!1;if("string"==typeof form.configuration.cookie.value){var newCookieVal=form.configuration.cookie.value,oldCookieVal=form.cookie.get(form.configuration.cookie.name,!1);if(newCookieVal!=oldCookieVal&&form.cookie.set(form.configuration.cookie.name,form.configuration.cookie.value,720,!1),!oldCookieVal&&""!=newCookieVal&&"function"==typeof ga&&form.configuration.structure.google_analytics_ua){var tname=null;try{var i,len,trackers=ga.getAll();for(i=0,len=trackers.length;i<len;i+=1)trackers[i].get("trackingId")===form.configuration.structure.google_analytics_ua&&(tname=trackers[i].get("name"));tname&&(ga(tname+".set","userId",newCookieVal),ga(tname+".send","event","Mr PRENO","Impostazione User Id"))}catch(e){}}}}},phone:{init:function(input,language="it",full=!1,callback=!1){if((input=this.get(input,!1)).length&&null==window.intlTelInputGlobals.getInstance(input[0])){input.attr("type","tel").attr("name","telephone[phone]"),window.intlTelInput(input[0],{utilsScript:`${form.params.base_resources_url}/assets/common/intl-tel-input/js/utils.js`,separateDialCode:!0,preferredCountries:["it","sm","gb","fr","de","es","at","ru","pl","nl"],nationalMode:!0,hiddenInput:"prefix",formatOnDisplay:!1,initialCountry:"it"===language?"it":"auto",placeholderNumberType:"UNKNOWN"});var labelCountryCodeList="it"===language?"Lista dei prefissi dei paesi":"Telephone country codes list",labelCountryList="it"===language?"Lista dei paesi":"List of countries";if(input.parent().find(".iti__selected-flag").attr("aria-label",labelCountryCodeList),input.parent().find(".iti__country-list").attr("aria-label",labelCountryList),input.closest(".iti").after('<div class="phone-error"></div>'),!0===full&&input.closest(".iti").addClass("full"),input.on("blur",(()=>{this.valid(input,language,callback)})),"it"===language){var element=mQuery(input).closest(".iti").find(".iti__flag");"none"==element.css("background-image")&&element.css("background-image",`url('${form.params.base_resources_url}/assets/common/intl-tel-input/img/flags.png')`)}}},get:function(input,plugin=!0){if(input&&(input=mQuery(input))&&input.length){var tmpPlugin=window.intlTelInputGlobals.getInstance(input[0]);plugin&&null!=tmpPlugin&&(input=tmpPlugin)}return input},getNumber:function(input,plugin=!0){return(input=this.get(input,!0))&&(input=input.getNumber()),input},getCountry:function(input,type="iso2"){if(input=this.get(input,!0))switch(type){case"iso":default:type=input=input.getSelectedCountryData().iso2;break;case"dial":type=input=input.getSelectedCountryData().dialCode}return input},onDropdownOpen:function(input,callback){this.get(input,!0)&&callback&&mQuery(input).on("open:countrydropdown",(function(element){callback(element)}))},onChangePrefix:function(input,callback){this.get(input,!0)&&callback&&mQuery(input).on("countrychange",(function(element){callback(element)}))},valid:function(input,language="it",callback=!1){if((input=this.get(input,!1)).length){var iti=window.intlTelInputGlobals.getInstance(input[0]);if(!iti||"1"!=input.data("required")&&""==iti.getNumber())return input.removeClass("input_required").attr("aria-invalid","false"),input.closest(".iti").siblings(".phone-error").text(""),callback&&callback(""),!0;var phoneNumber=iti.getNumber();if(iti.isValidNumber())return iti.setNumber(iti.getNumber()),input.siblings('input[type="hidden"]').val(iti.getSelectedCountryData().dialCode),input.closest(".iti").siblings(".phone-error").text(""),input.removeClass("input_required").attr("aria-invalid","false"),callback&&callback(phoneNumber),!0;var text="";switch(iti.getValidationError()){default:text="it"===language?"Numero non valido":"Invalid number";break;case 1:text="it"===language?"Prefisso non valido":"Invalid country code";break;case 2:text="it"===language?"Numero troppo corto":"Number too short";break;case 3:text="it"===language?"Numero troppo lungo":"Number too long"}return input.closest(".iti").siblings(".phone-error").text(text),input.addClass("input_required").attr("aria-invalid","true").attr("aria-describedby","error-input"),callback&&callback(!1),!1}}}},view={form:function(data,callback){var html=form.render("form_wrapper",data);form.container.empty().append(html),form.event.trigger("MR_FormView"),callback&&callback()},thankyouMsg:function(message,whatsapp=!1){var html=form.render("thankyou_message",{message:message,whatsapp:whatsapp});form.container.html(html),form.scrollTo(form.container),form.container.find(".bt_send_new_request").unbind("click"),form.container.find(".bt_send_new_request").click((function(){form.init(
12)})),form.event.trigger("MR_thankyouMsgView")},loadingFormMessage:function(){form.container.html('<div class="text-center" style="padding:20px; text-align:center"> <div><img alt="MyReply Form" align="absmiddle" src="data:image/png;base64,R0lGODlhFAAUAPEDAMzMzLOzs39/f////yH5BAUKAAMAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAFAAUAAACPJyPqcuNItyCUJoQBo0ANIxpXOctYHaQpYkiHfM2cUrCNT0nqr4uudsz/IC5na/2Mh4Hu+HR6YBaplRDAQAh+QQFCgADACwEAAIADAAGAAACFpwdcYupC8BwSogR46xWZHl0l8ZYQwEAIfkEBQoAAwAsCAACAAoACgAAAhccMKl2uHxGCCvO+eTNmishcCCYjWEZFgAh+QQFCgADACwMAAQABgAMAAACFxwweaebhl4K4VE6r61DiOd5SfiN5VAAACH5BAUKAAMALAgACAAKAAoAAAIYnD8AeKqcHIwwhGntEWLkO3CcB4biNEIFACH5BAUKAAMALAQADAAMAAYAAAIWnDSpAHa4GHgohCHbGdbipnBdSHphAQAh+QQFCgADACwCAAgACgAKAAACF5w0qXa4fF6KUoVQ75UaA7Bs3yeNYAkWACH5BAUKAAMALAIABAAGAAwAAAIXnCU2iMfaRghqTmMp1moAoHyfIYIkWAAAOw==" /><br>loading form </div> </div>')},loadingFormSendingMessage:function(){var html=form.render("loading_form_message",{});mQuery(".mr_loading_message").attr("hidden",!0).empty(),form.container.find(".bt_send_form").css("display","none"),form.container.find(".mr_loading_message").attr("hidden",!1).html(html)},sendErrorMsg:function(message){mQuery(".mr_loading_message").attr("hidden",!0).empty(),mQuery(".mr_error_message").remove(),form.container.find(".mr_send_button_wrapper").append('<div style="color:red;font-weight:bold" class="mr_error_message">'+message+"</div>"),setTimeout((function(){mQuery(".mr_loading_message").attr("hidden",!0).empty(),mQuery(".mr_error_message").remove(),form.container.find(".bt_send_form").css("display","inline-block")}),2e3)}};function template(id,data){var name,string,line,body,func,escapeHTML,me=arguments.callee;return me.cache[id]||(me.cache[id]=(name=id,string=/^[\w\-]+$/.test(id)?me.get(id):(name="template(string)",id),line=1,body=("try { "+(me.variable?"var "+me.variable+" = this.stash;":"with (this.stash) { ")+"this.ret += '"+string.replace(/<%/g,"�").replace(/%>/g,"�").replace(/'(?![^\x11\x13]+?\x13)/g,"\\x27").replace(/^\s*|\s*$/g,"").replace(/\n|\r\n/g,(function(){return"';\nthis.line = "+ ++line+"; this.ret += '\\n"})).replace(/\x11=raw(.+?)\x13/g,"' + ($1) + '").replace(/\x11=(.+?)\x13/g,"' + this.escapeHTML($1) + '").replace(/\x11(.+?)\x13/g,"'; $1; this.ret += '")+"'; "+(me.variable?"":"}")+"return this.ret;} catch (e) { throw 'TemplateError: ' + e + ' (on "+name+"' + ' line ' + this.line + ')'; } //@ sourceURL="+name+"\n").replace(/this\.ret \+= '';/g,""),func=new Function(body),escapeHTML=function(string){return string},function(stash){return func.call(me.context={escapeHTML:escapeHTML,line:1,ret:"",stash:stash})})),data?me.cache[id](data):me.cache[id]}function extended(id,data){var fun=function(data){return data.include=function(name,args){var stash={};for(var key in template.context.stash)template.context.stash.hasOwnProperty(key)&&(stash[key]=template.context.stash[key]);if(args)for(var key in args)args.hasOwnProperty(key)&&(stash[key]=args[key]);var context=template.context;context.ret+=template(name,stash),template.context=context},data.wrapper=function(name,fun){var current=template.context.ret;template.context.ret="",fun.apply(template.context);var content=template.context.ret,orig_content=template.context.stash.content;template.context.stash.content=content,template.context.ret=current+template(name,template.context.stash),template.context.stash.content=orig_content},template(id,data)};return data?fun(data):fun}return template.cache={},template.get=function(id){return form.getTemplate(id)},template.get=function(id){var fun=extended.get;return fun?fun(id):form.getTemplate(id)},form.render=extended,form.init(),this},viewForm()}(mQuery):console.log("initFormPlugin not found")}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.