-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.cbb128422e5e321d058b.js
1 lines (1 loc) · 177 KB
/
scripts.cbb128422e5e321d058b.js
1
!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){return i(t[a][1][e]||e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){(function(){var t=n(1),r=window._jQuery||window.jQuery,i=function(){return pr=r.Deferred(),pr.promise=pr.promise(),pr},o={defer:i,http:function(e){var t=r.Deferred();return r.ajax({type:e.method,url:e.url,headers:e.headers,dataType:"json",contentType:"application/json",data:e.data||e.params,withCredentials:"include"===e.credentials}).done(function(n,r,i){t.resolve({data:n,status:r,headers:i.getResponseHeader,config:e})}).fail(function(n){t.reject({error:n,data:n,config:e})}),t.promise()}},a=function(e){return t(e,o)};a.defer=i,e.exports=a}).call(this)},function(e,t,n){(function(){n(2);var t=n(5),r=n(6),i=n(7),o=n(9),a=n(10),s=n(11),u=n(12),c=n(13),l=n(14),f=n(15),h=n(16);e.exports=function(e,n){var d=t.Middleware,p=t.$$Attr,g=function(e){return p("method",e)},v=function(e,t){return p("headers."+e,t)},y=d(a),m=d(s(e,n)).and(y).and(i.$Basic).and(i.$Bearer).and(i.$Credentials).and(o.$JsonData).and(v("Accept","application/json")).and(v("Content-Type","application/json")),b=m.and(g("GET")),w=m.and(g("POST")),x=m.and(g("PUT")),_=m.and(g("DELETE")),S=o.Http(e,n),E=(0,f.Path)(e.baseUrl),k=E.slash(":type || :resource.resourceType"),T=k.slash("_history"),j=k.slash(":id || :resource.id"),C=j.slash("_history"),A=C.slash(":versionId || :resource.meta.versionId"),L=(C.slash(":versionId || :resource.meta.versionId"),v("Prefer","return=representation")),N=d(r.$Paging);return h({conformance:b.and(E.slash("metadata")).end(S),document:w.and(E.slash("Document")).end(S),profile:b.and(E.slash("Profile").slash(":type")).end(S),transaction:w.and(E).end(S),history:b.and(E.slash("_history")).and(N).end(S),typeHistory:b.and(T).and(N).end(S),resourceHistory:b.and(C).and(N).end(S),read:b.and(c.$WithPatient).and(j).end(S),vread:b.and(A).end(S),delete:_.and(j).and(L).end(S),create:w.and(k).and(L).end(S),validate:w.and(k.slash("_validate")).end(S),search:b.and(k).and(c.$WithPatient).and(r.$SearchParams).and(N).end(S),update:x.and(j).and(L).end(S),nextPage:b.and(u.$$BundleLinkUrl("next")).end(S),prevPage:b.and(u.$$BundleLinkUrl("prev")).end(S),resolve:b.and(l.resolve).end(S)},n)}}).call(this)},function(e,t,n){(function(){var e=n(3),r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;t.trim=function(e){return e?e.toString().replace(r,""):""};var i=function(e){return null==e&&void 0===e?String(e):{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"}[Object.prototype.toString.call(e)]};t.type=i,t.assertArray=function(e){if("array"!==i(e))throw"not array";return e};var o=function(e){if("object"!==i(e))throw"not object";return e};t.assertObject=o;var a=function(e,t,n){var r;return n||(n=[]),o(e),function(){var t;for(r in t=[],e)t.push([r,e[r]]);return t}().reduce(t,n)};t.reduceMap=a,t.identity=function(e){return e};var s=function(){return Array.prototype.slice.call(arguments)};t.argsArray=s,t.mergeLists=function(){var t;return t=function(t,n){var r,i;for(r in i=e(!0,t),n)i[r]=(i[r]||[]).concat(n[r]);return i},s.apply(null,arguments).reduce(t,{})},t.absoluteUrl=function(e,t){return t.match(/https?:\/\/./)?t:e+"/"+t},t.relativeUrl=function(e,t){return t.slice(t,e.length+1)===e+"/"?t.slice(e.length+1):t},t.resourceIdToUrl=function(e,t,n){return t=t.replace(/\/$/,""),(e=e.replace(/^\//,"")).indexOf("/")<0?t+"/"+n+"/"+e:0!==e.indexOf(t)?t+"/"+e:e};var u=function(e,t,n,r){var o;switch(i(n)){case"array":return t(n.map(function(t){return e(t,[n,r])}),r);case"object":return o=function(t,i){return t[i[0]]=e(i[1],[n].concat(r)),t},t(a(n,o,{}),r);default:return t(n,r)}};t.walk=u;var c=function(e,t,n){return t?u(c(e),e,t,n):function(t,n){return c(e,t,n)}};t.postwalk=c}).call(this)},function(e,t,n){(function(e){!function(t){function n(){var e,t,n,o=Array.prototype.slice.call(arguments),a=o.shift(),s=!0===a,u=o.length;for((s||"object"!==i(a))&&(a={}),t=0;t<u;++t)if("object"===i(e=o[t]))for(n in e)a[n]=s?r(e[n]):e[n];return a}function r(e){var t,n,o=e,a=i(e);if("array"===a)for(o=[],n=e.length,t=0;t<n;++t)o[t]=r(e[t]);else if("object"===a)for(t in o={},e)o[t]=r(e[t]);return o}function i(e){return{}.toString.call(e).match(/\s([\w]+)/)[1].toLowerCase()}"object"==typeof e&&e&&"object"==typeof e.exports&&e.exports?e.exports=n:window.merge=n}()}).call(t,n(4)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){(function(){var e=n(2),r=function(e){return e.and=function(t){return r((n=e,i=t,function(e){return n(i(e))}));var n,i},e.end=function(t){return e(t)},e};t.$$Simple=function(e){return function(t){return function(n){return t(e(n))}}},t.$$Attr=function(t,n){return r(function(r){return function(i){var o;return o="function"==e.type(n)?n(i):n,r(null==o&&null==o?i:function(e,t,n){for(var r=t.split("."),i=e,o=0;o<r.length-1;o++){var a=r[o];(i=e[a])||(e[a]=i={})}return i[r[r.length-1]]=n,e}(i,t,o))}})};var i=function(e,t){return r(function(n){return function(r){return r[e]=t(r),n(r)}})};t.Middleware=r,t.Attribute=i,t.Method=function(e){return i("method",(t=e,function(){return t}));var t}}).call(this)},function(e,t,n){(function(){var e=n(2),r=e.type,i=e.assertArray,o=e.reduceMap,a=e.identity,s={$gt:"gt",$lt:"lt",$lte:"lte",$gte:"gte"},u={$asc:":asc",$desc:":desc",$exact:":exact",$missing:":missing",$null:":missing",$text:":text"},c=function(e,t){if("$sort"===e)return function(e){var t,n,o,a;for(i(e),o=[],t=0,n=e.length;t<n;t++)switch(r(a=e[t])){case"array":o.push({param:"_sort",value:a[0],modifier:":"+a[1]});break;case"string":o.push({param:"_sort",value:a});break;default:o.push(void 0)}return o}(t);if("$include"===e)return o(t,function(e,t){var n,i;return n=t[0],i=t[1],e.concat(function(){switch(r(i)){case"array":return i.map(function(e){return{param:"_include",value:n+"."+e}});case"string":return[{param:"_include",value:n+"."+i}]}}())});switch(r(t)){case"object":return function(e,t){return o(t,function(n,o){var a,l,f,h;return h=o[1],n.concat("$and"===(a=o[0])?i(h).reduce(function(t,n){return t.concat(c(e,n))},[]):"$type"===a?[]:0===a.indexOf("$")?(l={param:e},"$or"===a?l.value=h:(s[a]&&(l.operator=s[a]),u[a]&&(l.modifier=u[a]),l.value="object"===r(h)&&h.$or?h.$or:[h]),[l]):(t.$type&&(f=":"+t.$type),c(""+e+(f||"")+"."+a,h)))})}(e,t);case"string":case"number":return[{param:e,value:[t]}];case"array":return[{param:e,value:[t.join("|")]}];default:throw"could not linearizeParams "+r(t)}},l=function(e){return o(e,function(e,t){return e.concat(c(t[0],t[1]))})},f=function(e){var t;return function(){var n,r,i,o;for(o=[],n=0,r=(i=l(e)).length;n<r;n++)o.push([(t=i[n]).param,t.modifier,"=",t.operator,encodeURIComponent(t.value)].filter(a).join(""));return o}().join("&")};t._query=l,t.query=f;var h=n(5);t.$SearchParams=h.$$Attr("url",function(e){var t=e.url;return e.query?t+"?"+f(e.query):t}),t.$Paging=function(e){return function(t){var n=t.params||{};return t.since&&(n._since=t.since),t.count&&(n._count=t.count),t.params=n,e(t)}}}).call(this)},function(e,t,n){(function(){var e,r=n(5),i=n(8).btoa;t.$Basic=r.$$Attr("headers.Authorization",function(e){if(e.auth&&e.auth.user&&e.auth.pass)return"Basic "+i(e.auth.user+":"+e.auth.pass)}),t.$Bearer=r.$$Attr("headers.Authorization",function(e){if(e.auth&&e.auth.bearer)return"Bearer "+e.auth.bearer}),t.$Credentials=r.Middleware(r.$$Attr("credentials",function(t){return e=t.credentials,""})).and(r.$$Attr("credentials",function(t){if(["same-origin","include"].indexOf(e)>-1)return e}))}).call(this)},function(e,t,n){!function(){var e=t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){this.message=e}(r.prototype=new Error).name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var t,i,o=String(e),a=0,s=n,u="";o.charAt(0|a)||(s="=",a%1);u+=s.charAt(63&t>>8-a%1*8)){if((i=o.charCodeAt(a+=.75))>255)throw new r("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|i}return u}),e.atob||(e.atob=function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,a=0,s=0,u="";o=t.charAt(s++);~o&&(i=a%4?64*i+o:o,a++%4)?u+=String.fromCharCode(255&i>>(-2*a&6)):0)o=n.indexOf(o);return u})}()},function(e,t,n){(function(){var e=n(2);t.Http=function(e,t){return function(n){n.debug&&console.log("\nDEBUG (request):",n.method,n.url,n);var r=(n.http||t.http||e.http)(n);return n.debug&&r&&r.then&&r.then(function(e){console.log("\nDEBUG: (responce)",e)}),r}},t.$JsonData=function(t){return function(n){var r,i=n.bundle||n.data||n.resource;return i&&(n.data="object"==e.type(r=i)?JSON.stringify(r):r),t(n)}}}).call(this)},function(e,t){e.exports=function(e){return function(t){try{return e(t)}catch(r){if(t.debug&&(console.log("\nDEBUG: (ERROR in middleware)"),console.log(r.message),console.log(r.stack)),!t.defer)throw console.log("\nDEBUG: (ERROR in middleware)"),console.log(r.message),console.log(r.stack),new Error("I need adapter.defer");var n=t.defer();return n.reject(r),n.promise}}}},function(e,t){(function(){var t=function(e,t,n){var r=e[n];return r&&!t[n]&&(t[n]=r),e};e.exports=function(e,n){return function(r){return function(i){return t(e,i,"baseUrl"),t(e,i,"cache"),t(e,i,"auth"),t(e,i,"patient"),t(e,i,"debug"),t(n,i,"defer"),t(n,i,"http"),r(i)}}}}).call(this)},function(e,t){t.$$BundleLinkUrl=function(e){return function(t){return function(n){var r=n.bundle&&(n.bundle.link||[]).filter(function(t){return t.relation&&t.relation===e})[0];if(r&&r.url)return n.url=r.url,n.data=null,t(n);throw new Error("No "+e+" link found in bundle")}}}},function(e,t,n){(function(){var e=n(5),r=["Account","AllergyIntolerance","BodySite","CarePlan","Claim","ClinicalImpression","Communication","CommunicationRequest","Composition","Condition","Contract","DetectedIssue","Device","DeviceUseRequest","DeviceUseStatement","DiagnosticOrder","DiagnosticReport","DocumentManifest","DocumentReference","Encounter","EnrollmentRequest","EpisodeOfCare","FamilyMemberHistory","Flag","Goal","ImagingObjectSelection","ImagingStudy","Immunization","ImmunizationRecommendation","List","Media","MedicationAdministration","MedicationDispense","MedicationOrder","MedicationStatement","NutritionOrder","Observation","Order","Procedure","ProcedureRequest","QuestionnaireResponse","ReferralRequest","RelatedPerson","RiskAssessment","Specimen","SupplyDelivery","SupplyRequest","VisionPrescription"];t.$WithPatient=e.$$Simple(function(e){var t=e.type;return e.patient&&("Patient"===t?(e.query=e.query||{},e.query._id=e.patient,e.id=e.patient):r.indexOf(t)>=0&&(e.query=e.query||{},e.query.patient=e.patient)),e})}).call(this)},function(e,t,n){(function(){var t=n(2),r=/^#(.*)/,i=function(e){var n=e.cache,i=e.bundle,o=e.reference;if(!o.reference)return null;if(o.reference.match(r))return function(e,t){var n=e.match(r)[1],i=(t.contained||[]).filter(function(e){return(e.id||e._id)==n})[0];return i&&{content:i}||null}(o.reference,e.resource);var a=t.absoluteUrl(e.baseUrl,o.reference);return(i&&i.entry||[]).filter(function(e){return e.id===a})[0]||(null!=n?n[a]:void 0)||null};e.exports.sync=i,e.exports.resolve=function(e){return function(n){var o=i(n),a=n.reference,s=n.defer();if(o){if(!n.defer)throw new Error("I need promise constructor 'adapter.defer' in adapter");return s.resolve(o),s.promise}if(!a)throw new Error("No reference found");if(a&&a.reference.match(r))throw new Error("Contained resource not found");return n.url=t.absoluteUrl(n.baseUrl,a.reference),n.data=null,e(n)}}}).call(this)},function(e,t,n){(function(){n(2);var e=n(5),r=function(t,n){var i=function(e){return(n&&n(e)+"/"||"")+function(e,t){var n=function(e,t){return 0==e.indexOf(":")?function(e,t){for(var n,r=e.split("||").map(function(e){return e.trim().substring(1)}),i=0;i<r.length;i++){var o=(n=t,r[i].split(".").reduce(function(e,t){return null==e||null==e?null:e[t]},n));if(o)return o}return null}(e,t):e}(e.trim(),t);if(null==n||void 0===n)throw new Error("Parameter "+e+" is required: "+JSON.stringify(t));return n}(t,e)},o=e.Attribute("url",i);return o.slash=function(e){return r(e,i)},o};t.Path=r}).call(this)},function(e,t){(function(){var t,n;function r(e,r,i,o){n.defer(),t.search(e).then(function(e){(function e(r,i){var o,a=r.data.entry||[],s=[];for(o=0;o<a.length;o++)s.push(a[o].resource);i(s);var u=n.defer();return t.nextPage({bundle:r.data}).then(function(t){e(t,i).then(function(e){u.resolve()})},function(e){u.resolve()}),u.promise})(e,r).then(function(){i()},function(e){o(e)})},function(e){o(e)})}function i(e){var t=n.defer(),i=[];return r(e,function(e){e.forEach(function(e){i.push(e)})},function(){t.resolve(i)},function(e){t.reject(e)}),t.promise}function o(e,r){var i=n.defer();return t.search(e).then(function(e){var n={},o=[function(){var t=(e.data.entry||[]).map(function(e){return e.resource});i.resolve(t,function(e,t){var r=a(e,t);return n[r]})}];function a(e,t){var n=t.reference;return n.startsWith("#")?e.resourceType+"/"+e.id+n:n}function s(){o.pop()()}var u=e.data;u.entry&&u.entry.forEach(function(e){var i=e.resource,c=i.resourceType;r&&r.forEach(function(e){var r=e.split("."),l=i[r[1]];c===r[0]&&l&&(n[l.reference]||function(e,r,i){o.push(function(){!function(e,r,i){var o=a(r,i);t.resolve({bundle:e,resource:r,reference:i}).then(function(e){n[o]=e.data||e.content,s()})}(e,r,i)})}(u,i,l))})}),s()},function(){i.reject("Could not fetch search results")}),i.promise}e.exports=function(e,a){return t=e,n=a,e.drain=r,e.fetchAll=i,e.fetchAllWithReferences=o,e}}).call(this)}])},"object"==typeof n&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof n?n.fhir=r():this.fhir=r()},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){var r=e("base64-js"),i=e("ieee754");n.Buffer=a,n.SlowBuffer=a,n.INSPECT_MAX_BYTES=50,a.poolSize=8192;var o=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}();function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);var r,i,s,u=typeof e;if("number"===u)r=e>0?e>>>0:0;else if("string"===u)"base64"===t&&(e=function(e){for(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_,"");e.length%4!=0;)e+="=";return e}(e)),r=a.byteLength(e,t);else{if("object"!==u||null===e)throw new Error("First argument needs to be a number, array or string.");"Buffer"===e.type&&S(e.data)&&(e=e.data),r=+e.length>0?Math.floor(+e.length):0}if(o?i=a._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),o&&"number"==typeof e.byteLength)i._set(e);else if(function(e){return S(e)||a.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}(e))if(a.isBuffer(e))for(s=0;s<r;s++)i[s]=e.readUInt8(s);else for(s=0;s<r;s++)i[s]=(e[s]%256+256)%256;else if("string"===u)i.write(e,0,t);else if("number"===u&&!o&&!n)for(s=0;s<r;s++)i[s]=0;return i}function s(e,t,n,r){return j(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function u(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}function c(e,t,n,r){r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(t>=o))return n?(i=e[t],t+1<o&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<o&&(i|=e[t+1])),i}function l(e,t,n,r){r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(t>=o))return n?(t+2<o&&(i=e[t+2]<<16),t+1<o&&(i|=e[t+1]<<8),i|=e[t],t+3<o&&(i+=e[t+3]<<24>>>0)):(t+1<o&&(i=e[t+1]<<16),t+2<o&&(i|=e[t+2]<<8),t+3<o&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function f(e,t,n,r){if(r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length")),!(t>=e.length)){var i=c(e,t,n,!0);return 32768&i?-1*(65535-i+1):i}}function h(e,t,n,r){if(r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length")),!(t>=e.length)){var i=l(e,t,n,!0);return 2147483648&i?-1*(4294967295-i+1):i}}function d(e,t,n,r){return r||(D("boolean"==typeof n,"missing or invalid endian"),D(t+3<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,23,4)}function p(e,t,n,r){return r||(D("boolean"==typeof n,"missing or invalid endian"),D(t+7<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,52,8)}function g(e,t,n,r,i){i||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+1<e.length,"trying to write beyond buffer length"),A(t,65535));var o=e.length;if(!(n>=o)){for(var a=0,s=Math.min(o-n,2);a<s;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a);return n+2}}function v(e,t,n,r,i){i||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"trying to write beyond buffer length"),A(t,4294967295));var o=e.length;if(!(n>=o)){for(var a=0,s=Math.min(o-n,4);a<s;a++)e[n+a]=t>>>8*(r?a:3-a)&255;return n+4}}function y(e,t,n,r,i){if(i||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+1<e.length,"Trying to write beyond buffer length"),L(t,32767,-32768)),!(n>=e.length))return g(e,t>=0?t:65535+t+1,n,r,i),n+2}function m(e,t,n,r,i){if(i||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"Trying to write beyond buffer length"),L(t,2147483647,-2147483648)),!(n>=e.length))return v(e,t>=0?t:4294967295+t+1,n,r,i),n+4}function b(e,t,n,r,o){if(o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"Trying to write beyond buffer length"),N(t,3.4028234663852886e38,-3.4028234663852886e38)),!(n>=e.length))return i.write(e,t,n,r,23,4),n+4}function w(e,t,n,r,o){if(o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+7<e.length,"Trying to write beyond buffer length"),N(t,1.7976931348623157e308,-1.7976931348623157e308)),!(n>=e.length))return i.write(e,t,n,r,52,8),n+8}a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.byteLength=function(e,t){var n;switch(e=e.toString(),t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=k(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=T(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},a.concat=function(e,t){if(D(S(e),"Usage: Buffer.concat(list[, length])"),0===e.length)return new a(0);if(1===e.length)return e[0];var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new a(t),i=0;for(n=0;n<e.length;n++){var o=e[n];o.copy(r,i),i+=o.length}return r},a.compare=function(e,t){D(a.isBuffer(e)&&a.isBuffer(t),"Arguments must be Buffers");for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o&&e[i]===t[i];i++);return i!==o&&(n=e[i],r=t[i]),n<r?-1:r<n?1:0},a.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var i=r;r=t,t=n,n=i}t=Number(t)||0;var o,a=this.length-t;switch(n?(n=Number(n))>a&&(n=a):n=a,r=String(r||"utf8").toLowerCase()){case"hex":o=function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;D(o%2==0,"Invalid hex string"),r>o/2&&(r=o/2);for(var a=0;a<r;a++){var s=parseInt(t.substr(2*a,2),16);D(!isNaN(s),"Invalid hex string"),e[n+a]=s}return a}(this,e,t,n);break;case"utf8":case"utf-8":o=function(e,t,n,r){return j(k(t),e,n,r)}(this,e,t,n);break;case"ascii":o=s(this,e,t,n);break;case"binary":o=function(e,t,n,r){return s(e,t,n,r)}(this,e,t,n);break;case"base64":o=function(e,t,n,r){return j(T(t),e,n,r)}(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=function(e,t,n,r){return j(function(e){for(var t,n,r=[],i=0;i<e.length;i++)n=(t=e.charCodeAt(i))>>8,r.push(t%256),r.push(n);return r}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return o},a.prototype.toString=function(e,t,n){var i;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0===n?this.length:Number(n))===t)return"";switch(e){case"hex":i=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;o++)i+=E(e[o]);return i}(this,t,n);break;case"utf8":case"utf-8":i=function(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;o<n;o++)e[o]<=127?(r+=C(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+C(i)}(this,t,n);break;case"ascii":i=u(this,t,n);break;case"binary":i=function(e,t,n){return u(e,t,n)}(this,t,n);break;case"base64":i=function(e,t,n){return r.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}(this,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);break;default:throw new Error("Unknown encoding")}return i},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.equals=function(e){return D(a.isBuffer(e),"Argument must be a Buffer"),0===a.compare(this,e)},a.prototype.compare=function(e){return D(a.isBuffer(e),"Argument must be a Buffer"),a.compare(this,e)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==this.length){D(r>=n,"sourceEnd < sourceStart"),D(t>=0&&t<e.length,"targetStart out of bounds"),D(n>=0&&n<this.length,"sourceStart out of bounds"),D(r>=0&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(i<100||!o)for(var a=0;a<i;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t)}},a.prototype.slice=function(e,t){var n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),o)return a._augment(this.subarray(e,t));for(var r=t-e,i=new a(r,void 0,!0),s=0;s<r;s++)i[s]=this[s+e];return i},a.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},a.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},a.prototype.readUInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},a.prototype.readUInt16LE=function(e,t){return c(this,e,!0,t)},a.prototype.readUInt16BE=function(e,t){return c(this,e,!1,t)},a.prototype.readUInt32LE=function(e,t){return l(this,e,!0,t)},a.prototype.readUInt32BE=function(e,t){return l(this,e,!1,t)},a.prototype.readInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){return f(this,e,!0,t)},a.prototype.readInt16BE=function(e,t){return f(this,e,!1,t)},a.prototype.readInt32LE=function(e,t){return h(this,e,!0,t)},a.prototype.readInt32BE=function(e,t){return h(this,e,!1,t)},a.prototype.readFloatLE=function(e,t){return d(this,e,!0,t)},a.prototype.readFloatBE=function(e,t){return d(this,e,!1,t)},a.prototype.readDoubleLE=function(e,t){return p(this,e,!0,t)},a.prototype.readDoubleBE=function(e,t){return p(this,e,!1,t)},a.prototype.writeUInt8=function(e,t,n){if(n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"trying to write beyond buffer length"),A(e,255)),!(t>=this.length))return this[t]=e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return g(this,e,t,!0,n)},a.prototype.writeUInt16BE=function(e,t,n){return g(this,e,t,!1,n)},a.prototype.writeUInt32LE=function(e,t,n){return v(this,e,t,!0,n)},a.prototype.writeUInt32BE=function(e,t,n){return v(this,e,t,!1,n)},a.prototype.writeInt8=function(e,t,n){if(n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"Trying to write beyond buffer length"),L(e,127,-128)),!(t>=this.length))return this.writeUInt8(e>=0?e:255+e+1,t,n),t+1},a.prototype.writeInt16LE=function(e,t,n){return y(this,e,t,!0,n)},a.prototype.writeInt16BE=function(e,t,n){return y(this,e,t,!1,n)},a.prototype.writeInt32LE=function(e,t,n){return m(this,e,t,!0,n)},a.prototype.writeInt32BE=function(e,t,n){return m(this,e,t,!1,n)},a.prototype.writeFloatLE=function(e,t,n){return b(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return b(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return w(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return w(this,e,t,!1,n)},a.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),D(n>=t,"end < start"),n!==t&&0!==this.length){var r;if(D(t>=0&&t<this.length,"start out of bounds"),D(n>=0&&n<=this.length,"end out of bounds"),"number"==typeof e)for(r=t;r<n;r++)this[r]=e;else{var i=k(e.toString()),o=i.length;for(r=t;r<n;r++)this[r]=i[r%o]}return this}},a.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=E(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},a.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o)return new a(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var x=a.prototype;a._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=x.get,e.set=x.set,e.write=x.write,e.toString=x.toString,e.toLocaleString=x.toString,e.toJSON=x.toJSON,e.equals=x.equals,e.compare=x.compare,e.copy=x.copy,e.slice=x.slice,e.readUInt8=x.readUInt8,e.readUInt16LE=x.readUInt16LE,e.readUInt16BE=x.readUInt16BE,e.readUInt32LE=x.readUInt32LE,e.readUInt32BE=x.readUInt32BE,e.readInt8=x.readInt8,e.readInt16LE=x.readInt16LE,e.readInt16BE=x.readInt16BE,e.readInt32LE=x.readInt32LE,e.readInt32BE=x.readInt32BE,e.readFloatLE=x.readFloatLE,e.readFloatBE=x.readFloatBE,e.readDoubleLE=x.readDoubleLE,e.readDoubleBE=x.readDoubleBE,e.writeUInt8=x.writeUInt8,e.writeUInt16LE=x.writeUInt16LE,e.writeUInt16BE=x.writeUInt16BE,e.writeUInt32LE=x.writeUInt32LE,e.writeUInt32BE=x.writeUInt32BE,e.writeInt8=x.writeInt8,e.writeInt16LE=x.writeInt16LE,e.writeInt16BE=x.writeInt16BE,e.writeInt32LE=x.writeInt32LE,e.writeInt32BE=x.writeInt32BE,e.writeFloatLE=x.writeFloatLE,e.writeFloatBE=x.writeFloatBE,e.writeDoubleLE=x.writeDoubleLE,e.writeDoubleBE=x.writeDoubleBE,e.fill=x.fill,e.inspect=x.inspect,e.toArrayBuffer=x.toArrayBuffer,e};var _=/[^+\/0-9A-z]/g;function S(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function E(e){return e<16?"0"+e.toString(16):e.toString(16)}function k(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else{var i=n;r>=55296&&r<=57343&&n++;for(var o=encodeURIComponent(e.slice(i,n+1)).substr(1).split("%"),a=0;a<o.length;a++)t.push(parseInt(o[a],16))}}return t}function T(e){return r.toByteArray(e)}function j(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function C(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function A(e,t){D("number"==typeof e,"cannot write a non-number as a number"),D(e>=0,"specified a negative value for writing an unsigned value"),D(e<=t,"value is larger than maximum value for type"),D(Math.floor(e)===e,"value has a fractional component")}function L(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(e>=n,"value smaller than minimum allowed value"),D(Math.floor(e)===e,"value has a fractional component")}function N(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(e>=n,"value smaller than minimum allowed value")}function D(e,t){if(!e)throw new Error(t||"Failed assertion")}},{"base64-js":4,ieee754:5}],4:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),i="/".charCodeAt(0),o="0".charCodeAt(0),a="a".charCodeAt(0),s="A".charCodeAt(0);function u(e){var t=e.charCodeAt(0);return t===n?62:t===i?63:t<o?-1:t<o+10?t-o+26+26:t<s+26?t-s:t<a+26?t-a+26:void 0}e.toByteArray=function(e){var n,r,i,o,a,s;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;a="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,s=new t(3*e.length/4-a),i=a>0?e.length-4:e.length;var l=0;function f(e){s[l++]=e}for(n=0,r=0;n<i;n+=4,r+=3)f((16711680&(o=u(e.charAt(n))<<18|u(e.charAt(n+1))<<12|u(e.charAt(n+2))<<6|u(e.charAt(n+3))))>>16),f((65280&o)>>8),f(255&o);return 2===a?f(255&(o=u(e.charAt(n))<<2|u(e.charAt(n+1))>>4)):1===a&&(f((o=u(e.charAt(n))<<10|u(e.charAt(n+1))<<4|u(e.charAt(n+2))>>2)>>8&255),f(255&o)),s},e.fromByteArray=function(e){var t,n,i,o,a=e.length%3,s="";function u(e){return r.charAt(e)}for(t=0,i=e.length-a;t<i;t+=3)s+=u((o=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+u(o>>12&63)+u(o>>6&63)+u(63&o);switch(a){case 1:s+=u((n=e[e.length-1])>>2),s+=u(n<<4&63),s+="==";break;case 2:s+=u((n=(e[e.length-2]<<8)+e[e.length-1])>>10),s+=u(n>>4&63),s+=u(n<<2&63),s+="="}return s}}(void 0===n?this.base64js={}:n)},{}],5:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*g}},{}],6:[function(e,t,n){(function(n){var r=e("sha.js"),i=a(e("./md5")),o=a(e("ripemd160"));function a(e){return function(){var t=[];return{update:function(e,r){return n.isBuffer(e)||(e=new n(e,r)),t.push(e),this},digest:function(r){var i=n.concat(t),o=e(i);return t=null,r?o.toString(r):o}}}}t.exports=function(e){return"md5"===e?new i:"rmd160"===e?new o:r(e)}}).call(this,e("buffer").Buffer)},{"./md5":10,buffer:3,ripemd160:11,"sha.js":13}],7:[function(e,t,n){(function(n){var r=e("./create-hash"),i=64,o=new n(i);function a(e,t){if(!(this instanceof a))return new a(e,t);this._opad=u,this._alg=e,(t=this._key=n.isBuffer(t)?t:new n(t)).length>i?t=r(e).update(t).digest():t.length<i&&(t=n.concat([t,o],i));for(var s=this._ipad=new n(i),u=this._opad=new n(i),c=0;c<i;c++)s[c]=54^t[c],u[c]=92^t[c];this._hash=r(e).update(s)}o.fill(0),t.exports=a,a.prototype.update=function(e,t){return this._hash.update(e,t),this},a.prototype.digest=function(e){var t=this._hash.digest();return r(this._alg).update(this._opad).update(t).digest(e)}}).call(this,e("buffer").Buffer)},{"./create-hash":6,buffer:3}],8:[function(e,t,n){(function(e){var n=new e(4);n.fill(0),t.exports={hash:function(t,r,i,o){return e.isBuffer(t)||(t=new e(t)),function(t,n,r){for(var o=new e(i),a=r?o.writeInt32BE:o.writeInt32LE,s=0;s<t.length;s++)a.call(o,t[s],4*s,!0);return o}(r(function(t,r){t.length%4!=0&&(t=e.concat([t,n],t.length+(4-t.length%4)));for(var i=[],o=r?t.readInt32BE:t.readInt32LE,a=0;a<t.length;a+=4)i.push(o.call(t,a));return i}(t,o),8*t.length),0,o)}}}).call(this,e("buffer").Buffer)},{buffer:3}],9:[function(e,t,n){(function(t){var r=e("./rng");n.createHash=e("./create-hash"),n.createHmac=e("./create-hmac"),n.randomBytes=function(e,n){if(!n||!n.call)return new t(r(e));try{n.call(this,void 0,new t(r(e)))}catch(i){n(i)}},n.getHashes=function(){return["sha1","sha256","md5","rmd160"]};var i=e("./pbkdf2")(n.createHmac);n.pbkdf2=i.pbkdf2,n.pbkdf2Sync=i.pbkdf2Sync,function(e,t){for(var n in e)t(e[n])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(e){n[e]=function(){!function(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}("sorry,",e,"is not implemented yet")}})}).call(this,e("buffer").Buffer)},{"./create-hash":6,"./create-hmac":7,"./pbkdf2":17,"./rng":18,buffer:3}],10:[function(e,t,n){var r=e("./helpers");function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,f=0;f<e.length;f+=16){var h=n,d=r,p=i,g=o;n=a(n,r,i,o,e[f+0],7,-680876936),o=a(o,n,r,i,e[f+1],12,-389564586),i=a(i,o,n,r,e[f+2],17,606105819),r=a(r,i,o,n,e[f+3],22,-1044525330),n=a(n,r,i,o,e[f+4],7,-176418897),o=a(o,n,r,i,e[f+5],12,1200080426),i=a(i,o,n,r,e[f+6],17,-1473231341),r=a(r,i,o,n,e[f+7],22,-45705983),n=a(n,r,i,o,e[f+8],7,1770035416),o=a(o,n,r,i,e[f+9],12,-1958414417),i=a(i,o,n,r,e[f+10],17,-42063),r=a(r,i,o,n,e[f+11],22,-1990404162),n=a(n,r,i,o,e[f+12],7,1804603682),o=a(o,n,r,i,e[f+13],12,-40341101),i=a(i,o,n,r,e[f+14],17,-1502002290),n=s(n,r=a(r,i,o,n,e[f+15],22,1236535329),i,o,e[f+1],5,-165796510),o=s(o,n,r,i,e[f+6],9,-1069501632),i=s(i,o,n,r,e[f+11],14,643717713),r=s(r,i,o,n,e[f+0],20,-373897302),n=s(n,r,i,o,e[f+5],5,-701558691),o=s(o,n,r,i,e[f+10],9,38016083),i=s(i,o,n,r,e[f+15],14,-660478335),r=s(r,i,o,n,e[f+4],20,-405537848),n=s(n,r,i,o,e[f+9],5,568446438),o=s(o,n,r,i,e[f+14],9,-1019803690),i=s(i,o,n,r,e[f+3],14,-187363961),r=s(r,i,o,n,e[f+8],20,1163531501),n=s(n,r,i,o,e[f+13],5,-1444681467),o=s(o,n,r,i,e[f+2],9,-51403784),i=s(i,o,n,r,e[f+7],14,1735328473),n=u(n,r=s(r,i,o,n,e[f+12],20,-1926607734),i,o,e[f+5],4,-378558),o=u(o,n,r,i,e[f+8],11,-2022574463),i=u(i,o,n,r,e[f+11],16,1839030562),r=u(r,i,o,n,e[f+14],23,-35309556),n=u(n,r,i,o,e[f+1],4,-1530992060),o=u(o,n,r,i,e[f+4],11,1272893353),i=u(i,o,n,r,e[f+7],16,-155497632),r=u(r,i,o,n,e[f+10],23,-1094730640),n=u(n,r,i,o,e[f+13],4,681279174),o=u(o,n,r,i,e[f+0],11,-358537222),i=u(i,o,n,r,e[f+3],16,-722521979),r=u(r,i,o,n,e[f+6],23,76029189),n=u(n,r,i,o,e[f+9],4,-640364487),o=u(o,n,r,i,e[f+12],11,-421815835),i=u(i,o,n,r,e[f+15],16,530742520),n=c(n,r=u(r,i,o,n,e[f+2],23,-995338651),i,o,e[f+0],6,-198630844),o=c(o,n,r,i,e[f+7],10,1126891415),i=c(i,o,n,r,e[f+14],15,-1416354905),r=c(r,i,o,n,e[f+5],21,-57434055),n=c(n,r,i,o,e[f+12],6,1700485571),o=c(o,n,r,i,e[f+3],10,-1894986606),i=c(i,o,n,r,e[f+10],15,-1051523),r=c(r,i,o,n,e[f+1],21,-2054922799),n=c(n,r,i,o,e[f+8],6,1873313359),o=c(o,n,r,i,e[f+15],10,-30611744),i=c(i,o,n,r,e[f+6],15,-1560198380),r=c(r,i,o,n,e[f+13],21,1309151649),n=c(n,r,i,o,e[f+4],6,-145523070),o=c(o,n,r,i,e[f+11],10,-1120210379),i=c(i,o,n,r,e[f+2],15,718787259),r=c(r,i,o,n,e[f+9],21,-343485551),n=l(n,h),r=l(r,d),i=l(i,p),o=l(o,g)}return Array(n,r,i,o)}function o(e,t,n,r,i,o){return l((a=l(l(t,e),l(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function a(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function c(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}function l(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return r.hash(e,i,16)}},{"./helpers":8}],11:[function(e,t,n){(function(e){t.exports=function(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var r=u(t),i=8*t.length,o=8*t.length;r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var a=0;a<r.length;a+=16)l(n,r,a);for(a=0;a<5;a++){var s=n[a];n[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var f=c(n);return new e(f)};var n=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],r=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],i=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],o=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],a=[0,1518500249,1859775393,2400959708,2840853838],s=[1352829926,1548603684,1836072691,2053994217,0],u=function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},c=function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},l=function(e,t,u){for(var c=0;c<16;c++){var l=u+c,y=t[l];t[l]=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8)}var m,b,w,x,_,S,E,k,T,j,C;for(S=m=e[0],E=b=e[1],k=w=e[2],T=x=e[3],j=_=e[4],c=0;c<80;c+=1)C=m+t[u+n[c]]|0,C+=c<16?f(b,w,x)+a[0]:c<32?h(b,w,x)+a[1]:c<48?d(b,w,x)+a[2]:c<64?p(b,w,x)+a[3]:g(b,w,x)+a[4],C=(C=v(C|=0,i[c]))+_|0,m=_,_=x,x=v(w,10),w=b,b=C,C=S+t[u+r[c]]|0,C+=c<16?g(E,k,T)+s[0]:c<32?p(E,k,T)+s[1]:c<48?d(E,k,T)+s[2]:c<64?h(E,k,T)+s[3]:f(E,k,T)+s[4],C=(C=v(C|=0,o[c]))+j|0,S=j,j=T,T=v(k,10),k=E,E=C;C=e[1]+w+T|0,e[1]=e[2]+x+j|0,e[2]=e[3]+_+S|0,e[3]=e[4]+m+E|0,e[4]=e[0]+b+k|0,e[0]=C};function f(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function d(e,t,n){return(e|~t)^n}function p(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}}).call(this,e("buffer").Buffer)},{buffer:3}],12:[function(e,t,n){var r=e("./util"),i=r.write,o=r.zeroFill;t.exports=function(e){function t(t,n){this._block=new e(t),this._finalSize=n,this._blockSize=t,this._len=0,this._s=0}return t.prototype.init=function(){this._s=0,this._len=0},t.prototype.update=function(t,n){var r,o=this._blockSize;n||"string"!=typeof t||(n="utf8"),n?("utf-8"===n&&(n="utf8"),"base64"!==n&&"utf8"!==n||(t=new e(t,n),n=null),r=function(e,t){return null==t?e.byteLength||e.length:"ascii"==t||"binary"==t?e.length:"hex"==t?e.length/2:"base64"==t?e.length/3:void 0}(t,n)):r=t.byteLength||t.length;for(var a=this._len+=r,s=this._s=this._s||0,u=0,c=this._block;s<a;){var l=Math.min(r,u+o-s%o);i(c,t,n,s%o,u,l);var f=l-u;u+=f,(s+=f)%o||this._update(c)}return this._s=s,this},t.prototype.digest=function(e){var t=this._blockSize,n=this._finalSize,i=8*this._len,a=this._block,s=i%(8*t);a[this._len%t]=128,o(this._block,this._len%t+1),s>=8*n&&(this._update(this._block),r.zeroFill(this._block,0)),a.writeInt32BE(i,n+4);var u=this._update(this._block)||this._hash();return null==e?u:u.toString(e)},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t}},{"./util":16}],13:[function(e,t,n){n=t.exports=function(e){var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};var r=e("buffer").Buffer,i=e("./hash")(r);n.sha=n.sha1=e("./sha1")(r,i),n.sha256=e("./sha256")(r,i)},{"./hash":12,"./sha1":14,"./sha256":15,buffer:3}],14:[function(e,t,n){t.exports=function(t,n){(0,e("util").inherits)(o,n);var r=new Int32Array(80),i=[];function o(){return i.length?i.pop().init():this instanceof o?(this._w=r,n.call(this,64,56),this._h=null,void this.init()):new o}function a(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function s(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function u(e,t){return e+t|0}function c(e,t){return e<<t|e>>>32-t}return o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,n.prototype.init.call(this),this},o.prototype._POOL=i,new t(1),DataView,o.prototype._update=function(e){var t,n,r,i,o,l,f,h,d,p,g=this._block;t=l=this._a,n=f=this._b,r=h=this._c,i=d=this._d,o=p=this._e;for(var v=this._w,y=0;y<80;y++){var m=v[y]=y<16?g.readInt32BE(4*y):c(v[y-3]^v[y-8]^v[y-14]^v[y-16],1),b=u(u(c(t,5),a(y,n,r,i)),u(u(o,m),s(y)));o=i,i=r,r=c(n,30),n=t,t=b}this._a=u(t,l),this._b=u(n,f),this._c=u(r,h),this._d=u(i,d),this._e=u(o,p)},o.prototype._hash=function(){i.length<100&&i.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},o}},{util:37}],15:[function(e,t,n){var r=e("util").inherits;e("./util"),t.exports=function(e,t){var n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];r(a,t);var i=new Array(64),o=[];function a(){this.init(),this._w=i,t.call(this,64,56)}function s(e,t){return e>>>t|e<<32-t}function u(e,t){return e>>>t}function c(e,t,n){return e&t^~e&n}function l(e,t,n){return e&t^e&n^t&n}function f(e){return s(e,2)^s(e,13)^s(e,22)}function h(e){return s(e,6)^s(e,11)^s(e,25)}function d(e){return s(e,7)^s(e,18)^u(e,3)}return a.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},a.prototype._update=function(e){var t,r,i,o,a,p,g,v,y,m,b,w=this._block,x=this._w;t=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,p=0|this._f,g=0|this._g,v=0|this._h;for(var _=0;_<64;_++){var S=x[_]=_<16?w.readInt32BE(4*_):(s(b=x[_-2],17)^s(b,19)^u(b,10))+x[_-7]+d(x[_-15])+x[_-16];y=v+h(a)+c(a,p,g)+n[_]+S,m=f(t)+l(t,r,i),v=g,g=p,p=a,a=o+y,o=i,i=r,r=t,t=y+m}this._a=t+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=v+this._h|0},a.prototype._hash=function(){o.length<10&&o.push(this);var t=new e(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},a}},{"./util":16,util:37}],16:[function(e,t,n){n.write=function(e,t,n,r,i,o,a){var s=o-i;if("ascii"===n||"binary"===n)for(var u=0;u<s;u++)e[r+u]=t.charCodeAt(u+i);else if(null==n)for(u=0;u<s;u++)e[r+u]=t[u+i];else{if("hex"!==n)throw"base64"===n?new Error("base64 encoding not yet supported"):new Error(n+" encoding not yet supported");for(u=0;u<s;u++){var c=i+u;e[r+u]=parseInt(t[2*c]+t[2*c+1],16)}}},n.zeroFill=function(e,t){for(var n=t;n<e.length;n++)e[n]=0},n.toString=toString},{}],17:[function(e,t,n){(function(e){var n=new e(64);n.fill(0),t.exports=function(t,r){return(r=r||{}).pbkdf2=function(e,t,n,i,o){if("function"!=typeof o)throw new Error("No callback provided to pbkdf2");setTimeout(function(){o(null,r.pbkdf2Sync(e,t,n,i))})},r.pbkdf2Sync=function(r,i,o,a){if("number"!=typeof o)throw new TypeError("Iterations not a number");if(o<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0)throw new TypeError("Bad key length");var s;(r=e.isBuffer(r)?r:new e(r)).length>64?r=createHash(alg).update(r).digest():r.length<64&&(r=e.concat([r,n],64));var u,c,l=0,f=1,h=new e(4),d=new e(a);for(d.fill(0);a;){u=a>20?20:a,h[0]=f>>24&255,h[1]=f>>16&255,h[2]=f>>8&255,h[3]=255&f,(s=t("sha1",r)).update(i),s.update(h),(c=s.digest()).copy(d,l,0,u);for(var p=1;p<o;p++){(s=t("sha1",r)).update(c),c=s.digest();for(var g=0;g<u;g++)d[g]^=c[g]}a-=u,f++,l+=u}return d},r}}).call(this,e("buffer").Buffer)},{buffer:3}],18:[function(e,t,n){(function(e){t.exports=function(t){var n=new e(t);return crypto.getRandomValues(n),n}}).call(this,e("buffer").Buffer)},{buffer:3}],19:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length))throw(t=arguments[1])instanceof Error?t:TypeError('Uncaught, unspecified "error" event.');if(a(n=this._events[e]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,s=new Array(r-1),u=1;u<r;u++)s[u-1]=arguments[u];n.apply(this,s)}else if(o(n)){for(r=arguments.length,s=new Array(r-1),u=1;u<r;u++)s[u-1]=arguments[u];for(r=(c=n.slice()).length,u=0;u<r;u++)c[u].apply(this,s)}return!0},r.prototype.on=r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[e]))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.listenerCount=function(e,t){return e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],20:[function(e,t,n){t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],21:[function(e,t,n){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],22:[function(e,t,n){var r=t.exports={};function i(){}r.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),n.length>0&&n.shift()())},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=i,r.addListener=i,r.once=i,r.off=i,r.removeListener=i,r.removeAllListeners=i,r.emit=i,r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")}},{}],23:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":24}],24:[function(e,t,n){(function(n){t.exports=s;var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},i=e("core-util-is");i.inherits=e("inherits");var o=e("./_stream_readable"),a=e("./_stream_writable");function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||n.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var n=0,r=e.length;n<r;n++)s.prototype[i=e[n]]||(s.prototype[i]=a.prototype[i]);var i}(r(a.prototype))}).call(this,e("_process"))},{"./_stream_readable":26,"./_stream_writable":28,_process:22,"core-util-is":29,inherits:20}],25:[function(e,t,n){t.exports=o;var r=e("./_stream_transform"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":27,"core-util-is":29,inherits:20}],26:[function(e,t,n){(function(n){t.exports=l;var r=e("isarray"),i=e("buffer").Buffer;l.ReadableState=c;var o=e("events").EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=e("stream"),u=e("core-util-is");function c(t,n){var r=(t=t||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=e("string_decoder/").StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function l(e){if(!(this instanceof l))return new l(e);this._readableState=new c(e,this),this.readable=!0,s.call(this)}function f(e,t,r,o,a){var s=function(e,t){var n=null;return i.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,r);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?p(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!a){var u=new Error("stream.push() after EOF");e.emit("error",u)}else t.endEmitted&&a?(u=new Error("stream.unshift() after end event"),e.emit("error",u)):(!t.decoder||a||o||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&p(e),function(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(function(){!function(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t));else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u.inherits=e("inherits"),u.inherits(l,s),l.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding)!==n.encoding&&(e=new i(e,t),t=""),f(this,n,e,t,!1)},l.prototype.unshift=function(e){return f(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(t){a||(a=e("string_decoder/").StringDecoder),this._readableState.decoder=new a(t),this._readableState.encoding=t};var h=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?n.nextTick(function(){g(e)}):g(e))}function g(e){e.emit("readable")}function v(e){var t,n=e._readableState;function r(e,r,i){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):x(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(o.listenerCount(e,"data")>0&&m(e));n.ranOut=!0}function y(){this._readableState.ranOut&&(this._readableState.ranOut=!1,v(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",function(){var t;for(i=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?n.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function b(e,t){var n,r=t.buffer,o=t.length,a=!!t.decoder;if(0===r.length)return null;if(0===o)n=null;else if(t.objectMode)n=r.shift();else if(!e||e>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else if(e<r[0].length)n=(l=r[0]).slice(0,e),r[0]=l.slice(e);else if(e===r[0].length)n=r.shift();else{n=a?"":new i(e);for(var s=0,u=0,c=r.length;u<c&&s<e;u++){var l=r[0],f=Math.min(e-s,l.length);a?n+=l.slice(0,f):l.copy(n,s,0,f),f<l.length?r[0]=l.slice(f):r.shift(),s+=f}}return n}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,n.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function x(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}l.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p(this),null;if(0===(e=d(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=b(e,t),t.length-=n.length),0===t.length&&w(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),null===(n=e>0?b(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),n},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1;var s=t&&!1===t.end||e===n.stdout||e===n.stderr?f:c;function u(e){e===i&&f()}function c(){e.end()}a.endEmitted?n.nextTick(s):i.once("end",s),e.on("unpipe",u);var l=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&v(e)}}(i);function f(){e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",u),i.removeListener("end",c),i.removeListener("end",f),e._writableState&&!e._writableState.needDrain||l()}function h(t){g(),e.removeListener("error",h),0===o.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",p),g()}function p(){e.removeListener("close",d),g()}function g(){i.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?r(e._events.error)?e._events.error.unshift(h):e._events.error=[h,e._events.error]:e.on("error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",i),a.flowing||(this.on("readable",y),a.flowing=!0,n.nextTick(function(){v(i)})),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",y),t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",y),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},l.prototype.addListener=l.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&p(this):this.read(0))}return n},l.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},l.prototype.pause=function(){m(this,!0),this.emit("pause")},l.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return x(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},l._fromList=b}).call(this,e("_process"))},{_process:22,buffer:3,"core-util-is":29,events:19,inherits:20,isarray:21,stream:35,"string_decoder/":30}],27:[function(e,t,n){t.exports=a;var r=e("./_stream_duplex"),i=e("core-util-is");function o(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var n=e._transformState;if(e._writableState.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":24,"core-util-is":29,inherits:20}],28:[function(e,t,n){(function(n){t.exports=u;var r=e("buffer").Buffer;u.WritableState=s;var i=e("core-util-is");i.inherits=e("inherits");var o=e("stream");function a(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function s(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){r?n.nextTick(function(){o(i)}):o(i),e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,o);else{var a=f(0,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk;if(c(e,t,t.objectMode?1:i.length,i,r.encoding,r.callback),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,r),i?n.nextTick(function(){l(e,r,a,o)}):l(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function u(t){var n=e("./_stream_duplex");if(!(this instanceof u||this instanceof n))return new u(t);this._writableState=new s(t,this),this.writable=!0,o.call(this)}function c(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function l(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&h(e,t)}function f(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){var n=f(0,t);return n&&(t.finished=!0,e.emit("finish")),n}i.inherits(u,o),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,i){var o=this._writableState,s=!1;return"function"==typeof t&&(i=t,t=null),r.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof i&&(i=function(){}),o.ended?function(e,t,r){var i=new Error("write after end");e.emit("error",i),n.nextTick(function(){r(i)})}(this,0,i):function(e,t,i,o){var a=!0;if(!r.isBuffer(i)&&"string"!=typeof i&&null!=i&&!t.objectMode){var s=new TypeError("Invalid non-string/buffer chunk");e.emit("error",s),n.nextTick(function(){o(s)}),a=!1}return a}(this,o,e,i)&&(s=function(e,t,n,i,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new r(t,n)),t}(t,n,i),r.isBuffer(n)&&(i="buffer");var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;return u||(t.needDrain=!0),t.writing?t.buffer.push(new a(n,i,o)):c(e,t,s,n,i,o),u}(this,o,e,t,i)),s},u.prototype._write=function(e,t,n){n(new Error("not implemented"))},u.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,r){t.ending=!0,h(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0}(this,i,r)}}).call(this,e("_process"))},{"./_stream_duplex":24,_process:22,buffer:3,"core-util-is":29,inherits:20,stream:35}],29:[function(e,t,n){(function(e){function t(e){return"object"==typeof e&&null!==e}function r(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return t(e)&&"[object RegExp]"===r(e)},n.isObject=t,n.isDate=function(e){return t(e)&&"[object Date]"===r(e)},n.isError=function(e){return t(e)&&("[object Error]"===r(e)||e instanceof Error)},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=function(t){return e.isBuffer(t)}}).call(this,e("buffer").Buffer)},{buffer:3}],30:[function(e,t,n){var r=e("buffer").Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),(r=(t+=e.toString(this.encoding,0,i)).charCodeAt(i=t.length-1))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.encoding;t+=this.charBuffer.slice(0,this.charReceived).toString(n)}return t}},{buffer:3}],31:[function(e,t,n){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":25}],32:[function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":24,"./lib/_stream_passthrough.js":25,"./lib/_stream_readable.js":26,"./lib/_stream_transform.js":27,"./lib/_stream_writable.js":28}],33:[function(e,t,n){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":27}],34:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":28}],35:[function(e,t,n){t.exports=i;var r=e("events").EventEmitter;function i(){r.call(this)}e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",c),e.on("error",c),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},{events:19,inherits:20,"readable-stream/duplex.js":23,"readable-stream/passthrough.js":31,"readable-stream/readable.js":32,"readable-stream/transform.js":33,"readable-stream/writable.js":34}],36:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],37:[function(e,t,n){(function(t,r){var i=/%[sdj%]/g;n.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),u=r[n];n<o;u=r[++n])g(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},n.deprecate=function(e,i){if(m(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,a={};function s(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(t)?r.showHidden=t:t&&n._extend(r,t),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,t,r){if(e.customInspect&&t&&S(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return y(i)||(i=l(e,i,r)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var a,s=Object.keys(t),u=(a={},s.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),_(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(t);if(0===s.length){if(S(t))return e.stylize("[Function"+(t.name?": "+t.name:"")+"]","special");if(b(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(_(t))return f(t)}var c,w="",E=!1,k=["{","}"];return d(t)&&(E=!0,k=["[","]"]),S(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),b(t)&&(w=" "+RegExp.prototype.toString.call(t)),x(t)&&(w=" "+Date.prototype.toUTCString.call(t)),_(t)&&(w=" "+f(t)),0!==s.length||E&&0!=t.length?r<0?b(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=E?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)j(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}(e,t,r,u,s):s.map(function(n){return h(e,t,r,u,n,E)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,k)):k[0]+w+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=e.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),j(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function m(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===E(e)}function w(e){return"object"==typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===E(e)}function _(e){return w(e)&&("[object Error]"===E(e)||e instanceof Error)}function S(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(m(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var r=t.pid;a[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=d,n.isBoolean=p,n.isNull=g,n.isNullOrUndefined=function(e){return null==e},n.isNumber=v,n.isString=y,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=m,n.isRegExp=b,n.isObject=w,n.isDate=x,n.isError=_,n.isFunction=S,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(t=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":36,_process:22,inherits:20}],38:[function(e,t,n){(function(e){!function(){"use strict";t.exports=function(t){return(t instanceof e?t:new e(t.toString(),"binary")).toString("base64")}}()}).call(this,e("buffer").Buffer)},{buffer:3}],39:[function(e,t,n){var r,i;r="undefined"!=typeof window?window:this,i=function(e,t){var n=[],r=n.slice,i=n.concat,o=n.push,a=n.indexOf,s={},u=s.toString,c=s.hasOwnProperty,l={},f=e.document,h=function(e,t){return new h.fn.init(e,t)},d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,g=/-([\da-z])/gi,v=function(e,t){return t.toUpperCase()};function y(e){var t=e.length,n=h.type(e);return"function"!==n&&!h.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}h.fn=h.prototype={jquery:"2.1.1",constructor:h,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return h.each(this,e,t)},map:function(e){return this.pushStack(h.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:o,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||h.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(h.isPlainObject(r)||(i=h.isArray(r)))?(i?(i=!1,o=n&&h.isArray(n)?n:[]):o=n&&h.isPlainObject(n)?n:{},a[t]=h.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},h.extend({expando:"jQuery"+("2.1.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===h.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!h.isArray(e)&&e-parseFloat(e)>=0},isPlainObject:function(e){return!("object"!==h.type(e)||e.nodeType||h.isWindow(e)||e.constructor&&!c.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[u.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=h.trim(e))&&(1===e.indexOf("use strict")?((t=f.createElement("script")).text=e,f.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(p,"ms-").replace(g,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=y(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(d,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(y(Object(e))?h.merge(n,"string"==typeof e?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,o=0,a=e.length,s=[];if(y(e))for(;o<a;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return i.apply([],s)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),h.isFunction(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||h.guid++,o},now:Date.now,support:l}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){s["[object "+t+"]"]=t.toLowerCase()});var m=function(e){var t,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,y,m,b,w="sizzle"+-new Date,x=e.document,_=0,S=0,E=oe(),k=oe(),T=oe(),j=function(e,t){return e===t&&(f=!0),0},C="undefined",A=1<<31,L={}.hasOwnProperty,N=[],D=N.pop,B=N.push,I=N.push,O=N.slice,R=N.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",U="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",q=U.replace("w","w#"),$="\\["+H+"*("+U+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+H+"*\\]",F=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+$+")*)|.*)\\)|)",P=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),W=new RegExp("^"+H+"*,"+H+"*"),z=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),J=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),X=new RegExp(F),G=new RegExp("^"+q+"$"),V={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U.replace("w","w*")+")"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),re=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{I.apply(N=O.call(x.childNodes),x.childNodes)}catch(xe){I={apply:N.length?function(e,t){B.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,i){var o,s,c,l,f,p,y,m,_,S;if((t?t.ownerDocument||t:x)!==d&&h(t),r=r||[],!e||"string"!=typeof e)return r;if(1!==(l=(t=t||d).nodeType)&&9!==l)return[];if(g&&!i){if(o=Z.exec(e))if(c=o[1]){if(9===l){if(!(s=t.getElementById(c))||!s.parentNode)return r;if(s.id===c)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&b(t,s)&&s.id===c)return r.push(s),r}else{if(o[2])return I.apply(r,t.getElementsByTagName(e)),r;if((c=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(c)),r}if(n.qsa&&(!v||!v.test(e))){if(m=y=w,_=t,S=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){for(p=a(e),(y=t.getAttribute("id"))?m=y.replace(te,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",f=p.length;f--;)p[f]=m+ge(p[f]);_=ee.test(e)&&de(t.parentNode)||t,S=p.join(",")}if(S)try{return I.apply(r,_.querySelectorAll(S)),r}catch(E){}finally{y||t.removeAttribute("id")}}}return u(e.replace(P,"$1"),t,r,i)}function oe(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ae(e){return e[w]=!0,e}function se(e){var t=d.createElement("div");try{return!!e(t)}catch(xe){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=e.length;i--;)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function le(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return ae(function(t){return t=+t,ae(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function de(e){return e&&typeof e.getElementsByTagName!==C&&e}for(t in n=ie.support={},o=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=ie.setDocument=function(e){var t,i=e?e.ownerDocument||e:x,a=i.defaultView;return i!==d&&9===i.nodeType&&i.documentElement?(d=i,p=i.documentElement,g=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",function(){h()},!1):a.attachEvent&&a.attachEvent("onunload",function(){h()})),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(i.getElementsByClassName)&&se(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),n.getById=se(function(e){return p.appendChild(e).id=w,!i.getElementsByName||!i.getElementsByName(w).length}),n.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==C&&g){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){var n=typeof e.getAttributeNode!==C&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==C)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==C&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(i.querySelectorAll))&&(se(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&v.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+H+"*(?:value|"+M+")"),e.querySelectorAll(":checked").length||v.push(":checked")}),se(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+H+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=K.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&se(function(e){n.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),y.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(p.compareDocumentPosition),b=t||K.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===x&&b(x,e)?-1:t===i||t.ownerDocument===x&&b(x,t)?1:l?R.call(l,e)-R.call(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,s=[e],u=[t];if(!o||!a)return e===i?-1:t===i?1:o?-1:a?1:l?R.call(l,e)-R.call(l,t):0;if(o===a)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?ce(s[r],u[r]):s[r]===x?-1:u[r]===x?1:0},i):d},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&h(e),t=t.replace(J,"='$1']"),n.matchesSelector&&g&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(xe){}return ie(t,d,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==d&&h(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==d&&h(e);var i=r.attrHandle[t.toLowerCase()],o=i&&L.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(j),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return l=null,e},i=ie.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:ae,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,re),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,re),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,re).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==C&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ie.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,h,d,p,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s;if(v){if(o){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&m){for(h=(c=(l=v[w]||(v[w]={}))[e]||[])[0]===_&&c[2],f=(d=c[0]===_&&c[1])&&v.childNodes[d];f=++d&&f&&f[g]||(h=d=0)||p.pop();)if(1===f.nodeType&&++h&&f===t){l[e]=[_,d,h];break}}else if(m&&(c=(t[w]||(t[w]={}))[e])&&c[0]===_)h=c[1];else for(;(f=++d&&f&&f[g]||(h=d=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++h||(m&&((f[w]||(f[w]={}))[e]=[_,h]),f!==t)););return(h-=i)===r||h%r==0&&h/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=R.call(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ae(function(e){var t=[],n=[],r=s(e.replace(P,"$1"));return r[w]?ae(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ae(function(e){return function(t){return ie(e,t).length>0}}),contains:ae(function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ae(function(e){return G.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(ne,re).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=le(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function pe(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=S++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,c=[_,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(u=t[w]||(t[w]={}))[r])&&s[0]===_&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function ye(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function me(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function be(e,t,n,r,i,o){return r&&!r[w]&&(r=be(r)),i&&!i[w]&&(i=be(i,o)),ae(function(o,a,s,u){var c,l,f,h=[],d=[],p=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:me(g,h,e,s,u),y=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(c=me(y,d),r(c,[],s,u),l=c.length;l--;)(f=c[l])&&(y[d[l]]=!(v[d[l]]=f));if(o){if(i||e){if(i){for(c=[],l=y.length;l--;)(f=y[l])&&c.push(v[l]=f);i(null,y=[],c,u)}for(l=y.length;l--;)(f=y[l])&&(c=i?R.call(o,f):h[l])>-1&&(o[c]=!(a[c]=f))}}else y=me(y===a?y.splice(p,y.length):y),i?i(null,a,y,u):I.apply(a,y)})}function we(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,l=ve(function(e){return e===t},s,!0),f=ve(function(e){return R.call(t,e)>-1},s,!0),h=[function(e,n,r){return!a&&(r||n!==c)||((t=n).nodeType?l(e,n,r):f(e,n,r))}];u<o;u++)if(n=r.relative[e[u].type])h=[ve(ye(h),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[w]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return be(u>1&&ye(h),u>1&&ge(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(P,"$1"),n,u<i&&we(e.slice(u,i)),i<o&&we(e=e.slice(i)),i<o&&ge(e))}h.push(n)}return ye(h)}return pe.prototype=r.filters=r.pseudos,r.setFilters=new pe,a=ie.tokenize=function(e,t){var n,i,o,a,s,u,c,l=k[e+" "];if(l)return t?0:l.slice(0);for(s=e,u=[],c=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(P," ")}),s=s.slice(n.length)),r.filter)!(i=V[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):k(e,u).slice(0)},s=ie.compile=function(e,t){var n,i=[],o=[],s=T[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=we(t[n]))[w]?i.push(s):o.push(s);(s=T(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,l){var f,h,p,g=0,v="0",y=o&&[],m=[],b=c,w=o||i&&r.find.TAG("*",l),x=_+=null==b?1:Math.random()||.1,S=w.length;for(l&&(c=a!==d&&a);v!==S&&null!=(f=w[v]);v++){if(i&&f){for(h=0;p=e[h++];)if(p(f,a,s)){u.push(f);break}l&&(_=x)}n&&((f=!p&&f)&&g--,o&&y.push(f))}if(g+=v,n&&v!==g){for(h=0;p=t[h++];)p(y,m,a,s);if(o){if(g>0)for(;v--;)y[v]||m[v]||(m[v]=D.call(u));m=me(m)}I.apply(u,m),l&&!o&&m.length>0&&g+t.length>1&&ie.uniqueSort(u)}return l&&(_=x,c=b),y};return n?ae(o):o}(o,i))).selector=e}return s},u=ie.select=function(e,t,i,o){var u,c,l,f,h,d="function"==typeof e&&e,p=!o&&a(e=d.selector||e);if(i=i||[],1===p.length){if((c=p[0]=p[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&n.getById&&9===t.nodeType&&g&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(ne,re),t)||[])[0]))return i;d&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(u=V.needsContext.test(e)?0:c.length;u--&&!r.relative[f=(l=c[u]).type];)if((h=r.find[f])&&(o=h(l.matches[0].replace(ne,re),ee.test(c[0].type)&&de(t.parentNode)||t))){if(c.splice(u,1),!(e=o.length&&ge(c)))return I.apply(i,o),i;break}}return(d||s(e,p))(o,t,!g,i,ee.test(e)&&de(t.parentNode)||t),i},n.sortStable=w.split("").sort(j).join("")===w,n.detectDuplicates=!!f,h(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(d.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(M,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(e);h.find=m,h.expr=m.selectors,h.expr[":"]=h.expr.pseudos,h.unique=m.uniqueSort,h.text=m.getText,h.isXMLDoc=m.isXML,h.contains=m.contains;var b=h.expr.match.needsContext,w=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function _(e,t,n){if(h.isFunction(t))return h.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return h.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(x.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,function(e){return a.call(t,e)>=0!==n})}h.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?h.find.matchesSelector(r,e)?[r]:[]:h.find.matches(e,h.grep(t,function(e){return 1===e.nodeType}))},h.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(h(e).filter(function(){for(t=0;t<n;t++)if(h.contains(i[t],this))return!0}));for(t=0;t<n;t++)h.find(e,i[t],r);return(r=this.pushStack(n>1?h.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"==typeof e&&b.test(e)?h(e):e||[],!1).length}});var S,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(h.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:E.exec(e))||!n[1]&&t)return!t||t.jquery?(t||S).find(e):this.constructor(t).find(e);if(n[1]){if(h.merge(this,h.parseHTML(n[1],(t=t instanceof h?t[0]:t)&&t.nodeType?t.ownerDocument||t:f,!0)),w.test(n[1])&&h.isPlainObject(t))for(n in t)h.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=f.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=f,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?void 0!==S.ready?S.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))}).prototype=h.fn,S=h(f);var k=/^(?:parents|prev(?:Until|All))/,T={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}h.extend({dir:function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&h(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),h.fn.extend({has:function(e){var t=h(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(h.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=b.test(e)||"string"!=typeof e?h(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?h.unique(o):o)},index:function(e){return e?"string"==typeof e?a.call(h(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.unique(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h.dir(e,"parentNode")},parentsUntil:function(e,t,n){return h.dir(e,"parentNode",n)},next:function(e){return j(e,"nextSibling")},prev:function(e){return j(e,"previousSibling")},nextAll:function(e){return h.dir(e,"nextSibling")},prevAll:function(e){return h.dir(e,"previousSibling")},nextUntil:function(e,t,n){return h.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return h.dir(e,"previousSibling",n)},siblings:function(e){return h.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return h.sibling(e.firstChild)},contents:function(e){return e.contentDocument||h.merge([],e.childNodes)}},function(e,t){h.fn[e]=function(n,r){var i=h.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=h.filter(r,i)),this.length>1&&(T[e]||h.unique(i),k.test(e)&&i.reverse()),this.pushStack(i)}});var C,A=/\S+/g,L={};function N(){f.removeEventListener("DOMContentLoaded",N,!1),e.removeEventListener("load",N,!1),h.ready()}h.Callbacks=function(e){e="string"==typeof e?L[e]||function(e){var t=L[e]={};return h.each(e.match(A)||[],function(e,n){t[n]=!0}),t}(e):h.extend({},e);var t,n,r,i,o,a,s=[],u=!e.once&&[],c=function(f){for(t=e.memory&&f,n=!0,a=i||0,i=0,o=s.length,r=!0;s&&a<o;a++)if(!1===s[a].apply(f[0],f[1])&&e.stopOnFalse){t=!1;break}r=!1,s&&(u?u.length&&c(u.shift()):t?s=[]:l.disable())},l={add:function(){if(s){var n=s.length;!function t(n){h.each(n,function(n,r){var i=h.type(r);"function"===i?e.unique&&l.has(r)||s.push(r):r&&r.length&&"string"!==i&&t(r)})}(arguments),r?o=s.length:t&&(i=n,c(t))}return this},remove:function(){return s&&h.each(arguments,function(e,t){for(var n;(n=h.inArray(t,s,n))>-1;)s.splice(n,1),r&&(n<=o&&o--,n<=a&&a--)}),this},has:function(e){return e?h.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=u=t=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,t||l.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!s||n&&!u||(t=[e,(t=t||[]).slice?t.slice():t],r?u.push(t):c(t)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},h.extend({Deferred:function(e){var t=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred(function(n){h.each(t,function(t,o){var a=h.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?h.extend(e,r):r}},i={};return r.pipe=r.then,h.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,i,o=0,a=r.call(arguments),s=a.length,u=1!==s||e&&h.isFunction(e.promise)?s:0,c=1===u?e:h.Deferred(),l=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?r.call(arguments):o,i===t?c.notifyWith(n,i):--u||c.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)a[o]&&h.isFunction(a[o].promise)?a[o].promise().done(l(o,i,a)).fail(c.reject).progress(l(o,n,t)):--u;return u||c.resolveWith(i,a),c.promise()}}),h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){(!0===e?--h.readyWait:h.isReady)||(h.isReady=!0,!0!==e&&--h.readyWait>0||(C.resolveWith(f,[h]),h.fn.triggerHandler&&(h(f).triggerHandler("ready"),h(f).off("ready"))))}}),h.ready.promise=function(t){return C||(C=h.Deferred(),"complete"===f.readyState?setTimeout(h.ready):(f.addEventListener("DOMContentLoaded",N,!1),e.addEventListener("load",N,!1))),C.promise(t)},h.ready.promise();var D=h.access=function(e,t,n,r,i,o,a){var s=0,u=e.length,c=null==n;if("object"===h.type(n))for(s in i=!0,n)h.access(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,h.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(h(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):u?t(e[0],n):o};function B(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=h.expando+Math.random()}h.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},B.uid=1,B.accepts=h.acceptData,B.prototype={key:function(e){if(!B.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=B.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,h.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(h.isEmptyObject(o))h.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,h.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{h.isArray(t)?r=t.concat(t.map(h.camelCase)):(i=h.camelCase(t),r=t in a?[t,i]:(r=i)in a?[r]:r.match(A)||[]),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!h.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var I=new B,O=new B,R=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,M=/([A-Z])/g;function H(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(M,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:R.test(n)?h.parseJSON(n):n)}catch(i){}O.set(e,t,n)}else n=void 0;return n}h.extend({hasData:function(e){return O.hasData(e)||I.hasData(e)},data:function(e,t,n){return O.access(e,t,n)},removeData:function(e,t){O.remove(e,t)},_data:function(e,t,n){return I.access(e,t,n)},_removeData:function(e,t){I.remove(e,t)}}),h.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=O.get(o),1===o.nodeType&&!I.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=h.camelCase(r.slice(5)),H(o,r,i[r]));I.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){O.set(this,e)}):D(this,function(t){var n,r=h.camelCase(e);if(o&&void 0===t)return void 0!==(n=O.get(o,e))?n:void 0!==(n=O.get(o,r))?n:void 0!==(n=H(o,r,void 0))?n:void 0;this.each(function(){var n=O.get(this,r);O.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&O.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){O.remove(this,e)})}}),h.extend({queue:function(e,t,n){var r;if(e)return r=I.get(e,t=(t||"fx")+"queue"),n&&(!r||h.isArray(n)?r=I.access(e,t,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=h.queue(e,t=t||"fx"),r=n.length,i=n.shift(),o=h._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){h.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return I.get(e,n)||I.access(e,n,{empty:h.Callbacks("once memory").add(function(){I.remove(e,[t+"queue",n])})})}}),h.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?h.queue(this[0],e):void 0===t?this:this.each(function(){var n=h.queue(this,e,t);h._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=h.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=I.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var U,q,$=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,F=["Top","Right","Bottom","Left"],P=function(e,t){return"none"===h.css(e=t||e,"display")||!h.contains(e.ownerDocument,e)},W=/^(?:checkbox|radio)$/i;U=f.createDocumentFragment().appendChild(f.createElement("div")),(q=f.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),U.appendChild(q),l.checkClone=U.cloneNode(!0).cloneNode(!0).lastChild.checked,U.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!U.cloneNode(!0).lastChild.defaultValue,l.focusinBubbles="onfocusin"in e;var z=/^key/,J=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,G=/^([^.]*)(?:\.(.+)|)$/;function V(){return!0}function Y(){return!1}function Q(){try{return f.activeElement}catch(e){}}h.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,c,l,f,d,p,g,v,y=I.get(e);if(y)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=h.guid++),(u=y.events)||(u=y.events={}),(a=y.handle)||(a=y.handle=function(t){return void 0!==h&&h.event.triggered!==t.type?h.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(A)||[""]).length;c--;)p=v=(s=G.exec(t[c])||[])[1],g=(s[2]||"").split(".").sort(),p&&(f=h.event.special[p]||{},f=h.event.special[p=(i?f.delegateType:f.bindType)||p]||{},l=h.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:g.join(".")},o),(d=u[p])||((d=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,g,a)||e.addEventListener&&e.addEventListener(p,a,!1)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),h.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,c,l,f,d,p,g,v,y=I.hasData(e)&&I.get(e);if(y&&(u=y.events)){for(c=(t=(t||"").match(A)||[""]).length;c--;)if(p=v=(s=G.exec(t[c])||[])[1],g=(s[2]||"").split(".").sort(),p){for(f=h.event.special[p]||{},d=u[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)l=d[o],!i&&v!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,g,y.handle)||h.removeEvent(e,p,y.handle),delete u[p])}else for(p in u)h.event.remove(e,p+t[c],n,r,!0);h.isEmptyObject(u)&&(delete y.handle,I.remove(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,u,l,d,p,g=[r||f],v=c.call(t,"type")?t.type:t,y=c.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||f,3!==r.nodeType&&8!==r.nodeType&&!X.test(v+h.event.triggered)&&(v.indexOf(".")>=0&&(y=v.split("."),v=y.shift(),y.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[h.expando]?t:new h.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:h.makeArray(n,[t]),p=h.event.special[v]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!h.isWindow(r)){for(X.test((u=p.delegateType||v)+v)||(a=a.parentNode);a;a=a.parentNode)g.push(a),s=a;s===(r.ownerDocument||f)&&g.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=g[o++])&&!t.isPropagationStopped();)t.type=o>1?u:p.bindType||v,(d=(I.get(a,"events")||{})[t.type]&&I.get(a,"handle"))&&d.apply(a,n),(d=l&&a[l])&&d.apply&&h.acceptData(a)&&(t.result=d.apply(a,n),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),n)||!h.acceptData(r)||l&&h.isFunction(r[v])&&!h.isWindow(r)&&((s=r[l])&&(r[l]=null),h.event.triggered=v,r[v](),h.event.triggered=void 0,s&&(r[l]=s)),t.result}},dispatch:function(e){e=h.event.fix(e);var t,n,i,o,a,s,u=r.call(arguments),c=(I.get(this,"events")||{})[e.type]||[],l=h.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=h.event.handlers.call(this,e,c),t=0;(o=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(a.namespace)||(e.handleObj=a,e.data=a.data,void 0!==(i=((h.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==e.type){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?h(i,this).index(u)>=0:h.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||f).body,e.pageX=t.clientX+((r=n.documentElement)&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[h.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=J.test(i)?this.mouseHooks:z.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new h.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=f),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Q()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Q()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&h.nodeName(this,"input"))return this.click(),!1},_default:function(e){return h.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=h.extend(new h.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?h.event.trigger(i,null,t):h.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},h.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},h.Event=function(e,t){if(!(this instanceof h.Event))return new h.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?V:Y):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=V,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=V,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=V,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||h.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),l.focusinBubbles||h.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e),!0)};h.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=I.access(r,t);i||r.addEventListener(e,n,!0),I.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=I.access(r,t)-1;i?I.access(r,t,i):(r.removeEventListener(e,n,!0),I.remove(r,t))}}}),h.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){for(a in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(a,t,n,e[a],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=Y;else if(!r)return this;return 1===i&&(o=r,(r=function(e){return h().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=h.guid++)),this.each(function(){h.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,h(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Y),this.each(function(){h.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){h.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return h.event.trigger(e,t,n,!0)}});var K=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Z=/<([\w:]+)/,ee=/<|&#?\w+;/,te=/<(?:script|style|link)/i,ne=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/^$|\/(?:java|ecma)script/i,ie=/^true\/(.*)/,oe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ae={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 se(e,t){return h.nodeName(e,"table")&&h.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ce(e){var t=ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function le(e,t){for(var n=0,r=e.length;n<r;n++)I.set(e[n],"globalEval",!t||I.get(t[n],"globalEval"))}function fe(e,t){var n,r,i,o,a,s,u,c;if(1===t.nodeType){if(I.hasData(e)&&(o=I.access(e),a=I.set(t,o),c=o.events))for(i in delete a.handle,a.events={},c)for(n=0,r=c[i].length;n<r;n++)h.event.add(t,i,c[i][n]);O.hasData(e)&&(s=O.access(e),u=h.extend({},s),O.set(t,u))}}function he(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&h.nodeName(e,t)?h.merge([e],n):n}ae.optgroup=ae.option,ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td,h.extend({clone:function(e,t,n){var r,i,o,a,s,u,c,f=e.cloneNode(!0),d=h.contains(e.ownerDocument,e);if(!(l.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(a=he(f),r=0,i=(o=he(e)).length;r<i;r++)s=o[r],"input"===(c=(u=a[r]).nodeName.toLowerCase())&&W.test(s.type)?u.checked=s.checked:"input"!==c&&"textarea"!==c||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||he(e),a=a||he(f),r=0,i=o.length;r<i;r++)fe(o[r],a[r]);else fe(e,f);return(a=he(f,"script")).length>0&&le(a,!d&&he(e,"script")),f},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,c,l=t.createDocumentFragment(),f=[],d=0,p=e.length;d<p;d++)if((i=e[d])||0===i)if("object"===h.type(i))h.merge(f,i.nodeType?[i]:i);else if(ee.test(i)){for(o=o||l.appendChild(t.createElement("div")),a=(Z.exec(i)||["",""])[1].toLowerCase(),o.innerHTML=(s=ae[a]||ae._default)[1]+i.replace(K,"<$1></$2>")+s[2],c=s[0];c--;)o=o.lastChild;h.merge(f,o.childNodes),(o=l.firstChild).textContent=""}else f.push(t.createTextNode(i));for(l.textContent="",d=0;i=f[d++];)if((!r||-1===h.inArray(i,r))&&(u=h.contains(i.ownerDocument,i),o=he(l.appendChild(i),"script"),u&&le(o),n))for(c=0;i=o[c++];)re.test(i.type||"")&&n.push(i);return l},cleanData:function(e){for(var t,n,r,i,o=h.event.special,a=0;void 0!==(n=e[a]);a++){if(h.acceptData(n)&&(i=n[I.expando])&&(t=I.cache[i])){if(t.events)for(r in t.events)o[r]?h.event.remove(n,r):h.removeEvent(n,r,t.handle);I.cache[i]&&delete I.cache[i]}delete O.cache[n[O.expando]]}}}),h.fn.extend({text:function(e){return D(this,function(e){return void 0===e?h.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||se(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=se(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?h.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||h.cleanData(he(n)),n.parentNode&&(t&&h.contains(n.ownerDocument,n)&&le(he(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(h.cleanData(he(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return D(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!te.test(e)&&!ae[(Z.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(K,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(h.cleanData(he(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,h.cleanData(he(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=i.apply([],e);var n,r,o,a,s,u,c=0,f=this.length,d=this,p=f-1,g=e[0],v=h.isFunction(g);if(v||f>1&&"string"==typeof g&&!l.checkClone&&ne.test(g))return this.each(function(n){var r=d.eq(n);v&&(e[0]=g.call(this,n,r.html())),r.domManip(e,t)});if(f&&(r=(n=h.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=r),r)){for(a=(o=h.map(he(n,"script"),ue)).length;c<f;c++)s=n,c!==p&&(s=h.clone(s,!0,!0),a&&h.merge(o,he(s,"script"))),t.call(this[c],s,c);if(a)for(u=o[o.length-1].ownerDocument,h.map(o,ce),c=0;c<a;c++)re.test((s=o[c]).type||"")&&!I.access(s,"globalEval")&&h.contains(u,s)&&(s.src?h._evalUrl&&h._evalUrl(s.src):h.globalEval(s.textContent.replace(oe,"")))}return this}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){h.fn[e]=function(e){for(var n,r=[],i=h(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),h(i[s])[t](n),o.apply(r,n.get());return this.pushStack(r)}});var de,pe={};function ge(t,n){var r,i=h(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:h.css(i[0],"display");return i.detach(),o}function ve(e){var t=f,n=pe[e];return n||("none"!==(n=ge(e,t))&&n||((t=(de=(de||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=ge(e,t),de.detach()),pe[e]=n),n}var ye=/^margin/,me=new RegExp("^("+$+")(?!px)[a-z%]+$","i"),be=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)};function we(e,t,n){var r,i,o,a,s=e.style;return(n=n||be(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||h.contains(e.ownerDocument,e)||(a=h.style(e,t)),me.test(a)&&ye.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,n,r=f.documentElement,i=f.createElement("div"),o=f.createElement("div");function a(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(i);var a=e.getComputedStyle(o,null);t="1%"!==a.top,n="4px"===a.width,r.removeChild(i)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===o.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(o),e.getComputedStyle&&h.extend(l,{pixelPosition:function(){return a(),t},boxSizingReliable:function(){return null==n&&a(),n},reliableMarginRight:function(){var t,n=o.appendChild(f.createElement("div"));return n.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",o.style.width="1px",r.appendChild(i),t=!parseFloat(e.getComputedStyle(n,null).marginRight),r.removeChild(i),t}}))}(),h.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};var _e=/^(none|table(?!-c[ea]).+)/,Se=new RegExp("^("+$+")(.*)$","i"),Ee=new RegExp("^([+-])=("+$+")","i"),ke={position:"absolute",visibility:"hidden",display:"block"},Te={letterSpacing:"0",fontWeight:"400"},je=["Webkit","O","Moz","ms"];function Ce(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=je.length;i--;)if((t=je[i]+n)in e)return t;return r}function Ae(e,t,n){var r=Se.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Le(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=h.css(e,n+F[o],!0,i)),r?("content"===n&&(a-=h.css(e,"padding"+F[o],!0,i)),"margin"!==n&&(a-=h.css(e,"border"+F[o]+"Width",!0,i))):(a+=h.css(e,"padding"+F[o],!0,i),"padding"!==n&&(a+=h.css(e,"border"+F[o]+"Width",!0,i)));return a}function Ne(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=be(e),a="border-box"===h.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=we(e,t,o))<0||null==i)&&(i=e.style[t]),me.test(i))return i;r=a&&(l.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Le(e,t,n||(a?"border":"content"),r,o)+"px"}function De(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=I.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&P(r)&&(o[a]=I.access(r,"olddisplay",ve(r.nodeName)))):(i=P(r),"none"===n&&i||I.set(r,"olddisplay",i?n:h.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function Be(e,t,n,r,i){return new Be.prototype.init(e,t,n,r,i)}h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=we(e,"opacity");return""===n?"1":n}}}},cssNumber:{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(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h.camelCase(t),u=e.style;if(t=h.cssProps[s]||(h.cssProps[s]=Ce(u,s)),a=h.cssHooks[t]||h.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=Ee.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(h.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||h.cssNumber[s]||(n+="px"),l.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=h.camelCase(t);return t=h.cssProps[s]||(h.cssProps[s]=Ce(e.style,s)),(a=h.cssHooks[t]||h.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=we(e,t,r)),"normal"===i&&t in Te&&(i=Te[t]),""===n||n?(o=parseFloat(i),!0===n||h.isNumeric(o)?o||0:i):i}}),h.each(["height","width"],function(e,t){h.cssHooks[t]={get:function(e,n,r){if(n)return _e.test(h.css(e,"display"))&&0===e.offsetWidth?h.swap(e,ke,function(){return Ne(e,t,r)}):Ne(e,t,r)},set:function(e,n,r){var i=r&&be(e);return Ae(0,n,r?Le(e,t,r,"border-box"===h.css(e,"boxSizing",!1,i),i):0)}}}),h.cssHooks.marginRight=xe(l.reliableMarginRight,function(e,t){if(t)return h.swap(e,{display:"inline-block"},we,[e,"marginRight"])}),h.each({margin:"",padding:"",border:"Width"},function(e,t){h.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+F[r]+t]=o[r]||o[r-2]||o[0];return i}},ye.test(e)||(h.cssHooks[e+t].set=Ae)}),h.fn.extend({css:function(e,t){return D(this,function(e,t,n){var r,i,o={},a=0;if(h.isArray(t)){for(r=be(e),i=t.length;a<i;a++)o[t[a]]=h.css(e,t[a],!1,r);return o}return void 0!==n?h.style(e,t,n):h.css(e,t)},e,t,arguments.length>1)},show:function(){return De(this,!0)},hide:function(){return De(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){P(this)?h(this).show():h(this).hide()})}}),h.Tween=Be,(Be.prototype={constructor:Be,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(h.cssNumber[n]?"":"px")},cur:function(){var e=Be.propHooks[this.prop];return e&&e.get?e.get(this):Be.propHooks._default.get(this)},run:function(e){var t,n=Be.propHooks[this.prop];return this.pos=t=this.options.duration?h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Be.propHooks._default.set(this),this}}).init.prototype=Be.prototype,(Be.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=h.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[h.cssProps[e.prop]]||h.cssHooks[e.prop])?h.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=Be.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},h.fx=Be.prototype.init,h.fx.step={};var Ie,Oe,Re=/^(?:toggle|show|hide)$/,Me=new RegExp("^(?:([+-])=|)("+$+")([a-z%]*)$","i"),He=/queueHooks$/,Ue=[function(e,t,n){var r,i,o,a,s,u,c,l=this,f={},d=e.style,p=e.nodeType&&P(e),g=I.get(e,"fxshow");for(r in n.queue||(null==(s=h._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--,h.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(c=h.css(e,"display"))?I.get(e,"olddisplay")||ve(e.nodeName):c)&&"none"===h.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",l.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),t)if(Re.exec(i=t[r])){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;p=!0}f[r]=g&&g[r]||h.style(e,r)}else c=void 0;if(h.isEmptyObject(f))"inline"===("none"===c?ve(e.nodeName):c)&&(d.display=c);else for(r in g?"hidden"in g&&(p=g.hidden):g=I.access(e,"fxshow",{}),o&&(g.hidden=!p),p?h(e).show():l.done(function(){h(e).hide()}),l.done(function(){var t;for(t in I.remove(e,"fxshow"),f)h.style(e,t,f[t])}),f)a=Pe(p?g[r]:0,r,l),r in g||(g[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],qe={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Me.exec(t),o=i&&i[3]||(h.cssNumber[e]?"":"px"),a=(h.cssNumber[e]||"px"!==o&&+r)&&Me.exec(h.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{h.style(n.elem,e,(a/=s=s||".5")+o)}while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function $e(){return setTimeout(function(){Ie=void 0}),Ie=h.now()}function Fe(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=F[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Pe(e,t,n){for(var r,i=(qe[t]||[]).concat(qe["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function We(e,t,n){var r,i,o=0,a=Ue.length,s=h.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Ie||$e(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ie||$e(),duration:n.duration,tweens:[],createTween:function(t,n){var r=h.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),l=c.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=h.camelCase(n)],h.isArray(o=e[n])&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=h.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(l,c.opts.specialEasing);o<a;o++)if(r=Ue[o].call(c,e,l,c.opts))return r;return h.map(l,Pe,c),h.isFunction(c.opts.start)&&c.opts.start.call(e,c),h.fx.timer(h.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}h.Animation=h.extend(We,{tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)qe[n=e[r]]=qe[n]||[],qe[n].unshift(t)},prefilter:function(e,t){t?Ue.unshift(e):Ue.push(e)}}),h.speed=function(e,t,n){var r=e&&"object"==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return r.duration=h.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds[r.duration]:h.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(P).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=h.isEmptyObject(e),o=h.speed(t,n,r),a=function(){var t=We(this,h.extend({},e),o);(i||I.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=h.timers,a=I.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&He.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||h.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=I.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=h.timers,a=r?r.length:0;for(n.finish=!0,h.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(e,t){var n=h.fn[t];h.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Fe(t,!0),e,r,i)}}),h.each({slideDown:Fe("show"),slideUp:Fe("hide"),slideToggle:Fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){h.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),h.timers=[],h.fx.tick=function(){var e,t=0,n=h.timers;for(Ie=h.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||h.fx.stop(),Ie=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){Oe||(Oe=setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){clearInterval(Oe),Oe=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,t){return e=h.fx&&h.fx.speeds[e]||e,this.queue(t=t||"fx",function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e=f.createElement("input"),t=f.createElement("select"),n=t.appendChild(f.createElement("option"));e.type="checkbox",l.checkOn=""!==e.value,l.optSelected=n.selected,t.disabled=!0,l.optDisabled=!n.disabled,(e=f.createElement("input")).value="t",e.type="radio",l.radioValue="t"===e.value}();var ze,Je=h.expr.attrHandle;h.fn.extend({attr:function(e,t){return D(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?h.prop(e,t,n):(1===o&&h.isXMLDoc(e)||(t=t.toLowerCase(),r=h.attrHooks[t]||(h.expr.match.bool.test(t)?ze:void 0)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=h.find.attr(e,t))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void h.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(A);if(o&&1===e.nodeType)for(;n=o[i++];)r=h.propFix[n]||n,h.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!l.radioValue&&"radio"===t&&h.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),ze={set:function(e,t,n){return!1===t?h.removeAttr(e,n):e.setAttribute(n,n),n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Je[t]||h.find.attr;Je[t]=function(e,t,r){var i,o;return r||(o=Je[t],Je[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Je[t]=o),i}});var Xe=/^(?:input|select|textarea|button)$/i;h.fn.extend({prop:function(e,t){return D(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[h.propFix[e]||e]})}}),h.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!h.isXMLDoc(e))&&(i=h.propHooks[t=h.propFix[t]||t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Xe.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),l.optSelected||(h.propHooks.selected={get:function(e){return null}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});var Ge=/[\t\r\n\f]/g;h.fn.extend({addClass:function(e){var t,n,r,i,o,a,s="string"==typeof e&&e,u=0,c=this.length;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(A)||[];u<c;u++)if(r=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(Ge," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=h.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0===arguments.length||"string"==typeof e&&e,u=0,c=this.length;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(A)||[];u<c;u++)if(r=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(Ge," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?h.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):h.isFunction(e)?this.each(function(n){h(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=h(this),o=e.match(A)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else"undefined"!==n&&"boolean"!==n||(this.className&&I.set(this,"__className__",this.className),this.className=this.className||!1===e?"":I.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ge," ").indexOf(t)>=0)return!0;return!1}});var Ve=/\r/g;h.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=h.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,h(this).val()):e)?i="":"number"==typeof i?i+="":h.isArray(i)&&(i=h.map(i,function(e){return null==e?"":e+""})),(t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=h.valHooks[i.type]||h.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ve,""):null==n?"":n:void 0}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return null!=t?t:h.trim(h.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(l.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,"optgroup"))){if(t=h(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=h.makeArray(t),a=i.length;a--;)((r=i[a]).selected=h.inArray(r.value,o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(e,t){if(h.isArray(t))return e.checked=h.inArray(h(e).val(),t)>=0}},l.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.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(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Ye=h.now(),Qe=/\?/;h.parseJSON=function(e){return JSON.parse(e+"")},h.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(n){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+e),t};var Ke,Ze,et=/#.*$/,tt=/([?&])_=[^&]*/,nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,rt=/^(?:GET|HEAD)$/,it=/^\/\//,ot=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,at={},st={},ut="*/".concat("*");try{Ze=location.href}catch(At){(Ze=f.createElement("a")).href="",Ze=Ze.href}function ct(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(A)||[];if(h.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function lt(e,t,n,r){var i={},o=e===st;function a(s){var u;return i[s]=!0,h.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(u=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function ft(e,t){var n,r,i=h.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&h.extend(!0,e,r),e}Ke=ot.exec(Ze.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ze,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ke[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ft(ft(e,h.ajaxSettings),t):ft(h.ajaxSettings,e)},ajaxPrefilter:ct(at),ajaxTransport:ct(st),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var n,r,i,o,a,s,u,c,l=h.ajaxSetup({},t=t||{}),f=l.context||l,d=l.context&&(f.nodeType||f.jquery)?h(f):h.event,p=h.Deferred(),g=h.Callbacks("once memory"),v=l.statusCode||{},y={},m={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!o)for(o={};t=nt.exec(i);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=m[n]=m[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return n&&n.abort(t),_(0,t),this}};if(p.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,l.url=((e||l.url||Ze)+"").replace(et,"").replace(it,Ke[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=h.trim(l.dataType||"*").toLowerCase().match(A)||[""],null==l.crossDomain&&(s=ot.exec(l.url.toLowerCase()),l.crossDomain=!(!s||s[1]===Ke[1]&&s[2]===Ke[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(Ke[3]||("http:"===Ke[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=h.param(l.data,l.traditional)),lt(at,l,t,x),2===b)return x;for(c in(u=l.global)&&0==h.active++&&h.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!rt.test(l.type),r=l.url,l.hasContent||(l.data&&(r=l.url+=(Qe.test(r)?"&":"?")+l.data,delete l.data),!1===l.cache&&(l.url=tt.test(r)?r.replace(tt,"$1_="+Ye++):r+(Qe.test(r)?"&":"?")+"_="+Ye++)),l.ifModified&&(h.lastModified[r]&&x.setRequestHeader("If-Modified-Since",h.lastModified[r]),h.etag[r]&&x.setRequestHeader("If-None-Match",h.etag[r])),(l.data&&l.hasContent&&!1!==l.contentType||t.contentType)&&x.setRequestHeader("Content-Type",l.contentType),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+ut+"; q=0.01":""):l.accepts["*"]),l.headers)x.setRequestHeader(c,l.headers[c]);if(l.beforeSend&&(!1===l.beforeSend.call(f,x,l)||2===b))return x.abort();for(c in w="abort",{success:1,error:1,complete:1})x[c](l[c]);if(n=lt(st,l,t,x)){x.readyState=1,u&&d.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(a=setTimeout(function(){x.abort("timeout")},l.timeout));try{b=1,n.send(y,_)}catch(At){if(!(b<2))throw At;_(-1,At)}}else _(-1,"No Transport");function _(e,t,o,s){var c,y,m,w,_,S=t;2!==b&&(b=2,a&&clearTimeout(a),n=void 0,i=s||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(l,x,o)),w=function(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(At){return{state:"parsererror",error:a?At:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(l,w,x,c),c?(l.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(h.lastModified[r]=_),(_=x.getResponseHeader("etag"))&&(h.etag[r]=_)),204===e||"HEAD"===l.type?S="nocontent":304===e?S="notmodified":(S=w.state,y=w.data,c=!(m=w.error))):(m=S,!e&&S||(S="error",e<0&&(e=0))),x.status=e,x.statusText=(t||S)+"",c?p.resolveWith(f,[y,S,x]):p.rejectWith(f,[x,S,m]),x.statusCode(v),v=void 0,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[x,l,c?y:m]),g.fireWith(f,[x,S]),u&&(d.trigger("ajaxComplete",[x,l]),--h.active||h.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return h.get(e,t,n,"json")},getScript:function(e,t){return h.get(e,void 0,t,"script")}}),h.each(["get","post"],function(e,t){h[t]=function(e,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=void 0),h.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(e){var t;return h.isFunction(e)?this.each(function(t){h(this).wrapAll(e.call(this,t))}):(this[0]&&(t=h(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return h.isFunction(e)?this.each(function(t){h(this).wrapInner(e.call(this,t))}):this.each(function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(n){h(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)};var ht=/%20/g,dt=/\[\]$/,pt=/\r?\n/g,gt=/^(?:submit|button|image|reset|file)$/i,vt=/^(?:input|select|textarea|keygen)/i;function yt(e,t,n,r){var i;if(h.isArray(t))h.each(t,function(t,i){n||dt.test(e)?r(e,i):yt(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==h.type(t))r(e,t);else for(i in t)yt(e+"["+i+"]",t[i],n,r)}h.param=function(e,t){var n,r=[],i=function(e,t){t=h.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){i(this.name,this.value)});else for(n in e)yt(n,e[n],t,i);return r.join("&").replace(ht,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&vt.test(this.nodeName)&&!gt.test(e)&&(this.checked||!W.test(e))}).map(function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(pt,"\r\n")}}):{name:t.name,value:n.replace(pt,"\r\n")}}).get()}}),h.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(At){}};var mt=0,bt={},wt={0:200,1223:204},xt=h.ajaxSettings.xhr();e.ActiveXObject&&h(e).on("unload",function(){for(var e in bt)bt[e]()}),l.cors=!!xt&&"withCredentials"in xt,l.ajax=xt=!!xt,h.ajaxTransport(function(e){var t;if(l.cors||xt&&!e.crossDomain)return{send:function(n,r){var i,o=e.xhr(),a=++mt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];for(i in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete bt[a],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?r(o.status,o.statusText):r(wt[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=bt[a]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(At){if(t)throw At}},abort:function(){t&&t()}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),h.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=h("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),f.head.appendChild(t[0])},abort:function(){n&&n()}}});var _t=[],St=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=_t.pop()||h.expando+"_"+Ye++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(St.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&St.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(St,"$1"+i):!1!==t.jsonp&&(t.url+=(Qe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||h.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,_t.push(i)),a&&h.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),h.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||f;var r=w.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=h.buildFragment([e],t,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var Et=h.fn.load;h.fn.load=function(e,t,n){if("string"!=typeof e&&Et)return Et.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=h.trim(e.slice(s)),e=e.slice(0,s)),h.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&h.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?h("<div>").append(h.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length};var kt=e.document.documentElement;function Tt(e){return h.isWindow(e)?e:9===e.nodeType&&e.defaultView}h.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,c=h.css(e,"position"),l=h(e),f={};"static"===c&&(e.style.position="relative"),s=l.offset(),o=h.css(e,"top"),u=h.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),h.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):l.css(f)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?h.contains(t=o.documentElement,r)?(void 0!==r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=Tt(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i:void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===h.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(r=e.offset()),r.top+=h.css(e[0],"borderTopWidth",!0),r.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-h.css(n,"marginTop",!0),left:t.left-r.left-h.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||kt;e&&!h.nodeName(e,"html")&&"static"===h.css(e,"position");)e=e.offsetParent;return e||kt})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;h.fn[t]=function(i){return D(this,function(t,i,o){var a=Tt(t);if(void 0===o)return a?a[n]:t[i];a?a.scrollTo(r?e.pageXOffset:o,r?o:e.pageYOffset):t[i]=o},t,i,arguments.length,null)}}),h.each(["top","left"],function(e,t){h.cssHooks[t]=xe(l.pixelPosition,function(e,n){if(n)return n=we(e,t),me.test(n)?h(e).position()[t]+"px":n})}),h.each({Height:"height",Width:"width"},function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){h.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return D(this,function(t,n,r){var i;return h.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?h.css(t,n,a):h.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return h});var jt=e.jQuery,Ct=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=Ct),t&&e.jQuery===h&&(e.jQuery=jt),h},void 0===t&&(e.jQuery=e.$=h),h},"object"==typeof t&&"object"==typeof t.exports?t.exports=r.document?i(r,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(r)},{}],40:[function(e,t,n){(function(n){var r=e("jws");t.exports.decode=function(e){var t=r.decode(e,{json:!0});return t&&t.payload},t.exports.sign=function(e,t,n){var i="object"==typeof(n=n||{}).headers&&n.headers||{};return i.typ="JWT",i.alg=n.algorithm||"HS256",n.header&&Object.keys(n.header).forEach(function(e){i[e]=n.header[e]}),n.noTimestamp||(e.iat=Math.floor(Date.now()/1e3)),n.expiresInMinutes&&(e.exp=e.iat+60*n.expiresInMinutes),n.audience&&(e.aud=n.audience),n.issuer&&(e.iss=n.issuer),n.subject&&(e.sub=n.subject),r.sign({header:i,payload:e,secret:t})},t.exports.verify=function(e,t,a,s){if("function"!=typeof a||s||(s=a,a={}),a||(a={}),s)var u=function(){var e=Array.prototype.slice.call(arguments,0);return n.nextTick(function(){s.apply(null,e)})};else u=function(e,t){if(e)throw e;return t};if(!e)return u(new i("jwt must be provided"));var c,l,f=e.split(".");if(3!==f.length)return u(new i("jwt malformed"));if(""===f[2].trim()&&t)return u(new i("jwt signature is required"));try{c=r.verify(e,t)}catch(d){return u(d)}if(!c)return u(new i("invalid signature"));try{l=this.decode(e)}catch(p){return u(p)}if(l.exp&&Math.floor(Date.now()/1e3)>=l.exp)return u(new o("jwt expired",new Date(1e3*l.exp)));if(a.audience){var h=Array.isArray(a.audience)?a.audience:[a.audience];if(!(Array.isArray(l.aud)?l.aud:[l.aud]).some(function(e){return-1!=h.indexOf(e)}))return u(new i("jwt audience invalid. expected: "+l.aud))}return a.issuer&&l.iss!==a.issuer?u(new i("jwt issuer invalid. expected: "+l.iss)):u(null,l)};var i=t.exports.JsonWebTokenError=function(e,t){Error.call(this,e),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};i.prototype=Object.create(Error.prototype),i.prototype.constructor=i;var o=t.exports.TokenExpiredError=function(e,t){i.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};o.prototype=Object.create(i.prototype),o.prototype.constructor=o}).call(this,e("_process"))},{_process:22,jws:41}],41:[function(e,t,n){(function(t){var r=e("buffer").Buffer,i=e("stream"),o=e("util"),a=e("base64url"),s=e("jwa");function u(e){return"string"==typeof e?e:"number"==typeof e||r.isBuffer(e)?e.toString():JSON.stringify(e)}function c(e){var t=e.header,n=e.payload,r=e.secret||e.privateKey,i=s(t.alg),c=function(e,t){var n=a(u(e)),r=a(u(t));return o.format("%s.%s",n,r)}(t,n),l=i.sign(c,r);return o.format("%s.%s",c,l)}function l(e){var t=e.split(".",1)[0];return function(e){if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e))return e;try{return JSON.parse(e)}catch(t){return}}(a.decode(t))}function f(e){return e.split(".")[2]}var h=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function d(e){return!!h.test(e)&&!!l(e)}function p(e,t){var n=f(e=u(e)),r=function(e){return e.split(".",2).join(".")}(e);return s(function(e){var t,n=l(e);if("object"!=typeof n)throw(t=new Error("Invalid token: no header in signature '"+e+"'")).code="MISSING_HEADER",t.signature=e,t;if(!n.alg)throw(t=new Error("Missing `alg` field in header for signature '"+e+"'")).code="MISSING_ALGORITHM",t.header=n,t.signature=e,t;return n.alg}(e)).verify(r,n,t)}function g(e,t){if(t=t||{},!d(e=u(e)))return null;var n=l(e);if(!n)return null;var r=function(e){var t=e.split(".")[1];return a.decode(t)}(e);return("JWT"===n.typ||t.json)&&(r=JSON.parse(r)),{header:n,payload:r,signature:f(e)}}function v(e){var t=new m(e.secret||e.privateKey||e.key);this.readable=!0,this.header=e.header,this.secret=this.privateKey=this.key=t,this.payload=new m(e.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}function y(e){var t=new m((e=e||{}).secret||e.publicKey||e.key);this.readable=!0,this.secret=this.publicKey=this.key=t,this.signature=new m(e.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}function m(e){if(this.buffer=r(e||0),this.writable=!0,this.readable=!0,!e)return this;"function"==typeof e.pipe?e.pipe(this):e.length&&(this.writable=!1,t.nextTick((function(){this.buffer=e,this.emit("end",e),this.readable=!1,this.emit("close")}).bind(this)))}o.inherits(v,i),v.prototype.sign=function(){var e=c({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e},o.inherits(y,i),y.prototype.verify=function(){var e=p(this.signature.buffer,this.key.buffer),t=g(this.signature.buffer);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e},o.inherits(m,i),m.prototype.write=function(e){this.buffer=r.concat([this.buffer,r(e)]),this.emit("data",e)},m.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},n.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"],n.sign=c,n.verify=p,n.decode=g,n.isValid=d,n.createSign=function(e){return new v(e)},n.createVerify=function(e){return new y(e)}}).call(this,e("_process"))},{_process:22,base64url:42,buffer:3,jwa:43,stream:35,util:37}],42:[function(e,t,n){(function(e){function n(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function r(t){return e.isBuffer(t)&&(t=t.toString()),function(t){var n=t.length,r=t.length%4;if(!r)return t;var i=n,o=4-r,a=e(n+o);for(a.write(t);o--;)a.write("=",i++);return a.toString()}(t).replace(/\-/g,"+").replace(/_/g,"/")}function i(t){return n(e(t).toString("base64"))}i.toBase64=r,i.fromBase64=n,i.decode=function(t,n){return e(r(t),"base64").toString(n)},i.toBuffer=function(t){return e(r(t),"base64")},t.exports=i}).call(this,e("buffer").Buffer)},{buffer:3}],43:[function(e,t,n){(function(n){var r=e("base64url"),i=e("crypto"),o=e("util"),a="secret must be a string or buffer",s="key must be a string or buffer";function u(e){var t=[].slice.call(arguments,1),n=o.format.bind(o,e).apply(null,t);return new TypeError(n)}function c(e){return n.isBuffer(e)||"string"==typeof e}function l(e){return c(e)||(e=JSON.stringify(e)),e}function f(e){return function(t,n){if(!c(n))throw u(a);t=l(t);var o=i.createHmac("SHA"+e,n),s=(o.update(t),o.digest("base64"));return r.fromBase64(s)}}function h(e){return function(t,n,r){return n===f(e)(t,r)}}function d(e){return function(t,n){if(!c(n))throw u(s);t=l(t);var o=i.createSign("RSA-SHA"+e),a=(o.update(t),o.sign(n,"base64"));return r.fromBase64(a)}}function p(e){return function(t,n,o){if(!c(o))throw u(s);t=l(t),n=r.toBase64(n);var a=i.createVerify("RSA-SHA"+e);return a.update(t),a.verify(o,n,"base64")}}function g(){return function(){return""}}function v(){return function(e,t){return""===t}}t.exports=function(e){var t={hs:f,rs:d,es:d,none:g},n={hs:h,rs:p,es:p,none:v},r=e.match(/(RS|ES|HS|none)(256|384|512)?/i);if(!r)throw u('"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512" and "none".',e);var i=r[1].toLowerCase(),o=r[2];return{sign:t[i](o),verify:n[i](o)}}}).call(this,e("buffer").Buffer)},{base64url:42,buffer:3,crypto:9,util:37}],44:[function(e,t,n){(function(t){(function(){var n=e("../client/entry"),r=_jQuery=e("jquery");if(r.ajaxTransport("+*",function(e,t,n){if(window.FormData&&(e.dataType&&("blob"===e.dataType||"arraybuffer"===e.dataType)||e.data&&(window.Blob&&e.data instanceof Blob||window.ArrayBuffer&&e.data instanceof ArrayBuffer)))return{send:function(t,n){var r,i=new XMLHttpRequest,o=e.url||window.location.href,a=e.type||"GET",s=e.dataType||"text",u=e.data||null,c=e.async||!0;for(r in i.addEventListener("load",function(){var e={};i.status>=200&&i.status<300||304===i.status?e[s]=i.response:e.text=String.fromCharCode.apply(null,new Uint8Array(i.response)),n(i.status,i.statusText,e,i.getAllResponseHeaders())}),i.open(a,o,c),i.responseType=s,t)t.hasOwnProperty(r)&&i.setRequestHeader(r,t[r]);i.send(u)},abort:function(){n.abort()}}}),!t.browser){var i=e("jsdom").jsdom().createWindow();r=r(i)}n({defer:function(){return pr=r.Deferred(),pr.promise=pr.promise(),pr},http:function(e){var t=r.Deferred();return r.ajax({type:e.method,url:e.url,dataType:e.dataType||"json",headers:e.headers||{},data:e.data}).done(t.resolve).fail(t.reject),t.promise()},fhirjs:e("../../lib/jqFhir.js")})}).call(this)}).call(this,e("_process"))},{"../../lib/jqFhir.js":1,"../client/entry":48,_process:22,jquery:39,jsdom:2}],45:[function(e,t,n){var r,i=t.exports={debug:!0};i.set=function(e){r=e},i.get=function(){return r}},{}],46:[function(e,t,n){(function(n){var r=e("./adapter"),i=e("./client"),o=e("./guid"),a=e("jsonwebtoken"),s=t.exports={debug:!0};function u(e,t){void 0===t&&(t=!1);for(var n=location.search.substr(1).split("&"),r=[],i=0;i<n.length;i++){var o=n[i].split("=");if(o[0]===e){var a=o[1].replace(/\+/g,"%20");r.push(decodeURIComponent(a))}}return t?r:0===r.length?null:r[0]}function c(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e}function l(){var e;if(s.settings.fullSessionStorageSupport)return e=sessionStorage.tokenResponse,JSON.parse(e);var t=u("state");return JSON.parse(sessionStorage[t]).tokenResponse}function f(){var e=r.get().defer();return n.nextTick(function(){e.resolve(l())}),e}function h(){if(s.settings.fullSessionStorageSupport&&sessionStorage.tokenResponse)return!0;if(!s.settings.fullSessionStorageSupport){var e=u("state")||args.input&&args.input.state;return e&&sessionStorage[e]&&JSON.parse(sessionStorage[e]).tokenResponse}return!1}function d(e){return(window.location.protocol+"//"+window.location.host+window.location.pathname).match(/(.*\/)[^\/]*/)[1]+e}s.settings={replaceBrowserHistory:!0,fullSessionStorageSupport:!0},s.ready=function(e,t,o){var c=(function(){var e=null,t=function(){},n=function(){};if(0===arguments.length)throw"Can't call 'ready' without arguments";if(1===arguments.length)t=arguments[0];else if(2===arguments.length)if("function"==typeof arguments[0])t=arguments[0],n=arguments[1];else{if("object"!=typeof arguments[0])throw"ready called with invalid arguments";e=arguments[0],t=arguments[1]}else{if(3!==arguments.length)throw"ready called with invalid arguments";e=arguments[0],t=arguments[1],n=arguments[2]}return{input:e,callback:t,errback:n}}).apply(this,arguments),d=u("code")||c.input&&c.input.code,p=null;if(function(){if(h()){var e=l();if(e&&e.state)return JSON.parse(sessionStorage[e.state]).fake_token_response}return!1}())p=f(),window.history.replaceState&&s.settings.replaceBrowserHistory&&s.settings.fullSessionStorageSupport&&window.history.replaceState({},"",window.location.toString().replace(window.location.search,""));else if(h()){var g=l(),v=a.decode(g.access_token),y=Math.floor(Date.now()/1e3)>=v.exp-120;p=g.refresh_token&&g.scope.indexOf("online_access")>-1&&y?function(){var e=r.get().defer(),t=l(),n=JSON.parse(sessionStorage[t.state]),i=t.refresh_token;return r.get().http({method:"POST",url:n.provider.oauth2.token_uri,data:{grant_type:"refresh_token",refresh_token:i}}).then(function(n){n=$.extend(t,n),e.resolve(n)},function(){console.warn("Failed to exchange refresh_token for access_token",arguments),e.reject("Failed to exchange refresh token for access token. Please close and re-launch the application again.")}),e.promise}():f()}else p=d?function(e){e||(e={code:u("code"),state:u("state")});var t=r.get().defer(),n=JSON.parse(sessionStorage[e.state]);if(window.history.replaceState&&s.settings.replaceBrowserHistory&&window.history.replaceState({},"",window.location.toString().replace(window.location.search,"")),window.history.pushState&&!s.settings.fullSessionStorageSupport){var i=window.location.search;if(-1==window.location.search.indexOf("state")){i+=window.location.search?"&":"?",i+="state="+e.state;var o=window.location.protocol+"//"+window.location.host+window.location.pathname+i;window.history.pushState({},"",o)}}var a={code:e.code,grant_type:"authorization_code",redirect_uri:n.client.redirect_uri},c={};return n.client.secret?c.Authorization="Basic "+btoa(n.client.client_id+":"+n.client.secret):a.client_id=n.client.client_id,r.get().http({method:"POST",url:n.provider.oauth2.token_uri,data:a,headers:c}).then(function(n){for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.resolve(n)},function(){console.log("failed to exchange code for access_token",arguments),t.reject()}),t.promise}(c.input):function(e){e||(e=window.location.hash);var t=r.get().defer();return n.nextTick(function(){var n=e.match(/#(.*)/);n=(n=n?n[1]:"").split(/&/);for(var r={},i=0;i<n.length;i++){var o=n[i].split(/=/);o[0].length>0&&o[1]&&(r[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}t.resolve(r)}),t.promise}(c.input);p.done(function(e){if(!e||!e.state)return c.errback("No 'state' parameter found in authorization response.");if(s.settings.fullSessionStorageSupport)sessionStorage.tokenResponse=JSON.stringify(e);else{var t=$.extend(!0,JSON.parse(sessionStorage[e.state]),{tokenResponse:e});sessionStorage[e.state]=JSON.stringify(t)}var n=JSON.parse(sessionStorage[e.state]);n.fake_token_response&&(e=n.fake_token_response);var r={serviceUrl:n.provider.url,patientId:e.patient};if(e.id_token){var o=a.decode(e.id_token);r.userId=o.profile}if(void 0!==e.access_token)r.auth={type:"bearer",token:e.access_token};else if(!n.fake_token_response)return c.errback("Failed to obtain access token.");var u=i(r);u.state=JSON.parse(JSON.stringify(n)),u.tokenResponse=JSON.parse(JSON.stringify(e)),c.callback(u)}).fail(function(e){c.errback(e||"Failed to obtain access token.")})},s.authorize=function(e,t){t||(t=function(){console.log("Failed to discover authorization URL given",e)}),delete sessionStorage.tokenResponse,e.client||(e={client:e}),e.response_type||(e.response_type="code"),e.client.redirect_uri||(e.client.redirect_uri=d("")),e.client.redirect_uri.match(/:\/\//)||(e.client.redirect_uri=d(e.client.redirect_uri));var i=u("launch");i&&(e.client.scope.match(/launch/)||(e.client.scope+=" launch"),e.client.launch=i);var a=u("iss")||u("fhirServiceUrl");a&&(e.server||(e.server=a)),u("patientId")&&(e.fake_token_response=e.fake_token_response||{},e.fake_token_response.patient=u("patientId")),function(e,t,i,o){if(!u("fhirServiceUrl")||u("iss"))return t?(t.url=e,void n.nextTick(function(){i&&i(t)})):void r.get().http({method:"GET",url:c(e)+"/metadata"}).then(function(t){var n={name:"SMART on FHIR Testing Server",description:"Dev server for SMART on FHIR",url:e,oauth2:{registration_uri:null,authorize_uri:null,token_uri:null}};try{t.rest[0].security.extension.filter(function(e){return"http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"===e.url})[0].extension.forEach(function(e,t,r){"register"===e.url?n.oauth2.registration_uri=e.valueUri:"authorize"===e.url?n.oauth2.authorize_uri=e.valueUri:"token"===e.url&&(n.oauth2.token_uri=e.valueUri)})}catch(r){return o&&o(r)}i&&i(n)},function(){o&&o("Unable to fetch conformance statement")});n.nextTick(function(){!function(e,t){t&&t({oauth2:null,url:e||u("fhirServiceUrl")})}(e,i)})}(e.server,e.provider,function(t){e.provider=t;var n=e.client.state||o.newGuid(),r=e.client;if(null!=e.provider.oauth2){sessionStorage[n]=JSON.stringify(e),console.log("sending client reg",e.client);var i=e.provider.oauth2.authorize_uri+"?client_id="+encodeURIComponent(r.client_id)+"&response_type="+encodeURIComponent(e.response_type)+"&scope="+encodeURIComponent(r.scope)+"&redirect_uri="+encodeURIComponent(r.redirect_uri)+"&state="+encodeURIComponent(n)+"&aud="+encodeURIComponent(e.server);void 0!==r.launch&&r.launch&&(i+="&launch="+encodeURIComponent(r.launch)),window.location.href=i}else{if(s.settings.fullSessionStorageSupport)sessionStorage[n]=JSON.stringify(e),sessionStorage.tokenResponse=JSON.stringify({state:n});else{var a=$.extend(!0,e,{tokenResponse:{state:n}});sessionStorage[n]=JSON.stringify(a)}window.location.href=r.redirect_uri+"?state="+encodeURIComponent(n)}},t)},s.resolveAuthType=function(e,t,n){r.get().http({method:"GET",url:c(e)+"/metadata"}).then(function(e){var n="none";try{"smart-on-fhir"===e.rest[0].security.service[0].coding[0].code.toLowerCase()&&(n="oauth2")}catch(r){}t&&t(n)},function(){n&&n("Unable to fetch conformance statement")})}}).call(this,e("_process"))},{"./adapter":45,"./client":47,"./guid":49,_process:22,jsonwebtoken:40}],47:[function(e,t,n){var r=e("btoa"),i=e("./adapter");function o(){}t.exports=function(e){var t=new o,n=i.get().fhirjs,a=t.server={serviceUrl:e.serviceUrl,auth:e.auth||{type:"none"}},s={};"basic"===a.auth.type?s={user:a.auth.username,pass:a.auth.password}:"bearer"===a.auth.type&&(s={bearer:a.auth.token}),t.api=n({baseUrl:a.serviceUrl,auth:s}),e.patientId&&(t.patient={},t.patient.id=e.patientId,t.patient.api=n({baseUrl:a.serviceUrl,auth:s,patient:e.patientId}),t.patient.read=function(){return t.get({resource:"Patient"})});var u=t.patient?t.patient.api:t.api;if(t.userId=e.userId,a.auth=a.auth||{type:"none"},!t.server.serviceUrl||!t.server.serviceUrl.match(/https?:\/\/.+[^\/]$/))throw"Must supply a `server` property whose `serviceUrl` begins with http(s) and does NOT include a trailing slash. E.g. `https://fhir.aws.af.cm/fhir`";return t.authenticated=function(e){return"none"===a.auth.type?e:("basic"===a.auth.type?t="Basic "+r(a.auth.username+":"+a.auth.password):"bearer"===a.auth.type&&(t="Bearer "+a.auth.token),e.headers||(e.headers={}),e.headers.Authorization=t,e);var t},t.get=function(e){var t=i.get().defer(),n={type:e.resource};return e.id&&(n.id=e.id),u.read(n).then(function(e){t.resolve(e.data)},function(){t.reject("Could not fetch "+e.resource+" "+e.id)}),t.promise},t.user={read:function(){var e=t.userId;return resource=e.split("/")[0],uid=e.split("/")[1],t.get({resource:resource,id:uid})}},t.getBinary=function(e){var n=i.get().defer();return i.get().http(t.authenticated({type:"GET",url:e,dataType:"blob"})).done(function(e){n.resolve(e)}).fail(function(){n.reject("Could not fetch "+e,arguments)}),n.promise},t.fetchBinary=function(e){var n=function(e,t){return e.match(/^http/)?e:e.match(/^urn/)?e:("/"==e.charAt(0)&&(e=e.substr(1)),t.serviceUrl+"/"+e)}(e,a);return t.getBinary(n)},t};var a=e("./utils");Object.keys(a).forEach(function(e){o.prototype[e]=a[e]})},{"./adapter":45,"./utils":50,btoa:38}],48:[function(e,t,n){var r=e("./client"),i=e("./bb-client"),o=e("./adapter");window.FHIR={client:r,oauth2:i},t.exports=o.set},{"./adapter":45,"./bb-client":46,"./client":47}],49:[function(e,t,n){var r=function(e,t,n){return e.length>=t?e:r(n+e,t,n||" ")},i=function(e){var t=e.toString(16);return r(t,4,"0")};t.exports={newGuid:function(){var e,t,n=void 0!==window.crypto,r=n&&void 0!==window.crypto.getRandomValues;return n&&r?(t=new window.Uint16Array(8),window.crypto.getRandomValues(t),[i(t[0])+i(t[1]),i(t[2]),i(t[3]),i(t[4]),i(t[5])+i(t[6])+i(t[7])].join("-")):(e=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:7&n|8).toString(16)}))},empty:"00000000-0000-0000-0000-000000000000"}},{}],50:[function(e,t,n){var r=t.exports={};function i(e){if("number"!=typeof e.value)throw"Found a non-numerical unit: "+e.value+" "+e.code}r.byCodes=function(e,t){var n=r.byCode(e,t);return function(){for(var e=[],t=0;t<arguments.length;t++){var r=n[arguments[t]];r&&[].push.apply(e,r)}return e}},r.byCode=function(e,t){var n={};return Array.isArray(e)||(e=[e]),e.forEach(function(e){"Observation"===e.resourceType&&e[t]&&Array.isArray(e[t].coding)&&e[t].coding.forEach(function(t){n[t.code]=n[t.code]||[],n[t.code].push(e)})}),n},r.units={cm:function(e){if(i(e),"cm"==e.code)return e.value;if("m"==e.code)return 100*e.value;if("in"==e.code)return 2.54*e.value;if("[in_us]"==e.code)return 2.54*e.value;if("[in_i]"==e.code)return 2.54*e.value;throw"Unrecognized length unit: "+e.code},kg:function(e){if(i(e),"kg"==e.code)return e.value;if("g"==e.code)return e.value/1e3;if(e.code.match(/lb/))return e.value/2.20462;if(e.code.match(/oz/))return e.value/35.274;throw"Unrecognized weight unit: "+e.code},any:function(e){return i(e),e.value}}},{}]},{},[44]);