Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added dist versions

  • Loading branch information...
commit d393b55094bff0a8a5821426944b65501ec2c35b 1 parent de4db64
@unscriptable unscriptable authored
View
39 dist/curl-for-dojo1.6/curl.js
@@ -1,22 +1,23 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var h=!0,k=!1,l=this.window||global;function m(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function r(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function s(a,b){var c,d,e,f;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(ba,function(a,b,d,f){d&&c++;return f||""}));if(e){e=b.split("/");f=e.length-c;if(0>f)return a;e.splice(f,c);return e.concat(d||[]).join("/")}return d}function t(a){var b=a.indexOf("!");return{m:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function u(){}
-function v(a,b){u.prototype=a||w;var c=new u;u.prototype=w;for(var d in b)c[d]=b[d];return c}function y(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(f,c){a=f?function(a){a&&a(c)}:function(a,b){b&&b(c)};e=m;b(f?0:1,c);b=m;d=z};this.X=function(b,d,e){a(b,d,e)};this.g=function(a){c.ba=a;e(h,a)};this.f=function(a){c.aa=a;e(k,a)};this.q=function(a){b(2,a)}}function A(a,b,c,d){a instanceof y?a.X(b,c,d):b(a)}
-function B(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(z,arguments));0==a&&c&&c(d);return d}}function C(){var a=[].slice.call(arguments),b;p(a[0],"Object")&&(b=a.shift(),D=G.a(b,D),G.t(b));return new H(a[0],a[1],a[2])}function H(a,b,c,d){var e;e=G.d(D,z,[].concat(a));this.then=a=function(a,b){A(e,function(b){a&&a.apply(z,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new H(a,b,d,e)};(b||c)&&a(b,c);A(d,function(){G.i(e)})}
-function I(a){var b,c;b=a.id;if(b==z)if(J!==z)J={A:"Multiple anonymous defines in url"};else if(!(b=G.R()))J=a;if(b!=z){c=K[b];b in K||(c=G.l(b,D),c=G.v(c.a,b),K[b]=c);if(!(c instanceof y))throw Error("duplicate define: "+b);c.Y=k;G.w(c,a)}}
-var D,L,M,N=l.document,O=N&&(N.head||N.getElementsByTagName("head")[0]),ca=O&&O.getElementsByTagName("base")[0]||null,da={},ea={},P={},fa="addEventListener"in l?{}:{loaded:1,complete:1},w={},aa=w.toString,z,K={},Q={},R=k,J,ga=/\?/,ha=/^\/|^[^:]+:\/\//,ba=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ia=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ja=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,S,G;
-G={h:function(a,b,c){var d,a=s(a,b);if("."==a.charAt(0))return a;d=t(a);a=(b=d.j)||d.m;a in c.c&&(a=c.c[a].U||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=r(c.W)+"/"+b),a=a+"!"+d.m);return a},d:function(a,b,c,d){function e(b){return G.h(b,g.id,a)}function f(b,c,f){var j;j=c&&function(a){c.apply(z,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");f=e(b);b=K[f];if(!(f in K))throw Error("Module not resolved: "+f);return(f=b instanceof y&&b.b)||b}A(G.i(G.d(a,g.id,b,d)),j,f)}var g;
-g=new y;g.id=b||"";g.S=d;g.z=c;g.a=a;g.k=f;f.toUrl=function(b){return G.l(e(b),a).url};g.h=e;return g},v:function(a,b,c){var d,e,f;d=G.d(a,b,z,c);e=d.g;f=B(1,function(a){d.o=a;try{return G.K(d)}catch(b){d.f(b)}});d.g=function(a){A(c||R,function(){e(K[d.id]=Q[d.url]=f(a))})};d.B=function(a){A(c||R,function(){d.b&&(f(a),d.q(ea))})};return d},I:function(a,b,c,d){return G.d(a,c,z,d)},Q:function(a){return a.k},C:function(a){return a.b||(a.b={})},P:function(a){var b=a.p;b||(b=a.p={id:a.id,uri:G.D(a),exports:G.C(a),
-config:function(){return a.a}},b.b=b.exports);return b},D:function(a){return a.url||(a.url=G.u(a.k.toUrl(a.id),a.a))},a:function(a){var b,c,d,e,f,g;b=!a;a&&(G.a=G.F);a||(a={});d=a.apiName||"curl";e=a.apiContext||l;f=a.defineName||"define";g=a.defineContext||l;c=a.overwriteApi;!b&&L&&(l.curl=L,L=k);if(!b&&!c&&e[d]&&e[d]!=C)throw Error(d+" already exists");e[d]=C;if(!b||!l.define){if(!b&&!c&&f in g&&g[f]!=M)throw Error(f+" already exists");g[f]=M=function(){var a=G.O(arguments);I(a)};M.amd={plugins:h,
-jQuery:h,curl:"0.7.2"}}return G.F(a)},F:function(a,b){function c(a,b){var d,c,g,i,E;for(E in a){g=a[E];p(g,"String")&&(g={path:a[E]});g.name=g.name||E;i=e;c=t(r(G.h(g.name,"",e)));d=c.m;if(c=c.j)i=f[c],i||(i=f[c]=v(e),i.c=v(e.c),i.e=[]),delete a[E];if(b){c=g;var F=void 0;c.path=r(c.path||c.location||"");F=c.main||"./main";"."==F.charAt(0)||(F="./"+F);c.U=s(F,c.name+"/");c.a=c.config;c.a&&(c.a=v(e,c.a))}else c={path:r(g.path)};c.H=d.split("/").length;d?(i.c[d]=c,i.e.push(d)):i.s=G.G(g.path,e)}}function d(a){var b=
-a.c;a.V=RegExp("^("+a.e.sort(function(a,c){return b[c].H-b[a].H}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,f,g,i;b||(b={});e=v(b,a);e.s=e.baseUrl||"";e.W=e.pluginPath||"curl/plugin";e.J=RegExp(e.dontAddFileExt||ga);e.c=v(b.c);f=a.plugins||{};e.plugins=v(b.plugins);e.e=[];c(a.packages,h);c(a.paths,k);for(g in f)i=G.h(g+"!","",e),e.plugins[i.substr(0,i.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=v(e,f[g]),i=f[g].e)f[g].e=i.concat(e.e),d(f[g]);d(e);return e},t:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&A(R,function(){R=G.i(G.d(D,z,b,h))})},l:function(a,b){var c,d,e,f;c=b.c;e=ha.test(a)?a:a.replace(b.V,function(a){d=c[a]||{};f=d.a;return d.path||""});return{a:f||D,url:G.G(e,b)}},G:function(a,b){var c=b.s;return c&&!ha.test(a)?r(c)+"/"+a:a},u:function(a,b){return a+((b||D).J.test(a)?"":".js")},T:function(a,b,c){var d=N.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||l.event;if("load"==c.type||fa[d.readyState])delete P[a.id],d.onload=d.onreadystatechange=
-d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.Z||"text/javascript";d.charset="utf-8";d.async=!a.$;d.src=a.url;P[a.id]=d;O.insertBefore(d,ca);return d},L:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ia,"").replace(ja,function(a,e,f){f?c=c==f?z:c:c||b.push(e);return""});return b},O:function(a){var b,c,d,e,f,g;f=a.length;d=a[f-1];e=p(d,"Function")?d.length:-1;2==f?p(a[0],"Array")?c=a[0]:b=a[0]:3==f&&(b=a[0],c=a[1]);
-!c&&0<e&&(g=h,c=["require","exports","module"].slice(0,e).concat(G.L(d)));return{id:b,o:c||[],r:0<=e?d:function(){return d},n:g}},K:function(a){var b;b=a.r.apply(a.n?a.b:z,a.o);b===z&&a.b&&(b=a.p?a.b=a.p.b:a.b);return b},w:function(a,b){a.r=b.r;a.n=b.n;a.z=b.o;G.i(a)},i:function(a){function b(a,b,c){g[b]=a;c&&q(a,b)}function c(b,c){var d,e,f,g;d=B(1,function(a){e(a);j(a,c)});e=B(1,function(a){q(a,c)});f=G.M(b,a);(g=f instanceof y&&f.b)&&e(g);A(f,d,a.f,a.b&&function(a){f.b&&(a==da?e(f.b):a==ea&&d(f.b))})}
-function d(){a.g(g)}var e,f,g,i,n,q,j;g=[];f=a.z;i=f.length;0==f.length&&d();q=B(i,b,function(){a.B&&a.B(g)});j=B(i,b,d);for(e=0;e<i;e++)n=f[e],n in S?(j(S[n](a),e,h),a.b&&a.q(da)):n?c(n,e):j(z,e,h);return a},N:function(a){G.D(a);G.T(a,function(){var b=J;J=z;a.Y!==k&&(!b||b.A?a.f(Error(b&&b.A||"define() missing or duplicated: "+a.url)):G.w(a,b))},a.f);return a},M:function(a,b){var c,d,e,f,g,i,n,q,j,x,U;c=b.h;d=b.S;e=b.a||D;f=t(c(a));n=f.m;g=f.j||n;q=G.l(g,e);if(f.j)i=g;else if(i=q.a.moduleLoader)n=
-g,g=i,q=G.l(i,e);g in K?j=K[g]:q.url in Q?j=K[g]=Q[q.url]:(j=G.v(q.a,g,d),j.url=G.u(q.url,q.a),K[g]=Q[q.url]=j,G.N(j));g==i&&(x=new y,U=e.plugins[i]||e,A(j,function(a){var b,e,f;f=a.dynamic;n="normalize"in a?a.normalize(n,c,j.a)||"":c(n);e=i+"!"+n;b=K[e];if(!(e in K)){b=G.I(U,e,n,d);f||(K[e]=b);var g=function(a){b.g(a);f||(K[e]=a)};g.resolve=g;g.reject=g.error=b.f;a.load(n,b.k,g,U)}x!=b&&A(b,x.g,x.f,x.q)},x.f));return x||j},R:function(){var a;if(!p(l.opera,"Opera"))for(var b in P)if("interactive"==
-P[b].readyState){a=b;break}return a}};S={require:G.Q,exports:G.C,module:G.P};C.version="0.7.2";D=l.curl;"function"==typeof D?(L=D,D=k):l.curl=z;D=G.a(D);G.t(D);K.curl=C;K["curl/_privileged"]={core:G,cache:K,config:function(){return D},_define:I,_curl:C,Promise:y};var T=this.document;function ka(){if(!T.body)return k;V||(V=T.createTextNode(""));try{return T.body.removeChild(T.body.appendChild(V)),V=la,h}catch(a){return k}}
-function W(){var a;a=ma[T[X]]&&ka();if(!Y&&a){Y=h;for(clearTimeout(Z);na=oa.pop();)na();pa&&(T[X]="complete");for(var b;b=qa.shift();)b()}return a}function ra(){W();Y||(Z=setTimeout(ra,sa))}var X="readyState",ma={loaded:1,interactive:1,complete:1},qa=[],pa=T&&"string"!=typeof T[X],Y=k,sa=10,$,na,oa=[],Z,la,V;$="addEventListener"in this?function(a,b){a.addEventListener(b,W,k);return function(){a.removeEventListener(b,W,k)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};
-T&&!W()&&(oa=[$(this,"load"),$(T,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(ra,sa));define("curl/domReady",function(){function a(a){Y?a():qa.push(a)}a.then=a;a.amd=h;return a});var ta;
-define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function c(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,c){return a.toUrl(b+(c||""))});a.cache||(a.cache={})}var d=a._curl,e=a.core.d;c(d);"undefined"==typeof ta&&(ta=d);a.core.d=function(){var a=e.apply(this,arguments);c(a.k);return a};return h});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});
+var h=!0,i=!1,k=this.window||"undefined"!=typeof global&&global||this;function n(){}function r(a,b){return 0==aa.call(a).indexOf("[object "+b)}function s(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function t(a,b){var c,d,e,f;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(ba,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");f=e.length-c;if(0>f)return a;e.splice(f,c);return e.concat(d||[]).join("/")}return d}
+function u(a){var b=a.indexOf("!");return{m:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function v(){}function w(a,b){v.prototype=a||x;var c=new v;v.prototype=x;for(var d in b)c[d]=b[d];return c}
+function y(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,g){a=c?function(a){a&&a(g)}:function(a,b){b&&b(g)};e=n;b(c?0:1,g);b=n;d=z};this.Z=function(b,d,e){a(b,d,e)};this.h=function(a){c.ka=a;e(h,a)};this.f=function(a){c.ja=a;e(i,a)};this.u=function(a){b(2,a)}}function B(a,b,c,d){a instanceof y?a.Z(b,c,d):b(a)}function C(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(z,arguments));0==a&&c&&c(d);return d}}
+function D(){var a=[].slice.call(arguments),b;r(a[0],"Object")&&(b=a.shift(),E(b));return new ca(a[0],a[1],a[2])}function E(a){a&&(F.L(a),G=F.a(a),F.N(a),"main"in a&&setTimeout(function(){var b;b=F.d(G,z,[].concat(a.main));F.g(b)},0))}function ca(a,b,c,d){var e;e=F.d(G,z,[].concat(a));this.then=a=function(a,b){B(e,function(b){a&&a.apply(z,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new ca(a,b,d,e)};this.config=E;(b||c)&&a(b,c);B(d,function(){F.g(e)})}
+function da(a){var b,c;b=a.id;if(b==z)if(J!==z)J={C:"Multiple anonymous defines in url"};else if(!(b=F.W()))J=a;if(b!=z){c=K[b];b in K||(c=F.l(b,G),c=F.z(c.a,b),K[b]=c);if(!(c instanceof y))throw Error("duplicate define: "+b);c.$=i;F.A(c,a)}}function L(){var a=F.T(arguments);da(a)}
+var G,M,N,O=k.document,P=O&&(O.head||O.getElementsByTagName("head")[0]),ea=P&&P.getElementsByTagName("base")[0]||null,fa={},ga={},Q={},ha="addEventListener"in k?{}:{loaded:1,complete:1},x={},aa=x.toString,z,K={},R={},S=i,J,ia=/^\/|^[^:]+:\/\//,ba=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ja=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ka=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,T,F;
+F={n:function(a,b,c){var d,a=t(a,b);if("."==a.charAt(0))return a;d=u(a);a=(b=d.j)||d.m;a in c.c&&(a=c.c[a].H||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=s(c.J)+"/"+b),a=a+"!"+d.m);return a},d:function(a,b,c,d){function e(b){return F.n(b,g.id,a)}function f(b,c,f){var j;j=c&&function(a){c.apply(z,a)};if(r(b,"String")){if(j)throw Error("require(id, callback) not allowed");f=e(b);b=K[f];if(!(f in K))throw Error("Module not resolved: "+f);return(f=b instanceof y&&b.b)||b}B(F.g(F.d(a,g.id,b,d)),j,f)}var g;
+g=new y;g.id=b||"";g.X=d;g.B=c;g.a=a;g.k=f;f.toUrl=function(b){return F.l(e(b),a).url};g.n=e;return g},z:function(a,b,c){var d,e,f;d=F.d(a,b,z,c);e=d.h;f=C(1,function(a){d.q=a;try{return F.P(d)}catch(b){d.f(b)}});d.h=function(a){B(c||S,function(){e(K[d.id]=R[d.url]=f(a))})};d.D=function(a){B(c||S,function(){d.b&&(f(a),d.u(ga))})};return d},O:function(a,b,c,d){return F.d(a,c,z,d)},V:function(a){return a.k},F:function(a){return a.b||(a.b={})},U:function(a){var b=a.r;b||(b=a.r={id:a.id,uri:F.G(a),exports:F.F(a),
+config:function(){return a.a}},b.b=b.exports);return b},G:function(a){return a.url||(a.url=F.w(a.k.toUrl(a.id),a.a))},L:function(a){var b,c,d,e,f;b="curl";c="define";d=e=k;if(a&&(f=a.overwriteApi||a.ha,b=a.apiName||a.ba||b,d=a.apiContext||a.aa||d,c=a.defineName||a.da||c,e=a.defineContext||a.ca||e,M&&r(M,"Function")&&(k.curl=M),M=null,N&&r(N,"Function")&&(k.define=N),N=null,!f)){if(d[b]&&d[b]!=D)throw Error(b+" already exists");if(e[c]&&e[c]!=L)throw Error(c+" already exists");}d[b]=D;e[c]=L},a:function(a){function b(a,
+b){var d,c,g,p,H;for(H in a){g=a[H];r(g,"String")&&(g={path:a[H]});g.name=g.name||H;p=e;c=u(s(g.name));d=c.m;if(c=c.j)p=f[c],p||(p=f[c]=w(e),p.c=w(e.c),p.e=[]),delete a[H];if(b){c=g;var I=void 0;c.path=s(c.path||c.location||"");I=c.main||"./main";"."==I.charAt(0)||(I="./"+I);c.H=t(I,c.name+"/");c.a=c.config;c.a&&(c.a=w(e,c.a))}else c={path:s(g.path)};c.M=d.split("/").length;d?(p.c[d]=c,p.e.push(d)):p.o=F.K(g.path,e)}}function c(a){var b=a.c;a.I=RegExp("^("+a.e.sort(function(a,c){return b[c].M-b[a].M}).join("|").replace(/\/|\./g,
+"\\$&")+")(?=\\/|$)");delete a.e}var d,e,f,g;"baseUrl"in a&&(a.o=a.baseUrl);"main"in a&&(a.H=a.main);"preloads"in a&&(a.ia=a.preloads);"pluginPath"in a&&(a.J=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=RegExp(a.dontAddFileExt||a.i);d=G;e=w(d,a);e.c=w(d.c);f=a.plugins||{};e.plugins=w(d.plugins);e.t=w(d.t,a.t);e.s=w(d.s,a.s);e.e=[];b(a.packages,h);b(a.paths,i);for(g in f)a=F.n(g+"!","",e),e.plugins[a.substr(0,a.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=w(e,f[g]),a=f[g].e)f[g].e=a.concat(e.e),
+c(f[g]);for(g in d.c)e.c.hasOwnProperty(g)||e.e.push(g);c(e);return e},N:function(a){var b;(b=a&&a.preloads)&&0<b.length&&B(S,function(){S=F.g(F.d(G,z,b,h))})},l:function(a,b){var c,d,e,f;c=b.c;e=ia.test(a)?a:a.replace(b.I,function(a){d=c[a]||{};f=d.a;return d.path||""});return{a:f||G,url:F.K(e,b)}},K:function(a,b){var c=b.o;return c&&!ia.test(a)?s(c)+"/"+a:a},w:function(a,b){return a+((b||G).i.test(a)?"":".js")},Y:function(a,b,c){var d=O.createElement("script");d.onload=d.onreadystatechange=function(c){c=
+c||k.event;if("load"==c.type||ha[d.readyState])delete Q[a.id],d.onload=d.onreadystatechange=d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.ea||"text/javascript";d.charset="utf-8";d.async=!a.ga;d.src=a.url;Q[a.id]=d;P.insertBefore(d,ea);return d},Q:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ja,"").replace(ka,function(a,e,f){f?c=c==f?z:c:c||b.push(e);return""});return b},T:function(a){var b,c,d,e,f,g;f=a.length;
+d=a[f-1];e=r(d,"Function")?d.length:-1;2==f?r(a[0],"Array")?c=a[0]:b=a[0]:3==f&&(b=a[0],c=a[1]);!c&&0<e&&(g=h,c=["require","exports","module"].slice(0,e).concat(F.Q(d)));return{id:b,q:c||[],v:0<=e?d:function(){return d},p:g}},P:function(a){var b;b=a.v.apply(a.p?a.b:z,a.q);b===z&&a.b&&(b=a.r?a.b=a.r.b:a.b);return b},A:function(a,b){a.v=b.v;a.p=b.p;a.B=b.q;F.g(a)},g:function(a){function b(a,b,c){g[b]=a;c&&m(a,b)}function c(b,c){var d,e,f,g;d=C(1,function(a){e(a);j(a,c)});e=C(1,function(a){m(a,c)});
+f=F.R(b,a);(g=f instanceof y&&f.b)&&e(g);B(f,d,a.f,a.b&&function(a){f.b&&(a==fa?e(f.b):a==ga&&d(f.b))})}function d(){a.h(g)}var e,f,g,q,l,m,j;g=[];f=a.B;q=f.length;0==f.length&&d();m=C(q,b,function(){a.D&&a.D(g)});j=C(q,b,d);for(e=0;e<q;e++)l=f[e],l in T?(j(T[l](a),e,h),a.b&&a.u(fa)):l?c(l,e):j(z,e,h);return a},S:function(a){F.G(a);F.Y(a,function(){var b=J;J=z;a.$!==i&&(!b||b.C?a.f(Error(b&&b.C||"define() missing or duplicated: "+a.url)):F.A(a,b))},a.f);return a},R:function(a,b){var c,d,e,f,g,q,l,
+m,j,A,p;c=b.n;d=b.X;e=b.a||G;f=u(c(a));l=f.m;g=f.j||l;m=F.l(g,e);if(f.j)q=g;else if(q=m.a.moduleLoader||m.a.fa)l=g,g=q,m=F.l(q,e);g in K?j=K[g]:m.url in R?j=K[g]=R[m.url]:(j=F.z(m.a,g,d),j.url=F.w(m.url,m.a),K[g]=R[m.url]=j,F.S(j));g==q&&(A=new y,p=e.plugins[q]||e,B(j,function(a){var b,e,f;f=a.dynamic;l="normalize"in a?a.normalize(l,c,j.a)||"":c(l);e=q+"!"+l;b=K[e];if(!(e in K)){b=F.O(p,e,l,d);f||(K[e]=b);var g=function(a){b.h(a);f||(K[e]=a)};g.resolve=g;g.reject=g.error=b.f;a.load(l,b.k,g,p)}A!=
+b&&B(b,A.h,A.f,A.u)},A.f));return A||j},W:function(){var a;if(!r(k.opera,"Opera"))for(var b in Q)if("interactive"==Q[b].readyState){a=b;break}return a}};T={require:F.V,exports:F.F,module:F.U};D.version="0.7.3";D.config=E;L.amd={plugins:h,jQuery:h,curl:"0.7.3"};G={o:"",J:"curl/plugin",i:/\?|\.js\b/,t:{},s:{},plugins:{},c:{},I:/$^/};M=k.curl;N=k.define;!M||r(M,"Function")?F.L():(k.curl=z,E(M));K.curl=D;K["curl/_privileged"]={core:F,cache:K,config:function(){return G},_define:da,_curl:D,Promise:y};
+var U=this.document;function la(){if(!U.body)return i;V||(V=U.createTextNode(""));try{return U.body.removeChild(U.body.appendChild(V)),V=ma,h}catch(a){return i}}function W(){var a;a=na[U[X]]&&la();if(!Y&&a){Y=h;for(clearTimeout(Z);oa=pa.pop();)oa();qa&&(U[X]="complete");for(var b;b=ra.shift();)b()}return a}function sa(){W();Y||(Z=setTimeout(sa,ta))}var X="readyState",na={loaded:1,interactive:1,complete:1},ra=[],qa=U&&"string"!=typeof U[X],Y=i,ta=10,$,oa,pa=[],Z,ma,V;
+$="addEventListener"in this?function(a,b){a.addEventListener(b,W,i);return function(){a.removeEventListener(b,W,i)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};U&&!W()&&(pa=[$(this,"load"),$(U,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(sa,ta));define("curl/domReady",function(){function a(a){Y?a():ra.push(a)}a.then=a;a.amd=h;return a});var ua;
+define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function c(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,c){return a.toUrl(b+(c||""))});a.cache||(a.cache={})}var d=a._curl,e=a.core.d;c(d);"undefined"==typeof ua&&(ua=d);a.core.d=function(){var a=e.apply(this,arguments);c(a.k);return a};return h});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});
}).call(this);
View
45 dist/curl-for-jQuery/curl.js
@@ -1,25 +1,26 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var h=!0,l=!1,m=this.window||global;function n(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function t(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ba(a,b){var d,c,e,g;d=1;c=a;"."==c.charAt(0)&&(e=h,c=c.replace(ca,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");g=e.length-d;if(0>g)return a;e.splice(g,d);return e.concat(c||[]).join("/")}return c}function u(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}
-function w(){}function x(a,b){w.prototype=a||A;var d=new w;w.prototype=A;for(var c in b)d[c]=b[c];return d}function B(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=n;b(d?0:1,f);b=n;c=C};this.t=function(b,c,e){a(b,c,e)};this.f=function(a){d.s=a;e(h,a)};this.d=function(a){d.ca=a;e(l,a)};this.p=function(a){b(2,a)}}function E(a,b,d,c){a instanceof B?a.t(b,d,c):b(a)}
-function F(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(C,arguments));0==a&&d&&d(c);return c}}function G(){var a=[].slice.call(arguments),b;p(a[0],"Object")&&(b=a.shift(),H=I.b(b,H),I.v(b));return new da(a[0],a[1],a[2])}function da(a,b,d,c){var e;e=I.g(H,C,[].concat(a));this.then=a=function(a,b){E(e,function(b){a&&a.apply(C,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,c){return new da(a,b,c,e)};(b||d)&&a(b,d);E(c,function(){I.i(e)})}
-function ea(a){var b,d;b=a.id;if(b==C)if(J!==C)J={C:"Multiple anonymous defines in url"};else if(!(b=I.V()))J=a;if(b!=C){d=K[b];b in K||(d=I.k(b,H),d=I.z(d.b,b),K[b]=d);if(!(d instanceof B))throw Error("duplicate define: "+b);d.ba=l;I.A(d,a)}}
-var H,L,M,N=m.document,O=N&&(N.head||N.getElementsByTagName("head")[0]),fa=O&&O.getElementsByTagName("base")[0]||null,ha={},ia={},P={},ja="addEventListener"in m?{}:{loaded:1,complete:1},A={},aa=A.toString,C,K={},Q={},R=l,J,ka=/\?/,la=/^\/|^[^:]+:\/\//,ca=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ma=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,na=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,S,I;
-I={h:function(a,b,d){var c,a=ba(a,b);if("."==a.charAt(0))return a;c=u(a);a=(b=c.j)||c.l;a in d.c&&(a=d.c[a].X||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=t(d.$)+"/"+b),a=a+"!"+c.l);return a},g:function(a,b,d,c){function e(b){return I.h(b,f.id,a)}function g(b,d,g){var j;j=d&&function(a){d.apply(C,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=K[g];if(!(g in K))throw Error("Module not resolved: "+g);return(g=b instanceof B&&b.a)||b}E(I.i(I.g(a,f.id,b,c)),j,g)}var f;
-f=new B;f.id=b||"";f.W=c;f.B=d;f.b=a;f.q=g;g.toUrl=function(b){return I.k(e(b),a).url};f.h=e;return f},z:function(a,b,d){var c,e,g;c=I.g(a,b,C,d);e=c.f;g=F(1,function(a){c.n=a;try{return I.O(c)}catch(b){c.d(b)}});c.f=function(a){E(d||R,function(){e(K[c.id]=Q[c.url]=g(a))})};c.D=function(a){E(d||R,function(){c.a&&(g(a),c.p(ia))})};return c},M:function(a,b,d,c){return I.g(a,d,C,c)},U:function(a){return a.q},F:function(a){return a.a||(a.a={})},T:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:I.G(a),exports:I.F(a),
-config:function(){return a.b}},b.a=b.exports);return b},G:function(a){return a.url||(a.url=I.w(a.q.toUrl(a.id),a.b))},b:function(a){var b,d,c,e,g,f;b=!a;a&&(I.b=I.J);a||(a={});c=a.apiName||"curl";e=a.apiContext||m;g=a.defineName||"define";f=a.defineContext||m;d=a.overwriteApi;!b&&L&&(m.curl=L,L=l);if(!b&&!d&&e[c]&&e[c]!=G)throw Error(c+" already exists");e[c]=G;if(!b||!m.define){if(!b&&!d&&g in f&&f[g]!=M)throw Error(g+" already exists");f[g]=M=function(){var a=I.S(arguments);ea(a)};M.amd={plugins:h,
-jQuery:h,curl:"0.7.2"}}return I.J(a)},J:function(a,b){function d(a,b){var c,d,f,s,v;for(v in a){f=a[v];p(f,"String")&&(f={path:a[v]});f.name=f.name||v;s=e;d=u(t(I.h(f.name,"",e)));c=d.l;if(d=d.j)s=g[d],s||(s=g[d]=x(e),s.c=x(e.c),s.e=[]),delete a[v];if(b){d=f;var y=void 0;d.path=t(d.path||d.location||"");y=d.main||"./main";"."==y.charAt(0)||(y="./"+y);d.X=ba(y,d.name+"/");d.b=d.config;d.b&&(d.b=x(e,d.b))}else d={path:t(f.path)};d.L=c.split("/").length;c?(s.c[c]=d,s.e.push(c)):s.u=I.K(f.path,e)}}function c(a){var b=
-a.c;a.Z=RegExp("^("+a.e.sort(function(a,c){return b[c].L-b[a].L}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,g,f,i;b||(b={});e=x(b,a);e.u=e.baseUrl||"";e.$=e.pluginPath||"curl/plugin";e.N=RegExp(e.dontAddFileExt||ka);e.c=x(b.c);g=a.plugins||{};e.plugins=x(b.plugins);e.e=[];d(a.packages,h);d(a.paths,l);for(f in g)i=I.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=x(e,g[f]),i=g[f].e)g[f].e=i.concat(e.e),c(g[f]);c(e);return e},v:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&E(R,function(){R=I.i(I.g(H,C,b,h))})},k:function(a,b){var d,c,e,g;d=b.c;e=la.test(a)?a:a.replace(b.Z,function(a){c=d[a]||{};g=c.b;return c.path||""});return{b:g||H,url:I.K(e,b)}},K:function(a,b){var d=b.u;return d&&!la.test(a)?t(d)+"/"+a:a},w:function(a,b){return a+((b||H).N.test(a)?"":".js")},H:function(a,b,d){var c=N.createElement("script");c.onload=c.onreadystatechange=function(d){d=d||m.event;if("load"==d.type||ja[c.readyState])delete P[a.id],c.onload=c.onreadystatechange=
-c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.I||"text/javascript";c.charset="utf-8";c.async=!a.Y;c.src=a.url;P[a.id]=c;O.insertBefore(c,fa);return c},P:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ma,"").replace(na,function(a,e,g){g?d=d==g?C:d:d||b.push(e);return""});return b},S:function(a){var b,d,c,e,g,f;g=a.length;c=a[g-1];e=p(c,"Function")?c.length:-1;2==g?p(a[0],"Array")?d=a[0]:b=a[0]:3==g&&(b=a[0],d=a[1]);
-!d&&0<e&&(f=h,d=["require","exports","module"].slice(0,e).concat(I.P(c)));return{id:b,n:d||[],r:0<=e?c:function(){return c},m:f}},O:function(a){var b;b=a.r.apply(a.m?a.a:C,a.n);b===C&&a.a&&(b=a.o?a.a=a.o.a:a.a);return b},A:function(a,b){a.r=b.r;a.m=b.m;a.B=b.n;I.i(a)},i:function(a){function b(a,b,c){f[b]=a;c&&k(a,b)}function d(b,c){var d,e,f,g;d=F(1,function(a){e(a);j(a,c)});e=F(1,function(a){k(a,c)});f=I.Q(b,a);(g=f instanceof B&&f.a)&&e(g);E(f,d,a.d,a.a&&function(a){f.a&&(a==ha?e(f.a):a==ia&&d(f.a))})}
-function c(){a.f(f)}var e,g,f,i,q,k,j;f=[];g=a.B;i=g.length;0==g.length&&c();k=F(i,b,function(){a.D&&a.D(f)});j=F(i,b,c);for(e=0;e<i;e++)q=g[e],q in S?(j(S[q](a),e,h),a.a&&a.p(ha)):q?d(q,e):j(C,e,h);return a},R:function(a){I.G(a);I.H(a,function(){var b=J;J=C;a.ba!==l&&(!b||b.C?a.d(Error(b&&b.C||"define() missing or duplicated: "+a.url)):I.A(a,b))},a.d);return a},Q:function(a,b){var d,c,e,g,f,i,q,k,j,r,D;d=b.h;c=b.W;e=b.b||H;g=u(d(a));q=g.l;f=g.j||q;k=I.k(f,e);if(g.j)i=f;else if(i=k.b.moduleLoader)q=
-f,f=i,k=I.k(i,e);f in K?j=K[f]:k.url in Q?j=K[f]=Q[k.url]:(j=I.z(k.b,f,c),j.url=I.w(k.url,k.b),K[f]=Q[k.url]=j,I.R(j));f==i&&(r=new B,D=e.plugins[i]||e,E(j,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,d,j.b)||"":d(q);e=i+"!"+q;b=K[e];if(!(e in K)){b=I.M(D,e,q,c);f||(K[e]=b);var g=function(a){b.f(a);f||(K[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(q,b.q,g,D)}r!=b&&E(b,r.f,r.d,r.p)},r.d));return r||j},V:function(){var a;if(!p(m.opera,"Opera"))for(var b in P)if("interactive"==
-P[b].readyState){a=b;break}return a}};S={require:I.U,exports:I.F,module:I.T};G.version="0.7.2";H=m.curl;"function"==typeof H?(L=H,H=l):m.curl=C;H=I.b(H);I.v(H);K.curl=G;K["curl/_privileged"]={core:I,cache:K,config:function(){return H},_define:ea,_curl:G,Promise:B};var T=this.document;function oa(){if(!T.body)return l;U||(U=T.createTextNode(""));try{return T.body.removeChild(T.body.appendChild(U)),U=pa,h}catch(a){return l}}
-function V(){var a;a=qa[T[W]]&&oa();if(!X&&a){X=h;for(clearTimeout(Y);ra=sa.pop();)ra();ta&&(T[W]="complete");for(var b;b=ua.shift();)b()}return a}function va(){V();X||(Y=setTimeout(va,wa))}var W="readyState",qa={loaded:1,interactive:1,complete:1},ua=[],ta=T&&"string"!=typeof T[W],X=l,wa=10,Z,ra,sa=[],Y,pa,U;Z="addEventListener"in this?function(a,b){a.addEventListener(b,V,l);return function(){a.removeEventListener(b,V,l)}}:function(a,b){a.attachEvent("on"+b,V);return function(){a.detachEvent(b,V)}};
-T&&!V()&&(sa=[Z(this,"load"),Z(T,"readystatechange"),Z(this,"DOMContentLoaded")],Y=setTimeout(va,wa));define("curl/domReady",function(){function a(a){X?a():ua.push(a)}a.then=a;a.amd=h;return a});var xa=this.document;function ya(a){try{return eval(a)}catch(b){}}
-define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,c,d){function e(){g||(f<new Date?d():setTimeout(e,10))}var f,g,i;f=(new Date).valueOf()+(b.aa||3E5);d&&b.a&&setTimeout(e,10);i=a.core.H(b,function(){g=h;b.a&&(b.s=ya(b.a));!b.a||b.s?c(i):d()},function(a){g=h;d(a)})}function d(a,c){b(a,function(){var b=e.shift();i=0<e.length;b&&d.apply(null,b);c.f(a.s||h)},function(a){c.d(a)})}var c={},e=[],g=xa&&xa.createElement("script").async==h,f,i;f=a.Promise;return{dynamic:h,normalize:function(a,
-b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,k,j,r){function D(a){(j.error||function(a){throw a;})(a)}var s,v,y,ga,z;s=0<a.indexOf("!order");v=a.indexOf("!exports=");y=0<v&&a.substr(v+9);ga="prefetch"in r?r.prefetch:h;a=s||0<v?a.substr(0,a.indexOf("!")):a;k=k.toUrl(a);z=k.lastIndexOf(".")<=k.lastIndexOf("/")?k+".js":k;z in c?c[z]instanceof f?c[z].t(j,D):j(c[z]):(a={name:a,url:z,Y:s,a:y,aa:r.timeout},c[z]=r=new f,r.t(function(a){c[z]=a;j(a)},D),s&&!g&&i?(e.push([a,
-r]),ga&&(a.I="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.I="")):(i=i||s,d(a,r)))}}});var $=this.document,za=/^\/\//,Aa;$&&(Aa=$.head||($.head=$.getElementsByTagName("head")[0]));
-define("curl/plugin/link",{load:function(a,b,d,c){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;c=a=(c="fixSchemalessUrls"in c?c.fixSchemalessUrls:$.location.protocol)?a.replace(za,c+"//"):a;a=$.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=c;Aa.appendChild(a);d(a.sheet||a.styleSheet)}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});
+var h=!0,l=!1,m=this.window||"undefined"!=typeof global&&global||this;function aa(){}function n(a,b){return 0==ba.call(a).indexOf("[object "+b)}function s(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ca(a,b){var d,c,e,g;d=1;c=a;"."==c.charAt(0)&&(e=h,c=c.replace(da,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");g=e.length-d;if(0>g)return a;e.splice(g,d);return e.concat(c||[]).join("/")}return c}
+function u(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function v(){}function x(a,b){v.prototype=a||y;var d=new v;v.prototype=y;for(var c in b)d[c]=b[c];return d}
+function z(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=aa;b(d?0:1,f);b=aa;c=A};this.z=function(b,c,e){a(b,c,e)};this.g=function(a){d.w=a;e(h,a)};this.e=function(a){d.la=a;e(l,a)};this.t=function(a){b(2,a)}}function B(a,b,d,c){a instanceof z?a.z(b,d,c):b(a)}function D(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(A,arguments));0==a&&d&&d(c);return c}}
+function E(){var a=[].slice.call(arguments),b;n(a[0],"Object")&&(b=a.shift(),F(b));return new ea(a[0],a[1],a[2])}function F(a){a&&(G.P(a),H=G.b(a),G.R(a),"main"in a&&setTimeout(function(){var b;b=G.f(H,A,[].concat(a.main));G.h(b)},0))}function ea(a,b,d,c){var e;e=G.f(H,A,[].concat(a));this.then=a=function(a,b){B(e,function(b){a&&a.apply(A,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,c){return new ea(a,b,c,e)};this.config=F;(b||d)&&a(b,d);B(c,function(){G.h(e)})}
+function fa(a){var b,d;b=a.id;if(b==A)if(I!==A)I={F:"Multiple anonymous defines in url"};else if(!(b=G.$()))I=a;if(b!=A){d=J[b];b in J||(d=G.k(b,H),d=G.B(d.b,b),J[b]=d);if(!(d instanceof z))throw Error("duplicate define: "+b);d.da=l;G.C(d,a)}}function K(){var a=G.X(arguments);fa(a)}
+var H,L,M,N=m.document,O=N&&(N.head||N.getElementsByTagName("head")[0]),ga=O&&O.getElementsByTagName("base")[0]||null,ja={},ka={},P={},la="addEventListener"in m?{}:{loaded:1,complete:1},y={},ba=y.toString,A,J={},Q={},R=l,I,ma=/^\/|^[^:]+:\/\//,da=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,na=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,oa=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,S,G;
+G={m:function(a,b,d){var c,a=ca(a,b);if("."==a.charAt(0))return a;c=u(a);a=(b=c.j)||c.l;a in d.c&&(a=d.c[a].K||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=s(d.N)+"/"+b),a=a+"!"+c.l);return a},f:function(a,b,d,c){function e(b){return G.m(b,f.id,a)}function g(b,d,g){var i;i=d&&function(a){d.apply(A,a)};if(n(b,"String")){if(i)throw Error("require(id, callback) not allowed");g=e(b);b=J[g];if(!(g in J))throw Error("Module not resolved: "+g);return(g=b instanceof z&&b.a)||b}B(G.h(G.f(a,f.id,b,c)),i,g)}var f;
+f=new z;f.id=b||"";f.aa=c;f.D=d;f.b=a;f.u=g;g.toUrl=function(b){return G.k(e(b),a).url};f.m=e;return f},B:function(a,b,d){var c,e,g;c=G.f(a,b,A,d);e=c.g;g=D(1,function(a){c.p=a;try{return G.T(c)}catch(b){c.e(b)}});c.g=function(a){B(d||R,function(){e(J[c.id]=Q[c.url]=g(a))})};c.G=function(a){B(d||R,function(){c.a&&(g(a),c.t(ka))})};return c},S:function(a,b,d,c){return G.f(a,d,A,c)},Z:function(a){return a.u},H:function(a){return a.a||(a.a={})},Y:function(a){var b=a.q;b||(b=a.q={id:a.id,uri:G.I(a),exports:G.H(a),
+config:function(){return a.b}},b.a=b.exports);return b},I:function(a){return a.url||(a.url=G.A(a.u.toUrl(a.id),a.b))},P:function(a){var b,d,c,e,g;b="curl";d="define";c=e=m;if(a&&(g=a.overwriteApi||a.ja,b=a.apiName||a.fa||b,c=a.apiContext||a.ea||c,d=a.defineName||a.ha||d,e=a.defineContext||a.ga||e,L&&n(L,"Function")&&(m.curl=L),L=null,M&&n(M,"Function")&&(m.define=M),M=null,!g)){if(c[b]&&c[b]!=E)throw Error(b+" already exists");if(e[d]&&e[d]!=K)throw Error(d+" already exists");}c[b]=E;e[d]=K},b:function(a){function b(a,
+b){var c,d,f,p,t;for(t in a){f=a[t];n(f,"String")&&(f={path:a[t]});f.name=f.name||t;p=e;d=u(s(f.name));c=d.l;if(d=d.j)p=g[d],p||(p=g[d]=x(e),p.c=x(e.c),p.d=[]),delete a[t];if(b){d=f;var w=void 0;d.path=s(d.path||d.location||"");w=d.main||"./main";"."==w.charAt(0)||(w="./"+w);d.K=ca(w,d.name+"/");d.b=d.config;d.b&&(d.b=x(e,d.b))}else d={path:s(f.path)};d.Q=c.split("/").length;c?(p.c[c]=d,p.d.push(c)):p.n=G.O(f.path,e)}}function d(a){var b=a.c;a.M=RegExp("^("+a.d.sort(function(a,c){return b[c].Q-b[a].Q}).join("|").replace(/\/|\./g,
+"\\$&")+")(?=\\/|$)");delete a.d}var c,e,g,f;"baseUrl"in a&&(a.n=a.baseUrl);"main"in a&&(a.K=a.main);"preloads"in a&&(a.ka=a.preloads);"pluginPath"in a&&(a.N=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=RegExp(a.dontAddFileExt||a.i);c=H;e=x(c,a);e.c=x(c.c);g=a.plugins||{};e.plugins=x(c.plugins);e.s=x(c.s,a.s);e.r=x(c.r,a.r);e.d=[];b(a.packages,h);b(a.paths,l);for(f in g)a=G.m(f+"!","",e),e.plugins[a.substr(0,a.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=x(e,g[f]),a=g[f].d)g[f].d=a.concat(e.d),
+d(g[f]);for(f in c.c)e.c.hasOwnProperty(f)||e.d.push(f);d(e);return e},R:function(a){var b;(b=a&&a.preloads)&&0<b.length&&B(R,function(){R=G.h(G.f(H,A,b,h))})},k:function(a,b){var d,c,e,g;d=b.c;e=ma.test(a)?a:a.replace(b.M,function(a){c=d[a]||{};g=c.b;return c.path||""});return{b:g||H,url:G.O(e,b)}},O:function(a,b){var d=b.n;return d&&!ma.test(a)?s(d)+"/"+a:a},A:function(a,b){return a+((b||H).i.test(a)?"":".js")},J:function(a,b,d){var c=N.createElement("script");c.onload=c.onreadystatechange=function(d){d=
+d||m.event;if("load"==d.type||la[c.readyState])delete P[a.id],c.onload=c.onreadystatechange=c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.L||"text/javascript";c.charset="utf-8";c.async=!a.ba;c.src=a.url;P[a.id]=c;O.insertBefore(c,ga);return c},U:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(na,"").replace(oa,function(a,e,g){g?d=d==g?A:d:d||b.push(e);return""});return b},X:function(a){var b,d,c,e,g,f;g=a.length;
+c=a[g-1];e=n(c,"Function")?c.length:-1;2==g?n(a[0],"Array")?d=a[0]:b=a[0]:3==g&&(b=a[0],d=a[1]);!d&&0<e&&(f=h,d=["require","exports","module"].slice(0,e).concat(G.U(c)));return{id:b,p:d||[],v:0<=e?c:function(){return c},o:f}},T:function(a){var b;b=a.v.apply(a.o?a.a:A,a.p);b===A&&a.a&&(b=a.q?a.a=a.q.a:a.a);return b},C:function(a,b){a.v=b.v;a.o=b.o;a.D=b.p;G.h(a)},h:function(a){function b(a,b,c){f[b]=a;c&&j(a,b)}function d(b,c){var d,e,f,g;d=D(1,function(a){e(a);i(a,c)});e=D(1,function(a){j(a,c)});
+f=G.V(b,a);(g=f instanceof z&&f.a)&&e(g);B(f,d,a.e,a.a&&function(a){f.a&&(a==ja?e(f.a):a==ka&&d(f.a))})}function c(){a.g(f)}var e,g,f,k,q,j,i;f=[];g=a.D;k=g.length;0==g.length&&c();j=D(k,b,function(){a.G&&a.G(f)});i=D(k,b,c);for(e=0;e<k;e++)q=g[e],q in S?(i(S[q](a),e,h),a.a&&a.t(ja)):q?d(q,e):i(A,e,h);return a},W:function(a){G.I(a);G.J(a,function(){var b=I;I=A;a.da!==l&&(!b||b.F?a.e(Error(b&&b.F||"define() missing or duplicated: "+a.url)):G.C(a,b))},a.e);return a},V:function(a,b){var d,c,e,g,f,k,
+q,j,i,r,p;d=b.m;c=b.aa;e=b.b||H;g=u(d(a));q=g.l;f=g.j||q;j=G.k(f,e);if(g.j)k=f;else if(k=j.b.moduleLoader||j.b.ia)q=f,f=k,j=G.k(k,e);f in J?i=J[f]:j.url in Q?i=J[f]=Q[j.url]:(i=G.B(j.b,f,c),i.url=G.A(j.url,j.b),J[f]=Q[j.url]=i,G.W(i));f==k&&(r=new z,p=e.plugins[k]||e,B(i,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,d,i.b)||"":d(q);e=k+"!"+q;b=J[e];if(!(e in J)){b=G.S(p,e,q,c);f||(J[e]=b);var g=function(a){b.g(a);f||(J[e]=a)};g.resolve=g;g.reject=g.error=b.e;a.load(q,b.u,g,p)}r!=
+b&&B(b,r.g,r.e,r.t)},r.e));return r||i},$:function(){var a;if(!n(m.opera,"Opera"))for(var b in P)if("interactive"==P[b].readyState){a=b;break}return a}};S={require:G.Z,exports:G.H,module:G.Y};E.version="0.7.3";E.config=F;K.amd={plugins:h,jQuery:h,curl:"0.7.3"};H={n:"",N:"curl/plugin",i:/\?|\.js\b/,s:{},r:{},plugins:{},c:{},M:/$^/};L=m.curl;M=m.define;!L||n(L,"Function")?G.P():(m.curl=A,F(L));J.curl=E;J["curl/_privileged"]={core:G,cache:J,config:function(){return H},_define:fa,_curl:E,Promise:z};
+var T=this.document;function pa(){if(!T.body)return l;U||(U=T.createTextNode(""));try{return T.body.removeChild(T.body.appendChild(U)),U=qa,h}catch(a){return l}}function V(){var a;a=ra[T[W]]&&pa();if(!X&&a){X=h;for(clearTimeout(Y);sa=ta.pop();)sa();ua&&(T[W]="complete");for(var b;b=va.shift();)b()}return a}function wa(){V();X||(Y=setTimeout(wa,xa))}var W="readyState",ra={loaded:1,interactive:1,complete:1},va=[],ua=T&&"string"!=typeof T[W],X=l,xa=10,Z,sa,ta=[],Y,qa,U;
+Z="addEventListener"in this?function(a,b){a.addEventListener(b,V,l);return function(){a.removeEventListener(b,V,l)}}:function(a,b){a.attachEvent("on"+b,V);return function(){a.detachEvent(b,V)}};T&&!V()&&(ta=[Z(this,"load"),Z(T,"readystatechange"),Z(this,"DOMContentLoaded")],Y=setTimeout(wa,xa));define("curl/domReady",function(){function a(a){X?a():va.push(a)}a.then=a;a.amd=h;return a});var ya=this.document;function za(a){try{return eval(a)}catch(b){}}
+define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,c,d){function e(){g||(f<new Date?d():setTimeout(e,10))}var f,g,k;f=(new Date).valueOf()+(b.ca||3E5);d&&b.a&&setTimeout(e,10);k=a.core.J(b,function(){g=h;b.a&&(b.w=za(b.a));!b.a||b.w?c(k):d()},function(a){g=h;d(a)})}function d(a,c){b(a,function(){var b=e.shift();k=0<e.length;b&&d.apply(null,b);c.g(a.w||h)},function(a){c.e(a)})}var c={},e=[],g=ya&&ya.createElement("script").async==h,f,k;f=a.Promise;return{dynamic:h,normalize:function(a,
+b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,j,i,r){function p(a){(i.error||function(a){throw a;})(a)}var t,w,ha,ia,C;t=0<a.indexOf("!order");w=a.indexOf("!exports=");ha=0<w&&a.substr(w+9);ia="prefetch"in r?r.prefetch:h;a=t||0<w?a.substr(0,a.indexOf("!")):a;j=j.toUrl(a);C=j.lastIndexOf(".")<=j.lastIndexOf("/")?j+".js":j;C in c?c[C]instanceof f?c[C].z(i,p):i(c[C]):(a={name:a,url:C,ba:t,a:ha,ca:r.timeout},c[C]=r=new f,r.z(function(a){c[C]=a;i(a)},p),t&&!g&&
+k?(e.push([a,r]),ia&&(a.L="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.L="")):(k=k||t,d(a,r)))}}});var $=this.document,Aa=/^\/\//,Ba;$&&(Ba=$.head||($.head=$.getElementsByTagName("head")[0]));
+define("curl/plugin/link",{load:function(a,b,d,c){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;c=a=(c="fixSchemalessUrls"in c?c.fixSchemalessUrls:$.location.protocol)?a.replace(Aa,c+"//"):a;a=$.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=c;Ba.appendChild(a);d(a.sheet||a.styleSheet)}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});
}).call(this);
View
247 dist/curl-for-ssjs/curl.js
@@ -13,11 +13,12 @@
(function (global) {
//"use strict"; don't restore this until the config routine is refactored
var
- version = '0.7.2',
+ version = '0.7.3',
curlName = 'curl',
+ defineName = 'define',
userCfg,
prevCurl,
- define,
+ prevDefine,
doc = global.document,
head = doc && (doc['head'] || doc.getElementsByTagName('head')[0]),
// to keep IE from crying, we need to put scripts before any
@@ -45,7 +46,7 @@
// net to catch anonymous define calls' arguments (non-IE browsers)
argsNet,
// RegExp's used later, pre-compiled here
- dontAddExtRx = /\?/,
+ dontAddExtRx = /\?|\.js\b/,
absUrlRx = /^\/|^[^:]+:\/\//,
findDotsRx = /(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,
removeCommentsRx = /\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,
@@ -424,89 +425,115 @@
return def.url || (def.url = core.checkToAddJsExt(def.require['toUrl'](def.id), def.config));
},
- config: function (cfg) {
- var setDefaults, defineName, failMsg, okToOverwrite,
- apiName, apiContext, apiObj,
- defName, defContext, defObj;
-
- // no config was specified, yet
- setDefaults = !cfg;
-
- // switch to re-runnable config
- if (cfg) core.config = core.moreConfig;
-
- defineName = 'define';
+ /**
+ * Sets the curl() and define() APIs.
+ * @param [cfg] {Object|Null} set of config params. If missing or null,
+ * this function will set the default API!
+ */
+ setApi: function (cfg) {
+ /*
+ scenarios:
+ 1. global config sets apiName: "require"
+ - first call to config sets api
+ - second and later calls are ignored
+ - prevCurl cannot exist
+ 2. no global config, first call to config() sets api
+ - first call to config has no api info
+ - second call to config sets api
+ - third and later calls must be ignored
+ 3. global config that doesn't set api, first call does though
+ - same as #2
+ 4. api info is never set
+ - how to know when to stop ignoring?
+
+ objectives:
+ 1. fail before mistakenly overwriting global[curlName]
+ 2. allow rename/relocate of curl() and define()
+ 3. restore curl() if we overwrote it
+ */
+
+ var apiName, defName, apiObj, defObj,
+ failMsg, okToOverwrite;
+
+ apiName = curlName;
+ defName = defineName;
+ apiObj = defObj = global;
failMsg = ' already exists';
- if (!cfg) cfg = {};
-
- // allow dev to rename/relocate curl() to another object
- apiName = cfg['apiName'] || curlName;
- apiContext = cfg['apiContext'];
- apiObj = apiContext || global;
- defName = cfg['defineName'] || defineName;
- defContext = cfg['defineContext'];
- defObj = defContext || global;
-
- // is it ok to overwrite an existing api functions?
- okToOverwrite = cfg['overwriteApi'];
-
- // restore previous (global) curl, if it was blown away
- // by us. this can happen when configuring curl's api
- // after loading it. do this before any throws below.
- if (!setDefaults && prevCurl) {
- global[curlName] = prevCurl;
- prevCurl = false;
- }
-
- // only throw if we're overwriting curl accidentally and this
- // isn't a setDefaults pass. (see else)
- if (!setDefaults && !okToOverwrite && apiObj[apiName] && apiObj[apiName] != _curl) {
- throw new Error(apiName + failMsg);
- }
- else {
- // if setDefaults, we must overwrite curl so that dev can
- // configure it. (in this case, the following is the same as
- // global.curl = _curl;)
- apiObj[apiName] = _curl;
- }
-
- // if setDefaults, only create define() if it doesn't already exist.
- if (!(setDefaults && global[defineName])) {
- if (!setDefaults && !okToOverwrite && defName in defObj && defObj[defName] != define) {
- throw new Error(defName + failMsg);
+ // if we're not setting defaults
+ if (cfg) {
+ // is it ok to overwrite existing api functions?
+ okToOverwrite = cfg['overwriteApi'] || cfg.overwriteApi;
+ // allow dev to rename/relocate curl() to another object
+ apiName = cfg['apiName'] || cfg.apiName || apiName;
+ apiObj = cfg['apiContext'] || cfg.apiContext || apiObj;
+ // define() too
+ defName = cfg['defineName'] || cfg.defineName || defName;
+ defObj = cfg['defineContext'] || cfg.defineContext || defObj;
+
+ // curl() already existed, restore it if this is not a
+ // setDefaults pass. dev must be a good citizen and set
+ // apiName/apiContext (see below).
+ if (prevCurl && isType(prevCurl, 'Function')) {
+ // restore previous curl()
+ global[curlName] = prevCurl;
}
- else {
- // create AMD public api: define()
- defObj[defName] = define = function () {
- // wrap inner _define so it can be replaced without losing define.amd
- var args = core.fixArgs(arguments);
- _define(args);
- };
+ prevCurl = null; // don't check ever again
+ // ditto for define()
+ if (prevDefine && isType(prevDefine, 'Function')) {
+ // restore previous curl()
+ global[defineName] = prevDefine;
}
- // indicate our capabilities:
- define['amd'] = { 'plugins': true, 'jQuery': true, 'curl': version };
+ prevDefine = null; // don't check ever again
+
+ // check if we're mistakenly overwriting either api
+ // if we're configuring, and there's a curl(), and it's not
+ // ours -- and we're not explicitly overwriting -- throw!
+ // Note: if we're setting defaults, we *must* overwrite curl
+ // so that dev can configure it. This is no different than
+ // noConflict()-type methods.
+ if (!okToOverwrite) {
+ if (apiObj[apiName] && apiObj[apiName] != _curl) {
+ throw new Error(apiName + failMsg);
+ }
+ // check if we're overwriting amd api
+ if (defObj[defName] && defObj[defName] != define) {
+ throw new Error(defName + failMsg);
+ }
+ }
+
}
- return core.moreConfig(cfg);
+ // set curl api
+ apiObj[apiName] = _curl;
+
+ // set AMD public api: define()
+ defObj[defName] = define;
+
},
- moreConfig: function (cfg, prevCfg) {
- var newCfg, pluginCfgs, p, absId;
+ config: function (cfg) {
+ var prevCfg, newCfg, pluginCfgs, p;
+
+ // convert from closure-safe names
+ if ('baseUrl' in cfg) cfg.baseUrl = cfg['baseUrl'];
+ if ('main' in cfg) cfg.main = cfg['main'];
+ if ('preloads' in cfg) cfg.preloads = cfg['preloads'];
+ if ('pluginPath' in cfg) cfg.pluginPath = cfg['pluginPath'];
+ if ('dontAddFileExt' in cfg || cfg.dontAddFileExt) {
+ cfg.dontAddFileExt = new RegExp(cfg['dontAddFileExt'] || cfg.dontAddFileExt);
+ }
- if (!prevCfg) prevCfg = {};
+ prevCfg = userCfg;
newCfg = beget(prevCfg, cfg);
- // set defaults and convert from closure-safe names
- newCfg.baseUrl = newCfg['baseUrl'] || '';
- newCfg.pluginPath = newCfg['pluginPath'] || 'curl/plugin';
- newCfg.dontAddFileExt = new RegExp(newCfg['dontAddFileExt'] || dontAddExtRx);
-
// create object to hold path map.
// each plugin and package will have its own pathMap, too.
newCfg.pathMap = beget(prevCfg.pathMap);
pluginCfgs = cfg['plugins'] || {};
newCfg.plugins = beget(prevCfg.plugins);
+ newCfg.paths = beget(prevCfg.paths, cfg.paths);
+ newCfg.packages = beget(prevCfg.packages, cfg.packages);
// temporary arrays of paths. this will be converted to
// a regexp for fast path parsing.
@@ -524,10 +551,10 @@
};
// grab the package id, if specified. default to
// property name, if missing.
- data.name = data['name'] || name;
+ data.name = data.name || name;
currCfg = newCfg;
// check if this is a plugin-specific path
- parts = pluginParts(removeEndSlash(core.toAbsId(data.name, '', newCfg)));
+ parts = pluginParts(removeEndSlash(data.name));
id = parts.resourceId;
pluginId = parts.pluginId;
if (pluginId) {
@@ -597,6 +624,13 @@
convertPathMatcher(pluginCfgs[p]);
}
}
+
+ // ugh, this is ugly, but necessary until we refactor this function
+ // copy previous pathMap items onto pathList
+ for (p in prevCfg.pathMap) {
+ if (!newCfg.pathMap.hasOwnProperty(p)) newCfg.pathList.push(p);
+ }
+
convertPathMatcher(newCfg);
return newCfg;
@@ -958,7 +992,7 @@
}
else {
// TODO: move config.moduleLoader to config.transform
- loaderId = pathInfo.config['moduleLoader'];
+ loaderId = pathInfo.config['moduleLoader'] || pathInfo.config.moduleLoader;
if (loaderId) {
// TODO: allow transforms to have relative module ids?
// (we could do this by returning package location from
@@ -1090,14 +1124,31 @@
// extract config, if it's specified
if (isType(args[0], 'Object')) {
cfg = args.shift();
- userCfg = core.config(cfg, userCfg);
- core.checkPreloads(cfg);
+ _config(cfg);
}
return new CurlApi(args[0], args[1], args[2]);
}
+ function _config (cfg) {
+ if (cfg) {
+ core.setApi(cfg);
+ userCfg = core.config(cfg);
+ // check for preloads
+ core.checkPreloads(cfg);
+ // check for main module(s)
+ if ('main' in cfg) {
+ // start in next turn to wait for other modules in current file
+ setTimeout(function () {
+ var ctx;
+ ctx = core.createContext(userCfg, undef, [].concat(cfg['main']));
+ core.getDeps(ctx);
+ }, 0);
+ }
+ }
+ }
+
// thanks to Joop Ringelberg for helping troubleshoot the API
function CurlApi (ids, callback, errback, waitFor) {
var then, ctx;
@@ -1119,11 +1170,13 @@
// chain api
return new CurlApi(ids, cb, eb, ctx);
};
+ this['config'] = _config;
if (callback || errback) then(callback, errback);
when(waitFor, function () { core.getDeps(ctx); });
}
_curl['version'] = version;
+ _curl['config'] = _config;
function _define (args) {
@@ -1158,21 +1211,41 @@
}
- // look for pre-existing globals
- userCfg = global[curlName];
- if (typeof userCfg == 'function') {
- prevCurl = userCfg;
- userCfg = false;
+ function define () {
+ // wrap inner _define so it can be replaced without losing define.amd
+ var args = core.fixArgs(arguments);
+ _define(args);
+ }
+
+ // indicate our capabilities:
+ define['amd'] = { 'plugins': true, 'jQuery': true, 'curl': version };
+
+ // default configs
+ userCfg = {
+ baseUrl: '',
+ pluginPath: 'curl/plugin',
+ dontAddFileExt: dontAddExtRx,
+ paths: {},
+ packages: {},
+ plugins: {},
+ pathMap: {},
+ pathRx: /$^/
+ };
+
+ // handle pre-existing global
+ prevCurl = global[curlName];
+ prevDefine = global[defineName];
+ if (!prevCurl || isType(prevCurl, 'Function')) {
+ // set default api
+ core.setApi();
}
else {
- // don't use delete here since IE6-8 fail
- global[curlName] = undef;
+ // remove global curl object
+ global[curlName] = undef; // can't use delete in IE 6-8
+ // configure curl
+ _config(prevCurl);
}
- // configure first time
- userCfg = core.config(userCfg);
- core.checkPreloads(userCfg);
-
// allow curl to be a dependency
cache[curlName] = _curl;
@@ -1190,7 +1263,7 @@
'Promise': Promise
};
-}(this.window || global));
+}(this.window || (typeof global != 'undefined' && global) || this));
/** MIT License (c) copyright B Cavalier & J Hann */
/**
View
73 dist/curl-kitchen-sink/curl.js
@@ -1,38 +1,41 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var i=!0,n=!1,p=this.window||global;function aa(){}function q(a,b){return 0==ba.call(a).indexOf("[object "+b)}function r(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ca(a,b){var c,d,e,f;c=1;d=a;"."==d.charAt(0)&&(e=i,d=d.replace(da,function(a,b,d,f){d&&c++;return f||""}));if(e){e=b.split("/");f=e.length-c;if(0>f)return a;e.splice(f,c);return e.concat(d||[]).join("/")}return d}function s(a){var b=a.indexOf("!");return{p:a.substr(b+1),m:0<=b&&a.substr(0,b)}}
-function u(){}function v(a,b){u.prototype=a||x;var c=new u;u.prototype=x;for(var d in b)c[d]=b[d];return c}function y(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,g){a=c?function(a){a&&a(g)}:function(a,b){b&&b(g)};e=aa;b(c?0:1,g);b=aa;d=C};this.h=function(b,d,e){a(b,d,e);return c};this.g=function(a){c.z=a;e(i,a)};this.d=function(a){c.ja=a;e(n,a)};this.v=function(a){b(2,a)}}
-function D(a,b,c,d){a instanceof y?a.h(b,c,d):b(a)}function E(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(C,arguments));0==a&&c&&c(d);return d}}function F(){var a=[].slice.call(arguments),b;q(a[0],"Object")&&(b=a.shift(),G=H.b(b,G),H.A(b));return new ea(a[0],a[1],a[2])}
-function ea(a,b,c,d){var e;e=H.e(G,C,[].concat(a));this.then=a=function(a,b){D(e,function(b){a&&a.apply(C,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new ea(a,b,d,e)};(b||c)&&a(b,c);D(d,function(){H.l(e)})}function fa(a){var b,c;b=a.id;if(b==C)if(I!==C)I={G:"Multiple anonymous defines in url"};else if(!(b=H.Z()))I=a;if(b!=C){c=J[b];b in J||(c=H.o(b,G),c=H.C(c.b,b),J[b]=c);if(!(c instanceof y))throw Error("duplicate define: "+b);c.ga=n;H.D(c,a)}}
-var G,K,L,M=p.document,ga=M&&(M.head||M.getElementsByTagName("head")[0]),ia=ga&&ga.getElementsByTagName("base")[0]||null,ja={},ka={},N={},la="addEventListener"in p?{}:{loaded:1,complete:1},x={},ba=x.toString,C,J={},O={},P=n,I,ma=/\?/,na=/^\/|^[^:]+:\/\//,da=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,pa=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,qa=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,ra,H;
-H={i:function(a,b,c){var d,a=ca(a,b);if("."==a.charAt(0))return a;d=s(a);a=(b=d.m)||d.p;a in c.c&&(a=c.c[a].aa||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=r(c.da)+"/"+b),a=a+"!"+d.p);return a},e:function(a,b,c,d){function e(b){return H.i(b,g.id,a)}function f(b,c,f){var j;j=c&&function(a){c.apply(C,a)};if(q(b,"String")){if(j)throw Error("require(id, callback) not allowed");f=e(b);b=J[f];if(!(f in J))throw Error("Module not resolved: "+f);return(f=b instanceof y&&b.a)||b}D(H.l(H.e(a,g.id,b,d)),j,f)}var g;
-g=new y;g.id=b||"";g.$=d;g.F=c;g.b=a;g.n=f;f.toUrl=function(b){return H.o(e(b),a).url};g.i=e;return g},C:function(a,b,c){var d,e,f;d=H.e(a,b,C,c);e=d.g;f=E(1,function(a){d.r=a;try{return H.T(d)}catch(b){d.d(b)}});d.g=function(a){D(c||P,function(){e(J[d.id]=O[d.url]=f(a))})};d.H=function(a){D(c||P,function(){d.a&&(f(a),d.v(ka))})};return d},Q:function(a,b,c,d){return H.e(a,c,C,d)},Y:function(a){return a.n},J:function(a){return a.a||(a.a={})},X:function(a){var b=a.t;b||(b=a.t={id:a.id,uri:H.K(a),exports:H.J(a),
-config:function(){return a.b}},b.a=b.exports);return b},K:function(a){return a.url||(a.url=H.B(a.n.toUrl(a.id),a.b))},b:function(a){var b,c,d,e,f,g;b=!a;a&&(H.b=H.M);a||(a={});d=a.apiName||"curl";e=a.apiContext||p;f=a.defineName||"define";g=a.defineContext||p;c=a.overwriteApi;!b&&K&&(p.curl=K,K=n);if(!b&&!c&&e[d]&&e[d]!=F)throw Error(d+" already exists");e[d]=F;if(!b||!p.define){if(!b&&!c&&f in g&&g[f]!=L)throw Error(f+" already exists");g[f]=L=function(){var a=H.W(arguments);fa(a)};L.amd={plugins:i,
-jQuery:i,curl:"0.7.2"}}return H.M(a)},M:function(a,b){function c(a,b){var d,c,g,h,t;for(t in a){g=a[t];q(g,"String")&&(g={path:a[t]});g.name=g.name||t;h=e;c=s(r(H.i(g.name,"",e)));d=c.p;if(c=c.m)h=f[c],h||(h=f[c]=v(e),h.c=v(e.c),h.f=[]),delete a[t];if(b){c=g;var A=void 0;c.path=r(c.path||c.location||"");A=c.main||"./main";"."==A.charAt(0)||(A="./"+A);c.aa=ca(A,c.name+"/");c.b=c.config;c.b&&(c.b=v(e,c.b))}else c={path:r(g.path)};c.O=d.split("/").length;d?(h.c[d]=c,h.f.push(d)):h.j=H.N(g.path,e)}}function d(a){var b=
-a.c;a.ca=RegExp("^("+a.f.sort(function(a,d){return b[d].O-b[a].O}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.f}var e,f,g,h;b||(b={});e=v(b,a);e.j=e.baseUrl||"";e.da=e.pluginPath||"curl/plugin";e.R=RegExp(e.dontAddFileExt||ma);e.c=v(b.c);f=a.plugins||{};e.plugins=v(b.plugins);e.f=[];c(a.packages,i);c(a.paths,n);for(g in f)h=H.i(g+"!","",e),e.plugins[h.substr(0,h.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=v(e,f[g]),h=f[g].f)f[g].f=h.concat(e.f),d(f[g]);d(e);return e},A:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&D(P,function(){P=H.l(H.e(G,C,b,i))})},o:function(a,b){var c,d,e,f;c=b.c;e=na.test(a)?a:a.replace(b.ca,function(a){d=c[a]||{};f=d.b;return d.path||""});return{b:f||G,url:H.N(e,b)}},N:function(a,b){var c=b.j;return c&&!na.test(a)?r(c)+"/"+a:a},B:function(a,b){return a+((b||G).R.test(a)?"":".js")},s:function(a,b,c){var d=M.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||p.event;if("load"==c.type||la[d.readyState])delete N[a.id],d.onload=d.onreadystatechange=
-d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.L||"text/javascript";d.charset="utf-8";d.async=!a.ba;d.src=a.url;N[a.id]=d;ga.insertBefore(d,ia);return d},I:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(pa,"").replace(qa,function(a,e,f){f?c=c==f?C:c:c||b.push(e);return""});return b},W:function(a){var b,c,d,e,f,g;f=a.length;d=a[f-1];e=q(d,"Function")?d.length:-1;2==f?q(a[0],"Array")?c=a[0]:b=a[0]:3==f&&(b=a[0],c=
-a[1]);!c&&0<e&&(g=i,c=["require","exports","module"].slice(0,e).concat(H.I(d)));return{id:b,r:c||[],w:0<=e?d:function(){return d},q:g}},T:function(a){var b;b=a.w.apply(a.q?a.a:C,a.r);b===C&&a.a&&(b=a.t?a.a=a.t.a:a.a);return b},D:function(a,b){a.w=b.w;a.q=b.q;a.F=b.r;H.l(a)},l:function(a){function b(a,b,d){g[b]=a;d&&m(a,b)}function c(b,d){var c,e,f,g;c=E(1,function(a){e(a);j(a,d)});e=E(1,function(a){m(a,d)});f=H.U(b,a);(g=f instanceof y&&f.a)&&e(g);D(f,c,a.d,a.a&&function(a){f.a&&(a==ja?e(f.a):a==
-ka&&c(f.a))})}function d(){a.g(g)}var e,f,g,h,l,m,j;g=[];f=a.F;h=f.length;0==f.length&&d();m=E(h,b,function(){a.H&&a.H(g)});j=E(h,b,d);for(e=0;e<h;e++)l=f[e],l in ra?(j(ra[l](a),e,i),a.a&&a.v(ja)):l?c(l,e):j(C,e,i);return a},V:function(a){H.K(a);H.s(a,function(){var b=I;I=C;a.ga!==n&&(!b||b.G?a.d(Error(b&&b.G||"define() missing or duplicated: "+a.url)):H.D(a,b))},a.d);return a},U:function(a,b){var c,d,e,f,g,h,l,m,j,k,z;c=b.i;d=b.$;e=b.b||G;f=s(c(a));l=f.p;g=f.m||l;m=H.o(g,e);if(f.m)h=g;else if(h=
-m.b.moduleLoader)l=g,g=h,m=H.o(h,e);g in J?j=J[g]:m.url in O?j=J[g]=O[m.url]:(j=H.C(m.b,g,d),j.url=H.B(m.url,m.b),J[g]=O[m.url]=j,H.V(j));g==h&&(k=new y,z=e.plugins[h]||e,D(j,function(a){var b,e,f;f=a.dynamic;l="normalize"in a?a.normalize(l,c,j.b)||"":c(l);e=h+"!"+l;b=J[e];if(!(e in J)){b=H.Q(z,e,l,d);f||(J[e]=b);var g=function(a){b.g(a);f||(J[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(l,b.n,g,z)}k!=b&&D(b,k.g,k.d,k.v)},k.d));return k||j},Z:function(){var a;if(!q(p.opera,"Opera"))for(var b in N)if("interactive"==
-N[b].readyState){a=b;break}return a}};ra={require:H.Y,exports:H.J,module:H.X};F.version="0.7.2";G=p.curl;"function"==typeof G?(K=G,G=n):p.curl=C;G=H.b(G);H.A(G);J.curl=F;J["curl/_privileged"]={core:H,cache:J,config:function(){return G},_define:fa,_curl:F,Promise:y};var Q=this.document;function sa(){if(!Q.body)return n;R||(R=Q.createTextNode(""));try{return Q.body.removeChild(Q.body.appendChild(R)),R=ta,i}catch(a){return n}}
-function S(){var a;a=ua[Q[va]]&&sa();if(!T&&a){T=i;for(clearTimeout(wa);xa=ya.pop();)xa();za&&(Q[va]="complete");for(var b;b=Aa.shift();)b()}return a}function Ba(){S();T||(wa=setTimeout(Ba,Ca))}var va="readyState",ua={loaded:1,interactive:1,complete:1},Aa=[],za=Q&&"string"!=typeof Q[va],T=n,Ca=10,U,xa,ya=[],wa,ta,R;
-U="addEventListener"in this?function(a,b){a.addEventListener(b,S,n);return function(){a.removeEventListener(b,S,n)}}:function(a,b){a.attachEvent("on"+b,S);return function(){a.detachEvent(b,S)}};Q&&!S()&&(ya=[U(this,"load"),U(Q,"readystatechange"),U(this,"DOMContentLoaded")],wa=setTimeout(Ba,Ca));define("curl/domReady",function(){function a(a){T?a():Aa.push(a)}a.then=a;a.amd=i;return a});var Da;
-define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function c(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,d){return a.toUrl(b+(d||""))});a.cache||(a.cache={})}var d=a._curl,e=a.core.e;c(d);"undefined"==typeof Da&&(Da=d);a.core.e=function(){var a=e.apply(this,arguments);c(a.n);return a};return i});var Ea=this.document;function Fa(a){try{return eval(a)}catch(b){}}
-define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,d,c){function e(){g||(f<new Date?c():setTimeout(e,10))}var f,g,h;f=(new Date).valueOf()+(b.fa||3E5);c&&b.a&&setTimeout(e,10);h=a.core.s(b,function(){g=i;b.a&&(b.z=Fa(b.a));!b.a||b.z?d(h):c()},function(a){g=i;c(a)})}function c(a,d){b(a,function(){var b=e.shift();h=0<e.length;b&&c.apply(null,b);d.g(a.z||i)},function(a){d.d(a)})}var d={},e=[],f=Ea&&Ea.createElement("script").async==i,g,h;g=a.Promise;return{dynamic:i,normalize:function(a,
-b){var d=a.indexOf("!");return 0<=d?b(a.substr(0,d))+a.substr(d):b(a)},load:function(a,m,j,k){function z(a){(j.error||function(a){throw a;})(a)}var w,t,A,oa,B;w=0<a.indexOf("!order");t=a.indexOf("!exports=");A=0<t&&a.substr(t+9);oa="prefetch"in k?k.prefetch:i;a=w||0<t?a.substr(0,a.indexOf("!")):a;m=m.toUrl(a);B=m.lastIndexOf(".")<=m.lastIndexOf("/")?m+".js":m;B in d?d[B]instanceof g?d[B].h(j,z):j(d[B]):(a={name:a,url:B,ba:w,a:A,fa:k.timeout},d[B]=k=new g,k.h(function(a){d[B]=a;j(a)},z),w&&!f&&h?(e.push([a,
-k]),oa&&(a.L="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.L="")):(h=h||w,c(a,k)))}}});
-define("curl/plugin/text",function(){function a(){if("undefined"!==typeof XMLHttpRequest)a=function(){return new XMLHttpRequest};else for(var b=a=function(){throw Error("getXhr(): XMLHttpRequest not available");};0<c.length&&a===b;)(function(b){try{new ActiveXObject(b),a=function(){return new ActiveXObject(b)}}catch(d){}})(c.shift());return a()}function b(a){throw a;}var c=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];return{load:function(d,c,f){var d=c.toUrl(d),g=f.error||b,h=a();h.open("GET",
-d,i);h.onreadystatechange=function(){4===h.readyState&&(400>h.status?f(h.responseText):g(Error("fetchText() failed. status: "+h.statusText)))};h.send(null)},"plugin-builder":"./builder/text"}});define("curl/plugin/async",function(){return{load:function(a,b,c){function d(a){"function"==typeof c.error&&c.error(a)}b([a],function(a){"function"==typeof a.h?a.h(function(b){0==arguments.length&&(b=a);c(b)},d):c(a)},c.error||function(a){throw a;})},analyze:function(a,b,c){c(a)}}});
-function Ga(){var a;a=V[Ha]("link");a.rel="stylesheet";a.type="text/css";return a}function Ia(a,b,c){Ja.push({url:a,P:b,S:function(){c(Error(Ka))}});a=La.shift();!a&&Ma.length<Na&&(a=V.createElement("style"),Ma.push(a),W.appendChild(a));a&&Oa(a)}function Oa(a){var b,c;b=Ja.shift();c=a.styleSheet;b?(a.onload=function(){b.P(b.ea);Oa(a)},a.onerror=function(){b.S();Oa(a)},b.ea=c.imports[c.addImport(b.url)]):(a.onload=a.onerror=X,La.push(a))}
-function Pa(a,b,c){if(!Y.load){var d;var e,f;if(!a.href||V.readyState&&"complete"!=V.readyState)d=n;else{d=n;try{if(e=a.sheet)f=e.cssRules,d=null===f,!d&&f&&(e.insertRule("-curl-css-test {}",0),e.deleteRule(0),d=i)}catch(g){d="[object Opera]"!=window.opera.toString()&&/security|denied/i.test(g.message)}}d?c(a.sheet):a.onload==X||!a.onload||Qa(function(){Pa(a,b,c)},b)}}
-function Ra(a,b,c,d){function e(){if(f.onload!=X&&f.onload){f.onload=f.onerror=X;var a=function(){!V.readyState||"complete"==V.readyState?b(f.sheet):Qa(a,10)};a()}}var f;f=Ga();f.onload=function(){Y.load=Y.load||i;e()};Pa(f,d,e);f.onerror=function(){Y.error=Y.error||i;f.onload!=X&&f.onload&&(f.onload=f.onerror=X,c(Error(Ka)))};f.href=a;W.appendChild(f)}function X(){}
-var Ha="createElement",Qa=this.setTimeout,V=this.document,W,Sa=V&&V.createStyleSheet&&!(10<=V.documentMode),Ma=[],La=[],Ja=[],Na=12,Ta,Ka="HTTP or network error.",Y={};V&&(W=V.head||V.getElementsByTagName("head")[0],Ta=Sa?Ia:Ra);
-define("curl/plugin/css",{normalize:function(a,b){var c,d;if(!a)return a;c=a.split(",");d=[];for(var e=0,f=c.length;e<f;e++)d.push(b(c[e]));return d.join(",")},load:function(a,b,c,d){function e(a){1<h.length&&g.push(a);0==--m&&c(1==h.length?a:g)}function f(a){(c.d||function(a){throw a;})(a)}var g,h,l,m,j;g=[];h=(a||"").split(",");l=d.cssWatchPeriod||50;d=d.cssNoWait;m=h.length;for(j=0;j<h.length;j++){var a=h[j],k,a=b.toUrl(a),a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;d?(k=Ga(),k.href=a,
-W.appendChild(k),e(k.sheet||k.styleSheet)):Ta(a,e,f,l)}},"plugin-builder":"./builder/css",pluginBuilder:"./builder/css"});var Z=this.document,Ua=/^\/\//,Va;Z&&(Va=Z.head||(Z.head=Z.getElementsByTagName("head")[0]));
-define("curl/plugin/link",{load:function(a,b,c,d){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;d=a=(d="fixSchemalessUrls"in d?d.fixSchemalessUrls:Z.location.protocol)?a.replace(Ua,d+"//"):a;a=Z.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=d;Va.appendChild(a);c(a.sheet||a.styleSheet)}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});var $=this.document;function Wa(a){eval(a)}
-define("curl/loader/cjsm11",function(){function a(b,c){a="text"in b?function(a,b){a.text=b}:function(a,b){a.appendChild($.createTextNode(b))};a(b,c)}var b,c;c=(b=$&&($.head||$.getElementsByTagName("head")[0]))&&b.getElementsByTagName("base")[0]||null;return{load:function(d,e,f,g){e(["text!"+d+".js","curl/_privileged"],function(h,l){var m;m=l.core.I(h);e(m,function(){var j=h,k=g.injectSourceUrl!==n&&e.la(d),k=k?"////@ sourceURL="+k.replace(/\s/g,"%20")+".js":"";h="define('"+d+"',['require','exports','module'],function(require,exports,module){"+
-j+"\n});\n"+k+"\n";g.injectScript?(j=h,k=$.createElement("script"),a(k,j),k.charset="utf-8",b.insertBefore(k,c)):Wa(h);f(e(d))},f.error||function(a){throw a;})})}}});define.amd.ka=i;
-(function(a,b){define("curl/shim/ssjs",function(c){function d(a,d,c){try{b(a.url),d()}catch(e){c(e)}}function e(b,d,c){var e;try{e=b.url.replace(/\.js$/,""),a(e),d()}catch(f){c(f)}}function f(b,d,c){var e,b=a("url").parse(b.url,n,i);e="";z.get(b,function(a){a.u("data",function(a){e+=a}).u("end",function(){h(e);d()}).u("error",c)}).u("error",c)}function g(a){throw Error("ssjs: unable to load module in current environment: "+a.url);}function h(a){eval(a)}var l,m,j,k,z,w,t;if(!("object"==typeof window&&
-(window.ha||window.navigator))){c=c("curl/_privileged");l=c.b();m=/^\w+:/;j=/(^\w+:)?.*$/;k=(l.k&&":"!=l.k[l.k.length-1]?l.k+":":l.k)||l.j&&l.j.replace(j,function(a,b){return b})||"http:";if(b)w=t=d;else if(a){w=e;try{z=a("http"),t=f}catch(A){t=g}}else w=t=g;c.ia.s=function(a,b,c){/^\/\//.test(a.url)&&(a.url=k+a.url);return m.test(a.url)?t(a,b,c):w(a,b,c)}}})})(Da,void 0);
+var h=!0,n=null,q=!1,r=this.window||"undefined"!=typeof global&&global||this;function aa(){}function u(a,b){return 0==ba.call(a).indexOf("[object "+b)}function v(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ca(a,b){var c,d,e,f;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(da,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");f=e.length-c;if(0>f)return a;e.splice(f,c);return e.concat(d||[]).join("/")}return d}
+function w(a){var b=a.indexOf("!");return{p:a.substr(b+1),m:0<=b&&a.substr(0,b)}}function x(){}function y(a,b){x.prototype=a||fa;var c=new x;x.prototype=fa;for(var d in b)c[d]=b[d];return c}
+function z(){function a(a,b,c){d.push([a,b,c])}function b(a,b){for(var c,e=0;c=d[e++];)(c=c[a])&&c(b)}var c,d,e;c=this;d=[];e=function(c,g){a=c?function(a){a&&a(g)}:function(a,b){b&&b(g)};e=aa;b(c?0:1,g);b=aa;d=A};this.j=function(b,d,e){a(b,d,e);return c};this.g=function(a){c.C=a;e(h,a)};this.d=function(a){c.sa=a;e(q,a)};this.A=function(a){b(2,a)}}function B(a,b,c,d){a instanceof z?a.j(b,c,d):b(a)}
+function C(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(A,arguments));0==a&&c&&c(d);return d}}function E(){var a=[].slice.call(arguments),b;u(a[0],"Object")&&(b=a.shift(),F(b));return new ga(a[0],a[1],a[2])}function F(a){a&&(G.S(a),H=G.b(a),G.V(a),"main"in a&&setTimeout(function(){var b;b=G.e(H,A,[].concat(a.main));G.i(b)},0))}
+function ga(a,b,c,d){var e;e=G.e(H,A,[].concat(a));this.then=a=function(a,b){B(e,function(b){a&&a.apply(A,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new ga(a,b,d,e)};this.config=F;(b||c)&&a(b,c);B(d,function(){G.i(e)})}
+function ha(a){var b,c;b=a.id;if(b==A)if(I!==A)I={I:"Multiple anonymous defines in url"};else if(!(b=G.da()))I=a;if(b!=A){c=J[b];b in J||(c=G.o(b,H),c=G.F(c.b,b),J[b]=c);if(!(c instanceof z))throw Error("duplicate define: "+b);c.ia=q;G.G(c,a)}}function ia(){var a=G.aa(arguments);ha(a)}
+var H,K,L,M=r.document,ja=M&&(M.head||M.getElementsByTagName("head")[0]),ka=ja&&ja.getElementsByTagName("base")[0]||n,ma={},na={},N={},oa="addEventListener"in r?{}:{loaded:1,complete:1},fa={},ba=fa.toString,A,J={},O={},P=q,I,pa=/^\/|^[^:]+:\/\//,da=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,qa=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,sa=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,ta,G;
+G={q:function(a,b,c){var d,a=ca(a,b);if("."==a.charAt(0))return a;d=w(a);a=(b=d.m)||d.p;a in c.c&&(a=c.c[a].N||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=v(c.Q)+"/"+b),a=a+"!"+d.p);return a},e:function(a,b,c,d){function e(b){return G.q(b,g.id,a)}function f(b,c,f){var j;j=c&&function(a){c.apply(A,a)};if(u(b,"String")){if(j)throw Error("require(id, callback) not allowed");f=e(b);b=J[f];if(!(f in J))throw Error("Module not resolved: "+f);return(f=b instanceof z&&b.a)||b}B(G.i(G.e(a,g.id,b,d)),j,f)}var g;
+g=new z;g.id=b||"";g.ea=d;g.H=c;g.b=a;g.n=f;f.toUrl=function(b){return G.o(e(b),a).url};g.q=e;return g},F:function(a,b,c){var d,e,f;d=G.e(a,b,A,c);e=d.g;f=C(1,function(a){d.s=a;try{return G.Y(d)}catch(b){d.d(b)}});d.g=function(a){B(c||P,function(){e(J[d.id]=O[d.url]=f(a))})};d.J=function(a){B(c||P,function(){d.a&&(f(a),d.A(na))})};return d},W:function(a,b,c,d){return G.e(a,c,A,d)},ca:function(a){return a.n},L:function(a){return a.a||(a.a={})},ba:function(a){var b=a.u;b||(b=a.u={id:a.id,uri:G.M(a),
+exports:G.L(a),config:function(){return a.b}},b.a=b.exports);return b},M:function(a){return a.url||(a.url=G.D(a.n.toUrl(a.id),a.b))},S:function(a){var b,c,d,e,f;b="curl";c="define";d=e=r;if(a&&(f=a.overwriteApi||a.qa,b=a.apiName||a.ka||b,d=a.apiContext||a.ja||d,c=a.defineName||a.oa||c,e=a.defineContext||a.na||e,K&&u(K,"Function")&&(r.curl=K),K=n,L&&u(L,"Function")&&(r.define=L),L=n,!f)){if(d[b]&&d[b]!=E)throw Error(b+" already exists");if(e[c]&&e[c]!=ia)throw Error(c+" already exists");}d[b]=E;e[c]=
+ia},b:function(a){function b(a,b){var d,c,g,p,s;for(s in a){g=a[s];u(g,"String")&&(g={path:a[s]});g.name=g.name||s;p=e;c=w(v(g.name));d=c.p;if(c=c.m)p=f[c],p||(p=f[c]=y(e),p.c=y(e.c),p.f=[]),delete a[s];if(b){c=g;var t=void 0;c.path=v(c.path||c.location||"");t=c.main||"./main";"."==t.charAt(0)||(t="./"+t);c.N=ca(t,c.name+"/");c.b=c.config;c.b&&(c.b=y(e,c.b))}else c={path:v(g.path)};c.T=d.split("/").length;d?(p.c[d]=c,p.f.push(d)):p.h=G.R(g.path,e)}}function c(a){var b=a.c;a.P=RegExp("^("+a.f.sort(function(a,
+d){return b[d].T-b[a].T}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.f}var d,e,f,g;"baseUrl"in a&&(a.h=a.baseUrl);"main"in a&&(a.N=a.main);"preloads"in a&&(a.ra=a.preloads);"pluginPath"in a&&(a.Q=a.pluginPath);if("dontAddFileExt"in a||a.l)a.l=RegExp(a.dontAddFileExt||a.l);d=H;e=y(d,a);e.c=y(d.c);f=a.plugins||{};e.plugins=y(d.plugins);e.z=y(d.z,a.z);e.w=y(d.w,a.w);e.f=[];b(a.packages,h);b(a.paths,q);for(g in f)a=G.q(g+"!","",e),e.plugins[a.substr(0,a.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=
+y(e,f[g]),a=f[g].f)f[g].f=a.concat(e.f),c(f[g]);for(g in d.c)e.c.hasOwnProperty(g)||e.f.push(g);c(e);return e},V:function(a){var b;(b=a&&a.preloads)&&0<b.length&&B(P,function(){P=G.i(G.e(H,A,b,h))})},o:function(a,b){var c,d,e,f;c=b.c;e=pa.test(a)?a:a.replace(b.P,function(a){d=c[a]||{};f=d.b;return d.path||""});return{b:f||H,url:G.R(e,b)}},R:function(a,b){var c=b.h;return c&&!pa.test(a)?v(c)+"/"+a:a},D:function(a,b){return a+((b||H).l.test(a)?"":".js")},t:function(a,b,c){var d=M.createElement("script");
+d.onload=d.onreadystatechange=function(c){c=c||r.event;if("load"==c.type||oa[d.readyState])delete N[a.id],d.onload=d.onreadystatechange=d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.O||"text/javascript";d.charset="utf-8";d.async=!a.fa;d.src=a.url;N[a.id]=d;ja.insertBefore(d,ka);return d},K:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(qa,"").replace(sa,function(a,e,f){f?c=c==f?A:c:c||b.push(e);return""});return b},
+aa:function(a){var b,c,d,e,f,g;f=a.length;d=a[f-1];e=u(d,"Function")?d.length:-1;2==f?u(a[0],"Array")?c=a[0]:b=a[0]:3==f&&(b=a[0],c=a[1]);!c&&0<e&&(g=h,c=["require","exports","module"].slice(0,e).concat(G.K(d)));return{id:b,s:c||[],B:0<=e?d:function(){return d},r:g}},Y:function(a){var b;b=a.B.apply(a.r?a.a:A,a.s);b===A&&a.a&&(b=a.u?a.a=a.u.a:a.a);return b},G:function(a,b){a.B=b.B;a.r=b.r;a.H=b.s;G.i(a)},i:function(a){function b(a,b,d){g[b]=a;d&&l(a,b)}function c(b,d){var c,e,f,g;c=C(1,function(a){e(a);
+j(a,d)});e=C(1,function(a){l(a,d)});f=G.Z(b,a);(g=f instanceof z&&f.a)&&e(g);B(f,c,a.d,a.a&&function(a){f.a&&(a==ma?e(f.a):a==na&&c(f.a))})}function d(){a.g(g)}var e,f,g,i,m,l,j;g=[];f=a.H;i=f.length;0==f.length&&d();l=C(i,b,function(){a.J&&a.J(g)});j=C(i,b,d);for(e=0;e<i;e++)m=f[e],m in ta?(j(ta[m](a),e,h),a.a&&a.A(ma)):m?c(m,e):j(A,e,h);return a},$:function(a){G.M(a);G.t(a,function(){var b=I;I=A;a.ia!==q&&(!b||b.I?a.d(Error(b&&b.I||"define() missing or duplicated: "+a.url)):G.G(a,b))},a.d);return a},
+Z:function(a,b){var c,d,e,f,g,i,m,l,j,k,p;c=b.q;d=b.ea;e=b.b||H;f=w(c(a));m=f.p;g=f.m||m;l=G.o(g,e);if(f.m)i=g;else if(i=l.b.moduleLoader||l.b.pa)m=g,g=i,l=G.o(i,e);g in J?j=J[g]:l.url in O?j=J[g]=O[l.url]:(j=G.F(l.b,g,d),j.url=G.D(l.url,l.b),J[g]=O[l.url]=j,G.$(j));g==i&&(k=new z,p=e.plugins[i]||e,B(j,function(a){var b,e,f;f=a.dynamic;m="normalize"in a?a.normalize(m,c,j.b)||"":c(m);e=i+"!"+m;b=J[e];if(!(e in J)){b=G.W(p,e,m,d);f||(J[e]=b);var g=function(a){b.g(a);f||(J[e]=a)};g.resolve=g;g.reject=
+g.error=b.d;a.load(m,b.n,g,p)}k!=b&&B(b,k.g,k.d,k.A)},k.d));return k||j},da:function(){var a;if(!u(r.opera,"Opera"))for(var b in N)if("interactive"==N[b].readyState){a=b;break}return a}};ta={require:G.ca,exports:G.L,module:G.ba};E.version="0.7.3";E.config=F;ia.amd={plugins:h,jQuery:h,curl:"0.7.3"};H={h:"",Q:"curl/plugin",l:/\?|\.js\b/,z:{},w:{},plugins:{},c:{},P:/$^/};K=r.curl;L=r.define;!K||u(K,"Function")?G.S():(r.curl=A,F(K));J.curl=E;
+J["curl/_privileged"]={core:G,cache:J,config:function(){return H},_define:ha,_curl:E,Promise:z};var Q=this.document;function ua(){if(!Q.body)return q;R||(R=Q.createTextNode(""));try{return Q.body.removeChild(Q.body.appendChild(R)),R=va,h}catch(a){return q}}function S(){var a;a=wa[Q[xa]]&&ua();if(!T&&a){T=h;for(clearTimeout(ya);za=Aa.pop();)za();Ba&&(Q[xa]="complete");for(var b;b=Ca.shift();)b()}return a}function Da(){S();T||(ya=setTimeout(Da,Ea))}
+var xa="readyState",wa={loaded:1,interactive:1,complete:1},Ca=[],Ba=Q&&"string"!=typeof Q[xa],T=q,Ea=10,U,za,Aa=[],ya,va,R;U="addEventListener"in this?function(a,b){a.addEventListener(b,S,q);return function(){a.removeEventListener(b,S,q)}}:function(a,b){a.attachEvent("on"+b,S);return function(){a.detachEvent(b,S)}};Q&&!S()&&(Aa=[U(this,"load"),U(Q,"readystatechange"),U(this,"DOMContentLoaded")],ya=setTimeout(Da,Ea));
+define("curl/domReady",function(){function a(a){T?a():Ca.push(a)}a.then=a;a.amd=h;return a});var Fa;define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function c(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,d){return a.toUrl(b+(d||""))});a.cache||(a.cache={})}var d=a._curl,e=a.core.e;c(d);"undefined"==typeof Fa&&(Fa=d);a.core.e=function(){var a=e.apply(this,arguments);c(a.n);return a};return h});var Ga=this.document;
+function Ha(a){try{return eval(a)}catch(b){}}
+define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,d,c){function e(){g||(f<new Date?c():setTimeout(e,10))}var f,g,i;f=(new Date).valueOf()+(b.ha||3E5);c&&b.a&&setTimeout(e,10);i=a.core.t(b,function(){g=h;b.a&&(b.C=Ha(b.a));!b.a||b.C?d(i):c()},function(a){g=h;c(a)})}function c(a,d){b(a,function(){var b=e.shift();i=0<e.length;b&&c.apply(n,b);d.g(a.C||h)},function(a){d.d(a)})}var d={},e=[],f=Ga&&Ga.createElement("script").async==h,g,i;g=a.Promise;return{dynamic:h,normalize:function(a,
+b){var d=a.indexOf("!");return 0<=d?b(a.substr(0,d))+a.substr(d):b(a)},load:function(a,l,j,k){function p(a){(j.error||function(a){throw a;})(a)}var s,t,ea,ra,D;s=0<a.indexOf("!order");t=a.indexOf("!exports=");ea=0<t&&a.substr(t+9);ra="prefetch"in k?k.prefetch:h;a=s||0<t?a.substr(0,a.indexOf("!")):a;l=l.toUrl(a);D=l.lastIndexOf(".")<=l.lastIndexOf("/")?l+".js":l;D in d?d[D]instanceof g?d[D].j(j,p):j(d[D]):(a={name:a,url:D,fa:s,a:ea,ha:k.timeout},d[D]=k=new g,k.j(function(a){d[D]=a;j(a)},p),s&&!f&&
+i?(e.push([a,k]),ra&&(a.O="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.O="")):(i=i||s,c(a,k)))}}});
+define("curl/plugin/text",function(){function a(){if("undefined"!==typeof XMLHttpRequest)a=function(){return new XMLHttpRequest};else for(var b=a=function(){throw Error("getXhr(): XMLHttpRequest not available");};0<c.length&&a===b;)(function(b){try{new ActiveXObject(b),a=function(){return new ActiveXObject(b)}}catch(d){}})(c.shift());return a()}function b(a){throw a;}var c=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];return{load:function(d,c,f){var d=c.toUrl(d),g=f.error||b,i=a();i.open("GET",
+d,h);i.onreadystatechange=function(){4===i.readyState&&(400>i.status?f(i.responseText):g(Error("fetchText() failed. status: "+i.statusText)))};i.send(n)},"plugin-builder":"./builder/text"}});define("curl/plugin/async",function(){return{load:function(a,b,c){function d(a){"function"==typeof c.error&&c.error(a)}b([a],function(a){"function"==typeof a.j?a.j(function(b){0==arguments.length&&(b=a);c(b)},d):c(a)},c.error||function(a){throw a;})},analyze:function(a,b,c){c(a)}}});
+function Ia(){var a;a=V[Ja]("link");a.rel="stylesheet";a.type="text/css";return a}function Ka(a,b,c){La.push({url:a,U:b,X:function(){c(Error(Ma))}});a=Na.shift();!a&&Oa.length<Pa&&(a=V.createElement("style"),Oa.push(a),W.appendChild(a));a&&Qa(a)}function Qa(a){var b,c;b=La.shift();c=a.styleSheet;b?(a.onload=function(){b.U(b.ga);Qa(a)},a.onerror=function(){b.X();Qa(a)},b.ga=c.imports[c.addImport(b.url)]):(a.onload=a.onerror=X,Na.push(a))}
+function Ra(a,b,c){if(!Y.load){var d;var e,f;if(!a.href||V.readyState&&"complete"!=V.readyState)d=q;else{d=q;try{if(e=a.sheet)f=e.cssRules,d=f===n,!d&&f&&(e.insertRule("-curl-css-test {}",0),e.deleteRule(0),d=h)}catch(g){d="[object Opera]"!=Object.prototype.toString.call(window.opera)&&/security|denied/i.test(g.message)}}d?c(a.sheet):a.onload==X||!a.onload||Sa(function(){Ra(a,b,c)},b)}}
+function Ta(a,b,c,d){function e(){if(f.onload!=X&&f.onload){f.onload=f.onerror=X;var a=function(){!V.readyState||"complete"==V.readyState?b(f.sheet):Sa(a,10)};a()}}var f;f=Ia();f.onload=function(){Y.load=Y.load||h;e()};Ra(f,d,e);f.onerror=function(){Y.error=Y.error||h;f.onload!=X&&f.onload&&(f.onload=f.onerror=X,c(Error(Ma)))};f.href=a;W.appendChild(f)}function X(){}
+var Ja="createElement",Sa=this.setTimeout,V=this.document,W,Ua=V&&V.createStyleSheet&&!(10<=V.documentMode),Oa=[],Na=[],La=[],Pa=12,Va,Ma="HTTP or network error.",Y={};V&&(W=V.head||V.getElementsByTagName("head")[0],Va=Ua?Ka:Ta);
+define("curl/plugin/css",{normalize:function(a,b){var c,d;if(!a)return a;c=a.split(",");d=[];for(var e=0,f=c.length;e<f;e++)d.push(b(c[e]));return d.join(",")},load:function(a,b,c,d){function e(a){1<i.length&&g.push(a);0==--l&&c(1==i.length?a:g)}function f(a){(c.d||function(a){throw a;})(a)}var g,i,m,l,j;g=[];i=(a||"").split(",");m=d.cssWatchPeriod||50;d=d.cssNoWait;l=i.length;for(j=0;j<i.length;j++){var a=i[j],k,a=b.toUrl(a),a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;d?(k=Ia(),k.href=a,
+W.appendChild(k),e(k.sheet||k.styleSheet)):Va(a,e,f,m)}},"plugin-builder":"./builder/css",pluginBuilder:"./builder/css"});var Z=this.document,Wa=/^\/\//,Xa;Z&&(Xa=Z.head||(Z.head=Z.getElementsByTagName("head")[0]));
+define("curl/plugin/link",{load:function(a,b,c,d){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;d=a=(d="fixSchemalessUrls"in d?d.fixSchemalessUrls:Z.location.protocol)?a.replace(Wa,d+"//"):a;a=Z.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=d;Xa.appendChild(a);c(a.sheet||a.styleSheet)}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});var $=this.document;function Ya(a){eval(a)}
+define("curl/loader/cjsm11",function(){function a(b,c){a="text"in b?function(a,b){a.text=b}:function(a,b){a.appendChild($.createTextNode(b))};a(b,c)}var b,c;c=(b=$&&($.head||$.getElementsByTagName("head")[0]))&&b.getElementsByTagName("base")[0]||n;return{load:function(d,e,f,g){e(["text!"+d+".js","curl/_privileged"],function(i,m){var l;l=m.core.K(i);e(l,function(){var j=i,k=g.injectSourceUrl!==q&&e.ua(d),k=k?"////@ sourceURL="+k.replace(/\s/g,"%20")+".js":"";i="define('"+d+"',['require','exports','module'],function(require,exports,module){"+
+j+"\n});\n"+k+"\n";g.injectScript?(j=i,k=$.createElement("script"),a(k,j),k.charset="utf-8",b.insertBefore(k,c)):Ya(i);f(e(d))},f.error||function(a){throw a;})})}}});define.amd.ta=h;
+(function(a,b){define("curl/shim/ssjs",function(c){function d(a,c,d){try{b(a.url),c()}catch(e){d(e)}}function e(b,c,d){var e;try{e=b.url.replace(/\.js$/,""),a(e),c()}catch(f){d(f)}}function f(b,c,d){var e,b=a("url").parse(b.url,q,h);e="";p.get(b,function(a){a.v("data",function(a){e+=a}).v("end",function(){i(e);c()}).v("error",d)}).v("error",d)}function g(a){throw Error("ssjs: unable to load module in current environment: "+a.url);}function i(a){eval(a)}var m,l,j,k,p,s,t;if(!("object"==typeof window&&
+(window.la||window.navigator))){c=c("curl/_privileged");m=c.b();l=/^\w+:/;j=/(^\w+:)?.*$/;k=(m.k&&":"!=m.k[m.k.length-1]?m.k+":":m.k)||m.h&&m.h.replace(j,function(a,b){return b})||"http:";if(b)s=t=d;else if(a){s=e;try{p=a("http"),t=f}catch(ea){t=g}}else s=t=g;c.ma.t=function(a,b,c){/^\/\//.test(a.url)&&(a.url=k+a.url);return l.test(a.url)?t(a,b,c):s(a,b,c)}}})})(Fa,void 0);
}).call(this);
View
43 dist/curl-with-js-and-domReady/curl.js
@@ -1,24 +1,25 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var h=!0,l=!1,m=this.window||global;function n(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function t(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function u(a,b){var d,c,e,g;d=1;c=a;"."==c.charAt(0)&&(e=h,c=c.replace(ba,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");g=e.length-d;if(0>g)return a;e.splice(g,d);return e.concat(c||[]).join("/")}return c}function w(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function x(){}
-function A(a,b){x.prototype=a||B;var d=new x;x.prototype=B;for(var c in b)d[c]=b[c];return d}function C(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=n;b(d?0:1,f);b=n;c=E};this.t=function(b,c,e){a(b,c,e)};this.f=function(a){d.s=a;e(h,a)};this.d=function(a){d.ca=a;e(l,a)};this.p=function(a){b(2,a)}}function F(a,b,d,c){a instanceof C?a.t(b,d,c):b(a)}
-function G(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(E,arguments));0==a&&d&&d(c);return c}}function H(){var a=[].slice.call(arguments),b;p(a[0],"Object")&&(b=a.shift(),I=J.b(b,I),J.v(b));return new ca(a[0],a[1],a[2])}function ca(a,b,d,c){var e;e=J.g(I,E,[].concat(a));this.then=a=function(a,b){F(e,function(b){a&&a.apply(E,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,c){return new ca(a,b,c,e)};(b||d)&&a(b,d);F(c,function(){J.i(e)})}
-function da(a){var b,d;b=a.id;if(b==E)if(K!==E)K={C:"Multiple anonymous defines in url"};else if(!(b=J.V()))K=a;if(b!=E){d=L[b];b in L||(d=J.k(b,I),d=J.z(d.b,b),L[b]=d);if(!(d instanceof C))throw Error("duplicate define: "+b);d.ba=l;J.A(d,a)}}
-var I,M,N,O=m.document,P=O&&(O.head||O.getElementsByTagName("head")[0]),ea=P&&P.getElementsByTagName("base")[0]||null,ga={},ha={},Q={},ia="addEventListener"in m?{}:{loaded:1,complete:1},B={},aa=B.toString,E,L={},R={},S=l,K,ja=/\?/,ka=/^\/|^[^:]+:\/\//,ba=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,la=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ma=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,T,J;
-J={h:function(a,b,d){var c,a=u(a,b);if("."==a.charAt(0))return a;c=w(a);a=(b=c.j)||c.l;a in d.c&&(a=d.c[a].X||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=t(d.$)+"/"+b),a=a+"!"+c.l);return a},g:function(a,b,d,c){function e(b){return J.h(b,f.id,a)}function g(b,d,g){var j;j=d&&function(a){d.apply(E,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=L[g];if(!(g in L))throw Error("Module not resolved: "+g);return(g=b instanceof C&&b.a)||b}F(J.i(J.g(a,f.id,b,c)),j,g)}var f;
-f=new C;f.id=b||"";f.W=c;f.B=d;f.b=a;f.q=g;g.toUrl=function(b){return J.k(e(b),a).url};f.h=e;return f},z:function(a,b,d){var c,e,g;c=J.g(a,b,E,d);e=c.f;g=G(1,function(a){c.n=a;try{return J.O(c)}catch(b){c.d(b)}});c.f=function(a){F(d||S,function(){e(L[c.id]=R[c.url]=g(a))})};c.D=function(a){F(d||S,function(){c.a&&(g(a),c.p(ha))})};return c},M:function(a,b,d,c){return J.g(a,d,E,c)},U:function(a){return a.q},F:function(a){return a.a||(a.a={})},T:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:J.G(a),exports:J.F(a),
-config:function(){return a.b}},b.a=b.exports);return b},G:function(a){return a.url||(a.url=J.w(a.q.toUrl(a.id),a.b))},b:function(a){var b,d,c,e,g,f;b=!a;a&&(J.b=J.J);a||(a={});c=a.apiName||"curl";e=a.apiContext||m;g=a.defineName||"define";f=a.defineContext||m;d=a.overwriteApi;!b&&M&&(m.curl=M,M=l);if(!b&&!d&&e[c]&&e[c]!=H)throw Error(c+" already exists");e[c]=H;if(!b||!m.define){if(!b&&!d&&g in f&&f[g]!=N)throw Error(g+" already exists");f[g]=N=function(){var a=J.S(arguments);da(a)};N.amd={plugins:h,
-jQuery:h,curl:"0.7.2"}}return J.J(a)},J:function(a,b){function d(a,b){var c,d,f,s,v;for(v in a){f=a[v];p(f,"String")&&(f={path:a[v]});f.name=f.name||v;s=e;d=w(t(J.h(f.name,"",e)));c=d.l;if(d=d.j)s=g[d],s||(s=g[d]=A(e),s.c=A(e.c),s.e=[]),delete a[v];if(b){d=f;var y=void 0;d.path=t(d.path||d.location||"");y=d.main||"./main";"."==y.charAt(0)||(y="./"+y);d.X=u(y,d.name+"/");d.b=d.config;d.b&&(d.b=A(e,d.b))}else d={path:t(f.path)};d.L=c.split("/").length;c?(s.c[c]=d,s.e.push(c)):s.u=J.K(f.path,e)}}function c(a){var b=
-a.c;a.Z=RegExp("^("+a.e.sort(function(a,c){return b[c].L-b[a].L}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,g,f,i;b||(b={});e=A(b,a);e.u=e.baseUrl||"";e.$=e.pluginPath||"curl/plugin";e.N=RegExp(e.dontAddFileExt||ja);e.c=A(b.c);g=a.plugins||{};e.plugins=A(b.plugins);e.e=[];d(a.packages,h);d(a.paths,l);for(f in g)i=J.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=A(e,g[f]),i=g[f].e)g[f].e=i.concat(e.e),c(g[f]);c(e);return e},v:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&F(S,function(){S=J.i(J.g(I,E,b,h))})},k:function(a,b){var d,c,e,g;d=b.c;e=ka.test(a)?a:a.replace(b.Z,function(a){c=d[a]||{};g=c.b;return c.path||""});return{b:g||I,url:J.K(e,b)}},K:function(a,b){var d=b.u;return d&&!ka.test(a)?t(d)+"/"+a:a},w:function(a,b){return a+((b||I).N.test(a)?"":".js")},H:function(a,b,d){var c=O.createElement("script");c.onload=c.onreadystatechange=function(d){d=d||m.event;if("load"==d.type||ia[c.readyState])delete Q[a.id],c.onload=c.onreadystatechange=
-c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.I||"text/javascript";c.charset="utf-8";c.async=!a.Y;c.src=a.url;Q[a.id]=c;P.insertBefore(c,ea);return c},P:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(la,"").replace(ma,function(a,e,g){g?d=d==g?E:d:d||b.push(e);return""});return b},S:function(a){var b,d,c,e,g,f;g=a.length;c=a[g-1];e=p(c,"Function")?c.length:-1;2==g?p(a[0],"Array")?d=a[0]:b=a[0]:3==g&&(b=a[0],d=a[1]);
-!d&&0<e&&(f=h,d=["require","exports","module"].slice(0,e).concat(J.P(c)));return{id:b,n:d||[],r:0<=e?c:function(){return c},m:f}},O:function(a){var b;b=a.r.apply(a.m?a.a:E,a.n);b===E&&a.a&&(b=a.o?a.a=a.o.a:a.a);return b},A:function(a,b){a.r=b.r;a.m=b.m;a.B=b.n;J.i(a)},i:function(a){function b(a,b,d){f[b]=a;d&&k(a,b)}function d(b,d){var c,e,f,g;c=G(1,function(a){e(a);j(a,d)});e=G(1,function(a){k(a,d)});f=J.Q(b,a);(g=f instanceof C&&f.a)&&e(g);F(f,c,a.d,a.a&&function(a){f.a&&(a==ga?e(f.a):a==ha&&c(f.a))})}
-function c(){a.f(f)}var e,g,f,i,q,k,j;f=[];g=a.B;i=g.length;0==g.length&&c();k=G(i,b,function(){a.D&&a.D(f)});j=G(i,b,c);for(e=0;e<i;e++)q=g[e],q in T?(j(T[q](a),e,h),a.a&&a.p(ga)):q?d(q,e):j(E,e,h);return a},R:function(a){J.G(a);J.H(a,function(){var b=K;K=E;a.ba!==l&&(!b||b.C?a.d(Error(b&&b.C||"define() missing or duplicated: "+a.url)):J.A(a,b))},a.d);return a},Q:function(a,b){var d,c,e,g,f,i,q,k,j,r,D;d=b.h;c=b.W;e=b.b||I;g=w(d(a));q=g.l;f=g.j||q;k=J.k(f,e);if(g.j)i=f;else if(i=k.b.moduleLoader)q=
-f,f=i,k=J.k(i,e);f in L?j=L[f]:k.url in R?j=L[f]=R[k.url]:(j=J.z(k.b,f,c),j.url=J.w(k.url,k.b),L[f]=R[k.url]=j,J.R(j));f==i&&(r=new C,D=e.plugins[i]||e,F(j,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,d,j.b)||"":d(q);e=i+"!"+q;b=L[e];if(!(e in L)){b=J.M(D,e,q,c);f||(L[e]=b);var g=function(a){b.f(a);f||(L[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(q,b.q,g,D)}r!=b&&F(b,r.f,r.d,r.p)},r.d));return r||j},V:function(){var a;if(!p(m.opera,"Opera"))for(var b in Q)if("interactive"==
-Q[b].readyState){a=b;break}return a}};T={require:J.U,exports:J.F,module:J.T};H.version="0.7.2";I=m.curl;"function"==typeof I?(M=I,I=l):m.curl=E;I=J.b(I);J.v(I);L.curl=H;L["curl/_privileged"]={core:J,cache:L,config:function(){return I},_define:da,_curl:H,Promise:C};var U=this.document;function na(){if(!U.body)return l;V||(V=U.createTextNode(""));try{return U.body.removeChild(U.body.appendChild(V)),V=oa,h}catch(a){return l}}
-function W(){var a;a=pa[U[X]]&&na();if(!Y&&a){Y=h;for(clearTimeout(Z);qa=ra.pop();)qa();sa&&(U[X]="complete");for(var b;b=ta.shift();)b()}return a}function ua(){W();Y||(Z=setTimeout(ua,va))}var X="readyState",pa={loaded:1,interactive:1,complete:1},ta=[],sa=U&&"string"!=typeof U[X],Y=l,va=10,$,qa,ra=[],Z,oa,V;$="addEventListener"in this?function(a,b){a.addEventListener(b,W,l);return function(){a.removeEventListener(b,W,l)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};
-U&&!W()&&(ra=[$(this,"load"),$(U,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(ua,va));define("curl/domReady",function(){function a(a){Y?a():ta.push(a)}a.then=a;a.amd=h;return a});var wa=this.document;function xa(a){try{return eval(a)}catch(b){}}
-define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,d,c){function e(){g||(f<new Date?c():setTimeout(e,10))}var f,g,i;f=(new Date).valueOf()+(b.aa||3E5);c&&b.a&&setTimeout(e,10);i=a.core.H(b,function(){g=h;b.a&&(b.s=xa(b.a));!b.a||b.s?d(i):c()},function(a){g=h;c(a)})}function d(a,c){b(a,function(){var b=e.shift();i=0<e.length;b&&d.apply(null,b);c.f(a.s||h)},function(a){c.d(a)})}var c={},e=[],g=wa&&wa.createElement("script").async==h,f,i;f=a.Promise;return{dynamic:h,normalize:function(a,
-b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,k,j,r){function D(a){(j.error||function(a){throw a;})(a)}var s,v,y,fa,z;s=0<a.indexOf("!order");v=a.indexOf("!exports=");y=0<v&&a.substr(v+9);fa="prefetch"in r?r.prefetch:h;a=s||0<v?a.substr(0,a.indexOf("!")):a;k=k.toUrl(a);z=k.lastIndexOf(".")<=k.lastIndexOf("/")?k+".js":k;z in c?c[z]instanceof f?c[z].t(j,D):j(c[z]):(a={name:a,url:z,Y:s,a:y,aa:r.timeout},c[z]=r=new f,r.t(function(a){c[z]=a;j(a)},D),s&&!g&&i?(e.push([a,
-r]),fa&&(a.I="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.I="")):(i=i||s,d(a,r)))}}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});
+var h=!0,l=!1,m=this.window||"undefined"!=typeof global&&global||this;function n(){}function s(a,b){return 0==aa.call(a).indexOf("[object "+b)}function u(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ba(a,b){var d,c,e,g;d=1;c=a;"."==c.charAt(0)&&(e=h,c=c.replace(ca,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");g=e.length-d;if(0>g)return a;e.splice(g,d);return e.concat(c||[]).join("/")}return c}
+function v(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function x(){}function y(a,b){x.prototype=a||z;var d=new x;x.prototype=z;for(var c in b)d[c]=b[c];return d}
+function A(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=n;b(d?0:1,f);b=n;c=B};this.z=function(b,c,e){a(b,c,e)};this.g=function(a){d.w=a;e(h,a)};this.e=function(a){d.la=a;e(l,a)};this.t=function(a){b(2,a)}}function D(a,b,d,c){a instanceof A?a.z(b,d,c):b(a)}function E(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(B,arguments));0==a&&d&&d(c);return c}}
+function F(){var a=[].slice.call(arguments),b;s(a[0],"Object")&&(b=a.shift(),G(b));return new da(a[0],a[1],a[2])}function G(a){a&&(H.P(a),I=H.b(a),H.R(a),"main"in a&&setTimeout(function(){var b;b=H.f(I,B,[].concat(a.main));H.h(b)},0))}function da(a,b,d,c){var e;e=H.f(I,B,[].concat(a));this.then=a=function(a,b){D(e,function(b){a&&a.apply(B,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,c){return new da(a,b,c,e)};this.config=G;(b||d)&&a(b,d);D(c,function(){H.h(e)})}
+function ea(a){var b,d;b=a.id;if(b==B)if(J!==B)J={F:"Multiple anonymous defines in url"};else if(!(b=H.$()))J=a;if(b!=B){d=K[b];b in K||(d=H.k(b,I),d=H.B(d.b,b),K[b]=d);if(!(d instanceof A))throw Error("duplicate define: "+b);d.da=l;H.C(d,a)}}function L(){var a=H.X(arguments);ea(a)}
+var I,M,N,O=m.document,P=O&&(O.head||O.getElementsByTagName("head")[0]),fa=P&&P.getElementsByTagName("base")[0]||null,ia={},ja={},Q={},ka="addEventListener"in m?{}:{loaded:1,complete:1},z={},aa=z.toString,B,K={},R={},S=l,J,la=/^\/|^[^:]+:\/\//,ca=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ma=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,na=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,T,H;
+H={m:function(a,b,d){var c,a=ba(a,b);if("."==a.charAt(0))return a;c=v(a);a=(b=c.j)||c.l;a in d.c&&(a=d.c[a].K||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=u(d.N)+"/"+b),a=a+"!"+c.l);return a},f:function(a,b,d,c){function e(b){return H.m(b,f.id,a)}function g(b,d,g){var i;i=d&&function(a){d.apply(B,a)};if(s(b,"String")){if(i)throw Error("require(id, callback) not allowed");g=e(b);b=K[g];if(!(g in K))throw Error("Module not resolved: "+g);return(g=b instanceof A&&b.a)||b}D(H.h(H.f(a,f.id,b,c)),i,g)}var f;
+f=new A;f.id=b||"";f.aa=c;f.D=d;f.b=a;f.u=g;g.toUrl=function(b){return H.k(e(b),a).url};f.m=e;return f},B:function(a,b,d){var c,e,g;c=H.f(a,b,B,d);e=c.g;g=E(1,function(a){c.p=a;try{return H.T(c)}catch(b){c.e(b)}});c.g=function(a){D(d||S,function(){e(K[c.id]=R[c.url]=g(a))})};c.G=function(a){D(d||S,function(){c.a&&(g(a),c.t(ja))})};return c},S:function(a,b,d,c){return H.f(a,d,B,c)},Z:function(a){return a.u},H:function(a){return a.a||(a.a={})},Y:function(a){var b=a.q;b||(b=a.q={id:a.id,uri:H.I(a),exports:H.H(a),
+config:function(){return a.b}},b.a=b.exports);return b},I:function(a){return a.url||(a.url=H.A(a.u.toUrl(a.id),a.b))},P:function(a){var b,d,c,e,g;b="curl";d="define";c=e=m;if(a&&(g=a.overwriteApi||a.ja,b=a.apiName||a.fa||b,c=a.apiContext||a.ea||c,d=a.defineName||a.ha||d,e=a.defineContext||a.ga||e,M&&s(M,"Function")&&(m.curl=M),M=null,N&&s(N,"Function")&&(m.define=N),N=null,!g)){if(c[b]&&c[b]!=F)throw Error(b+" already exists");if(e[d]&&e[d]!=L)throw Error(d+" already exists");}c[b]=F;e[d]=L},b:function(a){function b(a,
+b){var c,d,f,p,t;for(t in a){f=a[t];s(f,"String")&&(f={path:a[t]});f.name=f.name||t;p=e;d=v(u(f.name));c=d.l;if(d=d.j)p=g[d],p||(p=g[d]=y(e),p.c=y(e.c),p.d=[]),delete a[t];if(b){d=f;var w=void 0;d.path=u(d.path||d.location||"");w=d.main||"./main";"."==w.charAt(0)||(w="./"+w);d.K=ba(w,d.name+"/");d.b=d.config;d.b&&(d.b=y(e,d.b))}else d={path:u(f.path)};d.Q=c.split("/").length;c?(p.c[c]=d,p.d.push(c)):p.n=H.O(f.path,e)}}function d(a){var b=a.c;a.M=RegExp("^("+a.d.sort(function(a,c){return b[c].Q-b[a].Q}).join("|").replace(/\/|\./g,
+"\\$&")+")(?=\\/|$)");delete a.d}var c,e,g,f;"baseUrl"in a&&(a.n=a.baseUrl);"main"in a&&(a.K=a.main);"preloads"in a&&(a.ka=a.preloads);"pluginPath"in a&&(a.N=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=RegExp(a.dontAddFileExt||a.i);c=I;e=y(c,a);e.c=y(c.c);g=a.plugins||{};e.plugins=y(c.plugins);e.s=y(c.s,a.s);e.r=y(c.r,a.r);e.d=[];b(a.packages,h);b(a.paths,l);for(f in g)a=H.m(f+"!","",e),e.plugins[a.substr(0,a.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=y(e,g[f]),a=g[f].d)g[f].d=a.concat(e.d),
+d(g[f]);for(f in c.c)e.c.hasOwnProperty(f)||e.d.push(f);d(e);return e},R:function(a){var b;(b=a&&a.preloads)&&0<b.length&&D(S,function(){S=H.h(H.f(I,B,b,h))})},k:function(a,b){var d,c,e,g;d=b.c;e=la.test(a)?a:a.replace(b.M,function(a){c=d[a]||{};g=c.b;return c.path||""});return{b:g||I,url:H.O(e,b)}},O:function(a,b){var d=b.n;return d&&!la.test(a)?u(d)+"/"+a:a},A:function(a,b){return a+((b||I).i.test(a)?"":".js")},J:function(a,b,d){var c=O.createElement("script");c.onload=c.onreadystatechange=function(d){d=
+d||m.event;if("load"==d.type||ka[c.readyState])delete Q[a.id],c.onload=c.onreadystatechange=c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.L||"text/javascript";c.charset="utf-8";c.async=!a.ba;c.src=a.url;Q[a.id]=c;P.insertBefore(c,fa);return c},U:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ma,"").replace(na,function(a,e,g){g?d=d==g?B:d:d||b.push(e);return""});return b},X:function(a){var b,d,c,e,g,f;g=a.length;
+c=a[g-1];e=s(c,"Function")?c.length:-1;2==g?s(a[0],"Array")?d=a[0]:b=a[0]:3==g&&(b=a[0],d=a[1]);!d&&0<e&&(f=h,d=["require","exports","module"].slice(0,e).concat(H.U(c)));return{id:b,p:d||[],v:0<=e?c:function(){return c},o:f}},T:function(a){var b;b=a.v.apply(a.o?a.a:B,a.p);b===B&&a.a&&(b=a.q?a.a=a.q.a:a.a);return b},C:function(a,b){a.v=b.v;a.o=b.o;a.D=b.p;H.h(a)},h:function(a){function b(a,b,d){f[b]=a;d&&j(a,b)}function d(b,d){var c,e,f,g;c=E(1,function(a){e(a);i(a,d)});e=E(1,function(a){j(a,d)});
+f=H.V(b,a);(g=f instanceof A&&f.a)&&e(g);D(f,c,a.e,a.a&&function(a){f.a&&(a==ia?e(f.a):a==ja&&c(f.a))})}function c(){a.g(f)}var e,g,f,k,q,j,i;f=[];g=a.D;k=g.length;0==g.length&&c();j=E(k,b,function(){a.G&&a.G(f)});i=E(k,b,c);for(e=0;e<k;e++)q=g[e],q in T?(i(T[q](a),e,h),a.a&&a.t(ia)):q?d(q,e):i(B,e,h);return a},W:function(a){H.I(a);H.J(a,function(){var b=J;J=B;a.da!==l&&(!b||b.F?a.e(Error(b&&b.F||"define() missing or duplicated: "+a.url)):H.C(a,b))},a.e);return a},V:function(a,b){var d,c,e,g,f,k,
+q,j,i,r,p;d=b.m;c=b.aa;e=b.b||I;g=v(d(a));q=g.l;f=g.j||q;j=H.k(f,e);if(g.j)k=f;else if(k=j.b.moduleLoader||j.b.ia)q=f,f=k,j=H.k(k,e);f in K?i=K[f]:j.url in R?i=K[f]=R[j.url]:(i=H.B(j.b,f,c),i.url=H.A(j.url,j.b),K[f]=R[j.url]=i,H.W(i));f==k&&(r=new A,p=e.plugins[k]||e,D(i,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,d,i.b)||"":d(q);e=k+"!"+q;b=K[e];if(!(e in K)){b=H.S(p,e,q,c);f||(K[e]=b);var g=function(a){b.g(a);f||(K[e]=a)};g.resolve=g;g.reject=g.error=b.e;a.load(q,b.u,g,p)}r!=
+b&&D(b,r.g,r.e,r.t)},r.e));return r||i},$:function(){var a;if(!s(m.opera,"Opera"))for(var b in Q)if("interactive"==Q[b].readyState){a=b;break}return a}};T={require:H.Z,exports:H.H,module:H.Y};F.version="0.7.3";F.config=G;L.amd={plugins:h,jQuery:h,curl:"0.7.3"};I={n:"",N:"curl/plugin",i:/\?|\.js\b/,s:{},r:{},plugins:{},c:{},M:/$^/};M=m.curl;N=m.define;!M||s(M,"Function")?H.P():(m.curl=B,G(M));K.curl=F;K["curl/_privileged"]={core:H,cache:K,config:function(){return I},_define:ea,_curl:F,Promise:A};
+var U=this.document;function oa(){if(!U.body)return l;V||(V=U.createTextNode(""));try{return U.body.removeChild(U.body.appendChild(V)),V=pa,h}catch(a){return l}}function W(){var a;a=qa[U[X]]&&oa();if(!Y&&a){Y=h;for(clearTimeout(Z);ra=sa.pop();)ra();ta&&(U[X]="complete");for(var b;b=ua.shift();)b()}return a}function va(){W();Y||(Z=setTimeout(va,wa))}var X="readyState",qa={loaded:1,interactive:1,complete:1},ua=[],ta=U&&"string"!=typeof U[X],Y=l,wa=10,$,ra,sa=[],Z,pa,V;
+$="addEventListener"in this?function(a,b){a.addEventListener(b,W,l);return function(){a.removeEventListener(b,W,l)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};U&&!W()&&(sa=[$(this,"load"),$(U,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(va,wa));define("curl/domReady",function(){function a(a){Y?a():ua.push(a)}a.then=a;a.amd=h;return a});var xa=this.document;function ya(a){try{return eval(a)}catch(b){}}
+define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,d,c){function e(){g||(f<new Date?c():setTimeout(e,10))}var f,g,k;f=(new Date).valueOf()+(b.ca||3E5);c&&b.a&&setTimeout(e,10);k=a.core.J(b,function(){g=h;b.a&&(b.w=ya(b.a));!b.a||b.w?d(k):c()},function(a){g=h;c(a)})}function d(a,c){b(a,function(){var b=e.shift();k=0<e.length;b&&d.apply(null,b);c.g(a.w||h)},function(a){c.e(a)})}var c={},e=[],g=xa&&xa.createElement("script").async==h,f,k;f=a.Promise;return{dynamic:h,normalize:function(a,
+b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,j,i,r){function p(a){(i.error||function(a){throw a;})(a)}var t,w,ga,ha,C;t=0<a.indexOf("!order");w=a.indexOf("!exports=");ga=0<w&&a.substr(w+9);ha="prefetch"in r?r.prefetch:h;a=t||0<w?a.substr(0,a.indexOf("!")):a;j=j.toUrl(a);C=j.lastIndexOf(".")<=j.lastIndexOf("/")?j+".js":j;C in c?c[C]instanceof f?c[C].z(i,p):i(c[C]):(a={name:a,url:C,ba:t,a:ga,ca:r.timeout},c[C]=r=new f,r.z(function(a){c[C]=a;i(a)},p),t&&!g&&
+k?(e.push([a,r]),ha&&(a.L="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.L="")):(k=k||t,d(a,r)))}}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});
}).call(this);
View
33 dist/curl/curl.js
@@ -1,19 +1,20 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var h=!0,k=!1,l=this.window||global;function m(){}function q(a,b){return 0==r.call(a).indexOf("[object "+b)}function s(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function u(a,b){var c,d,e,g;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(v,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");g=e.length-c;if(0>g)return a;e.splice(g,c);return e.concat(d||[]).join("/")}return d}function w(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function y(){}
-function z(a,b){y.prototype=a||A;var c=new y;y.prototype=A;for(var d in b)c[d]=b[d];return c}function B(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,f){a=c?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=m;b(c?0:1,f);b=m;d=C};this.X=function(b,d,e){a(b,d,e)};this.g=function(a){c.ba=a;e(h,a)};this.e=function(a){c.aa=a;e(k,a)};this.p=function(a){b(2,a)}}function F(a,b,c,d){a instanceof B?a.X(b,c,d):b(a)}
-function G(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(C,arguments));0==a&&c&&c(d);return d}}function H(){var a=[].slice.call(arguments),b;q(a[0],"Object")&&(b=a.shift(),I=J.a(b,I),J.t(b));return new K(a[0],a[1],a[2])}function K(a,b,c,d){var e;e=J.f(I,C,[].concat(a));this.then=a=function(a,b){F(e,function(b){a&&a.apply(C,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new K(a,b,d,e)};(b||c)&&a(b,c);F(d,function(){J.i(e)})}
-function L(a){var b,c;b=a.id;if(b==C)if(M!==C)M={A:"Multiple anonymous defines in url"};else if(!(b=J.R()))M=a;if(b!=C){c=N[b];b in N||(c=J.k(b,I),c=J.v(c.a,b),N[b]=c);if(!(c instanceof B))throw Error("duplicate define: "+b);c.Y=k;J.w(c,a)}}
-var I,O,P,R=l.document,S=R&&(R.head||R.getElementsByTagName("head")[0]),T=S&&S.getElementsByTagName("base")[0]||null,U={},V={},W={},aa="addEventListener"in l?{}:{loaded:1,complete:1},A={},r=A.toString,C,N={},X={},Y=k,M,ba=/\?/,Z=/^\/|^[^:]+:\/\//,v=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ca=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,da=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,$,J;
-J={h:function(a,b,c){var d,a=u(a,b);if("."==a.charAt(0))return a;d=w(a);a=(b=d.j)||d.l;a in c.c&&(a=c.c[a].U||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=s(c.W)+"/"+b),a=a+"!"+d.l);return a},f:function(a,b,c,d){function e(b){return J.h(b,f.id,a)}function g(b,c,g){var j;j=c&&function(a){c.apply(C,a)};if(q(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=N[g];if(!(g in N))throw Error("Module not resolved: "+g);return(g=b instanceof B&&b.b)||b}F(J.i(J.f(a,f.id,b,d)),j,g)}var f;
-f=new B;f.id=b||"";f.S=d;f.z=c;f.a=a;f.q=g;g.toUrl=function(b){return J.k(e(b),a).url};f.h=e;return f},v:function(a,b,c){var d,e,g;d=J.f(a,b,C,c);e=d.g;g=G(1,function(a){d.n=a;try{return J.K(d)}catch(b){d.e(b)}});d.g=function(a){F(c||Y,function(){e(N[d.id]=X[d.url]=g(a))})};d.B=function(a){F(c||Y,function(){d.b&&(g(a),d.p(V))})};return d},I:function(a,b,c,d){return J.f(a,c,C,d)},Q:function(a){return a.q},C:function(a){return a.b||(a.b={})},P:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:J.D(a),exports:J.C(a),
-config:function(){return a.a}},b.b=b.exports);return b},D:function(a){return a.url||(a.url=J.u(a.q.toUrl(a.id),a.a))},a:function(a){var b,c,d,e,g,f;b=!a;a&&(J.a=J.F);a||(a={});d=a.apiName||"curl";e=a.apiContext||l;g=a.defineName||"define";f=a.defineContext||l;c=a.overwriteApi;!b&&O&&(l.curl=O,O=k);if(!b&&!c&&e[d]&&e[d]!=H)throw Error(d+" already exists");e[d]=H;if(!b||!l.define){if(!b&&!c&&g in f&&f[g]!=P)throw Error(g+" already exists");f[g]=P=function(){var a=J.O(arguments);L(a)};P.amd={plugins:h,
-jQuery:h,curl:"0.7.2"}}return J.F(a)},F:function(a,b){function c(a,b){var d,c,f,t,D;for(D in a){f=a[D];q(f,"String")&&(f={path:a[D]});f.name=f.name||D;t=e;c=w(s(J.h(f.name,"",e)));d=c.l;if(c=c.j)t=g[c],t||(t=g[c]=z(e),t.c=z(e.c),t.d=[]),delete a[D];if(b){c=f;var E=void 0;c.path=s(c.path||c.location||"");E=c.main||"./main";"."==E.charAt(0)||(E="./"+E);c.U=u(E,c.name+"/");c.a=c.config;c.a&&(c.a=z(e,c.a))}else c={path:s(f.path)};c.H=d.split("/").length;d?(t.c[d]=c,t.d.push(d)):t.s=J.G(f.path,e)}}function d(a){var b=
-a.c;a.V=RegExp("^("+a.d.sort(function(a,c){return b[c].H-b[a].H}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.d}var e,g,f,i;b||(b={});e=z(b,a);e.s=e.baseUrl||"";e.W=e.pluginPath||"curl/plugin";e.J=RegExp(e.dontAddFileExt||ba);e.c=z(b.c);g=a.plugins||{};e.plugins=z(b.plugins);e.d=[];c(a.packages,h);c(a.paths,k);for(f in g)i=J.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=z(e,g[f]),i=g[f].d)g[f].d=i.concat(e.d),d(g[f]);d(e);return e},t:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&F(Y,function(){Y=J.i(J.f(I,C,b,h))})},k:function(a,b){var c,d,e,g;c=b.c;e=Z.test(a)?a:a.replace(b.V,function(a){d=c[a]||{};g=d.a;return d.path||""});return{a:g||I,url:J.G(e,b)}},G:function(a,b){var c=b.s;return c&&!Z.test(a)?s(c)+"/"+a:a},u:function(a,b){return a+((b||I).J.test(a)?"":".js")},T:function(a,b,c){var d=R.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||l.event;if("load"==c.type||aa[d.readyState])delete W[a.id],d.onload=d.onreadystatechange=
-d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.Z||"text/javascript";d.charset="utf-8";d.async=!a.$;d.src=a.url;W[a.id]=d;S.insertBefore(d,T);return d},L:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ca,"").replace(da,function(a,e,g){g?c=c==g?C:c:c||b.push(e);return""});return b},O:function(a){var b,c,d,e,g,f;g=a.length;d=a[g-1];e=q(d,"Function")?d.length:-1;2==g?q(a[0],"Array")?c=a[0]:b=a[0]:3==g&&(b=a[0],c=a[1]);
-!c&&0<e&&(f=h,c=["require","exports","module"].slice(0,e).concat(J.L(d)));return{id:b,n:c||[],r:0<=e?d:function(){return d},m:f}},K:function(a){var b;b=a.r.apply(a.m?a.b:C,a.n);b===C&&a.b&&(b=a.o?a.b=a.o.b:a.b);return b},w:function(a,b){a.r=b.r;a.m=b.m;a.z=b.n;J.i(a)},i:function(a){function b(a,b,c){f[b]=a;c&&p(a,b)}function c(b,c){var d,e,f,g;d=G(1,function(a){e(a);j(a,c)});e=G(1,function(a){p(a,c)});f=J.M(b,a);(g=f instanceof B&&f.b)&&e(g);F(f,d,a.e,a.b&&function(a){f.b&&(a==U?e(f.b):a==V&&d(f.b))})}
-function d(){a.g(f)}var e,g,f,i,n,p,j;f=[];g=a.z;i=g.length;0==g.length&&d();p=G(i,b,function(){a.B&&a.B(f)});j=G(i,b,d);for(e=0;e<i;e++)n=g[e],n in $?(j($[n](a),e,h),a.b&&a.p(U)):n?c(n,e):j(C,e,h);return a},N:function(a){J.D(a);J.T(a,function(){var b=M;M=C;a.Y!==k&&(!b||b.A?a.e(Error(b&&b.A||"define() missing or duplicated: "+a.url)):J.w(a,b))},a.e);return a},M:function(a,b){var c,d,e,g,f,i,n,p,j,x,Q;c=b.h;d=b.S;e=b.a||I;g=w(c(a));n=g.l;f=g.j||n;p=J.k(f,e);if(g.j)i=f;else if(i=p.a.moduleLoader)n=
-f,f=i,p=J.k(i,e);f in N?j=N[f]:p.url in X?j=N[f]=X[p.url]:(j=J.v(p.a,f,d),j.url=J.u(p.url,p.a),N[f]=X[p.url]=j,J.N(j));f==i&&(x=new B,Q=e.plugins[i]||e,F(j,function(a){var b,e,f;f=a.dynamic;n="normalize"in a?a.normalize(n,c,j.a)||"":c(n);e=i+"!"+n;b=N[e];if(!(e in N)){b=J.I(Q,e,n,d);f||(N[e]=b);var g=function(a){b.g(a);f||(N[e]=a)};g.resolve=g;g.reject=g.error=b.e;a.load(n,b.q,g,Q)}x!=b&&F(b,x.g,x.e,x.p)},x.e));return x||j},R:function(){var a;if(!q(l.opera,"Opera"))for(var b in W)if("interactive"==
-W[b].readyState){a=b;break}return a}};$={require:J.Q,exports:J.C,module:J.P};H.version="0.7.2";I=l.curl;"function"==typeof I?(O=I,I=k):l.curl=C;I=J.a(I);J.t(I);N.curl=H;N["curl/_privileged"]={core:J,cache:N,config:function(){return I},_define:L,_curl:H,Promise:B};
+var h=!0,i=this.window||"undefined"!=typeof global&&global||this;function k(){}function q(a,b){return 0==r.call(a).indexOf("[object "+b)}function s(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function t(a,b){var c,d,e,g;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(u,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");g=e.length-c;if(0>g)return a;e.splice(g,c);return e.concat(d||[]).join("/")}return d}
+function v(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function w(){}function x(a,b){w.prototype=a||z;var c=new w;w.prototype=z;for(var d in b)c[d]=b[d];return c}
+function A(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,f){a=c?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=k;b(c?0:1,f);b=k;d=B};this.Z=function(b,d,e){a(b,d,e)};this.h=function(a){c.ka=a;e(h,a)};this.e=function(a){c.ja=a;e(!1,a)};this.t=function(a){b(2,a)}}function C(a,b,c,d){a instanceof A?a.Z(b,c,d):b(a)}function D(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(B,arguments));0==a&&c&&c(d);return d}}
+function G(){var a=[].slice.call(arguments),b;q(a[0],"Object")&&(b=a.shift(),H(b));return new I(a[0],a[1],a[2])}function H(a){a&&(J.L(a),K=J.a(a),J.N(a),"main"in a&&setTimeout(function(){var b;b=J.f(K,B,[].concat(a.main));J.g(b)},0))}function I(a,b,c,d){var e;e=J.f(K,B,[].concat(a));this.then=a=function(a,b){C(e,function(b){a&&a.apply(B,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new I(a,b,d,e)};this.config=H;(b||c)&&a(b,c);C(d,function(){J.g(e)})}
+function L(a){var b,c;b=a.id;if(b==B)if(M!==B)M={C:"Multiple anonymous defines in url"};else if(!(b=J.W()))M=a;if(b!=B){c=N[b];b in N||(c=J.k(b,K),c=J.z(c.a,b),N[b]=c);if(!(c instanceof A))throw Error("duplicate define: "+b);c.$=!1;J.A(c,a)}}function O(){var a=J.T(arguments);L(a)}
+var K,P,Q,R=i.document,S=R&&(R.head||R.getElementsByTagName("head")[0]),T=S&&S.getElementsByTagName("base")[0]||null,U={},V={},W={},aa="addEventListener"in i?{}:{loaded:1,complete:1},z={},r=z.toString,B,N={},X={},Y=!1,M,Z=/^\/|^[^:]+:\/\//,u=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ba=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ca=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,$,J;
+J={m:function(a,b,c){var d,a=t(a,b);if("."==a.charAt(0))return a;d=v(a);a=(b=d.j)||d.l;a in c.c&&(a=c.c[a].H||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=s(c.J)+"/"+b),a=a+"!"+d.l);return a},f:function(a,b,c,d){function e(b){return J.m(b,f.id,a)}function g(b,c,g){var j;j=c&&function(a){c.apply(B,a)};if(q(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=N[g];if(!(g in N))throw Error("Module not resolved: "+g);return(g=b instanceof A&&b.b)||b}C(J.g(J.f(a,f.id,b,d)),j,g)}var f;
+f=new A;f.id=b||"";f.X=d;f.B=c;f.a=a;f.u=g;g.toUrl=function(b){return J.k(e(b),a).url};f.m=e;return f},z:function(a,b,c){var d,e,g;d=J.f(a,b,B,c);e=d.h;g=D(1,function(a){d.p=a;try{return J.P(d)}catch(b){d.e(b)}});d.h=function(a){C(c||Y,function(){e(N[d.id]=X[d.url]=g(a))})};d.D=function(a){C(c||Y,function(){d.b&&(g(a),d.t(V))})};return d},O:function(a,b,c,d){return J.f(a,c,B,d)},V:function(a){return a.u},F:function(a){return a.b||(a.b={})},U:function(a){var b=a.q;b||(b=a.q={id:a.id,uri:J.G(a),exports:J.F(a),
+config:function(){return a.a}},b.b=b.exports);return b},G:function(a){return a.url||(a.url=J.w(a.u.toUrl(a.id),a.a))},L:function(a){var b,c,d,e,g;b="curl";c="define";d=e=i;if(a&&(g=a.overwriteApi||a.ha,b=a.apiName||a.ba||b,d=a.apiContext||a.aa||d,c=a.defineName||a.da||c,e=a.defineContext||a.ca||e,P&&q(P,"Function")&&(i.curl=P),P=null,Q&&q(Q,"Function")&&(i.define=Q),Q=null,!g)){if(d[b]&&d[b]!=G)throw Error(b+" already exists");if(e[c]&&e[c]!=O)throw Error(c+" already exists");}d[b]=G;e[c]=O},a:function(a){function b(a,
+b){var d,c,f,n,E;for(E in a){f=a[E];q(f,"String")&&(f={path:a[E]});f.name=f.name||E;n=e;c=v(s(f.name));d=c.l;if(c=c.j)n=g[c],n||(n=g[c]=x(e),n.c=x(e.c),n.d=[]),delete a[E];if(b){c=f;var F=void 0;c.path=s(c.path||c.location||"");F=c.main||"./main";"."==F.charAt(0)||(F="./"+F);c.H=t(F,c.name+"/");c.a=c.config;c.a&&(c.a=x(e,c.a))}else c={path:s(f.path)};c.M=d.split("/").length;d?(n.c[d]=c,n.d.push(d)):n.n=J.K(f.path,e)}}function c(a){var b=a.c;a.I=RegExp("^("+a.d.sort(function(a,c){return b[c].M-b[a].M}).join("|").replace(/\/|\./g,
+"\\$&")+")(?=\\/|$)");delete a.d}var d,e,g,f;"baseUrl"in a&&(a.n=a.baseUrl);"main"in a&&(a.H=a.main);"preloads"in a&&(a.ia=a.preloads);"pluginPath"in a&&(a.J=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=RegExp(a.dontAddFileExt||a.i);d=K;e=x(d,a);e.c=x(d.c);g=a.plugins||{};e.plugins=x(d.plugins);e.s=x(d.s,a.s);e.r=x(d.r,a.r);e.d=[];b(a.packages,h);b(a.paths,!1);for(f in g)a=J.m(f+"!","",e),e.plugins[a.substr(0,a.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=x(e,g[f]),a=g[f].d)g[f].d=a.concat(e.d),
+c(g[f]);for(f in d.c)e.c.hasOwnProperty(f)||e.d.push(f);c(e);return e},N:function(a){var b;(b=a&&a.preloads)&&0<b.length&&C(Y,function(){Y=J.g(J.f(K,B,b,h))})},k:function(a,b){var c,d,e,g;c=b.c;e=Z.test(a)?a:a.replace(b.I,function(a){d=c[a]||{};g=d.a;return d.path||""});return{a:g||K,url:J.K(e,b)}},K:function(a,b){var c=b.n;return c&&!Z.test(a)?s(c)+"/"+a:a},w:function(a,b){return a+((b||K).i.test(a)?"":".js")},Y:function(a,b,c){var d=R.createElement("script");d.onload=d.onreadystatechange=function(c){c=
+c||i.event;if("load"==c.type||aa[d.readyState])delete W[a.id],d.onload=d.onreadystatechange=d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.ea||"text/javascript";d.charset="utf-8";d.async=!a.ga;d.src=a.url;W[a.id]=d;S.insertBefore(d,T);return d},Q:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ba,"").replace(ca,function(a,e,g){g?c=c==g?B:c:c||b.push(e);return""});return b},T:function(a){var b,c,d,e,g,f;g=a.length;
+d=a[g-1];e=q(d,"Function")?d.length:-1;2==g?q(a[0],"Array")?c=a[0]:b=a[0]:3==g&&(b=a[0],c=a[1]);!c&&0<e&&(f=h,c=["require","exports","module"].slice(0,e).concat(J.Q(d)));return{id:b,p:c||[],v:0<=e?d:function(){return d},o:f}},P:function(a){var b;b=a.v.apply(a.o?a.b:B,a.p);b===B&&a.b&&(b=a.q?a.b=a.q.b:a.b);return b},A:function(a,b){a.v=b.v;a.o=b.o;a.B=b.p;J.g(a)},g:function(a){function b(a,b,c){f[b]=a;c&&m(a,b)}function c(b,c){var d,e,f,g;d=D(1,function(a){e(a);j(a,c)});e=D(1,function(a){m(a,c)});
+f=J.R(b,a);(g=f instanceof A&&f.b)&&e(g);C(f,d,a.e,a.b&&function(a){f.b&&(a==U?e(f.b):a==V&&d(f.b))})}function d(){a.h(f)}var e,g,f,p,l,m,j;f=[];g=a.B;p=g.length;0==g.length&&d();m=D(p,b,function(){a.D&&a.D(f)});j=D(p,b,d);for(e=0;e<p;e++)l=g[e],l in $?(j($[l](a),e,h),a.b&&a.t(U)):l?c(l,e):j(B,e,h);return a},S:function(a){J.G(a);J.Y(a,function(){var b=M;M=B;!1!==a.$&&(!b||b.C?a.e(Error(b&&b.C||"define() missing or duplicated: "+a.url)):J.A(a,b))},a.e);return a},R:function(a,b){var c,d,e,g,f,p,l,m,
+j,y,n;c=b.m;d=b.X;e=b.a||K;g=v(c(a));l=g.l;f=g.j||l;m=J.k(f,e);if(g.j)p=f;else if(p=m.a.moduleLoader||m.a.fa)l=f,f=p,m=J.k(p,e);f in N?j=N[f]:m.url in X?j=N[f]=X[m.url]:(j=J.z(m.a,f,d),j.url=J.w(m.url,m.a),N[f]=X[m.url]=j,J.S(j));f==p&&(y=new A,n=e.plugins[p]||e,C(j,function(a){var b,e,f;f=a.dynamic;l="normalize"in a?a.normalize(l,c,j.a)||"":c(l);e=p+"!"+l;b=N[e];if(!(e in N)){b=J.O(n,e,l,d);f||(N[e]=b);var g=function(a){b.h(a);f||(N[e]=a)};g.resolve=g;g.reject=g.error=b.e;a.load(l,b.u,g,n)}y!=b&&
+C(b,y.h,y.e,y.t)},y.e));return y||j},W:function(){var a;if(!q(i.opera,"Opera"))for(var b in W)if("interactive"==W[b].readyState){a=b;break}return a}};$={require:J.V,exports:J.F,module:J.U};G.version="0.7.3";G.config=H;O.amd={plugins:h,jQuery:h,curl:"0.7.3"};K={n:"",J:"curl/plugin",i:/\?|\.js\b/,s:{},r:{},plugins:{},c:{},I:/$^/};P=i.curl;Q=i.define;!P||q(P,"Function")?J.L():(i.curl=B,H(P));N.curl=G;N["curl/_privileged"]={core:J,cache:N,config:function(){return K},_define:L,_curl:G,Promise:A};
}).call(this);
Please sign in to comment.
Something went wrong with that request. Please try again.