From a9ddc41dd7371e20fc162380da1275f2e1996bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20L=C3=BCth?= Date: Tue, 14 May 2019 22:16:32 +0200 Subject: [PATCH] build --- dist/cache/dispose.js | 4 ++-- dist/cache/dispose.js.map | 2 +- dist/cache/states.js | 4 ++-- dist/cache/states.js.map | 2 +- dist/demand.js | 4 ++-- dist/demand.js.map | 2 +- dist/handler/css.js | 4 ++-- dist/handler/css.js.map | 2 +- dist/handler/html.js | 4 ++-- dist/handler/html.js.map | 2 +- dist/handler/json.js | 4 ++-- dist/handler/json.js.map | 2 +- dist/handler/legacy.js | 4 ++-- dist/handler/legacy.js.map | 2 +- dist/handler/text.js | 4 ++-- dist/handler/text.js.map | 2 +- dist/plugin/cookie.js | 4 ++-- dist/plugin/cookie.js.map | 2 +- dist/plugin/lzstring.js | 4 ++-- dist/plugin/lzstring.js.map | 2 +- dist/plugin/sri.js | 4 ++-- dist/plugin/sri.js.map | 2 +- 22 files changed, 33 insertions(+), 33 deletions(-) diff --git a/dist/cache/dispose.js b/dist/cache/dispose.js index 687f703..8911136 100644 --- a/dist/cache/dispose.js +++ b/dist/cache/dispose.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(){"use strict";provide(["/demand/function/iterate","./states"],function(e,n){function s(e,c){return e.accessedc.accessed?1:0}return function(e){var c,t=n();for(t.sort(s);0c.accessed?1:0}return function(e){var n,s=c();for(s.sort(t);e>0&&s.length;)e-=(n=s.shift()).size,demand.cache.clear(n.id)}})}(); //# sourceMappingURL=dispose.js.map diff --git a/dist/cache/dispose.js.map b/dist/cache/dispose.js.map index ea0cb04..0d8a309 100644 --- a/dist/cache/dispose.js.map +++ b/dist/cache/dispose.js.map @@ -1 +1 @@ -{"version":3,"sources":["cache/dispose.js"],"names":["provide","functionIterate","cacheStates","compareAccess","a","b","accessed","size","item","states","sort","length","shift","demand","cache","clear","id"],"mappings":";CAAA,WACA,aAkBAA,QAAA,CAAA,2BAAA,YAhBA,SAAAC,EAAAC,GACA,SAAAC,EAAAC,EAAAC,GACA,OAAAD,EAAAE,SAAAD,EAAAC,UAAA,EACAF,EAAAE,SAAAD,EAAAC,SAAA,EACA,EAEA,OAAA,SAAAC,GACA,IAAAC,EAAAC,EAAAP,IAEA,IADAO,EAAAC,KAAAP,GACA,EAAAI,GAAAE,EAAAE,QACAJ,IAAAC,EAAAC,EAAAG,SACAL,KACAM,OAAAC,MAAAC,MAAAP,EAAAQ,OAfA","file":"dispose.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function () {\n\t\"use strict\";\n\n\tfunction definition(functionIterate, cacheStates) {\n\t\tfunction compareAccess(a, b) {\n\t\t\tif (a.accessed < b.accessed) return -1;\n\t\t\tif (a.accessed > b.accessed) return 1;\n\t\t\telse return 0\n\t\t}\n\t\treturn function (size) {\n\t\t\tvar item, states = cacheStates();\n\t\t\tstates.sort(compareAccess);\n\t\t\twhile (size > 0 && states.length) {\n\t\t\t\tsize -= (item = states.shift())\n\t\t\t\t\t.size;\n\t\t\t\tdemand.cache.clear(item.id)\n\t\t\t}\n\t\t}\n\t}\n\tprovide([\"/demand/function/iterate\", \"./states\"], definition)\n})();\n"]} \ No newline at end of file +{"version":3,"sources":["cache/dispose.js"],"names":["provide","functionIterate","cacheStates","compareAccess","a","b","accessed","size","item","states","sort","length","shift","demand","cache","clear","id"],"mappings":";CAAC,WACA,aA8BAA,QAAQ,CAAE,2BAA4B,YA5BtC,SAAoBC,EAAiBC,GACpC,SAASC,EAAcC,EAAGC,GACzB,OAAGD,EAAEE,SAAWD,EAAEC,UACT,EAGNF,EAAEE,SAAWD,EAAEC,SACV,EAGD,EAGR,OAAO,SAAsBC,GAC5B,IACCC,EADGC,EAASP,IAKb,IAFAO,EAAOC,KAAKP,GAENI,EAAO,GAAKE,EAAOE,QAExBJ,IADAC,EAASC,EAAOG,SACFL,KAEdM,OAAOC,MAAMC,MAAMP,EAAKQ,OA1B5B","file":"dispose.js","sourcesContent":["(function() {\n\t'use strict';\n\n\tfunction definition(functionIterate, cacheStates) {\n\t\tfunction compareAccess(a, b) {\n\t\t\tif(a.accessed < b.accessed) {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\tif(a.accessed > b.accessed) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn function cacheDispose(size) {\n\t\t\tvar states = cacheStates(),\n\t\t\t\titem;\n\n\t\t\tstates.sort(compareAccess);\n\n\t\t\twhile(size > 0 && states.length) {\n\t\t\t\titem = states.shift();\n\t\t\t\tsize -= item.size;\n\n\t\t\t\tdemand.cache.clear(item.id);\n\t\t\t}\n\t\t};\n\t}\n\n\tprovide([ '/demand/function/iterate', './states' ], definition);\n}());\n"]} \ No newline at end of file diff --git a/dist/cache/states.js b/dist/cache/states.js index b376caf..ef5ca1c 100644 --- a/dist/cache/states.js +++ b/dist/cache/states.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(d){"use strict";provide(["/demand/function/iterate"],function(e){function t(e){var t,n,r=e.match(c);r&&(t=function(e){var t,n=d.getItem(e);if(n&&(t=n.match(s)))return Array.prototype.slice.call(t,1)}((n=r[1],"["+a+"]["+n+"]["+i+"]")),this.push({id:r[1],version:t[0],size:parseInt(t[1],10),expires:t[2]?new Date(parseInt(t[2],10)):null,demand:t[3],accessed:new Date(parseInt(t[4],10))}))}var a="demand",i="state",c=new RegExp("^\\["+a+"\\]\\[(.+?)\\]\\["+i+"\\]$"),s=/^(.+?),(\d+),(\d*),(.+?),(\d+)$/;return function(){return e(d,t,[])}})}(localStorage); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(e){"use strict";provide(["/demand/function/iterate"],function(t){var n="demand",r="state",a=new RegExp("^\\["+n+"\\]\\[(.+?)\\]\\["+r+"\\]$"),i=/^(.+?),(\d+),(\d*),(.+?),(\d+)$/;function c(t){var c,s,d=t.match(a);d&&(c=function(t){var n,r=e.getItem(t);if(r&&(n=r.match(i)))return Array.prototype.slice.call(n,1)}((s=d[1],"["+n+"]["+s+"]["+r+"]")),this.push({id:d[1],version:c[0],size:parseInt(c[1],10),expires:c[2]?new Date(parseInt(c[2],10)):null,demand:c[3],accessed:new Date(parseInt(c[4],10))}))}return function(){return t(e,c,[])}})}(localStorage); //# sourceMappingURL=states.js.map diff --git a/dist/cache/states.js.map b/dist/cache/states.js.map index 68bf4f1..dee34c2 100644 --- a/dist/cache/states.js.map +++ b/dist/cache/states.js.map @@ -1 +1 @@ -{"version":3,"sources":["cache/states.js"],"names":["localStorage","provide","functionIterate","filterStates","property","state","id","match","regexMatchState","key","matches","getItem","regexMatchProperties","Array","prototype","slice","call","getState","PREFIX","SUFFIX","this","push","version","size","parseInt","expires","Date","demand","accessed","RegExp"],"mappings":";CAAA,SAAAA,GACA,aAkCAC,QAAA,CAAA,4BAhCA,SAAAC,GAUA,SAAAC,EAAAC,GACA,IAAAC,EALAC,EAKAC,EAAAH,EAAAG,MAAAC,GACAD,IACAF,EAZA,SAAAI,GACA,IAAAC,EAAAL,EAAAL,EAAAW,QAAAF,GACA,GAAAJ,IAAAK,EAAAL,EAAAE,MAAAK,IAAA,OAAAC,MAAAC,UAAAC,MAAAC,KAAAN,EAAA,GAUAO,EAPAX,EAOAC,EAAA,GANA,IAAAW,EAAA,KAAAZ,EAAA,KAAAa,EAAA,MAOAC,KAAAC,KAAA,CACAf,GAAAC,EAAA,GACAe,QAAAjB,EAAA,GACAkB,KAAAC,SAAAnB,EAAA,GAAA,IACAoB,QAAApB,EAAA,GAAA,IAAAqB,KAAAF,SAAAnB,EAAA,GAAA,KAAA,KACAsB,OAAAtB,EAAA,GACAuB,SAAA,IAAAF,KAAAF,SAAAnB,EAAA,GAAA,QAIA,IAAAa,EAAA,SACAC,EAAA,QACAX,EAAA,IAAAqB,OAAA,OAAAX,EAAA,oBAAAC,EAAA,QACAP,EAAA,kCACA,OAAA,WACA,OAAAV,EAAAF,EAAAG,EAAA,OAhCA,CAoCAH","file":"states.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function (localStorage) {\n\t\"use strict\";\n\n\tfunction definition(functionIterate) {\n\t\tfunction getState(key) {\n\t\t\tvar matches, state = localStorage.getItem(key);\n\t\t\tif (state && (matches = state.match(regexMatchProperties))) return Array.prototype.slice.call(matches, 1)\n\t\t}\n\n\t\tfunction getKey(id) {\n\t\t\treturn \"[\" + PREFIX + \"][\" + id + \"][\" + SUFFIX + \"]\"\n\t\t}\n\n\t\tfunction filterStates(property) {\n\t\t\tvar state, match = property.match(regexMatchState);\n\t\t\tif (match) {\n\t\t\t\tstate = getState(getKey(match[1]));\n\t\t\t\tthis.push({\n\t\t\t\t\tid: match[1],\n\t\t\t\t\tversion: state[0],\n\t\t\t\t\tsize: parseInt(state[1], 10),\n\t\t\t\t\texpires: state[2] ? new Date(parseInt(state[2], 10)) : null,\n\t\t\t\t\tdemand: state[3],\n\t\t\t\t\taccessed: new Date(parseInt(state[4], 10))\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t\tvar PREFIX = \"demand\",\n\t\t\tSUFFIX = \"state\",\n\t\t\tregexMatchState = new RegExp(\"^\\\\[\" + PREFIX + \"\\\\]\\\\[(.+?)\\\\]\\\\[\" + SUFFIX + \"\\\\]$\"),\n\t\t\tregexMatchProperties = /^(.+?),(\\d+),(\\d*),(.+?),(\\d+)$/;\n\t\treturn function () {\n\t\t\treturn functionIterate(localStorage, filterStates, [])\n\t\t}\n\t}\n\tprovide([\"/demand/function/iterate\"], definition)\n})(localStorage);\n"]} \ No newline at end of file +{"version":3,"sources":["cache/states.js"],"names":["localStorage","provide","functionIterate","PREFIX","SUFFIX","regexMatchState","RegExp","regexMatchProperties","filterStates","property","state","id","match","key","matches","getItem","Array","prototype","slice","call","getState","this","push","version","size","parseInt","expires","Date","demand","accessed"],"mappings":";CAAC,SAASA,GACT,aA4CAC,QAAQ,CAAE,4BA1CV,SAAoBC,GACnB,IAAIC,EAAuB,SAC1BC,EAAuB,QACvBC,EAAuB,IAAIC,OAAO,OAASH,EAAS,oBAAsBC,EAAS,QACnFG,EAAuB,kCAexB,SAASC,EAAaC,GACrB,IACCC,EANcC,EAKXC,EAAQH,EAASG,MAAMP,GAGxBO,IACFF,EAlBF,SAAkBG,GACjB,IACCC,EADGJ,EAAQV,EAAae,QAAQF,GAGjC,GAAGH,IAAUI,EAAUJ,EAAME,MAAML,IAClC,OAAOS,MAAMC,UAAUC,MAAMC,KAAKL,EAAS,GAanCM,EATMT,EASUC,EAAM,GARxB,IAAMT,EAAS,KAAOQ,EAAK,KAAOP,EAAS,MAUjDiB,KAAKC,KAAK,CACTX,GAAUC,EAAM,GAChBW,QAAUb,EAAM,GAChBc,KAAUC,SAASf,EAAM,GAAI,IAC7BgB,QAAUhB,EAAM,GAAK,IAAIiB,KAAKF,SAASf,EAAM,GAAI,KAAO,KACxDkB,OAAUlB,EAAM,GAChBmB,SAAU,IAAIF,KAAKF,SAASf,EAAM,GAAI,QAKzC,OAAO,WACN,OAAOR,EAAgBF,EAAcQ,EAAc,OAzCtD,CA8CER","file":"states.js","sourcesContent":["(function(localStorage) {\n\t'use strict';\n\n\tfunction definition(functionIterate) {\n\t\tvar PREFIX = 'demand',\n\t\t\tSUFFIX = 'state',\n\t\t\tregexMatchState = new RegExp('^\\\\[' + PREFIX + '\\\\]\\\\[(.+?)\\\\]\\\\[' + SUFFIX + '\\\\]$'),\n\t\t\tregexMatchProperties = /^(.+?),(\\d+),(\\d*),(.+?),(\\d+)$/;\n\n\t\tfunction getState(key) {\n\t\t\tvar state = localStorage.getItem(key),\n\t\t\t\tmatches;\n\n\t\t\tif(state && (matches = state.match(regexMatchProperties))) {\n\t\t\t\treturn Array.prototype.slice.call(matches, 1);\n\t\t\t}\n\t\t}\n\n\t\tfunction getKey(id) {\n\t\t\treturn '[' + PREFIX + '][' + id + '][' + SUFFIX + ']';\n\t\t}\n\n\t\tfunction filterStates(property) {\n\t\t\tvar match = property.match(regexMatchState),\n\t\t\t\tstate;\n\n\t\t\tif(match) {\n\t\t\t\tstate = getState(getKey(match[1]));\n\n\t\t\t\tthis.push({\n\t\t\t\t\tid: match[1],\n\t\t\t\t\tversion: state[0],\n\t\t\t\t\tsize: parseInt(state[1], 10),\n\t\t\t\t\texpires: state[2] ? new Date(parseInt(state[2], 10)) : null,\n\t\t\t\t\tdemand: state[3],\n\t\t\t\t\taccessed: new Date(parseInt(state[4], 10))\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn function cacheStats() {\n\t\t\treturn functionIterate(localStorage, filterStates, []);\n\t\t};\n\t}\n\n\tprovide([ '/demand/function/iterate' ], definition);\n}(localStorage));\n"]} \ No newline at end of file diff --git a/dist/demand.js b/dist/demand.js index fec44b9..b292c3a 100644 --- a/dist/demand.js +++ b/dist/demand.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(m,a,c){"use strict";function s(e,t,n,r){return{__proto__:we,value:e,enumerable:!!r,configurable:!!n,writable:!!t}}function p(e,t){return typeof e===t}function v(e){return e&&p(e,ke)}function g(e){return p(e,Ee)&&isFinite(e)&&Math.floor(e)===e&&0<=e}function n(e,t){return e instanceof t}function y(e,t,n){for(var r,i=Be.keys(e),o=0;(r=i[o])!==xe&&t.call(n,r,e[r])!==be;o++);return n}function w(e,t,n){return Xe.call(e,t,n)}function r(){return p(this.uuid,je)&&this.define("uuid",S()),this}function x(){return+new Date}function f(e){return Ye.href=e,Ye.href}function l(e,t){var n=e.replace(z,"");return D.test(n)||T.test(n)||(n="/"+f((t&&f(t+"/../")||"/")+n).replace(H,"")),n}function b(e,t){var n=e.match(z);return(n&&n[1]?"mock:":"")+(n&&n[3]||se.handler)+"!"+l(e,t)}function d(e,t,n){var r=this;return r.message=e,t&&(r.module=t),n&&(r.stack=w(n)),r}function t(n){function r(e,t){t&&n.handler.validate&&!n.handler.validate(t)?n.dfd.reject(new d(_e+" (content-type)",n.id)):(n.source=e,M.emit(De,n.type,n))}function i(e){n.dfd.reject(new d(_e+(e?" (status)":""),n.id))}var o,u=/^(?:\?|)$/;T.test(n.path)||y(se.pattern,function(e,t){t.matches(n.path)&&(!o||o.weight>>0}function j(e,t){for(var n,r;n=N.exec(t);)Ye.href=e,r=T.test(n[2])?Ye.protocol+"//"+Ye.host+n[3]:(Ye.pathname+="/../"+n[3],Ye.protocol+"//"+Ye.host+Ye.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}function i(){}function d(e,t,n){return this.message=e,t&&(this.module=t),n&&(this.stack=w(n)),this}function e(e,t){k(e,function(){return t})}var q,k,R,E,P,o,S,C,M,O,A,$,I,T,D,N,H,L,z,_,F,U,X,W,B,G,J,K,Q,V,Y,Z,ee,te,ne,re,ie,oe,ue,ae=m.document,ce="demand"in m&&m.demand,se={version:"1.0.0",cache:{},timeout:8e3,pattern:{},modules:{},handler:"module"},fe="demand",le="provide",de="/demand/",he=de+"abstract/",pe=de+"handler/",ve=de+"plugin/",ge=de+"function/",me=de+"validator/",ye="mock:",we=null,xe=void 0,be=!1,je="undefined",qe="string",ke="object",Re="function",Ee="number",Pe="post",Se=Pe+"Configure",Ce="cache",Me=Ce+"Miss",Oe=Ce+"Hit",Ae=Ce+"Exceed",$e="preResolve",Ie="Request",Te="pre"+Ie,De=Pe+Ie,Ne="Process",He="pre"+Ne,Le=Pe+Ne,ze="queueEnqueue",_e="error loading",Fe="error resolving",Ue=Array.prototype,Xe=Ue.slice,We=Ue.concat,Be=Object,Ge=Be.prototype.toString,Je=Be.create,Ke=Be.defineProperty,Qe=Be.getOwnPropertyNames,Ve=Be.getOwnPropertyDescriptor,Ye=ae.createElement("a");if(function(a){function e(e,t,n,r,i){Ke(this,e,new s(t,n,r,i))}function t(e){for(var t,n=this,r=n[a],i=Qe(r),o={constructor:new s(n,!0,!0)},u=0;(t=i[u])&&!o[t];u++)o[t]=Ve(r,t);try{n[a]=Je(e[a]||e,o)}catch(e){}if(n[a]===r)throw new TypeError("Unable to extend, prototype is not writable");return n}e.call(Object.prototype,"define",e),e.call(m.Object.prototype,"define",e),Function.prototype.define("extends",t),m.Function.prototype.define("extends",t)}("prototype"),Z=/^\bv?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\da-z-]+(?:\.[\da-z-]+)*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?\b$/i,P=function(e){return p(e,qe)&&Z.test(e)},o=function(){function r(e,t){var n,r=this[e];t!==xe&&(v(t)?(n=v(r),r=t.length!==xe?n&&r.length!==xe?r:[]:n&&r.length===xe?r:{},this[e]=o(r,t)):this[e]=t)}return function(){for(var e,t=arguments[0],n=1;(e=arguments[n])!==xe;n++)y(e,r,t);return t}}(),S=function(){function e(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}var t=new RegExp("[xy]","g");return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e)}}(),re="setImmediate"in m,C="MutationObserver"in m?function(e){ee=ae.createElement("div"),new MutationObserver(function(){e()}).observe(ee,{attributes:!0}),ee.setAttribute("i","1")}:!re&&"postMessage"in m&&!("importScripts"in m)&&"addEventListener"in m?(ne={},m.addEventListener("message",function(e){var t;e.source===m&&e.data&&(t=ne[e.data])&&(t(),delete ne[e.data])},be),function(e){var t=S();ne[t]=e,m.postMessage(t,"*")}):!re&&"onreadystatechange"in(ee=ae.createElement("script"))?function(e){ee.onreadystatechange=function(){ee.onreadystatechange=we,ee.parentNode.removeChild(ee),e()},ae.body.appendChild(ee)}:(te=re?setImmediate:a,function(e){te(e)}),M=function(){function n(e,t,n){var r,i;if(p(t,qe)&&p(n,Re))for(t=t.split(" ");r=t.shift();)r=r.split(":"),o.test(r[0])&&((u[r[0]]||(u[r[0]]={on:[],after:[]}))[e].push({callback:n,filter:r[1]}),"on"===e&&r[0]===Se&&(i=se.modules[r[1]])&&n(i))}function e(){}var o=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)$/,u={};return e.prototype={emit:function(e,t){var n,r,i,o=u[e];if(o){for(n=w(arguments,2),r=0;i=o.on[r];r++)i.filter&&i.filter!==t||i.callback.apply(we,n);for(r=0;i=o.after[r];r++)i.filter&&i.filter!==t||i.callback.apply(we,n)}return this},on:function(e,t){return n("on",e,t),this},after:function(e,t){return n("after",e,t),this}},new e}(),O="WeakMap"in m?m.WeakMap:function(){function r(e,t){var n;if((n=t[e.id])&&n[0]===t)return n}function e(){this.define("id","weakmap-"+S())}return e.prototype={set:function(e,t){var n=r(this,e);return n?n[1]=t:e.define(this.id,[e,t]),this},get:function(e){var t=r(this,e);if(t)return t[1]},delete:function(e){var t=r(this,e);t&&(t.length=0,delete e[this.id])},has:function(e){return!!r(this,e)}},e}(),A=function(){function e(){var e=r.call(this);return t.set(e,[]),e}var t=new O;return e.prototype={enqueue:function(){var e=w(arguments);t.set(this,t.get(this).concat(e)),M.emit(ze,this.uuid,e)},dequeue:function(){var e=t.get(this).shift();return M.emit("queueDequeue",this.uuid,e),e},get current(){return t.get(this)[0]},get length(){return t.get(this).length}},e.extends(r)}(),$=function(){function n(){u.dequeue()(),r=u.length&&i(n)}var r,e="object"==typeof m.safari&&m.safari.pushNotification?"beforeunload":"visibilitychange",i=m.requestIdleCallback||function(e,t){var n=+new Date;return a(function(){e({didTimeout:be,timeRemaining:function(){return Math.max(0,50-(+new Date-n))}})},t&&t.timeout)},o=m.cancelIdleCallback||function(e){c(e)},u=new A;return m.addEventListener(e,function(e){var t;if(u.length&&("visibilitychange"!==e.type||"hidden"===ae.visibilityState))for(r=o(r);t&&t(),t=u.dequeue(););},!0),function(e,t){u.enqueue(e),!r&&u.length&&(r=i(n,{timeout:t}))}}(),ie=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,I=function(e){return e.replace(ie,"\\$&")},T=/^(http(s?):)?\/\//i,D=/^\//,N=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,H=new RegExp("^"+I(f("/"))),L=new RegExp("^demand|"+le+"|path$"),z=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/,_=function(){function t(e,t){return er.weight)&&(r=t)}),r?r.state:be)}function r(e){return p.getItem(e)}function o(e,t){p[t?"setItem":"removeItem"](e,t)}function u(e){var t,n=r(e);if(n&&(t=n.match(h)))return w(t,1)}function a(e,t){t[4]=x(),o(e,t.join(","))}function c(e,t,n){M.emit(e,t.id,t,n)}function e(){$(this.clear.expired.bind(this.clear),se.delay)}var n,s="[demand]",f="[state]",l="[value]",d=new RegExp("^"+I(s)+"\\[(.+?)\\]"+I(f)+"$"),h=/^(.+?),(\d+),(\d*),(.+?),(\d+)$/,t=function(){try{return"localStorage"in m&&m.localStorage}catch(e){return be}}(),p=t?m.localStorage:we,v=t&&"remainingSpace"in p,g={};return M.on(Me,function(e){$(function(){n.clear(e.id)})}).on(Ae,function(t){q("-!/demand/cache/dispose").then(function(e){$(function(){e(t.source.length),n.set(t)},se.delay)})}).on(De,function(e){e.source&&i(e)&&(g[e.id]=!0)}).after(Le,function(e){g[e.id]&&$(function(){n.set(e)},se.delay)}),(e.prototype={get:t?function(e){var t,n;if(i(e)){if(t=s+"["+e.id+"]",!(n=u(t+f)))return;return 1===e.version.compare(new _(n[0]))||n[2]&&e.lifetime&&n[2]<=x()?void(e.invalid=!0):(e.source=r(t+l),$(function(){a(t+f,n)},se.delay),!0)}}:function(){},resolve:t?function(e){this.get(e)?c(Oe,e):c(Me,e)}:function(e){c(Me,e)},set:t?function(t){var e,n,r;if(i(t)){e=[t.version,t.source.length,t.lifetime?x()+t.lifetime:we,q.version],n=s+"["+t.id+"]",c("preCache",t,e);try{if(r=v?p.remainingSpace:we,o(n+l,t.source),a(n+f,e),r!==we&&p.remainingSpace===r)throw new Error;c("postCache",t,e)}catch(e){c(Ae,t)}}}:function(){},clear:t?function(e){var t=b(e),n=s+"["+t+"]";r(n+f)&&(o(n+f),o(n+l),c("cacheClear",W.get(t)||new W(t,we,be)))}:function(){}}).clear.all=t?function(){var t;y(p,function(e){(t=e.match(d))&&this(t[1])},this)}:function(){},e.prototype.clear.expired=t?function(){var t,n;y(p,function(e){(t=e.match(d))&&(n=u(s+"["+t[1]+"]"+f))&&0 "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=d.traverse(r.stack,t,n+1));return t},W=function(){function o(e,t){this[e]=t}function e(e){s.test(e)||this.push(e)}function t(e,t){!s.test(e)&&t.pledge.isPending()&&this.push(e)}function n(e,t){!s.test(e)&&t.pledge.isResolved()&&this.push(e)}function r(e,t){!s.test(e)&&t.pledge.isRejected()&&this.push(e)}function i(){return y(c.get(),e,[])}function u(e,t,n){var r=this,i=e.match(z)||f;return r.path=l(e,t),r.mock=!!i[1]||be,r.cache=i[2]?"+"===i[1]:we,r.type=i[3]||se.handler,r.version=new _(i[4]||se.version),r.lifetime=i[5]&&1e3*i[5]||se.lifetime,r.id=(r.mock?ye:"")+r.type+"!"+r.path,r.uri=(r.mock?ye:"")+r.type+"@"+r.version+(g(r.lifetime)&&0 "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=d.traverse(r.stack,t,n+1));return t},Q=function(){function t(e,t){var n,r;for(n=0;r=t[n];n++)p(r,qe)&&(t[n]=b(r))}function e(){}var f={};return q.on(Se+":/demand/handler/bundle",function(e){v(e)&&y(f=e,t)}),e.prototype={validate:K.validate,onPreProcess:function(e){function t(){c.reject(new d(Fe,e.id,arguments))}var n,r,i,o,u,a=e.source,c=e.dfd,s=f[e.path];if(e.enqueue=be,s&&(n=function(e){for(var t,n,r=0;n=e[r];r++)if(n=(n=n.match(z))&&n[3]||f.handler,t){if(n!==t)return be}else t=n;return t}(s))){for(;r=N.exec(a);)a=a.replace(r[0],"");for(e.source=a,i=[],u=0;o=s[u];u++)i.push(W.resolve(ye+o).pledge);U.all(i).then(function(){for(i.length=0,u=0;o=s[u];u++)(o=s[u]=W.get(o)||new W(o)).handler=arguments[u],i.push(o.pledge);"module"===n?(R.enqueue.apply(R,s),K.process(e)):(K.process(e),R.enqueue.apply(R,s)),U.all(i).then(c.resolve,t)},t)}else t()}},new(e.extends(i))}(),V=function(){function e(){}var n=".html",t=/^text\/.+$/;return e.prototype={validate:function(e){return t.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=t.slice(-n.length)!==n?t+n:t},onPostRequest:function(e){e.source=j(e.url,e.source)},onPreProcess:function(e){function r(){a.reject(new d(Fe,e.id,arguments))}var t,n,i,o,u=e.path,a=e.dfd,c=ae.createElement("body"),s=[],f=[];for(e.enqueue=be,c.innerHTML=e.source;t=c.firstElementChild;)(n=t.getAttribute("type"))&&(o=n+"!"+u+((i=t.getAttribute("path"))?"/"+i:""),t.parentNode.removeChild(t),s.push({source:t.textContent,uri:o}),f.push(W.resolve("mock:"+o).pledge));U.all(f).then(function(){var e,t,n=0;for(f.length=0;e=s[n];n++)(t=W.get(e.uri)||new W(e.uri)).source=j(t.url,e.source),t.handler=arguments[n],f.push(t.pledge),R.enqueue(t);U.all(f).then(a.resolve,r)},r)}},new(e.extends(i))}(),Y=function(){function u(e){for(var t,n,r=0;t=i[r];r++)0===e.indexOf(t.prefix)&&(!n||t.weight>n.weight)&&(n=t);return n}function t(e,t){i.push({prefix:e,weight:e.length,fn:t})}function a(e,t){var n,r=t.matches,i=0;if(1=0}function U(e,t){return e instanceof t}!function(t){function n(e,t,n,r,i){D(this,e,new W(t,n,r,i))}function r(e){for(var n,r=this[t],i=H(r),o={constructor:new W(this,v,v)},a=0;(n=i[a])&&!o[n];a++)o[n]=N(r,n);try{this[t]=T(e[t]||e,o)}catch(e){}if(this[t]===r)throw new TypeError("Unable to extend, prototype is not writable");return this}n.call(Object.prototype,"define",n),n.call(e.Object.prototype,"define",n),Function.prototype.define("extends",r),e.Function.prototype.define("extends",r)}("prototype");var X,B=(X=/^\bv?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\da-z-]+(?:\.[\da-z-]+)*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?\b$/i,function(e){return z(e,g)&&X.test(e)});function G(e,t,n){for(var r,i=$.keys(e),o=0;(r=i[o])!==h&&t.call(n,r,e[r])!==p;o++);return n}var J,K,Q,V,Y=function(){function e(e,t){var n,r=this[e];t!==h&&(_(t)?(n=_(r),r=t.length!==h?n&&r.length!==h?r:[]:n&&r.length===h?r:{},this[e]=Y(r,t)):this[e]=t)}return function(){for(var t,n=arguments[0],r=1;(t=arguments[r])!==h;r++)G(t,e,n);return n}}(),Z=function(){var e=new RegExp("[xy]","g");function t(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t)}}(),ee=(V="setImmediate"in e,"MutationObserver"in e?function(e){K=u.createElement("div"),new MutationObserver(function(){e()}).observe(K,{attributes:v}),K.setAttribute("i","1")}:!V&&"postMessage"in e&&!("importScripts"in e)&&"addEventListener"in e?(J={},e.addEventListener("message",function(t){var n;t.source===e&&t.data&&(n=J[t.data])&&(n(),delete J[t.data])},p),function(t){var n=Z();J[n]=t,e.postMessage(n,"*")}):!V&&"onreadystatechange"in(K=u.createElement("script"))?function(e){K.onreadystatechange=function(){K.onreadystatechange=l,K.parentNode.removeChild(K),e()},u.body.appendChild(K)}:(Q=V?setImmediate:t,function(e){Q(e)}));function te(e,t,n){return O.call(e,t,n)}var ne=function(){var e="on",t=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)$/,n={};function r(r,i,o){var a,u;if(z(i,g)&&z(o,w))for(i=i.split(" ");a=i.shift();)a=a.split(":"),t.test(a[0])&&((n[a[0]]||(n[a[0]]={on:[],after:[]}))[r].push({callback:o,filter:a[1]}),r===e&&a[0]===j&&(u=s.modules[a[1]])&&o(u))}function i(){}return i.prototype={emit:function(t,r){var i,o,a,u=n[t];if(u){for(i=te(arguments,2),o=0;a=u[e][o];o++)a.filter&&a.filter!==r||a.callback.apply(l,i);for(o=0;a=u.after[o];o++)a.filter&&a.filter!==r||a.callback.apply(l,i)}return this},on:function(t,n){return r(e,t,n),this},after:function(e,t){return r("after",e,t),this}},new i}(),re="WeakMap"in e?(new e.WeakMap).set(function(){},!1)instanceof e.WeakMap?e.WeakMap:function(){var t=new e.WeakMap;return t.set=function(){return e.WeakMap.prototype.set.apply(this,arguments),this},t}:function(){var e="weakmap-";function t(e,t){var n;if((n=t[e.id])&&n[0]===t)return n}function n(){this.define("id",e+Z())}return n.prototype={set:function(e,n){var r=t(this,e);return r?r[1]=n:e.define(this.id,[e,n]),this},get:function(e){var n=t(this,e);if(n)return n[1]},delete:function(e){var n=t(this,e);n&&(n.length=0,delete e[this.id])},has:function(e){return!!t(this,e)}},n}();function ie(){return z(this.uuid,m)&&this.define("uuid",Z()),this}var oe=function(){var e=new re;function t(){var t=ie.call(this);return e.set(t,[]),t}return t.prototype={enqueue:function(){var t=te(arguments);e.set(this,e.get(this).concat(t)),ne.emit(P,this.uuid,t)},dequeue:function(){var t=e.get(this).shift();return ne.emit("queueDequeue",this.uuid,t),t},get current(){return e.get(this)[0]},get length(){return e.get(this).length}},t.extends(ie)}(),ae=function(){var r,i="object"==typeof e.safari&&e.safari.pushNotification?"beforeunload":"visibilitychange",o=e.requestIdleCallback||function(e,n){var r=+new Date;return t(function(){e({didTimeout:p,timeRemaining:function(){return Math.max(0,50-(+new Date-r))}})},n&&n.timeout)},a=e.cancelIdleCallback||function(e){n(e)},c=new oe;function s(){c.dequeue()(),r=c.length&&o(s)}return e.addEventListener(i,function(e){var t;if(c.length&&("visibilitychange"!==e.type||"hidden"===u.visibilityState)){r=a(r);do{t&&t()}while(t=c.dequeue())}},v),function(e,t){c.enqueue(e),!r&&c.length&&(r=o(s,{timeout:t}))}}();function ue(){return+new Date}var ce,se=(ce=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,function(e){return e.replace(ce,"\\$&")});function fe(e){return L.href=e,L.href}var de=/^(http(s?):)?\/\//i,le=/^\//,he=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,pe=new RegExp("^"+se(fe("/"))),ve=new RegExp("^demand|provide|path$"),me=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/;function ge(e,t){var n=e.replace(me,"");return le.test(n)||de.test(n)||(n="/"+fe((t&&fe(t+"/../")||"/")+n).replace(pe,"")),n}function ye(e,t){var n=e.match(me);return(n&&n[1]?"mock:":"")+(n&&n[3]||s.handler)+"!"+ge(e,t)}var we=function(){function e(e,t){return et?1:0}function t(e){if(!B(e))throw new TypeError('"version" must be a valid semver version string');e=function(e){var t,n=e.split("-"),r=0;for(n=n[1]?Array.prototype.concat(n[0].split("."),n[1].split(".")):n[0].split(".");t=n[r];r++)n[r]=parseInt(t,10).toString()===t?parseInt(t,10):t;return n}(e),this.major=e.slice(0,1),this.minor=e.slice(1,2),this.patch=e.slice(2,3),this.identifier=e.slice(3)}return t.prototype={toString:function(){return this.major+"."+this.minor+"."+this.patch+(this.identifier.length?"-"+this.identifier.join("."):"")},compare:function(t){return e(this.major,t.major)||e(this.minor,t.minor)||e(this.patch,t.patch)||function(e,t){var n,r,i,o,a=0;if(e.length&&!t.length)return-1;if(!e.length&&t.length)return 1;if(!e.length&&!t.length)return 0;do{if(n=e[a],o=typeof(r=t[a]),(i=typeof n)===m&&o===m)return 0;if(o===m)return 1;if(i===m)return-1;if(n===r);else{if(i===g&&o!==g)return 1;if(i!==g&&o===g)return-1;if(n>r)return 1;if(nt.weight)&&(t=r)}),t?t.state:p)}function d(e){return a.getItem(e)}function h(e,t){a[t?"setItem":"removeItem"](e,t)}function m(e){var t,n=d(e);if(n&&(t=n.match(i)))return te(t,1)}function g(e,t){t[4]=ue(),h(e,t.join(","))}function y(e,t,n){ne.emit(e,t.id,t,n)}function w(){ae(this.clear.expired.bind(this.clear),s.delay)}return ne.on("cacheMiss",function(e){ae(function(){t.clear(e.id)})}).on("cacheExceed",function(e){r("-!/demand/cache/dispose").then(function(n){ae(function(){n(e.source.length),t.set(e)},s.delay)})}).on(E,function(e){e.source&&f(e)&&(c[e.id]=v)}).after("postProcess",function(e){c[e.id]&&ae(function(){t.set(e)},s.delay)}),w.prototype={get:o?function(e){var t,n;if(f(e)){if(t="[demand]["+e.id+"]",!(n=m(t+"[state]")))return;return 1===e.version.compare(new we(n[0]))||n[2]&&e.lifetime&&n[2]<=ue()?void(e.invalid=!0):(e.source=d(t+"[value]"),ae(function(){g(t+"[state]",n)},s.delay),v)}}:function(){},resolve:o?function(e){this.get(e)?y("cacheHit",e):y("cacheMiss",e)}:function(e){y("cacheMiss",e)},set:o?function(e){var t,n,i;if(f(e)){t=[e.version,e.source.length,e.lifetime?ue()+e.lifetime:l,r.version],n="[demand]["+e.id+"]",y("preCache",e,t);try{if(i=u?a.remainingSpace:l,h(n+"[value]",e.source),g(n+"[state]",t),i!==l&&a.remainingSpace===i)throw new Error;y("postCache",e,t)}catch(t){y("cacheExceed",e)}}}:function(){},clear:o?function(e){var t=ye(e),n="[demand]["+t+"]";d(n+"[state]")&&(h(n+"[state]"),h(n+"[value]"),y("cacheClear",ke.get(t)||new ke(t,l,p)))}:function(){}},w.prototype.clear.all=o?function(){var e;G(a,function(t){(e=t.match(n))&&this(e[1])},this)}:function(){},w.prototype.clear.expired=o?function(){var e,t;G(a,function(r){(e=r.match(n))&&(t=m("[demand]["+e[1]+"][state]"))&&t[2]>0&&t[2]<=ue()&&this(e[1])},this)}:function(){},t=new w}(),be=function(){var e="pending",t="resolved",n="rejected",r=new re;function i(i,o){var a,u,c=r.get(this);for(c.state===e&&(c.state=i,c.value=o);a=c[c.state].shift();)(u=a.handler.apply(l,c.value))&&"function"==typeof u.then?u.then(a.dfd.resolve,a.dfd.reject):a.dfd[c.state===t?"resolve":"reject"].apply(l,c.value);c[t].length=0,c[n].length=0}function o(e,t,n){e.then(function(){n.resolved[t]=te(arguments),n.count++,a(n)},function(){n.rejected.push(te(arguments)),a(n)})}function a(e){e.count===e.total?e.dfd.resolve.apply(l,A.apply([],e.resolved)):e.rejected.length+e.count===e.total&&e.dfd.reject.apply(l,A.apply([],e.rejected))}function u(o){return r.set(this,{state:e,handle:i.bind(this),value:l,resolved:[],rejected:[],count:0}),o(function(){r.get(this).handle(t,arguments)}.bind(this),function(){r.get(this).handle(n,arguments)}.bind(this)),this}return u.prototype={catch:function(e){return this.then(function(){},e)},always:function(e){return this.then(e,e)},then:function(i,o){var a=r.get(this),c=u.defer();return i&&a[t].push({handler:i,dfd:c}),o&&a[n].push({handler:o,dfd:c}),a.state!==e&&ee(a.handle),c.pledge},isPending:function(){return r.get(this).state===e},isResolved:function(){return r.get(this).state===t},isRejected:function(){return r.get(this).state===n}},u.defer=function(){var e={};return e.pledge=new u(function(t,n){e.resolve=t,e.reject=n}),e},u.all=function(e){var t,n,r=u.defer(),i=0;if(e.length)for(t={dfd:r,resolved:[],rejected:[],total:e.length,count:0};n=e[i];i++)o(n,i,t);else r.resolve();return r.pledge},u.race=function(e){for(var t,n=u.defer(),r=0;t=e[r];r++)t.then(n.resolve,n.reject);return e.length||n.resolve(),n.pledge},u}(),je=function(){var e=new re;function t(){e.set(this,{})}return t.prototype={get:function(t){return t?e.get(this)[t]:e.get(this)},set:function(t,n){e.get(this)[t]=n},remove:function(t){delete e.get(this)[t]}},t}();function qe(e,t,n){return this.message=e,t&&(this.module=t),n&&(this.stack=te(n)),this}qe.prototype={toString:function(){var e="demand: "+this.message+" "+(this.module?'"'+this.module+'"':"");return this.stack&&(e=qe.traverse(this.stack,e,1)),e}},qe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=qe.traverse(r.stack,t,n+1));return t};var ke=function(){var e=new je,t=/^(?:mock:|internal!)/i,n=[];function o(e,t){this[e]=t}function a(e){t.test(e)||this.push(e)}function c(e,n){!t.test(e)&&n.pledge.isPending()&&this.push(e)}function h(e,n){!t.test(e)&&n.pledge.isResolved()&&this.push(e)}function m(e,n){!t.test(e)&&n.pledge.isRejected()&&this.push(e)}function g(){return G(e.get(),a,[])}function y(t,r,i){var o=this,a=t.match(me)||n;return o.path=ge(t,r),o.mock=a[1]?v:p,o.cache=a[2]?"+"===a[1]:l,o.type=a[3]||s.handler,o.version=new we(a[4]||s.version),o.lifetime=a[5]&&1e3*a[5]||s.lifetime,o.id=(o.mock?d:"")+o.type+"!"+o.path,o.uri=(o.mock?d:"")+o.type+"@"+o.version+(F(o.lifetime)&&o.lifetime>0?"#"+o.lifetime:"")+"!"+o.path,o.dfd=be.defer(),o.pledge=o.dfd.pledge,o.invalid=!1,o.pledge.then(function(){o.value=te(arguments)}),i!==p&&e.set(o.id,o),o}return g.pending=function(){return G(e.get(),c,[])},g.resolved=function(){return G(e.get(),h,[])},g.rejected=function(){return G(e.get(),m,[])},y.prototype={enqueue:!0},y.get=function(t,n){return e.get(ye(t,n))},y.resolve=function(e,t){var n,a=t&&ve.test(e),u=a?this.get("internal!"+t+"/"+e):this.get(e,t);if(!u)if(a){switch(u=new y("internal!"+t+"/"+e),e){case"demand":n=G(r,o,r.bind(t));break;case"provide":n=i.bind(t);break;case"path":n=t}u.dfd.resolve(n)}else u=new y(e,t),r(f+u.type).then(function(e){u.handler=e,u.mock?u.dfd.resolve(e):xe.resolve(u)},function(){u.dfd.reject(new qe(M+" (handler)",self.id))});return u},y.remove=function(t,n,r){var i=ye(t,n),o=u.querySelector('[demand-id="'+i+'"]');e.remove(i),e.remove(d+i),o&&o.parentNode.removeChild(o),r!==p&&xe.clear(i)},y.list=g,y}(),Re=function(){var e=/(.+)\/$/;function t(t,n){this[t]={url:fe(n).replace(e,"$1"),match:new RegExp("^"+se(n))}}function n(e,n){this.weight=e.length,this.match=new RegExp("^"+se(e)),this.location=[].concat(n),G(this.location,t,this.location)}return n.prototype={matches:function(e){return this.match.test(e)},process:function(e,t){var n=this.location[t];if(n)return e.replace(this.match,n.url)}},n}(),Ee=function(r){var i="XDomainRequest"in e&&e.XDomainRequest||r;return function(e){var o,a=be.defer(),u=pe.test(e)?new r:new i,c=function(){this.readyState<4&&this.abort()}.bind(u),f=s.timeout;return u.ontimeout=u.onerror=u.onabort=function(){a.reject(u.status)},u.onprogress=u.onreadystatechange=function(){n(o),o=t(c,f)},u.onload=function(){o=n(o),"status"in u&&200!==u.status?a.reject(u.status):a.resolve(u.responseText,u.getResponseHeader&&u.getResponseHeader("content-type"))},u.open("GET",e,v),u.send(),o=t(c,f),a.pledge}}(XMLHttpRequest);function Pe(e){var t,n=/^(?:\?|)$/;function r(t,n){n&&e.handler.validate&&!e.handler.validate(n)?e.dfd.reject(new qe(M+" (content-type)",e.id)):(e.source=t,ne.emit(E,e.type,e))}function i(t){e.dfd.reject(new qe(M+(t?" (status)":""),e.id))}de.test(e.path)||G(s.pattern,function(n,r){r.matches(e.path)&&(!t||t.weight>>0}r=function(){function t(e,t){this[e]={weight:e.length,state:t}}function n(e,t){"base"!==e&&(this[e]=new Re(e,t))}function r(e,t){var n=this[e]=this[e]||{};ne.emit(b,e,n),Y(n,t),ne.emit(j,e,n)}function i(){var t,n,r=te(arguments),i=this!==e?this:l,o=0;for(ne.emit(q,l,r,i);t=r[o];o++)z(t,g)?r[o]=ke.resolve(t,i).pledge:(r[o]=(n=be.defer()).pledge,n.resolve(t));return(r.length>1?be.all(r):r[0]).always(function(){ne.emit(k,l,r,i)})}return i.configure=function(e){var o=e.cache,a=e.version,u=e.delay,c=e.timeout,f=e.lifetime,d=e.base,l=e.pattern,h=e.modules,p=s.modules;return z(o,"boolean")?s.cache[""]={weight:0,state:o}:_(o)&&G(o,t,s.cache),B(a)&&(s.version=a),F(u)&&(s.delay=1e3*u),F(c)&&(s.timeout=1e3*Math.min(Math.max(c,2),20)),F(f)&&f>0&&(s.lifetime=1e3*f),z(d,g)&&""!==d&&(s.pattern.base=new Re("",d)),_(l)&&G(l,n,s.pattern),_(h)&&G(h,r,p),i},i.version="5.2.2",i.on=ne.on.bind(i),i.get=function(e,t){var n=ke.get(e,t);return n&&n.value},i.list=ke.list,i.remove=ke.remove,i.cache={clear:xe.clear},ne.after("cacheMiss",function(e){new Pe(e)}).after(E,function(e){var t=e.handler.onPostRequest;t&&t(e)}).after("cacheHit "+E,function(e){ne.emit("preProcess",e.id,e)}).after(R,function(e){var t=e.handler.onPreRequest;t&&t(e)}).after("preProcess",function(e){var t=e.handler.onPreProcess;t&&t(e),e.pledge.then(function(){ne.emit("postProcess",e.id,e)}),!0===e.enqueue?o.enqueue(e):U(e.enqueue,be)&&e.enqueue.then(function(){o.enqueue(e)})}),i}(),e.define("demand",r),i=function(){var t,n,i=z(arguments[0],g)?arguments[0]:l,o=this!==e?this:l,u=Me(arguments[i?1:0])?arguments[i?1:0]:l,c=u?arguments[i?2:1]:arguments[i?1:0];if(!i&&a.current&&(i=(t=a.current).uri,a.process()),i)return t=t||new ke(i,o),n=z(c,w),u?r.apply(t.path,u).then(function(){t.dfd.resolve(n?c.apply(l,arguments):c)},function(){t.dfd.reject(new qe("error providing",t.id,arguments))}):t.dfd.resolve(n?c():c),t.dfd.pledge;!z(console,m)&&console.error(new qe("unspecified anonymous provide"))},e.define("provide",i),r.configure({cache:v,base:"/",pattern:{"/demand":fe((c&&c.url||location.href)+"/../").slice(0,-1)}}),c&&c.settings&&r.configure(c.settings);var Ce=function(){var e=new re;function t(t){var n=this,i={queue:t,current:l};e.set(n,i),r.on(P+":"+t.uuid,function(){!i.current&&n.process()})}return t.prototype={process:function(){var t,n=e.get(this);!n.queue.length||(t=n.current=n.queue.dequeue()).pledge.isRejected()?n.current=l:t.handler.process&&t.handler.process(t)},get current(){return e.get(this).current}},t}();function Oe(e,t){for(var n,r;n=he.exec(t);)L.href=e,de.test(n[2])?r=L.protocol+"//"+L.host+n[3]:(L.pathname+="/../"+n[3],r=L.protocol+"//"+L.host+L.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}function Ae(){}Ae.prototype={validate:l,onPreRequest:l,onPostRequest:l,onPreProcess:l,process:l};var $e=function(){var e=u.getElementsByTagName("head")[0],t=/^(application|text)\/(x-)?javascript/;function n(){}return n.prototype={validate:function(e){return t.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".js"!==t.slice(-".js".length)?t+".js":t},onPostRequest:function(e){e.source=Oe(e.url,e.source)},process:function(t){var n;t.source&&((n=u.createElement("script")).async=v,n.text=t.source,n.setAttribute("demand-id",t.id),e.appendChild(n))}},new(n.extends(Ae))}();function qe(e,t,n){return this.message=e,t&&(this.module=t),n&&(this.stack=te(n)),this}qe.prototype={toString:function(){var e="demand: "+this.message+" "+(this.module?'"'+this.module+'"':"");return this.stack&&(e=qe.traverse(this.stack,e,1)),e}},qe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=qe.traverse(r.stack,t,n+1));return t};var Ie=function(){var e=f+"bundle",t={};function n(e,t){var n,r;for(n=0;r=t[n];n++)z(r,g)&&(t[n]=ye(r))}function i(){}return r.on(j+":"+e,function(e){_(e)&&G(t=e,n)}),i.prototype={validate:$e.validate,onPreProcess:function(e){var n,r,i,a,u,c=e.source,s=e.dfd,f=t[e.path];function l(){s.reject(new qe(S,e.id,arguments))}if(e.enqueue=p,f&&(n=function(e){for(var n,r,i=0;r=e[i];i++)if(r=(r=r.match(me))&&r[3]||t.handler,n){if(r!==n)return p}else n=r;return n}(f))){for(;r=he.exec(c);)c=c.replace(r[0],"");for(e.source=c,i=[],u=0;a=f[u];u++)i.push(ke.resolve(d+a).pledge);be.all(i).then(function(){for(i.length=0,u=0;a=f[u];u++)(a=f[u]=ke.get(a)||new ke(a)).handler=arguments[u],i.push(a.pledge);"module"===n?(o.enqueue.apply(o,f),$e.process(e)):($e.process(e),o.enqueue.apply(o,f)),be.all(i).then(s.resolve,l)},l)}else l()}},new(i.extends(Ae))}(),Te=function(){var e=/^text\/.+$/;function t(){}return t.prototype={validate:function(t){return e.test(t)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".html"!==t.slice(-".html".length)?t+".html":t},onPostRequest:function(e){e.source=Oe(e.url,e.source)},onPreProcess:function(e){var t,n,r,i,a=e.path,c=e.dfd,s=u.createElement("body"),f=[],d=[];function l(){c.reject(new qe(S,e.id,arguments))}for(e.enqueue=p,s.innerHTML=e.source;t=s.firstElementChild;)(n=t.getAttribute("type"))&&(i=n+"!"+a+((r=t.getAttribute("path"))?"/"+r:""),t.parentNode.removeChild(t),f.push({source:t.textContent,uri:i}),d.push(ke.resolve("mock:"+i).pledge));be.all(d).then(function(){var e,t,n=0;for(d.length=0;e=f[n];n++)(t=ke.get(e.uri)||new ke(e.uri)).source=Oe(t.url,e.source),t.handler=arguments[n],d.push(t.pledge),o.enqueue(t);be.all(d).then(c.resolve,l)},l)}},new(t.extends(Ae))}(),De=function(){var e="/demand/plugin/genie",t=[];function n(e){for(var n,r,i=0;n=t[i];i++)0===e.indexOf(n.prefix)&&(!r||n.weight>r.weight)&&(r=n);return r}function i(e,n){t.push({prefix:e,weight:e.length,fn:n})}function o(t,n){var i,o=n.matches,a=0;if(o.length>1){for(n.id=e+"/"+Se(JSON.stringify(n.matches));i=o[a];a++)o[a]=new ke(i.uri);r.configure(function(e){var t,n,r=e.matches,i={pattern:{},modules:{"/demand/handler/bundle":{}}},o=0;for(i.pattern[e.id]=e.fn(r),i.modules[f+"bundle"][e.id]=t=[];n=r[o];o++)t.push(n.path);return i}(n)),r("bundle!"+n.id).then(function(){for(var e,t=0;e=this[t];t++)e.dfd.resolve(arguments[t])}.bind(o),function(){for(var e,t=0;e=this[t];t++)e.dfd.reject(new qe(S,e.id))}.bind(o))}}return r.on(j+":"+e,function(e){_(e)&&(t.length=0,G(e,i))}).on(q,function(e,t){for(var r,i,a={},u=0;r=e[u];u++)!z(r,g)||ve.test(r)||ke.get(r,t)||"module"===(r=new ke(r,t,p)).type&&(i=n(r.path))&&!xe.get(r)&&(a[i.prefix]||(a[i.prefix]={fn:i.fn,matches:[]})).matches.push(r);G(a,o)}),v}();function He(e,t){i(e,function(){return t})}if(o=new oe,a=new Ce(o),He("/demand/abstract/uuid",ie),He("/demand/abstract/handler",Ae),He(f+"module",$e),He(f+"bundle",Ie),He(f+"component",Te),He("/demand/plugin/genie",De),He("/demand/validator/isTypeOf",z),He("/demand/validator/isArray",Me),He("/demand/validator/isObject",_),He("/demand/validator/isInstanceOf",U),He("/demand/validator/isSemver",B),He("/demand/function/resolveUrl",fe),He("/demand/function/resolveSourcemaps",Oe),He("/demand/function/merge",Y),He("/demand/function/iterate",G),He("/demand/function/hash",Se),He("/demand/function/defer",ee),He("/demand/function/idle",ae),He("/demand/function/uuid",Z),He("/demand/weakmap",re),He("/demand/descriptor",W),He("/demand/pledge",be),He("/demand/queue",oe),He("/demand/xhr",Ee),He("/demand/failure",qe),He("/demand/semver",we),c&&c.main)switch(typeof c.main){case g:r(c.main);break;case w:i("main",c.main())}}("demand-loader"===this.name?parent:this,setTimeout,clearTimeout); //# sourceMappingURL=demand.js.map diff --git a/dist/demand.js.map b/dist/demand.js.map index 976740f..cde6f79 100644 --- a/dist/demand.js.map +++ b/dist/demand.js.map @@ -1 +1 @@ -{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","ClassDescriptor","value","writable","configurable","enumerable","__proto__","NULL","validatorIsTypeOf","object","type","validatorIsObject","STRING_OBJECT","validatorIsPositive","STRING_NUMBER","isFinite","Math","floor","validatorIsInstanceOf","module","functionIterate","source","callback","context","property","properties","keys","i","UNDEFINED","call","FALSE","functionToArray","arrayLikeObject","start","end","arrayPrototypeSlice","AbstractUuid","this","uuid","STRING_UNDEFINED","define","functionUuid","functionGetTimestamp","Date","functionResolveUrl","url","linkElement","href","functionResolvePath","uri","path","replace","regexMatchParameter","regexIsAbsolutePath","test","regexIsAbsoluteUri","regexMatchBaseUrl","functionResolveId","parameter","match","settings","handler","ClassFailure","message","stack","self","ClassLoader","dependency","resolve","response","validate","dfd","reject","ERROR_LOAD","id","singletonEvent","emit","EVENT_POST_REQUEST","status","pattern","regexMatchEmptySearch","matches","weight","load","location","document","createElement","process","invalid","search","EVENT_PRE_REQUEST","ClassXhr","then","validatorIsArray","objectPrototypeToString","functionHash","input","length","charCodeAt","functionResolveSourcemaps","replacement","regexMatchSourcemap","exec","protocol","host","pathname","abstractHandler","assignModule","provide","demand","queue","processor","validatorIsSemver","functionMerge","functionDefer","ClassWeakmap","ClassQueue","functionIdle","functionEscapeRegex","regexMatchInternal","ClassSemver","singletonCache","ClassPledge","ClassRegistry","ClassDependency","ClassPattern","ClassProcessor","handlerModule","handlerBundle","handlerComponent","pluginGenie","regexMatchSemver","element","fallback","storage","hasSetImmediate","regexMatchRegex","XMLHttpRequest","XDomainRequest","options","version","cache","timeout","modules","DEMAND_ID","PROVIDE_ID","MODULE_PREFIX","MODULE_PREFIX_ABSTRACT","MODULE_PREFIX_HANDLER","MODULE_PREFIX_PLUGIN","MODULE_PREFIX_FUNCTION","MODULE_PREFIX_VALIDATOR","MOCK_PREFIX","STRING_STRING","STRING_FUNCTION","EVENT_POSTFIX","EVENT_POST_CONFIGURE","EVENT_CACHE","EVENT_CACHE_MISS","EVENT_CACHE_HIT","EVENT_CACHE_EXCEED","EVENT_PRE_RESOLVE","EVENT_PREFIX","EVENT_REQUEST","EVENT_PROCESS","EVENT_PRE_PROCESS","EVENT_POST_PROCESS","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","ERROR_RESOLVE","arrayPrototype","Array","prototype","slice","arrayPrototypeConcat","concat","Object","toString","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","strPrototype","objectDefine","name","functionExtends","names","constructor","e","TypeError","Function","mergeProperties","targetPropertyIsObject","targetProperty","target","arguments","randomize","character","r","random","regex","RegExp","fn","MutationObserver","observe","attributes","setAttribute","addEventListener","event","data","postMessage","onreadystatechange","parentNode","removeChild","body","appendChild","setImmediate","addListener","events","pointer","split","shift","regexMatchEvent","listener","on","after","push","filter","Event","item","apply","WeakMap","getEntry","key","entry","set","get","delete","has","enqueue","items","dequeue","current","extends","requestIdleCallback","eventName","safari","pushNotification","didTimeout","timeRemaining","max","cancelIdleCallback","visibilityState","delay","compareLevel","a","b","temp","parts","parseInt","parse","major","minor","patch","identifier","join","compare","pa","pb","tpa","tpb","compareIdentifier","enabled","indexOf","state","getKey","localStorage","getItem","setKey","getState","regexMatchProperties","setState","Cache","clear","expired","bind","STORAGE_PREFIX","STORAGE_SUFFIX_STATE","STORAGE_SUFFIX_VALUE","regexMatchState","supportsLocalStorage","exception","supportsRemainingSpace","cacheDispose","lifetime","spaceBefore","remainingSpace","Error","error","all","pledge","index","resolved","count","check","rejected","total","executor","PLEDGE_PENDING","handle","result","PLEDGE_RESOLVED","PLEDGE_REJECTED","catch","always","alwaysListener","resolveListener","rejectListener","defer","isPending","isResolved","isRejected","pledges","race","remove","traverse","depth","indention","setProperty","add","matchInternal","addPending","addResolved","addRejected","list","registry","register","placeholder","mock","PREFIX_INTERNAL","pending","isInternal","node","querySelector","regexMatchTrailingSlash","xhr","boundCheckState","readyState","abort","ontimeout","onerror","onabort","onprogress","onload","responseText","getResponseHeader","open","send","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","configure","base","min","onPostRequest","onPreRequest","onPreProcess","isFunction","definition","console","/demand","HandlerModule","getElementsByTagName","regexMatchType","script","async","text","updateDependencies","HandlerBundle","getType","HandlerComponent","suffix","container","innerHTML","firstElementChild","getAttribute","textContent","matchPattern","prefix","addPattern","resolveBundles","JSON","stringify","bundle","configuration","/demand/handler/bundle","generateConfiguration","bundles","main","parent"],"mappings":";CAAA,SAAAA,EAAAC,EAAAC,GAAA,aAEA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GACA,MAAA,CACAC,UAAAC,GACAL,MAAAA,EACAG,aAAAA,EACAD,eAAAA,EACAD,WAAAA,GAIA,SAAAK,EAAAC,EAAAC,GACA,cAAAD,IAAAC,EAGA,SAAAC,EAAAF,GACA,OAAAA,GAAAD,EAAAC,EAAAG,IAGA,SAAAC,EAAAX,GACA,OAAAM,EAAAN,EAAAY,KAAAC,SAAAb,IAAAc,KAAAC,MAAAf,KAAAA,GAAA,GAAAA,EAGA,SAAAgB,EAAAT,EAAAU,GACA,OAAAV,aAAAU,EAGA,SAAAC,EAAAC,EAAAC,EAAAC,GACA,IAAA,IAAAC,EAAAC,EAAAhB,GAAAiB,KAAAL,GAAAM,EAAA,GACAH,EAAAC,EAAAE,MAAAC,IACAN,EAAAO,KAAAN,EAAAC,EAAAH,EAAAG,MAAAM,GADAH,KAEA,OAAAJ,EAGA,SAAAQ,EAAAC,EAAAC,EAAAC,GACA,OAAAC,GAAAN,KAAAG,EAAAC,EAAAC,GAGA,SAAAE,IAEA,OADA5B,EAAA6B,KAAAC,KAAAC,KAAAF,KAAAG,OAAA,OAAAC,KACAJ,KAGA,SAAAK,IACA,OAAA,IAAAC,KAGA,SAAAC,EAAAC,GAEA,OADAC,GAAAC,KAAAF,EACAC,GAAAC,KAGA,SAAAC,EAAAC,EAAA1B,GACA,IAAA2B,EAAAD,EAAAE,QAAAC,EAAA,IAGA,OAFAC,EA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AAA,SAAAxB,GACAf,EAAAuC,GAAA,QAAA9B,GACAT,EAAAuC,GAAA,MAAAvD,GACAgB,EAAAuC,GAAA,UAAApF,GACA6C,EAAAuC,GAAA,SAAA1B,GACAmB,IAAAA,GAAAwQ,KAAA,cAAAxQ,GAAAwQ,MACA,KAAA1P,GACA5C,EAAA8B,GAAAwQ,MACA,MACA,KAAAzP,GACA9C,EAAA,OAAA+B,GAAAwQ,SAn4CA,CAq4CA,kBAAA9W,KAAAuJ,KAAAwN,OAAA/W,KAAAtC,WAAAC","file":"demand.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function (global, setTimeout, clearTimeout) {\n\t\"use strict\";\n\n\tfunction ClassDescriptor(value, writable, configurable, enumerable) {\n\t\treturn {\n\t\t\t__proto__: NULL,\n\t\t\tvalue: value,\n\t\t\tenumerable: !!enumerable,\n\t\t\tconfigurable: !!configurable,\n\t\t\twritable: !!writable\n\t\t}\n\t}\n\n\tfunction validatorIsTypeOf(object, type) {\n\t\treturn typeof object === type\n\t}\n\n\tfunction validatorIsObject(object) {\n\t\treturn object && validatorIsTypeOf(object, STRING_OBJECT)\n\t}\n\n\tfunction validatorIsPositive(value) {\n\t\treturn validatorIsTypeOf(value, STRING_NUMBER) && isFinite(value) && Math.floor(value) === value && value >= 0\n\t}\n\n\tfunction validatorIsInstanceOf(object, module) {\n\t\treturn object instanceof module\n\t}\n\n\tfunction functionIterate(source, callback, context) {\n\t\tfor (var property, properties = object.keys(source), i = 0;\n\t\t\t(property = properties[i]) !== UNDEFINED; i++)\n\t\t\tif (callback.call(context, property, source[property]) === FALSE) break;\n\t\treturn context\n\t}\n\n\tfunction functionToArray(arrayLikeObject, start, end) {\n\t\treturn arrayPrototypeSlice.call(arrayLikeObject, start, end)\n\t}\n\n\tfunction AbstractUuid() {\n\t\tif (validatorIsTypeOf(this.uuid, STRING_UNDEFINED)) this.define(\"uuid\", functionUuid());\n\t\treturn this\n\t}\n\n\tfunction functionGetTimestamp() {\n\t\treturn +new Date\n\t}\n\n\tfunction functionResolveUrl(url) {\n\t\tlinkElement.href = url;\n\t\treturn linkElement.href\n\t}\n\n\tfunction functionResolvePath(uri, context) {\n\t\tvar path = uri.replace(regexMatchParameter, \"\");\n\t\tif (!regexIsAbsolutePath.test(path) && !regexIsAbsoluteUri.test(path)) path = \"/\" + functionResolveUrl((context && functionResolveUrl(context + \"/../\") || \"/\") + path)\n\t\t\t.replace(regexMatchBaseUrl, \"\");\n\t\treturn path\n\t}\n\n\tfunction functionResolveId(uri, context) {\n\t\tvar parameter = uri.match(regexMatchParameter);\n\t\treturn (parameter && parameter[1] ? \"mock:\" : \"\") + (parameter && parameter[3] || settings.handler) + \"!\" + functionResolvePath(uri, context)\n\t}\n\n\tfunction ClassFailure(message, module, stack) {\n\t\tvar self = this;\n\t\tself.message = message;\n\t\tmodule && (self.module = module);\n\t\tstack && (self.stack = functionToArray(stack));\n\t\treturn self\n\t}\n\n\tfunction ClassLoader(dependency) {\n\t\tfunction resolve(response, type) {\n\t\t\tif (!type || !dependency.handler.validate || dependency.handler.validate(type)) {\n\t\t\t\tdependency.source = response;\n\t\t\t\tsingletonEvent.emit(EVENT_POST_REQUEST, dependency.type, dependency)\n\t\t\t} else dependency.dfd.reject(new ClassFailure(ERROR_LOAD + \" (content-type)\", dependency.id))\n\t\t}\n\n\t\tfunction reject(status) {\n\t\t\tdependency.dfd.reject(new ClassFailure(ERROR_LOAD + (status ? \" (status)\" : \"\"), dependency.id))\n\t\t}\n\n\t\tfunction load(location) {\n\t\t\tlocation = location || 0;\n\t\t\tdependency.url = document.createElement(\"a\");\n\t\t\tdependency.url.href = pattern ? functionResolveUrl(pattern.process(dependency.path, location)) : dependency.path;\n\t\t\tif (dependency.invalid) dependency.url.search += (regexMatchEmptySearch.test(dependency.url.search) ? \"\" : \"&\") + functionGetTimestamp();\n\t\t\tsingletonEvent.emit(EVENT_PRE_REQUEST, dependency.type, dependency);\n\t\t\tnew ClassXhr(dependency.url)\n\t\t\t\t.then(resolve, pattern ? function () {\n\t\t\t\t\tlocation++;\n\t\t\t\t\tif (pattern.location[location]) load(location);\n\t\t\t\t\telse reject()\n\t\t\t\t} : reject)\n\t\t}\n\t\tvar pattern, regexMatchEmptySearch = /^(?:\\?|)$/;\n\t\tif (!regexIsAbsoluteUri.test(dependency.path)) functionIterate(settings.pattern, function (property, value) {\n\t\t\tvalue.matches(dependency.path) && (!pattern || pattern.weight < value.weight) && (pattern = value)\n\t\t});\n\t\tload()\n\t}\n\n\tfunction validatorIsArray(value) {\n\t\treturn \"[object Array]\" === objectPrototypeToString.call(value)\n\t}\n\n\tfunction functionHash(input) {\n\t\tvar value = 5381,\n\t\t\ti = input.length;\n\t\twhile (i) value = 33 * value ^ input.charCodeAt(--i);\n\t\treturn value >>> 0\n\t}\n\n\tfunction functionResolveSourcemaps(url, source) {\n\t\tvar match, replacement;\n\t\twhile (match = regexMatchSourcemap.exec(source)) {\n\t\t\tlinkElement.href = url;\n\t\t\tif (regexIsAbsoluteUri.test(match[2])) replacement = linkElement.protocol + \"//\" + linkElement.host + match[3];\n\t\t\telse {\n\t\t\t\tlinkElement.pathname += \"/../\" + match[3];\n\t\t\t\treplacement = linkElement.protocol + \"//\" + linkElement.host + linkElement.pathname\n\t\t\t}\n\t\t\tsource = source.replace(match[0], match[1] + \" \" + match[2] + \"=\" + replacement + \".map\" + (match[4] ? \" \" + match[4] : \"\"))\n\t\t}\n\t\treturn source\n\t}\n\n\tfunction abstractHandler() {}\n\n\tfunction ClassFailure(message, module, stack) {\n\t\tvar self = this;\n\t\tself.message = message;\n\t\tmodule && (self.module = module);\n\t\tstack && (self.stack = functionToArray(stack));\n\t\treturn self\n\t}\n\n\tfunction assignModule(id, module) {\n\t\tprovide(id, function () {\n\t\t\treturn module\n\t\t})\n\t}\n\tvar demand, provide, queue, processor, validatorIsSemver, functionMerge, functionUuid, functionDefer, singletonEvent, ClassWeakmap, ClassQueue, functionIdle, functionEscapeRegex, regexIsAbsoluteUri, regexIsAbsolutePath, regexMatchSourcemap, regexMatchBaseUrl, regexMatchInternal, regexMatchParameter, ClassSemver, singletonCache, ClassPledge, ClassRegistry, ClassDependency, ClassPattern, ClassXhr, ClassProcessor, handlerModule, handlerBundle, handlerComponent, pluginGenie, document = global.document,\n\t\toptions = \"demand\" in global && global.demand,\n\t\tsettings = {\n\t\t\tversion: \"1.0.0\",\n\t\t\tcache: {},\n\t\t\ttimeout: 8e3,\n\t\t\tpattern: {},\n\t\t\tmodules: {},\n\t\t\thandler: \"module\"\n\t\t},\n\t\tDEMAND_ID = \"demand\",\n\t\tPROVIDE_ID = \"provide\",\n\t\tPATH_ID = \"path\",\n\t\tMODULE_PREFIX = \"/\" + DEMAND_ID + \"/\",\n\t\tMODULE_PREFIX_ABSTRACT = MODULE_PREFIX + \"abstract/\",\n\t\tMODULE_PREFIX_HANDLER = MODULE_PREFIX + \"handler/\",\n\t\tMODULE_PREFIX_PLUGIN = MODULE_PREFIX + \"plugin/\",\n\t\tMODULE_PREFIX_FUNCTION = MODULE_PREFIX + \"function/\",\n\t\tMODULE_PREFIX_VALIDATOR = MODULE_PREFIX + \"validator/\",\n\t\tMOCK_PREFIX = \"mock:\",\n\t\tNULL = null,\n\t\tUNDEFINED = void 0,\n\t\tFALSE = false,\n\t\tTRUE = true,\n\t\tSTRING_UNDEFINED = \"undefined\",\n\t\tSTRING_STRING = \"string\",\n\t\tSTRING_BOOLEAN = \"boolean\",\n\t\tSTRING_OBJECT = \"object\",\n\t\tSTRING_FUNCTION = \"function\",\n\t\tSTRING_NUMBER = \"number\",\n\t\tEVENT_PREFIX = \"pre\",\n\t\tEVENT_POSTFIX = \"post\",\n\t\tEVENT_CONFIGURE = \"Configure\",\n\t\tEVENT_PRE_CONFIGURE = EVENT_PREFIX + EVENT_CONFIGURE,\n\t\tEVENT_POST_CONFIGURE = EVENT_POSTFIX + EVENT_CONFIGURE,\n\t\tEVENT_CACHE = \"cache\",\n\t\tEVENT_CACHE_MISS = EVENT_CACHE + \"Miss\",\n\t\tEVENT_CACHE_HIT = EVENT_CACHE + \"Hit\",\n\t\tEVENT_CACHE_CLEAR = EVENT_CACHE + \"Clear\",\n\t\tEVENT_CACHE_EXCEED = EVENT_CACHE + \"Exceed\",\n\t\tEVENT_PRE_CACHE = EVENT_PREFIX + \"Cache\",\n\t\tEVENT_POST_CACHE = EVENT_POSTFIX + \"Cache\",\n\t\tEVENT_RESOLVE = \"Resolve\",\n\t\tEVENT_PRE_RESOLVE = EVENT_PREFIX + EVENT_RESOLVE,\n\t\tEVENT_POST_RESOLVE = EVENT_POSTFIX + EVENT_RESOLVE,\n\t\tEVENT_REQUEST = \"Request\",\n\t\tEVENT_PRE_REQUEST = EVENT_PREFIX + EVENT_REQUEST,\n\t\tEVENT_POST_REQUEST = EVENT_POSTFIX + EVENT_REQUEST,\n\t\tEVENT_PROCESS = \"Process\",\n\t\tEVENT_PRE_PROCESS = EVENT_PREFIX + EVENT_PROCESS,\n\t\tEVENT_POST_PROCESS = EVENT_POSTFIX + EVENT_PROCESS,\n\t\tEVENT_QUEUE = \"queue\",\n\t\tEVENT_QUEUE_ENQUEUE = EVENT_QUEUE + \"Enqueue\",\n\t\tEVENT_QUEUE_DEQUEUE = EVENT_QUEUE + \"Dequeue\",\n\t\tERROR_LOAD = \"error loading\",\n\t\tERROR_PROVIDE = \"error providing\",\n\t\tERROR_RESOLVE = \"error resolving\",\n\t\tERROR_PROVIDE_ANONYMOUS = \"unspecified anonymous provide\",\n\t\tarrayPrototype = Array.prototype,\n\t\tarrayPrototypeSlice = arrayPrototype.slice,\n\t\tarrayPrototypeConcat = arrayPrototype.concat,\n\t\tobject = Object,\n\t\tobjectPrototypeToString = object.prototype.toString,\n\t\tobjectCreate = object.create,\n\t\tobjectDefineProperty = object.defineProperty,\n\t\tobjectGetOwnPropertyNames = object.getOwnPropertyNames,\n\t\tobjectGetOwnPropertyDescriptor = object.getOwnPropertyDescriptor,\n\t\tlinkElement = document.createElement(\"a\");\n\t(function (strPrototype) {\n\t\tfunction objectDefine(name, value, writable, configurable, enumerable) {\n\t\t\tobjectDefineProperty(this, name, new ClassDescriptor(value, writable, configurable, enumerable))\n\t\t}\n\n\t\tfunction functionExtends(source) {\n\t\t\tfor (var property, self = this, prototype = self[strPrototype], names = objectGetOwnPropertyNames(prototype), properties = {\n\t\t\t\t\tconstructor: new ClassDescriptor(self, TRUE, TRUE)\n\t\t\t\t}, i = 0;\n\t\t\t\t(property = names[i]) && !properties[property]; i++) properties[property] = objectGetOwnPropertyDescriptor(prototype, property);\n\t\t\ttry {\n\t\t\t\tself[strPrototype] = objectCreate(source[strPrototype] || source, properties)\n\t\t\t} catch (e) {}\n\t\t\tif (self[strPrototype] === prototype) throw new TypeError(\"Unable to extend, prototype is not writable\");\n\t\t\treturn self\n\t\t}\n\t\tobjectDefine.call(Object.prototype, \"define\", objectDefine);\n\t\tobjectDefine.call(global.Object.prototype, \"define\", objectDefine);\n\t\tFunction.prototype.define(\"extends\", functionExtends);\n\t\tglobal.Function.prototype.define(\"extends\", functionExtends)\n\t})(\"prototype\");\n\tvalidatorIsSemver = function () {\n\t\tvar regexMatchSemver = /^\\bv?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z-]+(?:\\.[\\da-z-]+)*)?(?:\\+[\\da-z-]+(?:\\.[\\da-z-]+)*)?\\b$/i;\n\t\treturn function (value) {\n\t\t\treturn validatorIsTypeOf(value, STRING_STRING) && regexMatchSemver.test(value)\n\t\t}\n\t}();\n\tfunctionMerge = function () {\n\t\tfunction mergeProperties(property, value) {\n\t\t\tvar targetPropertyIsObject, targetProperty = this[property];\n\t\t\tif (value !== UNDEFINED)\n\t\t\t\tif (validatorIsObject(value)) {\n\t\t\t\t\ttargetPropertyIsObject = validatorIsObject(targetProperty);\n\t\t\t\t\tif (value.length !== UNDEFINED) targetProperty = targetPropertyIsObject && targetProperty.length !== UNDEFINED ? targetProperty : [];\n\t\t\t\t\telse targetProperty = targetPropertyIsObject && targetProperty.length === UNDEFINED ? targetProperty : {};\n\t\t\t\t\tthis[property] = functionMerge(targetProperty, value)\n\t\t\t\t} else this[property] = value\n\t\t}\n\t\treturn function () {\n\t\t\tfor (var properties, target = arguments[0], i = 1;\n\t\t\t\t(properties = arguments[i]) !== UNDEFINED; i++) functionIterate(properties, mergeProperties, target);\n\t\t\treturn target\n\t\t}\n\t}();\n\tfunctionUuid = function () {\n\t\tfunction randomize(character) {\n\t\t\tvar r = 16 * Math.random() | 0;\n\t\t\treturn (\"x\" === character ? r : 3 & r | 8)\n\t\t\t\t.toString(16)\n\t\t}\n\t\tvar regex = new RegExp(\"[xy]\", \"g\");\n\t\treturn function () {\n\t\t\treturn \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(regex, randomize)\n\t\t}\n\t}();\n\tfunctionDefer = function () {\n\t\tvar element, fallback, hasSetImmediate = \"setImmediate\" in global;\n\t\tif (\"MutationObserver\" in global) return function (fn) {\n\t\t\telement = document.createElement(\"div\");\n\t\t\tnew MutationObserver(function () {\n\t\t\t\t\tfn()\n\t\t\t\t})\n\t\t\t\t.observe(element, {\n\t\t\t\t\tattributes: TRUE\n\t\t\t\t});\n\t\t\telement.setAttribute(\"i\", \"1\")\n\t\t};\n\t\tif (!hasSetImmediate && \"postMessage\" in global && !(\"importScripts\" in global) && \"addEventListener\" in global) return function () {\n\t\t\tfunction onMessage(event) {\n\t\t\t\tvar fn;\n\t\t\t\tif (event.source === global && event.data && (fn = storage[event.data])) {\n\t\t\t\t\tfn();\n\t\t\t\t\tdelete storage[event.data]\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar storage = {};\n\t\t\tglobal.addEventListener(\"message\", onMessage, FALSE);\n\t\t\treturn function (fn) {\n\t\t\t\tvar uuid = functionUuid();\n\t\t\t\tstorage[uuid] = fn;\n\t\t\t\tglobal.postMessage(uuid, \"*\")\n\t\t\t}\n\t\t}();\n\t\tif (!hasSetImmediate && \"onreadystatechange\" in (element = document.createElement(\"script\"))) return function (fn) {\n\t\t\telement.onreadystatechange = function () {\n\t\t\t\telement.onreadystatechange = NULL;\n\t\t\t\telement.parentNode.removeChild(element);\n\t\t\t\tfn()\n\t\t\t};\n\t\t\tdocument.body.appendChild(element)\n\t\t};\n\t\tfallback = hasSetImmediate ? setImmediate : setTimeout;\n\t\treturn function (fn) {\n\t\t\tfallback(fn)\n\t\t}\n\t}();\n\tsingletonEvent = function () {\n\t\tfunction addListener(type, events, callback) {\n\t\t\tvar event, pointer;\n\t\t\tif (validatorIsTypeOf(events, STRING_STRING) && validatorIsTypeOf(callback, STRING_FUNCTION)) {\n\t\t\t\tevents = events.split(\" \");\n\t\t\t\twhile (event = events.shift()) {\n\t\t\t\t\tevent = event.split(\":\");\n\t\t\t\t\tif (regexMatchEvent.test(event[0])) {\n\t\t\t\t\t\t(listener[event[0]] || (listener[event[0]] = {\n\t\t\t\t\t\t\ton: [],\n\t\t\t\t\t\t\tafter: []\n\t\t\t\t\t\t}))[type].push({\n\t\t\t\t\t\t\tcallback: callback,\n\t\t\t\t\t\t\tfilter: event[1]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (type === TYPE_ON && event[0] === EVENT_POST_CONFIGURE && (pointer = settings.modules[event[1]])) callback(pointer)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfunction Event() {}\n\t\tvar TYPE_ON = \"on\",\n\t\t\tTYPE_AFTER = \"after\",\n\t\t\tregexMatchEvent = /^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)$/,\n\t\t\tlistener = {};\n\t\tEvent.prototype = {\n\t\t\temit: function (event, filter) {\n\t\t\t\tvar parameter, i, item, pointer = listener[event];\n\t\t\t\tif (pointer) {\n\t\t\t\t\tparameter = functionToArray(arguments, 2);\n\t\t\t\t\tfor (i = 0; item = pointer[TYPE_ON][i]; i++)\n\t\t\t\t\t\tif (!item.filter || item.filter === filter) item.callback.apply(NULL, parameter);\n\t\t\t\t\tfor (i = 0; item = pointer[TYPE_AFTER][i]; i++)\n\t\t\t\t\t\tif (!item.filter || item.filter === filter) item.callback.apply(NULL, parameter)\n\t\t\t\t}\n\t\t\t\treturn this\n\t\t\t},\n\t\t\ton: function (events, callback) {\n\t\t\t\taddListener(TYPE_ON, events, callback);\n\t\t\t\treturn this\n\t\t\t},\n\t\t\tafter: function (events, callback) {\n\t\t\t\taddListener(TYPE_AFTER, events, callback);\n\t\t\t\treturn this\n\t\t\t}\n\t\t};\n\t\treturn new Event\n\t}();\n\tClassWeakmap = \"WeakMap\" in global ? global.WeakMap : function () {\n\t\tfunction getEntry(context, key) {\n\t\t\tvar entry;\n\t\t\tif ((entry = key[context.id]) && entry[0] === key) return entry\n\t\t}\n\n\t\tfunction ClassWeakmap() {\n\t\t\tthis.define(\"id\", prefix + functionUuid())\n\t\t}\n\t\tvar prefix = \"weakmap-\";\n\t\tClassWeakmap.prototype = {\n\t\t\tset: function (key, value) {\n\t\t\t\tvar entry = getEntry(this, key);\n\t\t\t\tif (entry) entry[1] = value;\n\t\t\t\telse key.define(this.id, [key, value]);\n\t\t\t\treturn this\n\t\t\t},\n\t\t\tget: function (key) {\n\t\t\t\tvar entry = getEntry(this, key);\n\t\t\t\tif (entry) return entry[1]\n\t\t\t},\n\t\t\tdelete: function (key) {\n\t\t\t\tvar entry = getEntry(this, key);\n\t\t\t\tif (entry) {\n\t\t\t\t\tentry.length = 0;\n\t\t\t\t\tdelete key[this.id]\n\t\t\t\t}\n\t\t\t},\n\t\t\thas: function (key) {\n\t\t\t\treturn !!getEntry(this, key)\n\t\t\t}\n\t\t};\n\t\treturn ClassWeakmap\n\t}();\n\tClassQueue = function () {\n\t\tfunction ClassQueue() {\n\t\t\tvar self = AbstractUuid.call(this);\n\t\t\tstorage.set(self, []);\n\t\t\treturn self\n\t\t}\n\t\tvar storage = new ClassWeakmap;\n\t\tClassQueue.prototype = {\n\t\t\tenqueue: function () {\n\t\t\t\tvar items = functionToArray(arguments);\n\t\t\t\tstorage.set(this, storage.get(this)\n\t\t\t\t\t.concat(items));\n\t\t\t\tsingletonEvent.emit(EVENT_QUEUE_ENQUEUE, this.uuid, items)\n\t\t\t},\n\t\t\tdequeue: function () {\n\t\t\t\tvar item = storage.get(this)\n\t\t\t\t\t.shift();\n\t\t\t\tsingletonEvent.emit(EVENT_QUEUE_DEQUEUE, this.uuid, item);\n\t\t\t\treturn item\n\t\t\t},\n\t\t\tget current() {\n\t\t\t\treturn storage.get(this)[0]\n\t\t\t},\n\t\t\tget length() {\n\t\t\t\treturn storage.get(this)\n\t\t\t\t\t.length\n\t\t\t}\n\t\t};\n\t\treturn ClassQueue.extends(AbstractUuid)\n\t}();\n\tfunctionIdle = function () {\n\t\tfunction onVisibilitychange(event) {\n\t\t\tvar fn;\n\t\t\tif (queue.length && (\"visibilitychange\" !== event.type || \"hidden\" === document.visibilityState)) {\n\t\t\t\tcurrent = cancelIdleCallback(current);\n\t\t\t\tdo {\n\t\t\t\t\tfn && fn()\n\t\t\t\t} while (fn = queue.dequeue())\n\t\t\t}\n\t\t}\n\n\t\tfunction requestIdleCallbackShim(fn, options) {\n\t\t\tvar start = +new Date;\n\t\t\treturn setTimeout(function () {\n\t\t\t\tfn({\n\t\t\t\t\tdidTimeout: FALSE,\n\t\t\t\t\ttimeRemaining: function () {\n\t\t\t\t\t\treturn Math.max(0, 50 - (+new Date - start))\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}, options && options.timeout)\n\t\t}\n\n\t\tfunction cancelIdleCallbackShim(id) {\n\t\t\tclearTimeout(id)\n\t\t}\n\n\t\tfunction process() {\n\t\t\tqueue.dequeue()();\n\t\t\tcurrent = queue.length && requestIdleCallback(process)\n\t\t}\n\t\tvar current, eventName = \"object\" === typeof global.safari && global.safari.pushNotification ? \"beforeunload\" : \"visibilitychange\",\n\t\t\trequestIdleCallback = global.requestIdleCallback || requestIdleCallbackShim,\n\t\t\tcancelIdleCallback = global.cancelIdleCallback || cancelIdleCallbackShim,\n\t\t\tqueue = new ClassQueue;\n\t\tglobal.addEventListener(eventName, onVisibilitychange, TRUE);\n\t\treturn function (fn, delay) {\n\t\t\tqueue.enqueue(fn);\n\t\t\t!current && queue.length && (current = requestIdleCallback(process, {\n\t\t\t\ttimeout: delay\n\t\t\t}))\n\t\t}\n\t}();\n\tfunctionEscapeRegex = function () {\n\t\tvar regexMatchRegex = /[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g;\n\t\treturn function (value) {\n\t\t\treturn value.replace(regexMatchRegex, \"\\\\$&\")\n\t\t}\n\t}();\n\tregexIsAbsoluteUri = /^(http(s?):)?\\/\\//i, regexIsAbsolutePath = /^\\//, regexMatchSourcemap = /((?:\\/\\/|\\/\\*)#)\\s*(sourceMappingURL)\\s*=\\s*(?!(?:http[s]?:)?\\/\\/)(.+?)\\.map(?:\\s+)?(\\*\\/)?/g, regexMatchBaseUrl = new RegExp(\"^\" + functionEscapeRegex(functionResolveUrl(\"/\"))), regexMatchInternal = new RegExp(\"^\" + DEMAND_ID + \"|\" + PROVIDE_ID + \"|\" + PATH_ID + \"$\"), regexMatchParameter = /^(mock:)?([+-])?((?:[-\\w]+\\/?)+)?(?:@(.+?))?(?:#(\\d+))?!/;\n\tClassSemver = function () {\n\t\tfunction parse(version) {\n\t\t\tvar temp, parts = version.split(\"-\"),\n\t\t\t\ti = 0;\n\t\t\tparts = !parts[1] ? parts[0].split(\".\") : Array.prototype.concat(parts[0].split(\".\"), parts[1].split(\".\"));\n\t\t\tfor (; temp = parts[i]; i++) parts[i] = parseInt(temp, 10)\n\t\t\t\t.toString() === temp ? parseInt(temp, 10) : temp;\n\t\t\treturn parts\n\t\t}\n\n\t\tfunction compareLevel(a, b) {\n\t\t\treturn a < b ? -1 : a > b ? 1 : 0\n\t\t}\n\n\t\tfunction compareIdentifier(a, b) {\n\t\t\tvar pa, pb, tpa, tpb, i = 0;\n\t\t\tif (a.length && !b.length) return -1;\n\t\t\telse if (!a.length && b.length) return 1;\n\t\t\telse if (!a.length && !b.length) return 0;\n\t\t\tdo {\n\t\t\t\tpa = a[i];\n\t\t\t\ttpb = typeof (pb = b[i]);\n\t\t\t\tif ((tpa = typeof pa) === STRING_UNDEFINED && tpb === STRING_UNDEFINED) return 0;\n\t\t\t\telse if (tpb === STRING_UNDEFINED) return 1;\n\t\t\t\telse if (tpa === STRING_UNDEFINED) return -1;\n\t\t\t\telse if (pa === pb);\n\t\t\t\telse if (tpa === STRING_STRING && tpb !== STRING_STRING) return 1;\n\t\t\t\telse if (tpa !== STRING_STRING && tpb === STRING_STRING) return -1;\n\t\t\t\telse if (pa > pb) return 1;\n\t\t\t\telse if (pa < pb) return -1\n\t\t\t} while (++i)\n\t\t}\n\n\t\tfunction ClassSemver(version) {\n\t\t\tif (!validatorIsSemver(version)) throw new TypeError('\"version\" must be a valid semver version string');\n\t\t\tversion = parse(version);\n\t\t\tthis.major = version.slice(0, 1);\n\t\t\tthis.minor = version.slice(1, 2);\n\t\t\tthis.patch = version.slice(2, 3);\n\t\t\tthis.identifier = version.slice(3)\n\t\t}\n\t\tClassSemver.prototype = {\n\t\t\ttoString: function () {\n\t\t\t\treturn this.major + \".\" + this.minor + \".\" + this.patch + (this.identifier.length ? \"-\" + this.identifier.join(\".\") : \"\")\n\t\t\t},\n\t\t\tcompare: function (version) {\n\t\t\t\treturn compareLevel(this.major, version.major) || compareLevel(this.minor, version.minor) || compareLevel(this.patch, version.patch) || compareIdentifier(this.identifier, version.identifier)\n\t\t\t}\n\t\t};\n\t\treturn ClassSemver\n\t}();\n\tsingletonCache = function () {\n\t\tfunction enabled(dependency) {\n\t\t\tvar match;\n\t\t\tif (dependency.cache !== NULL) return dependency.cache;\n\t\t\tfunctionIterate(settings.cache, function (property, value) {\n\t\t\t\tif (0 === dependency.path.indexOf(property) && (!match || value.weight > match.weight)) match = value\n\t\t\t});\n\t\t\treturn match ? match.state : FALSE\n\t\t}\n\n\t\tfunction getKey(key) {\n\t\t\treturn localStorage.getItem(key)\n\t\t}\n\n\t\tfunction setKey(key, value) {\n\t\t\tlocalStorage[value ? \"setItem\" : \"removeItem\"](key, value)\n\t\t}\n\n\t\tfunction getState(key) {\n\t\t\tvar matches, state = getKey(key);\n\t\t\tif (state && (matches = state.match(regexMatchProperties))) return functionToArray(matches, 1)\n\t\t}\n\n\t\tfunction setState(key, state) {\n\t\t\tstate[4] = functionGetTimestamp();\n\t\t\tsetKey(key, state.join(\",\"))\n\t\t}\n\n\t\tfunction emit(event, dependency, state) {\n\t\t\tsingletonEvent.emit(event, dependency.id, dependency, state)\n\t\t}\n\n\t\tfunction Cache() {\n\t\t\tfunctionIdle(this.clear.expired.bind(this.clear), settings.delay)\n\t\t}\n\t\tvar cache, STORAGE_PREFIX = \"[\" + DEMAND_ID + \"]\",\n\t\t\tSTORAGE_SUFFIX_STATE = \"[state]\",\n\t\t\tSTORAGE_SUFFIX_VALUE = \"[value]\",\n\t\t\tregexMatchState = new RegExp(\"^\" + functionEscapeRegex(STORAGE_PREFIX) + \"\\\\[(.+?)\\\\]\" + functionEscapeRegex(STORAGE_SUFFIX_STATE) + \"$\"),\n\t\t\tregexMatchProperties = /^(.+?),(\\d+),(\\d*),(.+?),(\\d+)$/,\n\t\t\tsupportsLocalStorage = function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn \"localStorage\" in global && global.localStorage\n\t\t\t\t} catch (exception) {\n\t\t\t\t\treturn FALSE\n\t\t\t\t}\n\t\t\t}(),\n\t\t\tlocalStorage = supportsLocalStorage ? global.localStorage : NULL,\n\t\t\tsupportsRemainingSpace = supportsLocalStorage && \"remainingSpace\" in localStorage,\n\t\t\tstorage = {};\n\t\tsingletonEvent.on(EVENT_CACHE_MISS, function (dependency) {\n\t\t\t\tfunctionIdle(function () {\n\t\t\t\t\tcache.clear(dependency.id)\n\t\t\t\t})\n\t\t\t})\n\t\t\t.on(EVENT_CACHE_EXCEED, function (dependency) {\n\t\t\t\tdemand(\"-!/\" + DEMAND_ID + \"/cache/dispose\")\n\t\t\t\t\t.then(function (cacheDispose) {\n\t\t\t\t\t\tfunctionIdle(function () {\n\t\t\t\t\t\t\tcacheDispose(dependency.source.length);\n\t\t\t\t\t\t\tcache.set(dependency)\n\t\t\t\t\t\t}, settings.delay)\n\t\t\t\t\t})\n\t\t\t})\n\t\t\t.on(EVENT_POST_REQUEST, function (dependency) {\n\t\t\t\tif (dependency.source && enabled(dependency)) storage[dependency.id] = TRUE\n\t\t\t})\n\t\t\t.after(EVENT_POST_PROCESS, function (dependency) {\n\t\t\t\tif (storage[dependency.id]) functionIdle(function () {\n\t\t\t\t\tcache.set(dependency)\n\t\t\t\t}, settings.delay)\n\t\t\t});\n\t\tCache.prototype = {\n\t\t\tget: supportsLocalStorage ? function (dependency) {\n\t\t\t\tvar id, state;\n\t\t\t\tif (enabled(dependency)) {\n\t\t\t\t\tid = STORAGE_PREFIX + \"[\" + dependency.id + \"]\";\n\t\t\t\t\tif (!(state = getState(id + STORAGE_SUFFIX_STATE))) return;\n\t\t\t\t\tif (1 === dependency.version.compare(new ClassSemver(state[0])) || state[2] && dependency.lifetime && state[2] <= functionGetTimestamp()) {\n\t\t\t\t\t\tdependency.invalid = true;\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\tdependency.source = getKey(id + STORAGE_SUFFIX_VALUE);\n\t\t\t\t\tfunctionIdle(function () {\n\t\t\t\t\t\tsetState(id + STORAGE_SUFFIX_STATE, state)\n\t\t\t\t\t}, settings.delay);\n\t\t\t\t\treturn TRUE\n\t\t\t\t}\n\t\t\t} : function () {},\n\t\t\tresolve: supportsLocalStorage ? function (dependency) {\n\t\t\t\tif (this.get(dependency)) emit(EVENT_CACHE_HIT, dependency);\n\t\t\t\telse emit(EVENT_CACHE_MISS, dependency)\n\t\t\t} : function (dependency) {\n\t\t\t\temit(EVENT_CACHE_MISS, dependency)\n\t\t\t},\n\t\t\tset: supportsLocalStorage ? function (dependency) {\n\t\t\t\tvar state, id, spaceBefore;\n\t\t\t\tif (enabled(dependency)) {\n\t\t\t\t\tstate = [dependency.version, dependency.source.length, dependency.lifetime ? functionGetTimestamp() + dependency.lifetime : NULL, demand.version];\n\t\t\t\t\tid = STORAGE_PREFIX + \"[\" + dependency.id + \"]\";\n\t\t\t\t\temit(EVENT_PRE_CACHE, dependency, state);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tspaceBefore = supportsRemainingSpace ? localStorage.remainingSpace : NULL;\n\t\t\t\t\t\tsetKey(id + STORAGE_SUFFIX_VALUE, dependency.source);\n\t\t\t\t\t\tsetState(id + STORAGE_SUFFIX_STATE, state);\n\t\t\t\t\t\tif (spaceBefore !== NULL && localStorage.remainingSpace === spaceBefore) throw new Error;\n\t\t\t\t\t\temit(EVENT_POST_CACHE, dependency, state)\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\temit(EVENT_CACHE_EXCEED, dependency)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} : function () {},\n\t\t\tclear: supportsLocalStorage ? function (path) {\n\t\t\t\tvar id = functionResolveId(path),\n\t\t\t\t\tkey = STORAGE_PREFIX + \"[\" + id + \"]\";\n\t\t\t\tif (getKey(key + STORAGE_SUFFIX_STATE)) {\n\t\t\t\t\tsetKey(key + STORAGE_SUFFIX_STATE);\n\t\t\t\t\tsetKey(key + STORAGE_SUFFIX_VALUE);\n\t\t\t\t\temit(EVENT_CACHE_CLEAR, ClassDependency.get(id) || new ClassDependency(id, NULL, FALSE))\n\t\t\t\t}\n\t\t\t} : function () {}\n\t\t};\n\t\tCache.prototype.clear.all = supportsLocalStorage ? function () {\n\t\t\tvar match;\n\t\t\tfunctionIterate(localStorage, function (property) {\n\t\t\t\t(match = property.match(regexMatchState)) && this(match[1])\n\t\t\t}, this)\n\t\t} : function () {};\n\t\tCache.prototype.clear.expired = supportsLocalStorage ? function () {\n\t\t\tvar match, state;\n\t\t\tfunctionIterate(localStorage, function (property) {\n\t\t\t\tif (match = property.match(regexMatchState))\n\t\t\t\t\tif ((state = getState(STORAGE_PREFIX + \"[\" + match[1] + \"]\" + STORAGE_SUFFIX_STATE)) && state[2] > 0 && state[2] <= functionGetTimestamp()) this(match[1])\n\t\t\t}, this)\n\t\t} : function () {};\n\t\treturn cache = new Cache\n\t}();\n\tClassPledge = function () {\n\t\tfunction resolve() {\n\t\t\tstorage.get(this)\n\t\t\t\t.handle(PLEDGE_RESOLVED, arguments)\n\t\t}\n\n\t\tfunction reject() {\n\t\t\tstorage.get(this)\n\t\t\t\t.handle(PLEDGE_REJECTED, arguments)\n\t\t}\n\n\t\tfunction handle(state, parameter) {\n\t\t\tvar pointer, result, properties = storage.get(this);\n\t\t\tif (properties.state === PLEDGE_PENDING) {\n\t\t\t\tproperties.state = state;\n\t\t\t\tproperties.value = parameter\n\t\t\t}\n\t\t\twhile (pointer = properties[properties.state].shift())\n\t\t\t\tif ((result = pointer.handler.apply(NULL, properties.value)) && \"function\" === typeof result.then) result.then(pointer.dfd.resolve, pointer.dfd.reject);\n\t\t\t\telse pointer.dfd[properties.state === PLEDGE_RESOLVED ? \"resolve\" : \"reject\"].apply(NULL, properties.value);\n\t\t\tproperties[PLEDGE_RESOLVED].length = 0;\n\t\t\tproperties[PLEDGE_REJECTED].length = 0\n\t\t}\n\n\t\tfunction observe(pledge, index, properties) {\n\t\t\tpledge.then(function () {\n\t\t\t\tproperties.resolved[index] = functionToArray(arguments);\n\t\t\t\tproperties.count++;\n\t\t\t\tcheck(properties)\n\t\t\t}, function () {\n\t\t\t\tproperties.rejected.push(functionToArray(arguments));\n\t\t\t\tcheck(properties)\n\t\t\t})\n\t\t}\n\n\t\tfunction check(properties) {\n\t\t\tif (properties.count === properties.total) properties.dfd.resolve.apply(NULL, arrayPrototypeConcat.apply([], properties.resolved));\n\t\t\telse if (properties.rejected.length + properties.count === properties.total) properties.dfd.reject.apply(NULL, arrayPrototypeConcat.apply([], properties.rejected))\n\t\t}\n\n\t\tfunction ClassPledge(executor) {\n\t\t\tvar self = this;\n\t\t\tstorage.set(self, {\n\t\t\t\tstate: PLEDGE_PENDING,\n\t\t\t\thandle: handle.bind(self),\n\t\t\t\tvalue: NULL,\n\t\t\t\tresolved: [],\n\t\t\t\trejected: [],\n\t\t\t\tcount: 0\n\t\t\t});\n\t\t\texecutor(resolve.bind(self), reject.bind(self));\n\t\t\treturn self\n\t\t}\n\t\tvar PLEDGE_PENDING = \"pending\",\n\t\t\tPLEDGE_RESOLVED = \"resolved\",\n\t\t\tPLEDGE_REJECTED = \"rejected\",\n\t\t\tstorage = new ClassWeakmap;\n\t\tClassPledge.prototype = {\n\t\t\tcatch: function (listener) {\n\t\t\t\treturn this.then(function () {}, listener)\n\t\t\t},\n\t\t\talways: function (alwaysListener) {\n\t\t\t\treturn this.then(alwaysListener, alwaysListener)\n\t\t\t},\n\t\t\tthen: function (resolveListener, rejectListener) {\n\t\t\t\tvar properties = storage.get(this),\n\t\t\t\t\tdfd = ClassPledge.defer();\n\t\t\t\tresolveListener && properties[PLEDGE_RESOLVED].push({\n\t\t\t\t\thandler: resolveListener,\n\t\t\t\t\tdfd: dfd\n\t\t\t\t});\n\t\t\t\trejectListener && properties[PLEDGE_REJECTED].push({\n\t\t\t\t\thandler: rejectListener,\n\t\t\t\t\tdfd: dfd\n\t\t\t\t});\n\t\t\t\tif (properties.state !== PLEDGE_PENDING) functionDefer(properties.handle);\n\t\t\t\treturn dfd.pledge\n\t\t\t},\n\t\t\tisPending: function () {\n\t\t\t\treturn storage.get(this)\n\t\t\t\t\t.state === PLEDGE_PENDING\n\t\t\t},\n\t\t\tisResolved: function () {\n\t\t\t\treturn storage.get(this)\n\t\t\t\t\t.state === PLEDGE_RESOLVED\n\t\t\t},\n\t\t\tisRejected: function () {\n\t\t\t\treturn storage.get(this)\n\t\t\t\t\t.state === PLEDGE_REJECTED\n\t\t\t}\n\t\t};\n\t\tClassPledge.defer = function () {\n\t\t\tvar self = {};\n\t\t\tself.pledge = new ClassPledge(function (resolveListener, rejectListener) {\n\t\t\t\tself.resolve = resolveListener;\n\t\t\t\tself.reject = rejectListener\n\t\t\t});\n\t\t\treturn self\n\t\t};\n\t\tClassPledge.all = function (pledges) {\n\t\t\tvar properties, pledge, dfd = ClassPledge.defer(),\n\t\t\t\ti = 0;\n\t\t\tif (pledges.length) {\n\t\t\t\tproperties = {\n\t\t\t\t\tdfd: dfd,\n\t\t\t\t\tresolved: [],\n\t\t\t\t\trejected: [],\n\t\t\t\t\ttotal: pledges.length,\n\t\t\t\t\tcount: 0\n\t\t\t\t};\n\t\t\t\tfor (; pledge = pledges[i]; i++) observe(pledge, i, properties)\n\t\t\t} else dfd.resolve();\n\t\t\treturn dfd.pledge\n\t\t};\n\t\tClassPledge.race = function (pledges) {\n\t\t\tfor (var pledge, dfd = ClassPledge.defer(), i = 0; pledge = pledges[i]; i++) pledge.then(dfd.resolve, dfd.reject);\n\t\t\tif (!pledges.length) dfd.resolve();\n\t\t\treturn dfd.pledge\n\t\t};\n\t\treturn ClassPledge\n\t}();\n\tClassRegistry = function () {\n\t\tfunction ClassRegistry() {\n\t\t\tstorage.set(this, {})\n\t\t}\n\t\tvar storage = new ClassWeakmap;\n\t\tClassRegistry.prototype = {\n\t\t\tget: function (key) {\n\t\t\t\treturn key ? storage.get(this)[key] : storage.get(this)\n\t\t\t},\n\t\t\tset: function (key, value) {\n\t\t\t\tstorage.get(this)[key] = value\n\t\t\t},\n\t\t\tremove: function (key) {\n\t\t\t\tdelete storage.get(this)[key]\n\t\t\t}\n\t\t};\n\t\treturn ClassRegistry\n\t}();\n\tClassFailure.prototype = {\n\t\ttoString: function () {\n\t\t\tvar self = this,\n\t\t\t\tresult = DEMAND_ID + \": \" + self.message + \" \" + (self.module ? '\"' + self.module + '\"' : \"\");\n\t\t\tif (self.stack) result = ClassFailure.traverse(self.stack, result, 1);\n\t\t\treturn result\n\t\t}\n\t};\n\tClassFailure.traverse = function (stack, value, depth) {\n\t\tfor (var item, indention = new Array(depth + 1)\n\t\t\t\t.join(\" \"), i = 0; item = stack[i]; i++) {\n\t\t\tvalue += \"\\n\" + indention + \"> \" + item.message + \" \" + (item.module ? '\"' + item.module + '\"' : \"\");\n\t\t\tif (item.stack) value = ClassFailure.traverse(item.stack, value, depth + 1)\n\t\t}\n\t\treturn value\n\t};\n\tClassDependency = function () {\n\t\tfunction setProperty(property, value) {\n\t\t\tthis[property] = value\n\t\t}\n\n\t\tfunction add(id) {\n\t\t\tif (!matchInternal.test(id)) this.push(id)\n\t\t}\n\n\t\tfunction addPending(id, dependency) {\n\t\t\tif (!matchInternal.test(id) && dependency.pledge.isPending()) this.push(id)\n\t\t}\n\n\t\tfunction addResolved(id, dependency) {\n\t\t\tif (!matchInternal.test(id) && dependency.pledge.isResolved()) this.push(id)\n\t\t}\n\n\t\tfunction addRejected(id, dependency) {\n\t\t\tif (!matchInternal.test(id) && dependency.pledge.isRejected()) this.push(id)\n\t\t}\n\n\t\tfunction list() {\n\t\t\treturn functionIterate(registry.get(), add, [])\n\t\t}\n\n\t\tfunction ClassDependency(uri, context, register) {\n\t\t\tvar self = this,\n\t\t\t\tparameter = uri.match(regexMatchParameter) || placeholder;\n\t\t\tself.path = functionResolvePath(uri, context);\n\t\t\tself.mock = parameter[1] ? TRUE : FALSE;\n\t\t\tself.cache = parameter[2] ? \"+\" === parameter[1] : NULL;\n\t\t\tself.type = parameter[3] || settings.handler;\n\t\t\tself.version = new ClassSemver(parameter[4] || settings.version);\n\t\t\tself.lifetime = parameter[5] && 1e3 * parameter[5] || settings.lifetime;\n\t\t\tself.id = (self.mock ? MOCK_PREFIX : \"\") + self.type + \"!\" + self.path;\n\t\t\tself.uri = (self.mock ? MOCK_PREFIX : \"\") + self.type + \"@\" + self.version + (validatorIsPositive(self.lifetime) && self.lifetime > 0 ? \"#\" + self.lifetime : \"\") + \"!\" + self.path;\n\t\t\tself.dfd = ClassPledge.defer();\n\t\t\tself.pledge = self.dfd.pledge;\n\t\t\tself.invalid = false;\n\t\t\tself.pledge.then(function () {\n\t\t\t\tself.value = functionToArray(arguments)\n\t\t\t});\n\t\t\tregister !== FALSE && registry.set(self.id, self);\n\t\t\treturn self\n\t\t}\n\t\tvar PREFIX_INTERNAL = \"internal!\",\n\t\t\tregistry = new ClassRegistry,\n\t\t\tmatchInternal = /^(?:mock:|internal!)/i,\n\t\t\tplaceholder = [];\n\t\tlist.pending = function () {\n\t\t\treturn functionIterate(registry.get(), addPending, [])\n\t\t};\n\t\tlist.resolved = function () {\n\t\t\treturn functionIterate(registry.get(), addResolved, [])\n\t\t};\n\t\tlist.rejected = function () {\n\t\t\treturn functionIterate(registry.get(), addRejected, [])\n\t\t};\n\t\tClassDependency.prototype = {\n\t\t\tenqueue: true\n\t\t};\n\t\tClassDependency.get = function (uri, context) {\n\t\t\treturn registry.get(functionResolveId(uri, context))\n\t\t};\n\t\tClassDependency.resolve = function (uri, context) {\n\t\t\tvar value, isInternal = context && regexMatchInternal.test(uri),\n\t\t\t\tdependency = isInternal ? this.get(PREFIX_INTERNAL + context + \"/\" + uri) : this.get(uri, context);\n\t\t\tif (!dependency)\n\t\t\t\tif (isInternal) {\n\t\t\t\t\tdependency = new ClassDependency(PREFIX_INTERNAL + context + \"/\" + uri);\n\t\t\t\t\tswitch (uri) {\n\t\t\t\t\tcase DEMAND_ID:\n\t\t\t\t\t\tvalue = function () {\n\t\t\t\t\t\t\treturn functionIterate(demand, setProperty, demand.bind(context))\n\t\t\t\t\t\t}();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PROVIDE_ID:\n\t\t\t\t\t\tvalue = provide.bind(context);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PATH_ID:\n\t\t\t\t\t\tvalue = context\n\t\t\t\t\t}\n\t\t\t\t\tdependency.dfd.resolve(value)\n\t\t\t\t} else {\n\t\t\t\t\tdependency = new ClassDependency(uri, context);\n\t\t\t\t\tdemand(MODULE_PREFIX_HANDLER + dependency.type)\n\t\t\t\t\t\t.then(function (handler) {\n\t\t\t\t\t\t\tdependency.handler = handler;\n\t\t\t\t\t\t\tif (dependency.mock) dependency.dfd.resolve(handler);\n\t\t\t\t\t\t\telse singletonCache.resolve(dependency)\n\t\t\t\t\t\t}, function () {\n\t\t\t\t\t\t\tdependency.dfd.reject(new ClassFailure(ERROR_LOAD + \" (handler)\", self.id))\n\t\t\t\t\t\t})\n\t\t\t\t} return dependency\n\t\t};\n\t\tClassDependency.remove = function (uri, context, cache) {\n\t\t\tvar id = functionResolveId(uri, context),\n\t\t\t\tnode = document.querySelector(\"[\" + DEMAND_ID + '-id=\"' + id + '\"]');\n\t\t\tregistry.remove(id);\n\t\t\tregistry.remove(MOCK_PREFIX + id);\n\t\t\tnode && node.parentNode.removeChild(node);\n\t\t\tcache !== FALSE && singletonCache.clear(id)\n\t\t};\n\t\tClassDependency.list = list;\n\t\treturn ClassDependency\n\t}();\n\tClassPattern = function () {\n\t\tfunction setProperty(property, value) {\n\t\t\tthis[property] = {\n\t\t\t\turl: functionResolveUrl(value)\n\t\t\t\t\t.replace(regexMatchTrailingSlash, \"$1\"),\n\t\t\t\tmatch: new RegExp(\"^\" + functionEscapeRegex(value))\n\t\t\t}\n\t\t}\n\n\t\tfunction ClassPattern(pattern, url) {\n\t\t\tvar self = this;\n\t\t\tself.weight = pattern.length;\n\t\t\tself.match = new RegExp(\"^\" + functionEscapeRegex(pattern));\n\t\t\tself.location = [].concat(url);\n\t\t\tfunctionIterate(self.location, setProperty, self.location)\n\t\t}\n\t\tvar regexMatchTrailingSlash = /(.+)\\/$/;\n\t\tClassPattern.prototype = {\n\t\t\tmatches: function (path) {\n\t\t\t\treturn this.match.test(path)\n\t\t\t},\n\t\t\tprocess: function (path, index) {\n\t\t\t\tvar current = this.location[index];\n\t\t\t\tif (current) return path.replace(this.match, current.url)\n\t\t\t}\n\t\t};\n\t\treturn ClassPattern\n\t}();\n\tClassXhr = function (XMLHttpRequest) {\n\t\tfunction checkState() {\n\t\t\tif (this.readyState < 4) this.abort()\n\t\t}\n\t\tvar XDomainRequest = \"XDomainRequest\" in global && global.XDomainRequest || XMLHttpRequest;\n\t\treturn function (url) {\n\t\t\tvar pointer, dfd = ClassPledge.defer(),\n\t\t\t\txhr = regexMatchBaseUrl.test(url) ? new XMLHttpRequest : new XDomainRequest,\n\t\t\t\tboundCheckState = checkState.bind(xhr),\n\t\t\t\ttimeout = settings.timeout;\n\t\t\txhr.ontimeout = xhr.onerror = xhr.onabort = function () {\n\t\t\t\tdfd.reject(xhr.status)\n\t\t\t};\n\t\t\txhr.onprogress = xhr.onreadystatechange = function () {\n\t\t\t\tclearTimeout(pointer);\n\t\t\t\tpointer = setTimeout(boundCheckState, timeout)\n\t\t\t};\n\t\t\txhr.onload = function () {\n\t\t\t\tpointer = clearTimeout(pointer);\n\t\t\t\tif (!(\"status\" in xhr) || 200 === xhr.status) dfd.resolve(xhr.responseText, xhr.getResponseHeader && xhr.getResponseHeader(\"content-type\"));\n\t\t\t\telse dfd.reject(xhr.status)\n\t\t\t};\n\t\t\txhr.open(\"GET\", url, TRUE);\n\t\t\txhr.send();\n\t\t\tpointer = setTimeout(boundCheckState, timeout);\n\t\t\treturn dfd.pledge\n\t\t}\n\t}(XMLHttpRequest);\n\tdemand = function () {\n\t\tfunction updateCacheSettings(property, value) {\n\t\t\tthis[property] = {\n\t\t\t\tweight: property.length,\n\t\t\t\tstate: value\n\t\t\t}\n\t\t}\n\n\t\tfunction updatePatternSettings(property, value) {\n\t\t\t\"base\" !== property && (this[property] = new ClassPattern(property, value))\n\t\t}\n\n\t\tfunction updateModuleSettings(property, value) {\n\t\t\tvar temp = this[property] = this[property] || {};\n\t\t\tsingletonEvent.emit(EVENT_PRE_CONFIGURE, property, temp);\n\t\t\tfunctionMerge(temp, value);\n\t\t\tsingletonEvent.emit(EVENT_POST_CONFIGURE, property, temp)\n\t\t}\n\n\t\tfunction demand() {\n\t\t\tvar uri, dfd, result, dependencies = functionToArray(arguments),\n\t\t\t\tcontext = this !== global ? this : NULL,\n\t\t\t\ti = 0;\n\t\t\tsingletonEvent.emit(EVENT_PRE_RESOLVE, NULL, dependencies, context);\n\t\t\tfor (; uri = dependencies[i]; i++)\n\t\t\t\tif (validatorIsTypeOf(uri, STRING_STRING)) dependencies[i] = ClassDependency.resolve(uri, context)\n\t\t\t\t\t.pledge;\n\t\t\t\telse {\n\t\t\t\t\tdependencies[i] = (dfd = ClassPledge.defer())\n\t\t\t\t\t\t.pledge;\n\t\t\t\t\tdfd.resolve(uri)\n\t\t\t\t} if (dependencies.length > 1) result = ClassPledge.all(dependencies);\n\t\t\telse result = dependencies[0];\n\t\t\treturn result.always(function () {\n\t\t\t\tsingletonEvent.emit(EVENT_POST_RESOLVE, NULL, dependencies, context)\n\t\t\t})\n\t\t}\n\t\tdemand.configure = function (options) {\n\t\t\tvar cache = options.cache,\n\t\t\t\tversion = options.version,\n\t\t\t\tdelay = options.delay,\n\t\t\t\ttimeout = options.timeout,\n\t\t\t\tlifetime = options.lifetime,\n\t\t\t\tbase = options.base,\n\t\t\t\tpattern = options.pattern,\n\t\t\t\tmodules = options.modules,\n\t\t\t\tpointer = settings.modules;\n\t\t\tif (validatorIsTypeOf(cache, STRING_BOOLEAN)) settings.cache[\"\"] = {\n\t\t\t\tweight: 0,\n\t\t\t\tstate: cache\n\t\t\t};\n\t\t\telse if (validatorIsObject(cache)) functionIterate(cache, updateCacheSettings, settings.cache);\n\t\t\tif (validatorIsSemver(version)) settings.version = version;\n\t\t\tif (validatorIsPositive(delay)) settings.delay = 1e3 * delay;\n\t\t\tif (validatorIsPositive(timeout)) settings.timeout = 1e3 * Math.min(Math.max(timeout, 2), 20);\n\t\t\tif (validatorIsPositive(lifetime) && lifetime > 0) settings.lifetime = 1e3 * lifetime;\n\t\t\tif (validatorIsTypeOf(base, STRING_STRING) && \"\" !== base) settings.pattern.base = new ClassPattern(\"\", base);\n\t\t\tif (validatorIsObject(pattern)) functionIterate(pattern, updatePatternSettings, settings.pattern);\n\t\t\tif (validatorIsObject(modules)) functionIterate(modules, updateModuleSettings, pointer);\n\t\t\treturn demand\n\t\t};\n\t\tdemand.version = \"5.2.0\";\n\t\tdemand.on = singletonEvent.on.bind(demand);\n\t\tdemand.get = function (uri, context) {\n\t\t\tvar dependency = ClassDependency.get(uri, context);\n\t\t\treturn dependency && dependency.value\n\t\t};\n\t\tdemand.list = ClassDependency.list;\n\t\tdemand.remove = ClassDependency.remove;\n\t\tdemand.cache = {\n\t\t\tclear: singletonCache.clear\n\t\t};\n\t\tsingletonEvent.after(EVENT_CACHE_MISS, function (dependency) {\n\t\t\t\tnew ClassLoader(dependency)\n\t\t\t})\n\t\t\t.after(EVENT_POST_REQUEST, function (dependency) {\n\t\t\t\tvar pointer = dependency.handler.onPostRequest;\n\t\t\t\tpointer && pointer(dependency)\n\t\t\t})\n\t\t\t.after(EVENT_CACHE_HIT + \" \" + EVENT_POST_REQUEST, function (dependency) {\n\t\t\t\tsingletonEvent.emit(EVENT_PRE_PROCESS, dependency.id, dependency)\n\t\t\t})\n\t\t\t.after(EVENT_PRE_REQUEST, function (dependency) {\n\t\t\t\tvar pointer = dependency.handler.onPreRequest;\n\t\t\t\tpointer && pointer(dependency)\n\t\t\t})\n\t\t\t.after(EVENT_PRE_PROCESS, function (dependency) {\n\t\t\t\tvar pointer = dependency.handler.onPreProcess;\n\t\t\t\tpointer && pointer(dependency);\n\t\t\t\tdependency.pledge.then(function () {\n\t\t\t\t\tsingletonEvent.emit(EVENT_POST_PROCESS, dependency.id, dependency)\n\t\t\t\t});\n\t\t\t\tif (true === dependency.enqueue) queue.enqueue(dependency);\n\t\t\t\telse if (validatorIsInstanceOf(dependency.enqueue, ClassPledge)) dependency.enqueue.then(function () {\n\t\t\t\t\tqueue.enqueue(dependency)\n\t\t\t\t})\n\t\t\t});\n\t\treturn demand\n\t}();\n\tglobal.define(\"demand\", demand);\n\tprovide = function () {\n\t\tvar module, isFunction, uri = validatorIsTypeOf(arguments[0], STRING_STRING) ? arguments[0] : NULL,\n\t\t\tcontext = this !== global ? this : NULL,\n\t\t\tdependencies = validatorIsArray(arguments[uri ? 1 : 0]) ? arguments[uri ? 1 : 0] : NULL,\n\t\t\tdefinition = dependencies ? arguments[uri ? 2 : 1] : arguments[uri ? 1 : 0];\n\t\tif (!uri && processor.current) {\n\t\t\turi = (module = processor.current)\n\t\t\t\t.uri;\n\t\t\tprocessor.process()\n\t\t}\n\t\tif (uri) {\n\t\t\tmodule = module || new ClassDependency(uri, context);\n\t\t\tisFunction = validatorIsTypeOf(definition, STRING_FUNCTION);\n\t\t\tif (dependencies) demand.apply(module.path, dependencies)\n\t\t\t\t.then(function () {\n\t\t\t\t\tmodule.dfd.resolve(isFunction ? definition.apply(NULL, arguments) : definition)\n\t\t\t\t}, function () {\n\t\t\t\t\tmodule.dfd.reject(new ClassFailure(ERROR_PROVIDE, module.id, arguments))\n\t\t\t\t});\n\t\t\telse module.dfd.resolve(isFunction ? definition() : definition);\n\t\t\treturn module.dfd.pledge\n\t\t} else !validatorIsTypeOf(console, STRING_UNDEFINED) && console.error(new ClassFailure(ERROR_PROVIDE_ANONYMOUS))\n\t};\n\tglobal.define(\"provide\", provide);\n\tdemand.configure({\n\t\tcache: TRUE,\n\t\tbase: \"/\",\n\t\tpattern: {\n\t\t\t\"/demand\": functionResolveUrl((options && options.url || location.href) + \"/../\")\n\t\t\t\t.slice(0, -1)\n\t\t}\n\t});\n\toptions && options.settings && demand.configure(options.settings);\n\tClassProcessor = function () {\n\t\tfunction ClassProcessor(queue) {\n\t\t\tvar self = this,\n\t\t\t\tproperties = {\n\t\t\t\t\tqueue: queue,\n\t\t\t\t\tcurrent: NULL\n\t\t\t\t};\n\t\t\tstorage.set(self, properties);\n\t\t\tdemand.on(EVENT_QUEUE_ENQUEUE + \":\" + queue.uuid, function () {\n\t\t\t\t!properties.current && self.process()\n\t\t\t})\n\t\t}\n\t\tvar storage = new ClassWeakmap;\n\t\tClassProcessor.prototype = {\n\t\t\tprocess: function () {\n\t\t\t\tvar current, properties = storage.get(this);\n\t\t\t\tif (properties.queue.length)\n\t\t\t\t\tif (!(current = properties.current = properties.queue.dequeue())\n\t\t\t\t\t\t.pledge.isRejected()) {\n\t\t\t\t\t\tcurrent.handler.process && current.handler.process(current);\n\t\t\t\t\t\treturn\n\t\t\t\t\t} properties.current = NULL\n\t\t\t},\n\t\t\tget current() {\n\t\t\t\treturn storage.get(this)\n\t\t\t\t\t.current\n\t\t\t}\n\t\t};\n\t\treturn ClassProcessor\n\t}();\n\tabstractHandler.prototype = {\n\t\tvalidate: NULL,\n\t\tonPreRequest: NULL,\n\t\tonPostRequest: NULL,\n\t\tonPreProcess: NULL,\n\t\tprocess: NULL\n\t};\n\thandlerModule = function () {\n\t\tfunction HandlerModule() {}\n\t\tvar suffix = \".js\",\n\t\t\ttarget = document.getElementsByTagName(\"head\")[0],\n\t\t\tregexMatchType = /^(application|text)\\/(x-)?javascript/;\n\t\tHandlerModule.prototype = {\n\t\t\tvalidate: function (type) {\n\t\t\t\treturn regexMatchType.test(type)\n\t\t\t},\n\t\t\tonPreRequest: function (dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname\n\t\t\t},\n\t\t\tonPostRequest: function (dependency) {\n\t\t\t\tdependency.source = functionResolveSourcemaps(dependency.url, dependency.source)\n\t\t\t},\n\t\t\tprocess: function (dependency) {\n\t\t\t\tvar script;\n\t\t\t\tif (dependency.source) {\n\t\t\t\t\t(script = document.createElement(\"script\"))\n\t\t\t\t\t.async = TRUE;\n\t\t\t\t\tscript.text = dependency.source;\n\t\t\t\t\tscript.setAttribute(DEMAND_ID + \"-id\", dependency.id);\n\t\t\t\t\ttarget.appendChild(script)\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerModule.extends(abstractHandler))\n\t}();\n\tClassFailure.prototype = {\n\t\ttoString: function () {\n\t\t\tvar self = this,\n\t\t\t\tresult = DEMAND_ID + \": \" + self.message + \" \" + (self.module ? '\"' + self.module + '\"' : \"\");\n\t\t\tif (self.stack) result = ClassFailure.traverse(self.stack, result, 1);\n\t\t\treturn result\n\t\t}\n\t};\n\tClassFailure.traverse = function (stack, value, depth) {\n\t\tfor (var item, indention = new Array(depth + 1)\n\t\t\t\t.join(\" \"), i = 0; item = stack[i]; i++) {\n\t\t\tvalue += \"\\n\" + indention + \"> \" + item.message + \" \" + (item.module ? '\"' + item.module + '\"' : \"\");\n\t\t\tif (item.stack) value = ClassFailure.traverse(item.stack, value, depth + 1)\n\t\t}\n\t\treturn value\n\t};\n\thandlerBundle = function () {\n\t\tfunction updateDependencies(uri, dependencies) {\n\t\t\tvar i, dependency;\n\t\t\tfor (i = 0; dependency = dependencies[i]; i++)\n\t\t\t\tif (validatorIsTypeOf(dependency, STRING_STRING)) dependencies[i] = functionResolveId(dependency)\n\t\t}\n\n\t\tfunction getType(dependencies) {\n\t\t\tfor (var type, temp, i = 0; temp = dependencies[i]; i++) {\n\t\t\t\ttemp = (temp = temp.match(regexMatchParameter)) && temp[3] || settings.handler;\n\t\t\t\tif (type) {\n\t\t\t\t\tif (temp !== type) return FALSE\n\t\t\t\t} else type = temp\n\t\t\t}\n\t\t\treturn type\n\t\t}\n\n\t\tfunction HandlerBundle() {}\n\t\tvar path = MODULE_PREFIX_HANDLER + \"bundle\",\n\t\t\tsettings = {};\n\t\tdemand.on(EVENT_POST_CONFIGURE + \":\" + path, function (options) {\n\t\t\tif (validatorIsObject(options)) functionIterate(settings = options, updateDependencies)\n\t\t});\n\t\tHandlerBundle.prototype = {\n\t\t\tvalidate: handlerModule.validate,\n\t\t\tonPreProcess: function (dependency) {\n\t\t\t\tfunction reject() {\n\t\t\t\t\tdfd.reject(new ClassFailure(ERROR_RESOLVE, dependency.id, arguments))\n\t\t\t\t}\n\t\t\t\tvar type, match, pledges, temp, i, source = dependency.source,\n\t\t\t\t\tdfd = dependency.dfd,\n\t\t\t\t\tdependencies = settings[dependency.path];\n\t\t\t\tdependency.enqueue = FALSE;\n\t\t\t\tif (dependencies && (type = getType(dependencies))) {\n\t\t\t\t\twhile (match = regexMatchSourcemap.exec(source)) source = source.replace(match[0], \"\");\n\t\t\t\t\tdependency.source = source;\n\t\t\t\t\tpledges = [];\n\t\t\t\t\tfor (i = 0; temp = dependencies[i]; i++) pledges.push(ClassDependency.resolve(MOCK_PREFIX + temp)\n\t\t\t\t\t\t.pledge);\n\t\t\t\t\tClassPledge.all(pledges)\n\t\t\t\t\t\t.then(function () {\n\t\t\t\t\t\t\tpledges.length = 0;\n\t\t\t\t\t\t\tfor (i = 0; temp = dependencies[i]; i++) {\n\t\t\t\t\t\t\t\t(temp = dependencies[i] = ClassDependency.get(temp) || new ClassDependency(temp))\n\t\t\t\t\t\t\t\t.handler = arguments[i];\n\t\t\t\t\t\t\t\tpledges.push(temp.pledge)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (\"module\" === type) {\n\t\t\t\t\t\t\t\tqueue.enqueue.apply(queue, dependencies);\n\t\t\t\t\t\t\t\thandlerModule.process(dependency)\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandlerModule.process(dependency);\n\t\t\t\t\t\t\t\tqueue.enqueue.apply(queue, dependencies)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tClassPledge.all(pledges)\n\t\t\t\t\t\t\t\t.then(dfd.resolve, reject)\n\t\t\t\t\t\t}, reject)\n\t\t\t\t} else reject()\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerBundle.extends(abstractHandler))\n\t}();\n\thandlerComponent = function () {\n\t\tfunction HandlerComponent() {}\n\t\tvar suffix = \".html\",\n\t\t\tregexMatchType = /^text\\/.+$/;\n\t\tHandlerComponent.prototype = {\n\t\t\tvalidate: function (type) {\n\t\t\t\treturn regexMatchType.test(type)\n\t\t\t},\n\t\t\tonPreRequest: function (dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname\n\t\t\t},\n\t\t\tonPostRequest: function (dependency) {\n\t\t\t\tdependency.source = functionResolveSourcemaps(dependency.url, dependency.source)\n\t\t\t},\n\t\t\tonPreProcess: function (dependency) {\n\t\t\t\tfunction reject() {\n\t\t\t\t\tdfd.reject(new ClassFailure(ERROR_RESOLVE, dependency.id, arguments))\n\t\t\t\t}\n\t\t\t\tvar node, handler, path, uri, context = dependency.path,\n\t\t\t\t\tdfd = dependency.dfd,\n\t\t\t\t\tcontainer = document.createElement(\"body\"),\n\t\t\t\t\tmodules = [],\n\t\t\t\t\tpledges = [];\n\t\t\t\tdependency.enqueue = FALSE;\n\t\t\t\tcontainer.innerHTML = dependency.source;\n\t\t\t\twhile (node = container.firstElementChild)\n\t\t\t\t\tif (handler = node.getAttribute(\"type\")) {\n\t\t\t\t\t\turi = handler + \"!\" + context + ((path = node.getAttribute(\"path\")) ? \"/\" + path : \"\");\n\t\t\t\t\t\tnode.parentNode.removeChild(node);\n\t\t\t\t\t\tmodules.push({\n\t\t\t\t\t\t\tsource: node.textContent,\n\t\t\t\t\t\t\turi: uri\n\t\t\t\t\t\t});\n\t\t\t\t\t\tpledges.push(ClassDependency.resolve(\"mock:\" + uri)\n\t\t\t\t\t\t\t.pledge)\n\t\t\t\t\t} ClassPledge.all(pledges)\n\t\t\t\t\t.then(function () {\n\t\t\t\t\t\tvar module, dependency, i = 0;\n\t\t\t\t\t\tpledges.length = 0;\n\t\t\t\t\t\tfor (; module = modules[i]; i++) {\n\t\t\t\t\t\t\t(dependency = ClassDependency.get(module.uri) || new ClassDependency(module.uri))\n\t\t\t\t\t\t\t.source = functionResolveSourcemaps(dependency.url, module.source);\n\t\t\t\t\t\t\tdependency.handler = arguments[i];\n\t\t\t\t\t\t\tpledges.push(dependency.pledge);\n\t\t\t\t\t\t\tqueue.enqueue(dependency)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tClassPledge.all(pledges)\n\t\t\t\t\t\t\t.then(dfd.resolve, reject)\n\t\t\t\t\t}, reject)\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerComponent.extends(abstractHandler))\n\t}();\n\tpluginGenie = function () {\n\t\tfunction matchPattern(path) {\n\t\t\tfor (var pointer, match, i = 0; pointer = pattern[i]; i++)\n\t\t\t\tif (0 === path.indexOf(pointer.prefix) && (!match || pointer.weight > match.weight)) match = pointer;\n\t\t\treturn match\n\t\t}\n\n\t\tfunction generateConfiguration(bundle) {\n\t\t\tvar pointer, dependency, matches = bundle.matches,\n\t\t\t\tconfiguration = {\n\t\t\t\t\tpattern: {},\n\t\t\t\t\tmodules: {\n\t\t\t\t\t\t\"/demand/handler/bundle\": {}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\ti = 0;\n\t\t\tconfiguration.pattern[bundle.id] = bundle.fn(matches);\n\t\t\tconfiguration.modules[MODULE_PREFIX_HANDLER + \"bundle\"][bundle.id] = pointer = [];\n\t\t\tfor (; dependency = matches[i]; i++) pointer.push(dependency.path);\n\t\t\treturn configuration\n\t\t}\n\n\t\tfunction resolveDependencies() {\n\t\t\tfor (var dependency, i = 0; dependency = this[i]; i++) dependency.dfd.resolve(arguments[i])\n\t\t}\n\n\t\tfunction rejectDependencies() {\n\t\t\tfor (var dependency, i = 0; dependency = this[i]; i++) dependency.dfd.reject(new ClassFailure(ERROR_RESOLVE, dependency.id))\n\t\t}\n\n\t\tfunction addPattern(property, value) {\n\t\t\tpattern.push({\n\t\t\t\tprefix: property,\n\t\t\t\tweight: property.length,\n\t\t\t\tfn: value\n\t\t\t})\n\t\t}\n\n\t\tfunction resolveBundles(property, value) {\n\t\t\tvar dependency, matches = value.matches,\n\t\t\t\ti = 0;\n\t\t\tif (matches.length > 1) {\n\t\t\t\tvalue.id = path + \"/\" + functionHash(JSON.stringify(value.matches));\n\t\t\t\tfor (; dependency = matches[i]; i++) matches[i] = new ClassDependency(dependency.uri);\n\t\t\t\tdemand.configure(generateConfiguration(value));\n\t\t\t\tdemand(\"bundle!\" + value.id)\n\t\t\t\t\t.then(resolveDependencies.bind(matches), rejectDependencies.bind(matches))\n\t\t\t}\n\t\t}\n\t\tvar path = MODULE_PREFIX_PLUGIN + \"genie\",\n\t\t\tpattern = [];\n\t\tdemand.on(EVENT_POST_CONFIGURE + \":\" + path, function (options) {\n\t\t\t\tif (validatorIsObject(options)) {\n\t\t\t\t\tpattern.length = 0;\n\t\t\t\t\tfunctionIterate(options, addPattern)\n\t\t\t\t}\n\t\t\t})\n\t\t\t.on(EVENT_PRE_RESOLVE, function (dependencies, context) {\n\t\t\t\tfor (var dependency, pattern, bundles = {}, i = 0; dependency = dependencies[i]; i++)\n\t\t\t\t\tif (validatorIsTypeOf(dependency, STRING_STRING) && !regexMatchInternal.test(dependency) && !ClassDependency.get(dependency, context))\n\t\t\t\t\t\tif (\"module\" === (dependency = new ClassDependency(dependency, context, FALSE))\n\t\t\t\t\t\t\t.type && (pattern = matchPattern(dependency.path)) && !singletonCache.get(dependency))(bundles[pattern.prefix] || (bundles[pattern.prefix] = {\n\t\t\t\t\t\t\t\tfn: pattern.fn,\n\t\t\t\t\t\t\t\tmatches: []\n\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t.matches.push(dependency);\n\t\t\t\tfunctionIterate(bundles, resolveBundles)\n\t\t\t});\n\t\treturn TRUE\n\t}();\n\tqueue = new ClassQueue;\n\tprocessor = new ClassProcessor(queue);\n\tassignModule(MODULE_PREFIX_ABSTRACT + \"uuid\", AbstractUuid);\n\tassignModule(MODULE_PREFIX_ABSTRACT + \"handler\", abstractHandler);\n\tassignModule(MODULE_PREFIX_HANDLER + \"module\", handlerModule);\n\tassignModule(MODULE_PREFIX_HANDLER + \"bundle\", handlerBundle);\n\tassignModule(MODULE_PREFIX_HANDLER + \"component\", handlerComponent);\n\tassignModule(MODULE_PREFIX_PLUGIN + \"genie\", pluginGenie);\n\tassignModule(MODULE_PREFIX_VALIDATOR + \"isTypeOf\", validatorIsTypeOf);\n\tassignModule(MODULE_PREFIX_VALIDATOR + \"isArray\", validatorIsArray);\n\tassignModule(MODULE_PREFIX_VALIDATOR + \"isObject\", validatorIsObject);\n\tassignModule(MODULE_PREFIX_VALIDATOR + \"isInstanceOf\", validatorIsInstanceOf);\n\tassignModule(MODULE_PREFIX_VALIDATOR + \"isSemver\", validatorIsSemver);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"resolveUrl\", functionResolveUrl);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"resolveSourcemaps\", functionResolveSourcemaps);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"merge\", functionMerge);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"iterate\", functionIterate);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"hash\", functionHash);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"defer\", functionDefer);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"idle\", functionIdle);\n\tassignModule(MODULE_PREFIX_FUNCTION + \"uuid\", functionUuid);\n\tassignModule(MODULE_PREFIX + \"weakmap\", ClassWeakmap);\n\tassignModule(MODULE_PREFIX + \"descriptor\", ClassDescriptor);\n\tassignModule(MODULE_PREFIX + \"pledge\", ClassPledge);\n\tassignModule(MODULE_PREFIX + \"queue\", ClassQueue);\n\tassignModule(MODULE_PREFIX + \"xhr\", ClassXhr);\n\tassignModule(MODULE_PREFIX + \"failure\", ClassFailure);\n\tassignModule(MODULE_PREFIX + \"semver\", ClassSemver);\n\tif (options && options.main) switch (typeof options.main) {\n\tcase STRING_STRING:\n\t\tdemand(options.main);\n\t\tbreak;\n\tcase STRING_FUNCTION:\n\t\tprovide(\"main\", options.main())\n\t}\n})(\"demand-loader\" === this.name ? parent : this, setTimeout, clearTimeout);\n"]} \ No newline at end of file +{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","demand","provide","queue","processor","document","options","settings","version","cache","timeout","pattern","modules","handler","MODULE_PREFIX_HANDLER","MODULE_PREFIX","MOCK_PREFIX","NULL","UNDEFINED","undefined","FALSE","TRUE","STRING_UNDEFINED","STRING_STRING","STRING_OBJECT","STRING_FUNCTION","STRING_NUMBER","EVENT_PRE_CONFIGURE","EVENT_PREFIX","EVENT_POST_CONFIGURE","EVENT_POSTFIX","EVENT_PRE_RESOLVE","EVENT_POST_RESOLVE","EVENT_PRE_REQUEST","EVENT_POST_REQUEST","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","ERROR_LOAD","ERROR_RESOLVE","arrayPrototype","Array","prototype","arrayPrototypeSlice","slice","arrayPrototypeConcat","concat","object","Object","objectPrototypeToString","toString","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","linkElement","createElement","ClassDescriptor","value","writable","configurable","enumerable","__proto__","validatorIsTypeOf","type","validatorIsObject","validatorIsPositive","isFinite","Math","floor","validatorIsInstanceOf","module","strPrototype","objectDefine","name","this","functionExtends","source","property","names","properties","constructor","i","e","TypeError","call","Function","define","regexMatchSemver","validatorIsSemver","test","functionIterate","callback","context","keys","storage","element","fallback","hasSetImmediate","functionMerge","mergeProperties","targetPropertyIsObject","targetProperty","length","target","arguments","functionUuid","regex","RegExp","randomize","character","r","random","replace","functionDefer","fn","MutationObserver","observe","attributes","setAttribute","addEventListener","event","data","uuid","postMessage","onreadystatechange","parentNode","removeChild","body","appendChild","setImmediate","functionToArray","arrayLikeObject","start","end","singletonEvent","TYPE_ON","regexMatchEvent","listener","addListener","events","pointer","split","shift","on","after","push","filter","Event","emit","parameter","item","apply","ClassWeakmap","WeakMap","set","weakmap","prefix","getEntry","key","entry","id","get","delete","has","AbstractUuid","ClassQueue","self","enqueue","items","dequeue","current","extends","functionIdle","eventName","safari","pushNotification","requestIdleCallback","Date","didTimeout","timeRemaining","max","cancelIdleCallback","process","visibilityState","delay","functionGetTimestamp","regexMatchRegex","functionEscapeRegex","functionResolveUrl","url","href","regexIsAbsoluteUri","regexIsAbsolutePath","regexMatchSourcemap","regexMatchBaseUrl","regexMatchInternal","regexMatchParameter","functionResolvePath","uri","path","functionResolveId","match","ClassSemver","compareLevel","a","b","temp","parts","parseInt","parse","major","minor","patch","identifier","join","compare","pa","pb","tpa","tpb","compareIdentifier","singletonCache","regexMatchState","regexMatchProperties","supportsLocalStorage","localStorage","exception","supportsRemainingSpace","enabled","dependency","indexOf","weight","state","getKey","getItem","setKey","getState","matches","setState","Cache","clear","expired","bind","EVENT_CACHE","then","cacheDispose","STORAGE_PREFIX","lifetime","invalid","resolve","spaceBefore","remainingSpace","Error","error","ClassDependency","all","ClassPledge","PLEDGE_PENDING","PLEDGE_RESOLVED","PLEDGE_REJECTED","handle","result","dfd","reject","pledge","index","resolved","count","check","rejected","total","executor","catch","always","alwaysListener","resolveListener","rejectListener","defer","isPending","isResolved","isRejected","pledges","race","ClassRegistry","remove","ClassFailure","message","stack","DEMAND_ID","traverse","depth","indention","registry","matchInternal","placeholder","setProperty","add","addPending","addResolved","addRejected","list","register","mock","pending","isInternal","node","querySelector","ClassPattern","regexMatchTrailingSlash","location","ClassXhr","XMLHttpRequest","XDomainRequest","xhr","boundCheckState","readyState","abort","ontimeout","onerror","onabort","status","onprogress","onload","responseText","getResponseHeader","open","send","ClassLoader","regexMatchEmptySearch","response","validate","load","search","validatorIsArray","functionHash","input","charCodeAt","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","configure","base","min","onPostRequest","EVENT_CACHE_HIT","onPreRequest","onPreProcess","isFunction","definition","console","/demand","ClassProcessor","functionResolveSourcemaps","replacement","exec","protocol","host","pathname","abstractHandler","handlerModule","getElementsByTagName","regexMatchType","HandlerModule","script","async","text","handlerBundle","updateDependencies","HandlerBundle","getType","handlerComponent","HandlerComponent","container","innerHTML","firstElementChild","getAttribute","textContent","pluginGenie","MODULE_PREFIX_PLUGIN","matchPattern","addPattern","resolveBundles","JSON","stringify","bundle","configuration","/demand/handler/bundle","generateConfiguration","bundles","assignModule","MODULE_PREFIX_ABSTRACT","MODULE_PREFIX_VAL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wY,MACrB,KAAKvX,EACJtB,EAAOK,EAAQwY,MAEf,MACD,KAAKrX,EACJvB,EAAQ,OAAQI,EAAQwY,SAzgF7B,CA8gFgB,kBAAdhU,KAAKD,KAA2BkU,OAASjU,KAAM/E,WAAYC","file":"demand.js","sourcesContent":["/* global\n\tglobal, document, demand, provide, queue, processor, settings, setTimeout, clearTimeout,\n\tMODULE_PREFIX, MODULE_PREFIX_HANDLER, MODULE_PREFIX_VALIDATOR, MODULE_PREFIX_PLUGIN, MODULE_PREFIX_FUNCTION, MODULE_PREFIX_ABSTRACT, STRING_STRING, STRING_FUNCTION, TRUE,\n\tvalidatorIsTypeOf, validatorIsArray, validatorIsObject, validatorIsInstanceOf, validatorIsSemver,\n\tfunctionResolveUrl, functionResolveSourcemaps, functionMerge, functionIterate, functionDefer, functionIdle, functionHash, functionUuid,\n\tAbstractUuid, abstractHandler,\n\tClassDependency, ClassQueue, ClassProcessor, ClassPledge, ClassXhr, ClassFailure, ClassDescriptor, ClassWeakmap, ClassSemver,\n\thandlerModule, handlerBundle, handlerComponent,\n \tpluginGenie\n*/\n\n/*eslint no-unused-vars: [2, { \"vars\": \"local\", \"args\": \"none\" }]*/\n(function(global, setTimeout, clearTimeout) {\n\t'use strict';\n\n\t/* eslint-disable no-unused-vars */\n\tvar document = global.document,\n\t\toptions = 'demand' in global && global.demand,\n\t\tsettings = { version: '1.0.0', cache: {}, timeout: 8000, pattern: {}, modules: {}, handler: 'module' },\n\t\tdemand, provide, queue, processor;\n\n\t// include inheritance\n\t\t//=require inheritance.js\n\n\t// include main components\n\t\t//=require function/demand.js\n\t\t//=require function/provide.js\n\n\t// process initial configuration\n\t\tdemand.configure({ cache: TRUE, base: '/', pattern: { '/demand': functionResolveUrl(((options && options.url) || location.href) + '/../').slice(0, -1)} });\n\t\toptions && options.settings && demand.configure(options.settings);\n\n\t// include additional components\n\t\t//=require function/hash.js\n\t\t//=require class/queue.js\n\t\t//=require class/processor.js\n\t\t//=require handler/module.js\n\t\t//=require handler/bundle.js\n\t\t//=require handler/component.js\n\t\t//=require plugin/genie.js\n\n\t// initialize\n\t\tqueue = new ClassQueue();\n\t\tprocessor = new ClassProcessor(queue);\n\n\t\tfunction assignModule(id, module) {\n\t\t\tprovide(id, function() { return module; });\n\t\t}\n\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'uuid', AbstractUuid);\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'handler', abstractHandler);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'module', handlerModule);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'bundle', handlerBundle);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'component', handlerComponent);\n\t\tassignModule(MODULE_PREFIX_PLUGIN + 'genie', pluginGenie);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isTypeOf', validatorIsTypeOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isArray', validatorIsArray);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isObject', validatorIsObject);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isInstanceOf', validatorIsInstanceOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isSemver', validatorIsSemver);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveUrl', functionResolveUrl);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveSourcemaps', functionResolveSourcemaps);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'merge', functionMerge);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'iterate', functionIterate);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'hash', functionHash);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'defer', functionDefer);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'idle', functionIdle);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'uuid', functionUuid);\n\t\tassignModule(MODULE_PREFIX + 'weakmap', ClassWeakmap);\n\t\tassignModule(MODULE_PREFIX + 'descriptor', ClassDescriptor);\n\t\tassignModule(MODULE_PREFIX + 'pledge', ClassPledge);\n\t\tassignModule(MODULE_PREFIX + 'queue', ClassQueue);\n\t\tassignModule(MODULE_PREFIX + 'xhr', ClassXhr);\n\t\tassignModule(MODULE_PREFIX + 'failure', ClassFailure);\n\t\tassignModule(MODULE_PREFIX + 'semver', ClassSemver);\n\n\t\tif(options && options.main) {\n\t\t\tswitch(typeof options.main) {\n\t\t\t\tcase STRING_STRING:\n\t\t\t\t\tdemand(options.main);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase STRING_FUNCTION:\n\t\t\t\t\tprovide('main', options.main());\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n}(this.name === 'demand-loader' ? parent : this, setTimeout, clearTimeout));\n"]} \ No newline at end of file diff --git a/dist/handler/css.js b/dist/handler/css.js index 441181c..b9ef2d8 100644 --- a/dist/handler/css.js +++ b/dist/handler/css.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(m){"use strict";provide(["/demand/abstract/handler","/demand/function/resolveSourcemaps"],function(e,u){function c(e){return s.href=e,s}function a(e,t,r){return o.test(t[1])||(e=e.replace(t[0],r)),e}function t(){}var r=".css",n=m.getElementsByTagName("head")[0],s=m.createElement("a"),i=/url\s*\(\s*["']?(.+?)["']?\s*\)/gi,d=/@import\s+["'](.+?)["']/gi,l=/^\//i,o=/^data:|http(s?):|\/\//i,f=/^text\/css/;return t.prototype={validate:function(e){return f.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=t.slice(-r.length)!==r?t+r:t},onPostRequest:function(e){for(var t,r=c(e.url+"/.."),n=r.href,s="//"+r.host,o=e.source;t=i.exec(o);)o=a(o,t,'url("'+c(l.test(t[1])?s+t[1]:n+t[1]).href+'")');for(;t=d.exec(o);)o=a(o,t,'@import "'+c(l.test(t[1])?s+t[1]:n+t[1]).href+'"');e.source=u(e.url,o)},process:function(e){var t=m.querySelector('[demand-id="'+e.id+'"]');t||((t=m.createElement("style")).type="text/css",t.setAttribute("demand-id",e.id),n.appendChild(t)),"STYLE"===t.tagName&&(t.styleSheet?t.styleSheet.cssText=e.source:t.textContent=e.source),provide(function(){return t})}},new(t.extends(e))})}(document); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(e){"use strict";provide(["/demand/abstract/handler","/demand/function/resolveSourcemaps"],function(t,r){var n=e.getElementsByTagName("head")[0],s=e.createElement("a"),c=/url\s*\(\s*["']?(.+?)["']?\s*\)/gi,o=/@import\s+["'](.+?)["']/gi,u=/^\//i,a=/^data:|http(s?):|\/\//i,i=/^text\/css/;function d(e){return s.href=e,s}function l(e,t,r){return a.test(t[1])||(e=e.replace(t[0],r)),e}function f(){}return f.prototype={validate:function(e){return i.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=".css"!==t.slice(-".css".length)?t+".css":t},onPostRequest:function(e){for(var t,n=d(e.url+"/.."),s=n.href,a="//"+n.host,i=e.source;t=c.exec(i);)i=l(i,t,'url("'+d(u.test(t[1])?a+t[1]:s+t[1]).href+'")');for(;t=o.exec(i);)i=l(i,t,'@import "'+d(u.test(t[1])?a+t[1]:s+t[1]).href+'"');e.source=r(e.url,i)},process:function(t){var r=e.querySelector('[demand-id="'+t.id+'"]');r||((r=e.createElement("style")).type="text/css",r.setAttribute("demand-id",t.id),n.appendChild(r)),"STYLE"===r.tagName&&(r.styleSheet?r.styleSheet.cssText=t.source:r.textContent=t.source),provide(function(){return r})}},new(f.extends(t))})}(document); //# sourceMappingURL=css.js.map diff --git a/dist/handler/css.js.map b/dist/handler/css.js.map index d3d82b4..b0c7029 100644 --- a/dist/handler/css.js.map +++ b/dist/handler/css.js.map @@ -1 +1 @@ -{"version":3,"sources":["handler/css.js"],"names":["document","provide","abstractHandler","functionResolveSourcemaps","resolveUrl","url","resolver","href","replaceUri","source","match","replacement","regexIsAbsoluteUri","test","replace","HandlerCss","suffix","target","getElementsByTagName","createElement","regexMatchUrl","regexMatchImport","regexIsAbsolutePath","regexMatchType","prototype","validate","type","onPreRequest","dependency","pathname","slice","length","onPostRequest","base","host","exec","process","element","querySelector","id","setAttribute","appendChild","tagName","styleSheet","cssText","textContent","extends"],"mappings":";CAAA,SAAAA,GACA,aA2DAC,QAAA,CAAA,2BAAA,sCAzDA,SAAAC,EAAAC,GACA,SAAAC,EAAAC,GAEA,OADAC,EAAAC,KAAAF,EACAC,EAGA,SAAAE,EAAAC,EAAAC,EAAAC,GAEA,OADAC,EAAAC,KAAAH,EAAA,MAAAD,EAAAA,EAAAK,QAAAJ,EAAA,GAAAC,IACAF,EAGA,SAAAM,KACA,IAAAC,EAAA,OACAC,EAAAjB,EAAAkB,qBAAA,QAAA,GACAZ,EAAAN,EAAAmB,cAAA,KACAC,EAAA,oCACAC,EAAA,4BACAC,EAAA,OACAV,EAAA,yBACAW,EAAA,aAoCA,OAnCAR,EAAAS,UAAA,CACAC,SAAA,SAAAC,GACA,OAAAH,EAAAV,KAAAa,IAEAC,aAAA,SAAAC,GACA,IAAAC,EAAAD,EAAAvB,IAAAwB,SACAD,EAAAvB,IAAAwB,SAAAA,EAAAC,OAAAd,EAAAe,UAAAf,EAAAa,EAAAb,EAAAa,GAEAG,cAAA,SAAAJ,GAKA,IAJA,IAAAlB,EAAAL,EAAAD,EAAAwB,EAAAvB,IAAA,OACA4B,EAAA5B,EAAAE,KACA2B,EAAA,KAAA7B,EAAA6B,KACAzB,EAAAmB,EAAAnB,OACAC,EAAAU,EAAAe,KAAA1B,IAAAA,EAAAD,EAAAC,EAAAC,EAAA,QAAAN,EAAAkB,EAAAT,KAAAH,EAAA,IAAAwB,EAAAxB,EAAA,GAAAuB,EAAAvB,EAAA,IACAH,KAAA,MACA,KAAAG,EAAAW,EAAAc,KAAA1B,IAAAA,EAAAD,EAAAC,EAAAC,EAAA,YAAAN,EAAAkB,EAAAT,KAAAH,EAAA,IAAAwB,EAAAxB,EAAA,GAAAuB,EAAAvB,EAAA,IACAH,KAAA,KACAqB,EAAAnB,OAAAN,EAAAyB,EAAAvB,IAAAI,IAEA2B,QAAA,SAAAR,GACA,IAAAS,EAAArC,EAAAsC,cAAA,eAAAV,EAAAW,GAAA,MACAF,KACAA,EAAArC,EAAAmB,cAAA,UACAO,KAAA,WACAW,EAAAG,aAAA,YAAAZ,EAAAW,IACAtB,EAAAwB,YAAAJ,IAEA,UAAAA,EAAAK,UACAL,EAAAM,WAAAN,EAAAM,WAAAC,QAAAhB,EAAAnB,OACA4B,EAAAQ,YAAAjB,EAAAnB,QACAR,QAAA,WACA,OAAAoC,MAIA,IAAAtB,EAAA+B,QAAA5C,MA1DA,CA6DAF","file":"css.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function (document) {\n\t\"use strict\";\n\n\tfunction definition(abstractHandler, functionResolveSourcemaps) {\n\t\tfunction resolveUrl(url) {\n\t\t\tresolver.href = url;\n\t\t\treturn resolver\n\t\t}\n\n\t\tfunction replaceUri(source, match, replacement) {\n\t\t\tif (!regexIsAbsoluteUri.test(match[1])) source = source.replace(match[0], replacement);\n\t\t\treturn source\n\t\t}\n\n\t\tfunction HandlerCss() {}\n\t\tvar suffix = \".css\",\n\t\t\ttarget = document.getElementsByTagName(\"head\")[0],\n\t\t\tresolver = document.createElement(\"a\"),\n\t\t\tregexMatchUrl = /url\\s*\\(\\s*[\"']?(.+?)[\"']?\\s*\\)/gi,\n\t\t\tregexMatchImport = /@import\\s+[\"'](.+?)[\"']/gi,\n\t\t\tregexIsAbsolutePath = /^\\//i,\n\t\t\tregexIsAbsoluteUri = /^data:|http(s?):|\\/\\//i,\n\t\t\tregexMatchType = /^text\\/css/;\n\t\tHandlerCss.prototype = {\n\t\t\tvalidate: function (type) {\n\t\t\t\treturn regexMatchType.test(type)\n\t\t\t},\n\t\t\tonPreRequest: function (dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname\n\t\t\t},\n\t\t\tonPostRequest: function (dependency) {\n\t\t\t\tvar match, url = resolveUrl(dependency.url + \"/..\"),\n\t\t\t\t\tbase = url.href,\n\t\t\t\t\thost = \"//\" + url.host,\n\t\t\t\t\tsource = dependency.source;\n\t\t\t\twhile (match = regexMatchUrl.exec(source)) source = replaceUri(source, match, 'url(\"' + resolveUrl(regexIsAbsolutePath.test(match[1]) ? host + match[1] : base + match[1])\n\t\t\t\t\t.href + '\")');\n\t\t\t\twhile (match = regexMatchImport.exec(source)) source = replaceUri(source, match, '@import \"' + resolveUrl(regexIsAbsolutePath.test(match[1]) ? host + match[1] : base + match[1])\n\t\t\t\t\t.href + '\"');\n\t\t\t\tdependency.source = functionResolveSourcemaps(dependency.url, source)\n\t\t\t},\n\t\t\tprocess: function (dependency) {\n\t\t\t\tvar element = document.querySelector('[demand-id=\"' + dependency.id + '\"]');\n\t\t\t\tif (!element) {\n\t\t\t\t\t(element = document.createElement(\"style\"))\n\t\t\t\t\t.type = \"text/css\";\n\t\t\t\t\telement.setAttribute(\"demand-id\", dependency.id);\n\t\t\t\t\ttarget.appendChild(element)\n\t\t\t\t}\n\t\t\t\tif (\"STYLE\" === element.tagName)\n\t\t\t\t\tif (element.styleSheet) element.styleSheet.cssText = dependency.source;\n\t\t\t\t\telse element.textContent = dependency.source;\n\t\t\t\tprovide(function () {\n\t\t\t\t\treturn element\n\t\t\t\t})\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerCss.extends(abstractHandler))\n\t}\n\tprovide([\"/demand/abstract/handler\", \"/demand/function/resolveSourcemaps\"], definition)\n})(document);\n"]} \ No newline at end of file +{"version":3,"sources":["handler/css.js"],"names":["document","provide","abstractHandler","functionResolveSourcemaps","target","getElementsByTagName","resolver","createElement","regexMatchUrl","regexMatchImport","regexIsAbsolutePath","regexIsAbsoluteUri","regexMatchType","resolveUrl","url","href","replaceUri","source","match","replacement","test","replace","HandlerCss","prototype","validate","type","onPreRequest","dependency","pathname","slice","length","onPostRequest","base","host","exec","process","element","querySelector","id","setAttribute","appendChild","tagName","styleSheet","cssText","textContent","extends"],"mappings":";CAAC,SAASA,GACT,aAgFAC,QAAQ,CAAE,2BAA4B,sCA9EtC,SAAoBC,EAAiBC,GACpC,IACCC,EAAsBJ,EAASK,qBAAqB,QAAQ,GAC5DC,EAAsBN,EAASO,cAAc,KAC7CC,EAAsB,oCACtBC,EAAsB,4BACtBC,EAAsB,OACtBC,EAAsB,yBACtBC,EAAsB,aAEvB,SAASC,EAAWC,GAGnB,OAFAR,EAASS,KAAOD,EAETR,EAGR,SAASU,EAAWC,EAAQC,EAAOC,GAKlC,OAJIR,EAAmBS,KAAKF,EAAM,MACjCD,EAASA,EAAOI,QAAQH,EAAM,GAAIC,IAG5BF,EAGR,SAASK,KAmDT,OAjDAA,EAAWC,UAAY,CACtBC,SAAU,SAASC,GAClB,OAAOb,EAAeQ,KAAKK,IAE5BC,aAAc,SAASC,GACtB,IAAIC,EAAWD,EAAWb,IAAIc,SAE9BD,EAAWb,IAAIc,SAhCS,SAgCEA,EAASC,OAhCX,OAgCyBC,QAAqBF,EAhC9C,OAgCkEA,GAE3FG,cAAe,SAASJ,GAOvB,IANA,IAICT,EAJGJ,EAAUD,EAAWc,EAAWb,IAAM,OACzCkB,EAAUlB,EAAIC,KACdkB,EAAU,KAAOnB,EAAImB,KACrBhB,EAAUU,EAAWV,OAGfC,EAAQV,EAAc0B,KAAKjB,IACjCA,EAASD,EAAWC,EAAQC,EAAO,QAAUL,EAAWH,EAAoBU,KAAKF,EAAM,IAAMe,EAAOf,EAAM,GAAKc,EAAOd,EAAM,IAAIH,KAAO,MAGxI,KAAOG,EAAQT,EAAiByB,KAAKjB,IACpCA,EAASD,EAAWC,EAAQC,EAAO,YAAcL,EAAWH,EAAoBU,KAAKF,EAAM,IAAMe,EAAOf,EAAM,GAAKc,EAAOd,EAAM,IAAIH,KAAO,KAG5IY,EAAWV,OAASd,EAA0BwB,EAAWb,IAAKG,IAE/DkB,QAAS,SAASR,GACjB,IAAIS,EAAUpC,EAASqC,cAAc,eAAiBV,EAAWW,GAAK,MAElEF,KACHA,EAAepC,EAASO,cAAc,UAC9BkB,KAAO,WAEfW,EAAQG,aAAa,YAAaZ,EAAWW,IAC7ClC,EAAOoC,YAAYJ,IAGG,UAApBA,EAAQK,UACPL,EAAQM,WACVN,EAAQM,WAAWC,QAAUhB,EAAWV,OAExCmB,EAAQQ,YAAcjB,EAAWV,QAInChB,QAAQ,WAAa,OAAOmC,MAIvB,IAAKd,EAAWuB,QAAQ3C,MA9EjC,CAkFEF","file":"css.js","sourcesContent":["(function(document) {\n\t'use strict';\n\n\tfunction definition(abstractHandler, functionResolveSourcemaps) {\n\t\tvar suffix = '.css',\n\t\t\ttarget = document.getElementsByTagName('head')[0],\n\t\t\tresolver = document.createElement('a'),\n\t\t\tregexMatchUrl = /url\\s*\\(\\s*[\"']?(.+?)[\"']?\\s*\\)/gi,\n\t\t\tregexMatchImport = /@import\\s+[\"'](.+?)[\"']/gi,\n\t\t\tregexIsAbsolutePath = /^\\//i,\n\t\t\tregexIsAbsoluteUri = /^data:|http(s?):|\\/\\//i,\n\t\t\tregexMatchType = /^text\\/css/;\n\n\t\tfunction resolveUrl(url) {\n\t\t\tresolver.href = url;\n\n\t\t\treturn resolver;\n\t\t}\n\n\t\tfunction replaceUri(source, match, replacement) {\n\t\t\tif(!regexIsAbsoluteUri.test(match[1])) {\n\t\t\t\tsource = source.replace(match[0], replacement);\n\t\t\t}\n\n\t\t\treturn source;\n\t\t}\n\n\t\tfunction HandlerCss() {}\n\n\t\tHandlerCss.prototype = {\n\t\t\tvalidate: function(type) {\n\t\t\t\treturn regexMatchType.test(type);\n\t\t\t},\n\t\t\tonPreRequest: function(dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\t\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname;\n\t\t\t},\n\t\t\tonPostRequest: function(dependency) {\n\t\t\t\tvar url = resolveUrl(dependency.url + '/..'),\n\t\t\t\t\tbase = url.href,\n\t\t\t\t\thost = '//' + url.host,\n\t\t\t\t\tsource = dependency.source,\n\t\t\t\t\tmatch;\n\n\t\t\t\twhile((match = regexMatchUrl.exec(source))) {\n\t\t\t\t\tsource = replaceUri(source, match, 'url(\"' + resolveUrl(regexIsAbsolutePath.test(match[1]) ? host + match[1] : base + match[1]).href + '\")');\n\t\t\t\t}\n\n\t\t\t\twhile((match = regexMatchImport.exec(source))) {\n\t\t\t\t\tsource = replaceUri(source, match, '@import \"' + resolveUrl(regexIsAbsolutePath.test(match[1]) ? host + match[1] : base + match[1]).href + '\"');\n\t\t\t\t}\n\n\t\t\t\tdependency.source = functionResolveSourcemaps(dependency.url, source);\n\t\t\t},\n\t\t\tprocess: function(dependency) {\n\t\t\t\tvar element = document.querySelector('[demand-id=\"' + dependency.id + '\"]');\n\n\t\t\t\tif(!element) {\n\t\t\t\t\telement = document.createElement('style');\n\t\t\t\t\telement.type = 'text/css';\n\n\t\t\t\t\telement.setAttribute('demand-id', dependency.id);\n\t\t\t\t\ttarget.appendChild(element);\n\t\t\t\t}\n\n\t\t\t\tif(element.tagName === 'STYLE') {\n\t\t\t\t\tif(element.styleSheet) {\n\t\t\t\t\t\telement.styleSheet.cssText = dependency.source;\n\t\t\t\t\t} else {\n\t\t\t\t\t\telement.textContent = dependency.source;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprovide(function() { return element; });\n\t\t\t}\n\t\t};\n\n\t\treturn new (HandlerCss.extends(abstractHandler));\n\t}\n\n\tprovide([ '/demand/abstract/handler', '/demand/function/resolveSourcemaps' ], definition);\n}(document));"]} \ No newline at end of file diff --git a/dist/handler/html.js b/dist/handler/html.js index 377c1cc..42ba16c 100644 --- a/dist/handler/html.js +++ b/dist/handler/html.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(){"use strict";provide(["/demand/abstract/handler"],function(e){function t(){}var n=".html",r=/^text\/html/,o=document.createElement("body");return t.prototype={validate:function(e){return r.test(e)},onPreRequest:function(e){var t=e.url.pathname;e.url.pathname=t.slice(-n.length)!==n?t+n:t},process:function(e){provide(function(){return function(e){var t,n=document.createDocumentFragment();for(o.innerHTML=e;t=o.firstElementChild;)n.appendChild(t);return n}(e.source)})}},new(t.extends(e))})}(); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(){"use strict";provide(["/demand/abstract/handler"],function(t){var e=/^text\/html/,n=document.createElement("body");function r(){}return r.prototype={validate:function(t){return e.test(t)},onPreRequest:function(t){var e=t.url.pathname;t.url.pathname=".html"!==e.slice(-".html".length)?e+".html":e},process:function(t){provide(function(){return function(t){var e,r=document.createDocumentFragment();for(n.innerHTML=t;e=n.firstElementChild;)r.appendChild(e);return r}(t.source)})}},new(r.extends(t))})}(); //# sourceMappingURL=html.js.map diff --git a/dist/handler/html.js.map b/dist/handler/html.js.map index d01bfa7..7de9fc6 100644 --- a/dist/handler/html.js.map +++ b/dist/handler/html.js.map @@ -1 +1 @@ -{"version":3,"sources":["handler/html.js"],"names":["provide","abstractHandler","HandlerHtml","suffix","regexMatchType","container","document","createElement","prototype","validate","type","test","onPreRequest","dependency","pathname","url","slice","length","process","source","node","fragment","createDocumentFragment","innerHTML","firstElementChild","appendChild","parseHtml","extends"],"mappings":";CAAA,WACA,aA8BAA,QAAA,CAAA,4BA5BA,SAAAC,GAQA,SAAAC,KACA,IAAAC,EAAA,QACAC,EAAA,cACAC,EAAAC,SAAAC,cAAA,QAeA,OAdAL,EAAAM,UAAA,CACAC,SAAA,SAAAC,GACA,OAAAN,EAAAO,KAAAD,IAEAE,aAAA,SAAAC,GACA,IAAAC,EAAAD,EAAAE,IAAAD,SACAD,EAAAE,IAAAD,SAAAA,EAAAE,OAAAb,EAAAc,UAAAd,EAAAW,EAAAX,EAAAW,GAEAI,QAAA,SAAAL,GACAb,QAAA,WACA,OArBA,SAAAmB,GACA,IAAAC,EAAAC,EAAAf,SAAAgB,yBAEA,IADAjB,EAAAkB,UAAAJ,EACAC,EAAAf,EAAAmB,mBAAAH,EAAAI,YAAAL,GACA,OAAAC,EAiBAK,CAAAb,EAAAM,YAIA,IAAAjB,EAAAyB,QAAA1B,MA7BA","file":"html.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function () {\n\t\"use strict\";\n\n\tfunction definition(abstractHandler) {\n\t\tfunction parseHtml(source) {\n\t\t\tvar node, fragment = document.createDocumentFragment();\n\t\t\tcontainer.innerHTML = source;\n\t\t\twhile (node = container.firstElementChild) fragment.appendChild(node);\n\t\t\treturn fragment\n\t\t}\n\n\t\tfunction HandlerHtml() {}\n\t\tvar suffix = \".html\",\n\t\t\tregexMatchType = /^text\\/html/,\n\t\t\tcontainer = document.createElement(\"body\");\n\t\tHandlerHtml.prototype = {\n\t\t\tvalidate: function (type) {\n\t\t\t\treturn regexMatchType.test(type)\n\t\t\t},\n\t\t\tonPreRequest: function (dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname\n\t\t\t},\n\t\t\tprocess: function (dependency) {\n\t\t\t\tprovide(function () {\n\t\t\t\t\treturn parseHtml(dependency.source)\n\t\t\t\t})\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerHtml.extends(abstractHandler))\n\t}\n\tprovide([\"/demand/abstract/handler\"], definition)\n})();\n"]} \ No newline at end of file +{"version":3,"sources":["handler/html.js"],"names":["provide","abstractHandler","regexMatchType","container","document","createElement","HandlerHtml","prototype","validate","type","test","onPreRequest","dependency","pathname","url","slice","length","process","source","node","fragment","createDocumentFragment","innerHTML","firstElementChild","appendChild","parseHtml","extends"],"mappings":";CAAC,WACA,aAuCAA,QAAQ,CAAE,4BArCV,SAAoBC,GACnB,IACCC,EAAiB,cACjBC,EAAiBC,SAASC,cAAc,QAezC,SAASC,KAgBT,OAdAA,EAAYC,UAAY,CACvBC,SAAU,SAASC,GAClB,OAAOP,EAAeQ,KAAKD,IAE5BE,aAAc,SAASC,GACtB,IAAIC,EAAWD,EAAWE,IAAID,SAE9BD,EAAWE,IAAID,SA1BI,UA0BOA,EAASE,OA1BhB,QA0B8BC,QAAqBH,EA1BnD,QA0BuEA,GAE3FI,QAAS,SAASL,GACjBZ,QAAQ,WAAa,OAzBvB,SAAmBkB,GAClB,IACCC,EADGC,EAAWhB,SAASiB,yBAKxB,IAFAlB,EAAUmB,UAAYJ,EAEhBC,EAAOhB,EAAUoB,mBACtBH,EAASI,YAAYL,GAGtB,OAAOC,EAesBK,CAAUb,EAAWM,YAI5C,IAAKZ,EAAYoB,QAAQzB,MArClC","file":"html.js","sourcesContent":["(function() {\n\t'use strict';\n\n\tfunction definition(abstractHandler) {\n\t\tvar suffix = '.html',\n\t\t\tregexMatchType = /^text\\/html/,\n\t\t\tcontainer = document.createElement('body');\n\n\t\tfunction parseHtml(source) {\n\t\t\tvar fragment = document.createDocumentFragment(),\n\t\t\t\tnode;\n\n\t\t\tcontainer.innerHTML = source;\n\n\t\t\twhile(node = container.firstElementChild) {\n\t\t\t\tfragment.appendChild(node);\n\t\t\t}\n\n\t\t\treturn fragment;\n\t\t}\n\n\t\tfunction HandlerHtml() {}\n\n\t\tHandlerHtml.prototype = {\n\t\t\tvalidate: function(type) {\n\t\t\t\treturn regexMatchType.test(type);\n\t\t\t},\n\t\t\tonPreRequest: function(dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\t\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname;\n\t\t\t},\n\t\t\tprocess: function(dependency) {\n\t\t\t\tprovide(function() { return parseHtml(dependency.source); });\n\t\t\t}\n\t\t};\n\n\t\treturn new (HandlerHtml.extends(abstractHandler));\n\t}\n\n\tprovide([ '/demand/abstract/handler' ], definition);\n}());"]} \ No newline at end of file diff --git a/dist/handler/json.js b/dist/handler/json.js index 69bc3ce..8389720 100644 --- a/dist/handler/json.js +++ b/dist/handler/json.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(){"use strict";provide(["/demand/abstract/handler"],function(n){function t(){}var e=".json",r=/^application\/json/;return t.prototype={validate:function(n){return r.test(n)},onPreRequest:function(n){var t=n.url.pathname;n.url.pathname=t.slice(-e.length)!==e?t+e:t},process:function(n){var t=JSON.parse(n.source);provide(function(){return t})}},new(t.extends(n))})}(); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(){"use strict";provide(["/demand/abstract/handler"],function(n){var t=/^application\/json/;function e(){}return e.prototype={validate:function(n){return t.test(n)},onPreRequest:function(n){var t=n.url.pathname;n.url.pathname=".json"!==t.slice(-".json".length)?t+".json":t},process:function(n){var t=JSON.parse(n.source);provide(function(){return t})}},new(e.extends(n))})}(); //# sourceMappingURL=json.js.map diff --git a/dist/handler/json.js.map b/dist/handler/json.js.map index fb46fe1..58f4eeb 100644 --- a/dist/handler/json.js.map +++ b/dist/handler/json.js.map @@ -1 +1 @@ -{"version":3,"sources":["handler/json.js"],"names":["provide","abstractHandler","HandlerJson","suffix","regexMatchType","prototype","validate","type","test","onPreRequest","dependency","pathname","url","slice","length","process","data","JSON","parse","source","extends"],"mappings":";CAAA,WACA,aAuBAA,QAAA,CAAA,4BArBA,SAAAC,GACA,SAAAC,KACA,IAAAC,EAAA,QACAC,EAAA,qBAgBA,OAfAF,EAAAG,UAAA,CACAC,SAAA,SAAAC,GACA,OAAAH,EAAAI,KAAAD,IAEAE,aAAA,SAAAC,GACA,IAAAC,EAAAD,EAAAE,IAAAD,SACAD,EAAAE,IAAAD,SAAAA,EAAAE,OAAAV,EAAAW,UAAAX,EAAAQ,EAAAR,EAAAQ,GAEAI,QAAA,SAAAL,GACA,IAAAM,EAAAC,KAAAC,MAAAR,EAAAS,QACAnB,QAAA,WACA,OAAAgB,MAIA,IAAAd,EAAAkB,QAAAnB,MAtBA","file":"json.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function () {\n\t\"use strict\";\n\n\tfunction definition(abstractHandler) {\n\t\tfunction HandlerJson() {}\n\t\tvar suffix = \".json\",\n\t\t\tregexMatchType = /^application\\/json/;\n\t\tHandlerJson.prototype = {\n\t\t\tvalidate: function (type) {\n\t\t\t\treturn regexMatchType.test(type)\n\t\t\t},\n\t\t\tonPreRequest: function (dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname\n\t\t\t},\n\t\t\tprocess: function (dependency) {\n\t\t\t\tvar data = JSON.parse(dependency.source);\n\t\t\t\tprovide(function () {\n\t\t\t\t\treturn data\n\t\t\t\t})\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerJson.extends(abstractHandler))\n\t}\n\tprovide([\"/demand/abstract/handler\"], definition)\n})();\n"]} \ No newline at end of file +{"version":3,"sources":["handler/json.js"],"names":["provide","abstractHandler","regexMatchType","HandlerJson","prototype","validate","type","test","onPreRequest","dependency","pathname","url","slice","length","process","data","JSON","parse","source","extends"],"mappings":";CAAC,WACA,aA2BAA,QAAQ,CAAE,4BAzBV,SAAoBC,GACnB,IACCC,EAAiB,qBAElB,SAASC,KAkBT,OAhBAA,EAAYC,UAAY,CACvBC,SAAU,SAASC,GAClB,OAAOJ,EAAeK,KAAKD,IAE5BE,aAAc,SAASC,GACtB,IAAIC,EAAWD,EAAWE,IAAID,SAE9BD,EAAWE,IAAID,SAZI,UAYOA,EAASE,OAZhB,QAY8BC,QAAqBH,EAZnD,QAYuEA,GAE3FI,QAAS,SAASL,GACjB,IAAIM,EAAOC,KAAKC,MAAMR,EAAWS,QAEjClB,QAAQ,WAAa,OAAOe,MAIvB,IAAKZ,EAAYgB,QAAQlB,MAzBlC","file":"json.js","sourcesContent":["(function() {\n\t'use strict';\n\n\tfunction definition(abstractHandler) {\n\t\tvar suffix = '.json',\n\t\t\tregexMatchType = /^application\\/json/;\n\n\t\tfunction HandlerJson() {}\n\n\t\tHandlerJson.prototype = {\n\t\t\tvalidate: function(type) {\n\t\t\t\treturn regexMatchType.test(type);\n\t\t\t},\n\t\t\tonPreRequest: function(dependency) {\n\t\t\t\tvar pathname = dependency.url.pathname;\n\t\t\t\t\n\t\t\t\tdependency.url.pathname = pathname.slice(-suffix.length) !== suffix ? pathname + suffix : pathname;\n\t\t\t},\n\t\t\tprocess: function(dependency) {\n\t\t\t\tvar data = JSON.parse(dependency.source);\n\n\t\t\t\tprovide(function() { return data; });\n\t\t\t}\n\t\t};\n\n\t\treturn new (HandlerJson.extends(abstractHandler));\n\t}\n\n\tprovide([ '/demand/abstract/handler' ], definition);\n}());"]} \ No newline at end of file diff --git a/dist/handler/legacy.js b/dist/handler/legacy.js index a9c1bc7..68c8cf0 100644 --- a/dist/handler/legacy.js +++ b/dist/handler/legacy.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(){"use strict";provide(["path","/demand/failure","/demand/handler/module","/demand/validator/isObject"],function(e,o,u,n){function t(){}var a={};return demand.on("postConfigure:"+e,function(e){a=n(e)?e:{}}),t.prototype={onPreRequest:function(e){var n=a[e.path]&&a[e.path].dependencies;u.onPreRequest(e),n&&(e.enqueue=demand.apply(null,n))},onPreProcess:function(e){var n=a[e.path]&&a[e.path].dependencies;n&&"boolean"==typeof e.enqueue&&(e.enqueue=demand.apply(null,n))},process:function(e){var n=function(){var e,n=this,t=n.dfd,r=a[n.path]&&a[n.path].probe;u.process(n),r&&(e=r())?provide(function(){return e}):t.reject(new o("error probing",n.path))}.bind(e);!0===e.enqueue?n():e.enqueue.then(n,function(){e.dfd.reject(new o("error resolving",e.path,arguments))})}},new(t.extends(u))})}(); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(){"use strict";provide(["path","/demand/failure","/demand/handler/module","/demand/validator/isObject"],function(e,n,t,r){var o={};function u(){}return demand.on("postConfigure:"+e,function(e){o=r(e)?e:{}}),u.prototype={onPreRequest:function(e){var n=o[e.path]&&o[e.path].dependencies;t.onPreRequest(e),n&&(e.enqueue=demand.apply(null,n))},onPreProcess:function(e){var n=o[e.path]&&o[e.path].dependencies;n&&"boolean"==typeof e.enqueue&&(e.enqueue=demand.apply(null,n))},process:function(e){var r=function(){var e,r=this.dfd,u=o[this.path]&&o[this.path].probe;t.process(this),u&&(e=u())?provide(function(){return e}):r.reject(new n("error probing",this.path))}.bind(e);!0===e.enqueue?r():e.enqueue.then(r,function(){e.dfd.reject(new n("error resolving",e.path,arguments))})}},new(u.extends(t))})}(); //# sourceMappingURL=legacy.js.map diff --git a/dist/handler/legacy.js.map b/dist/handler/legacy.js.map index 2b635d8..a17149e 100644 --- a/dist/handler/legacy.js.map +++ b/dist/handler/legacy.js.map @@ -1 +1 @@ -{"version":3,"sources":["handler/legacy.js"],"names":["provide","path","Failure","handlerModule","isObject","HandlerLegacy","settings","demand","on","options","prototype","onPreRequest","dependency","dependencies","enqueue","apply","onPreProcess","process","boundResolve","result","self","this","dfd","probe","reject","bind","then","arguments","extends"],"mappings":";CAAA,WACA,aAuCAA,QAAA,CAAA,OAAA,kBAAA,yBAAA,8BArCA,SAAAC,EAAAC,EAAAC,EAAAC,GAYA,SAAAC,KACA,IAAAC,EAAA,GAsBA,OArBAC,OAAAC,GAAA,iBAAAP,EAAA,SAAAQ,GACAH,EAAAF,EAAAK,GAAAA,EAAA,KAEAJ,EAAAK,UAAA,CACAC,aAAA,SAAAC,GACA,IAAAC,EAAAP,EAAAM,EAAAX,OAAAK,EAAAM,EAAAX,MAAAY,aACAV,EAAAQ,aAAAC,GACAC,IAAAD,EAAAE,QAAAP,OAAAQ,MAAA,KAAAF,KAEAG,aAAA,SAAAJ,GACA,IAAAC,EAAAP,EAAAM,EAAAX,OAAAK,EAAAM,EAAAX,MAAAY,aACAA,GAAA,kBAAAD,EAAAE,UAAAF,EAAAE,QAAAP,OAAAQ,MAAA,KAAAF,KAEAI,QAAA,SAAAL,GACA,IAAAM,EA3BA,WACA,IAAAC,EAAAC,EAAAC,KACAC,EAAAF,EAAAE,IACAC,EAAAjB,EAAAc,EAAAnB,OAAAK,EAAAc,EAAAnB,MAAAsB,MACApB,EAAAc,QAAAG,GACAG,IAAAJ,EAAAI,KAAAvB,QAAA,WACA,OAAAmB,IAEAG,EAAAE,OAAA,IAAAtB,EAAA,gBAAAkB,EAAAnB,QAmBAwB,KAAAb,IACA,IAAAA,EAAAE,QAAAI,IACAN,EAAAE,QAAAY,KAAAR,EAAA,WACAN,EAAAU,IAAAE,OAAA,IAAAtB,EAAA,kBAAAU,EAAAX,KAAA0B,gBAIA,IAAAtB,EAAAuB,QAAAzB,MAtCA","file":"legacy.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function () {\n\t\"use strict\";\n\n\tfunction definition(path, Failure, handlerModule, isObject) {\n\t\tfunction resolve() {\n\t\t\tvar result, self = this,\n\t\t\t\tdfd = self.dfd,\n\t\t\t\tprobe = settings[self.path] && settings[self.path].probe;\n\t\t\thandlerModule.process(self);\n\t\t\tif (probe && (result = probe())) provide(function () {\n\t\t\t\treturn result\n\t\t\t});\n\t\t\telse dfd.reject(new Failure(\"error probing\", self.path))\n\t\t}\n\n\t\tfunction HandlerLegacy() {}\n\t\tvar settings = {};\n\t\tdemand.on(\"postConfigure:\" + path, function (options) {\n\t\t\tsettings = isObject(options) ? options : {}\n\t\t});\n\t\tHandlerLegacy.prototype = {\n\t\t\tonPreRequest: function (dependency) {\n\t\t\t\tvar dependencies = settings[dependency.path] && settings[dependency.path].dependencies;\n\t\t\t\thandlerModule.onPreRequest(dependency);\n\t\t\t\tif (dependencies) dependency.enqueue = demand.apply(null, dependencies)\n\t\t\t},\n\t\t\tonPreProcess: function (dependency) {\n\t\t\t\tvar dependencies = settings[dependency.path] && settings[dependency.path].dependencies;\n\t\t\t\tif (dependencies && \"boolean\" === typeof dependency.enqueue) dependency.enqueue = demand.apply(null, dependencies)\n\t\t\t},\n\t\t\tprocess: function (dependency) {\n\t\t\t\tvar boundResolve = resolve.bind(dependency);\n\t\t\t\tif (true === dependency.enqueue) boundResolve();\n\t\t\t\telse dependency.enqueue.then(boundResolve, function () {\n\t\t\t\t\tdependency.dfd.reject(new Failure(\"error resolving\", dependency.path, arguments))\n\t\t\t\t})\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerLegacy.extends(handlerModule))\n\t}\n\tprovide([\"path\", \"/demand/failure\", \"/demand/handler/module\", \"/demand/validator/isObject\"], definition)\n})();\n"]} \ No newline at end of file +{"version":3,"sources":["handler/legacy.js"],"names":["provide","path","Failure","handlerModule","isObject","settings","HandlerLegacy","demand","on","options","prototype","onPreRequest","dependency","dependencies","enqueue","apply","onPreProcess","process","boundResolve","result","dfd","this","probe","reject","bind","then","arguments","extends"],"mappings":";CAAC,WACA,aAgEAA,QAAQ,CAAE,OAAQ,kBAAmB,yBAA0B,8BA9D/D,SAAoBC,EAAMC,EAASC,EAAeC,GACjD,IAAIC,EAAW,GAsBf,SAASC,KAoCT,OAxDAC,OACEC,GAAG,iBAAmBP,EAAM,SAASQ,GACrCJ,EAAWD,EAASK,GAAWA,EAAU,KAoB3CH,EAAcI,UAAY,CACzBC,aAAc,SAASC,GACtB,IAAIC,EAAeR,EAASO,EAAWX,OAASI,EAASO,EAAWX,MAAMY,aAE1EV,EAAcQ,aAAaC,GAExBC,IACFD,EAAWE,QAAUP,OAAOQ,MAAM,KAAMF,KAG1CG,aAAc,SAASJ,GACtB,IAAIC,EAAeR,EAASO,EAAWX,OAASI,EAASO,EAAWX,MAAMY,aAEvEA,GAA8C,kBAAvBD,EAAWE,UACpCF,EAAWE,QAAUP,OAAOQ,MAAM,KAAMF,KAG1CI,QAAS,SAASL,GACjB,IAAIM,EAnCN,WACC,IAGCC,EAFAC,EADWC,KACED,IACbE,EAAQjB,EAFGgB,KAEWpB,OAASI,EAFpBgB,KAEkCpB,MAAMqB,MAGpDnB,EAAcc,QALFI,MAOTC,IAAUH,EAASG,KACrBtB,QAAQ,WAAa,OAAOmB,IAE5BC,EAAIG,OAAO,IAAIrB,EAAQ,gBAVZmB,KAUkCpB,QAwBlBuB,KAAKZ,IAEN,IAAvBA,EAAWE,QACbI,IAEAN,EAAWE,QACTW,KACAP,EACA,WACCN,EAAWQ,IAAIG,OAAO,IAAIrB,EAAQ,kBAAmBU,EAAWX,KAAMyB,gBAOrE,IAAKpB,EAAcqB,QAAQxB,MA9DpC","file":"legacy.js","sourcesContent":["(function() {\n\t'use strict';\n\n\tfunction definition(path, Failure, handlerModule, isObject) {\n\t\tvar settings = {};\n\n\t\tdemand\n\t\t\t.on('postConfigure:' + path, function(options) {\n\t\t\t\tsettings = isObject(options) ? options : {};\n\t\t\t});\n\n\t\tfunction resolve() {\n\t\t\tvar self = this,\n\t\t\t\tdfd = self.dfd,\n\t\t\t\tprobe = settings[self.path] && settings[self.path].probe,\n\t\t\t\tresult;\n\n\t\t\thandlerModule.process(self);\n\n\t\t\tif(probe && (result = probe())) {\n\t\t\t\tprovide(function() { return result; });\n\t\t\t} else {\n\t\t\t\tdfd.reject(new Failure('error probing', self.path));\n\t\t\t}\n\t\t}\n\n\t\tfunction HandlerLegacy() {}\n\n\t\tHandlerLegacy.prototype = {\n\t\t\tonPreRequest: function(dependency) {\n\t\t\t\tvar dependencies = settings[dependency.path] && settings[dependency.path].dependencies;\n\n\t\t\t\thandlerModule.onPreRequest(dependency);\n\n\t\t\t\tif(dependencies) {\n\t\t\t\t\tdependency.enqueue = demand.apply(null, dependencies);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonPreProcess: function(dependency) {\n\t\t\t\tvar dependencies = settings[dependency.path] && settings[dependency.path].dependencies;\n\n\t\t\t\tif(dependencies && typeof dependency.enqueue === 'boolean') {\n\t\t\t\t\tdependency.enqueue = demand.apply(null, dependencies);\n\t\t\t\t}\n\t\t\t},\n\t\t\tprocess: function(dependency) {\n\t\t\t\tvar boundResolve = resolve.bind(dependency);\n\n\t\t\t\tif(dependency.enqueue === true) {\n\t\t\t\t\tboundResolve();\n\t\t\t\t} else {\n\t\t\t\t\tdependency.enqueue\n\t\t\t\t\t\t.then(\n\t\t\t\t\t\t\tboundResolve,\n\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\tdependency.dfd.reject(new Failure('error resolving', dependency.path, arguments));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\treturn new (HandlerLegacy.extends(handlerModule));\n\t}\n\n\tprovide([ 'path', '/demand/failure', '/demand/handler/module', '/demand/validator/isObject' ], definition);\n}());"]} \ No newline at end of file diff --git a/dist/handler/text.js b/dist/handler/text.js index 291f238..54ba6ba 100644 --- a/dist/handler/text.js +++ b/dist/handler/text.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(){"use strict";provide(["/demand/abstract/handler"],function(t){function n(){}var e=/^text\/.+/;return n.prototype={validate:function(t){return e.test(t)},process:function(t){provide(function(){return t.source})}},new(n.extends(t))})}(); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(){"use strict";provide(["/demand/abstract/handler"],function(t){var n=/^text\/.+/;function e(){}return e.prototype={validate:function(t){return n.test(t)},process:function(t){provide(function(){return t.source})}},new(e.extends(t))})}(); //# sourceMappingURL=text.js.map diff --git a/dist/handler/text.js.map b/dist/handler/text.js.map index 79f1d3a..4ba9f2e 100644 --- a/dist/handler/text.js.map +++ b/dist/handler/text.js.map @@ -1 +1 @@ -{"version":3,"sources":["handler/text.js"],"names":["provide","abstractHandler","HandlerText","regexMatchType","prototype","validate","type","test","process","dependency","source","extends"],"mappings":";CAAA,WACA,aAiBAA,QAAA,CAAA,4BAfA,SAAAC,GACA,SAAAC,KACA,IAAAC,EAAA,YAWA,OAVAD,EAAAE,UAAA,CACAC,SAAA,SAAAC,GACA,OAAAH,EAAAI,KAAAD,IAEAE,QAAA,SAAAC,GACAT,QAAA,WACA,OAAAS,EAAAC,WAIA,IAAAR,EAAAS,QAAAV,MAhBA","file":"text.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function () {\n\t\"use strict\";\n\n\tfunction definition(abstractHandler) {\n\t\tfunction HandlerText() {}\n\t\tvar regexMatchType = /^text\\/.+/;\n\t\tHandlerText.prototype = {\n\t\t\tvalidate: function (type) {\n\t\t\t\treturn regexMatchType.test(type)\n\t\t\t},\n\t\t\tprocess: function (dependency) {\n\t\t\t\tprovide(function () {\n\t\t\t\t\treturn dependency.source\n\t\t\t\t})\n\t\t\t}\n\t\t};\n\t\treturn new(HandlerText.extends(abstractHandler))\n\t}\n\tprovide([\"/demand/abstract/handler\"], definition)\n})();\n"]} \ No newline at end of file +{"version":3,"sources":["handler/text.js"],"names":["provide","abstractHandler","regexMatchType","HandlerText","prototype","validate","type","test","process","dependency","source","extends"],"mappings":";CAAC,WACA,aAmBAA,QAAQ,CAAE,4BAjBV,SAAoBC,GACnB,IAAIC,EAAiB,YAErB,SAASC,KAWT,OATAA,EAAYC,UAAY,CACvBC,SAAU,SAASC,GAClB,OAAOJ,EAAeK,KAAKD,IAE5BE,QAAS,SAASC,GACjBT,QAAQ,WAAa,OAAOS,EAAWC,WAIlC,IAAKP,EAAYQ,QAAQV,MAjBlC","file":"text.js","sourcesContent":["(function() {\n\t'use strict';\n\n\tfunction definition(abstractHandler) {\n\t\tvar regexMatchType = /^text\\/.+/;\n\n\t\tfunction HandlerText() {}\n\n\t\tHandlerText.prototype = {\n\t\t\tvalidate: function(type) {\n\t\t\t\treturn regexMatchType.test(type);\n\t\t\t},\n\t\t\tprocess: function(dependency) {\n\t\t\t\tprovide(function() { return dependency.source; });\n\t\t\t}\n\t\t};\n\n\t\treturn new (HandlerText.extends(abstractHandler));\n\t}\n\n\tprovide([ '/demand/abstract/handler' ], definition);\n}());"]} \ No newline at end of file diff --git a/dist/plugin/cookie.js b/dist/plugin/cookie.js index 52588a1..aca8b94 100644 --- a/dist/plugin/cookie.js +++ b/dist/plugin/cookie.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -!function(u){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],function(n,t,e,o){function i(n,t,e){(a||function(n){for(var t,e,o=0;t=r[o];o++)0===n.indexOf(t.pattern)&&(!e||t.weight>e.weight)&&(e=t);return!!e&&e.state}(n.path))&&(u.cookie="demand["+n.type+"]["+n.path+"]="+encodeURIComponent(t)+"; expires="+e+"; path=/")}var a,c="Thu, 01 Jan 1970 00:00:00 GMT",r=[];return demand.on("postConfigure:"+n,function(n){e(n)?(r.length=0,t(n,function(n,t){r.push({pattern:n,weight:n.length,state:t})})):o(n,"boolean")&&(a=n)}).on("cacheMiss",function(n){i(n,"",c)}).on("cacheClear",function(n){i(n,"",c)}).on("postCache",function(n,t){i(n,JSON.stringify(t),"Fri, 31 Dec 9999 23:59:59 GMT")}),!0})}(document); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +!function(n){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],function(t,e,o,i){var a,c="Thu, 01 Jan 1970 00:00:00 GMT",r=[];function u(t,e,o){(a||function(n){for(var t,e,o=0;t=r[o];o++)0===n.indexOf(t.pattern)&&(!e||t.weight>e.weight)&&(e=t);return!!e&&e.state}(t.path))&&(n.cookie="demand["+t.type+"]["+t.path+"]="+encodeURIComponent(e)+"; expires="+o+"; path=/")}return demand.on("postConfigure:"+t,function(n){o(n)?(r.length=0,e(n,function(n,t){r.push({pattern:n,weight:n.length,state:t})})):i(n,"boolean")&&(a=n)}).on("cacheMiss",function(n){u(n,"",c)}).on("cacheClear",function(n){u(n,"",c)}).on("postCache",function(n,t){u(n,JSON.stringify(t),"Fri, 31 Dec 9999 23:59:59 GMT")}),!0})}(document); //# sourceMappingURL=cookie.js.map diff --git a/dist/plugin/cookie.js.map b/dist/plugin/cookie.js.map index e265c74..8beb780 100644 --- a/dist/plugin/cookie.js.map +++ b/dist/plugin/cookie.js.map @@ -1 +1 @@ -{"version":3,"sources":["plugin/cookie.js"],"names":["document","provide","path","iterate","isObject","isTypeOf","setCookie","dependency","value","expiration","enabled","pointer","match","i","pattern","indexOf","weight","state","isEnabled","cookie","type","encodeURIComponent","past","demand","on","options","length","key","push","JSON","stringify"],"mappings":";CAAA,SAAAA,GACA,aAsCAC,QAAA,CAAA,OAAA,2BAAA,6BAAA,8BApCA,SAAAC,EAAAC,EAAAC,EAAAC,GACA,SAAAC,EAAAC,EAAAC,EAAAC,IACAC,GAGA,SAAAR,GACA,IAAA,IAAAS,EAAAC,EAAAC,EAAA,EAAAF,EAAAG,EAAAD,GAAAA,IACA,IAAAX,EAAAa,QAAAJ,EAAAG,YAAAF,GAAAD,EAAAK,OAAAJ,EAAAI,UAAAJ,EAAAD,GACA,QAAAC,GAAAA,EAAAK,MANAC,CAAAX,EAAAL,SAAAF,EAAAmB,OAAA,UAAAZ,EAAAa,KAAA,KAAAb,EAAAL,KAAA,KAAAmB,mBAAAb,GAAA,aAAAC,EAAA,YAQA,IAAAC,EAAAY,EAAA,gCAEAR,EAAA,GAsBA,OArBAS,OAAAC,GAAA,iBAAAtB,EAAA,SAAAuB,GACArB,EAAAqB,IACAX,EAAAY,OAAA,EACAvB,EAAAsB,EAAA,SAAAE,EAAAnB,GACAM,EAAAc,KAAA,CACAd,QAAAa,EACAX,OAAAW,EAAAD,OACAT,MAAAT,OAGAH,EAAAoB,EAAA,aAAAf,EAAAe,KAEAD,GAAA,YAAA,SAAAjB,GACAD,EAAAC,EAAA,GAAAe,KAEAE,GAAA,aAAA,SAAAjB,GACAD,EAAAC,EAAA,GAAAe,KAEAE,GAAA,YAAA,SAAAjB,EAAAU,GACAX,EAAAC,EAAAsB,KAAAC,UAAAb,GArBA,oCAuBA,IArCA,CAwCAjB","file":"cookie.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\n(function (document) {\n\t\"use strict\";\n\n\tfunction definition(path, iterate, isObject, isTypeOf) {\n\t\tfunction setCookie(dependency, value, expiration) {\n\t\t\tif (enabled || isEnabled(dependency.path)) document.cookie = \"demand[\" + dependency.type + \"][\" + dependency.path + \"]=\" + encodeURIComponent(value) + \"; expires=\" + expiration + \"; path=/\"\n\t\t}\n\n\t\tfunction isEnabled(path) {\n\t\t\tfor (var pointer, match, i = 0; pointer = pattern[i]; i++)\n\t\t\t\tif (0 === path.indexOf(pointer.pattern) && (!match || pointer.weight > match.weight)) match = pointer;\n\t\t\treturn match ? match.state : false\n\t\t}\n\t\tvar enabled, past = \"Thu, 01 Jan 1970 00:00:00 GMT\",\n\t\t\tfuture = \"Fri, 31 Dec 9999 23:59:59 GMT\",\n\t\t\tpattern = [];\n\t\tdemand.on(\"postConfigure:\" + path, function (options) {\n\t\t\t\tif (isObject(options)) {\n\t\t\t\t\tpattern.length = 0;\n\t\t\t\t\titerate(options, function (key, value) {\n\t\t\t\t\t\tpattern.push({\n\t\t\t\t\t\t\tpattern: key,\n\t\t\t\t\t\t\tweight: key.length,\n\t\t\t\t\t\t\tstate: value\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t} else if (isTypeOf(options, \"boolean\")) enabled = options\n\t\t\t})\n\t\t\t.on(\"cacheMiss\", function (dependency) {\n\t\t\t\tsetCookie(dependency, \"\", past)\n\t\t\t})\n\t\t\t.on(\"cacheClear\", function (dependency) {\n\t\t\t\tsetCookie(dependency, \"\", past)\n\t\t\t})\n\t\t\t.on(\"postCache\", function (dependency, state) {\n\t\t\t\tsetCookie(dependency, JSON.stringify(state), future)\n\t\t\t});\n\t\treturn true\n\t}\n\tprovide([\"path\", \"/demand/function/iterate\", \"/demand/validator/isObject\", \"/demand/validator/isTypeOf\"], definition)\n})(document);\n"]} \ No newline at end of file +{"version":3,"sources":["plugin/cookie.js"],"names":["document","provide","path","iterate","isObject","isTypeOf","enabled","past","pattern","setCookie","dependency","value","expiration","pointer","match","i","indexOf","weight","state","isEnabled","cookie","type","encodeURIComponent","demand","on","options","length","key","push","JSON","stringify"],"mappings":";CAAC,SAASA,GACT,aAmDAC,QAAQ,CAAE,OAAQ,2BAA4B,6BAA8B,8BAjD5E,SAAoBC,EAAMC,EAASC,EAAUC,GAC5C,IAGCC,EAHGC,EAAU,gCAEbC,EAAU,GAyBX,SAASC,EAAUC,EAAYC,EAAOC,IAClCN,GAKJ,SAAmBJ,GAGlB,IAFA,IAAWW,EAASC,EAAhBC,EAAI,EAEDF,EAAUL,EAAQO,GAAKA,IACQ,IAAlCb,EAAKc,QAAQH,EAAQL,YAAoBM,GAASD,EAAQI,OAASH,EAAMG,UAC3EH,EAAQD,GAIV,QAAOC,GAAQA,EAAMI,MAdPC,CAAUT,EAAWR,SAClCF,EAASoB,OAAS,UAAYV,EAAWW,KAAO,KAAOX,EAAWR,KAAO,KAAOoB,mBAAmBX,GAAS,aAAeC,EAAa,YAgB1I,OAxCAW,OACCC,GAAG,iBAAmBtB,EAAM,SAASuB,GACjCrB,EAASqB,IACXjB,EAAQkB,OAAS,EAEjBvB,EAAQsB,EAAS,SAASE,EAAKhB,GAC9BH,EAAQoB,KAAK,CAAEpB,QAASmB,EAAKV,OAAQU,EAAID,OAAQR,MAAOP,OAEhDN,EAASoB,EAAS,aAC3BnB,EAAUmB,KAGXD,GAAG,YAAa,SAASd,GACzBD,EAAUC,EAAY,GAAIH,KAE1BiB,GAAG,aAAc,SAASd,GAC1BD,EAAUC,EAAY,GAAIH,KAE1BiB,GAAG,YAAa,SAASd,EAAYQ,GACrCT,EAAUC,EAAYmB,KAAKC,UAAUZ,GAvB5B,oCA4CJ,IAjDT,CAqDElB","file":"cookie.js","sourcesContent":["(function(document) {\n\t'use strict';\n\n\tfunction definition(path, iterate, isObject, isTypeOf) {\n\t\tvar past = 'Thu, 01 Jan 1970 00:00:00 GMT',\n\t\t\tfuture = 'Fri, 31 Dec 9999 23:59:59 GMT',\n\t\t\tpattern = [],\n\t\t\tenabled;\n\t\t\n\t\tdemand.\n\t\t\ton('postConfigure:' + path, function(options) {\n\t\t\t\tif(isObject(options)) {\n\t\t\t\t\tpattern.length = 0;\n\n\t\t\t\t\titerate(options, function(key, value) {\n\t\t\t\t\t\tpattern.push({ pattern: key, weight: key.length, state: value });\n\t\t\t\t\t});\n\t\t\t\t} else if(isTypeOf(options, 'boolean')) {\n\t\t\t\t\tenabled = options;\n\t\t\t\t}\n\t\t\t})\n\t\t\t.on('cacheMiss', function(dependency) {\n\t\t\t\tsetCookie(dependency, '', past);\n\t\t\t})\n\t\t\t.on('cacheClear', function(dependency) {\n\t\t\t\tsetCookie(dependency, '', past);\n\t\t\t})\n\t\t\t.on('postCache', function(dependency, state) {\n\t\t\t\tsetCookie(dependency, JSON.stringify(state), future);\n\t\t\t});\n\n\t\tfunction setCookie(dependency, value, expiration) {\n\t\t\tif(enabled || isEnabled(dependency.path)) {\n\t\t\t\tdocument.cookie = 'demand[' + dependency.type + '][' + dependency.path + ']=' + encodeURIComponent(value) + '; expires=' + expiration + '; path=/';\n\t\t\t}\n\t\t}\n\n\t\tfunction isEnabled(path) {\n\t\t\tvar i = 0, pointer, match;\n\n\t\t\tfor(; (pointer = pattern[i]); i++) {\n\t\t\t\tif(path.indexOf(pointer.pattern) === 0 && (!match || pointer.weight > match.weight)) {\n\t\t\t\t\tmatch = pointer;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn match ? match.state : false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprovide([ 'path', '/demand/function/iterate', '/demand/validator/isObject', '/demand/validator/isTypeOf' ], definition);\n}(document));"]} \ No newline at end of file diff --git a/dist/plugin/lzstring.js b/dist/plugin/lzstring.js index db7fc2b..3ec6bef 100644 --- a/dist/plugin/lzstring.js +++ b/dist/plugin/lzstring.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -var LZString=function(){function e(n,o){if(!i[n]){i[n]={};for(var e=0;e>>8,i[2*o+1]=t%256;return i},decompressFromUint8Array:function(n){var o,e,t,r;if(null==n)return s.decompress(n);for(e=0,t=(o=new Array(n.length/2)).length;e>=1}else{for(r=1,t=0;t>=1}0==--f&&(f=Math.pow(2,h),h++),delete u[p]}else for(r=s[p],t=0;t>=1;0==--f&&(f=Math.pow(2,h),h++),s[c]=l++,p=String(a)}if(""!==p){if(Object.prototype.hasOwnProperty.call(u,p)){if(p.charCodeAt(0)<256){for(t=0;t>=1}else{for(r=1,t=0;t>=1}0==--f&&(f=Math.pow(2,h),h++),delete u[p]}else for(r=s[p],t=0;t>=1;0==--f&&(f=Math.pow(2,h),h++)}for(r=2,t=0;t>=1;for(;;){if(m<<=1,g==o-1){d.push(e(m));break}g++}return d.join("")},decompress:function(o){return null==o?"":""==o?null:s._decompress(o.length,32768,function(n){return o.charCodeAt(n)})},_decompress:function(n,o,e){var t,r,i,s,u,a,c,p=[],f=4,l=4,h=3,d="",m=[],g={val:e(0),position:o,index:1};for(t=0;t<3;t+=1)p[t]=t;for(i=0,u=Math.pow(2,2),a=1;a!=u;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=e(g.index++)),i|=(0>=1,0==g.position&&(g.position=o,g.val=e(g.index++)),i|=(0>=1,0==g.position&&(g.position=o,g.val=e(g.index++)),i|=(0n)return"";for(i=0,u=Math.pow(2,h),a=1;a!=u;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=e(g.index++)),i|=(0>=1,0==g.position&&(g.position=o,g.val=e(g.index++)),i|=(0>=1,0==g.position&&(g.position=o,g.val=e(g.index++)),i|=(0e.weight)&&(e=o);return!!e&&e.state}var i=[{pattern:n,weight:n.length,state:!1}],s={};return demand.on("postConfigure:"+n,function(n){e(n)?(i.length=0,o(n,function(n,o){i.push({pattern:n,weight:n.length,state:o})})):t(n,"boolean")&&i.push({pattern:"",weight:0,state:n})}).on("cacheHit",function(n){r(n.path)&&(s[n.id]=!0)}).on("preCache",function(n){r(n.path)&&(n.source=u.LZString.compressToUTF16(n.source))}).on("preProcess",function(n){s[n.id]&&(n.source=u.LZString.decompressFromUTF16(n.source))}),!0})}(this); +/**! Qoopido.demand 5.2.2 | https://github.com/dlueth/qoopido.demand | (c) 2019 Dirk Lueth */ +var LZString=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",e={};function t(n,r){if(!e[n]){e[n]={};for(var o=0;o>>8,o[2*e+1]=s%256}return o},decompressFromUint8Array:function(r){if(null==r)return i.decompress(r);for(var o=new Array(r.length/2),e=0,t=o.length;e>=1}else{for(t=1,e=0;e>=1}0==--f&&(f=Math.pow(2,h),h++),delete a[p]}else for(t=s[p],e=0;e>=1;0==--f&&(f=Math.pow(2,h),h++),s[c]=l++,p=String(u)}if(""!==p){if(Object.prototype.hasOwnProperty.call(a,p)){if(p.charCodeAt(0)<256){for(e=0;e>=1}else{for(t=1,e=0;e>=1}0==--f&&(f=Math.pow(2,h),h++),delete a[p]}else for(t=s[p],e=0;e>=1;0==--f&&(f=Math.pow(2,h),h++)}for(t=2,e=0;e>=1;for(;;){if(m<<=1,g==r-1){d.push(o(m));break}g++}return d.join("")},decompress:function(n){return null==n?"":""==n?null:i._decompress(n.length,32768,function(r){return n.charCodeAt(r)})},_decompress:function(r,o,e){var t,i,s,a,u,c,p,f=[],l=4,h=4,d=3,m="",g=[],v={val:e(0),position:o,index:1};for(t=0;t<3;t+=1)f[t]=t;for(s=0,u=Math.pow(2,2),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;switch(s){case 0:for(s=0,u=Math.pow(2,8),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;p=n(s);break;case 1:for(s=0,u=Math.pow(2,16),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;p=n(s);break;case 2:return""}for(f[3]=p,i=p,g.push(p);;){if(v.index>r)return"";for(s=0,u=Math.pow(2,d),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;switch(p=s){case 0:for(s=0,u=Math.pow(2,8),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;f[h++]=n(s),p=h-1,l--;break;case 1:for(s=0,u=Math.pow(2,16),c=1;c!=u;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=e(v.index++)),s|=(a>0?1:0)*c,c<<=1;f[h++]=n(s),p=h-1,l--;break;case 2:return g.join("")}if(0==l&&(l=Math.pow(2,d),d++),f[p])m=f[p];else{if(p!==h)return null;m=i+i.charAt(0)}g.push(m),f[h++]=i+m.charAt(0),i=m,0==--l&&(l=Math.pow(2,d),d++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module?module.exports=LZString:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return LZString}),function(n){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],function(r,o,e,t){var i=[{pattern:r,weight:r.length,state:!1}],s={};function a(n){for(var r,o,e=0;r=i[e];e++)0===n.indexOf(r.pattern)&&(!o||r.weight>o.weight)&&(o=r);return!!o&&o.state}return demand.on("postConfigure:"+r,function(n){e(n)?(i.length=0,o(n,function(n,r){i.push({pattern:n,weight:n.length,state:r})})):t(n,"boolean")&&i.push({pattern:"",weight:0,state:n})}).on("cacheHit",function(n){a(n.path)&&(s[n.id]=!0)}).on("preCache",function(r){a(r.path)&&(r.source=n.LZString.compressToUTF16(r.source))}).on("preProcess",function(r){s[r.id]&&(r.source=n.LZString.decompressFromUTF16(r.source))}),!0})}(this); //# sourceMappingURL=lzstring.js.map diff --git a/dist/plugin/lzstring.js.map b/dist/plugin/lzstring.js.map index 33168e7..7f7728e 100644 --- a/dist/plugin/lzstring.js.map +++ b/dist/plugin/lzstring.js.map @@ -1 +1 @@ -{"version":3,"sources":["plugin/lzstring.js"],"names":["LZString","getBaseValue","alphabet","character","baseReverseDic","i","length","charAt","f","String","fromCharCode","keyStrBase64","keyStrUriSafe","compressToBase64","input","res","_compress","a","decompressFromBase64","_decompress","index","compressToUTF16","decompressFromUTF16","compressed","charCodeAt","compressToUint8Array","uncompressed","TotalLen","current_value","compress","buf","Uint8Array","decompressFromUint8Array","result","decompress","Array","forEach","c","push","join","compressToEncodedURIComponent","decompressFromEncodedURIComponent","replace","bitsPerChar","getCharFromInt","value","ii","context_dictionary","context_dictionaryToCreate","context_c","context_wc","context_w","context_enlargeIn","context_dictSize","context_numBits","context_data","context_data_val","context_data_position","Object","prototype","hasOwnProperty","call","Math","pow","resetValue","getNextValue","w","bits","resb","maxpower","power","dictionary","enlargeIn","dictSize","numBits","entry","data","val","position","define","amd","module","exports","angular","factory","global","provide","path","iterate","isObject","isTypeOf","isEnabled","pointer","match","pattern","indexOf","weight","state","storage","demand","on","options","key","dependency","id","source","this"],"mappings":";AAAA,IAAAA,SAAA,WACA,SAAAC,EAAAC,EAAAC,GACA,IAAAC,EAAAF,GAAA,CACAE,EAAAF,GAAA,GACA,IAAA,IAAAG,EAAA,EAAAA,EAAAH,EAAAI,OAAAD,IAAAD,EAAAF,GAAAA,EAAAK,OAAAF,IAAAA,EAEA,OAAAD,EAAAF,GAAAC,GAEA,IAAAK,EAAAC,OAAAC,aACAC,EAAA,oEACAC,EAAA,oEACAR,EAAA,GACAJ,EAAA,CACAa,iBAAA,SAAAC,GACA,GAAA,MAAAA,EAAA,MAAA,GACA,IAAAC,EAAAf,EAAAgB,UAAAF,EAAA,EAAA,SAAAG,GACA,OAAAN,EAAAJ,OAAAU,KAEA,OAAAF,EAAAT,OAAA,GACA,QACA,KAAA,EACA,OAAAS,EACA,KAAA,EACA,OAAAA,EAAA,MACA,KAAA,EACA,OAAAA,EAAA,KACA,KAAA,EACA,OAAAA,EAAA,MAGAG,qBAAA,SAAAJ,GACA,OAAA,MAAAA,EAAA,GACA,IAAAA,EAAA,KACAd,EAAAmB,YAAAL,EAAAR,OAAA,GAAA,SAAAc,GACA,OAAAnB,EAAAU,EAAAG,EAAAP,OAAAa,OAGAC,gBAAA,SAAAP,GACA,OAAA,MAAAA,EAAA,GACAd,EAAAgB,UAAAF,EAAA,GAAA,SAAAG,GACA,OAAAT,EAAAS,EAAA,MACA,KAEAK,oBAAA,SAAAC,GACA,OAAA,MAAAA,EAAA,GACA,IAAAA,EAAA,KACAvB,EAAAmB,YAAAI,EAAAjB,OAAA,MAAA,SAAAc,GACA,OAAAG,EAAAC,WAAAJ,GAAA,MAGAK,qBAAA,SAAAC,GACA,IAAArB,EAAAsB,EAAAC,EAAAL,EAAAvB,EAAA6B,SAAAH,GACAI,EAA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OAAAT,EAAAjF,OACA2F,OAAA,IAEAC,EAAA,GA0BA,OAzBAC,OAAAC,GAAA,iBAAAb,EAAA,SAAAc,GACAZ,EAAAY,IACAP,EAAAxF,OAAA,EACAkF,EAAAa,EAAA,SAAAC,EAAAzD,GACAiD,EAAAxD,KAAA,CACAwD,QAAAQ,EACAN,OAAAM,EAAAhG,OACA2F,MAAApD,OAGA6C,EAAAW,EAAA,YAAAP,EAAAxD,KAAA,CACAwD,QAAA,GACAE,OAAA,EACAC,MAAAI,MAGAD,GAAA,WAAA,SAAAG,GACAZ,EAAAY,EAAAhB,QAAAW,EAAAK,EAAAC,KAAA,KAEAJ,GAAA,WAAA,SAAAG,GACAZ,EAAAY,EAAAhB,QAAAgB,EAAAE,OAAApB,EAAArF,SAAAqB,gBAAAkF,EAAAE,WAEAL,GAAA,aAAA,SAAAG,GACAL,EAAAK,EAAAC,MAAAD,EAAAE,OAAApB,EAAArF,SAAAsB,oBAAAiF,EAAAE,YAEA,IAxCA,CA2CAC","file":"lzstring.js","sourcesContent":["/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */\nvar LZString = function () {\n\tfunction getBaseValue(alphabet, character) {\n\t\tif (!baseReverseDic[alphabet]) {\n\t\t\tbaseReverseDic[alphabet] = {};\n\t\t\tfor (var i = 0; i < alphabet.length; i++) baseReverseDic[alphabet][alphabet.charAt(i)] = i\n\t\t}\n\t\treturn baseReverseDic[alphabet][character]\n\t}\n\tvar f = String.fromCharCode,\n\t\tkeyStrBase64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",\n\t\tkeyStrUriSafe = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$\",\n\t\tbaseReverseDic = {},\n\t\tLZString = {\n\t\t\tcompressToBase64: function (input) {\n\t\t\t\tif (null == input) return \"\";\n\t\t\t\tvar res = LZString._compress(input, 6, function (a) {\n\t\t\t\t\treturn keyStrBase64.charAt(a)\n\t\t\t\t});\n\t\t\t\tswitch (res.length % 4) {\n\t\t\t\tdefault:\n\t\t\t\tcase 0:\n\t\t\t\t\treturn res;\n\t\t\t\tcase 1:\n\t\t\t\t\treturn res + \"===\";\n\t\t\t\tcase 2:\n\t\t\t\t\treturn res + \"==\";\n\t\t\t\tcase 3:\n\t\t\t\t\treturn res + \"=\"\n\t\t\t\t}\n\t\t\t},\n\t\t\tdecompressFromBase64: function (input) {\n\t\t\t\tif (null == input) return \"\";\n\t\t\t\tif (\"\" == input) return null;\n\t\t\t\telse return LZString._decompress(input.length, 32, function (index) {\n\t\t\t\t\treturn getBaseValue(keyStrBase64, input.charAt(index))\n\t\t\t\t})\n\t\t\t},\n\t\t\tcompressToUTF16: function (input) {\n\t\t\t\tif (null == input) return \"\";\n\t\t\t\telse return LZString._compress(input, 15, function (a) {\n\t\t\t\t\treturn f(a + 32)\n\t\t\t\t}) + \" \"\n\t\t\t},\n\t\t\tdecompressFromUTF16: function (compressed) {\n\t\t\t\tif (null == compressed) return \"\";\n\t\t\t\tif (\"\" == compressed) return null;\n\t\t\t\telse return LZString._decompress(compressed.length, 16384, function (index) {\n\t\t\t\t\treturn compressed.charCodeAt(index) - 32\n\t\t\t\t})\n\t\t\t},\n\t\t\tcompressToUint8Array: function (uncompressed) {\n\t\t\t\tvar i, TotalLen, current_value, compressed = LZString.compress(uncompressed),\n\t\t\t\t\tbuf = new Uint8Array(2 * compressed.length);\n\t\t\t\tfor (i = 0, TotalLen = compressed.length; i < TotalLen; i++) {\n\t\t\t\t\tcurrent_value = compressed.charCodeAt(i);\n\t\t\t\t\tbuf[2 * i] = current_value >>> 8;\n\t\t\t\t\tbuf[2 * i + 1] = current_value % 256\n\t\t\t\t}\n\t\t\t\treturn buf\n\t\t\t},\n\t\t\tdecompressFromUint8Array: function (compressed) {\n\t\t\t\tvar buf, i, TotalLen, result;\n\t\t\t\tif (null === compressed || void 0 === compressed) return LZString.decompress(compressed);\n\t\t\t\telse {\n\t\t\t\t\tfor (i = 0, TotalLen = (buf = new Array(compressed.length / 2))\n\t\t\t\t\t\t.length; i < TotalLen; i++) buf[i] = 256 * compressed[2 * i] + compressed[2 * i + 1];\n\t\t\t\t\tresult = [];\n\t\t\t\t\tbuf.forEach(function (c) {\n\t\t\t\t\t\tresult.push(f(c))\n\t\t\t\t\t});\n\t\t\t\t\treturn LZString.decompress(result.join(\"\"))\n\t\t\t\t}\n\t\t\t},\n\t\t\tcompressToEncodedURIComponent: function (input) {\n\t\t\t\tif (null == input) return \"\";\n\t\t\t\telse return LZString._compress(input, 6, function (a) {\n\t\t\t\t\treturn keyStrUriSafe.charAt(a)\n\t\t\t\t})\n\t\t\t},\n\t\t\tdecompressFromEncodedURIComponent: function (input) {\n\t\t\t\tif (null == input) return \"\";\n\t\t\t\tif (\"\" == input) return null;\n\t\t\t\tinput = input.replace(/ /g, \"+\");\n\t\t\t\treturn LZString._decompress(input.length, 32, function (index) {\n\t\t\t\t\treturn getBaseValue(keyStrUriSafe, input.charAt(index))\n\t\t\t\t})\n\t\t\t},\n\t\t\tcompress: function (uncompressed) {\n\t\t\t\treturn LZString._compress(uncompressed, 16, function (a) {\n\t\t\t\t\treturn f(a)\n\t\t\t\t})\n\t\t\t},\n\t\t\t_compress: function (uncompressed, bitsPerChar, getCharFromInt) {\n\t\t\t\tif (null == uncompressed) return \"\";\n\t\t\t\tvar i, value, ii, context_dictionary = {},\n\t\t\t\t\tcontext_dictionaryToCreate = {},\n\t\t\t\t\tcontext_c = \"\",\n\t\t\t\t\tcontext_wc = \"\",\n\t\t\t\t\tcontext_w = \"\",\n\t\t\t\t\tcontext_enlargeIn = 2,\n\t\t\t\t\tcontext_dictSize = 3,\n\t\t\t\t\tcontext_numBits = 2,\n\t\t\t\t\tcontext_data = [],\n\t\t\t\t\tcontext_data_val = 0,\n\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\tfor (ii = 0; ii < uncompressed.length; ii += 1) {\n\t\t\t\t\tcontext_c = uncompressed.charAt(ii);\n\t\t\t\t\tif (!Object.prototype.hasOwnProperty.call(context_dictionary, context_c)) {\n\t\t\t\t\t\tcontext_dictionary[context_c] = context_dictSize++;\n\t\t\t\t\t\tcontext_dictionaryToCreate[context_c] = true\n\t\t\t\t\t}\n\t\t\t\t\tcontext_wc = context_w + context_c;\n\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(context_dictionary, context_wc)) context_w = context_wc;\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {\n\t\t\t\t\t\t\tif (context_w.charCodeAt(0) < 256) {\n\t\t\t\t\t\t\t\tfor (i = 0; i < context_numBits; i++) {\n\t\t\t\t\t\t\t\t\tcontext_data_val <<= 1;\n\t\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t\t} else context_data_position++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvalue = context_w.charCodeAt(0);\n\t\t\t\t\t\t\t\tfor (i = 0; i < 8; i++) {\n\t\t\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | 1 & value;\n\t\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\t\t\tvalue >>= 1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tvalue = 1;\n\t\t\t\t\t\t\t\tfor (i = 0; i < context_numBits; i++) {\n\t\t\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | value;\n\t\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\t\t\tvalue = 0\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvalue = context_w.charCodeAt(0);\n\t\t\t\t\t\t\t\tfor (i = 0; i < 16; i++) {\n\t\t\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | 1 & value;\n\t\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\t\t\tvalue >>= 1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (0 == --context_enlargeIn) {\n\t\t\t\t\t\t\t\tcontext_enlargeIn = Math.pow(2, context_numBits);\n\t\t\t\t\t\t\t\tcontext_numBits++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdelete context_dictionaryToCreate[context_w]\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvalue = context_dictionary[context_w];\n\t\t\t\t\t\t\tfor (i = 0; i < context_numBits; i++) {\n\t\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | 1 & value;\n\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\t\tvalue >>= 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (0 == --context_enlargeIn) {\n\t\t\t\t\t\t\tcontext_enlargeIn = Math.pow(2, context_numBits);\n\t\t\t\t\t\t\tcontext_numBits++\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontext_dictionary[context_wc] = context_dictSize++;\n\t\t\t\t\t\tcontext_w = String(context_c)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (\"\" !== context_w) {\n\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {\n\t\t\t\t\t\tif (context_w.charCodeAt(0) < 256) {\n\t\t\t\t\t\t\tfor (i = 0; i < context_numBits; i++) {\n\t\t\t\t\t\t\t\tcontext_data_val <<= 1;\n\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t} else context_data_position++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue = context_w.charCodeAt(0);\n\t\t\t\t\t\t\tfor (i = 0; i < 8; i++) {\n\t\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | 1 & value;\n\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\t\tvalue >>= 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvalue = 1;\n\t\t\t\t\t\t\tfor (i = 0; i < context_numBits; i++) {\n\t\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | value;\n\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\t\tvalue = 0\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue = context_w.charCodeAt(0);\n\t\t\t\t\t\t\tfor (i = 0; i < 16; i++) {\n\t\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | 1 & value;\n\t\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\t\tvalue >>= 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (0 == --context_enlargeIn) {\n\t\t\t\t\t\t\tcontext_enlargeIn = Math.pow(2, context_numBits);\n\t\t\t\t\t\t\tcontext_numBits++\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdelete context_dictionaryToCreate[context_w]\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvalue = context_dictionary[context_w];\n\t\t\t\t\t\tfor (i = 0; i < context_numBits; i++) {\n\t\t\t\t\t\t\tcontext_data_val = context_data_val << 1 | 1 & value;\n\t\t\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\t\t\tvalue >>= 1\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (0 == --context_enlargeIn) {\n\t\t\t\t\t\tcontext_enlargeIn = Math.pow(2, context_numBits);\n\t\t\t\t\t\tcontext_numBits++\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvalue = 2;\n\t\t\t\tfor (i = 0; i < context_numBits; i++) {\n\t\t\t\t\tcontext_data_val = context_data_val << 1 | 1 & value;\n\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\tcontext_data_position = 0;\n\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\tcontext_data_val = 0\n\t\t\t\t\t} else context_data_position++;\n\t\t\t\t\tvalue >>= 1\n\t\t\t\t}\n\t\t\t\twhile (true) {\n\t\t\t\t\tcontext_data_val <<= 1;\n\t\t\t\t\tif (context_data_position == bitsPerChar - 1) {\n\t\t\t\t\t\tcontext_data.push(getCharFromInt(context_data_val));\n\t\t\t\t\t\tbreak\n\t\t\t\t\t} else context_data_position++\n\t\t\t\t}\n\t\t\t\treturn context_data.join(\"\")\n\t\t\t},\n\t\t\tdecompress: function (compressed) {\n\t\t\t\tif (null == compressed) return \"\";\n\t\t\t\tif (\"\" == compressed) return null;\n\t\t\t\telse return LZString._decompress(compressed.length, 32768, function (index) {\n\t\t\t\t\treturn compressed.charCodeAt(index)\n\t\t\t\t})\n\t\t\t},\n\t\t\t_decompress: function (length, resetValue, getNextValue) {\n\t\t\t\tvar i, w, bits, resb, maxpower, power, c, dictionary = [],\n\t\t\t\t\tenlargeIn = 4,\n\t\t\t\t\tdictSize = 4,\n\t\t\t\t\tnumBits = 3,\n\t\t\t\t\tentry = \"\",\n\t\t\t\t\tresult = [],\n\t\t\t\t\tdata = {\n\t\t\t\t\t\tval: getNextValue(0),\n\t\t\t\t\t\tposition: resetValue,\n\t\t\t\t\t\tindex: 1\n\t\t\t\t\t};\n\t\t\t\tfor (i = 0; i < 3; i += 1) dictionary[i] = i;\n\t\t\t\tbits = 0;\n\t\t\t\tmaxpower = Math.pow(2, 2);\n\t\t\t\tpower = 1;\n\t\t\t\twhile (power != maxpower) {\n\t\t\t\t\tresb = data.val & data.position;\n\t\t\t\t\tdata.position >>= 1;\n\t\t\t\t\tif (0 == data.position) {\n\t\t\t\t\t\tdata.position = resetValue;\n\t\t\t\t\t\tdata.val = getNextValue(data.index++)\n\t\t\t\t\t}\n\t\t\t\t\tbits |= (resb > 0 ? 1 : 0) * power;\n\t\t\t\t\tpower <<= 1\n\t\t\t\t}\n\t\t\t\tswitch (bits) {\n\t\t\t\tcase 0:\n\t\t\t\t\tbits = 0;\n\t\t\t\t\tmaxpower = Math.pow(2, 8);\n\t\t\t\t\tpower = 1;\n\t\t\t\t\twhile (power != maxpower) {\n\t\t\t\t\t\tresb = data.val & data.position;\n\t\t\t\t\t\tdata.position >>= 1;\n\t\t\t\t\t\tif (0 == data.position) {\n\t\t\t\t\t\t\tdata.position = resetValue;\n\t\t\t\t\t\t\tdata.val = getNextValue(data.index++)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbits |= (resb > 0 ? 1 : 0) * power;\n\t\t\t\t\t\tpower <<= 1\n\t\t\t\t\t}\n\t\t\t\t\tc = f(bits);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tbits = 0;\n\t\t\t\t\tmaxpower = Math.pow(2, 16);\n\t\t\t\t\tpower = 1;\n\t\t\t\t\twhile (power != maxpower) {\n\t\t\t\t\t\tresb = data.val & data.position;\n\t\t\t\t\t\tdata.position >>= 1;\n\t\t\t\t\t\tif (0 == data.position) {\n\t\t\t\t\t\t\tdata.position = resetValue;\n\t\t\t\t\t\t\tdata.val = getNextValue(data.index++)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbits |= (resb > 0 ? 1 : 0) * power;\n\t\t\t\t\t\tpower <<= 1\n\t\t\t\t\t}\n\t\t\t\t\tc = f(bits);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\treturn \"\"\n\t\t\t\t}\n\t\t\t\tw = dictionary[3] = c;\n\t\t\t\tresult.push(c);\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (data.index > length) return \"\";\n\t\t\t\t\tbits = 0;\n\t\t\t\t\tmaxpower = Math.pow(2, numBits);\n\t\t\t\t\tpower = 1;\n\t\t\t\t\twhile (power != maxpower) {\n\t\t\t\t\t\tresb = data.val & data.position;\n\t\t\t\t\t\tdata.position >>= 1;\n\t\t\t\t\t\tif (0 == data.position) {\n\t\t\t\t\t\t\tdata.position = resetValue;\n\t\t\t\t\t\t\tdata.val = getNextValue(data.index++)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbits |= (resb > 0 ? 1 : 0) * power;\n\t\t\t\t\t\tpower <<= 1\n\t\t\t\t\t}\n\t\t\t\t\tswitch (c = bits) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tbits = 0;\n\t\t\t\t\t\tmaxpower = Math.pow(2, 8);\n\t\t\t\t\t\tpower = 1;\n\t\t\t\t\t\twhile (power != maxpower) {\n\t\t\t\t\t\t\tresb = data.val & data.position;\n\t\t\t\t\t\t\tdata.position >>= 1;\n\t\t\t\t\t\t\tif (0 == data.position) {\n\t\t\t\t\t\t\t\tdata.position = resetValue;\n\t\t\t\t\t\t\t\tdata.val = getNextValue(data.index++)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbits |= (resb > 0 ? 1 : 0) * power;\n\t\t\t\t\t\t\tpower <<= 1\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdictionary[dictSize++] = f(bits);\n\t\t\t\t\t\tc = dictSize - 1;\n\t\t\t\t\t\tenlargeIn--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tbits = 0;\n\t\t\t\t\t\tmaxpower = Math.pow(2, 16);\n\t\t\t\t\t\tpower = 1;\n\t\t\t\t\t\twhile (power != maxpower) {\n\t\t\t\t\t\t\tresb = data.val & data.position;\n\t\t\t\t\t\t\tdata.position >>= 1;\n\t\t\t\t\t\t\tif (0 == data.position) {\n\t\t\t\t\t\t\t\tdata.position = resetValue;\n\t\t\t\t\t\t\t\tdata.val = getNextValue(data.index++)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbits |= (resb > 0 ? 1 : 0) * power;\n\t\t\t\t\t\t\tpower <<= 1\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdictionary[dictSize++] = f(bits);\n\t\t\t\t\t\tc = dictSize - 1;\n\t\t\t\t\t\tenlargeIn--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\treturn result.join(\"\")\n\t\t\t\t\t}\n\t\t\t\t\tif (0 == enlargeIn) {\n\t\t\t\t\t\tenlargeIn = Math.pow(2, numBits);\n\t\t\t\t\t\tnumBits++\n\t\t\t\t\t}\n\t\t\t\t\tif (dictionary[c]) entry = dictionary[c];\n\t\t\t\t\telse if (c === dictSize) entry = w + w.charAt(0);\n\t\t\t\t\telse return null;\n\t\t\t\t\tresult.push(entry);\n\t\t\t\t\tdictionary[dictSize++] = w + entry.charAt(0);\n\t\t\t\t\tw = entry;\n\t\t\t\t\tif (0 == --enlargeIn) {\n\t\t\t\t\t\tenlargeIn = Math.pow(2, numBits);\n\t\t\t\t\t\tnumBits++\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\treturn LZString\n}();\nif (\"function\" === typeof define && define.amd) define(function () {\n\treturn LZString\n});\nelse if (\"undefined\" !== typeof module && null != module) module.exports = LZString;\nelse if (\"undefined\" !== typeof angular && null != angular) angular.module(\"LZString\", [])\n\t.factory(\"LZString\", function () {\n\t\treturn LZString\n\t});\n(function (global) {\n\t\"use strict\";\n\n\tfunction definition(path, iterate, isObject, isTypeOf) {\n\t\tfunction isEnabled(path) {\n\t\t\tfor (var pointer, match, i = 0; pointer = pattern[i]; i++)\n\t\t\t\tif (0 === path.indexOf(pointer.pattern) && (!match || pointer.weight > match.weight)) match = pointer;\n\t\t\treturn match ? match.state : false\n\t\t}\n\t\tvar pattern = [{\n\t\t\t\tpattern: path,\n\t\t\t\tweight: path.length,\n\t\t\t\tstate: false\n\t\t\t}],\n\t\t\tstorage = {};\n\t\tdemand.on(\"postConfigure:\" + path, function (options) {\n\t\t\t\tif (isObject(options)) {\n\t\t\t\t\tpattern.length = 0;\n\t\t\t\t\titerate(options, function (key, value) {\n\t\t\t\t\t\tpattern.push({\n\t\t\t\t\t\t\tpattern: key,\n\t\t\t\t\t\t\tweight: key.length,\n\t\t\t\t\t\t\tstate: value\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t} else if (isTypeOf(options, \"boolean\")) pattern.push({\n\t\t\t\t\tpattern: \"\",\n\t\t\t\t\tweight: 0,\n\t\t\t\t\tstate: options\n\t\t\t\t})\n\t\t\t})\n\t\t\t.on(\"cacheHit\", function (dependency) {\n\t\t\t\tif (isEnabled(dependency.path)) storage[dependency.id] = true\n\t\t\t})\n\t\t\t.on(\"preCache\", function (dependency) {\n\t\t\t\tif (isEnabled(dependency.path)) dependency.source = global.LZString.compressToUTF16(dependency.source)\n\t\t\t})\n\t\t\t.on(\"preProcess\", function (dependency) {\n\t\t\t\tif (storage[dependency.id]) dependency.source = global.LZString.decompressFromUTF16(dependency.source)\n\t\t\t});\n\t\treturn true\n\t}\n\tprovide([\"path\", \"/demand/function/iterate\", \"/demand/validator/isObject\", \"/demand/validator/isTypeOf\"], definition)\n})(this);\n"]} \ No newline at end of file +{"version":3,"sources":["plugin/lzstring.js"],"names":["LZString","f","String","fromCharCode","keyStrBase64","keyStrUriSafe","baseReverseDic","getBaseValue","alphabet","character","i","length","charAt","compressToBase64","input","res","_compress","a","decompressFromBase64","_decompress","index","compressToUTF16","decompressFromUTF16","compressed","charCodeAt","compressToUint8Array","uncompressed","compress","buf","Uint8Array","TotalLen","current_value","decompressFromUint8Array","decompress","Array","result","forEach","c","push","join","compressToEncodedURIComponent","decompressFromEncodedURIComponent","replace","bitsPerChar","getCharFromInt","value","ii","context_dictionary","context_dictionaryToCreate","context_c","context_wc","context_w","context_enlargeIn","context_dictSize","context_numBits","context_data","context_data_val","context_data_position","Object","prototype","hasOwnProperty","call","Math","pow","resetValue","getNextValue","w","bits","resb","maxpower","power","dictionary","enlargeIn","dictSize","numBits","entry","data","val","position","define","amd","module","exports","angular","factory","global","provide","path","iterate","isObject","isTypeOf","pattern","weight","state","storage","isEnabled","pointer","match","indexOf","demand","on","options","key","dependency","id","source","this"],"mappings":";AAaA,IAAIA,SAAW,WAGf,IAAIC,EAAIC,OAAOC,aACXC,EAAe,oEACfC,EAAgB,oEAChBC,EAAiB,GAErB,SAASC,EAAaC,EAAUC,GAC9B,IAAKH,EAAeE,GAAW,CAC7BF,EAAeE,GAAY,GAC3B,IAAK,IAAIE,EAAE,EAAIA,EAAEF,EAASG,OAASD,IACjCJ,EAAeE,GAAUA,EAASI,OAAOF,IAAMA,EAGnD,OAAOJ,EAAeE,GAAUC,GAGlC,IAAIT,EAAW,CACba,iBAAmB,SAAUC,GAC3B,GAAa,MAATA,EAAe,MAAO,GAC1B,IAAIC,EAAMf,EAASgB,UAAUF,EAAO,EAAG,SAASG,GAAG,OAAOb,EAAaQ,OAAOK,KAC9E,OAAQF,EAAIJ,OAAS,GACrB,QACA,KAAK,EAAI,OAAOI,EAChB,KAAK,EAAI,OAAOA,EAAI,MACpB,KAAK,EAAI,OAAOA,EAAI,KACpB,KAAK,EAAI,OAAOA,EAAI,MAItBG,qBAAuB,SAAUJ,GAC/B,OAAa,MAATA,EAAsB,GACb,IAATA,EAAoB,KACjBd,EAASmB,YAAYL,EAAMH,OAAQ,GAAI,SAASS,GAAS,OAAOb,EAAaH,EAAcU,EAAMF,OAAOQ,OAGjHC,gBAAkB,SAAUP,GAC1B,OAAa,MAATA,EAAsB,GACnBd,EAASgB,UAAUF,EAAO,GAAI,SAASG,GAAG,OAAOhB,EAAEgB,E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ASpB,EAAOrF,SAASsB,oBAAoBiF,EAAWE,YAgB7D,IA/CX,CAmDEC","file":"lzstring.js","sourcesContent":["/* global\n\tLZString\n*/\n\n//=include vendor/lz-string/libs/lz-string.js\n\n(function(global) {\n\t'use strict';\n\n\tfunction definition(path, iterate, isObject, isTypeOf) {\n\t\tvar pattern = [ { pattern: path, weight: path.length, state: false }],\n\t\t\tstorage = {};\n\n\t\tdemand\n\t\t\t.on('postConfigure:' + path, function(options) {\n\t\t\t\tif(isObject(options)) {\n\t\t\t\t\tpattern.length = 0;\n\n\t\t\t\t\titerate(options, function(key, value) {\n\t\t\t\t\t\tpattern.push({ pattern: key, weight: key.length, state: value });\n\t\t\t\t\t});\n\t\t\t\t} else if(isTypeOf(options, 'boolean')) {\n\t\t\t\t\tpattern.push({ pattern: '', weight: 0, state: options });\n\t\t\t\t}\n\t\t\t})\n\t\t\t.on('cacheHit', function(dependency) {\n\t\t\t\tif(isEnabled(dependency.path)) {\n\t\t\t\t\tstorage[dependency.id] = true;\n\t\t\t\t}\n\t\t\t})\n\t\t\t.on('preCache', function(dependency) {\n\t\t\t\tif(isEnabled(dependency.path)) {\n\t\t\t\t\tdependency.source = global.LZString.compressToUTF16(dependency.source);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.on('preProcess', function(dependency) {\n\t\t\t\tif(storage[dependency.id]) {\n\t\t\t\t\tdependency.source = global.LZString.decompressFromUTF16(dependency.source);\n\t\t\t\t}\n\t\t\t});\n\n\t\tfunction isEnabled(path) {\n\t\t\tvar i = 0, pointer, match;\n\n\t\t\tfor(; (pointer = pattern[i]); i++) {\n\t\t\t\tif(path.indexOf(pointer.pattern) === 0 && (!match || pointer.weight > match.weight)) {\n\t\t\t\t\tmatch = pointer;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn match ? match.state : false;\n\t\t}\n\n return true;\n\t}\n\n\tprovide([ 'path', '/demand/function/iterate', '/demand/validator/isObject', '/demand/validator/isTypeOf' ], definition);\n}(this));\n"]} \ No newline at end of file diff --git a/dist/plugin/sri.js b/dist/plugin/sri.js index 354b71a..8dab0d9 100644 --- a/dist/plugin/sri.js +++ b/dist/plugin/sri.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 5.2.0 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ -var SUPPORTED_ALGS=15;!function(r){"use strict";function m(r,e){this.highOrder=r,this.lowOrder=e}function R(r,e,n,t){var o,i,h,w="0123456789abcdef",d="",u=e/8;for(h=-1===n?3:0,o=0;o>>2]>>>8*(h+n*(o%4)),d+=w.charAt(i>>>4&15)+w.charAt(15&i);return t.outputUpper?d.toUpperCase():d}function b(r,e,n,t){var o,i,h,w,d,u,f="",a=e/8;for(u=-1===n?3:0,o=0;o>>2]:0,d=o+2>>2]:0,h=(r[o>>>2]>>>8*(u+n*(o%4))&255)<<16|(w>>>8*(u+n*((o+1)%4))&255)<<8|d>>>8*(u+n*((o+2)%4))&255,i=0;i<4;i+=1)f+=8*o+6*i<=e?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>>6*(3-i)&63):t.b64Pad;return f}function T(r,e,n){var t,o,i,h="",w=e/8;for(i=-1===n?3:0,t=0;t>>2]>>>8*(i+n*(t%4))&255,h+=String.fromCharCode(o);return h}function L(r,e,n){var t,o,i,h=e/8,w=new ArrayBuffer(h);for(i=new Uint8Array(w),o=-1===n?3:0,t=0;t>>2]>>>8*(o+n*(t%4))&255;return w}function k(r){var e,n={outputUpper:!1,b64Pad:"=",shakeLen:-1};if(e=r||{},n.outputUpper=e.outputUpper||!1,!0===e.hasOwnProperty("b64Pad")&&(n.b64Pad=e.b64Pad),!0===e.hasOwnProperty("shakeLen")&&0!=(8&SUPPORTED_ALGS)){if(e.shakeLen%8!=0)throw new Error("shakeLen must be a multiple of 8");n.shakeLen=e.shakeLen}if("boolean"!=typeof n.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof n.b64Pad)throw new Error("Invalid b64Pad formatting option");return n}function y(r,n,t){var e;switch(n){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(r){case"HEX":e=function(r,e,n){return function(r,e,n,t){var o,i,h,w,d,u,f,a=r.length;if(0!=a%2)throw new Error("String of HEX type must be in byte increments");for(o=e||[0],u=(n=n||0)>>>3,f=-1===t?3:0,i=0;i>>1)+u)>>>2;o.length<=w;)o.push(0);o[w]|=h<<8*(f+t*(d%4))}return{value:o,binLen:4*a+n}}(r,e,n,t)};break;case"TEXT":e=function(r,g,e){return function(r,e,n,t,o){var i,h,w,d,u,f,a,O,l,s,c=0;if(i=g||[0],f=(t=t||0)>>>3,"UTF8"===e)for(l=-1===o?3:0,d=0;d>>6),w.push(128|63&h)):h<55296||57344<=h?w.push(224|h>>>12,128|h>>>6&63,128|63&h):(d+=1,h=65536+((1023&h)<<10|1023&r.charCodeAt(d)),w.push(240|h>>>18,128|h>>>12&63,128|h>>>6&63,128|63&h)),u=0;u>>2;i.length<=a;)i.push(0);i[a]|=w[u]<<8*(l+o*(O%4)),c+=1}else if("UTF16BE"===e||"UTF16LE"===e)for(l=-1===o?2:0,s="UTF16LE"===e&&1!==o||"UTF16LE"!==e&&1===o,d=0;d>>8),a=(O=c+f)>>>2;i.length<=a;)i.push(0);i[a]|=h<<8*(l+o*(O%4)),c+=2}return{value:i,binLen:8*c+t}}(r,n,0,e,t)};break;case"B64":e=function(r,e,n){return function(r,e,n,t){var o,i,h,w,d,u,f,a,O,l,s=0;if(-1===r.search(/^[a-zA-Z0-9=+\/]+$/))throw new Error("Invalid character in base-64 string");if(u=r.indexOf("="),r=r.replace(/\=/g,""),-1!==u&&u>>2]>>>8*(h+n*(o%4)),w+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return t.outputUpper?w.toUpperCase():w}function d(r,e,n,t){var o,i,h,w,d,u,f="",a=e/8;for(u=-1===n?3:0,o=0;o>>2]:0,d=o+2>>2]:0,h=(r[o>>>2]>>>8*(u+n*(o%4))&255)<<16|(w>>>8*(u+n*((o+1)%4))&255)<<8|d>>>8*(u+n*((o+2)%4))&255,i=0;i<4;i+=1)f+=8*o+6*i<=e?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>>6*(3-i)&63):t.b64Pad;return f}function u(r,e,n){var t,o,i,h="",w=e/8;for(i=-1===n?3:0,t=0;t>>2]>>>8*(i+n*(t%4))&255,h+=String.fromCharCode(o);return h}function f(r,e,n){var t,o,i,h=e/8,w=new ArrayBuffer(h);for(i=new Uint8Array(w),o=-1===n?3:0,t=0;t>>2]>>>8*(o+n*(t%4))&255;return w}function a(r){var e,n={outputUpper:!1,b64Pad:"=",shakeLen:-1};if(e=r||{},n.outputUpper=e.outputUpper||!1,!0===e.hasOwnProperty("b64Pad")&&(n.b64Pad=e.b64Pad),!0===e.hasOwnProperty("shakeLen")&&0!=(8&SUPPORTED_ALGS)){if(e.shakeLen%8!=0)throw new Error("shakeLen must be a multiple of 8");n.shakeLen=e.shakeLen}if("boolean"!=typeof n.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof n.b64Pad)throw new Error("Invalid b64Pad formatting option");return n}function O(r,e,n){var t;switch(e){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(r){case"HEX":t=function(r,e,t){return function(r,e,n,t){var o,i,h,w,d,u,f,a=r.length;if(0!=a%2)throw new Error("String of HEX type must be in byte increments");for(o=e||[0],u=(n=n||0)>>>3,f=-1===t?3:0,i=0;i>>1)+u)>>>2;o.length<=w;)o.push(0);o[w]|=h<<8*(f+t*(d%4))}return{value:o,binLen:4*a+n}}(r,e,t,n)};break;case"TEXT":t=function(r,t,o){return function(r,e,n,o,i){var h,w,d,u,f,a,O,l,s,c,g=0;if(h=t||[0],a=(o=o||0)>>>3,"UTF8"===e)for(s=-1===i?3:0,u=0;u(w=r.charCodeAt(u))?d.push(w):2048>w?(d.push(192|w>>>6),d.push(128|63&w)):55296>w||57344<=w?d.push(224|w>>>12,128|w>>>6&63,128|63&w):(u+=1,w=65536+((1023&w)<<10|1023&r.charCodeAt(u)),d.push(240|w>>>18,128|w>>>12&63,128|w>>>6&63,128|63&w)),f=0;f>>2;h.length<=O;)h.push(0);h[O]|=d[f]<<8*(s+i*(l%4)),g+=1}else if("UTF16BE"===e||"UTF16LE"===e)for(s=-1===i?2:0,c="UTF16LE"===e&&1!==i||"UTF16LE"!==e&&1===i,u=0;u>>8),O=(l=g+a)>>>2;h.length<=O;)h.push(0);h[O]|=w<<8*(s+i*(l%4)),g+=2}return{value:h,binLen:8*g+o}}(r,e,0,o,n)};break;case"B64":t=function(r,e,t){return function(r,e,n,t){var o,i,h,w,d,u,f,a,O,l,s=0;if(-1===r.search(/^[a-zA-Z0-9=+\/]+$/))throw new Error("Invalid character in base-64 string");if(u=r.indexOf("="),r=r.replace(/\=/g,""),-1!==u&&u>> 3;\n\t\tif (\"UTF8\" === utfType) {\n\t\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\t\tfor (i = 0; i < str.length; i += 1) {\n\t\t\t\tcodePntArr = [];\n\t\t\t\tif (128 > (codePnt = str.charCodeAt(i))) codePntArr.push(codePnt);\n\t\t\t\telse if (2048 > codePnt) {\n\t\t\t\t\tcodePntArr.push(192 | codePnt >>> 6);\n\t\t\t\t\tcodePntArr.push(128 | 63 & codePnt)\n\t\t\t\t} else if (55296 > codePnt || 57344 <= codePnt) codePntArr.push(224 | codePnt >>> 12, 128 | codePnt >>> 6 & 63, 128 | 63 & codePnt);\n\t\t\t\telse {\n\t\t\t\t\ti += 1;\n\t\t\t\t\tcodePnt = 65536 + ((1023 & codePnt) << 10 | 1023 & str.charCodeAt(i));\n\t\t\t\t\tcodePntArr.push(240 | codePnt >>> 18, 128 | codePnt >>> 12 & 63, 128 | codePnt >>> 6 & 63, 128 | 63 & codePnt)\n\t\t\t\t}\n\t\t\t\tfor (j = 0; j < codePntArr.length; j += 1) {\n\t\t\t\t\tintOffset = (byteOffset = byteCnt + existingByteLen) >>> 2;\n\t\t\t\t\twhile (packed.length <= intOffset) packed.push(0);\n\t\t\t\t\tpacked[intOffset] |= codePntArr[j] << 8 * (shiftModifier + bigEndianMod * (byteOffset % 4));\n\t\t\t\t\tbyteCnt += 1\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (\"UTF16BE\" === utfType || \"UTF16LE\" === utfType) {\n\t\t\tshiftModifier = -1 === bigEndianMod ? 2 : 0;\n\t\t\ttransposeBytes = \"UTF16LE\" === utfType && 1 !== bigEndianMod || \"UTF16LE\" !== utfType && 1 === bigEndianMod;\n\t\t\tfor (i = 0; i < str.length; i += 1) {\n\t\t\t\tcodePnt = str.charCodeAt(i);\n\t\t\t\tif (true === transposeBytes) codePnt = (j = 255 & codePnt) << 8 | codePnt >>> 8;\n\t\t\t\tintOffset = (byteOffset = byteCnt + existingByteLen) >>> 2;\n\t\t\t\twhile (packed.length <= intOffset) packed.push(0);\n\t\t\t\tpacked[intOffset] |= codePnt << 8 * (shiftModifier + bigEndianMod * (byteOffset % 4));\n\t\t\t\tbyteCnt += 2\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tvalue: packed,\n\t\t\tbinLen: 8 * byteCnt + existingPackedLen\n\t\t}\n\t}\n\n\tfunction hex2packed(str, existingPacked, existingPackedLen, bigEndianMod) {\n\t\tvar packed, i, num, intOffset, byteOffset, existingByteLen, shiftModifier, length = str.length;\n\t\tif (0 !== length % 2) throw new Error(\"String of HEX type must be in byte increments\");\n\t\tpacked = existingPacked || [0];\n\t\texistingByteLen = (existingPackedLen = existingPackedLen || 0) >>> 3;\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tfor (i = 0; i < length; i += 2) {\n\t\t\tnum = parseInt(str.substr(i, 2), 16);\n\t\t\tif (!isNaN(num)) {\n\t\t\t\tintOffset = (byteOffset = (i >>> 1) + existingByteLen) >>> 2;\n\t\t\t\twhile (packed.length <= intOffset) packed.push(0);\n\t\t\t\tpacked[intOffset] |= num << 8 * (shiftModifier + bigEndianMod * (byteOffset % 4))\n\t\t\t} else throw new Error(\"String of HEX type contains invalid characters\")\n\t\t}\n\t\treturn {\n\t\t\tvalue: packed,\n\t\t\tbinLen: 4 * length + existingPackedLen\n\t\t}\n\t}\n\n\tfunction bytes2packed(str, existingPacked, existingPackedLen, bigEndianMod) {\n\t\tvar packed, codePnt, i, existingByteLen, intOffset, byteOffset, shiftModifier;\n\t\tpacked = existingPacked || [0];\n\t\texistingByteLen = (existingPackedLen = existingPackedLen || 0) >>> 3;\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tfor (i = 0; i < str.length; i += 1) {\n\t\t\tcodePnt = str.charCodeAt(i);\n\t\t\tintOffset = (byteOffset = i + existingByteLen) >>> 2;\n\t\t\tif (packed.length <= intOffset) packed.push(0);\n\t\t\tpacked[intOffset] |= codePnt << 8 * (shiftModifier + bigEndianMod * (byteOffset % 4))\n\t\t}\n\t\treturn {\n\t\t\tvalue: packed,\n\t\t\tbinLen: 8 * str.length + existingPackedLen\n\t\t}\n\t}\n\n\tfunction b642packed(str, existingPacked, existingPackedLen, bigEndianMod) {\n\t\tvar packed, i, j, tmpInt, strPart, firstEqual, existingByteLen, intOffset, byteOffset, shiftModifier, byteCnt = 0,\n\t\t\tb64Tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\t\tif (-1 === str.search(/^[a-zA-Z0-9=+\\/]+$/)) throw new Error(\"Invalid character in base-64 string\");\n\t\tfirstEqual = str.indexOf(\"=\");\n\t\tstr = str.replace(/\\=/g, \"\");\n\t\tif (-1 !== firstEqual && firstEqual < str.length) throw new Error(\"Invalid '=' found in base-64 string\");\n\t\tpacked = existingPacked || [0];\n\t\texistingByteLen = (existingPackedLen = existingPackedLen || 0) >>> 3;\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tfor (i = 0; i < str.length; i += 4) {\n\t\t\tstrPart = str.substr(i, 4);\n\t\t\tfor (j = tmpInt = 0; j < strPart.length; j += 1) tmpInt |= b64Tab.indexOf(strPart[j]) << 18 - 6 * j;\n\t\t\tfor (j = 0; j < strPart.length - 1; j += 1) {\n\t\t\t\tintOffset = (byteOffset = byteCnt + existingByteLen) >>> 2;\n\t\t\t\twhile (packed.length <= intOffset) packed.push(0);\n\t\t\t\tpacked[intOffset] |= (tmpInt >>> 16 - 8 * j & 255) << 8 * (shiftModifier + bigEndianMod * (byteOffset % 4));\n\t\t\t\tbyteCnt += 1\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tvalue: packed,\n\t\t\tbinLen: 8 * byteCnt + existingPackedLen\n\t\t}\n\t}\n\n\tfunction arraybuffer2packed(arr, existingPacked, existingPackedLen, bigEndianMod) {\n\t\tvar packed, i, existingByteLen, intOffset, byteOffset, shiftModifier, arrView;\n\t\tpacked = existingPacked || [0];\n\t\texistingByteLen = (existingPackedLen = existingPackedLen || 0) >>> 3;\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tarrView = new Uint8Array(arr);\n\t\tfor (i = 0; i < arr.byteLength; i += 1) {\n\t\t\tintOffset = (byteOffset = i + existingByteLen) >>> 2;\n\t\t\tif (packed.length <= intOffset) packed.push(0);\n\t\t\tpacked[intOffset] |= arrView[i] << 8 * (shiftModifier + bigEndianMod * (byteOffset % 4))\n\t\t}\n\t\treturn {\n\t\t\tvalue: packed,\n\t\t\tbinLen: 8 * arr.byteLength + existingPackedLen\n\t\t}\n\t}\n\n\tfunction packed2hex(packed, outputLength, bigEndianMod, formatOpts) {\n\t\tvar i, srcByte, shiftModifier, hex_tab = \"0123456789abcdef\",\n\t\t\tstr = \"\",\n\t\t\tlength = outputLength / 8;\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tfor (i = 0; i < length; i += 1) {\n\t\t\tsrcByte = packed[i >>> 2] >>> 8 * (shiftModifier + bigEndianMod * (i % 4));\n\t\t\tstr += hex_tab.charAt(srcByte >>> 4 & 15) + hex_tab.charAt(15 & srcByte)\n\t\t}\n\t\treturn formatOpts.outputUpper ? str.toUpperCase() : str\n\t}\n\n\tfunction packed2b64(packed, outputLength, bigEndianMod, formatOpts) {\n\t\tvar i, j, triplet, int1, int2, shiftModifier, str = \"\",\n\t\t\tlength = outputLength / 8,\n\t\t\tb64Tab = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tfor (i = 0; i < length; i += 3) {\n\t\t\tint1 = i + 1 < length ? packed[i + 1 >>> 2] : 0;\n\t\t\tint2 = i + 2 < length ? packed[i + 2 >>> 2] : 0;\n\t\t\ttriplet = (packed[i >>> 2] >>> 8 * (shiftModifier + bigEndianMod * (i % 4)) & 255) << 16 | (int1 >>> 8 * (shiftModifier + bigEndianMod * ((i + 1) % 4)) & 255) << 8 | int2 >>> 8 * (shiftModifier + bigEndianMod * ((i + 2) % 4)) & 255;\n\t\t\tfor (j = 0; j < 4; j += 1)\n\t\t\t\tif (8 * i + 6 * j <= outputLength) str += b64Tab.charAt(triplet >>> 6 * (3 - j) & 63);\n\t\t\t\telse str += formatOpts.b64Pad\n\t\t}\n\t\treturn str\n\t}\n\n\tfunction packed2bytes(packed, outputLength, bigEndianMod) {\n\t\tvar i, srcByte, shiftModifier, str = \"\",\n\t\t\tlength = outputLength / 8;\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tfor (i = 0; i < length; i += 1) {\n\t\t\tsrcByte = packed[i >>> 2] >>> 8 * (shiftModifier + bigEndianMod * (i % 4)) & 255;\n\t\t\tstr += String.fromCharCode(srcByte)\n\t\t}\n\t\treturn str\n\t}\n\n\tfunction packed2arraybuffer(packed, outputLength, bigEndianMod) {\n\t\tvar i, shiftModifier, arrView, length = outputLength / 8,\n\t\t\tretVal = new ArrayBuffer(length);\n\t\tarrView = new Uint8Array(retVal);\n\t\tshiftModifier = -1 === bigEndianMod ? 3 : 0;\n\t\tfor (i = 0; i < length; i += 1) arrView[i] = packed[i >>> 2] >>> 8 * (shiftModifier + bigEndianMod * (i % 4)) & 255;\n\t\treturn retVal\n\t}\n\n\tfunction getOutputOpts(options) {\n\t\tvar outputOptions, retVal = {\n\t\t\toutputUpper: false,\n\t\t\tb64Pad: \"=\",\n\t\t\tshakeLen: -1\n\t\t};\n\t\toutputOptions = options || {};\n\t\tretVal.outputUpper = outputOptions.outputUpper || false;\n\t\tif (true === outputOptions.hasOwnProperty(\"b64Pad\")) retVal.b64Pad = outputOptions.b64Pad;\n\t\tif (true === outputOptions.hasOwnProperty(\"shakeLen\") && 0 !== (8 & SUPPORTED_ALGS)) {\n\t\t\tif (outputOptions.shakeLen % 8 !== 0) throw new Error(\"shakeLen must be a multiple of 8\");\n\t\t\tretVal.shakeLen = outputOptions.shakeLen\n\t\t}\n\t\tif (\"boolean\" !== typeof retVal.outputUpper) throw new Error(\"Invalid outputUpper formatting option\");\n\t\tif (\"string\" !== typeof retVal.b64Pad) throw new Error(\"Invalid b64Pad formatting option\");\n\t\treturn retVal\n\t}\n\n\tfunction getStrConverter(format, utfType, bigEndianMod) {\n\t\tvar retVal;\n\t\tswitch (utfType) {\n\t\tcase \"UTF8\":\n\t\tcase \"UTF16BE\":\n\t\tcase \"UTF16LE\":\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new Error(\"encoding must be UTF8, UTF16BE, or UTF16LE\")\n\t\t}\n\t\tswitch (format) {\n\t\tcase \"HEX\":\n\t\t\tretVal = function (str, existingBin, existingBinLen) {\n\t\t\t\treturn hex2packed(str, existingBin, existingBinLen, bigEndianMod)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"TEXT\":\n\t\t\tretVal = function (str, existingBin, existingBinLen) {\n\t\t\t\treturn str2packed(str, utfType, existingBin, existingBinLen, bigEndianMod)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"B64\":\n\t\t\tretVal = function (str, existingBin, existingBinLen) {\n\t\t\t\treturn b642packed(str, existingBin, existingBinLen, bigEndianMod)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"BYTES\":\n\t\t\tretVal = function (str, existingBin, existingBinLen) {\n\t\t\t\treturn bytes2packed(str, existingBin, existingBinLen, bigEndianMod)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"ARRAYBUFFER\":\n\t\t\ttry {\n\t\t\t\tretVal = new ArrayBuffer(0)\n\t\t\t} catch (ignore) {\n\t\t\t\tthrow new Error(\"ARRAYBUFFER not supported by this environment\")\n\t\t\t}\n\t\t\tretVal = function (arr, existingBin, existingBinLen) {\n\t\t\t\treturn arraybuffer2packed(arr, existingBin, existingBinLen, bigEndianMod)\n\t\t\t};\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new Error(\"format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER\")\n\t\t}\n\t\treturn retVal\n\t}\n\n\tfunction rotl_32(x, n) {\n\t\treturn x << n | x >>> 32 - n\n\t}\n\n\tfunction rotl_64(x, n) {\n\t\tif (n > 32) {\n\t\t\tn -= 32;\n\t\t\treturn new Int_64(x.lowOrder << n | x.highOrder >>> 32 - n, x.highOrder << n | x.lowOrder >>> 32 - n)\n\t\t} else if (0 !== n) return new Int_64(x.highOrder << n | x.lowOrder >>> 32 - n, x.lowOrder << n | x.highOrder >>> 32 - n);\n\t\telse return x\n\t}\n\n\tfunction rotr_32(x, n) {\n\t\treturn x >>> n | x << 32 - n\n\t}\n\n\tfunction rotr_64(x, n) {\n\t\tvar retVal = null,\n\t\t\ttmp = new Int_64(x.highOrder, x.lowOrder);\n\t\tif (32 >= n) retVal = new Int_64(tmp.highOrder >>> n | tmp.lowOrder << 32 - n & 4294967295, tmp.lowOrder >>> n | tmp.highOrder << 32 - n & 4294967295);\n\t\telse retVal = new Int_64(tmp.lowOrder >>> n - 32 | tmp.highOrder << 64 - n & 4294967295, tmp.highOrder >>> n - 32 | tmp.lowOrder << 64 - n & 4294967295);\n\t\treturn retVal\n\t}\n\n\tfunction shr_32(x, n) {\n\t\treturn x >>> n\n\t}\n\n\tfunction shr_64(x, n) {\n\t\tvar retVal = null;\n\t\tif (32 >= n) retVal = new Int_64(x.highOrder >>> n, x.lowOrder >>> n | x.highOrder << 32 - n & 4294967295);\n\t\telse retVal = new Int_64(0, x.highOrder >>> n - 32);\n\t\treturn retVal\n\t}\n\n\tfunction parity_32(x, y, z) {\n\t\treturn x ^ y ^ z\n\t}\n\n\tfunction ch_32(x, y, z) {\n\t\treturn x & y ^ ~x & z\n\t}\n\n\tfunction ch_64(x, y, z) {\n\t\treturn new Int_64(x.highOrder & y.highOrder ^ ~x.highOrder & z.highOrder, x.lowOrder & y.lowOrder ^ ~x.lowOrder & z.lowOrder)\n\t}\n\n\tfunction maj_32(x, y, z) {\n\t\treturn x & y ^ x & z ^ y & z\n\t}\n\n\tfunction maj_64(x, y, z) {\n\t\treturn new Int_64(x.highOrder & y.highOrder ^ x.highOrder & z.highOrder ^ y.highOrder & z.highOrder, x.lowOrder & y.lowOrder ^ x.lowOrder & z.lowOrder ^ y.lowOrder & z.lowOrder)\n\t}\n\n\tfunction sigma0_32(x) {\n\t\treturn rotr_32(x, 2) ^ rotr_32(x, 13) ^ rotr_32(x, 22)\n\t}\n\n\tfunction sigma0_64(x) {\n\t\tvar rotr28 = rotr_64(x, 28),\n\t\t\trotr34 = rotr_64(x, 34),\n\t\t\trotr39 = rotr_64(x, 39);\n\t\treturn new Int_64(rotr28.highOrder ^ rotr34.highOrder ^ rotr39.highOrder, rotr28.lowOrder ^ rotr34.lowOrder ^ rotr39.lowOrder)\n\t}\n\n\tfunction sigma1_32(x) {\n\t\treturn rotr_32(x, 6) ^ rotr_32(x, 11) ^ rotr_32(x, 25)\n\t}\n\n\tfunction sigma1_64(x) {\n\t\tvar rotr14 = rotr_64(x, 14),\n\t\t\trotr18 = rotr_64(x, 18),\n\t\t\trotr41 = rotr_64(x, 41);\n\t\treturn new Int_64(rotr14.highOrder ^ rotr18.highOrder ^ rotr41.highOrder, rotr14.lowOrder ^ rotr18.lowOrder ^ rotr41.lowOrder)\n\t}\n\n\tfunction gamma0_32(x) {\n\t\treturn rotr_32(x, 7) ^ rotr_32(x, 18) ^ shr_32(x, 3)\n\t}\n\n\tfunction gamma0_64(x) {\n\t\tvar rotr1 = rotr_64(x, 1),\n\t\t\trotr8 = rotr_64(x, 8),\n\t\t\tshr7 = shr_64(x, 7);\n\t\treturn new Int_64(rotr1.highOrder ^ rotr8.highOrder ^ shr7.highOrder, rotr1.lowOrder ^ rotr8.lowOrder ^ shr7.lowOrder)\n\t}\n\n\tfunction gamma1_32(x) {\n\t\treturn rotr_32(x, 17) ^ rotr_32(x, 19) ^ shr_32(x, 10)\n\t}\n\n\tfunction gamma1_64(x) {\n\t\tvar rotr19 = rotr_64(x, 19),\n\t\t\trotr61 = rotr_64(x, 61),\n\t\t\tshr6 = shr_64(x, 6);\n\t\treturn new Int_64(rotr19.highOrder ^ rotr61.highOrder ^ shr6.highOrder, rotr19.lowOrder ^ rotr61.lowOrder ^ shr6.lowOrder)\n\t}\n\n\tfunction safeAdd_32_2(a, b) {\n\t\tvar lsw = (65535 & a) + (65535 & b);\n\t\treturn (65535 & (a >>> 16) + (b >>> 16) + (lsw >>> 16)) << 16 | 65535 & lsw\n\t}\n\n\tfunction safeAdd_32_4(a, b, c, d) {\n\t\tvar lsw = (65535 & a) + (65535 & b) + (65535 & c) + (65535 & d);\n\t\treturn (65535 & (a >>> 16) + (b >>> 16) + (c >>> 16) + (d >>> 16) + (lsw >>> 16)) << 16 | 65535 & lsw\n\t}\n\n\tfunction safeAdd_32_5(a, b, c, d, e) {\n\t\tvar lsw = (65535 & a) + (65535 & b) + (65535 & c) + (65535 & d) + (65535 & e);\n\t\treturn (65535 & (a >>> 16) + (b >>> 16) + (c >>> 16) + (d >>> 16) + (e >>> 16) + (lsw >>> 16)) << 16 | 65535 & lsw\n\t}\n\n\tfunction safeAdd_64_2(x, y) {\n\t\tvar lsw, msw, lowOrder;\n\t\tlsw = (65535 & x.lowOrder) + (65535 & y.lowOrder);\n\t\tlowOrder = (65535 & (msw = (x.lowOrder >>> 16) + (y.lowOrder >>> 16) + (lsw >>> 16))) << 16 | 65535 & lsw;\n\t\tlsw = (65535 & x.highOrder) + (65535 & y.highOrder) + (msw >>> 16);\n\t\treturn new Int_64((65535 & (msw = (x.highOrder >>> 16) + (y.highOrder >>> 16) + (lsw >>> 16))) << 16 | 65535 & lsw, lowOrder)\n\t}\n\n\tfunction safeAdd_64_4(a, b, c, d) {\n\t\tvar lsw, msw, lowOrder;\n\t\tlsw = (65535 & a.lowOrder) + (65535 & b.lowOrder) + (65535 & c.lowOrder) + (65535 & d.lowOrder);\n\t\tlowOrder = (65535 & (msw = (a.lowOrder >>> 16) + (b.lowOrder >>> 16) + (c.lowOrder >>> 16) + (d.lowOrder >>> 16) + (lsw >>> 16))) << 16 | 65535 & lsw;\n\t\tlsw = (65535 & a.highOrder) + (65535 & b.highOrder) + (65535 & c.highOrder) + (65535 & d.highOrder) + (msw >>> 16);\n\t\treturn new Int_64((65535 & (msw = (a.highOrder >>> 16) + (b.highOrder >>> 16) + (c.highOrder >>> 16) + (d.highOrder >>> 16) + (lsw >>> 16))) << 16 | 65535 & lsw, lowOrder)\n\t}\n\n\tfunction safeAdd_64_5(a, b, c, d, e) {\n\t\tvar lsw, msw, lowOrder;\n\t\tlsw = (65535 & a.lowOrder) + (65535 & b.lowOrder) + (65535 & c.lowOrder) + (65535 & d.lowOrder) + (65535 & e.lowOrder);\n\t\tlowOrder = (65535 & (msw = (a.lowOrder >>> 16) + (b.lowOrder >>> 16) + (c.lowOrder >>> 16) + (d.lowOrder >>> 16) + (e.lowOrder >>> 16) + (lsw >>> 16))) << 16 | 65535 & lsw;\n\t\tlsw = (65535 & a.highOrder) + (65535 & b.highOrder) + (65535 & c.highOrder) + (65535 & d.highOrder) + (65535 & e.highOrder) + (msw >>> 16);\n\t\treturn new Int_64((65535 & (msw = (a.highOrder >>> 16) + (b.highOrder >>> 16) + (c.highOrder >>> 16) + (d.highOrder >>> 16) + (e.highOrder >>> 16) + (lsw >>> 16))) << 16 | 65535 & lsw, lowOrder)\n\t}\n\n\tfunction xor_64_2(a, b) {\n\t\treturn new Int_64(a.highOrder ^ b.highOrder, a.lowOrder ^ b.lowOrder)\n\t}\n\n\tfunction xor_64_5(a, b, c, d, e) {\n\t\treturn new Int_64(a.highOrder ^ b.highOrder ^ c.highOrder ^ d.highOrder ^ e.highOrder, a.lowOrder ^ b.lowOrder ^ c.lowOrder ^ d.lowOrder ^ e.lowOrder)\n\t}\n\n\tfunction cloneSHA3State(state) {\n\t\tvar i, clone = [];\n\t\tfor (i = 0; i < 5; i += 1) clone[i] = state[i].slice();\n\t\treturn clone\n\t}\n\n\tfunction getNewState(variant) {\n\t\tvar H_trunc, H_full, i, retVal = [];\n\t\tif (\"SHA-1\" === variant && 0 !== (1 & SUPPORTED_ALGS)) retVal = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];\n\t\telse if (0 === variant.lastIndexOf(\"SHA-\", 0) && 0 !== (6 & SUPPORTED_ALGS)) {\n\t\t\tH_trunc = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428];\n\t\t\tH_full = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225];\n\t\t\tswitch (variant) {\n\t\t\tcase \"SHA-224\":\n\t\t\t\tretVal = H_trunc;\n\t\t\t\tbreak;\n\t\t\tcase \"SHA-256\":\n\t\t\t\tretVal = H_full;\n\t\t\t\tbreak;\n\t\t\tcase \"SHA-384\":\n\t\t\t\tretVal = [new Int_64(3418070365, H_trunc[0]), new Int_64(1654270250, H_trunc[1]), new Int_64(2438529370, H_trunc[2]), new Int_64(355462360, H_trunc[3]), new Int_64(1731405415, H_trunc[4]), new Int_64(41048885895, H_trunc[5]), new Int_64(3675008525, H_trunc[6]), new Int_64(1203062813, H_trunc[7])];\n\t\t\t\tbreak;\n\t\t\tcase \"SHA-512\":\n\t\t\t\tretVal = [new Int_64(H_full[0], 4089235720), new Int_64(H_full[1], 2227873595), new Int_64(H_full[2], 4271175723), new Int_64(H_full[3], 1595750129), new Int_64(H_full[4], 2917565137), new Int_64(H_full[5], 725511199), new Int_64(H_full[6], 4215389547), new Int_64(H_full[7], 327033209)];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Error(\"Unknown SHA variant\")\n\t\t\t}\n\t\t} else if ((0 === variant.lastIndexOf(\"SHA3-\", 0) || 0 === variant.lastIndexOf(\"SHAKE\", 0)) && 0 !== (8 & SUPPORTED_ALGS))\n\t\t\tfor (i = 0; i < 5; i += 1) retVal[i] = [new Int_64(0, 0), new Int_64(0, 0), new Int_64(0, 0), new Int_64(0, 0), new Int_64(0, 0)];\n\t\telse throw new Error(\"No SHA variants supported\");\n\t\treturn retVal\n\t}\n\n\tfunction roundSHA1(block, H) {\n\t\tvar a, b, c, d, e, T, t, W = [],\n\t\t\tch = ch_32,\n\t\t\tparity = parity_32,\n\t\t\tmaj = maj_32,\n\t\t\trotl = rotl_32,\n\t\t\tsafeAdd_2 = safeAdd_32_2,\n\t\t\tsafeAdd_5 = safeAdd_32_5;\n\t\ta = H[0];\n\t\tb = H[1];\n\t\tc = H[2];\n\t\td = H[3];\n\t\te = H[4];\n\t\tfor (t = 0; t < 80; t += 1) {\n\t\t\tif (t < 16) W[t] = block[t];\n\t\t\telse W[t] = rotl(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);\n\t\t\tif (t < 20) T = safeAdd_5(rotl(a, 5), ch(b, c, d), e, 1518500249, W[t]);\n\t\t\telse if (t < 40) T = safeAdd_5(rotl(a, 5), parity(b, c, d), e, 1859775393, W[t]);\n\t\t\telse if (t < 60) T = safeAdd_5(rotl(a, 5), maj(b, c, d), e, 2400959708, W[t]);\n\t\t\telse T = safeAdd_5(rotl(a, 5), parity(b, c, d), e, 3395469782, W[t]);\n\t\t\te = d;\n\t\t\td = c;\n\t\t\tc = rotl(b, 30);\n\t\t\tb = a;\n\t\t\ta = T\n\t\t}\n\t\tH[0] = safeAdd_2(a, H[0]);\n\t\tH[1] = safeAdd_2(b, H[1]);\n\t\tH[2] = safeAdd_2(c, H[2]);\n\t\tH[3] = safeAdd_2(d, H[3]);\n\t\tH[4] = safeAdd_2(e, H[4]);\n\t\treturn H\n\t}\n\n\tfunction finalizeSHA1(remainder, remainderBinLen, processedBinLen, H, outputLen) {\n\t\tvar i, appendedMessageLength, offset, totalLen;\n\t\toffset = 15 + (remainderBinLen + 65 >>> 9 << 4);\n\t\twhile (remainder.length <= offset) remainder.push(0);\n\t\tremainder[remainderBinLen >>> 5] |= 128 << 24 - remainderBinLen % 32;\n\t\ttotalLen = remainderBinLen + processedBinLen;\n\t\tremainder[offset] = 4294967295 & totalLen;\n\t\tremainder[offset - 1] = totalLen / TWO_PWR_32 | 0;\n\t\tappendedMessageLength = remainder.length;\n\t\tfor (i = 0; i < appendedMessageLength; i += 16) H = roundSHA1(remainder.slice(i, i + 16), H);\n\t\treturn H\n\t}\n\n\tfunction roundSHA2(block, H, variant) {\n\t\tvar a, b, c, d, e, f, g, h, T1, T2, numRounds, t, binaryStringMult, safeAdd_2, safeAdd_4, safeAdd_5, gamma0, gamma1, sigma0, sigma1, ch, maj, Int, int1, int2, offset, K, W = [];\n\t\tif ((\"SHA-224\" === variant || \"SHA-256\" === variant) && 0 !== (2 & SUPPORTED_ALGS)) {\n\t\t\tnumRounds = 64;\n\t\t\tbinaryStringMult = 1;\n\t\t\tInt = Number;\n\t\t\tsafeAdd_2 = safeAdd_32_2;\n\t\t\tsafeAdd_4 = safeAdd_32_4;\n\t\t\tsafeAdd_5 = safeAdd_32_5;\n\t\t\tgamma0 = gamma0_32;\n\t\t\tgamma1 = gamma1_32;\n\t\t\tsigma0 = sigma0_32;\n\t\t\tsigma1 = sigma1_32;\n\t\t\tmaj = maj_32;\n\t\t\tch = ch_32;\n\t\t\tK = K_sha2\n\t\t} else if ((\"SHA-384\" === variant || \"SHA-512\" === variant) && 0 !== (4 & SUPPORTED_ALGS)) {\n\t\t\tnumRounds = 80;\n\t\t\tbinaryStringMult = 2;\n\t\t\tInt = Int_64;\n\t\t\tsafeAdd_2 = safeAdd_64_2;\n\t\t\tsafeAdd_4 = safeAdd_64_4;\n\t\t\tsafeAdd_5 = safeAdd_64_5;\n\t\t\tgamma0 = gamma0_64;\n\t\t\tgamma1 = gamma1_64;\n\t\t\tsigma0 = sigma0_64;\n\t\t\tsigma1 = sigma1_64;\n\t\t\tmaj = maj_64;\n\t\t\tch = ch_64;\n\t\t\tK = K_sha512\n\t\t} else throw new Error(\"Unexpected error in SHA-2 implementation\");\n\t\ta = H[0];\n\t\tb = H[1];\n\t\tc = H[2];\n\t\td = H[3];\n\t\te = H[4];\n\t\tf = H[5];\n\t\tg = H[6];\n\t\th = H[7];\n\t\tfor (t = 0; t < numRounds; t += 1) {\n\t\t\tif (t < 16) {\n\t\t\t\toffset = t * binaryStringMult;\n\t\t\t\tint1 = block.length <= offset ? 0 : block[offset];\n\t\t\t\tint2 = block.length <= offset + 1 ? 0 : block[offset + 1];\n\t\t\t\tW[t] = new Int(int1, int2)\n\t\t\t} else W[t] = safeAdd_4(gamma1(W[t - 2]), W[t - 7], gamma0(W[t - 15]), W[t - 16]);\n\t\t\tT1 = safeAdd_5(h, sigma1(e), ch(e, f, g), K[t], W[t]);\n\t\t\tT2 = safeAdd_2(sigma0(a), maj(a, b, c));\n\t\t\th = g;\n\t\t\tg = f;\n\t\t\tf = e;\n\t\t\te = safeAdd_2(d, T1);\n\t\t\td = c;\n\t\t\tc = b;\n\t\t\tb = a;\n\t\t\ta = safeAdd_2(T1, T2)\n\t\t}\n\t\tH[0] = safeAdd_2(a, H[0]);\n\t\tH[1] = safeAdd_2(b, H[1]);\n\t\tH[2] = safeAdd_2(c, H[2]);\n\t\tH[3] = safeAdd_2(d, H[3]);\n\t\tH[4] = safeAdd_2(e, H[4]);\n\t\tH[5] = safeAdd_2(f, H[5]);\n\t\tH[6] = safeAdd_2(g, H[6]);\n\t\tH[7] = safeAdd_2(h, H[7]);\n\t\treturn H\n\t}\n\n\tfunction finalizeSHA2(remainder, remainderBinLen, processedBinLen, H, variant, outputLen) {\n\t\tvar i, appendedMessageLength, offset, retVal, binaryStringInc, totalLen;\n\t\tif ((\"SHA-224\" === variant || \"SHA-256\" === variant) && 0 !== (2 & SUPPORTED_ALGS)) {\n\t\t\toffset = 15 + (remainderBinLen + 65 >>> 9 << 4);\n\t\t\tbinaryStringInc = 16\n\t\t} else if ((\"SHA-384\" === variant || \"SHA-512\" === variant) && 0 !== (4 & SUPPORTED_ALGS)) {\n\t\t\toffset = 31 + (remainderBinLen + 129 >>> 10 << 5);\n\t\t\tbinaryStringInc = 32\n\t\t} else throw new Error(\"Unexpected error in SHA-2 implementation\");\n\t\twhile (remainder.length <= offset) remainder.push(0);\n\t\tremainder[remainderBinLen >>> 5] |= 128 << 24 - remainderBinLen % 32;\n\t\ttotalLen = remainderBinLen + processedBinLen;\n\t\tremainder[offset] = 4294967295 & totalLen;\n\t\tremainder[offset - 1] = totalLen / TWO_PWR_32 | 0;\n\t\tappendedMessageLength = remainder.length;\n\t\tfor (i = 0; i < appendedMessageLength; i += binaryStringInc) H = roundSHA2(remainder.slice(i, i + binaryStringInc), H, variant);\n\t\tif (\"SHA-224\" === variant && 0 !== (2 & SUPPORTED_ALGS)) retVal = [H[0], H[1], H[2], H[3], H[4], H[5], H[6]];\n\t\telse if (\"SHA-256\" === variant && 0 !== (2 & SUPPORTED_ALGS)) retVal = H;\n\t\telse if (\"SHA-384\" === variant && 0 !== (4 & SUPPORTED_ALGS)) retVal = [H[0].highOrder, H[0].lowOrder, H[1].highOrder, H[1].lowOrder, H[2].highOrder, H[2].lowOrder, H[3].highOrder, H[3].lowOrder, H[4].highOrder, H[4].lowOrder, H[5].highOrder, H[5].lowOrder];\n\t\telse if (\"SHA-512\" === variant && 0 !== (4 & SUPPORTED_ALGS)) retVal = [H[0].highOrder, H[0].lowOrder, H[1].highOrder, H[1].lowOrder, H[2].highOrder, H[2].lowOrder, H[3].highOrder, H[3].lowOrder, H[4].highOrder, H[4].lowOrder, H[5].highOrder, H[5].lowOrder, H[6].highOrder, H[6].lowOrder, H[7].highOrder, H[7].lowOrder];\n\t\telse throw new Error(\"Unexpected error in SHA-2 implementation\");\n\t\treturn retVal\n\t}\n\n\tfunction roundSHA3(block, state) {\n\t\tvar round, x, y, B, C = [],\n\t\t\tD = [];\n\t\tif (null !== block)\n\t\t\tfor (x = 0; x < block.length; x += 2) state[(x >>> 1) % 5][(x >>> 1) / 5 | 0] = xor_64_2(state[(x >>> 1) % 5][(x >>> 1) / 5 | 0], new Int_64(block[x + 1], block[x]));\n\t\tfor (round = 0; round < 24; round += 1) {\n\t\t\tB = getNewState(\"SHA3-\");\n\t\t\tfor (x = 0; x < 5; x += 1) C[x] = xor_64_5(state[x][0], state[x][1], state[x][2], state[x][3], state[x][4]);\n\t\t\tfor (x = 0; x < 5; x += 1) D[x] = xor_64_2(C[(x + 4) % 5], rotl_64(C[(x + 1) % 5], 1));\n\t\t\tfor (x = 0; x < 5; x += 1)\n\t\t\t\tfor (y = 0; y < 5; y += 1) state[x][y] = xor_64_2(state[x][y], D[x]);\n\t\t\tfor (x = 0; x < 5; x += 1)\n\t\t\t\tfor (y = 0; y < 5; y += 1) B[y][(2 * x + 3 * y) % 5] = rotl_64(state[x][y], r_sha3[x][y]);\n\t\t\tfor (x = 0; x < 5; x += 1)\n\t\t\t\tfor (y = 0; y < 5; y += 1) state[x][y] = xor_64_2(B[x][y], new Int_64(~B[(x + 1) % 5][y].highOrder & B[(x + 2) % 5][y].highOrder, ~B[(x + 1) % 5][y].lowOrder & B[(x + 2) % 5][y].lowOrder));\n\t\t\tstate[0][0] = xor_64_2(state[0][0], rc_sha3[round])\n\t\t}\n\t\treturn state\n\t}\n\n\tfunction finalizeSHA3(remainder, remainderBinLen, processedBinLen, state, blockSize, delimiter, outputLen) {\n\t\tvar i, temp, retVal = [],\n\t\t\tbinaryStringInc = blockSize >>> 5,\n\t\t\tstate_offset = 0,\n\t\t\tremainderIntLen = remainderBinLen >>> 5;\n\t\tfor (i = 0; i < remainderIntLen && remainderBinLen >= blockSize; i += binaryStringInc) {\n\t\t\tstate = roundSHA3(remainder.slice(i, i + binaryStringInc), state);\n\t\t\tremainderBinLen -= blockSize\n\t\t}\n\t\tremainder = remainder.slice(i);\n\t\tremainderBinLen %= blockSize;\n\t\twhile (remainder.length < binaryStringInc) remainder.push(0);\n\t\tremainder[(i = remainderBinLen >>> 3) >> 2] ^= delimiter << i % 4 * 8;\n\t\tremainder[binaryStringInc - 1] ^= 2147483648;\n\t\tstate = roundSHA3(remainder, state);\n\t\twhile (32 * retVal.length < outputLen) {\n\t\t\ttemp = state[state_offset % 5][state_offset / 5 | 0];\n\t\t\tretVal.push(temp.lowOrder);\n\t\t\tif (32 * retVal.length >= outputLen) break;\n\t\t\tretVal.push(temp.highOrder);\n\t\t\tif (0 === 64 * (state_offset += 1) % blockSize) roundSHA3(null, state)\n\t\t}\n\t\treturn retVal\n\t}\n\tvar K_sha2, K_sha512, r_sha3, rc_sha3, jsSHA, TWO_PWR_32 = 4294967296;\n\tif (0 !== (6 & SUPPORTED_ALGS)) {\n\t\tK_sha2 = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];\n\t\tif (0 !== (4 & SUPPORTED_ALGS)) K_sha512 = [new Int_64(K_sha2[0], 3609767458), new Int_64(K_sha2[1], 602891725), new Int_64(K_sha2[2], 3964484399), new Int_64(K_sha2[3], 2173295548), new Int_64(K_sha2[4], 4081628472), new Int_64(K_sha2[5], 3053834265), new Int_64(K_sha2[6], 2937671579), new Int_64(K_sha2[7], 3664609560), new Int_64(K_sha2[8], 2734883394), new Int_64(K_sha2[9], 1164996542), new Int_64(K_sha2[10], 1323610764), new Int_64(K_sha2[11], 3590304994), new Int_64(K_sha2[12], 4068182383), new Int_64(K_sha2[13], 991336113), new Int_64(K_sha2[14], 633803317), new Int_64(K_sha2[15], 3479774868), new Int_64(K_sha2[16], 2666613458), new Int_64(K_sha2[17], 944711139), new Int_64(K_sha2[18], 2341262773), new Int_64(K_sha2[19], 2007800933), new Int_64(K_sha2[20], 1495990901), new Int_64(K_sha2[21], 1856431235), new Int_64(K_sha2[22], 3175218132), new Int_64(K_sha2[23], 2198950837), new Int_64(K_sha2[24], 3999719339), new Int_64(K_sha2[25], 766784016), new Int_64(K_sha2[26], 2566594879), new Int_64(K_sha2[27], 3203337956), new Int_64(K_sha2[28], 1034457026), new Int_64(K_sha2[29], 2466948901), new Int_64(K_sha2[30], 3758326383), new Int_64(K_sha2[31], 168717936), new Int_64(K_sha2[32], 1188179964), new Int_64(K_sha2[33], 1546045734), new Int_64(K_sha2[34], 1522805485), new Int_64(K_sha2[35], 2643833823), new Int_64(K_sha2[36], 2343527390), new Int_64(K_sha2[37], 1014477480), new Int_64(K_sha2[38], 1206759142), new Int_64(K_sha2[39], 344077627), new Int_64(K_sha2[40], 1290863460), new Int_64(K_sha2[41], 3158454273), new Int_64(K_sha2[42], 3505952657), new Int_64(K_sha2[43], 106217008), new Int_64(K_sha2[44], 3606008344), new Int_64(K_sha2[45], 1432725776), new Int_64(K_sha2[46], 1467031594), new Int_64(K_sha2[47], 851169720), new Int_64(K_sha2[48], 3100823752), new Int_64(K_sha2[49], 1363258195), new Int_64(K_sha2[50], 3750685593), new Int_64(K_sha2[51], 3785050280), new Int_64(K_sha2[52], 3318307427), new Int_64(K_sha2[53], 3812723403), new Int_64(K_sha2[54], 2003034995), new Int_64(K_sha2[55], 3602036899), new Int_64(K_sha2[56], 1575990012), new Int_64(K_sha2[57], 1125592928), new Int_64(K_sha2[58], 2716904306), new Int_64(K_sha2[59], 442776044), new Int_64(K_sha2[60], 593698344), new Int_64(K_sha2[61], 3733110249), new Int_64(K_sha2[62], 2999351573), new Int_64(K_sha2[63], 3815920427), new Int_64(3391569614, 3928383900), new Int_64(3515267271, 566280711), new Int_64(3940187606, 3454069534), new Int_64(4118630271, 4000239992), new Int_64(116418474, 1914138554), new Int_64(174292421, 2731055270), new Int_64(289380356, 3203993006), new Int_64(460393269, 320620315), new Int_64(685471733, 587496836), new Int_64(852142971, 1086792851), new Int_64(1017036298, 365543100), new Int_64(1126000580, 2618297676), new Int_64(1288033470, 3409855158), new Int_64(1501505948, 4234509866), new Int_64(1607167915, 987167468), new Int_64(1816402316, 1246189591)]\n\t}\n\tif (0 !== (8 & SUPPORTED_ALGS)) {\n\t\trc_sha3 = [new Int_64(0, 1), new Int_64(0, 32898), new Int_64(2147483648, 32906), new Int_64(2147483648, 2147516416), new Int_64(0, 32907), new Int_64(0, 2147483649), new Int_64(2147483648, 2147516545), new Int_64(2147483648, 32777), new Int_64(0, 138), new Int_64(0, 136), new Int_64(0, 2147516425), new Int_64(0, 2147483658), new Int_64(0, 2147516555), new Int_64(2147483648, 139), new Int_64(2147483648, 32905), new Int_64(2147483648, 32771), new Int_64(2147483648, 32770), new Int_64(2147483648, 128), new Int_64(0, 32778), new Int_64(2147483648, 2147483658), new Int_64(2147483648, 2147516545), new Int_64(2147483648, 32896), new Int_64(0, 2147483649), new Int_64(2147483648, 2147516424)];\n\t\tr_sha3 = [\n\t\t\t[0, 36, 3, 41, 18],\n\t\t\t[1, 44, 10, 45, 2],\n\t\t\t[62, 6, 43, 15, 61],\n\t\t\t[28, 55, 25, 21, 56],\n\t\t\t[27, 20, 39, 8, 14]\n\t\t]\n\t}\n\tjsSHA = function (variant, inputFormat, options) {\n\t\tvar intermediateState, converterFunc, outputBinLen, variantBlockSize, roundFunc, finalizeFunc, stateCloneFunc, delimiter, processedLen = 0,\n\t\t\tremainder = [],\n\t\t\tremainderLen = 0,\n\t\t\tshaVariant = variant,\n\t\t\thmacKeySet = false,\n\t\t\tkeyWithIPad = [],\n\t\t\tkeyWithOPad = [],\n\t\t\tupdatedCalled = false,\n\t\t\tisSHAKE = false,\n\t\t\tbigEndianMod = -1,\n\t\t\tinputOptions = options || {},\n\t\t\tutfType = inputOptions.encoding || \"UTF8\",\n\t\t\tnumRounds = inputOptions.numRounds || 1;\n\t\tif (numRounds !== parseInt(numRounds, 10) || 1 > numRounds) throw new Error(\"numRounds must a integer >= 1\");\n\t\tif (\"SHA-1\" === shaVariant && 0 !== (1 & SUPPORTED_ALGS)) {\n\t\t\tvariantBlockSize = 512;\n\t\t\troundFunc = roundSHA1;\n\t\t\tfinalizeFunc = finalizeSHA1;\n\t\t\toutputBinLen = 160;\n\t\t\tstateCloneFunc = function (state) {\n\t\t\t\treturn state.slice()\n\t\t\t}\n\t\t} else if (0 === shaVariant.lastIndexOf(\"SHA-\", 0) && 0 !== (6 & SUPPORTED_ALGS)) {\n\t\t\troundFunc = function (block, H) {\n\t\t\t\treturn roundSHA2(block, H, shaVariant)\n\t\t\t};\n\t\t\tfinalizeFunc = function (remainder, remainderBinLen, processedBinLen, H, outputLen) {\n\t\t\t\treturn finalizeSHA2(remainder, remainderBinLen, processedBinLen, H, shaVariant, outputLen)\n\t\t\t};\n\t\t\tstateCloneFunc = function (state) {\n\t\t\t\treturn state.slice()\n\t\t\t};\n\t\t\tif (\"SHA-224\" === shaVariant && 0 !== (2 & SUPPORTED_ALGS)) {\n\t\t\t\tvariantBlockSize = 512;\n\t\t\t\toutputBinLen = 224\n\t\t\t} else if (\"SHA-256\" === shaVariant && 0 !== (2 & SUPPORTED_ALGS)) {\n\t\t\t\tvariantBlockSize = 512;\n\t\t\t\toutputBinLen = 256\n\t\t\t} else if (\"SHA-384\" === shaVariant && 0 !== (4 & SUPPORTED_ALGS)) {\n\t\t\t\tvariantBlockSize = 1024;\n\t\t\t\toutputBinLen = 384\n\t\t\t} else if (\"SHA-512\" === shaVariant && 0 !== (4 & SUPPORTED_ALGS)) {\n\t\t\t\tvariantBlockSize = 1024;\n\t\t\t\toutputBinLen = 512\n\t\t\t} else throw new Error(\"Chosen SHA variant is not supported\")\n\t\t} else if ((0 === shaVariant.lastIndexOf(\"SHA3-\", 0) || 0 === shaVariant.lastIndexOf(\"SHAKE\", 0)) && 0 !== (8 & SUPPORTED_ALGS)) {\n\t\t\tdelimiter = 6;\n\t\t\troundFunc = roundSHA3;\n\t\t\tstateCloneFunc = function (state) {\n\t\t\t\treturn cloneSHA3State(state)\n\t\t\t};\n\t\t\tbigEndianMod = 1;\n\t\t\tif (\"SHA3-224\" === shaVariant) {\n\t\t\t\tvariantBlockSize = 1152;\n\t\t\t\toutputBinLen = 224\n\t\t\t} else if (\"SHA3-256\" === shaVariant) {\n\t\t\t\tvariantBlockSize = 1088;\n\t\t\t\toutputBinLen = 256\n\t\t\t} else if (\"SHA3-384\" === shaVariant) {\n\t\t\t\tvariantBlockSize = 832;\n\t\t\t\toutputBinLen = 384\n\t\t\t} else if (\"SHA3-512\" === shaVariant) {\n\t\t\t\tvariantBlockSize = 576;\n\t\t\t\toutputBinLen = 512\n\t\t\t} else if (\"SHAKE128\" === shaVariant) {\n\t\t\t\tvariantBlockSize = 1344;\n\t\t\t\toutputBinLen = -1;\n\t\t\t\tdelimiter = 31;\n\t\t\t\tisSHAKE = true\n\t\t\t} else if (\"SHAKE256\" === shaVariant) {\n\t\t\t\tvariantBlockSize = 1088;\n\t\t\t\toutputBinLen = -1;\n\t\t\t\tdelimiter = 31;\n\t\t\t\tisSHAKE = true\n\t\t\t} else throw new Error(\"Chosen SHA variant is not supported\");\n\t\t\tfinalizeFunc = function (remainder, remainderBinLen, processedBinLen, state, outputLen) {\n\t\t\t\treturn finalizeSHA3(remainder, remainderBinLen, processedBinLen, state, variantBlockSize, delimiter, outputLen)\n\t\t\t}\n\t\t} else throw new Error(\"Chosen SHA variant is not supported\");\n\t\tconverterFunc = getStrConverter(inputFormat, utfType, bigEndianMod);\n\t\tintermediateState = getNewState(shaVariant);\n\t\tthis.setHMACKey = function (key, inputFormat, options) {\n\t\t\tvar convertRet, keyBinLen, keyToUse, blockByteSize, i, lastArrayIndex;\n\t\t\tif (true === hmacKeySet) throw new Error(\"HMAC key already set\");\n\t\t\tif (true === updatedCalled) throw new Error(\"Cannot set HMAC key after calling update\");\n\t\t\tif (true === isSHAKE && 0 !== (8 & SUPPORTED_ALGS)) throw new Error(\"SHAKE is not supported for HMAC\");\n\t\t\tkeyBinLen = (convertRet = getStrConverter(inputFormat, utfType = (options || {})\n\t\t\t\t\t.encoding || \"UTF8\", bigEndianMod)(key))\n\t\t\t\t.binLen;\n\t\t\tkeyToUse = convertRet.value;\n\t\t\tlastArrayIndex = (blockByteSize = variantBlockSize >>> 3) / 4 - 1;\n\t\t\tif (blockByteSize < keyBinLen / 8) {\n\t\t\t\tkeyToUse = finalizeFunc(keyToUse, keyBinLen, 0, getNewState(shaVariant), outputBinLen);\n\t\t\t\twhile (keyToUse.length <= lastArrayIndex) keyToUse.push(0);\n\t\t\t\tkeyToUse[lastArrayIndex] &= 4294967040\n\t\t\t} else if (blockByteSize > keyBinLen / 8) {\n\t\t\t\twhile (keyToUse.length <= lastArrayIndex) keyToUse.push(0);\n\t\t\t\tkeyToUse[lastArrayIndex] &= 4294967040\n\t\t\t}\n\t\t\tfor (i = 0; i <= lastArrayIndex; i += 1) {\n\t\t\t\tkeyWithIPad[i] = 909522486 ^ keyToUse[i];\n\t\t\t\tkeyWithOPad[i] = 1549556828 ^ keyToUse[i]\n\t\t\t}\n\t\t\tintermediateState = roundFunc(keyWithIPad, intermediateState);\n\t\t\tprocessedLen = variantBlockSize;\n\t\t\thmacKeySet = true\n\t\t};\n\t\tthis.update = function (srcString) {\n\t\t\tvar convertRet, chunkBinLen, chunkIntLen, chunk, i, updateProcessedLen = 0,\n\t\t\t\tvariantBlockIntInc = variantBlockSize >>> 5;\n\t\t\tchunkBinLen = (convertRet = converterFunc(srcString, remainder, remainderLen))\n\t\t\t\t.binLen;\n\t\t\tchunk = convertRet.value;\n\t\t\tchunkIntLen = chunkBinLen >>> 5;\n\t\t\tfor (i = 0; i < chunkIntLen; i += variantBlockIntInc)\n\t\t\t\tif (updateProcessedLen + variantBlockSize <= chunkBinLen) {\n\t\t\t\t\tintermediateState = roundFunc(chunk.slice(i, i + variantBlockIntInc), intermediateState);\n\t\t\t\t\tupdateProcessedLen += variantBlockSize\n\t\t\t\t} processedLen += updateProcessedLen;\n\t\t\tremainder = chunk.slice(updateProcessedLen >>> 5);\n\t\t\tremainderLen = chunkBinLen % variantBlockSize;\n\t\t\tupdatedCalled = true\n\t\t};\n\t\tthis.getHash = function (format, options) {\n\t\t\tvar formatFunc, i, outputOptions, finalizedState;\n\t\t\tif (true === hmacKeySet) throw new Error(\"Cannot call getHash after setting HMAC key\");\n\t\t\toutputOptions = getOutputOpts(options);\n\t\t\tif (true === isSHAKE && 0 !== (8 & SUPPORTED_ALGS)) {\n\t\t\t\tif (-1 === outputOptions.shakeLen) throw new Error(\"shakeLen must be specified in options\");\n\t\t\t\toutputBinLen = outputOptions.shakeLen\n\t\t\t}\n\t\t\tswitch (format) {\n\t\t\tcase \"HEX\":\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2hex(binarray, outputBinLen, bigEndianMod, outputOptions)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"B64\":\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2b64(binarray, outputBinLen, bigEndianMod, outputOptions)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"BYTES\":\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2bytes(binarray, outputBinLen, bigEndianMod)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"ARRAYBUFFER\":\n\t\t\t\ttry {\n\t\t\t\t\ti = new ArrayBuffer(0)\n\t\t\t\t} catch (ignore) {\n\t\t\t\t\tthrow new Error(\"ARRAYBUFFER not supported by this environment\")\n\t\t\t\t}\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2arraybuffer(binarray, outputBinLen, bigEndianMod)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Error(\"format must be HEX, B64, BYTES, or ARRAYBUFFER\")\n\t\t\t}\n\t\t\tfinalizedState = finalizeFunc(remainder.slice(), remainderLen, processedLen, stateCloneFunc(intermediateState), outputBinLen);\n\t\t\tfor (i = 1; i < numRounds; i += 1) {\n\t\t\t\tif (0 !== (8 & SUPPORTED_ALGS) && true === isSHAKE && outputBinLen % 32 !== 0) finalizedState[finalizedState.length - 1] &= 16777215 >>> 24 - outputBinLen % 32;\n\t\t\t\tfinalizedState = finalizeFunc(finalizedState, outputBinLen, 0, getNewState(shaVariant), outputBinLen)\n\t\t\t}\n\t\t\treturn formatFunc(finalizedState)\n\t\t};\n\t\tthis.getHMAC = function (format, options) {\n\t\t\tvar formatFunc, firstHash, outputOptions, finalizedState;\n\t\t\tif (false === hmacKeySet) throw new Error(\"Cannot call getHMAC without first setting HMAC key\");\n\t\t\toutputOptions = getOutputOpts(options);\n\t\t\tswitch (format) {\n\t\t\tcase \"HEX\":\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2hex(binarray, outputBinLen, bigEndianMod, outputOptions)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"B64\":\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2b64(binarray, outputBinLen, bigEndianMod, outputOptions)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"BYTES\":\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2bytes(binarray, outputBinLen, bigEndianMod)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase \"ARRAYBUFFER\":\n\t\t\t\ttry {\n\t\t\t\t\tformatFunc = new ArrayBuffer(0)\n\t\t\t\t} catch (ignore) {\n\t\t\t\t\tthrow new Error(\"ARRAYBUFFER not supported by this environment\")\n\t\t\t\t}\n\t\t\t\tformatFunc = function (binarray) {\n\t\t\t\t\treturn packed2arraybuffer(binarray, outputBinLen, bigEndianMod)\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Error(\"outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER\")\n\t\t\t}\n\t\t\tfirstHash = finalizeFunc(remainder.slice(), remainderLen, processedLen, stateCloneFunc(intermediateState), outputBinLen);\n\t\t\tfinalizedState = roundFunc(keyWithOPad, getNewState(shaVariant));\n\t\t\treturn formatFunc(finalizedState = finalizeFunc(firstHash, outputBinLen, variantBlockSize, finalizedState, outputBinLen))\n\t\t}\n\t};\n\tif (\"function\" === typeof define && define.amd) define(function () {\n\t\treturn jsSHA\n\t});\n\telse if (\"undefined\" !== typeof exports)\n\t\tif (\"undefined\" !== typeof module && module.exports) {\n\t\t\tmodule.exports = jsSHA;\n\t\t\texports = jsSHA\n\t\t} else exports = jsSHA;\n\telse global.jsSHA = jsSHA\n})(this);\n(function (global) {\n\t\"use strict\";\n\n\tfunction definition(path, Failure, iterate, isObject) {\n\t\tfunction isEnabled(path) {\n\t\t\tvar match;\n\t\t\titerate(settings, function (key, value) {\n\t\t\t\tif (key === path) {\n\t\t\t\t\tmatch = value;\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn match || false\n\t\t}\n\t\tvar settings;\n\t\tdemand.on(\"postConfigure:\" + path, function (options) {\n\t\t\t\tif (isObject(options)) settings = options\n\t\t\t})\n\t\t\t.on(\"postRequest\", function (dependency) {\n\t\t\t\tvar options, sha, hash;\n\t\t\t\tif (options = isEnabled(dependency.path)) try {\n\t\t\t\t\t(sha = new global.jsSHA(options.type, \"TEXT\"))\n\t\t\t\t\t.update(dependency.source);\n\t\t\t\t\tif ((hash = sha.getHash(\"B64\")) !== options.hash) dependency.dfd.reject(new Failure('hash mismatch, should be \"' + options.hash + '\" but is \"' + hash + '\" (sri)', dependency.id))\n\t\t\t\t} catch (error) {\n\t\t\t\t\tdependency.dfd.reject(new Failure(\"unsupported hashing algorithm (sri)\", dependency.id))\n\t\t\t\t}\n\t\t\t});\n\t\treturn true\n\t}\n\tprovide([\"path\", \"/demand/failure\", \"/demand/function/iterate\", \"/demand/validator/isObject\"], definition)\n})(this);\n"]} \ No newline at end of file +{"version":3,"sources":["plugin/sri.js"],"names":["SUPPORTED_ALGS","global","K_sha2","K_sha512","r_sha3","rc_sha3","TWO_PWR_32","Int_64","msint_32","lsint_32","this","highOrder","lowOrder","packed2hex","packed","outputLength","bigEndianMod","formatOpts","i","srcByte","shiftModifier","str","length","charAt","toUpperCase","packed2b64","j","triplet","int1","int2","packed2bytes","String","fromCharCode","packed2arraybuffer","arrView","retVal","ArrayBuffer","Uint8Array","getOutputOpts","options","outputOptions","outputUpper","b64Pad","shakeLen","hasOwnProperty","Error","getStrConverter","format","utfType","existingBin","existingBinLen","existingPacked","existingPackedLen","num","intOffset","byteOffset","existingByteLen","parseInt","substr","isNaN","push","value","binLen","hex2packed","codePnt","codePntArr","transposeBytes","byteCnt","charCodeAt","str2packed","tmpInt","strPart","firstEqual","search","indexOf","replace","b642packed","bytes2packed","ignore","arr","byteLength","arraybuffer2packed","rotl_32","x","n","rotl_64","rotr_32","rotr_64","tmp","shr_32","shr_64","parity_32","y","z","ch_32","ch_64","maj_32","maj_64","sigma0_32","sigma0_64","rotr28","rotr34","rotr39","sigma1_32","sigma1_64","rotr14","rotr18","rotr41","gamma0_32","gamma0_64","rotr1","rotr8","shr7","gamma1_32","gamma1_64","rotr19","rotr61","shr6","safeAdd_32_2","a","b","lsw","safeAdd_32_4","c","d","safeAdd_32_5","e","safeAdd_64_2","msw","safeAdd_64_4","safeAdd_64_5","xor_64_2","getNewState","variant","H_trunc","H_full","lastIndexOf","roundSHA1","block","H","T","t","W","ch","parity","maj","rotl","safeAdd_2","safeAdd_5","finalizeSHA1","remainder","remainderBinLen","processedBinLen","outputLen","appendedMessageLength","offset","totalLen","slice","roundSHA2","f","g","h","T1","T2","numRounds","binaryStringMult","safeAdd_4","gamma0","gamma1","sigma0","sigma1","Int","K","Number","roundSHA3","state","round","B","C","D","jsSHA","inputFormat","intermediateState","converterFunc","outputBinLen","variantBlockSize","roundFunc","finalizeFunc","stateCloneFunc","inputOptions","processedLen","remainderLen","shaVariant","hmacKeySet","keyWithIPad","keyWithOPad","updatedCalled","isSHAKE","binaryStringInc","finalizeSHA2","delimiter","clone","cloneSHA3State","blockSize","temp","state_offset","remainderIntLen","finalizeSHA3","setHMACKey","key","convertRet","keyBinLen","keyToUse","blockByteSize","lastArrayIndex","keyConverterFunc","update","srcString","chunkBinLen","chunkIntLen","chunk","updateProcessedLen","variantBlockIntInc","getHash","formatFunc","finalizedState","binarray","getHMAC","firstHash","define","exports","module","provide","path","Failure","iterate","isObject","settings","demand","on","dependency","sha","hash","match","type","source","dfd","reject","id","error"],"mappings":";AA0BA,IAAIA,eAAiB,IAEpB,SAAUC,GAEV,aAGA,IAu0CIC,EAAQC,EAAUC,EAAQC,EAv0C1BC,EAAa,WAWjB,SAASC,EAAOC,EAAUC,GAEzBC,KAAKC,UAAYH,EACjBE,KAAKE,SAAWH,EAsUjB,SAASI,EAAWC,EAAQC,EAAcC,EAAcC,GAEvD,IAC4BC,EAAGC,EAASC,EADNC,EAAM,GACvCC,EAASP,EAAe,EAIz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KpJ,GAC/B,GAAGoJ,IAAQwB,EAGV,OAFAU,EAAQtL,GAED,IAtBLtB,EA0BG4M,IAAS,EAzBd,KACOF,EAAM,IAAIhP,EAAOmL,MAAM7I,EAAQ6M,KAAM,SAEjC5B,OAAOwB,EAAWK,SAElBH,EAAOD,EAAIlB,QAAQ,UAAYxL,EAAQ2M,MACzCF,EAAWM,IAAIC,OAAO,IAAIb,EAAQ,6BAA+BnM,EAAQ2M,KAAO,aAAeA,EAAO,UAAWF,EAAWQ,KAEnI,MAAMC,GACDT,EAAWM,IAAIC,OAAO,IAAIb,EAAQ,sCAAuCM,EAAWQ,SAmBrF,IA5CX,CAgDE9O","file":"sri.js","sourcesContent":["/* global\n\tjsSHA\n*/\n\n//=include vendor/jssha/src/sha_dev.js\n\n(function(global) {\n\t'use strict';\n\n\tfunction definition(path, Failure, iterate, isObject) {\n\t\tvar settings;\n\n\t\tdemand\n\t\t\t.on('postConfigure:' + path, function(options) {\n\t\t\t\tif(isObject(options)) {\n\t\t\t\t\tsettings = options;\n\t\t\t\t}\n\t\t\t})\n\t\t\t.on('postRequest', function(dependency) {\n\t\t\t\tvar options, sha, hash;\n\n\t\t\t\tif(options = isEnabled(dependency.path)) {\n\t\t\t\t\ttry {\n sha = new global.jsSHA(options.type, 'TEXT');\n\n sha.update(dependency.source);\n\n if((hash = sha.getHash('B64')) !== options.hash) {\n dependency.dfd.reject(new Failure('hash mismatch, should be \"' + options.hash + '\" but is \"' + hash + '\" (sri)', dependency.id));\n }\n\t\t\t\t\t} catch(error) {\n dependency.dfd.reject(new Failure('unsupported hashing algorithm (sri)', dependency.id));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\tfunction isEnabled(path) {\n\t\t\tvar match;\n\n\t\t\titerate(settings, function(key, value) {\n\t\t\t\tif(key === path) {\n\t\t\t\t\tmatch = value;\n\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn match || false;\n\t\t}\n\n return true;\n\t}\n\n\tprovide([ 'path', '/demand/failure', '/demand/function/iterate', '/demand/validator/isObject' ], definition);\n}(this));"]} \ No newline at end of file