diff --git a/dist/cache/dispose.js b/dist/cache/dispose.js index 86e84a4..4a7d02d 100644 --- a/dist/cache/dispose.js +++ b/dist/cache/dispose.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["/demand/function/iterate","./states"],(function(e,c){function t(e,c){return e.accessedc.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/states.js b/dist/cache/states.js index 9976b60..3892d87 100644 --- a/dist/cache/states.js +++ b/dist/cache/states.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ !function(e){"use strict";provide(["/demand/function/iterate"],(function(t){var n=new RegExp("^\\[demand\\]\\[(.+?)\\]\\[state\\]$"),a=/^(.+?),(\d+),(\d*),(.+?),(\d+)$/;function r(t){var r,i=t.match(n);i&&(r=function(t){var n,r=e.getItem(t);if(r&&(n=r.match(a)))return Array.prototype.slice.call(n,1)}("[demand]["+i[1]+"][state]"),this.push({id:i[1],version:r[0],size:parseInt(r[1],10),expires:r[2]?new Date(parseInt(r[2],10)):null,demand:r[3],accessed:new Date(parseInt(r[4],10))}))}return function(){return t(e,r,[])}}))}(localStorage); //# sourceMappingURL=states.js.map diff --git a/dist/demand.js b/dist/demand.js index c9f9135..72c62f5 100644 --- a/dist/demand.js +++ b/dist/demand.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ -!function(e,t,n){"use strict";var r,i,o,a,u=e.document,c="demand"in e&&e.demand,s={version:"1.0.0",cache:{},timeout:8e3,pattern:{},modules:{},handler:"module"},f="mock:",d=null,l=void 0,h=!1,p=!0,v="undefined",m="string",g="function",y="postConfigure",w="cacheMiss",x="cacheExceed",b="preResolve",j="postResolve",q="preRequest",k="postRequest",R="preProcess",P="postProcess",E="queueEnqueue",C="provide",M="reject",T="error loading",S="error providing",A="error resolving",O="unspecified anonymous provide",$=Array.prototype,I=$.slice,H=$.concat,N=Object,D=N.create,L=N.defineProperty,B=N.getOwnPropertyNames,U=N.getOwnPropertyDescriptor,z=u.createElement("a");function W(e,t,n,r){return{__proto__:d,value:e,enumerable:!!r,configurable:!!n,writable:!!t}}function _(e,t){return typeof e===t}function F(e){return e&&_(e,"object")}function X(e){return _(e,"number")&&isFinite(e)&&Math.floor(e)===e&&e>=0}function G(e){return e&&_(e.then,g)}!function(t){function n(e,t,n,r,i){L(this,e,new W(t,n,r,i))}function r(e){for(var t,n=this,r=n.prototype,i=B(r),o={constructor:new W(n,p,p)},a=0;(t=i[a])&&!o[t];a++)o[t]=U(r,t);try{n.prototype=D(e.prototype||e,o)}catch(e){}if(n.prototype===r)throw new TypeError("Unable to extend, prototype is not writable");return n}n.call(Object.prototype,"defineProperty",n),n.call(e.Object.prototype,"defineProperty",n),Function.prototype.defineProperty("extends",r),e.Function.prototype.defineProperty("extends",r)}();var J,K=(J=/^\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 _(e,m)&&J.test(e)});function Q(e,t,n){for(var r,i=N.keys(e),o=0;(r=i[o])!==l&&t.call(n,r,e[r])!==h;o++);return n}var V,Y,Z=function(){function e(e,t){var n,r=this[e];t!==l&&(F(t)?(n=F(r),r=t.length!==l?n&&r.length!==l?r:[]:n&&r.length===l?r:{},this[e]=Z(r,t)):this[e]=t)}return function(){for(var t,n=arguments[0],r=1;(t=arguments[r])!==l;r++)Q(t,e,n);return n}}(),ee=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)}}(),te="setImmediate"in e&&"function"==typeof e.setImmediate?e.setImmediate:"MutationObserver"in e&&"function"==typeof e.MutationObserver?(V={},Y=u.createElement("div"),new MutationObserver((function(e){e.forEach((function(e){var t=e.attributeName.substr(1);V[t]&&V[t](),delete V[t]}))})).observe(Y,{attributes:p}),function(e){var t=ee();V[t]=e,Y.setAttribute("i"+t,1)}):t;function ne(e,t,n){return I.call(e,t,n)}var re=function(){var e=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)|provide|reject$/,t={};function n(n,r,i){var o,a;if(_(r,m)&&_(i,g))for(r=r.split(" ");o=r.shift();)o=o.split(":"),e.test(o[0])&&((t[o[0]]||(t[o[0]]={on:[],after:[]}))[n].push({callback:i,filter:o[1]}),"on"===n&&o[0]===y&&(a=s.modules[o[1]])&&i(a))}function r(){}return r.prototype={emit:function(e,n){var r,i,o,a=t[e];if(a){for(r=ne(arguments,2),i=0;o=a.on[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r);for(i=0;o=a.after[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r)}return this},on:function(e,t){return n("on",e,t),this},after:function(e,t){return n("after",e,t),this}},new r}(),ie="WeakMap"in e&&!("ActiveXObject"in e)?e.WeakMap:function(e){var t=new e;function n(){t.set(this,new e)}return n.prototype={get:function(e){return t.get(this).get(e)},set:function(e,n){return t.get(this).set(e,n),this},has:function(e){return!!this.get(e)},delete:function(e){return t.get(this).delete(e)}},n}(e.WeakMap);function oe(){return _(this.uuid,v)&&this.defineProperty("uuid",ee()),this}var ae=function(){var e=new ie;function t(){var t=oe.call(this);return e.set(t,[]),t}return t.prototype={enqueue:function(){var t=ne(arguments);e.set(this,e.get(this).concat(t)),re.emit(E,this.uuid,t)},dequeue:function(){var t=e.get(this).shift();return re.emit("queueDequeue",this.uuid,t),t},get current(){return e.get(this)[0]},get length(){return e.get(this).length}},t.extends(oe)}(),ue=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:h,timeRemaining:function(){return Math.max(0,50-(+new Date-r))}})}),n&&n.timeout)},a=e.cancelIdleCallback||function(e){n(e)},c=new ae;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())}}),p),function(e,t){c.enqueue(e),!r&&c.length&&(r=o(s,{timeout:t}))}}();function ce(){return+new Date}function se(e){return z.href=e,z.href}var fe=/^(http(s?):)?\/\//i,de=/^\.?\.\//,le=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,he=/^\//,pe=/\.\w+$/,ve=new RegExp("^"+se("/")),me=new RegExp("^demand|provide|path|exports$"),ge=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/;function ye(e,t){var n=e.replace(ge,"");return de.test(n)&&(n="/"+se((t&&se(t+"/../")||"/")+n).replace(ve,"")),n}function we(e,t){var n=e.match(ge);return(n&&n[1]?"mock:":"")+(n&&n[3]||s.handler)+"!"+ye(e,t)}var xe=function(){function e(e,t){return et?1:0}function t(e){if(!K(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.shift(),this.minor=e.shift(),this.patch=e.shift(),this.identifier=e}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)===v&&o===v)return 0;if(o===v)return 1;if(i===v)return-1;if(n===r);else{if(i===m&&o!==m)return 1;if(i!==m&&o===m)return-1;if(n>r)return 1;if(nt.weight)&&(t=r)})),t?t.state:h)}function m(e){return c.getItem(e)}function g(e,t){c[t?"setItem":"removeItem"](e,t)}function y(e){var t,n=m(e);if(n&&(t=n.match(a)))return ne(t,1)}function b(e,t){t[4]=ce(),g(e,t.join(","))}function j(e,t,n){re.emit(e,t.id,t,n)}function q(){ue(this.clear.expired.bind(this.clear),s.delay)}return re.on(w,(function(e){ue((function(){t.clear(e.id)}))})).on(x,(function(e){r("-!/demand/cache/dispose").then((function(n){ue((function(){n(e.source.length),t.set(e)}),s.delay)}))})).on(k,(function(e){e.source&&v(e)&&(l[e.id]=p)})).after(P,(function(e){l[e.id]&&ue((function(){t.set(e)}),s.delay)})),q.prototype={get:u?function(e){var t,r;if(v(e)){if(t="[demand]["+e.id+"]",!(r=y(t+n)))return;return 1===e.version.compare(new xe(r[0]))||r[2]&&e.lifetime&&r[2]<=ce()?void(e.invalid=!0):(e.source=m(t+i),ue((function(){b(t+n,r)}),s.delay),p)}}:function(){},resolve:u?function(e){this.get(e)?j("cacheHit",e):j(w,e)}:function(e){j(w,e)},set:u?function(e){var t,o,a;if(v(e)){t=[e.version,e.source.length,e.lifetime?ce()+e.lifetime:d,r.version],o="[demand]["+e.id+"]",j("preCache",e,t);try{if(a=f?c.remainingSpace:d,g(o+i,e.source),b(o+n,t),a!==d&&c.remainingSpace===a)throw new Error;j("postCache",e,t)}catch(t){j(x,e)}}}:function(){},clear:u?function(e){var t=we(e),r="[demand]["+t+"]";m(r+n)&&(g(r+n),g(r+i),j("cacheClear",Ee.get(t)||new Ee(t,d,h)))}:function(){}},q.prototype.clear.all=u?function(){var e;Q(c,(function(t){(e=t.match(o))&&this(e[1])}),this)}:function(){},q.prototype.clear.expired=u?function(){var e,t;Q(c,(function(r){(e=r.match(o))&&(t=y("[demand]["+e[1]+"]"+n))&&t[2]>0&&t[2]<=ce()&&this(e[1])}),this)}:function(){},t=new q}();function G(e){return e&&_(e.then,g)}function je(e,t,n){var r=this;return r.message=e,t&&(r.module=t),n&&(r.stack=ne(n)),r}je.prototype={toString:function(){var e=this,t=e.message+" "+(e.module?'"'+e.module+'"':"");return e.stack&&(t=je.traverse(e.stack,t,1)),t}},je.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=je.traverse(r.stack,t,n+1));return t};var qe,ke,Re=function(){var e="pending",t="resolved",n="rejected",r=new ie;function i(){var e=this,n=arguments;te((function(){r.get(e).handle(t,n)}))}function o(){var e=this,t=arguments;te((function(){r.get(e).handle(n,t)}))}function a(n,i){var o,a,u=r.get(this);for(u.state===e&&(u.state=n,u.value=i);o=u[u.state].shift();)try{if(a=o.handler.apply(d,u.value),G(a)){a.then(o.dfd.resolve,o.dfd.reject);continue}if(u.state===t&&_(a,v)){o.dfd.resolve.apply(d,u.value);continue}o.dfd.resolve(a)}catch(e){o.dfd.reject(e)}u.resolved.length=0,u.rejected.length=0}function u(e,t,n){e.then((function(){n.resolved[t]=ne(arguments),n.count++,c(n)}),(function(){n.rejected.push(ne(arguments)),c(n)}))}function c(e){e.count===e.total?e.dfd.resolve.apply(d,H.apply([],e.resolved)):e.rejected.length+e.count===e.total&&e.dfd.reject.apply(d,H.apply([],e.rejected))}function s(t){var n=this;return r.set(n,{state:e,handle:a.bind(n),value:d,resolved:[],rejected:[],count:0}),t(i.bind(n),o.bind(n)),n}return s.prototype={isPending:function(){return r.get(this).state===e},isResolved:function(){return r.get(this).state===t},isRejected:function(){return r.get(this).state===n},then:function(t,n){var i=r.get(this),o=s.defer();return i.resolved.push({handler:t||s.resolve,dfd:o}),i.rejected.push({handler:n||s.reject,dfd:o}),i.state!==e&&te(i.handle),o.pledge},catch:function(e){return this.then(l,e)},always:function(e){return this.then(e,e)}},s.prototype.finally=s.prototype.always,s.defer=function(){var e={};return e.pledge=new s((function(t,n){e.resolve=t,e.reject=n})),e},s.all=function(e){var t,n,r=s.defer(),i=0;if(e.length)for(t={dfd:r,resolved:[],rejected:[],total:e.length,count:0};n=e[i];i++)u(n,i,t);else r.resolve();return r.pledge},s.race=function(e){for(var t,n=s.defer(),r=0;t=e[r];r++)t.then(n.resolve,n.reject);return e.length||n.resolve(),n.pledge},s.resolve=function(){var e=s.defer();return e.resolve.apply(d,arguments),e.pledge},s.reject=function(){var e=s.defer();return e.reject.apply(d,arguments),e.pledge},s}(),Pe=function(){var e=new ie;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}(),Ee=function(){var e="internal!",t=new Pe,n=/^(?:mock:|internal!)/i,o=[];function a(e,t){this[e]=t}function c(e){n.test(e)||this.push(e)}function l(e,t){!n.test(e)&&t.pledge.isPending()&&this.push(e)}function v(e,t){!n.test(e)&&t.pledge.isResolved()&&this.push(e)}function m(e,t){!n.test(e)&&t.pledge.isRejected()&&this.push(e)}function g(){return Q(t.get(),c,[])}function y(e,n,r){var i=this,a=e.match(ge)||o;return i.path=ye(e,n),i.mock=a[1]?p:h,i.cache=a[2]?"+"===a[1]:d,i.type=a[3]||s.handler,i.version=new xe(a[4]||s.version),i.lifetime=a[5]&&1e3*a[5]||s.lifetime,i.id=(i.mock?f:"")+i.type+"!"+i.path,i.uri=(i.mock?f:"")+i.type+"@"+i.version+(X(i.lifetime)&&i.lifetime>0?"#"+i.lifetime:"")+"!"+i.path,i.dfd=Re.defer(),i.pledge=i.dfd.pledge,i.invalid=!1,i.pledge.then((function(){i.value=ne(arguments)})),r!==h&&t.set(i.id,i),i}return g.pending=function(){return Q(t.get(),l,[])},g.resolved=function(){return Q(t.get(),v,[])},g.rejected=function(){return Q(t.get(),m,[])},y.prototype={enqueue:!0},y.get=function(e,n){return t.get(we(e,n))},y.resolve=function(t,n){var o,u=n&&me.test(t),c=u?this.get(e+n+"/"+t):this.get(t,n);if(!c)if(u){switch(c=new y(e+n+"/"+t),t){case"demand":o=Q(r,a,r.bind(n));break;case"provide":o=i.bind(n);break;case"path":o=n;break;case"exports":o={},c.dfd.pledge.then(this.get(n).dfd.resolve)}c.dfd.resolve(o)}else c=new y(t,n),r("/demand/handler/"+c.type).then((function(e){c.handler=e,c.mock?c.dfd.resolve(e):be.resolve(c)}),(function(){c.dfd.reject(new je(T+" (handler)",self.id))}));return c},y.remove=function(e,n,r){var i=we(e,n),o=u.querySelector('[demand-id="'+i+'"]');t.remove(i),t.remove(f+i),o&&o.parentNode.removeChild(o),r!==h&&be.clear(i)},y.list=g,y}(),Ce=function(){var e=/(.+)\/$/;function t(t,n){this[t]={url:se(n).replace(e,"$1"),match:new RegExp("^"+n)}}function n(e,n){var r=this;r.weight=e.length,r.match=new RegExp("^"+e),r.location=[].concat(n),Q(r.location,t,r.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}(),Me=function(){var e={};function t(e){return e instanceof ArrayBuffer||e instanceof MessagePort||"ImageBitmap"in self&&e instanceof ImageBitmap}return function(n){var r,i;return r="$task = "+n+"; $isTransferable = "+t+"; onmessage = "+function(e){var t,n=Array.prototype.slice,r=e.data;function i(e){t||(t=!0,postMessage([r[0],0,e.toString()]))}try{$task.apply($task,[function(){var e;t||(t=!0,e=n.call(arguments),postMessage([r[0],1,e],e.filter($isTransferable)))},i].concat(r[1]))}catch(e){i(e)}},(i=new Worker(URL.createObjectURL(new Blob([r],{type:"application/javascript"})))).onmessage=function(t){var n=t.data[0],r=n?e[n]:null;n&&r&&(t.data[1]?r.resolve.apply(null,t.data[2]):r.reject(t.data[2]),delete e[n])},function(){var n=Re.defer(),r=ee(),o=ne(arguments);return e[r]=n,i.postMessage([r,o],o.filter(t)),n.pledge}}}(),Te=(qe=/^(?:\?|)$/,ke=new Me((function(e,t,n){var r,i,o=new XMLHttpRequest;r=function(){this.readyState<4&&this.abort()}.bind(o),o.ontimeout=o.onerror=o.onabort=function(){t(o.statusText)},o.onprogress=o.onreadystatechange=function(){self.clearTimeout(i),i=self.setTimeout(r,1e4)},o.onload=function(){i=self.clearTimeout(i),"status"in o&&200!==o.status?t(o.statusText):e(o.responseText,o.getResponseHeader&&o.getResponseHeader("content-type"))},o.open("GET",n,!0),o.send(),i=self.setTimeout(r,1e4)})),function(e){var t;function n(t,n){n&&e.handler.validate&&!e.handler.validate(n)?e.dfd.reject(new je(T+" (content-type)",e.id)):(e.source=t,re.emit(k,e.type,e))}fe.test(e.path)||Q(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 Ce(e,t))}function r(e,t){var n=this[e]=this[e]||{};re.emit("preConfigure",e,n),Z(n,t),re.emit(y,e,n)}function i(){var t,n,r,i=ne(arguments),o=this!==e?this:d,a=[],u=0;for(re.emit(b,d,i,o);t=i[u];u++)_(t,m)?i[u]=Ee.resolve(t,o):(i[u]=n=Re.defer(),n.resolve(t)),a.push(i[u].pledge);return(r=i.length>1?Re.all(a):a[0]).always((function(){if(re.emit(j,d,a,o),r.isRejected())return Q(i,(function(e,t){t.pledge.isRejected()&&re.emit(M,t.path,t)})),Re.reject.apply(null,arguments)}))}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 _(o,"boolean")?s.cache[""]={weight:0,state:o}:F(o)&&Q(o,t,s.cache),K(a)&&(s.version=a),X(u)&&(s.delay=1e3*u),X(c)&&(s.timeout=1e3*Math.min(Math.max(c,2),20)),X(f)&&f>0&&(s.lifetime=1e3*f),_(d,m)&&""!==d&&(s.pattern.base=new Ce("",d)),F(l)&&Q(l,n,s.pattern),F(h)&&Q(h,r,p),i},i.version="7.1.4",i.on=re.on.bind(i),i.get=function(e,t){var n=Ee.get(e,t);return n&&n.value},i.list=Ee.list,i.remove=Ee.remove,i.cache={clear:be.clear},re.after(w,(function(e){new Te(e)})).after(k,(function(e){var t=e.handler.onPostRequest;t&&t(e)})).after("cacheHit postRequest",(function(e){re.emit(R,e.id,e)})).after(q,(function(e){var t=e.handler.onPreRequest;t&&t(e)})).after(R,(function(e){var t=e.handler.onPreProcess;t&&t(e),e.pledge.then((function(){re.emit(P,e.id,e)})),!0===e.enqueue?o.enqueue(e):G(e.enqueue)&&e.enqueue.then((function(){o.enqueue(e)}))})),i}(),e.defineProperty("demand",r),(i=function(){var t,n,i,o=_(arguments[0],m)?arguments[0]:d,u=this!==e?this:d,c=Se(arguments[o?1:0])?arguments[o?1:0]:d,s=c?arguments[o?2:1]:arguments[o?1:0];if(a.current&&(o=(t=a.current).uri,a.process()),o)return t=t||new Ee(o,u),n=G(s),i=_(s,g),c&&c.length?r.apply(t.path,c).then((function(){var e;if(i)try{e=s.apply(d,arguments),G(e)?e.then(t.dfd.resolve,(function(){t.dfd.reject(new je(S,t.id,arguments))})):t.dfd.resolve(e)}catch(e){t.dfd.reject(new je(S,t.id,arguments))}else t.dfd.resolve(s)}),(function(){t.dfd.reject(new je(S,t.id,arguments))})):n?s.then(t.dfd.resolve,t.dfd.reject):t.dfd.resolve(i?s():s),t.dfd.pledge.then((function(){re.emit(C,t.path,t)})),t.dfd.pledge;throw new Error(O)}).amd=!0,e.defineProperty("provide",i),r.configure({cache:p,base:"/",pattern:{"/demand":se((c&&c.url||location.href)+"/../").slice(0,-1)}}),c&&c.settings&&r.configure(c.settings);var Oe=function(){var e=new ie;function t(t){var n=this,i={queue:t,current:d};e.set(n,i),r.on("queueEnqueue:"+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.isPending()?t.handler.process&&t.handler.process(t):n.current=d},get current(){return e.get(this).current}},t}();function $e(e,t){for(var n,r;n=le.exec(t);)fe.test(n[3])?r=e.protocol+"//"+e.host+n[3]:(e.pathname+=(pe.test(e.pathname)?"/../":"/")+n[3].replace(he,""),r=e.protocol+"//"+e.host+e.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}function Ie(){}Ie.prototype={validate:d,onPreRequest:d,onPostRequest:d,onPreProcess:d,process:d};var He=function(){var t=u.getElementsByTagName("head")[0],n=/^(application|text)\/(x-)?javascript/,o={umd:!1,suffix:".js"};function a(){}return r.on("postConfigure:/demand/handler/module",(function(e){F(e)&&Z(o,e)})),a.prototype={validate:function(e){return n.test(e)},onPreRequest:function(e,t){var n;(t=typeof t!==v?t:o.suffix)&&0!==e.path.indexOf("@")&&(n=e.url.pathname,e.url.pathname=n.slice(-t.length)!==t?n+t:n)},onPostRequest:function(e){e.source=$e(e.url,e.source)},process:function(n){var r,a;n.source&&((r=u.createElement("script")).async=p,r.text=n.source,r.setAttribute("demand-id",n.id),o.umd&&(a=e.define,e.define=i),t.appendChild(r),o.umd&&(e.define=a))}},new(a.extends(Ie))}();function je(e,t,n){var r=this;return r.message=e,t&&(r.module=t),n&&(r.stack=ne(n)),r}je.prototype={toString:function(){var e=this,t=e.message+" "+(e.module?'"'+e.module+'"':"");return e.stack&&(t=je.traverse(e.stack,t,1)),t}},je.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=je.traverse(r.stack,t,n+1));return t};var Ne=function(){var e={};function t(e,t){var n,r;for(n=0;r=t[n];n++)_(r,m)&&(t[n]=we(r))}function n(){}return r.on("postConfigure:/demand/handler/bundle",(function(n){F(n)&&Q(e=n,t)})),n.prototype={validate:He.validate,onPreProcess:function(t){var n,r,i,a,u,c=t.source,s=t.dfd,d=e[t.path];function l(){s.reject(new je(A,t.id,arguments))}if(t.enqueue=h,d&&(n=function(t){for(var n,r,i=0;r=t[i];i++)if(r=(r=r.match(ge))&&r[3]||e.handler,n){if(r!==n)return h}else n=r;return n}(d))){for(;r=le.exec(c);)c=c.replace(r[0],"");for(t.source=c,i=[],u=0;a=d[u];u++)i.push(Ee.resolve(f+a).pledge);Re.all(i).then((function(){for(i.length=0,u=0;a=d[u];u++)(a=d[u]=Ee.get(a)||new Ee(a)).handler=arguments[u],i.push(a.pledge);"module"===n?(o.enqueue.apply(o,d),He.process(t)):(He.process(t),o.enqueue.apply(o,d)),Re.all(i).then(s.resolve,l)}),l)}else l()}},new(n.extends(Ie))}(),De=function(){var e=/^text\/.+$/,t={suffix:".html"};function n(){}return r.on("postConfigure:/demand/handler/component",(function(e){F(e)&&Z(t,e)})),n.prototype={validate:function(t){return e.test(t)},onPreRequest:function(e,n){var r;(n=typeof n!==v?n:t.suffix)&&(r=e.url.pathname,e.url.pathname=r.slice(-n.length)!==n?r+n:r)},onPostRequest:function(e){e.source=$e(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 je(A,e.id,arguments))}for(e.enqueue=h,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(Ee.resolve("mock:"+i).pledge));Re.all(d).then((function(){var t,n,r,i=[];for(d.length=0,t=0;n=f[t];t++)(r=Ee.get(n.uri)||new Ee(n.uri)).source=$e(r.url,n.source),r.handler=arguments[t],i.push(r),d.push(r.pledge),o.enqueue(r);Re.all(d).then((function(){var r=e.path.length+1,o={};for(t=0;n=arguments[t];t++)o[i[t].path.substr(r)||"main"]=n;c.resolve(o)}),l)}),l)}},new(n.extends(Ie))}(),Le=function(){var e="/demand/plugin/genie",t=[];function n(e){for(var n,r,i=0;n=t[i];i++)n.prefix.test(e)&&(!r||n.weight>r.weight)&&(r=n);return r}function i(){for(var e,t=0;e=this[t];t++)e.dfd.resolve(arguments[t])}function o(){for(var e,t=0;e=this[t];t++)e.dfd.reject(new je(A,e.id))}function a(e,n){t.push({prefix:new RegExp("^"+e),weight:e.length,fn:n})}function u(t,n){var a,u=n.matches,c=0;if(u.length>1){for(n.id=e+"/"+Ae(JSON.stringify(n.matches));a=u[c];c++)u[c]=new Ee(a.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["/demand/handler/bundle"][e.id]=t=[];n=r[o];o++)t.push(n.path);return i}(n)),r("bundle!"+n.id).then(i.bind(u),o.bind(u))}}return r.on("postConfigure:"+e,(function(e){F(e)&&(t.length=0,Q(e,a))})).on(b,(function(e,t){for(var r,i,o={},a=0;r=e[a];a++)!_(r,m)||me.test(r)||Ee.get(r,t)||"module"===(r=new Ee(r,t,h)).type&&(i=n(r.path))&&!be.get(r)&&(o[i.prefix]||(o[i.prefix]={fn:i.fn,matches:[]})).matches.push(r);Q(o,u)})),p}();function Be(e,t){i(e,(function(){return t}))}if(o=new ae,a=new Oe(o),Be("/demand/abstract/uuid",oe),Be("/demand/abstract/handler",Ie),Be("/demand/handler/module",He),Be("/demand/handler/bundle",Ne),Be("/demand/handler/component",De),Be("/demand/plugin/genie",Le),Be("/demand/validator/isTypeOf",_),Be("/demand/validator/isArray",Se),Be("/demand/validator/isObject",F),Be("/demand/validator/isInstanceOf",(function(e,t){return e instanceof t})),Be("/demand/validator/isSemver",K),Be("/demand/validator/isThenable",G),Be("/demand/function/resolveUrl",se),Be("/demand/function/resolveSourcemaps",$e),Be("/demand/function/merge",Z),Be("/demand/function/iterate",Q),Be("/demand/function/hash",Ae),Be("/demand/function/defer",te),Be("/demand/function/idle",ue),Be("/demand/function/uuid",ee),Be("/demand/function/toArray",ne),Be("/demand/task",Me),Be("/demand/weakmap",ie),Be("/demand/descriptor",W),Be("/demand/pledge",Re),Be("/demand/queue",ae),Be("/demand/failure",je),Be("/demand/semver",xe),c&&c.main)switch(typeof c.main){case m:r(c.main);break;case g:i("main",c.main())}}("demand-loader"===this.name?parent:this,setTimeout,clearTimeout); +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +!function(e,t,n){"use strict";var r,i,o,a,u=e.document,c="demand"in e&&e.demand,s={version:"1.0.0",cache:{},timeout:8e3,pattern:{},modules:{},handler:"module"},f="mock:",d=null,l=void 0,h=!1,p=!0,v="undefined",m="string",g="function",y="postConfigure",w="cacheMiss",x="cacheExceed",b="preResolve",j="postResolve",q="preRequest",k="postRequest",R="preProcess",P="postProcess",E="queueEnqueue",C="provide",M="reject",T="error loading",S="error providing",A="error resolving",O="unspecified anonymous provide",$=Array.prototype,I=$.slice,H=$.concat,N=Object,D=N.create,L=N.defineProperty,B=N.getOwnPropertyNames,U=N.getOwnPropertyDescriptor,z=u.createElement("a");function W(e,t,n,r){return{__proto__:d,value:e,enumerable:!!r,configurable:!!n,writable:!!t}}function _(e,t){return typeof e===t}function F(e){return e&&_(e,"object")}function X(e){return _(e,"number")&&isFinite(e)&&Math.floor(e)===e&&e>=0}function G(e){return e&&_(e.then,g)}!function(t){function n(e,t,n,r,i){L(this,e,new W(t,n,r,i))}function r(e){for(var t,n=this,r=n.prototype,i=B(r),o={constructor:new W(n,p,p)},a=0;(t=i[a])&&!o[t];a++)o[t]=U(r,t);try{n.prototype=D(e.prototype||e,o)}catch(e){}if(n.prototype===r)throw new TypeError("Unable to extend, prototype is not writable");return n}n.call(Object.prototype,"defineProperty",n),n.call(e.Object.prototype,"defineProperty",n),Function.prototype.defineProperty("extends",r),e.Function.prototype.defineProperty("extends",r)}();var J,K=(J=/^\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 _(e,m)&&J.test(e)});function Q(e,t,n){for(var r,i=N.keys(e),o=0;(r=i[o])!==l&&t.call(n,r,e[r])!==h;o++);return n}var V,Y,Z=function(){function e(e,t){var n,r=this[e];t!==l&&(F(t)?(n=F(r),r=t.length!==l?n&&r.length!==l?r:[]:n&&r.length===l?r:{},this[e]=Z(r,t)):this[e]=t)}return function(){for(var t,n=arguments[0],r=1;(t=arguments[r])!==l;r++)Q(t,e,n);return n}}(),ee=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)}}(),te="setImmediate"in e&&"function"==typeof e.setImmediate?e.setImmediate:"MutationObserver"in e&&"function"==typeof e.MutationObserver?(V={},Y=u.createElement("div"),new MutationObserver((function(e){e.forEach((function(e){var t=e.attributeName.substr(1);V[t]&&V[t](),delete V[t]}))})).observe(Y,{attributes:p}),function(e){var t=ee();V[t]=e,Y.setAttribute("i"+t,1)}):t;function ne(e,t,n){return I.call(e,t,n)}var re=function(){var e=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)|provide|reject$/,t={};function n(n,r,i){var o,a;if(_(r,m)&&_(i,g))for(r=r.split(" ");o=r.shift();)o=o.split(":"),e.test(o[0])&&((t[o[0]]||(t[o[0]]={on:[],after:[]}))[n].push({callback:i,filter:o[1]}),"on"===n&&o[0]===y&&(a=s.modules[o[1]])&&i(a))}function r(){}return r.prototype={emit:function(e,n){var r,i,o,a=t[e];if(a){for(r=ne(arguments,2),i=0;o=a.on[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r);for(i=0;o=a.after[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r)}return this},on:function(e,t){return n("on",e,t),this},after:function(e,t){return n("after",e,t),this}},new r}(),ie="WeakMap"in e&&!("ActiveXObject"in e)?e.WeakMap:function(e){var t=new e;function n(){t.set(this,new e)}return n.prototype={get:function(e){return t.get(this).get(e)},set:function(e,n){return t.get(this).set(e,n),this},has:function(e){return!!this.get(e)},delete:function(e){return t.get(this).delete(e)}},n}(e.WeakMap);function oe(){return _(this.uuid,v)&&this.defineProperty("uuid",ee()),this}var ae=function(){var e=new ie;function t(){var t=oe.call(this);return e.set(t,[]),t}return t.prototype={enqueue:function(){var t=ne(arguments);e.set(this,e.get(this).concat(t)),re.emit(E,this.uuid,t)},dequeue:function(){var t=e.get(this).shift();return re.emit("queueDequeue",this.uuid,t),t},get current(){return e.get(this)[0]},get length(){return e.get(this).length}},t.extends(oe)}(),ue=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:h,timeRemaining:function(){return Math.max(0,50-(+new Date-r))}})}),n&&n.timeout)},a=e.cancelIdleCallback||function(e){n(e)},c=new ae;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())}}),p),function(e,t){c.enqueue(e),!r&&c.length&&(r=o(s,{timeout:t}))}}();function ce(){return+new Date}function se(e){return z.href=e,z.href}var fe=/^(http(s?):)?\/\//i,de=/^\.?\.\//,le=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,he=/^\//,pe=/\.\w+$/,ve=new RegExp("^"+se("/")),me=new RegExp("^demand|provide|path|exports$"),ge=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/;function ye(e,t){var n=e.replace(ge,"");return de.test(n)&&(n="/"+se((t&&se(t+"/../")||"/")+n).replace(ve,"")),n}function we(e,t){var n=e.match(ge);return(n&&n[1]?"mock:":"")+(n&&n[3]||s.handler)+"!"+ye(e,t)}var xe=function(){function e(e,t){return et?1:0}function t(e){if(!K(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.shift(),this.minor=e.shift(),this.patch=e.shift(),this.identifier=e}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)===v&&o===v)return 0;if(o===v)return 1;if(i===v)return-1;if(n===r);else{if(i===m&&o!==m)return 1;if(i!==m&&o===m)return-1;if(n>r)return 1;if(nt.weight)&&(t=r)})),t?t.state:h)}function m(e){return c.getItem(e)}function g(e,t){c[t?"setItem":"removeItem"](e,t)}function y(e){var t,n=m(e);if(n&&(t=n.match(a)))return ne(t,1)}function b(e,t){t[4]=ce(),g(e,t.join(","))}function j(e,t,n){re.emit(e,t.id,t,n)}function q(){ue(this.clear.expired.bind(this.clear),s.delay)}return re.on(w,(function(e){ue((function(){t.clear(e.id)}))})).on(x,(function(e){r("-!/demand/cache/dispose").then((function(n){ue((function(){n(e.source.length),t.set(e)}),s.delay)}))})).on(k,(function(e){e.source&&v(e)&&(l[e.id]=p)})).after(P,(function(e){l[e.id]&&ue((function(){t.set(e)}),s.delay)})),q.prototype={get:u?function(e){var t,r;if(v(e)){if(t="[demand]["+e.id+"]",!(r=y(t+n)))return;return 1===e.version.compare(new xe(r[0]))||r[2]&&e.lifetime&&r[2]<=ce()?void(e.invalid=!0):(e.source=m(t+i),ue((function(){b(t+n,r)}),s.delay),p)}}:function(){},resolve:u?function(e){this.get(e)?j("cacheHit",e):j(w,e)}:function(e){j(w,e)},set:u?function(e){var t,o,a;if(v(e)){t=[e.version,e.source.length,e.lifetime?ce()+e.lifetime:d,r.version],o="[demand]["+e.id+"]",j("preCache",e,t);try{if(a=f?c.remainingSpace:d,g(o+i,e.source),b(o+n,t),a!==d&&c.remainingSpace===a)throw new Error;j("postCache",e,t)}catch(t){j(x,e)}}}:function(){},clear:u?function(e){var t=we(e),r="[demand]["+t+"]";m(r+n)&&(g(r+n),g(r+i),j("cacheClear",Ee.get(t)||new Ee(t,d,h)))}:function(){}},q.prototype.clear.all=u?function(){var e;Q(c,(function(t){(e=t.match(o))&&this(e[1])}),this)}:function(){},q.prototype.clear.expired=u?function(){var e,t;Q(c,(function(r){(e=r.match(o))&&(t=y("[demand]["+e[1]+"]"+n))&&t[2]>0&&t[2]<=ce()&&this(e[1])}),this)}:function(){},t=new q}();function G(e){return e&&_(e.then,g)}function je(e,t,n){var r=this;return r.message=e,t&&(r.module=t),n&&(r.stack=ne(n)),r}je.prototype={toString:function(){var e=this,t=e.message+" "+(e.module?'"'+e.module+'"':"");return e.stack&&(t=je.traverse(e.stack,t,1)),t}},je.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=je.traverse(r.stack,t,n+1));return t};var qe,ke,Re=function(){var e="pending",t="resolved",n="rejected",r=new ie;function i(){var e=this,n=arguments;te((function(){r.get(e).handle(t,n)}))}function o(){var e=this,t=arguments;te((function(){r.get(e).handle(n,t)}))}function a(n,i){var o,a,u=r.get(this);for(u.state===e&&(u.state=n,u.value=i);o=u[u.state].shift();)try{if(a=o.handler.apply(d,u.value),G(a)){a.then(o.dfd.resolve,o.dfd.reject);continue}if(u.state===t&&_(a,v)){o.dfd.resolve.apply(d,u.value);continue}o.dfd.resolve(a)}catch(e){o.dfd.reject(e)}u.resolved.length=0,u.rejected.length=0}function u(e,t,n){e.then((function(){n.resolved[t]=ne(arguments),n.count++,c(n)}),(function(){n.rejected.push(ne(arguments)),c(n)}))}function c(e){e.count===e.total?e.dfd.resolve.apply(d,H.apply([],e.resolved)):e.rejected.length+e.count===e.total&&e.dfd.reject.apply(d,H.apply([],e.rejected))}function s(t){var n=this;return r.set(n,{state:e,handle:a.bind(n),value:d,resolved:[],rejected:[],count:0}),t(i.bind(n),o.bind(n)),n}return s.prototype={isPending:function(){return r.get(this).state===e},isResolved:function(){return r.get(this).state===t},isRejected:function(){return r.get(this).state===n},then:function(t,n){var i=r.get(this),o=s.defer();return i.resolved.push({handler:t||s.resolve,dfd:o}),i.rejected.push({handler:n||s.reject,dfd:o}),i.state!==e&&te(i.handle),o.pledge},catch:function(e){return this.then(l,e)},always:function(e){return this.then(e,e)}},s.prototype.finally=s.prototype.always,s.defer=function(){var e={};return e.pledge=new s((function(t,n){e.resolve=t,e.reject=n})),e},s.all=function(e){var t,n,r=s.defer(),i=0;if(e.length)for(t={dfd:r,resolved:[],rejected:[],total:e.length,count:0};n=e[i];i++)u(n,i,t);else r.resolve();return r.pledge},s.race=function(e){for(var t,n=s.defer(),r=0;t=e[r];r++)t.then(n.resolve,n.reject);return e.length||n.resolve(),n.pledge},s.resolve=function(){var e=s.defer();return e.resolve.apply(d,arguments),e.pledge},s.reject=function(){var e=s.defer();return e.reject.apply(d,arguments),e.pledge},s}(),Pe=function(){var e=new ie;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}(),Ee=function(){var e="internal!",t=new Pe,n=/^(?:mock:|internal!)/i,o=[];function a(e,t){this[e]=t}function c(e){n.test(e)||this.push(e)}function l(e,t){!n.test(e)&&t.pledge.isPending()&&this.push(e)}function v(e,t){!n.test(e)&&t.pledge.isResolved()&&this.push(e)}function m(e,t){!n.test(e)&&t.pledge.isRejected()&&this.push(e)}function g(){return Q(t.get(),c,[])}function y(e,n,r){var i=this,a=e.match(ge)||o;return i.path=ye(e,n),i.mock=a[1]?p:h,i.cache=a[2]?"+"===a[1]:d,i.type=a[3]||s.handler,i.version=new xe(a[4]||s.version),i.lifetime=a[5]&&1e3*a[5]||s.lifetime,i.id=(i.mock?f:"")+i.type+"!"+i.path,i.uri=(i.mock?f:"")+i.type+"@"+i.version+(X(i.lifetime)&&i.lifetime>0?"#"+i.lifetime:"")+"!"+i.path,i.dfd=Re.defer(),i.pledge=i.dfd.pledge,i.invalid=!1,i.pledge.then((function(){i.value=ne(arguments)})),r!==h&&t.set(i.id,i),i}return g.pending=function(){return Q(t.get(),l,[])},g.resolved=function(){return Q(t.get(),v,[])},g.rejected=function(){return Q(t.get(),m,[])},y.prototype={enqueue:!0},y.get=function(e,n){return t.get(we(e,n))},y.resolve=function(t,n){var o,u=n&&me.test(t),c=u?this.get(e+n+"/"+t):this.get(t,n);if(!c)if(u){switch(c=new y(e+n+"/"+t),t){case"demand":o=Q(r,a,r.bind(n));break;case"provide":o=i.bind(n);break;case"path":o=n;break;case"exports":o=this.get(n).value={}}c.dfd.resolve(o)}else c=new y(t,n),r("/demand/handler/"+c.type).then((function(e){c.handler=e,c.mock?c.dfd.resolve(e):be.resolve(c)}),(function(){c.dfd.reject(new je(T+" (handler)",self.id))}));return c},y.remove=function(e,n,r){var i=we(e,n),o=u.querySelector('[demand-id="'+i+'"]');t.remove(i),t.remove(f+i),o&&o.parentNode.removeChild(o),r!==h&&be.clear(i)},y.list=g,y}(),Ce=function(){var e=/(.+)\/$/;function t(t,n){this[t]={url:se(n).replace(e,"$1"),match:new RegExp("^"+n)}}function n(e,n){var r=this;r.weight=e.length,r.match=new RegExp("^"+e),r.location=[].concat(n),Q(r.location,t,r.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}(),Me=function(){var e={};function t(e){return e instanceof ArrayBuffer||e instanceof MessagePort||"ImageBitmap"in self&&e instanceof ImageBitmap}return function(n){var r,i;return r="$task = "+n+"; $isTransferable = "+t+"; onmessage = "+function(e){var t,n=Array.prototype.slice,r=e.data;function i(e){t||(t=!0,postMessage([r[0],0,e.toString()]))}try{$task.apply($task,[function(){var e;t||(t=!0,e=n.call(arguments),postMessage([r[0],1,e],e.filter($isTransferable)))},i].concat(r[1]))}catch(e){i(e)}},(i=new Worker(URL.createObjectURL(new Blob([r],{type:"application/javascript"})))).onmessage=function(t){var n=t.data[0],r=n?e[n]:null;n&&r&&(t.data[1]?r.resolve.apply(null,t.data[2]):r.reject(t.data[2]),delete e[n])},function(){var n=Re.defer(),r=ee(),o=ne(arguments);return e[r]=n,i.postMessage([r,o],o.filter(t)),n.pledge}}}(),Te=(qe=/^(?:\?|)$/,ke=new Me((function(e,t,n){var r,i,o=new XMLHttpRequest;r=function(){this.readyState<4&&this.abort()}.bind(o),o.ontimeout=o.onerror=o.onabort=function(){t(o.statusText)},o.onprogress=o.onreadystatechange=function(){self.clearTimeout(i),i=self.setTimeout(r,1e4)},o.onload=function(){i=self.clearTimeout(i),"status"in o&&200!==o.status?t(o.statusText):e(o.responseText,o.getResponseHeader&&o.getResponseHeader("content-type"))},o.open("GET",n,!0),o.send(),i=self.setTimeout(r,1e4)})),function(e){var t;function n(t,n){n&&e.handler.validate&&!e.handler.validate(n)?e.dfd.reject(new je(T+" (content-type)",e.id)):(e.source=t,re.emit(k,e.type,e))}fe.test(e.path)||Q(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 Ce(e,t))}function r(e,t){var n=this[e]=this[e]||{};re.emit("preConfigure",e,n),Z(n,t),re.emit(y,e,n)}function i(){var t,n,r,i=ne(arguments),o=this!==e?this:d,a=[],u=0;for(re.emit(b,d,i,o);t=i[u];u++)_(t,m)?i[u]=Ee.resolve(t,o):(i[u]=n=Re.defer(),n.resolve(t)),a.push(i[u].pledge);return(r=i.length>1?Re.all(a):a[0]).always((function(){if(re.emit(j,d,a,o),r.isRejected())return Q(i,(function(e,t){t.pledge.isRejected()&&re.emit(M,t.path,t)})),Re.reject.apply(null,arguments)}))}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 _(o,"boolean")?s.cache[""]={weight:0,state:o}:F(o)&&Q(o,t,s.cache),K(a)&&(s.version=a),X(u)&&(s.delay=1e3*u),X(c)&&(s.timeout=1e3*Math.min(Math.max(c,2),20)),X(f)&&f>0&&(s.lifetime=1e3*f),_(d,m)&&""!==d&&(s.pattern.base=new Ce("",d)),F(l)&&Q(l,n,s.pattern),F(h)&&Q(h,r,p),i},i.version="7.1.5",i.on=re.on.bind(i),i.get=function(e,t){var n=Ee.get(e,t);return n&&n.value},i.list=Ee.list,i.remove=Ee.remove,i.cache={clear:be.clear},re.after(w,(function(e){new Te(e)})).after(k,(function(e){var t=e.handler.onPostRequest;t&&t(e)})).after("cacheHit postRequest",(function(e){re.emit(R,e.id,e)})).after(q,(function(e){var t=e.handler.onPreRequest;t&&t(e)})).after(R,(function(e){var t=e.handler.onPreProcess;t&&t(e),e.pledge.then((function(){re.emit(P,e.id,e)})),!0===e.enqueue?o.enqueue(e):G(e.enqueue)&&e.enqueue.then((function(){o.enqueue(e)}))})),i}(),e.defineProperty("demand",r),(i=function(){var t,n,i,o=_(arguments[0],m)?arguments[0]:d,u=this!==e?this:d,c=Se(arguments[o?1:0])?arguments[o?1:0]:d,s=c?arguments[o?2:1]:arguments[o?1:0];if(a.current&&(o=(t=a.current).uri,a.process()),o)return t=t||new Ee(o,u),n=G(s),i=_(s,g),c&&c.length?r.apply(t.path,c).then((function(){var e;if(i)try{e=s.apply(d,arguments),!t.value&&G(e)?e.then(t.dfd.resolve,(function(){t.dfd.reject(new je(S,t.id,arguments))})):t.dfd.resolve(t.value||e)}catch(e){t.dfd.reject(new je(S,t.id,arguments))}else t.dfd.resolve(s)}),(function(){t.dfd.reject(new je(S,t.id,arguments))})):n?s.then(t.dfd.resolve,t.dfd.reject):t.dfd.resolve(i?s():s),t.dfd.pledge.then((function(){re.emit(C,t.path,t)})),t.dfd.pledge;throw new Error(O)}).amd=!0,e.defineProperty("provide",i),r.configure({cache:p,base:"/",pattern:{"/demand":se((c&&c.url||location.href)+"/../").slice(0,-1)}}),c&&c.settings&&r.configure(c.settings);var Oe=function(){var e=new ie;function t(t){var n=this,i={queue:t,current:d};e.set(n,i),r.on("queueEnqueue:"+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.isPending()?t.handler.process&&t.handler.process(t):n.current=d},get current(){return e.get(this).current}},t}();function $e(e,t){for(var n,r;n=le.exec(t);)fe.test(n[3])?r=e.protocol+"//"+e.host+n[3]:(e.pathname+=(pe.test(e.pathname)?"/../":"/")+n[3].replace(he,""),r=e.protocol+"//"+e.host+e.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}function Ie(){}Ie.prototype={validate:d,onPreRequest:d,onPostRequest:d,onPreProcess:d,process:d};var He=function(){var t=u.getElementsByTagName("head")[0],n=/^(application|text)\/(x-)?javascript/,o={umd:!1,suffix:".js"};function a(){}return r.on("postConfigure:/demand/handler/module",(function(e){F(e)&&Z(o,e)})),a.prototype={validate:function(e){return n.test(e)},onPreRequest:function(e,t){var n;(t=typeof t!==v?t:o.suffix)&&0!==e.path.indexOf("@")&&(n=e.url.pathname,e.url.pathname=n.slice(-t.length)!==t?n+t:n)},onPostRequest:function(e){e.source=$e(e.url,e.source)},process:function(n){var r,a;n.source&&((r=u.createElement("script")).async=p,r.text=n.source,r.setAttribute("demand-id",n.id),o.umd&&(a=e.define,e.define=i),t.appendChild(r),o.umd&&(e.define=a))}},new(a.extends(Ie))}();function je(e,t,n){var r=this;return r.message=e,t&&(r.module=t),n&&(r.stack=ne(n)),r}je.prototype={toString:function(){var e=this,t=e.message+" "+(e.module?'"'+e.module+'"':"");return e.stack&&(t=je.traverse(e.stack,t,1)),t}},je.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=je.traverse(r.stack,t,n+1));return t};var Ne=function(){var e={};function t(e,t){var n,r;for(n=0;r=t[n];n++)_(r,m)&&(t[n]=we(r))}function n(){}return r.on("postConfigure:/demand/handler/bundle",(function(n){F(n)&&Q(e=n,t)})),n.prototype={validate:He.validate,onPreProcess:function(t){var n,r,i,a,u,c=t.source,s=t.dfd,d=e[t.path];function l(){s.reject(new je(A,t.id,arguments))}if(t.enqueue=h,d&&(n=function(t){for(var n,r,i=0;r=t[i];i++)if(r=(r=r.match(ge))&&r[3]||e.handler,n){if(r!==n)return h}else n=r;return n}(d))){for(;r=le.exec(c);)c=c.replace(r[0],"");for(t.source=c,i=[],u=0;a=d[u];u++)i.push(Ee.resolve(f+a).pledge);Re.all(i).then((function(){for(i.length=0,u=0;a=d[u];u++)(a=d[u]=Ee.get(a)||new Ee(a)).handler=arguments[u],i.push(a.pledge);"module"===n?(o.enqueue.apply(o,d),He.process(t)):(He.process(t),o.enqueue.apply(o,d)),Re.all(i).then(s.resolve,l)}),l)}else l()}},new(n.extends(Ie))}(),De=function(){var e=/^text\/.+$/,t={suffix:".html"};function n(){}return r.on("postConfigure:/demand/handler/component",(function(e){F(e)&&Z(t,e)})),n.prototype={validate:function(t){return e.test(t)},onPreRequest:function(e,n){var r;(n=typeof n!==v?n:t.suffix)&&(r=e.url.pathname,e.url.pathname=r.slice(-n.length)!==n?r+n:r)},onPostRequest:function(e){e.source=$e(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 je(A,e.id,arguments))}for(e.enqueue=h,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(Ee.resolve("mock:"+i).pledge));Re.all(d).then((function(){var t,n,r,i=[];for(d.length=0,t=0;n=f[t];t++)(r=Ee.get(n.uri)||new Ee(n.uri)).source=$e(r.url,n.source),r.handler=arguments[t],i.push(r),d.push(r.pledge),o.enqueue(r);Re.all(d).then((function(){var r=e.path.length+1,o={};for(t=0;n=arguments[t];t++)o[i[t].path.substr(r)||"main"]=n;c.resolve(o)}),l)}),l)}},new(n.extends(Ie))}(),Le=function(){var e="/demand/plugin/genie",t=[];function n(e){for(var n,r,i=0;n=t[i];i++)n.prefix.test(e)&&(!r||n.weight>r.weight)&&(r=n);return r}function i(){for(var e,t=0;e=this[t];t++)e.dfd.resolve(arguments[t])}function o(){for(var e,t=0;e=this[t];t++)e.dfd.reject(new je(A,e.id))}function a(e,n){t.push({prefix:new RegExp("^"+e),weight:e.length,fn:n})}function u(t,n){var a,u=n.matches,c=0;if(u.length>1){for(n.id=e+"/"+Ae(JSON.stringify(n.matches));a=u[c];c++)u[c]=new Ee(a.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["/demand/handler/bundle"][e.id]=t=[];n=r[o];o++)t.push(n.path);return i}(n)),r("bundle!"+n.id).then(i.bind(u),o.bind(u))}}return r.on("postConfigure:"+e,(function(e){F(e)&&(t.length=0,Q(e,a))})).on(b,(function(e,t){for(var r,i,o={},a=0;r=e[a];a++)!_(r,m)||me.test(r)||Ee.get(r,t)||"module"===(r=new Ee(r,t,h)).type&&(i=n(r.path))&&!be.get(r)&&(o[i.prefix]||(o[i.prefix]={fn:i.fn,matches:[]})).matches.push(r);Q(o,u)})),p}();function Be(e,t){i(e,(function(){return t}))}if(o=new ae,a=new Oe(o),Be("/demand/abstract/uuid",oe),Be("/demand/abstract/handler",Ie),Be("/demand/handler/module",He),Be("/demand/handler/bundle",Ne),Be("/demand/handler/component",De),Be("/demand/plugin/genie",Le),Be("/demand/validator/isTypeOf",_),Be("/demand/validator/isArray",Se),Be("/demand/validator/isObject",F),Be("/demand/validator/isInstanceOf",(function(e,t){return e instanceof t})),Be("/demand/validator/isSemver",K),Be("/demand/validator/isThenable",G),Be("/demand/function/resolveUrl",se),Be("/demand/function/resolveSourcemaps",$e),Be("/demand/function/merge",Z),Be("/demand/function/iterate",Q),Be("/demand/function/hash",Ae),Be("/demand/function/defer",te),Be("/demand/function/idle",ue),Be("/demand/function/uuid",ee),Be("/demand/function/toArray",ne),Be("/demand/task",Me),Be("/demand/weakmap",ie),Be("/demand/descriptor",W),Be("/demand/pledge",Re),Be("/demand/queue",ae),Be("/demand/failure",je),Be("/demand/semver",xe),c&&c.main)switch(typeof c.main){case m:r(c.main);break;case g: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 0d6bed2..5441676 100644 --- a/dist/demand.js.map +++ b/dist/demand.js.map @@ -1 +1 @@ -{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","demand","provide","queue","processor","document","options","settings","version","cache","timeout","pattern","modules","handler","MOCK_PREFIX","NULL","UNDEFINED","undefined","FALSE","TRUE","STRING_UNDEFINED","STRING_STRING","STRING_FUNCTION","EVENT_POST_CONFIGURE","EVENT_POSTFIX","EVENT_CACHE_MISS","EVENT_CACHE","EVENT_CACHE_EXCEED","EVENT_PRE_RESOLVE","EVENT_PREFIX","EVENT_POST_RESOLVE","EVENT_PRE_REQUEST","EVENT_POST_REQUEST","EVENT_PRE_PROCESS","EVENT_POST_PROCESS","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","EVENT_PROVIDE","EVENT_REJECT","ERROR_LOAD","ERROR_PROVIDE","ERROR_RESOLVE","ERROR_PROVIDE_ANONYMOUS","arrayPrototype","Array","prototype","arrayPrototypeSlice","slice","arrayPrototypeConcat","concat","object","Object","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","linkElement","createElement","ClassDescriptor","value","writable","configurable","enumerable","__proto__","validatorIsTypeOf","type","validatorIsObject","validatorIsPositive","isFinite","Math","floor","validatorIsThenable","then","strPrototype","objectDefine","name","this","functionExtends","source","property","self","names","properties","constructor","i","e","TypeError","call","Function","regexMatchSemver","validatorIsSemver","test","functionIterate","callback","context","keys","storage","element","functionMerge","mergeProperties","targetPropertyIsObject","targetProperty","length","target","arguments","functionUuid","regex","RegExp","randomize","character","r","random","toString","replace","functionDefer","setImmediate","MutationObserver","records","forEach","record","uuid","attributeName","substr","observe","attributes","fn","setAttribute","functionToArray","arrayLikeObject","start","end","singletonEvent","regexMatchEvent","listener","addListener","events","event","pointer","split","shift","on","after","push","filter","Event","emit","parameter","item","apply","ClassWeakmap","WeakMap","NativeWeakMap","weakmap","set","get","key","has","delete","AbstractUuid","ClassQueue","enqueue","items","dequeue","current","extends","functionIdle","eventName","safari","pushNotification","requestIdleCallback","Date","didTimeout","timeRemaining","max","cancelIdleCallback","id","process","addEventListener","visibilityState","delay","functionGetTimestamp","functionResolveUrl","url","href","regexIsAbsoluteUri","regexIsRelativePath","regexMatchSourcemap","regexMatchLeadingSlash","regexMatchSuffix","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","STORAGE_SUFFIX_STATE","STORAGE_SUFFIX_VALUE","regexMatchState","regexMatchProperties","supportsLocalStorage","localStorage","exception","supportsRemainingSpace","enabled","dependency","indexOf","weight","state","getKey","getItem","setKey","getState","matches","setState","Cache","clear","expired","bind","cacheDispose","STORAGE_PREFIX","lifetime","invalid","resolve","spaceBefore","remainingSpace","Error","error","ClassDependency","all","ClassFailure","message","module","stack","result","traverse","depth","indention","regexMatchEmptySearch","loadXhr","ClassPledge","PLEDGE_PENDING","PLEDGE_RESOLVED","PLEDGE_REJECTED","args","handle","reject","dfd","pledge","index","resolved","count","check","rejected","total","executor","isPending","isResolved","isRejected","resolveListener","rejectListener","defer","catch","always","finally","pledges","race","ClassRegistry","remove","PREFIX_INTERNAL","registry","matchInternal","placeholder","setProperty","add","addPending","addResolved","addRejected","list","register","mock","pending","isInternal","MODULE_PREFIX","node","querySelector","parentNode","removeChild","ClassPattern","regexMatchTrailingSlash","location","ClassTask","lookup","isTransferable","ArrayBuffer","MessagePort","ImageBitmap","task","script","worker","isSettled","toArray","data","postMessage","$task","$isTransferable","Worker","URL","createObjectURL","Blob","onmessage","ClassLoader","checkState","xhr","XMLHttpRequest","readyState","abort","ontimeout","onerror","onabort","statusText","onprogress","onreadystatechange","onload","status","responseText","getResponseHeader","open","send","response","validate","load","search","validatorIsArray","isArray","functionHash","input","charCodeAt","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","_","configure","base","min","onPostRequest","EVENT_CACHE_HIT","onPreRequest","onPreProcess","isThenable","isFunction","definition","amd","/demand","ClassProcessor","functionResolveSourcemaps","replacement","exec","protocol","host","pathname","abstractHandler","handlerModule","getElementsByTagName","regexMatchType","umd","suffix","HandlerModule","_define","async","text","DEMAND_ID","define","appendChild","handlerBundle","updateDependencies","HandlerBundle","getType","handlerComponent","HandlerComponent","container","innerHTML","firstElementChild","getAttribute","textContent","component","components","offset","pluginGenie","MODULE_PREFIX_PLUGIN","matchPattern","prefix","resolveDependencies","rejectDependencies","addPattern","resolveBundles","JSON","stringify","bundle","configuration","/demand/handler/bundle","MODULE_PREFIX_HANDLER","generateConfiguration","bundles","assignModule","MODULE_PREFIX_ABSTRACT","MODULE_PREFIX_VALIDATOR","MODULE_PREFIX_FUNCTION","main","parent"],"mappings":";CAYC,SAASA,EAAQC,EAAYC,GAC7B,aAGA,IAGCC,EAAQC,EAASC,EAAOC,EAHrBC,EAAWP,EAAOO,SACrBC,EAAW,WAAYR,GAAUA,EAAOG,OACxCM,EAAW,CAAEC,QAAS,QAASC,MAAO,GAAIC,QAAS,IAAMC,QAAS,GAAIC,QAAS,GAAIC,QAAS,UAyB3FC,EAA0B,QAC1BC,EAA0B,KAC1BC,OAA0BC,EAC1BC,GAA0B,EAC1BC,GAA0B,EAC1BC,EAA0B,YAC1BC,EAA0B,SAG1BC,EAA0B,WAM1BC,EAA0BC,gBAE1BC,EAA0BC,YAG1BC,EAA0BD,cAI1BE,EAA0BC,aAC1BC,EAA0BN,cAE1BO,EAA0BF,aAC1BG,EAA0BR,cAE1BS,EAA0BJ,aAC1BK,EAA0BV,cAE1BW,EAA0BC,eAE1BC,EAA0B,UAC1BC,EAA0B,SAC1BC,EAA0B,gBAC1BC,EAA0B,kBAC1BC,EAA0B,kBAC1BC,EAA0B,gCAMvBC,EAAiCC,MAAMC,UAC1CC,EAAiCH,EAAeI,MAChDC,EAAiCL,EAAeM,OAChDC,EAAiCC,OACjCC,EAAiCF,EAAOG,OACxCC,EAAiCJ,EAAOK,eACxCC,EAAiCN,EAAOO,oBACxCC,EAAiCR,EAAOS,yBACxCC,EAAiCvD,EAASwD,cAAc,KASzD,SAASC,EAAgBC,EAAOC,EAAUC,EAAcC,GACvD,MAAO,CACNC,UAAcpD,EACdgD,MAAcA,EACdG,aAAgBA,EAChBD,eAAgBA,EAChBD,WAAgBA,GAqElB,SAASI,EAAkBlB,EAAQmB,GAClC,cAAcnB,IAAWmB,EAsB1B,SAASC,EAAkBpB,GAC1B,OAAOA,GAAUkB,EAAkBlB,EA1JT,UAgL3B,SAASqB,EAAoBR,GAC5B,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rD,IACxC+K,GAAa1H,iBAA0B3G,IAEpCnM,GAAWA,EAAQ4a,KACrB,cAAc5a,EAAQ4a,MACrB,KAAK7Z,EACJpB,EAAOK,EAAQ4a,MAEf,MACD,KAAK5Z,EACJpB,EAAQ,OAAQI,EAAQ4a,SAzrF7B,CA8rFgB,kBAAdlW,KAAKD,KAA2BoW,OAASnW,KAAMjF,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, validatorIsThenable,\n\tfunctionResolveUrl, functionResolveSourcemaps, functionMerge, functionIterate, functionDefer, functionToArray, functionIdle, functionHash, functionUuid,\n\tAbstractUuid, abstractHandler,\n\tClassDependency, ClassQueue, ClassProcessor, ClassPledge, ClassFailure, ClassDescriptor, ClassWeakmap, ClassTask, 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, log;\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 validator/IsInstanceOf.js\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_VALIDATOR + 'isThenable', validatorIsThenable);\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_FUNCTION + 'toArray', functionToArray);\n\t\tassignModule(MODULE_PREFIX + 'task', ClassTask);\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 + '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 +{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","demand","provide","queue","processor","document","options","settings","version","cache","timeout","pattern","modules","handler","MOCK_PREFIX","NULL","UNDEFINED","undefined","FALSE","TRUE","STRING_UNDEFINED","STRING_STRING","STRING_FUNCTION","EVENT_POST_CONFIGURE","EVENT_POSTFIX","EVENT_CACHE_MISS","EVENT_CACHE","EVENT_CACHE_EXCEED","EVENT_PRE_RESOLVE","EVENT_PREFIX","EVENT_POST_RESOLVE","EVENT_PRE_REQUEST","EVENT_POST_REQUEST","EVENT_PRE_PROCESS","EVENT_POST_PROCESS","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","EVENT_PROVIDE","EVENT_REJECT","ERROR_LOAD","ERROR_PROVIDE","ERROR_RESOLVE","ERROR_PROVIDE_ANONYMOUS","arrayPrototype","Array","prototype","arrayPrototypeSlice","slice","arrayPrototypeConcat","concat","object","Object","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","linkElement","createElement","ClassDescriptor","value","writable","configurable","enumerable","__proto__","validatorIsTypeOf","type","validatorIsObject","validatorIsPositive","isFinite","Math","floor","validatorIsThenable","then","strPrototype","objectDefine","name","this","functionExtends","source","property","self","names","properties","constructor","i","e","TypeError","call","Function","regexMatchSemver","validatorIsSemver","test","functionIterate","callback","context","keys","storage","element","functionMerge","mergeProperties","targetPropertyIsObject","targetProperty","length","target","arguments","functionUuid","regex","RegExp","randomize","character","r","random","toString","replace","functionDefer","setImmediate","MutationObserver","records","forEach","record","uuid","attributeName","substr","observe","attributes","fn","setAttribute","functionToArray","arrayLikeObject","start","end","singletonEvent","regexMatchEvent","listener","addListener","events","event","pointer","split","shift","on","after","push","filter","Event","emit","parameter","item","apply","ClassWeakmap","WeakMap","NativeWeakMap","weakmap","set","get","key","has","delete","AbstractUuid","ClassQueue","enqueue","items","dequeue","current","extends","functionIdle","eventName","safari","pushNotification","requestIdleCallback","Date","didTimeout","timeRemaining","max","cancelIdleCallback","id","process","addEventListener","visibilityState","delay","functionGetTimestamp","functionResolveUrl","url","href","regexIsAbsoluteUri","regexIsRelativePath","regexMatchSourcemap","regexMatchLeadingSlash","regexMatchSuffix","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","STORAGE_SUFFIX_STATE","STORAGE_SUFFIX_VALUE","regexMatchState","regexMatchProperties","supportsLocalStorage","localStorage","exception","supportsRemainingSpace","enabled","dependency","indexOf","weight","state","getKey","getItem","setKey","getState","matches","setState","Cache","clear","expired","bind","cacheDispose","STORAGE_PREFIX","lifetime","invalid","resolve","spaceBefore","remainingSpace","Error","error","ClassDependency","all","ClassFailure","message","module","stack","result","traverse","depth","indention","regexMatchEmptySearch","loadXhr","ClassPledge","PLEDGE_PENDING","PLEDGE_RESOLVED","PLEDGE_REJECTED","args","handle","reject","dfd","pledge","index","resolved","count","check","rejected","total","executor","isPending","isResolved","isRejected","resolveListener","rejectListener","defer","catch","always","finally","pledges","race","ClassRegistry","remove","PREFIX_INTERNAL","registry","matchInternal","placeholder","setProperty","add","addPending","addResolved","addRejected","list","register","mock","pending","isInternal","MODULE_PREFIX","node","querySelector","parentNode","removeChild","ClassPattern","regexMatchTrailingSlash","location","ClassTask","lookup","isTransferable","ArrayBuffer","MessagePort","ImageBitmap","task","script","worker","isSettled","toArray","data","postMessage","$task","$isTransferable","Worker","URL","createObjectURL","Blob","onmessage","ClassLoader","checkState","xhr","XMLHttpRequest","readyState","abort","ontimeout","onerror","onabort","statusText","onprogress","onreadystatechange","onload","status","responseText","getResponseHeader","open","send","response","validate","load","search","validatorIsArray","isArray","functionHash","input","charCodeAt","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","_","configure","base","min","onPostRequest","EVENT_CACHE_HIT","onPreRequest","onPreProcess","isThenable","isFunction","definition","amd","/demand","ClassProcessor","functionResolveSourcemaps","replacement","exec","protocol","host","pathname","abstractHandler","handlerModule","getElementsByTagName","regexMatchType","umd","suffix","HandlerModule","_define","async","text","DEMAND_ID","define","appendChild","handlerBundle","updateDependencies","HandlerBundle","getType","handlerComponent","HandlerComponent","container","innerHTML","firstElementChild","getAttribute","textContent","component","components","offset","pluginGenie","MODULE_PREFIX_PLUGIN","matchPattern","prefix","resolveDependencies","rejectDependencies","addPattern","resolveBundles","JSON","stringify","bundle","configuration","/demand/handler/bundle","MODULE_PREFIX_HANDLER","generateConfiguration","bundles","assignModule","MODULE_PREFIX_ABSTRACT","MODULE_PREFIX_VALIDATOR","MODULE_PREFIX_FUNCTION","main","parent"],"mappings":";CAYC,SAASA,EAAQC,EAAYC,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EAAQ4a,SAvrF7B,CA4rFgB,kBAAdlW,KAAKD,KAA2BoW,OAASnW,KAAMjF,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, validatorIsThenable,\n\tfunctionResolveUrl, functionResolveSourcemaps, functionMerge, functionIterate, functionDefer, functionToArray, functionIdle, functionHash, functionUuid,\n\tAbstractUuid, abstractHandler,\n\tClassDependency, ClassQueue, ClassProcessor, ClassPledge, ClassFailure, ClassDescriptor, ClassWeakmap, ClassTask, 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, log;\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 validator/IsInstanceOf.js\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_VALIDATOR + 'isThenable', validatorIsThenable);\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_FUNCTION + 'toArray', functionToArray);\n\t\tassignModule(MODULE_PREFIX + 'task', ClassTask);\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 + '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 2d3a3bc..a19fc26 100644 --- a/dist/handler/css.js +++ b/dist/handler/css.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ !function(e){"use strict";provide(["path","/demand/abstract/handler","/demand/function/resolveSourcemaps","/demand/validator/isObject","/demand/function/merge"],(function(t,n,r,s,o){var u=e.getElementsByTagName("head")[0],a=e.createElement("a"),i=/url\s*\(\s*["']?(.+?)["']?\s*\)/gi,c=/@import\s+["'](.+?)["']/gi,d=/^\//i,f=/^data:|http(s?):|\/\//i,l=/^text\/css/,m={suffix:".css"};function p(e){return a.href=e,a}function h(e,t,n){return f.test(t[1])||(e=e.replace(t[0],n)),e}function v(){}return demand.on("postConfigure:"+t,(function(e){s(e)&&o(m,e)})),v.prototype={validate:function(e){return l.test(e)},onPreRequest:function(e,t){var n;(t="undefined"!=typeof t?t:m.suffix)&&(n=e.url.pathname,e.url.pathname=n.slice(-t.length)!==t?n+t:n)},onPostRequest:function(e){for(var t,n=p(e.url+"/.."),s=n.href,o="//"+n.host,u=e.source;t=i.exec(u);)u=h(u,t,'url("'+p(d.test(t[1])?o+t[1]:s+t[1]).href+'")');for(;t=c.exec(u);)u=h(u,t,'@import "'+p(d.test(t[1])?o+t[1]:s+t[1]).href+'"');e.source=r(e.url,u)},process:function(t){var n=e.querySelector('[demand-id="'+t.id+'"]');n||((n=e.createElement("style")).type="text/css",n.setAttribute("demand-id",t.id),u.appendChild(n)),"STYLE"===n.tagName&&(n.styleSheet?n.styleSheet.cssText=t.source:n.textContent=t.source),provide((function(){return n}))}},new(v.extends(n))}))}(document); //# sourceMappingURL=css.js.map diff --git a/dist/handler/html.js b/dist/handler/html.js index ae7cda0..d9f38a6 100644 --- a/dist/handler/html.js +++ b/dist/handler/html.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/abstract/handler","/demand/validator/isObject","/demand/function/merge"],(function(e,n,t,r){var o=/^text\/html/,u=document.createElement("body"),i={suffix:".html"};function a(){}return demand.on("postConfigure:"+e,(function(e){t(e)&&r(i,e)})),a.prototype={validate:function(e){return o.test(e)},onPreRequest:function(e,n){var t;(n="undefined"!=typeof n?n:i.suffix)&&(t=e.url.pathname,e.url.pathname=t.slice(-n.length)!==n?t+n:t)},process:function(e){provide((function(){return function(e){var n,t=document.createDocumentFragment();for(u.innerHTML=e;n=u.firstElementChild;)t.appendChild(n);return t}(e.source)}))}},new(a.extends(n))}))}(); //# sourceMappingURL=html.js.map diff --git a/dist/handler/json.js b/dist/handler/json.js index 161fc8c..38a941e 100644 --- a/dist/handler/json.js +++ b/dist/handler/json.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/abstract/handler","/demand/task","/demand/pledge","/demand/failure","/demand/validator/isObject","/demand/function/merge"],(function(n,e,t,a,o,d,i){var r=/^application\/json/,u={suffix:".json"},c=new t((function(n,e,t){try{n(JSON.parse(t))}catch(n){e(n)}}));function s(){}return demand.on("postConfigure:"+n,(function(n){d(n)&&i(u,n)})),s.prototype={validate:function(n){return r.test(n)},onPreRequest:function(n,e){var t;(e="undefined"!=typeof e?e:u.suffix)&&(t=n.url.pathname,n.url.pathname=t.slice(-e.length)!==e?t+e:t)},process:function(n){provide(c(n.source))}},new(s.extends(e))}))}(); //# sourceMappingURL=json.js.map diff --git a/dist/handler/legacy.js b/dist/handler/legacy.js index 74f18ee..307abda 100644 --- a/dist/handler/legacy.js +++ b/dist/handler/legacy.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/failure","/demand/handler/module","/demand/validator/isObject","/demand/function/merge"],(function(e,n,t,r,o){var u={suffix:".js"};function d(){var e,r=this,o=r.dfd,d=u[r.path]&&u[r.path].probe;t.process(r),d&&(e=d())?provide((function(){return e})):d?o.reject(new n("error probing",r.path)):provide((function(){return!0}))}function i(){}return demand.on("postConfigure:"+e,(function(e){r(e)&&o(u,e)})),i.prototype={onPreRequest:function(e,n){var r=u[e.path]&&u[e.path].dependencies;n="undefined"!=typeof n?n:u.suffix,t.onPreRequest(e,n||!1),r&&(e.enqueue=demand.apply(null,r))},onPreProcess:function(e){var n=u[e.path]&&u[e.path].dependencies;n&&"boolean"==typeof e.enqueue&&(e.enqueue=demand.apply(null,n))},process:function(e){var t=d.bind(e);!0===e.enqueue?t():e.enqueue.then(t,(function(){e.dfd.reject(new n("error resolving",e.path,arguments))}))}},new(i.extends(t))}))}(); //# sourceMappingURL=legacy.js.map diff --git a/dist/handler/text.js b/dist/handler/text.js index 7de2e59..3675603 100644 --- a/dist/handler/text.js +++ b/dist/handler/text.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/abstract/handler","/demand/validator/isObject","/demand/function/merge"],(function(n,e,t,r){var o=/^text\/.+/,u={};function i(){}return demand.on("postConfigure:"+n,(function(n){t(n)&&r(u,n)})),i.prototype={validate:function(n){return o.test(n)},onPreRequest:function(n,e){var t;(e="undefined"!=typeof e?e:u.suffix)&&(t=n.url.pathname,n.url.pathname=t.slice(-e.length)!==e?t+e:t)},process:function(n){provide((function(){return n.source}))}},new(i.extends(e))}))}(); //# sourceMappingURL=text.js.map diff --git a/dist/plugin/cookie.js b/dist/plugin/cookie.js index 99ab209..6256e5e 100644 --- a/dist/plugin/cookie.js +++ b/dist/plugin/cookie.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 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/lzstring.js b/dist/plugin/lzstring.js index 5969c1b..3848817 100644 --- a/dist/plugin/lzstring.js +++ b/dist/plugin/lzstring.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 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/sri.js b/dist/plugin/sri.js index e3bd234..bdf3eb5 100644 --- a/dist/plugin/sri.js +++ b/dist/plugin/sri.js @@ -1,4 +1,4 @@ -/**! Qoopido.demand 7.1.4 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ +/**! Qoopido.demand 7.1.5 | https://github.com/dlueth/qoopido.demand | (c) 2020 Dirk Lueth */ /** * @preserve A JavaScript implementation of the SHA family of hashes, as * defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding diff --git a/package.json b/package.json index 28cd743..c21fd00 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "qoopido.demand", "title": "Qoopido.demand", "description": "Promise like module loader using XHR requests and localStorage caching to dynamically load JavaScript and CSS + dynamic dependency resolution + support for custom handlers", - "version": "7.1.4", + "version": "7.1.5", "homepage": "https://github.com/dlueth/qoopido.demand", "author": { "name": "Dirk Lueth", diff --git a/src/class/dependency.js b/src/class/dependency.js index 8a76126..4675362 100644 --- a/src/class/dependency.js +++ b/src/class/dependency.js @@ -148,10 +148,7 @@ var ClassDependency = (function() { break; case EXPORTS_ID: - value = {}; - - dependency.dfd.pledge - .then(this.get(context).dfd.resolve); + value = this.get(context).value = {}; break; } diff --git a/src/function/provide.js b/src/function/provide.js index f9d1a94..3d1dcda 100644 --- a/src/function/provide.js +++ b/src/function/provide.js @@ -46,14 +46,15 @@ provide = function provide() { try { value = definition.apply(NULL, arguments); - if(validatorIsThenable(value)) { + // module.value is already set when when module used exports (e.g. UMD) + if(!module.value && validatorIsThenable(value)) { value .then( module.dfd.resolve, function() { module.dfd.reject(new ClassFailure(ERROR_PROVIDE, module.id, arguments)); } ); } else { - module.dfd.resolve(value); + module.dfd.resolve(module.value || value); } } catch(error) { module.dfd.reject(new ClassFailure(ERROR_PROVIDE, module.id, arguments));