1 Star 0 Fork 10

木筏/iQuery

forked from 南漂一卒/iQuery 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
iQuery.min.js 60.65 KB
一键复制 编辑 原始数据 按行查看 历史
南漂一卒 提交于 2016-08-12 18:01 . 【修正】两处兼容性细节
!function(){"function"==typeof this.define&&this.define.amd?this.define("iQuery",arguments[0]):arguments[0]()}(function(){var t={fn:{}};!function(t,e){function n(){return(this.toString().trim().match(/^function\s+([^\(\s]*)/)||"")[1]}function r(){for(var e=[],n=0,r=0;n<arguments.length;n++)try{e[r++]=t.JSON.stringify(arguments[n].valueOf())}catch(i){e[r++]=arguments[n]}t.status=e.join(" ")}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){var e=[];for(var n in t)this.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e});var i="".trim,o=!i&&/(^\s*)|(\s*$)/g;if(String.prototype.trim=function(t){if(!t)return i?i.call(this):this.replace(o,"");for(var e,n=0,r=0;t[r]&&(n||this[0]!=t[r]||(n=1),e||this[this.length-1]!=t[r]||(e=-1),!n||!e);r++);return this.slice(n,e)},"".repeat||(String.prototype.repeat=function(t){return new Array(t+1).join(this)}),String.prototype.toCamelCase=function(){for(var t=this.split(arguments[0]||"-"),e=1;e<t.length;e++)t[e]=t[e][0].toUpperCase()+t[e].slice(1);return t.join("")},String.prototype.toHyphenCase=function(){return this.replace(/([a-z0-9])[\s_]?([A-Z])/g,function(){return arguments[1]+"-"+arguments[2].toLowerCase()})},[].indexOf||(Array.prototype.indexOf=function(){for(var t=0;t<this.length;t++)if(arguments[0]===this[t])return t;return-1}),[].reduce||(Array.prototype.reduce=function(){for(var t=arguments[1],e=1;e<this.length;e++)1==e&&(t=this[0]),t=arguments[0](t,this[e],e,this);return t}),"name"in Function.prototype||(e.documentMode>8?Object.defineProperty(Function.prototype,"name",{get:n}):Function.prototype.name=n),Date.now||(Date.now=function(){return+new Date}),t.JSON.format=function(){return this.stringify(arguments[0],null,4).replace(/(\s+"[^"]+":) ([^\s]+)/g,"$1 $2")},t.JSON.parseAll=function(e){return t.JSON.parse(e,function(e,n){if(e&&"string"==typeof n)try{return t.JSON.parse(n)}catch(r){}return n})},!t.console){t.console={};for(var a=["log","info","warn","error","dir"],s=0;s<a.length;s++)t.console[a[s]]=r}}(self,self.document),function(t,e,n){var r=t.navigator.userAgent,i=r.match(/MSIE (\d+)|Trident[^\)]+rv:(\d+)|Edge\/(\d+)\./i),o=r.match(/; rv:(\d+)[^\/]+Gecko\/\d+/),a=r.match(/AppleWebkit\/(\d+\.\d+)/i),s=i?Number(i[1]||i[2]):NaN,c=o?Number(o[1]):NaN,u=a?parseFloat(a[1]):NaN,l=r.match(/Tablet|Pad|Book|Android 3/i),f=r.match(/Phone|Touch|Android 2|Symbian/i),h=(l||f||r.match(/Mobile/i))&&!r.match(/ PC /),p=r.match(/(iTouch|iPhone|iPad|iWatch);[^\)]+CPU[^\)]+OS (\d+_\d+)/i),d=r.match(/(Android |Silk\/)(\d+\.\d+)/i);n.browser={msie:s,mozilla:c,webkit:u,modern:!(9>s),mobile:!!h,pad:!!l,phone:!!f,ios:p?parseFloat(p[2].replace("_",".")):NaN,android:d?parseFloat(d[2]):NaN,versionNumber:s||c||u}}(self,self.document,self.iQuery||t),function(t,e,n){n.likeArray=function(t){return t&&"object"==typeof t?(t="function"==typeof t.valueOf?t.valueOf():t,Boolean(t&&"number"==typeof t.length&&"string"!=typeof t)):!1},n.makeSet=function(){var t=arguments,e=!0,n={};this.likeArray(t[1])?(e=t[0],t=t[1]):this.likeArray(t[0])&&(e=t[1],t=t[0]);for(var r=0;r<t.length;r++)n[t[r]]="function"!=typeof e?e:e(t[r]);return n};var r=n.makeSet("string","number","boolean");n.isData=function(t){var e=typeof t;return Boolean(t)||e in r||null!==t&&"object"==e&&typeof t.valueOf()in r},n.isEqual=function(t,e,n){if(n=n||1,!t||!e)return t===e;if(t=t.valueOf(),e=e.valueOf(),"object"!=typeof t||"object"!=typeof e)return t===e;var r=Object.getOwnPropertyNames(t),i=Object.getOwnPropertyNames(e);if(r.length!=i.length)return!1;r.sort(),i.sort(),--n;for(var o,a=0;a<r.length;a++){if(o=r[a],o!=i[a])return!1;if(n){if(!arguments.callee.call(this,t[o],e[o],n))return!1}else if(t[o]!==e[o])return!1}return!0},n.trace=function(t,e,n,r){"function"==typeof n&&(r=n),n=parseInt(n),n=isNaN(n)?1/0:n;for(var i,o=[],a=0,s=0;t[e]&&n>s;t=i,a++)i=t[e],"function"==typeof r&&r.call(i,a,i)===!1||(o[s++]=i);return o},n.intersect=function(){if(arguments.length<2)return arguments[0];var t=this.makeArray(arguments),e=this.likeArray(t[0]);return t[0]=this.map(t.shift(),function(n,r){if(e){if(t.indexOf.call(t[0],n)>-1)return n}else if(void 0!==t[0][r]&&t[0][r]===n)return n}),arguments.callee.apply(this,t)}}(self,self.document,self.iQuery||t),function(t,e,n){function r(t,e,r){t=!t&&e instanceof Array?[]:Object(t),e=Object(e);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=r&&(e[i]instanceof Array||n.isPlainObject(e[i]))?arguments.callee(t[i],e[i],r):e[i]);return t}n.isPlainObject=function(t){return t&&t.constructor===Object},n.makeArray=n.browser.modern?function(){return Array.apply(null,arguments[0])}:function(){return r([],arguments[0])},n.fn.extend=n.extend=function(){var t=n.makeArray(arguments),e=t[0]===!0&&t.shift();t.length<2&&t.unshift(this);for(var i=1;i<t.length;i++)t[0]=r(t[0],t[i],e);return t[0]},n.extend({type:function(t){if(null===t)return"null";var e=typeof(t&&t.valueOf?t.valueOf():t);return"object"!=e?e:Object.prototype.toString.call(t).split(" ")[1].slice(0,-1).toLowerCase()},isNumeric:function(t){if(t=t&&t.valueOf?t.valueOf():t,""===t||t===1/0||isNaN(t))return!1;switch(typeof t){case"string":break;case"number":break;default:return!1}return"number"==typeof+t},isEmptyObject:function(){for(var t in arguments[0])return!1;return!0},each:function(t,e){if(this.likeArray(t))for(var n=0;n<t.length;n++)try{if(!1===e.call(t[n],n,t[n]))break}catch(r){console.dir(r.valueOf())}else for(var i in t)try{if(!1===e.call(t[i],i,t[i]))break}catch(r){console.dir(r.valueOf())}return t},map:function(t,e){var n,r={};return this.likeArray(t)&&(r=[],n=!0),"function"==typeof e&&this.each(t,function(i){if(void 0!==this){var o=e(arguments[1],i,t);void 0!==o&&null!==o&&(n?r=r.concat(o):r[i]=o)}}),r},inArray:function(){return Array.prototype.indexOf.call(arguments[1],arguments[0])},merge:function(t){t instanceof Array||(t=this.makeArray(t));for(var e=1;e<arguments.length;e++)Array.prototype.splice.apply(t,Array.prototype.concat.apply([t.length,0],n.likeArray(arguments[e])&&!n.browser.modern?n.makeArray(arguments[e]):arguments[e]));return t},unique:function(t){for(var e=[],n=t.length-1,r=0;n>-1;n--)this.inArray(t[n],t)==n&&(e[r++]=t[n]);return e.reverse()}})}(self,self.document,self.iQuery||t),function(t,e,n){n.extend({trim:function(){return arguments[0].trim()},parseJSON:t.JSON.parseAll,parseXML:function(e){if(e=e.trim(),"<"!=e[0]||">"!=e[e.length-1])throw"Illegal XML Format...";var n=(new t.DOMParser).parseFromString(e,"text/xml"),r=n.getElementsByTagName("parsererror");if(r.length)throw new SyntaxError(1,r[0].childNodes[1].nodeValue);return n.cookie,n},param:function(e){var r,i=[];if(n.isPlainObject(e))for(var o in e){if(r=e[o],n.isPlainObject(r))r=t.JSON.stringify(r);else if(!n.isData(r))continue;i.push(o+"="+t.encodeURIComponent(r))}else if(n.likeArray(e))for(var a=0,s=0;a<e.length;a++)i[s++]=e[a].name+"="+t.encodeURIComponent(e[a].value);return i.join("&")},contains:function(t,e){return e?n.browser.modern?!!(16&t.compareDocumentPosition(e)):t!==e&&t.contains(e):!1}});var r={origin:[],wrapper:[]};n.proxy=function(t,e){for(var i=n.makeArray(arguments),o=0;o<r.origin.length;o++)if(n.isEqual(r.origin[o],i))return r.wrapper[o];var a=r.origin.push(i)-1;return i=i.slice(2),r.wrapper[a]=function(){return t.apply(e||this,n.merge([],i,arguments))}}}(self,self.document,self.iQuery||t),function(t,e,n){var r=n.makeSet("Window","DOMWindow","Global");n.extend({Type:function(t){var e;try{e=n.type(t);var i=t.constructor.name;i="function"==typeof i?i.call(t.constructor):i,e="object"==e&&i?i:e[0].toUpperCase()+e.slice(1)}catch(o){return"Window"}if(!t)return isNaN(t)&&t!==t?"NaN":e;if(r[e]||t==t.document&&t.document!=t)return"Window";if(t.location&&t.location===(t.defaultView||t.parentWindow||{}).location)return"Document";if(e.match(/HTML\w+?Element$/)||"string"==typeof t.tagName)return"HTMLElement";if(this.likeArray(t)&&(e="Array",n.browser.msie<10))try{t.item();try{return t.namedItem(),"HTMLCollection"}catch(o){return"NodeList"}}catch(o){}return e},isSelector:function(){try{e.querySelector(arguments[0])}catch(t){return!1}return!0},split:function(t,e,n,r){return t=t.split(e),n&&(t[n-1]=t.slice(n-1).join("string"==typeof r?r:e),t.length=n),t},byteLength:function(){return arguments[0].replace(/[^\u0021-\u007e\uff61-\uffef]/g,"xx").length},paramJSON:function(e){if(e=(e?n.split(e,"?",2)[1]:t.location.search).match(/[^\?&\s]+/g),!e)return{};for(var r,i={},o=0;o<e.length;o++){if(e[o]=this.split(e[o],"=",2),r=t.decodeURIComponent(e[o][1]),!n.isNumeric(r)||parseInt(r).toString().length<21)try{r=n.parseJSON(r)}catch(a){}i[e[o][0]]=r}return i},extendURL:function(){var t=n.makeArray(arguments),e=n.split(t.shift(),"?",2);return t[0]?(t.unshift(n.paramJSON("?"+e[1])),e[0]+"?"+n.param(n.extend.apply(n,t))):arguments[0]},paramSign:function(t){return t="string"==typeof t?this.paramJSON(t):t,n.map(Object.getOwnPropertyNames(t).sort(),function(e){switch(typeof t[e]){case"function":return;case"object":try{return e+"="+JSON.stringify(t[e])}catch(n){}}return e+"="+t[e]}).join(arguments[1]||"&")},fileName:function(){return(arguments[0]||t.location.pathname).match(/([^\?\#]+)(\?|\#)?/)[1].split("/").slice(-1)[0]},filePath:function(){return(arguments[0]||t.location.href).match(/([^\?\#]+)(\?|\#)?/)[1].split("/").slice(0,-1).join("/")},urlDomain:function(){return((arguments[0]||t.location.href).match(/^(\w+:)?\/\/[^\/]+/)||[])[0]},isCrossDomain:function(){var n=this.urlDomain(arguments[0]);return n&&n!=[t.location.protocol,"//",e.domain,t.location.port?":"+t.location.port:""].join("")},cssPX:RegExp(["width","height","padding","border-radius","margin","top","right","bottom","left"].join("|"))})}(self,self.document,self.iQuery||t),function(t,e,n){var r={};n.extend({_Root_:t,now:Date.now,every:function(t,e){var n=this._Root_,r=1e3*(t||.01),i=this.now(),o=0;return n.setTimeout(function(){var t=(Date.now()-i)/1e3,a=e.call(n,++o,t);("undefined"==typeof a||a)&&n.setTimeout(arguments.callee,r)},r)},wait:function(t,e){return this.every(t,function(){return e.apply(this,arguments),!1})},start:function(t){return r[t]=this.now()},end:function(t){return(this.now()-r[t])/1e3},uuid:function(){return(arguments[0]||"uuid")+"_"+(this.now()+Math.random()).toString(36).replace(".","").toUpperCase()}})}(self,self.document,self.iQuery||t),function(t,e,n){function r(t,r){var o=arguments.callee;if(!(this instanceof o))return new o(t,r);if(t instanceof o)return t;if(this.length=0,t){var a=n.Type(t);if("String"==a){if(t=t.trim(),"<"!=t[0])this.context=r||e,this.selector=t,t=n.find(t,this.context),t=t.length<2?t:n.uniqueSort(t);else if(t=n.map(o.parseHTML(t),function(){return 1==arguments[0].nodeType?arguments[0]:void 0}),1==t.length&&n.isPlainObject(r))for(var s in r)"function"==typeof this[s]?new o(t[0])[s](r[s]):new o(t[0]).attr(s,r[s])}else a in i.TypeMap.element&&(t=[t]);n.likeArray(t)&&n.extend(this,t,{length:t.length,context:1==t.length?t[0].ownerDocument:this.context})}}var i={TypeMap:{element:n.makeSet("Window","Document","HTMLElement"),root:n.makeSet("Document","Window")},Get_Name_Type:n.makeSet("string","array","undefined"),operate:function(t,e,r,i){if(null===i){if(this[t].clear)for(var o=0;o<e.length;o++)this[t].clear(e[o],r);return e}if(void 0===i&&n.type(r)in this.Get_Name_Type){if(!e.length)return;if(r instanceof Array){for(var a={},o=0;o<r.length;o++)a[r[o]]=this[t].get(e[0],r[o]);return a}return this[t].get(e[0],r)}if("string"==typeof r){if("function"==typeof i){for(var o=0;o<e.length;o++)this[t].set(e[o],r,i.call(e[o],o,this[t].get(e[o],r)));return e}var s={};s[r]=i,r=s}for(var o=0;o<e.length;o++)for(var c in r)this[t].set(e[o],c,r[c]);return e}};i.Attribute={get:function(t,e){if(!(n.Type(t)in i.TypeMap.root)){if(!e)return t.attributes;var r=t.getAttribute(e);return null!==r?r:void 0}},set:function(t,e,r){n.Type(t)in i.TypeMap.root||void 0===r||t.setAttribute(e,r)},clear:function(t,e){t.removeAttribute(e)}},i.Property={get:function(t,e){return e?t[e]:t},set:function(t,e,n){t[e]=n}},i.Style={get:function(t,r){if(t&&!(n.Type(t)in i.TypeMap.root)){var o=e.defaultView.getComputedStyle(t,null);if(r&&o)if(o=o.getPropertyValue(r)){if(-1==o.indexOf(" ")){var a=parseFloat(o);o=isNaN(a)?o:a}}else r.match(n.cssPX)&&(o=0);return n.isData(o)?o:""}},set:function(t,e,r){return n.Type(t)in i.TypeMap.root?!1:(n.isNumeric(r)&&e.match(n.cssPX)&&(r+="px"),void t.style.setProperty(e,String(r),"important"))}},i.Data={_Data_:[],set:function(t,e,n){"number"!=typeof t.dataIndex&&(t.dataIndex=this._Data_.push({})-1),this._Data_[t.dataIndex][e]=n},get:function(e,r){var i=this._Data_[e.dataIndex]||e.dataset;if(r&&(i=i||{},i=i[r]||i[r.toCamelCase()],"string"==typeof i))try{i=t.JSON.parseAll(i)}catch(o){}return i instanceof Array||n.isPlainObject(i)?n.extend(!0,null,i):i},clear:function(t,e){"number"==typeof t.dataIndex&&(e?delete this._Data_[t.dataIndex][e]:(delete this._Data_[t.dataIndex],delete t.dataIndex))}};var o=n.extend({area:{before:"<map>"},legend:{before:"<fieldset>"},param:{before:"<object>"}},n.makeSet(["caption","thead","tbody","tfoot","tr"],{before:"<table>",after:"</table>",depth:2}),n.makeSet(["th","td"],{before:"<table><tr>",depth:3}),n.makeSet(["optgroup","option"],{before:"<select multiple>"}));return n=t.iQuery=n.extend(r,n,{parseHTML:function(t,r){var i=t.match(/^\s*<([^\s\/\>]+)\s*([^<]*?)\s*(\/?)>([^<]*)((<\/\1>)?)([\s\S]*)/)||[];if(void 0===i[5]&&(i[5]=""),i[5]&&!(i.slice(2,5).join("")+i[6])||i[3]&&!(i[2]+i.slice(4).join("")))return[e.createElement(i[1])];var a=o[i[1]],s=e.createElement("div");return a?(s.innerHTML=a.before+t+(a.after||""),s=n.trace(s,"firstChild",a.depth||1).slice(-1)[0]):s.innerHTML=t,n.map(n.makeArray(s.childNodes),function(t,e){return t.parentNode.removeChild(t)})},data:function(t,e,n){return i.operate("Data",[t],e,n)}}),n.fn=n.prototype,n.fn.extend=n.extend,n.fn.extend({splice:Array.prototype.splice,jquery:"1.9.1",iquery:2,pushStack:function(t){return t=n(n.uniqueSort(t instanceof Array?t:n.makeArray(t))),t.prevObject=this,t},attr:function(){return i.operate("Attribute",this,arguments[0],arguments[1])},prop:function(){return i.operate("Property",this,arguments[0],arguments[1])},data:function(){return i.operate("Data",this,arguments[0],arguments[1])},css:function(){return i.operate("Style",this,arguments[0],arguments[1])},index:function(t){if(!t)return n.trace(this[0],"previousElementSibling").length;var e=n.Type(t);switch(!0){case"String"==e:return n.inArray(this[0],n(t));case n.likeArray(t):e in i.TypeMap.element||(t=t[0],e=n.Type(t));case e in i.TypeMap.element:return n.inArray(t,this)}return-1}}),n}(self,self.document,self.iQuery||t),function(t,e,n){function r(t){var e=this;if(9==this.nodeType||!this.parentNode)return e.querySelectorAll(t);var r=this.getAttribute("id");return r||(r=n.uuid("iQS"),this.setAttribute("id",r)),t="#"+r+" "+t,e=this.parentNode,t=e.querySelectorAll(t),"iQS"==r.slice(0,3)&&this.removeAttribute("id"),t}n.find=function(t,e){var i=arguments.callee;return n.map(t.split(/\s*,\s*/),function(t){for(var o,a=[],s=t;!(a[1]in n.expr[":"]);){if(a=s.match(/:(\w+)(\(('|")?([^'"]*)\3?\))?/),!a)return n.makeArray(r.call(e,t));o=a.index?s.slice(0,a.index):"*",s=s.slice(a.index+a[0].length)}return o.match(/[\s>\+~]\s*$/)&&(o+="*"),a.splice(2,1),n.map(r.call(e,o),function(t,e){return n.expr[":"][a[1]](t,e,a)?i(s,t):void 0})})},n.uniqueSort=n.browser.msie?function(t){for(var e=[],n=[],r=0;r<t.length;r++)e[r]=new String(t[r].sourceIndex+1e8),e[r].DOM=t[r];e.sort();for(var r=0,i=0;r<e.length;r++)r&&e[r].valueOf()==e[r-1].valueOf()&&e[r].DOM.outerHTML==e[r-1].DOM.outerHTML||(n[i++]=e[r].DOM);return n}:function(t){t.sort(function(t,e){return(2&t.compareDocumentPosition(e))-1});for(var e=[],n=0,r=0;n<t.length;n++)n&&t[n]===t[n-1]||(e[r++]=t[n]);return e}}(self,self.document,self.iQuery||t),function(t,e,n){n.expr={};var r={display:"none",width:0,height:0};n.expr[":"]=n.expr.filters={visible:function(){var e=t.getComputedStyle(arguments[0]);for(var n in r)if(e[n]===r[n])return;return!0},hidden:function(){return!this.visible(arguments[0])},header:function(){return arguments[0]instanceof HTMLHeadingElement},parent:function(t){if(t.children.length)return!0;t=t.childNodes;for(var e=0;t[e];e++)if(3==t[e].nodeType)return!0},empty:function(){return!this.parent(arguments[0])},contains:function(t,e,n){return t.textContent.indexOf(n[3])>-1},not:function(t,e,r){return!n.fn.is.call([t],r[3])}}}(self,self.document,self.iQuery||t),function(t,e,n){var r=n.extend(n.makeSet("IMG","SVG","CANVAS"),{INPUT:{type:"image"},LINK:{type:"image/x-icon"}});n.expr[":"].image=function(t){return t.tagName in r?r[t.tagName]===!0||r[t.tagName].type==t.type.toLowerCase():"none"!=n(t).css("background-image")};var i=n.makeSet("button","image","submit","reset");n.expr[":"].button=function(t){return"BUTTON"==t.tagName||"INPUT"==t.tagName&&t.type.toLowerCase()in i};var o=n.makeSet("INPUT","TEXTAREA","BUTTON","SELECT");n.expr[":"].input=function(t){return t.tagName in o||"string"==typeof t.getAttribute("contentEditable")||t.designMode};var a=n.makeSet("UL","OL","DL","TBODY","SELECT","DATALIST");n.extend(n.expr[":"],{list:function(){return arguments[0].tagName in a},data:function(t,e,r){return Boolean(n.data(t,r[3]))}});var s=["a[href], map[name] area[href]","label, input, textarea, button, select, option, object","*[tabIndex], *[contentEditable]"].join(", ");n.expr[":"].focusable=function(){return arguments[0].matches(s)};var c=n.makeSet("IFRAME","OBJECT","EMBED","AUDIO","VIDEO");n.expr[":"].media=function(t){if(t.tagName in c)return!0;if(n.expr[":"].image(t)){var e=n.map(n(t).css(["width","height","min-width","min-height"]),parseFloat);return Math.max(e.width,e["min-width"])>240||Math.max(e.height,e["min-height"])>160}}}(self,self.document,self.iQuery||t),function(t,e,n){function r(t){return t={scroll:"scroll"+t,inner:"inner"+t,client:"client"+t,css:t.toLowerCase()},function(){if(!this[0])return arguments.length?this:0;switch(n.Type(this[0])){case"Document":return Math.max(this[0].documentElement[t.scroll],this[0].body[t.scroll]);case"Window":return this[0][t.inner]||Math.max(this[0].document.documentElement[t.client],this[0].document.body[t.client])}var e=parseFloat(arguments[0]),r=this.is("table")?4:0;if(isNaN(e))return this[0][t.client]+r;for(var i=0;i<this.length;i++)this[i].style[t.css]=e-r;return this}}function i(){return n.browser.webkit||"body"!=(this.tagName||"").toLowerCase()?this:this.ownerDocument.documentElement}function o(t){return t={scroll:"scroll"+t,offset:"Top"==t?"pageYOffset":"pageXOffset"},function(e){if(e=parseInt(e),isNaN(e))return e=i.call(this[0])[t.scroll],void 0!==e?e:this[0].documentElement[t.scroll]||this[0].defaultView[t.offset]||this[0].body[t.scroll];for(var n=0;n<this.length;n++)void 0===this[n][t.scroll]?this[n].documentElement[t.scroll]=this[n].defaultView[t.offset]=this[n].body[t.scroll]=e:i.call(this[n])[t.scroll]=e}}var a=Array.prototype.reverse;n.fn.extend({add:function(){return this.pushStack(n.merge(this,n.apply(t,arguments)))},slice:function(){return this.pushStack([].slice.apply(this,arguments))},eq:function(t){return this.pushStack([].slice.call(this,t,t+1||void 0))},each:function(){return n.each(this,arguments[0])},is:function(t){for(var e="string"==typeof t,r="function"==typeof Element.prototype.matches,i=0;i<this.length;i++){if(this[i]===t)return!0;if(e&&r)try{if(this[i].matches(t))return!0}catch(o){}if(this[i].parentNode||n("<div />")[0].appendChild(this[i]),-1<n.inArray(this[i],e?n(t,this[i].parentNode):n(t)))return!0}return!1},filter:function(){for(var t=[],e=0,r=0;e<this.length;e++)n(this[e]).is(arguments[0])&&(t[r++]=this[e]);return this.pushStack(t)},not:function(){for(var t=[],e=0,r=0;e<this.length;e++)n(this[e]).is(arguments[0])||(t[r++]=this[e]);return this.pushStack(t)},removeAttr:function(t){t=t.trim().split(/\s+/);for(var e=0;e<t.length;e++)this.attr(t[e],null);return this},addBack:function(){return this.pushStack(n.merge(this,this.prevObject))},parent:function(){for(var t=[],e=0,r=0;e<this.length;e++)-1==n.inArray(this[e].parentNode,t)&&(t[r++]=this[e].parentNode);return this.pushStack(arguments[0]?n(t).filter(arguments[0]):t)},parents:function(){for(var t=[],e=0;e<this.length;e++)t=t.concat(n.trace(this[e],"parentNode").slice(0,-1));return a.call(this.pushStack(arguments[0]?n(t).filter(arguments[0]):t))},parentsUntil:function(){return a.call(this.parents().not(n(arguments[0]).parents().addBack()))},children:function(){for(var t=[],e=0;e<this.length;e++)t=n.merge(t,this[e].children);return this.pushStack(arguments[0]?n(t).filter(arguments[0]):t)},contents:function(){for(var t=[],e=parseInt(arguments[0]),r=0;r<this.length;r++)t=n.merge(t,"iframe"!=this[r].tagName.toLowerCase()?this[r].childNodes:this[r].contentWindow.document);if("Number"==n.Type(e))for(var r=0;r<t.length;r++)t[r].nodeType!=e&&(t[r]=null);return this.pushStack(t)},nextAll:function(){for(var t=[],e=0;e<this.length;e++)t=t.concat(n.trace(this[e],"nextElementSibling"));return this.pushStack(arguments[0]?n(t).filter(arguments[0]):t)},prevAll:function(){for(var t=[],e=0;e<this.length;e++)t=t.concat(n.trace(this[e],"previousElementSibling"));return t.reverse(),a.call(this.pushStack(arguments[0]?n(t).filter(arguments[0]):t))},siblings:function(){var t=this.prevAll().add(this.nextAll());return this.pushStack(arguments[0]?t.filter(arguments[0]):t)},find:function(){for(var t=[],e=0;e<this.length;e++)t=n.merge(t,n(arguments[0],this[e]));return this.pushStack(t)},has:function(t){if("string"!=typeof t){var e=n.uuid("Has");n(t).addClass(e),t="."+e}return this.pushStack(n.map(this,function(){return n(t,arguments[0]).removeClass(e).length?arguments[0]:void 0}))},detach:function(){for(var t=0;t<this.length;t++)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},remove:function(){return this.detach()},empty:function(){this.children().remove();for(var t,e=0;e<this.length;e++){t=this[e].childNodes;for(var n=0;n<t.length;n++)this[e].removeChild(t[n])}return this},text:function(t){var e=!n.isData(t),r=[];e||this.empty();for(var i=0,o=0;i<this.length;i++)e?r[o++]=this[i].textContent:this[i].textContent=t;return r.length?r.join(""):this},html:function(t){if(!n.isData(t))return this[0].innerHTML;this.empty();for(var e=0;e<this.length;e++)this[e].innerHTML=t;return this},width:r("Width"),height:r("Height"),scrollTop:o("Top"),scrollLeft:o("Left"),position:function(){return{left:this[0].offsetLeft,top:this[0].offsetTop}},offset:function(t){if(n.isPlainObject(t))return this.css(n.extend({position:"fixed"},t));var e=(this[0]||{}).ownerDocument,r=e&&n("body",e)[0];if(!(e&&r&&n.contains(r,this[0])))return{left:0,top:0};var i=n(e),o=this[0].getBoundingClientRect();return{left:parseFloat((i.scrollLeft()+o.left).toFixed(4)),top:parseFloat((i.scrollTop()+o.top).toFixed(4))}},addClass:function(t){return"string"!=typeof t?this:(t=t.trim().split(/\s+/),this.attr("class",function(e,r){r=(r||"").trim().split(/\s+/);for(var i=0,o=r.length;i<t.length;i++)-1==n.inArray(t[i],r)&&(r[o++]=t[i]);return r.join(" ").trim()}))},removeClass:function(t){return"string"!=typeof t?this:(t=t.trim().split(/\s+/),this.attr("class",function(e,r){if(r=(r||"").trim().split(/\s+/),r[0]){for(var i=[],o=0,a=0;o<r.length;o++)-1==n.inArray(r[o],t)&&(i[a++]=r[o]);return i.join(" ")}}))},hasClass:function(t){return!!n.map(this,function(){return arguments[0].classList.contains(t)})[0]},val:function(){return n.isData(arguments[0])?this.not('input[type="file"]').prop("value",arguments[0]):this[0]&&this[0].value},serializeArray:function(){for(var t=this.find("*[name]:input").not(":button, [disabled]"),e=[],r=0,i=0;r<t.length;r++)t[r].type.match(/radio|checkbox/i)&&!t[r].checked||(e[i++]=n(t[r]).prop(["name","value"]));return e},serialize:function(){return n.param(this.serializeArray())}})}(self,self.document,self.iQuery||t),function(t,e,n){function r(){return"on"+this.type in(this.target||e.documentElement).constructor.prototype||n.browser.modern&&this.type in u}function i(t,n,r){var i=e.createEvent(n?"CustomEvent":"HTMLEvents");return i["init"+(n?"CustomEvent":"Event")](t,!0,!0,r),i}function o(t,e){t=n.Event(t);var r=n(t.target),i=e?[e]:(n(this).data("_event_")||{})[t.type],o=[t].concat(r.data("_trigger_")),a=this;if(i&&i.length){for(var s=0;s<i.length;s++)!1===(i[s]&&i[s].apply(a,o))&&(t.preventDefault(),t.stopPropagation());r.data("_trigger_",null)}}function a(t,e){return this.data("_event_",function(){var i=arguments[1]||{};return i[t]||(i[t]=[],n.browser.modern?this.addEventListener(t,o,!1):r.call({type:t,target:this})&&l.bind.call(this,"+",t,o)),i[t].push(e),i})}function s(t){return function(e){if("function"==typeof e||e===!1)return this.bind(t,arguments[0]);for(var r=0;r<this.length;r++)try{this[r][t]()}catch(i){n(this[r]).trigger(t)}return this}}function c(){return"number"!=typeof arguments[2]||"complete"==e.readyState&&(e.body||{}).lastChild?(e.isReady||(e.isReady=!0,h.data("Load_During",n.end("DOM_Ready")).data("Ready_Event",arguments[0]),console.info("[DOM Ready Event]"),console.log(this,arguments),h.trigger("ready")),!1):void 0}var u=n.makeSet("DOMContentLoaded","DOMAttrModified","DOMAttributeNameChanged","DOMCharacterDataModified","DOMElementNameChanged","DOMNodeInserted","DOMNodeInsertedIntoDocument","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMSubtreeModified"),l={create:function(t){return t=t&&"object"==typeof t?t:{},this.isCustom?n.extend({},t,arguments[1]):e.createEventObject()},fix:function(t){var e=n(t.srcElement).offset()||{};n.extend(this,{type:t.type,pageX:e.left,pageY:e.top,target:t.srcElement,relatedTarget:{mouseover:t.fromElement,mouseout:t.toElement,mouseenter:t.fromElement||t.toElement,mouseleave:t.toElement||t.fromElement}[t.type],which:t.type&&"key"==t.type.slice(0,3)?t.keyCode:[0,1,3,0,2,0,0,0][t.button],wheelDelta:t.wheelDelta})}};n.Event=function(e,o){var a=arguments.callee;if(e instanceof a)return n.isPlainObject(o)?n.extend(e,o):e;if(!(this instanceof a))return new a(e,o);n.extend(this,{bubbles:!0,cancelable:!0,isTrusted:!0,detail:0,view:t,eventPhase:3});var s="string"==typeof e;if(!s)if(n.isPlainObject(e))n.extend(this,e);else if(n.browser.modern)for(var c in e)"function"!=typeof e[c]&&c[0]>"Z"&&(this[c]=e[c]);else l.fix.call(this,e);n.isPlainObject(o)&&n.extend(this,o),this.type=s?e:this.type,this.isCustom=!r.call(this),this.originalEvent=s||n.isPlainObject(e)?n.browser.modern?i(this.type,this.isCustom,this.detail):l.create.apply(this,arguments):e},n.extend(n.Event.prototype,{preventDefault:function(){n.browser.modern?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1,this.defaultPrevented=!0},stopPropagation:function(){n.browser.modern?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0,this.cancelBubble=!0}}),n.event={dispatch:function(t,e){t=n.Event(t);var r,i=t.target;switch(n.Type(i)){case"HTMLElement":r=n(i).parents().addBack(),r=e?Array.prototype.reverse.call(r.filter(e)):n(n.makeArray(r).reverse().concat([i.ownerDocument,i.ownerDocument.defaultView]));break;case"Document":i=[i,i.defaultView];case"Window":if(e)return;r=n(i)}for(var a=0;a<r.length&&(t.currentTarget=r[a],o.call(r[a],t,!a&&arguments[2]),!t.cancelBubble);a++);}},n.extend(l,{type:function(e){return t!==t.top&&"DOMContentLoaded"==e||"load"==e&&"Window"!=n.Type(this)?"onreadystatechange":(e="on"+e,e in this.constructor.prototype?e:"onpropertychange")},handler:function(){var e,r=n.Event(t.event);switch(r.currentTarget=this,r.type){case"readystatechange":r.type="load";case"load":e=this.readyState==("SCRIPT"==this.tagName?"loaded":"complete");break;case"propertychange":var i=r.originalEvent.propertyName.match(/^on(.+)/i);i&&"onpropertychange"==l.type.call(this,i[1])?r.type=i[1]:(r.type="DOMAttrModified",r.attrName=r.propertyName);default:e=!0}e&&arguments[0].call(this,r)},bind:function(){this[("+"==arguments[0]?"at":"de")+"tachEvent"](l.type.call(this,arguments[1]),n.proxy(l.handler,this,arguments[2]))}}),n.fn.extend({bind:function(t){t="string"==typeof t?n.makeSet.apply(n,t.trim().split(/\s+/)):t;for(var e in t)a.apply(this,[e,t[e]===!0?arguments[1]:t[e]]);return this},unbind:function(t,e){return t=t.trim().split(/\s+/),this.data("_event_",function(){for(var r,i=arguments[1]||{},a=0;a<t.length;a++)r=i[t[a]],r&&("function"==typeof e?r.splice(r.indexOf(e),1):delete i[t[a]],i[t[a]]||(n.browser.modern?this.removeEventListener(t[a],o):l.bind.call(this,"-",t[a],o)));return i})},on:function(t,e,r){return"string"!=typeof e?this.bind.apply(this,arguments):this.bind(t,function(){n.event.dispatch(arguments[0],e,r)})},one:function(){var t=n.makeArray(arguments),e=this,r=t[t.length-1];return t.splice(-1,1,function(){return n.fn.unbind.apply(e,t.length>2?[t[0],t[2]]:t),r.apply(this,arguments)}),this.on.apply(this,t)},trigger:function(){this.data("_trigger_",arguments[1]);for(var e,r=0;r<this.length;r++)e=n.Event(arguments[0],{target:this[r]}),n.browser.modern?this[r].dispatchEvent(n.extend(e.originalEvent,e)):e.isCustom?t.setTimeout(function(){n.event.dispatch(e)}):this[r].fireEvent("on"+e.type,n.extend(e.originalEvent,e));return this},triggerHandler:function(){var t,e=n(this[0]).data("_event_");if(e=e&&e[arguments[0]]){for(var r=0;r<e.length;r++)t=e[r].apply(this[0],n.merge([],arguments));return t}},clone:function(t){return n(n.map(this,function(){var e=n(arguments[0]),r=n(e[0].cloneNode(t));t&&(e=e.find("*").addBack(),r=r.find("*").addBack());for(var i,a=0;a<e.length;a++)if(r[a].dataIndex=null,i=n(e[a]).data(),!n.isEmptyObject(i)){n(r[a]).data(i);for(var s in i._event_)n.browser.modern?r[a].addEventListener(s,o,!1):l.bind.call(r[a],"+",s,o)}return r[0]}))}}),n.fn.off=n.fn.unbind;for(var f in n.makeSet("abort","error","keydown","keypress","keyup","mousedown","mouseup","mousemove","mousewheel","click","dblclick","scroll","resize","select","focus","blur","change","submit","reset","tap","press","swipe"))n.fn[f]=s(f);var h=n(e);n.start("DOM_Ready"),n.every(.5,c),h.one("DOMContentLoaded",c),n(t).one("load",c),n.fn.ready=function(t){if("Document"!=n.Type(this[0]))throw"The Ready Method is only used for Document Object !";return e.isReady?t.call(this[0],h.data("Ready_Event")):h.one("ready",t),this};var p={absolute:!0,fixed:!0};n.fn.hover=function(t,e){return this.bind("mouseover",function(){return n.contains(this,arguments[0].relatedTarget)||n(arguments[0].target).css("position")in p?!1:void t.apply(this,arguments)}).bind("mouseout",function(){return n.contains(this,arguments[0].relatedTarget)||n(arguments[0].target).css("position")in p?!1:void(e||t).apply(this,arguments)})}}(self,self.document,self.iQuery||t),function(t,e,n){function r(t){var e=t;if(n.browser.mobile)try{e=t.changedTouches[0]}catch(r){e=t.touches[0]}return e.timeStamp=t.timeStamp||n.now(),e}function i(e,r,i){var o=n(this),a=o[r]();!1===e.call(i.target,i,a)&&(a=a.split(""),a.splice(t.getSelection().getRangeAt(0).startOffset-1,1),o[r](a.join("")))}function o(t,e){"string"==typeof t?(this.type=t,this.target=e):n.extend(this,t),e&&e instanceof Element&&n.extend(this,n.map(e.dataset,function(t){if("string"==typeof t)try{return n.parseJSON(t)}catch(e){}return t}))}n.Event.prototype.isPseudo=function(){var t=n(this.currentTarget),e=t.offset();return Boolean(this.pageX&&(this.pageX<e.left||this.pageX>e.left+t.width())||this.pageY&&(this.pageY<e.top||this.pageY>e.top+t.height()))};var a=n.fn.focus;n.fn.focus=function(){return this.not(":focusable").attr("tabIndex",-1).css("outline","none"),a.apply(this,arguments)};var s=n(e);s.bind(n.browser.mobile?"touchstart MSPointerDown":"mousedown",function(t){n(t.target).data("_Gesture_Event_",r(t))}).bind(n.browser.mobile?"touchend touchcancel MSPointerUp":"mouseup",function(t){var e=n(t.target),i=e.data("_Gesture_Event_");if(i){e.data("_Gesture_Event_",null);var o=r(t);t={target:e[0],detail:o.timeStamp-i.timeStamp,deltaX:i.pageX-o.pageX,deltaY:i.pageY-o.pageY};var a=Math.sqrt(Math.pow(t.deltaX,2)+Math.pow(t.deltaY,2));t.detail>300?t.type="press":22>a?t.type="tap":(t.type="swipe",t.detail=a),e.trigger(t)}}),n.fn.input=function(e){return this.filter("input, textarea").on(n.browser.modern?"input":"propertychange",function(t){
(n.browser.modern||"value"==t.propertyName)&&i.call(this,e,"val",t)}),this.not("input, textarea").on("paste",function(r){return e.call(r.target,r,(n.browser.modern?r:t).clipboardData.getData(n.browser.modern?"text/plain":"text"))}).keyup(function(t){var n=t.which;48>n||n>105||n>90&&96>n||t.ctrlKey||t.shiftKey||t.altKey||i.call(t.target,e,"text",t)}),this},o.prototype.valueOf=function(){var t=n.extend({},this);return delete t.data,delete t.target,delete t.valueOf,t};var c=n(t);n.fn.onReply=function(t,e,r){var i,a=this[0];if("function"!=typeof a.postMessage)return this;4==arguments.length&&(i=n(e),e=r,r=arguments[3]);var s=new o(t,(i||{})[0]);"function"==typeof r&&c.on("message",function(e){e=e.originalEvent||e;var u=new o("string"==typeof e.data?n.parseJSON(e.data):e.data);e.source===a&&u.type==t&&n.isEqual(u,s)&&(r.call(i?i[0]:this,u),c.off("message",arguments.callee))}),e=n.extend({data:e},s.valueOf()),a.postMessage(n.browser.msie<10?JSON.stringify(e):e,"*")},n.browser.mozilla&&s.on("DOMMouseScroll",function(t){n(t.target).trigger({type:"mousewheel",wheelDelta:40*-t.detail})})}(self,self.document,self.iQuery||t),function(t,e,n){function r(t){return t.slice((parseFloat(t)+"").length)}function i(e){var n=this[e],i=parseFloat(n);if(!isNaN(i)){if(0!==i)switch(r(n)){case"em":var o=this.ownerNode.parentNode.currentStyle.fontSize;if(i*=parseFloat(o),"pt"!=r(o))break;case"pt":i*=t.screen.deviceXDPI/72;break;default:return}this[e]=i+"px"}}function o(t){var e=t.currentStyle;n.extend(this,{length:0,cssText:"",ownerNode:t});for(var r in e)this[r]=r in v&&e[("pixel-"+r).toCamelCase()],this[r]="number"==typeof this[r]?this[r]+"px":e[r]+"","string"==typeof this[r]&&i.call(this,r),this.cssText+=[r,": ",this[r],"; "].join("");this.cssText=this.cssText.trim();var o=t.filters.Alpha||t.filters[b+"Alpha"];this.opacity=(o?o.opacity/100:1)+""}function a(t,e){var n=parseInt(Number(t).toFixed(0)).toString(16);return e&&e>n.length&&(n="0".repeat(e-n.length)+n),n}function s(t,e,r){var i=n.makeArray(arguments);1==i.length&&"string"==typeof i[0]&&(i=i[0].replace(/rgb\(([^\)]+)\)/i,"$1").replace(/,\s*/g,",").split(","));for(var o=0;3>o;o++)i[o]=a(i[o],2);return i.join("")}function c(t){t.preventDefault(),this[t.type]()}function u(e,r){var i=n(this);T.on(e,function(t){t.target===i[0]&&(t.defaultPrevented||r.call(t.target),T.off(e,arguments.callee))});var o=arguments.callee.caller.arguments[0];t.setTimeout(function(){n.event.dispatch(o instanceof n.Event&&o.type==e?o:{type:e,target:i[0]})})}function l(){var t=new ActiveXObject(N);return t.async=!1,t.loadXML(arguments[0]),t}if(!n.browser.modern){e.defaultView=e.parentWindow,e.head=e.documentElement.firstChild;var f={firstElementChild:function(){return this.children[0]},lastElementChild:function(){return this.children[this.children.length-1]},previousElementSibling:function(){return n.trace(this,"previousSibling",1,function(){return 1==this.nodeType})[0]},nextElementSibling:function(){return n.trace(this,"nextSibling",function(){return 1==this.nodeType})[0]}},h=Element.prototype;for(var p in f)Object.defineProperty(h,p,{get:f[p]});Object.defineProperty(h,"textContent",{get:function(){return this.innerText},set:function(t){switch(this.tagName.toLowerCase()){case"style":return this.styleSheet.cssText=t;case"script":return this.text=t}this.innerText=t}});var d={"class":"className","for":"htmlFor"},m=h.getAttribute,y=h.setAttribute,g=h.removeAttribute;n.extend(h,{getAttribute:function(t){return d[t]?this[d[t]]:m.call(this,t,0)},setAttribute:function(t,e){d[t]?this[d[t]]=e:y.call(this,t,e,0)},removeAttribute:function(t){return g.call(this,d[t]||t,0)}});var v=n.makeSet("left","right","top","bottom","width","height"),b="DXImageTransform.Microsoft.";o.prototype.getPropertyValue=function(){return this[arguments[0].toCamelCase()]},t.getComputedStyle=function(){return new o(arguments[0])},e.documentElement.style.constructor.prototype.setProperty=function(t,e){var n,r,i="",o=1,c="string"==typeof e&&e.match(/\s*rgba\(([^\)]+),\s*(\d\.\d+)\)/i);"opacity"==t?(t="filter",n="progid:"+b+"Alpha(opacity={n})",o=100):c&&(i=e.replace(c[0],""),i&&(i+=arguments.callee.call(this,t,i)),"background"!=t&&(i+=arguments.callee.apply(this,[t.indexOf("-color")>-1?t:t+"-color","rgb("+c[1]+")"])),t="filter",n="progid:"+b+"Gradient(startColorStr=#{n},endColorStr=#{n})",r=function(t,e){return a(256*parseFloat(t),2)+s(e)}),n&&(e=n.replace(/\{n\}/g,r?r(c[2],c[1]):e*o)),this.setAttribute(t,e,arguments[2])};var x=n(e);t===t.top&&n.every(.01,function(){try{return e.documentElement.doScroll("left"),x.trigger("DOMContentLoaded"),!1}catch(t){return}});var w='input[type="radio"], input[type="checkbox"]';x.on("click",w,function(){this.blur(),this.focus()}).on("click","label",function(){var t=n(this),e=t.attr("for");e?n('input[id="'+e+'"]')[0].click():t.find(w).click()}),x.on("click","input, button",function(){this.type.match(/submit|reset/)&&n(this.form).one(this.type,c)}).on("keydown","form input, form select",function(){"button"!=this.type&&13==arguments[0].which&&n(this.form).one("reset"==this.type?"reset":"submit",c)});var T=n(t),S=HTMLFormElement.prototype.submit,O=HTMLFormElement.prototype.reset;n.extend(HTMLFormElement.prototype,{submit:n.proxy(u,null,"submit",S),reset:n.proxy(u,null,"reset",O)});var N=function(){for(var t=0;arguments[t];t++)try{return new ActiveXObject(arguments[t]),arguments[t]}catch(e){}}("MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument","Microsoft.XMLDOM");t.DOMParser=function(){},t.DOMParser.prototype.parseFromString=function(){var t=l(arguments[0]);return t.parseError.errorCode&&(t=l(["<xml><parsererror><h3>This page contains the following errors:</h3><div>",t.parseError.reason,"</div></parsererror></xml>"].join(""))),t}}}(self,self.document,self.iQuery||t),function(t,e,n){function r(){try{throw new Error("AMD_Loader")}catch(t){var e;for(var r in s)if(n.browser[r])return e=t.stack.match(RegExp("\\s+"+s[r]+"(http(s)?:\\/\\/\\S+.js)")),e&&e[1]}}function i(){for(var t=arguments[0].childNodes,e=0,n=0;t[e];e++)1==t[e].nodeType&&(this[n]=t[e],this[n++].name&&(this[this[n-1].name]=this[n-1]));this.length=n}function o(t){for(var e,n=0;n<t.attributes.length;n++)e=t.attributes[n],"data-"==e.nodeName.slice(0,5)&&(this[e.nodeName.slice(5).toCamelCase()]=e.nodeValue)}function a(){var t=(arguments[0].getAttribute("class")||"").trim().split(/\s+/);n.extend(this,t),this.length=t.length}var s={webkit:"at ",mozilla:"@",msie:"at Global code \\("};"currentScript"in e||Object.defineProperty(e.constructor.prototype,"currentScript",{get:function(){for(var t=n.browser.msie<10||r(),i=0;e.scripts[i];i++)if(t===!0?"interactive"==e.scripts[i].readyState:e.scripts[i].src==t)return e.scripts[i]}}),i.prototype.item=i.prototype.namedItem=function(){return this[arguments[0]]||null};var c={get:function(){return new i(this)}};e.createDocumentFragment().children||Object.defineProperty((n.browser.modern?DocumentFragment:e.constructor).prototype,"children",c),e.head.children[0]||Object.defineProperty(u,"children",c);var u=Element.prototype;if(u.matches=u.matches||u.webkitMatchesSelector||u.msMatchesSelector||u.mozMatchesSelector||function(){return this.parentNode||n("<div />")[0].appendChild(this),n.inArray(this,this.parentNode.querySelectorAll(arguments[0]))>-1},n.browser.msie<11&&(Object.defineProperty(u,"dataset",{get:function(){return new o(this)}}),n.browser.msie<10)){Error.prototype.valueOf=function(){return n.extend(this,{code:65535&this.number,helpURL:"https://msdn.microsoft.com/en-us/library/1dk3k160(VS.85).aspx"})},a.prototype.contains=function(t){if(t.match(/\s+/))throw new DOMException(["Failed to execute 'contains' on 'DOMTokenList': The token provided (",t,") contains HTML space characters, which are not valid in tokens."].join("'"));return Array.prototype.indexOf.call(this,t)>-1},Object.defineProperty(u,"classList",{get:function(){return new a(this)}});var l=Object.getOwnPropertyDescriptor(u,"innerHTML");Object.defineProperty(u,"innerHTML",{set:function(t){if(!String(t).match(/^[^<]*<\s*(head|meta|title|link|style|script|noscript|(!--[^>]*--))[^>]*>/i))return l.set.call(this,t);l.set.call(this,"IE_Scope"+t);var e=this.childNodes;e[0].nodeValue=e[0].nodeValue.slice(8),e[0].nodeValue[0]||this.removeChild(e[0])}})}}(self,self.document,self.iQuery||t),function(t,e,n){n.buildFragment=n.buildFragment||function(t){for(var n=(arguments[1]||e).createDocumentFragment(),r=0;t[r];r++)n.appendChild(t[r]);return n},n.fn.insertTo=function(t,r){var i=n.buildFragment(this,e),o=[];return n(t).each(function(){var t=n(this.children).eq(r||0)[0];i=arguments[0]?i.cloneNode(!0):i,n.merge(o,i.children),this[t?"insertBefore":"appendChild"](i,t)}),this.pushStack(o)}}(self,self.document,self.iQuery||t),function(t,e,n){n.fn.extend({appendTo:function(){return this.insertTo(arguments[0],1/0)},prependTo:function(){return this.insertTo(arguments[0])},insertBefore:function(t){var e=this;return this.pushStack(n.map(n(t),function(t){return e.insertTo(t.parentNode,n(t).index())}))},insertAfter:function(t){var e=this;return this.pushStack(n.map(n(t),function(t){return e.insertTo(t.parentNode,n(t).index()+1)}))}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(t){n.fn[arguments[1]]=function(){return n(arguments[0])[t](this),this}}),n.globalEval=function(){n("<script />").prop("text",arguments[0]).appendTo("head")}}(self,self.document,self.iQuery||t),function(t,e,n){function r(t){var e=[0,0,0];t.match(/\#[^\s>\+~]+/)&&e[0]++;var r=t.match(/:[^\s>\+~]+/g)||[],i=n.map(r,function(){return arguments[0]in h?arguments[0]:void 0});return e[1]+=(t.match(/\.[^\s>\+~]+/g)||[]).concat(t.match(/\[[^\]]+\]/g)||[]).concat(i).length,e[2]+=(t.match(/[^\#\.\[:]?[^\s>\+~]+/g)||[]).length+(r.length-i.length),e}function i(t,e){for(var n=r(t.selectorText),i=r(e.selectorText),o=0;o<n.length;o++){if(n[o]==i[o])continue;return n[o]>i[o]?-1:1}return 0}function o(e){if(!p[e]){var r=n("<"+e+" />").appendTo(f.document.body);p[e]=n.extend({},t.getComputedStyle(r[0])),r.remove()}return p[e]}function a(t){for(var e,n=[this[0]].concat(this.cssRule(t).sort(i),{style:o(this[0].tagName.toLowerCase())}),r=0;r<n.length;r++)if(e=n[r].style[t],e&&!(e in d))return e}function s(t,e,n){n=Number(n)||1;for(var r=[],i=m*n,o=(e-t)/i,a=0,s=t,c=0;i>a;a++)s+=o,r[c++]=Number(s.toFixed(2));return r}function c(t,e,r,i){var o=this.data("_Animate_",0);return n.each(t,function(t){if(!n.isNumeric(this))return o.css(t,this);o.data("_Animate_",o.data("_Animate_")+1);var r=t in y,a=s(r?o[t]():o.css(t),this,e);n.every(1/m,function(){if(!o.data("_Animate_")||!a.length){var e=o.data("_Animate_")-1;return o.data("_Animate_",e),!e&&i&&i.call(o[0]),a=!1}r?o[t](a.shift()):o.css(t,a.shift())})}),o}function u(){return"-"+g+"-"+arguments[0]}function l(){var t=["all",arguments[1]+"s",arguments[2]].join(" ");return this.on(b,arguments[3]).css("transition",t).css(u("transition"),t).css(arguments[0])}var f,h=n.makeSet([":link","visited","hover","active","focus","lang","enabled","disabled","checked","first-child","last-child","first-of-type","last-of-type","nth-child","nth-of-type","nth-last-child","nth-last-of-type","only-child","only-of-type","empty"].join(" :").split(" ")),p={};n(e).ready(function(){f=n("<iframe />",{id:"_CSS_SandBox_",src:"about:blank",css:{display:"none"}}).appendTo(this.body)[0].contentWindow});var d=n.makeSet("none","0","0px","hidden");n.fn.extend({hide:function(){return this.css("display",function(){return"none"!=arguments[1]&&n(this).data("_CSS_Display_",arguments[1]),"none"})},show:function(){return this.each(function(){var t=n(this),e=t.css(["display","visibility","opacity"]);"none"==e.display&&t.css("display",t.data("_CSS_Display_")||a.call(t,"display")),"hidden"==e.visibility&&t.css("visibility","visible"),0==e.opacity&&t.css("opacity",1)})}});var m=60,y={scrollLeft:!0,scrollTop:!0},g=function(t){for(var e in t)if(n.browser[e])return t[e]}({mozilla:"moz",webkit:"webkit",msie:"ms"}),v="TransitionEnd",b=v.toLowerCase()+" "+g+v;n.fn.extend({animate:function(t){if(!this[0])return this;var e=n.makeArray(arguments).slice(1),r=Object.getOwnPropertyNames(t);return this.data("_CSS_Animate_",function(){return n.extend(arguments[1],n(this).css(r))}),(n.browser.msie<10||!n.isEmptyObject(n.intersect(n.makeSet.apply(n,r),y))?c:l).call(this,t,n.isNumeric(e[0])?e.shift()/1e3:.4,"string"==typeof e[0]?e.shift():"","function"==typeof e[0]&&e[0])},stop:function(){return this.data("_Animate_",0)}}),n.fn.extend(n.map({fadeIn:{opacity:1},fadeOut:{opacity:0},slideUp:{overflow:"hidden",height:0,"padding-left":0,"padding-right":0,"padding-top":0,"padding-bottom":0,opacity:0},slideDown:{overflow:"auto",height:"auto","padding-left":"auto","padding-right":"auto","padding-top":"auto","padding-bottom":"auto",opacity:1}},function(t){return function(){if(!this[0])return this;var e=this,r=this.data("_CSS_Animate_");return this.animate.apply(this,n.merge([n.map(t,function(n,i){return"auto"==n&&(n=(r||{})[i],n||0===n||(n=a.call(e,i))),n||0===n?n:t[i]})],arguments))}})),n.fn.toggle=function(){return this[[["show","hide"],["slideDown","slideUp"]][arguments.length&&1][this.height()&&1]].apply(this,arguments)},n.fx={interval:1e3/m}}(self,self.document,self.iQuery||t),function(t,e,n){function r(t){var e=n(this),r=!this.children.length,i=n.isData(t),o="string"==typeof t&&t.trim(),a=o&&o.split("#")[0].match(s);switch(this.tagName.toLowerCase()){case"a":return i?(a&&e.attr("href",o),void(r&&e.text(t))):e.attr("href")||r&&e.text();case"img":return e.attr("src",t);case"textarea":case"select":return e.val(t);case"option":return e.text(t);case"input":var c=this.value;if("tel"!=this.getAttribute("type"))try{c=JSON.parse(c)}catch(u){}if((this.type||"").match(/radio|checkbox/i)){if(!i)return this.checked&&c;c&&"on"!=c?c===t&&(this.checked=!0):this.value=t}else i&&(this.value=t);return c;default:return i?void(!r&&a?e.css("background-image",'url("'+o+'")'):e.html(t)):(o=e.css("background-image").match(/^url\(('|")?([^'"]+)('|")?\)/),r?e.text():o&&o[2])}}var i={"+":function(){return arguments[0]+arguments[1]},"-":function(){return arguments[0]-arguments[1]}},o=Array.prototype.reverse,a=n.makeSet("auto","scroll");n.fn.extend({reduce:function(t,e,r){return arguments.length<3&&(r=e,e=void 0),"string"==typeof r&&(r=i[r]),n.map(this,function(){return n(arguments[0])[t](e)}).reduce(r)},sameParents:function(){if(this.length<2)return this.parents();for(var t,e,r=n.trace(this[0],"parentNode").slice(0,-1),i=1;i<this.length;i++)e=n.trace(this[i],"parentNode").slice(0,-1),e.length<r.length&&(t=r,r=e);t=t||e;for(var a=t.length-r.length,s=[],i=0;i<r.length;i++)if(r[i]===t[i+a]){s=r.slice(i);break}return o.call(this.pushStack(arguments[0]?n(s).filter(arguments[0]):s))},scrollParents:function(){return o.call(this.pushStack(n.map(this.eq(0).parents(),function(t){t=n(t);var e=t.css(["max-width","max-height","overflow-x","overflow-y"]);return(t.width()||parseFloat(e["max-width"]))&&e["overflow-x"]in a||(t.height()||parseFloat(e["max-height"]))&&e["overflow-y"]in a?t[0]:void 0})))},inViewport:function(){for(var t,e,r,i,o=0;this[o];o++)if(t=this[o].getBoundingClientRect(),e=n(this[o].ownerDocument.defaultView),r=e.width(),i=e.height(),t.left<0||t.left>r||t.top<0||t.top>i)return!1;return!0},scrollTo:function(){if(!this[0])return this;var t=this;return n(arguments[0]).each(function(){var e=t.has(this),r=n(this).offset(),i=e.offset();e.length&&e.animate({scrollTop:i.top?e.scrollTop()+(r.top-i.top):r.top,scrollLeft:i.left?e.scrollLeft()+(r.left-i.left):r.left})}),this}});var s=/^(\w+:)?\/\/[\u0021-\u007e\uff61-\uffef]+$/;n.fn.value=function(t,e){"function"==typeof t&&(e=t,t="");var n=t?this.filter("["+t+"]"):this;if(n=n.length?n:this.find("["+t+"]"),!e)return r.call(n[0]);for(var i,o="function"!=typeof e,a=0;a<n.length;a++)i=t&&n[a].getAttribute(t),r.call(n[a],o?e[i]:e.apply(n[a],[i||r.call(n[a]),a,n]));return this},n.fn.sandBox=function(){var r=n.makeArray(arguments),i="function"==typeof r.slice(-1)[0]&&r.pop(),o=n.isSelector(r[0])?"":r.shift(),a=r[0],s=this.filter("iframe").eq(0);return s.length||(s=n('<iframe style="display: none"></iframe>')),s.one("load",function(){function e(){if(r.body&&r.body.childNodes.length){var e=n(a||"body > *",r);return i&&!1===i.call(s[0],n(n.merge(n.makeArray(n("head style, head script",r)),e[0]?e:r.body.childNodes)))&&s.remove(),n.browser.msie&&t.CollectGarbage(),!1}}var r=this.contentWindow.document;o||e(),n.every(.04,e),r.write(o),r.close()}).attr("src",!o.match(/<.+?>/)&&o.trim()||"about:blank"),s[0].parentElement?this:s.appendTo(e.body)}}(self,self.document,self.iQuery||t),function(t,e,n){function r(t,e){return n.isNumeric(e)&&t.match(n.cssPX)&&(e+="px"),[t,":",u,e].join("")}function i(t){var e,i,o=[""];return n.each(t,function(t){e=t+" {",i=[];for(var n in this)i.push(r(n,this[n]).replace(/^(\w)/m,u+"$1"));o.push([e,i.join(";\n"),"}"].join("\n"))}),o.push(""),o.join("\n")}function o(t,r){return n.map(t||e.styleSheets,function(){var t=arguments[0].cssRules,e=arguments.callee;if(t)return n.map(t,function(t){return(t.cssRules?e:r)(t)})})}function a(){n.extend(this,arguments[0]),this.length=arguments[0].length}function s(){for(var t,e=n(this);e[0];e=n(e[0].offsetParent))if("static"!=e.css("position")&&(t=parseInt(e.css("z-index")),t>0))return t;return 0}function c(){var t=n(this),e=0;t.siblings().addBack().filter(":visible").each(function(){e=Math.max(e,s.call(this))}),t.css("z-index",++e)}var u=n.browser.modern?"":" ".repeat(4);n.cssRule=function(t,r){"string"!=typeof t&&(r=t,t=null);var o=i(r),a=n("<style />",{type:"text/css","class":"iQuery_CSS-Rule",text:t?["@media "+t+" {",o.replace(/\n/m,"\n "),"}"].join("\n"):o}).appendTo(e.head);return a[0].sheet||a[0].styleSheet},"function"!=typeof t.getMatchedCSSRules&&(t.getMatchedCSSRules=function(t,e){if(!(t instanceof Element))return null;if("string"==typeof e){if(e=(e.match(/^\s*:{1,2}([\w\-]+)\s*$/)||[])[1],!e)return null}else e&&(e=null);return new a(o(null,function(n){var r=n.selectorText;if(!e||(r=r.replace(/:{1,2}([\w\-]+)$/,function(){return arguments[1]==e?"":arguments[0]}),r!=n.selectorText))return t.matches(r)?n:void 0}))}),n.fn.cssRule=function(t,e){if(!n.isPlainObject(t)){var r=this;return r[0]&&o(null,function(e){return("string"==typeof r.selector&&r.selector==e.selectorText||r[0].matches(e.selectorText))&&(!t||t&&e.style[t])?e:void 0})}return this.each(function(){var r={},i=this.getAttribute("id");i||(i=n.uuid(),this.setAttribute("id",i));for(var o in t)r["#"+i+o]=t[o];var a=n.cssRule(r);"function"==typeof e&&e.call(this,a)})},n.fn.zIndex=function(t){return n.isData(t)?"+"==t?this.each(c):this.css("z-index",parseInt(t)||"auto"):s.call(this[0])}}(self,self.document,self.iQuery||t),function(t,e,n){function r(t){var e=o?t.focusNode:t.createRange().parentElement(),r=e.ownerDocument.activeElement;return n.contains(r,e)?e:r}function i(){var t=this.document||this.ownerDocument||this;if("iframe"==t.activeElement.tagName.toLowerCase())try{return arguments.callee.call(t.activeElement.contentWindow)}catch(e){}var i=o?t.getSelection():t.selection,a=r(i);return n.contains(this instanceof Element?this:t,a)&&[i,a]}var o=!(n.browser.msie<10);n.fn.selection=function(t){if(void 0===t){var e=i.call(this[0])[0];return o?e.toString():e.createRange().htmlText}return this.each(function(){var e=i.call(this),n=e[1];if(e=e[0],n=1==n.nodeType?n:n.parentNode,!o)return e=e.createRange(),e.text="function"==typeof t?t.call(n,e.text):t;var r,a,s;(n.tagName||"").match(/input|textarea/i)?(r="value",a=Math.min(n.selectionStart,n.selectionEnd),s=Math.max(n.selectionStart,n.selectionEnd)):(r="innerHTML",a=Math.min(e.anchorOffset,e.focusOffset),s=Math.max(e.anchorOffset,e.focusOffset));var c=n[r];n[r]=c.slice(0,a)+("function"==typeof t?t.call(n,c.slice(a,s)):t)+c.slice(s)})}}(self,self.document,self.iQuery||t),function(t,e,n){function r(){return this.requireArgs=arguments[0]||0,this.filter=arguments[1]||[],this.table=[],this}function i(){var t=this,e=n.makeArray(arguments);if("function"==typeof e[e.length-1]){var r=e.pop();n.each(this.table,function(){var n=this[this.length-1];if(null!=n){for(var i=0;i<e.length&&"function"!=typeof this[i];i++)if(void 0===this[i]){if(i<t.requireArgs)return}else if("function"==typeof t.filter[i]?!1===t.filter[i].call(t,this[i],e[i]):this[i]!=e[i]&&!e[i].match(this[i]))return;!1===r.call(t,n)&&(this[this.length-1]=null)}})}}n.extend(r.prototype,{on:function(){if("function"==typeof arguments[arguments.length-1]){for(var t=n.makeArray(arguments),e=0;this.table[e];e++)if(n.isEqual(this.table[e],t))return this;this.table.push(t)}return this},off:function(){var t=n.makeArray(arguments),e="function"==typeof t[t.length-1]&&t.pop();return t.push(function(){return e!==!1&&e!==arguments[0]}),i.apply(this,t),this},one:function(){var t=n.makeArray(arguments);if("function"==typeof t[t.length-1]){var e=t.pop();t.push(function(){return this.off.apply(this,t),e.apply(this,arguments)}),this.on.apply(this,t)}return this},trigger:function(){var t=n.makeArray(arguments),e=[],r=n.likeArray(t[t.length-1])&&t.pop();return t.push(function(){var t=arguments[0].apply(this,r);n.isData(t)&&e.push(t)}),i.apply(this,t),e}}),n.Observer=r}(self,self.document,self.iQuery||t),function(t,e,n){function r(e){var r=n.makeArray(arguments).slice(1),i=r[r.length-1];"function"==typeof i&&(r.splice(-1,1,function(){return i.apply(t,n.makeArray(arguments).slice(1))}),s.on.apply(s,[e].concat(r)))}function i(t){var e={};arguments[4]&&n.each(arguments[4].split("\r\n"),function(){var t=n.split(this,/:\s+/,2);e[t[0]]=t[1]});var r=(e["Content-Type"]||"").split(";")[0].split("/");switch(n.extend(this,{status:arguments[1],statusText:arguments[2],responseText:arguments[3].text,responseType:(r[1]in c?r[1]:r[0])||"text"}),this.response=this.responseText,this.responseType){case"text":case"html":if(this.responseText.match(/^\s*<.+?>/)){try{this.response=n.parseXML(this.responseText),this.responseType="xml"}catch(i){this.response=n.buildFragment(n.parseHTML(this.responseText)),this.responseType="html"}break}case"json":try{this.response=n.parseJSON(this.responseText),this.responseType="json"}catch(i){}break;case"xml":this.response=this.responseXML}var o=[this,t];a.trigger("ajaxComplete",o),arguments[1]<400?a.trigger("ajaxSuccess",o):a.trigger("ajaxError",o.concat(new Error(this.statusText))),"function"==typeof t.success&&t.success(this.response,"success",this)}function o(e,r,o,c){"function"==typeof o&&(c=o,o={});var u={type:e,crossDomain:n.isCrossDomain(r),dataType:"text",data:o||{},success:c};if(u.url=r.replace(/&?(\w+)=\?/,function(){return(u.jsonp=arguments[1])&&(u.dataType="jsonp"),""}),"GET"==e){var l=n.fileName(r);u.jsonp||n.browser.modern||n.map(n('link[rel="next"], link[rel="prefetch"]'),function(){return n.fileName(arguments[0].href)==l?r:void 0}).length||(u.data._=n.now()),u.data=n.extend(n.paramJSON(u.url),u.data),u.url=u.url.split("?")[0]+(n.isEmptyObject(u.data)?"":"?"+n.param(u.data))}var f=new t.XMLHttpRequest,h=[u,u,f];s.trigger("prefilter",h),f=s.trigger("transport",u.dataType,h).slice(-1)[0],f.send({},n.proxy(i,f,u)),u.timeout&&n.wait(u.timeout/1e3,function(){f.abort(),a.trigger("ajaxError",[f,u,new Error("XMLHttpRequest Timeout")])}),a.trigger("ajaxSend",[f,u])}var a=n(e),s=new n.Observer(1);n.extend({ajaxPrefilter:n.proxy(r,n,"prefilter"),ajaxTransport:n.proxy(r,n,"transport")}),n.ajaxTransport(function(e){var r;return{send:function(i,o){r=new t.XMLHttpRequest,r.open(e.type,e.url,!0),r[e.crossDomain?"onload":"onreadystatechange"]=function(){if(e.crossDomain||4==r.readyState){var t={text:r.responseText};t[r.responseType]=r.response,o(r.status,r.statusText,t,r.getAllResponseHeaders())}},e.xhrFields&&n.extend(r,e.xhrFields),e.crossDomain||(e.headers=n.extend(e.headers||{},i,{"X-Requested-With":"XMLHttpRequest",Accept:"*/*"}));for(var a in e.headers)r.setRequestHeader(a,e.headers[a]);var s=e.data;(s instanceof Array||n.isPlainObject(s))&&(s=n.param(s)),("string"==typeof s||e.contentType)&&r.setRequestHeader("Content-Type",e.contentType||"application/x-www-form-urlencoded"),e.data=s,r.send(s)},abort:function(){r.onload=r.onreadystatechange=null,r.abort(),r=null}}});var c=n.makeSet("html","xml","json"),u=n.makeSet("GET","POST","PUT","DELETE");for(var l in u)n[l.toLowerCase()]=n.proxy(o,t,l);n.getJSON=n.get,n.fn.load=function(t,e,r){if(!this[0])return this;t=n.split(t.trim(),/\s+/,2," "),"function"==typeof e&&(r=e,e=null);var i=this;return n[e?"post":"get"](t[0],e,function(t){i.children().fadeOut(),i.empty()[0].appendChild(t);for(var e=n(t.children).filter("script").not("[src]").remove(),o=0;e[o];o++)n.globalEval(e[o].text);if("function"==typeof r)for(var o=0;i[o];o++)r.apply(i[o],arguments)}),this}}(self,self.document,self.iQuery||t),function(t,e,n){function r(){return s[this.tagName].get.call(this)}function i(){r.call(this)||(this.value=this.placeholder,this.style.color="gray")}function o(){this.placeholder==r.call(this)&&(this.value="",this.style.color="")}function a(){var t=n(this);if("string"==typeof t.attr("required")&&!this.value)return!1;var e=t.attr("pattern");if(e)try{return RegExp(e).test(this.value)}catch(r){}if("input"==this.tagName.toLowerCase()&&"number"==this.type){var i=Number(this.value),o=Number(t.attr("min"));if(isNaN(i)||o>i||i>Number(t.attr("max"))||(i-o)%Number(t.attr("step")))return!1}return!0}if(n.browser.msie<10||n.browser.ios){var s={INPUT:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),TEXTAREA:Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,"value")},c={get:function(){return this.getAttribute("placeholder")},set:function(){n.browser.modern&&this.setAttribute("placeholder",arguments[0]),i.call(this),n(this).off("focus",o).off("blur",i).focus(o).blur(i)}};Object.defineProperty(HTMLInputElement.prototype,"placeholder",c),Object.defineProperty(HTMLTextAreaElement.prototype,"placeholder",c),n(e).ready(function(){n("input[placeholder], textarea[placeholder]").prop("placeholder",function(){return this.placeholder})});var u={get:function(){var t=r.call(this);return t==this.placeholder&&"gray"==this.style.color?"":t}};Object.defineProperty(HTMLInputElement.prototype,"value",u),Object.defineProperty(HTMLTextAreaElement.prototype,"value",u),HTMLInputElement.prototype.checkValidity=a,HTMLSelectElement.prototype.checkValidity=a,HTMLTextAreaElement.prototype.checkValidity=a,HTMLFormElement.prototype.checkValidity=function(){for(var t=n("*[name]:input",this),e=0;e<t.length;e++)if(!t[e].checkValidity())return t[e].style.borderColor="red",n.wait(1,function(){t[e].style.borderColor=""}),!1;return!0},n.browser.msie<10&&(t.FormData=function(){this.ownerNode=arguments[0]},n.extend(t.FormData.prototype,{append:function(){this[arguments[0]]=arguments[1]},toString:function(){return n(this.ownerNode).serialize()}}))}}(self,self.document,self.iQuery||t),function(t,e,n){function r(e){var r,i=e.data.ownerNode;switch(!0){case e.data instanceof t.FormData&&n(i).is("form")&&n('input[type="file"]',i)[0]:break;case n.fn.iquery&&"jsonp"==e.dataType:break;default:return}return{send:function(n,i){"jsonp"==e.dataType&&(e.url+=(e.url.split("?")[1]?"&":"?")+e.jsonp+"=?"),r=new t.DOMHttpRequest,r.open(e.type,e.url),r.onload=function(){var t={text:r.responseText};t[r.responseType]=r.response,i(r.status,r.statusText,t)},r.send(e.data)},abort:function(){r.abort()}}}t.DOMHttpRequest=function(){this.status=0,this.readyState=0,this.responseType="text"},t.DOMHttpRequest.JSONP={};var i={readyState:4,status:200,statusText:"OK"};n.extend(t.DOMHttpRequest.prototype,{open:function(){this.responseURL=arguments[1],this.readyState=1},setRequestHeader:function(){console.warn("JSONP/iframe doesn't support Changing HTTP Headers...")},send:function(r){var o=this,a=n.uuid("DHR");if(this.$_Transport=r instanceof t.FormData&&n(r.ownerNode),this.$_Transport&&"POST"==r.ownerNode.method.toUpperCase()){var s=this.$_Transport.submit(function(){return n(this).data("_AJAX_Submitting_")?!1:void 0}).attr("target");s&&!s.match(/^_(top|parent|self|blank)$/i)||(this.$_Transport.attr("target",a),s=a),n('iframe[name="'+s+'"]').sandBox(function(){o.$_Transport.data("_AJAX_Submitting_",0);try{o.responseText=n(this).contents().find("body").text()}catch(t){}n.extend(o,i,{responseType:"text",response:o.responseText}),o.onload()}).attr("name",s),this.$_Transport.submit()}else{var c=this.responseURL.match(/([^\?=&]+\?|\?)?(\w.+)?/);if(!c)throw"Illegal JSONP URL !";this.constructor.JSONP[a]=function(t){n.extend(o,i,{responseType:"json",response:t,responseText:JSON.stringify(t)}),o.onload(),delete this[a],o.$_Transport.remove()},this.responseURL=c[1]+n.param(n.extend(arguments[0]||{},n.paramJSON("?"+c[2].replace(/(\w+)=\?/,"$1=DOMHttpRequest.JSONP."+a)))),this.$_Transport=n("<script />",{type:"text/javascript",charset:"UTF-8",src:this.responseURL}).appendTo(e.head)}this.readyState=2},abort:function(){this.$_Transport=null,this.readyState=0}}),n.ajaxTransport(function(e){var r;return n.browser.msie<10&&e.crossDomain?{send:function(n,i){r=new t.XDomainRequest,r.open(e.type,e.url,!0),r.onload=function(){i(200,"OK",{text:r.responseText},"Content-Type: "+r.contentType)},r.onerror=function(){i(500,"Internal Server Error",{text:r.responseText})},r.send(e.data)},abort:function(){r.abort(),r=null}}:void 0}),n.ajaxTransport(r),n.ajaxTransport("jsonp",r),n.fn.ajaxSubmit=function(t){function e(){var e=n(this);if(!this.checkValidity()||e.data("_AJAX_Submitting_"))return!1;e.data("_AJAX_Submitting_",1);var r=(e.attr("method")||"Get").toLowerCase();"function"==typeof n[r]&&n[r](this.action,n.paramJSON("?"+e.serialize()),function(){e.data("_AJAX_Submitting_",0),t.apply(e[0],arguments)}),arguments[0].preventDefault()}if(!this.length)return this;var r=this.filter("form");return r[0]?r.submit(e):this.on("submit","form:visible",e),this}}(self,self.document,self.iQuery||t),function(t,e,n){return"function"!=typeof t.jQuery&&(t.$=t.jQuery=n),n}(self,self.document,self.iQuery||t)});
//# sourceMappingURL=iQuery.min.map
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mufa/iQuery.git
git@gitee.com:mufa/iQuery.git
mufa
iQuery
iQuery
master

搜索帮助

Cb406eda 1850385 E526c682 1850385