!function(A,I){"object"==typeof exports&&"object"==typeof module?module.exports=I():"function"==typeof define&&define.amd?define("cornerstoneWADOImageLoader",[],I):"object"==typeof exports?exports.cornerstoneWADOImageLoader=I():A.cornerstoneWADOImageLoader=I()}(this,(function(){return(()=>{var A={6028:(A,I,g)=>{A.exports=g(671)},187:(A,I,g)=>{A.exports=g(7283)},1655:(A,I,g)=>{A.exports=g(2882)},1246:(A,I,g)=>{A.exports=g(8730)},7878:(A,I,g)=>{A.exports=g(8783)},2204:(A,I,g)=>{A.exports=g(4731)},1001:(A,I,g)=>{g(5313);var C=g(2018);A.exports=C("Array").slice},5587:(A,I,g)=>{g(4596);var C=g(2018);A.exports=C("Array").splice},1285:(A,I,g)=>{var C=g(1001),B=Array.prototype;A.exports=function(A){var I=A.slice;return A===B||A instanceof Array&&I===B.slice?C:I}},7681:(A,I,g)=>{var C=g(5587),B=Array.prototype;A.exports=function(A){var I=A.splice;return A===B||A instanceof Array&&I===B.splice?C:I}},8949:(A,I,g)=>{var C=g(9119),B=String.prototype;A.exports=function(A){var I=A.trim;return"string"==typeof A||A===B||A instanceof String&&I===B.trim?C:I}},2529:(A,I,g)=>{g(8524);var C=g(9081);A.exports=C.Object.assign},8116:(A,I,g)=>{g(8390);var C=g(9081);A.exports=C.Object.keys},7281:(A,I,g)=>{g(6454),g(2228),g(2575),g(3658),g(4465),g(8359),g(5203),g(8109);var C=g(9081);A.exports=C.Promise},9119:(A,I,g)=>{g(8217);var C=g(2018);A.exports=C("String").trim},9077:A=>{A.exports=function(A){if("function"!=typeof A)throw TypeError(String(A)+" is not a function");return A}},9154:(A,I,g)=>{var C=g(3359);A.exports=function(A){if(!C(A)&&null!==A)throw TypeError("Can't set "+String(A)+" as a prototype");return A}},7710:A=>{A.exports=function(){}},8792:A=>{A.exports=function(A,I,g){if(!(A instanceof I))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return A}},1912:(A,I,g)=>{var C=g(3359);A.exports=function(A){if(!C(A))throw TypeError(String(A)+" is not an object");return A}},7075:(A,I,g)=>{var C=g(3861),B=g(3746),Q=g(3055),E=function(A){return function(I,g,E){var i,o=C(I),t=B(o.length),a=Q(E,t);if(A&&g!=g){for(;t>a;)if((i=o[a++])!=i)return!0}else for(;t>a;a++)if((A||a in o)&&o[a]===g)return A||a||0;return!A&&-1}};A.exports={includes:E(!0),indexOf:E(!1)}},2143:(A,I,g)=>{var C=g(6530),B=g(5712),Q=g(8233),E=B("species");A.exports=function(A){return Q>=51||!C((function(){var I=[];return(I.constructor={})[E]=function(){return{foo:1}},1!==I[A](Boolean).foo}))}},3400:(A,I,g)=>{var C=g(3359),B=g(1054),Q=g(5712)("species");A.exports=function(A){var I;return B(A)&&("function"!=typeof(I=A.constructor)||I!==Array&&!B(I.prototype)?C(I)&&null===(I=I[Q])&&(I=void 0):I=void 0),void 0===I?Array:I}},8136:(A,I,g)=>{var C=g(3400);A.exports=function(A,I){return new(C(A))(0===I?0:I)}},8908:(A,I,g)=>{var C=g(5712)("iterator"),B=!1;try{var Q=0,E={next:function(){return{done:!!Q++}},return:function(){B=!0}};E[C]=function(){return this},Array.from(E,(function(){throw 2}))}catch(A){}A.exports=function(A,I){if(!I&&!B)return!1;var g=!1;try{var Q={};Q[C]=function(){return{next:function(){return{done:g=!0}}}},A(Q)}catch(A){}return g}},1570:A=>{var I={}.toString;A.exports=function(A){return I.call(A).slice(8,-1)}},7499:(A,I,g)=>{var C=g(8889),B=g(1570),Q=g(5712)("toStringTag"),E="Arguments"==B(function(){return arguments}());A.exports=C?B:function(A){var I,g,C;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(g=function(A,I){try{return A[I]}catch(A){}}(I=Object(A),Q))?g:E?B(I):"Object"==(C=B(I))&&"function"==typeof I.callee?"Arguments":C}},872:(A,I,g)=>{var C=g(6530);A.exports=!C((function(){function A(){}return A.prototype.constructor=null,Object.getPrototypeOf(new A)!==A.prototype}))},8611:(A,I,g)=>{"use strict";var C=g(7300).IteratorPrototype,B=g(2491),Q=g(5595),E=g(6738),i=g(9418),o=function(){return this};A.exports=function(A,I,g){var t=I+" Iterator";return A.prototype=B(C,{next:Q(1,g)}),E(A,t,!1,!0),i[t]=o,A}},8518:(A,I,g)=>{var C=g(7001),B=g(7550),Q=g(5595);A.exports=C?function(A,I,g){return B.f(A,I,Q(1,g))}:function(A,I,g){return A[I]=g,A}},5595:A=>{A.exports=function(A,I){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:I}}},409:(A,I,g)=>{"use strict";var C=g(5623),B=g(7550),Q=g(5595);A.exports=function(A,I,g){var E=C(I);E in A?B.f(A,E,Q(0,g)):A[E]=g}},8277:(A,I,g)=>{"use strict";var C=g(390),B=g(8611),Q=g(2629),E=g(5255),i=g(6738),o=g(8518),t=g(9791),a=g(5712),e=g(8367),r=g(9418),n=g(7300),D=n.IteratorPrototype,s=n.BUGGY_SAFARI_ITERATORS,c=a("iterator"),h="keys",w="values",F="entries",y=function(){return this};A.exports=function(A,I,g,a,n,G,N){B(g,I,a);var R,S,l,U=function(A){if(A===n&&K)return K;if(!s&&A in d)return d[A];switch(A){case h:case w:case F:return function(){return new g(this,A)}}return function(){return new g(this)}},k=I+" Iterator",J=!1,d=A.prototype,u=d[c]||d["@@iterator"]||n&&d[n],K=!s&&u||U(n),f="Array"==I&&d.entries||u;if(f&&(R=Q(f.call(new A)),D!==Object.prototype&&R.next&&(e||Q(R)===D||(E?E(R,D):"function"!=typeof R[c]&&o(R,c,y)),i(R,k,!0,!0),e&&(r[k]=y))),n==w&&u&&u.name!==w&&(J=!0,K=function(){return u.call(this)}),e&&!N||d[c]===K||o(d,c,K),r[I]=K,n)if(S={values:U(w),keys:G?K:U(h),entries:U(F)},N)for(l in S)(s||J||!(l in d))&&t(d,l,S[l]);else C({target:I,proto:!0,forced:s||J},S);return S}},7001:(A,I,g)=>{var C=g(6530);A.exports=!C((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},231:(A,I,g)=>{var C=g(2868),B=g(3359),Q=C.document,E=B(Q)&&B(Q.createElement);A.exports=function(A){return E?Q.createElement(A):{}}},315:A=>{A.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6610:A=>{A.exports="object"==typeof window},6405:(A,I,g)=>{var C=g(6900),B=g(2868);A.exports=/ipad|iphone|ipod/i.test(C)&&void 0!==B.Pebble},6540:(A,I,g)=>{var C=g(6900);A.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(C)},6521:(A,I,g)=>{var C=g(1570),B=g(2868);A.exports="process"==C(B.process)},4010:(A,I,g)=>{var C=g(6900);A.exports=/web0s(?!.*chrome)/i.test(C)},6900:(A,I,g)=>{var C=g(8104);A.exports=C("navigator","userAgent")||""},8233:(A,I,g)=>{var C,B,Q=g(2868),E=g(6900),i=Q.process,o=Q.Deno,t=i&&i.versions||o&&o.version,a=t&&t.v8;a?B=(C=a.split("."))[0]<4?1:C[0]+C[1]:E&&(!(C=E.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=E.match(/Chrome\/(\d+)/))&&(B=C[1]),A.exports=B&&+B},2018:(A,I,g)=>{var C=g(9081);A.exports=function(A){return C[A+"Prototype"]}},2712:A=>{A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},390:(A,I,g)=>{"use strict";var C=g(2868),B=g(5904).f,Q=g(1011),E=g(9081),i=g(7673),o=g(8518),t=g(6690),a=function(A){var I=function(I,g,C){if(this instanceof A){switch(arguments.length){case 0:return new A;case 1:return new A(I);case 2:return new A(I,g)}return new A(I,g,C)}return A.apply(this,arguments)};return I.prototype=A.prototype,I};A.exports=function(A,I){var g,e,r,n,D,s,c,h,w=A.target,F=A.global,y=A.stat,G=A.proto,N=F?C:y?C[w]:(C[w]||{}).prototype,R=F?E:E[w]||o(E,w,{})[w],S=R.prototype;for(r in I)g=!Q(F?r:w+(y?".":"#")+r,A.forced)&&N&&t(N,r),D=R[r],g&&(s=A.noTargetGet?(h=B(N,r))&&h.value:N[r]),n=g&&s?s:I[r],g&&typeof D==typeof n||(c=A.bind&&g?i(n,C):A.wrap&&g?a(n):G&&"function"==typeof n?i(Function.call,n):n,(A.sham||n&&n.sham||D&&D.sham)&&o(c,"sham",!0),o(R,r,c),G&&(t(E,e=w+"Prototype")||o(E,e,{}),o(E[e],r,n),A.real&&S&&!S[r]&&o(S,r,n)))}},6530:A=>{A.exports=function(A){try{return!!A()}catch(A){return!0}}},7673:(A,I,g)=>{var C=g(9077);A.exports=function(A,I,g){if(C(A),void 0===I)return A;switch(g){case 0:return function(){return A.call(I)};case 1:return function(g){return A.call(I,g)};case 2:return function(g,C){return A.call(I,g,C)};case 3:return function(g,C,B){return A.call(I,g,C,B)}}return function(){return A.apply(I,arguments)}}},8104:(A,I,g)=>{var C=g(9081),B=g(2868),Q=function(A){return"function"==typeof A?A:void 0};A.exports=function(A,I){return arguments.length<2?Q(C[A])||Q(B[A]):C[A]&&C[A][I]||B[A]&&B[A][I]}},5018:(A,I,g)=>{var C=g(7499),B=g(9418),Q=g(5712)("iterator");A.exports=function(A){if(null!=A)return A[Q]||A["@@iterator"]||B[C(A)]}},5945:(A,I,g)=>{var C=g(1912),B=g(5018);A.exports=function(A,I){var g=arguments.length<2?B(A):I;if("function"!=typeof g)throw TypeError(String(A)+" is not iterable");return C(g.call(A))}},2868:(A,I,g)=>{var C=function(A){return A&&A.Math==Math&&A};A.exports=C("object"==typeof globalThis&&globalThis)||C("object"==typeof window&&window)||C("object"==typeof self&&self)||C("object"==typeof g.g&&g.g)||function(){return this}()||Function("return this")()},6690:(A,I,g)=>{var C=g(2058),B={}.hasOwnProperty;A.exports=Object.hasOwn||function(A,I){return B.call(C(A),I)}},7048:A=>{A.exports={}},8471:(A,I,g)=>{var C=g(2868);A.exports=function(A,I){var g=C.console;g&&g.error&&(1===arguments.length?g.error(A):g.error(A,I))}},5644:(A,I,g)=>{var C=g(8104);A.exports=C("document","documentElement")},640:(A,I,g)=>{var C=g(7001),B=g(6530),Q=g(231);A.exports=!C&&!B((function(){return 7!=Object.defineProperty(Q("div"),"a",{get:function(){return 7}}).a}))},1251:(A,I,g)=>{var C=g(6530),B=g(1570),Q="".split;A.exports=C((function(){return!Object("z").propertyIsEnumerable(0)}))?function(A){return"String"==B(A)?Q.call(A,""):Object(A)}:Object},1494:(A,I,g)=>{var C=g(2656),B=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(A){return B.call(A)}),A.exports=C.inspectSource},5875:(A,I,g)=>{var C,B,Q,E=g(2297),i=g(2868),o=g(3359),t=g(8518),a=g(6690),e=g(2656),r=g(5039),n=g(7048),D="Object already initialized",s=i.WeakMap;if(E||e.state){var c=e.state||(e.state=new s),h=c.get,w=c.has,F=c.set;C=function(A,I){if(w.call(c,A))throw new TypeError(D);return I.facade=A,F.call(c,A,I),I},B=function(A){return h.call(c,A)||{}},Q=function(A){return w.call(c,A)}}else{var y=r("state");n[y]=!0,C=function(A,I){if(a(A,y))throw new TypeError(D);return I.facade=A,t(A,y,I),I},B=function(A){return a(A,y)?A[y]:{}},Q=function(A){return a(A,y)}}A.exports={set:C,get:B,has:Q,enforce:function(A){return Q(A)?B(A):C(A,{})},getterFor:function(A){return function(I){var g;if(!o(I)||(g=B(I)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return g}}}},6475:(A,I,g)=>{var C=g(5712),B=g(9418),Q=C("iterator"),E=Array.prototype;A.exports=function(A){return void 0!==A&&(B.Array===A||E[Q]===A)}},1054:(A,I,g)=>{var C=g(1570);A.exports=Array.isArray||function(A){return"Array"==C(A)}},1011:(A,I,g)=>{var C=g(6530),B=/#|\.prototype\./,Q=function(A,I){var g=i[E(A)];return g==t||g!=o&&("function"==typeof I?C(I):!!I)},E=Q.normalize=function(A){return String(A).replace(B,".").toLowerCase()},i=Q.data={},o=Q.NATIVE="N",t=Q.POLYFILL="P";A.exports=Q},3359:A=>{A.exports=function(A){return"object"==typeof A?null!==A:"function"==typeof A}},8367:A=>{A.exports=!0},1149:(A,I,g)=>{var C=g(8104),B=g(6046);A.exports=B?function(A){return"symbol"==typeof A}:function(A){var I=C("Symbol");return"function"==typeof I&&Object(A)instanceof I}},3906:(A,I,g)=>{var C=g(1912),B=g(6475),Q=g(3746),E=g(7673),i=g(5945),o=g(5018),t=g(309),a=function(A,I){this.stopped=A,this.result=I};A.exports=function(A,I,g){var e,r,n,D,s,c,h,w=g&&g.that,F=!(!g||!g.AS_ENTRIES),y=!(!g||!g.IS_ITERATOR),G=!(!g||!g.INTERRUPTED),N=E(I,w,1+F+G),R=function(A){return e&&t(e,"normal",A),new a(!0,A)},S=function(A){return F?(C(A),G?N(A[0],A[1],R):N(A[0],A[1])):G?N(A,R):N(A)};if(y)e=A;else{if("function"!=typeof(r=o(A)))throw TypeError("Target is not iterable");if(B(r)){for(n=0,D=Q(A.length);D>n;n++)if((s=S(A[n]))&&s instanceof a)return s;return new a(!1)}e=i(A,r)}for(c=e.next;!(h=c.call(e)).done;){try{s=S(h.value)}catch(A){t(e,"throw",A)}if("object"==typeof s&&s&&s instanceof a)return s}return new a(!1)}},309:(A,I,g)=>{var C=g(1912);A.exports=function(A,I,g){var B,Q;C(A);try{if(void 0===(B=A.return)){if("throw"===I)throw g;return g}B=B.call(A)}catch(A){Q=!0,B=A}if("throw"===I)throw g;if(Q)throw B;return C(B),g}},7300:(A,I,g)=>{"use strict";var C,B,Q,E=g(6530),i=g(2629),o=g(8518),t=g(6690),a=g(5712),e=g(8367),r=a("iterator"),n=!1;[].keys&&("next"in(Q=[].keys())?(B=i(i(Q)))!==Object.prototype&&(C=B):n=!0);var D=null==C||E((function(){var A={};return C[r].call(A)!==A}));D&&(C={}),e&&!D||t(C,r)||o(C,r,(function(){return this})),A.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:n}},9418:A=>{A.exports={}},8054:(A,I,g)=>{var C,B,Q,E,i,o,t,a,e=g(2868),r=g(5904).f,n=g(6569).set,D=g(6540),s=g(6405),c=g(4010),h=g(6521),w=e.MutationObserver||e.WebKitMutationObserver,F=e.document,y=e.process,G=e.Promise,N=r(e,"queueMicrotask"),R=N&&N.value;R||(C=function(){var A,I;for(h&&(A=y.domain)&&A.exit();B;){I=B.fn,B=B.next;try{I()}catch(A){throw B?E():Q=void 0,A}}Q=void 0,A&&A.enter()},D||h||c||!w||!F?!s&&G&&G.resolve?((t=G.resolve(void 0)).constructor=G,a=t.then,E=function(){a.call(t,C)}):E=h?function(){y.nextTick(C)}:function(){n.call(e,C)}:(i=!0,o=F.createTextNode(""),new w(C).observe(o,{characterData:!0}),E=function(){o.data=i=!i})),A.exports=R||function(A){var I={fn:A,next:void 0};Q&&(Q.next=I),B||(B=I,E()),Q=I}},3104:(A,I,g)=>{var C=g(2868);A.exports=C.Promise},3216:(A,I,g)=>{var C=g(8233),B=g(6530);A.exports=!!Object.getOwnPropertySymbols&&!B((function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&C&&C<41}))},2297:(A,I,g)=>{var C=g(2868),B=g(1494),Q=C.WeakMap;A.exports="function"==typeof Q&&/native code/.test(B(Q))},4130:(A,I,g)=>{"use strict";var C=g(9077),B=function(A){var I,g;this.promise=new A((function(A,C){if(void 0!==I||void 0!==g)throw TypeError("Bad Promise constructor");I=A,g=C})),this.resolve=C(I),this.reject=C(g)};A.exports.f=function(A){return new B(A)}},3210:(A,I,g)=>{"use strict";var C=g(7001),B=g(6530),Q=g(461),E=g(3764),i=g(1156),o=g(2058),t=g(1251),a=Object.assign,e=Object.defineProperty;A.exports=!a||B((function(){if(C&&1!==a({b:1},a(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},I={},g=Symbol(),B="abcdefghijklmnopqrst";return A[g]=7,B.split("").forEach((function(A){I[A]=A})),7!=a({},A)[g]||Q(a({},I)).join("")!=B}))?function(A,I){for(var g=o(A),B=arguments.length,a=1,e=E.f,r=i.f;B>a;)for(var n,D=t(arguments[a++]),s=e?Q(D).concat(e(D)):Q(D),c=s.length,h=0;c>h;)n=s[h++],C&&!r.call(D,n)||(g[n]=D[n]);return g}:a},2491:(A,I,g)=>{var C,B=g(1912),Q=g(4686),E=g(2712),i=g(7048),o=g(5644),t=g(231),a=g(5039),e=a("IE_PROTO"),r=function(){},n=function(A){return"