/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/dc-visualization-sdk@1.1.0/dist/lib/dc-visualization-sdk.umd.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).dcVisualizationSdk={})}(this,(function(t){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */function e(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function n(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function r(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var o,i=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports=function t(e,n,o){function i(a,u){if(!n[a]){if(!e[a]){if(!u&&r)return r();if(s)return s(a,!0);throw new Error("Cannot find module '"+a+"'")}var c=n[a]={exports:{}};e[a][0].call(c.exports,(function(t){return i(e[a][1][t]||t)}),c,c.exports,t,e,n,o)}return n[a].exports}for(var s=r,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){(function(r,o,i,s,a,u,c,f,l){var h=t("crypto");function d(t,e){return function(t,e){var n;if(void 0===(n="passthrough"!==e.algorithm?h.createHash(e.algorithm):new v).write&&(n.write=n.update,n.end=n.update),w(e,n).dispatch(t),n.update||n.end(""),n.digest)return n.digest("buffer"===e.encoding?void 0:e.encoding);var r=n.read();return"buffer"!==e.encoding?r.toString(e.encoding):r}(t,e=y(t,e))}(n=e.exports=d).sha1=function(t){return d(t)},n.keys=function(t){return d(t,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(t){return d(t,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(t){return d(t,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var p=h.getHashes?h.getHashes().slice():["sha1","md5"];p.push("passthrough");var g=["buffer","hex","binary","base64"];function y(t,e){e=e||{};var n={};if(n.algorithm=e.algorithm||"sha1",n.encoding=e.encoding||"hex",n.excludeValues=!!e.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===e.ignoreUnknown,n.respectType=!1!==e.respectType,n.respectFunctionNames=!1!==e.respectFunctionNames,n.respectFunctionProperties=!1!==e.respectFunctionProperties,n.unorderedArrays=!0===e.unorderedArrays,n.unorderedSets=!1!==e.unorderedSets,n.unorderedObjects=!1!==e.unorderedObjects,n.replacer=e.replacer||void 0,n.excludeKeys=e.excludeKeys||void 0,void 0===t)throw new Error("Object argument required.");for(var r=0;r<p.length;++r)p[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=p[r]);if(-1===p.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'"  not supported. supported values: '+p.join(", "));if(-1===g.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'"  not supported. supported values: '+g.join(", "));return n}function m(t){if("function"==typeof t)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(t))}function w(t,e,n){function r(t){return e.update?e.update(t,"utf8"):e.write(t,"utf8")}return n=n||[],{dispatch:function(e){return t.replacer&&(e=t.replacer(e)),this["_"+(null===e?"null":typeof e)](e)},_object:function(e){var o,s=Object.prototype.toString.call(e),a=/\[object (.*)\]/i.exec(s);if(a=(a=a?a[1]:"unknown:["+s+"]").toLowerCase(),0<=(o=n.indexOf(e)))return this.dispatch("[CIRCULAR:"+o+"]");if(n.push(e),void 0!==i&&i.isBuffer&&i.isBuffer(e))return r("buffer:"),r(e);if("object"===a||"function"===a||"asyncfunction"===a){var u=Object.keys(e);t.unorderedObjects&&(u=u.sort()),!1===t.respectType||m(e)||u.splice(0,0,"prototype","__proto__","constructor"),t.excludeKeys&&(u=u.filter((function(e){return!t.excludeKeys(e)}))),r("object:"+u.length+":");var c=this;return u.forEach((function(n){c.dispatch(n),r(":"),t.excludeValues||c.dispatch(e[n]),r(",")}))}if(!this["_"+a]){if(t.ignoreUnknown)return r("["+a+"]");throw new Error('Unknown object type "'+a+'"')}this["_"+a](e)},_array:function(e,o){o=void 0!==o?o:!1!==t.unorderedArrays;var i=this;if(r("array:"+e.length+":"),!o||e.length<=1)return e.forEach((function(t){return i.dispatch(t)}));var s=[],a=e.map((function(e){var r=new v,o=n.slice();return w(t,r,o).dispatch(e),s=s.concat(o.slice(n.length)),r.read().toString()}));return n=n.concat(s),a.sort(),this._array(a,!1)},_date:function(t){return r("date:"+t.toJSON())},_symbol:function(t){return r("symbol:"+t.toString())},_error:function(t){return r("error:"+t.toString())},_boolean:function(t){return r("bool:"+t.toString())},_string:function(t){r("string:"+t.length+":"),r(t.toString())},_function:function(e){r("fn:"),m(e)?this.dispatch("[native]"):this.dispatch(e.toString()),!1!==t.respectFunctionNames&&this.dispatch("function-name:"+String(e.name)),t.respectFunctionProperties&&this._object(e)},_number:function(t){return r("number:"+t.toString())},_xml:function(t){return r("xml:"+t.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(t){return r("regex:"+t.toString())},_uint8array:function(t){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return r("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return r("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return r("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return r("url:"+t.toString())},_map:function(e){r("map:");var n=Array.from(e);return this._array(n,!1!==t.unorderedSets)},_set:function(e){r("set:");var n=Array.from(e);return this._array(n,!1!==t.unorderedSets)},_file:function(t){return r("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(t.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function v(){return{buf:"",write:function(t){this.buf+=t},end:function(t){this.buf+=t},read:function(){return this.buf}}}n.writeToStream=function(t,e,n){return void 0===n&&(n=e,e={}),w(e=y(t,e),n).dispatch(t)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_5812b7fb.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(t,e,n){(function(t,e,r,o,i,s,a,u,c){!function(t){var e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),s="A".charCodeAt(0),a="-".charCodeAt(0),u="_".charCodeAt(0);function c(t){var e=t.charCodeAt(0);return e===n||e===a?62:e===r||e===u?63:e<o?-1:e<o+10?e-o+26+26:e<s+26?e-s:e<i+26?e-i+26:void 0}t.toByteArray=function(t){var n,r;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var o=t.length,i="="===t.charAt(o-2)?2:"="===t.charAt(o-1)?1:0,s=new e(3*t.length/4-i),a=0<i?t.length-4:t.length,u=0;function f(t){s[u++]=t}for(n=0;n<a;n+=4,0)f((16711680&(r=c(t.charAt(n))<<18|c(t.charAt(n+1))<<12|c(t.charAt(n+2))<<6|c(t.charAt(n+3))))>>16),f((65280&r)>>8),f(255&r);return 2==i?f(255&(r=c(t.charAt(n))<<2|c(t.charAt(n+1))>>4)):1==i&&(f((r=c(t.charAt(n))<<10|c(t.charAt(n+1))<<4|c(t.charAt(n+2))>>2)>>8&255),f(255&r)),s},t.fromByteArray=function(t){var e,n,r,o,i=t.length%3,s="";function a(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-i;e<r;e+=3)s+=a((o=n=(t[e]<<16)+(t[e+1]<<8)+t[e+2])>>18&63)+a(o>>12&63)+a(o>>6&63)+a(63&o);switch(i){case 1:s+=a((n=t[t.length-1])>>2),s+=a(n<<4&63),s+="==";break;case 2:s+=a((n=(t[t.length-2]<<8)+t[t.length-1])>>10),s+=a(n>>4&63),s+=a(n<<2&63),s+="="}return s}}(void 0===n?this.base64js={}:n)}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(t,e,n){(function(e,r,o,i,s,a,u,c,f){var l=t("base64-js"),h=t("ieee754");function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);var r,i,s,a,u,c=typeof t;if("base64"===e&&"string"==c)for(t=(r=t).trim?r.trim():r.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"==c)i=O(t);else if("string"==c)i=o.byteLength(t,e);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");i=O(t.length)}if(o._useTypedArrays?s=o._augment(new Uint8Array(i)):((s=this).length=i,s._isBuffer=!0),o._useTypedArrays&&"number"==typeof t.byteLength)s._set(t);else if(U(u=t)||o.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(a=0;a<i;a++)o.isBuffer(t)?s[a]=t.readUInt8(a):s[a]=t[a];else if("string"==c)s.write(t,0,e);else if("number"==c&&!o._useTypedArrays&&!n)for(a=0;a<i;a++)s[a]=0;return s}function d(t,e,n,r){return o._charsWritten=k(function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function p(t,e,n,r){return o._charsWritten=k(function(t){for(var e,n,r,o=[],i=0;i<t.length;i++)n=(e=t.charCodeAt(i))>>8,r=e%256,o.push(r),o.push(n);return o}(e),t,n,r)}function g(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;o++)r+=String.fromCharCode(t[o]);return r}function y(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+1<t.length,"Trying to read beyond buffer length"));var o,i=t.length;if(!(i<=e))return n?(o=t[e],e+1<i&&(o|=t[e+1]<<8)):(o=t[e]<<8,e+1<i&&(o|=t[e+1])),o}function m(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+3<t.length,"Trying to read beyond buffer length"));var o,i=t.length;if(!(i<=e))return n?(e+2<i&&(o=t[e+2]<<16),e+1<i&&(o|=t[e+1]<<8),o|=t[e],e+3<i&&(o+=t[e+3]<<24>>>0)):(e+1<i&&(o=t[e+1]<<16),e+2<i&&(o|=t[e+2]<<8),e+3<i&&(o|=t[e+3]),o+=t[e]<<24>>>0),o}function w(t,e,n,r){if(r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+1<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var o=y(t,e,n,!0);return 32768&o?-1*(65535-o+1):o}}function v(t,e,n,r){if(r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+3<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var o=m(t,e,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function b(t,e,n,r){return r||(R("boolean"==typeof n,"missing or invalid endian"),R(e+3<t.length,"Trying to read beyond buffer length")),h.read(t,e,n,23,4)}function E(t,e,n,r){return r||(R("boolean"==typeof n,"missing or invalid endian"),R(e+7<t.length,"Trying to read beyond buffer length")),h.read(t,e,n,52,8)}function _(t,e,n,r,o){o||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+1<t.length,"trying to write beyond buffer length"),M(e,65535));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,2);s<a;s++)t[n+s]=(e&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function I(t,e,n,r,o){o||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+3<t.length,"trying to write beyond buffer length"),M(e,4294967295));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,4);s<a;s++)t[n+s]=e>>>8*(r?s:3-s)&255}function C(t,e,n,r,o){o||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+1<t.length,"Trying to write beyond buffer length"),D(e,32767,-32768)),t.length<=n||_(t,0<=e?e:65535+e+1,n,r,o)}function A(t,e,n,r,o){o||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+3<t.length,"Trying to write beyond buffer length"),D(e,2147483647,-2147483648)),t.length<=n||I(t,0<=e?e:4294967295+e+1,n,r,o)}function T(t,e,n,r,o){o||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+3<t.length,"Trying to write beyond buffer length"),P(e,34028234663852886e22,-34028234663852886e22)),t.length<=n||h.write(t,e,n,r,23,4)}function S(t,e,n,r,o){o||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+7<t.length,"Trying to write beyond buffer length"),P(e,17976931348623157e292,-17976931348623157e292)),t.length<=n||h.write(t,e,n,r,52,8)}n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=x(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=j(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(t,e){if(R(U(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new o(0);if(1===t.length)return t[0];if("number"!=typeof e)for(i=e=0;i<t.length;i++)e+=t[i].length;for(var n=new o(e),r=0,i=0;i<t.length;i++){var s=t[i];s.copy(n,r),r+=s.length}return n},o.prototype.write=function(t,e,n,r){var i;isFinite(e)?isFinite(n)||(r=n,n=void 0):(i=r,r=e,e=n,n=i),e=Number(e)||0;var s,a,u,c,f,l,h,g,y,m=this.length-e;switch((!n||m<(n=Number(n)))&&(n=m),r=String(r||"utf8").toLowerCase()){case"hex":s=function(t,e,n,r){n=Number(n)||0;var i=t.length-n;(!r||i<(r=Number(r)))&&(r=i);var s=e.length;R(s%2==0,"Invalid hex string"),s/2<r&&(r=s/2);for(var a=0;a<r;a++){var u=parseInt(e.substr(2*a,2),16);R(!isNaN(u),"Invalid hex string"),t[n+a]=u}return o._charsWritten=2*a,a}(this,t,e,n);break;case"utf8":case"utf-8":l=this,h=t,g=e,y=n,s=o._charsWritten=k(x(h),l,g,y);break;case"ascii":case"binary":s=d(this,t,e,n);break;case"base64":a=this,u=t,c=e,f=n,s=o._charsWritten=k(j(u),a,c,f);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":s=p(this,t,e,n);break;default:throw new Error("Unknown encoding")}return s},o.prototype.toString=function(t,e,n){var r,o,i,s,a=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):n=a.length)===e)return"";switch(t){case"hex":r=function(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||r<n)&&(n=r);for(var o="",i=e;i<n;i++)o+=B(t[i]);return o}(a,e,n);break;case"utf8":case"utf-8":r=function(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var i=e;i<n;i++)t[i]<=127?(r+=H(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return r+H(o)}(a,e,n);break;case"ascii":case"binary":r=g(a,e,n);break;case"base64":o=a,s=n,r=0===(i=e)&&s===o.length?l.fromByteArray(o):l.fromByteArray(o.slice(i,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(a,e,n);break;default:throw new Error("Unknown encoding")}return r},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(t,e,n,r){if(n=n||0,r||0===r||(r=this.length),e=e||0,r!==n&&0!==t.length&&0!==this.length){R(n<=r,"sourceEnd < sourceStart"),R(0<=e&&e<t.length,"targetStart out of bounds"),R(0<=n&&n<this.length,"sourceStart out of bounds"),R(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i=r-n;if(i<100||!o._useTypedArrays)for(var s=0;s<i;s++)t[s+e]=this[s+n];else t._set(this.subarray(n,n+i),e)}},o.prototype.slice=function(t,e){var n=this.length;if(t=L(t,n,0),e=L(e,n,n),o._useTypedArrays)return o._augment(this.subarray(t,e));for(var r=e-t,i=new o(r,void 0,!0),s=0;s<r;s++)i[s]=this[s+t];return i},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},o.prototype.readUInt8=function(t,e){if(e||(R(null!=t,"missing offset"),R(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return this[t]},o.prototype.readUInt16LE=function(t,e){return y(this,t,!0,e)},o.prototype.readUInt16BE=function(t,e){return y(this,t,!1,e)},o.prototype.readUInt32LE=function(t,e){return m(this,t,!0,e)},o.prototype.readUInt32BE=function(t,e){return m(this,t,!1,e)},o.prototype.readInt8=function(t,e){if(e||(R(null!=t,"missing offset"),R(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){return w(this,t,!0,e)},o.prototype.readInt16BE=function(t,e){return w(this,t,!1,e)},o.prototype.readInt32LE=function(t,e){return v(this,t,!0,e)},o.prototype.readInt32BE=function(t,e){return v(this,t,!1,e)},o.prototype.readFloatLE=function(t,e){return b(this,t,!0,e)},o.prototype.readFloatBE=function(t,e){return b(this,t,!1,e)},o.prototype.readDoubleLE=function(t,e){return E(this,t,!0,e)},o.prototype.readDoubleBE=function(t,e){return E(this,t,!1,e)},o.prototype.writeUInt8=function(t,e,n){n||(R(null!=t,"missing value"),R(null!=e,"missing offset"),R(e<this.length,"trying to write beyond buffer length"),M(t,255)),e>=this.length||(this[e]=t)},o.prototype.writeUInt16LE=function(t,e,n){_(this,t,e,!0,n)},o.prototype.writeUInt16BE=function(t,e,n){_(this,t,e,!1,n)},o.prototype.writeUInt32LE=function(t,e,n){I(this,t,e,!0,n)},o.prototype.writeUInt32BE=function(t,e,n){I(this,t,e,!1,n)},o.prototype.writeInt8=function(t,e,n){n||(R(null!=t,"missing value"),R(null!=e,"missing offset"),R(e<this.length,"Trying to write beyond buffer length"),D(t,127,-128)),e>=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},o.prototype.writeInt16LE=function(t,e,n){C(this,t,e,!0,n)},o.prototype.writeInt16BE=function(t,e,n){C(this,t,e,!1,n)},o.prototype.writeInt32LE=function(t,e,n){A(this,t,e,!0,n)},o.prototype.writeInt32BE=function(t,e,n){A(this,t,e,!1,n)},o.prototype.writeFloatLE=function(t,e,n){T(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){T(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){S(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){S(this,t,e,!1,n)},o.prototype.fill=function(t,e,n){if(t=t||0,e=e||0,n=n||this.length,"string"==typeof t&&(t=t.charCodeAt(0)),R("number"==typeof t&&!isNaN(t),"value is not a number"),R(e<=n,"end < start"),n!==e&&0!==this.length){R(0<=e&&e<this.length,"start out of bounds"),R(0<=n&&n<=this.length,"end out of bounds");for(var r=e;r<n;r++)this[r]=t}},o.prototype.inspect=function(){for(var t=[],e=this.length,r=0;r<e;r++)if(t[r]=B(this[r]),r===n.INSPECT_MAX_BYTES){t[r+1]="...";break}return"<Buffer "+t.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e<n;e+=1)t[e]=this[e];return t.buffer};var N=o.prototype;function L(t,e,n){return"number"!=typeof t?n:e<=(t=~~t)?e:0<=t||0<=(t+=e)?t:0}function O(t){return(t=~~Math.ceil(+t))<0?0:t}function U(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function x(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(t.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),s=0;s<i.length;s++)e.push(parseInt(i[s],16))}}return e}function j(t){return l.toByteArray(t)}function k(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function H(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function M(t,e){R("number"==typeof t,"cannot write a non-number as a number"),R(0<=t,"specified a negative value for writing an unsigned value"),R(t<=e,"value is larger than maximum value for type"),R(Math.floor(t)===t,"value has a fractional component")}function D(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(t<=e,"value larger than maximum allowed value"),R(n<=t,"value smaller than minimum allowed value"),R(Math.floor(t)===t,"value has a fractional component")}function P(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(t<=e,"value larger than maximum allowed value"),R(n<=t,"value smaller than minimum allowed value")}function R(t,e){if(!t)throw new Error(e||"Failed assertion")}o._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=N.get,t.set=N.set,t.write=N.write,t.toString=N.toString,t.toLocaleString=N.toString,t.toJSON=N.toJSON,t.copy=N.copy,t.slice=N.slice,t.readUInt8=N.readUInt8,t.readUInt16LE=N.readUInt16LE,t.readUInt16BE=N.readUInt16BE,t.readUInt32LE=N.readUInt32LE,t.readUInt32BE=N.readUInt32BE,t.readInt8=N.readInt8,t.readInt16LE=N.readInt16LE,t.readInt16BE=N.readInt16BE,t.readInt32LE=N.readInt32LE,t.readInt32BE=N.readInt32BE,t.readFloatLE=N.readFloatLE,t.readFloatBE=N.readFloatBE,t.readDoubleLE=N.readDoubleLE,t.readDoubleBE=N.readDoubleBE,t.writeUInt8=N.writeUInt8,t.writeUInt16LE=N.writeUInt16LE,t.writeUInt16BE=N.writeUInt16BE,t.writeUInt32LE=N.writeUInt32LE,t.writeUInt32BE=N.writeUInt32BE,t.writeInt8=N.writeInt8,t.writeInt16LE=N.writeInt16LE,t.writeInt16BE=N.writeInt16BE,t.writeInt32LE=N.writeInt32LE,t.writeInt32BE=N.writeInt32BE,t.writeFloatLE=N.writeFloatLE,t.writeFloatBE=N.writeFloatBE,t.writeDoubleLE=N.writeDoubleLE,t.writeDoubleBE=N.writeDoubleBE,t.fill=N.fill,t.inspect=N.inspect,t.toArrayBuffer=N.toArrayBuffer,t}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(t,e,n){(function(n,r,o,i,s,a,u,c,f){o=t("buffer").Buffer;var l=4,h=new o(l);h.fill(0),e.exports={hash:function(t,e,n,r){return o.isBuffer(t)||(t=new o(t)),function(t,e,n){for(var r=new o(e),i=n?r.writeInt32BE:r.writeInt32LE,s=0;s<t.length;s++)i.call(r,t[s],4*s,!0);return r}(e(function(t,e){var n;t.length%l!=0&&(n=t.length+(l-t.length%l),t=o.concat([t,h],n));for(var r=[],i=e?t.readInt32BE:t.readInt32LE,s=0;s<t.length;s+=l)r.push(i.call(t,s));return r}(t,r),8*t.length),n,r)}}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(t,e,n){(function(e,r,o,i,s,a,u,c,f){o=t("buffer").Buffer;var l=t("./sha"),h=t("./sha256"),d=t("./rng"),p={sha1:l,sha256:h,md5:t("./md5")},g=64,y=new o(g);function m(t,e){var n=p[t=t||"sha1"],r=[];return n||w("algorithm:",t,"is not yet supported"),{update:function(t){return o.isBuffer(t)||(t=new o(t)),r.push(t),t.length,this},digest:function(t){var i=o.concat(r),s=e?function(t,e,n){o.isBuffer(e)||(e=new o(e)),o.isBuffer(n)||(n=new o(n)),e.length>g?e=t(e):e.length<g&&(e=o.concat([e,y],g));for(var r=new o(g),i=new o(g),s=0;s<g;s++)r[s]=54^e[s],i[s]=92^e[s];var a=t(o.concat([r,n]));return t(o.concat([i,a]))}(n,e,i):n(i);return r=null,t?s.toString(t):s}}}function w(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),n.createHash=function(t){return m(t)},n.createHmac=m,n.randomBytes=function(t,e){if(!e||!e.call)return new o(d(t));try{e.call(this,void 0,new o(d(t)))}catch(t){e(t)}},function(t,e){for(var n in t)e(t[n],n)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(t){n[t]=function(){w("sorry,",t,"is not implemented yet")}}))}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(t,e,n){(function(n,r,o,i,s,a,u,c,f){var l=t("./helpers");function h(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s<t.length;s+=16){var a=n,u=r,c=o,f=i;n=p(n,r,o,i,t[s+0],7,-680876936),i=p(i,n,r,o,t[s+1],12,-389564586),o=p(o,i,n,r,t[s+2],17,606105819),r=p(r,o,i,n,t[s+3],22,-1044525330),n=p(n,r,o,i,t[s+4],7,-176418897),i=p(i,n,r,o,t[s+5],12,1200080426),o=p(o,i,n,r,t[s+6],17,-1473231341),r=p(r,o,i,n,t[s+7],22,-45705983),n=p(n,r,o,i,t[s+8],7,1770035416),i=p(i,n,r,o,t[s+9],12,-1958414417),o=p(o,i,n,r,t[s+10],17,-42063),r=p(r,o,i,n,t[s+11],22,-1990404162),n=p(n,r,o,i,t[s+12],7,1804603682),i=p(i,n,r,o,t[s+13],12,-40341101),o=p(o,i,n,r,t[s+14],17,-1502002290),n=g(n,r=p(r,o,i,n,t[s+15],22,1236535329),o,i,t[s+1],5,-165796510),i=g(i,n,r,o,t[s+6],9,-1069501632),o=g(o,i,n,r,t[s+11],14,643717713),r=g(r,o,i,n,t[s+0],20,-373897302),n=g(n,r,o,i,t[s+5],5,-701558691),i=g(i,n,r,o,t[s+10],9,38016083),o=g(o,i,n,r,t[s+15],14,-660478335),r=g(r,o,i,n,t[s+4],20,-405537848),n=g(n,r,o,i,t[s+9],5,568446438),i=g(i,n,r,o,t[s+14],9,-1019803690),o=g(o,i,n,r,t[s+3],14,-187363961),r=g(r,o,i,n,t[s+8],20,1163531501),n=g(n,r,o,i,t[s+13],5,-1444681467),i=g(i,n,r,o,t[s+2],9,-51403784),o=g(o,i,n,r,t[s+7],14,1735328473),n=y(n,r=g(r,o,i,n,t[s+12],20,-1926607734),o,i,t[s+5],4,-378558),i=y(i,n,r,o,t[s+8],11,-2022574463),o=y(o,i,n,r,t[s+11],16,1839030562),r=y(r,o,i,n,t[s+14],23,-35309556),n=y(n,r,o,i,t[s+1],4,-1530992060),i=y(i,n,r,o,t[s+4],11,1272893353),o=y(o,i,n,r,t[s+7],16,-155497632),r=y(r,o,i,n,t[s+10],23,-1094730640),n=y(n,r,o,i,t[s+13],4,681279174),i=y(i,n,r,o,t[s+0],11,-358537222),o=y(o,i,n,r,t[s+3],16,-722521979),r=y(r,o,i,n,t[s+6],23,76029189),n=y(n,r,o,i,t[s+9],4,-640364487),i=y(i,n,r,o,t[s+12],11,-421815835),o=y(o,i,n,r,t[s+15],16,530742520),n=m(n,r=y(r,o,i,n,t[s+2],23,-995338651),o,i,t[s+0],6,-198630844),i=m(i,n,r,o,t[s+7],10,1126891415),o=m(o,i,n,r,t[s+14],15,-1416354905),r=m(r,o,i,n,t[s+5],21,-57434055),n=m(n,r,o,i,t[s+12],6,1700485571),i=m(i,n,r,o,t[s+3],10,-1894986606),o=m(o,i,n,r,t[s+10],15,-1051523),r=m(r,o,i,n,t[s+1],21,-2054922799),n=m(n,r,o,i,t[s+8],6,1873313359),i=m(i,n,r,o,t[s+15],10,-30611744),o=m(o,i,n,r,t[s+6],15,-1560198380),r=m(r,o,i,n,t[s+13],21,1309151649),n=m(n,r,o,i,t[s+4],6,-145523070),i=m(i,n,r,o,t[s+11],10,-1120210379),o=m(o,i,n,r,t[s+2],15,718787259),r=m(r,o,i,n,t[s+9],21,-343485551),n=w(n,a),r=w(r,u),o=w(o,c),i=w(i,f)}return Array(n,r,o,i)}function d(t,e,n,r,o,i){return w((s=w(w(e,t),w(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function p(t,e,n,r,o,i,s){return d(e&n|~e&r,t,e,o,i,s)}function g(t,e,n,r,o,i,s){return d(e&r|n&~r,t,e,o,i,s)}function y(t,e,n,r,o,i,s){return d(e^n^r,t,e,o,i,s)}function m(t,e,n,r,o,i,s){return d(n^(e|~r),t,e,o,i,s)}function w(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}e.exports=function(t){return l.hash(t,h,16)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(t,e,n){(function(t,n,r,o,i,s,a,u,c){var f;f=function(t){for(var e,n=new Array(t),r=0;r<t;r++)!(3&r)&&(e=4294967296*Math.random()),n[r]=e>>>((3&r)<<3)&255;return n},e.exports=f}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(t,e,n){(function(n,r,o,i,s,a,u,c,f){var l=t("./helpers");function h(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n,r,o,i,s,a=Array(80),u=1732584193,c=-271733879,f=-1732584194,l=271733878,h=-1009589776,g=0;g<t.length;g+=16){for(var y=u,m=c,w=f,v=l,b=h,E=0;E<80;E++){a[E]=E<16?t[g+E]:p(a[E-3]^a[E-8]^a[E-14]^a[E-16],1);var _=d(d(p(u,5),(o=c,i=f,s=l,(r=E)<20?o&i|~o&s:!(r<40)&&r<60?o&i|o&s|i&s:o^i^s)),d(d(h,a[E]),(n=E)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));h=l,l=f,f=p(c,30),c=u,u=_}u=d(u,y),c=d(c,m),f=d(f,w),l=d(l,v),h=d(h,b)}return Array(u,c,f,l,h)}function d(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function p(t,e){return t<<e|t>>>32-e}e.exports=function(t){return l.hash(t,h,20,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(t,e,n){(function(n,r,o,i,s,a,u,c,f){function l(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function h(t,e){return t>>>e|t<<32-e}function d(t,e){var n,r,o,i,s,a,u,c,f,d,p=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),g=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),y=new Array(64);t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var m,w,v,b,E,_,I,C,A=0;A<t.length;A+=16){n=g[0],r=g[1],o=g[2],i=g[3],s=g[4],a=g[5],u=g[6],c=g[7];for(var T=0;T<64;T++)y[T]=T<16?t[T+A]:l(l(l(h(C=y[T-2],17)^h(C,19)^C>>>10,y[T-7]),h(I=y[T-15],7)^h(I,18)^I>>>3),y[T-16]),f=l(l(l(l(c,h(_=s,6)^h(_,11)^h(_,25)),(E=s)&a^~E&u),p[T]),y[T]),d=l(h(b=n,2)^h(b,13)^h(b,22),(m=n)&(w=r)^m&(v=o)^w&v),c=u,u=a,a=s,s=l(i,f),i=o,o=r,r=n,n=l(f,d);g[0]=l(n,g[0]),g[1]=l(r,g[1]),g[2]=l(o,g[2]),g[3]=l(i,g[3]),g[4]=l(s,g[4]),g[5]=l(a,g[5]),g[6]=l(u,g[6]),g[7]=l(c,g[7])}return g}var p=t("./helpers");e.exports=function(t){return p.hash(t,d,32,!0)}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(t,e,n){(function(t,n,r,o,i,s,a,u,c){function f(){}(t=e.exports={}).nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",(function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),0<n.length&&n.shift()())}),!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=f,t.addListener=f,t.once=f,t.off=f,t.removeListener=f,t.removeAllListeners=f,t.emit=f,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(t,e,n){(function(t,e,r,o,i,s,a,u,c){n.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,f=-7,l=n?o-1:0,h=n?-1:1,d=t[e+l];for(l+=h,i=d&(1<<-f)-1,d>>=-f,f+=a;0<f;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;0<f;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),i-=c}return(d?-1:1)*s*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),2<=(e+=1<=s+l?h/u:h*Math.pow(2,1-l))*u&&(s++,u/=2),f<=s+l?(a=0,s=f):1<=s+l?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));8<=o;t[n+d]=255&a,d+=p,a/=256,o-=8);for(s=s<<o|a,c+=o;0<c;t[n+d]=255&s,d+=p,s/=256,c-=8);t[n+d-p]|=128*g}}).call(this,t("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})),s=function(){function t(t,e){this.event=t,this.connection=e,this.changeHandlers=new Map}return t.prototype.add=function(t,e){var n=this,r=i(e||{});if(this.changeHandlers.has(r)){var o=this.changeHandlers.get(r).add(t);this.changeHandlers.set(r,o)}else this.changeHandlers.set(r,new Set([t])),this.event&&this.connection.emit(this.event,{id:r,config:e});return function(){var e=n.changeHandlers.get(r);null==e||e.delete(t)}},t.prototype.run=function(t,e){var n;void 0===e&&(e=i({})),null===(n=this.changeHandlers.get(e))||void 0===n||n.forEach((function(e){return e(t)}))},t}(),a=function(t){return function(e){return void 0===e&&(e=null),new s(e,t)}},u=function(){function t(t){this._config=t,this.DEFAULT_PARAMS_CD2={format:"inlined",depth:"all",allowInvalid:!1}}return Object.defineProperty(t.prototype,"config",{get:function(){return this.createCDv2Config()},enumerable:!1,configurable:!0}),t.prototype.createCDv2Config=function(){return Object.assign({},this.DEFAULT_PARAMS_CD2,this._config)},t}();!function(t){t.GET="visualization-sdk:form:get",t.CHANGE="visualization-sdk:form:change",t.SAVED="visualization-sdk:form:saved",t.CHANGED_CONFIG="visualization-sdk:form:changed-config",t.SAVED_CONFIG="visualization-sdk:form:saved-config"}(o||(o={}));var c,f=function(){function t(t){var e=this;this.connection=t;var n=a(t);this.changeHandlerContainer=n(o.CHANGED_CONFIG),this.savedHandlerContainer=n(o.SAVED_CONFIG),this.connection.on(o.CHANGE,(function(t){var n=t.model,r=t.handlerId;e.changeHandlerContainer.run(n,r)})),this.connection.on(o.SAVED,(function(t){var n=t.model,r=t.handlerId;e.savedHandlerContainer.run(n,r)}))}return t.prototype.get=function(t){return void 0===t&&(t={}),e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return e=new u(t).config,[4,this.connection.request(o.GET,e)];case 1:return[2,n.sent()]}}))}))},t.prototype.saved=function(t,e){void 0===e&&(e={});var n=new u(e).config;return this.savedHandlerContainer.add(t,n)},t.prototype.changed=function(t,e){void 0===e&&(e={});var n=new u(e).config;return this.changeHandlerContainer.add(t,n)},t}();!function(t){t.GET="visualization-sdk:locale:get",t.CHANGE="visualization-sdk:locale:change"}(c||(c={}));var l,h=function(){function t(t){var e=this;this.connection=t;var n=a(t);this.changeHandlerContainer=n(),this.connection.on(c.CHANGE,(function(t){e.changeHandlerContainer.run(t)}))}return t.prototype.get=function(){return this.connection.request(c.GET)},t.prototype.changed=function(t){return this.changeHandlerContainer.add(t)},t}();!function(t){t.GET="visualization-sdk:settings:get",t.CHANGE="visualization-sdk:settings:change"}(l||(l={}));var d=function(){function t(t){var e=this;this.connection=t;var n=a(t);this.changeHandlerContainer=n(),this.connection.on(l.CHANGE,(function(t){e.changeHandlerContainer.run(t)}))}return t.prototype.get=function(){return this.connection.request(l.GET)},t.prototype.changed=function(t){return this.changeHandlerContainer.add(t)},t}(),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),n=function(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(n[Symbol.iterator]=function(){return n}),n},r=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set}catch(t){return!1}})()||function(){var o=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof o){var n=this;t.forEach((function(t,e){n.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++){var i=t[r];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var s in t)t.hasOwnProperty(s)&&this.append(s,t[s])}},i=o.prototype;i.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},i.delete=function(t){delete this._entries[t]},i.get=function(t){return t in this._entries?this._entries[t][0]:null},i.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},i.has=function(t){return t in this._entries},i.set=function(t,e){this._entries[t]=[String(e)]},i.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)t.call(e,n[o],r,this)}},i.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),n(t)},i.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),n(t)},i.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),n(t)},e&&(i[Symbol.iterator]=i.entries),i.toString=function(){var t=[];return this.forEach((function(e,n){t.push(r(n)+"="+r(e))})),t.join("&")},t.URLSearchParams=o}();var i=t.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var t=this,e=[];this.forEach((function(n,r){e.push([r,n]),t._entries||t.delete(r)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var n=0;n<e.length;n++)this.append(e[n][0],e[n][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,n){e.push(n)}));for(var n=0;n<e.length;n++)this.delete(e[n])}var r,i=(t=t.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==p?p:"undefined"!=typeof window?window:"undefined"!=typeof self?self:p),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,n=function(e,n){"string"!=typeof e&&(e=String(e));var r,o=document;if(n&&(void 0===t.location||n!==t.location.href)){(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(t){throw new Error("URL unable to set base "+n+" due to "+t)}}var i=o.createElement("a");if(i.href=e,r&&(o.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var s=new t.URLSearchParams(this.search),a=!0,u=!0,c=this;["append","delete","set"].forEach((function(t){var e=s[t];s[t]=function(){e.apply(s,arguments),a&&(u=!1,c.search=s.toString(),u=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,u&&(a=!1,this.searchParams._fromString(this.search),a=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(r,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),n.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},n.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=n}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(n){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==p?p:"undefined"!=typeof window?window:"undefined"!=typeof self?self:p);
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */
var g=function(t,e){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},g(t,e)};function y(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var m,w,v=function(){return v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v.apply(this,arguments)};!function(t){t.SUBSCRIBE="subscribe",t.EMIT="emit",t.REQUEST="request",t.RESOLVE="resolve",t.REJECT="reject"}(m||(m={})),function(t){t.HANDSHAKE="mc-handshake",t.CONNECTED="mc-connected",t.DISCONNECTED="mc-disconnected",t.CONNECTION_TIMEOUT="mc-connection-timeout"}(w||(w={}));var b,E,_=function(){function t(t){void 0===t&&(t={}),this.connected=!1,this.backlog=[],this.promises={},this.emitters={},this.connectionStep="",this.defaultOptions={window:window,connectionTimeout:2e3,timeout:200,debug:!1,onload:!0,clientInitiates:!1,targetOrigin:"*"},this.options=v({},this.defaultOptions,t)}return t.prototype.emit=function(t,e){return this.message({type:m.EMIT,event:t,payload:e}),this},t.prototype.on=function(t,e){return this.emitters[t]&&Array.isArray(this.emitters[t])?this.emitters[t].push(e):this.emitters[t]=[e],this},t.prototype.request=function(t,e,n){var r=this;return void 0===n&&(n={}),new Promise((function(o,i){var s,a=r.uuidv4(),u=r.getRequestTimeout(n.timeout);!1!==u&&"number"==typeof u&&(s=window.setTimeout((function(){return i("timeout")}),u)),r.promises[a]={resolve:function(t){o(t),s&&clearTimeout(s)},reject:function(t){i(t),s&&clearTimeout(s)}},r.message({type:m.REQUEST,event:t,id:a,payload:e})}))},t.prototype.close=function(){this.connected&&(this.port.close(),this.connected=!1),this.messageListener&&this.options.window.removeEventListener("message",this.messageListener,!1)},t.prototype.setConnectionTimeout=function(){var t=this;clearTimeout(this.connectionTimeout),!1!==this.options.connectionTimeout&&(this.connectionTimeout=window.setTimeout((function(){t.messageListener&&t.options.window.removeEventListener("message",t.messageListener,!1),t.handleMessage({type:m.EMIT,event:w.CONNECTION_TIMEOUT,payload:{message:"Connection timed out while "+t.connectionStep}})}),Number(this.options.connectionTimeout)))},t.prototype.uuidv4=function(){var t=window.crypto||window.msCrypto;return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^t.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))},t.prototype.clearConnectionTimeout=function(){clearTimeout(this.connectionTimeout)},t.prototype.initPortEvents=function(){var t=this;this.port.onmessage=function(e){t.handleMessage(e.data)},this.port.onmessageerror=function(e){t.handleError(e)}},t.prototype.finishInit=function(){this.connected=!0,this.clearConnectionTimeout(),this.options.debug&&console.log("Finished connection on "+(this.isClient()?"client":"server")),this.emit(w.CONNECTED),this.completeBacklog()},t.prototype.completeBacklog=function(){var t=this;this.backlog.forEach((function(e){t.portMessage(e)})),this.backlog=[]},t.prototype.handleError=function(t){this.options.debug&&console.error(t)},t.prototype.handleMessage=function(t){var e=this;switch(this.options.debug&&console.log("handle by "+(this.isClient()?"client":"server")+" - ["+t.type+'] "'+t.event+'", payload: ',t.payload),t.type){case m.EMIT:if(!this.emitters[t.event]||!Array.isArray(this.emitters[t.event]))return;this.emitters[t.event].forEach((function(e){return e(t.payload)}));break;case m.REQUEST:if(!this.emitters[t.event]||!Array.isArray(this.emitters[t.event]))return;this.emitters[t.event].forEach((function(n){return n(t.payload,(function(n){e.message({id:t.id,type:m.RESOLVE,event:t.event,payload:n})}),(function(n){e.message({id:t.id,type:m.REJECT,event:t.event,payload:n})}))}));break;case m.RESOLVE:if(!this.promises[t.id])return;this.promises[t.id].resolve(t.payload),delete this.promises[t.id];break;case m.REJECT:if(!this.promises[t.id])return;this.promises[t.id].reject(t.payload),delete this.promises[t.id]}},t.prototype.getRequestTimeout=function(t){return"number"==typeof t&&t>=0?t:"number"==typeof t?0:(!0===t||!1!==t)&&this.options.timeout},t.prototype.isClient=function(){return!1},t.prototype.message=function(t){var e=!1;t.event!==w.HANDSHAKE&&t.event!==w.CONNECTED&&t.event!==w.DISCONNECTED||(e=!0),this.connected||e?this.port&&this.portMessage(t):this.backlog.push(t)},t.prototype.portMessage=function(t){this.options.debug&&console.log("send from "+(this.isClient()?"client":"server")+" - ["+t.type+'] "'+t.event+'", payload: ',t.payload),this.port.postMessage(t)},t}();!function(t){t.CONNECTION="waiting for connection.",t.IFRAME_LOADING="waiting for iframe to load.",t.INITIATION_FROM_CLIENT="waiting for initiation from client."}(b||(b={})),function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,n)||this;return r.frame=e,r.connectionStep=b.CONNECTION,r.options.onload&&r.setupLoadInit(),r.options.clientInitiates&&r.setupClientInit(),r.setConnectionTimeout(),r.on(w.DISCONNECTED,(function(){return r.close()})),r}y(e,t),e.prototype.clientInitiation=function(t){t.data===this.id&&(this.connectionStep=b.CONNECTION,this.setConnectionTimeout(),this.options.window.removeEventListener("message",this.messageListener,!1),this.options.debug&&console.log("Server: Client triggered initiation"),this.init())},e.prototype.setupLoadInit=function(){var t=this;this.connectionStep=b.IFRAME_LOADING,this.frame.addEventListener("load",(function(){t.connectionStep=t.options.clientInitiates?b.INITIATION_FROM_CLIENT:b.CONNECTION,t.setConnectionTimeout(),t.init()}))},e.prototype.setupClientInit=function(){var t=this;this.connectionStep=b.INITIATION_FROM_CLIENT,this.id=this.uuidv4();var e=new URL(this.frame.src);e.searchParams.set("mc-name",this.id),this.frame.src=e.toString(),this.messageListener=function(e){return t.clientInitiation(e)},this.options.window.addEventListener("message",this.messageListener)},e.prototype.init=function(){if(!this.frame.contentWindow||!this.frame.src||this.connected)return!1;this.setupChannel(),this.initPortEvents(),this.listenForHandshake(),this.sendPortToClient(this.frame.contentWindow)},e.prototype.sendPortToClient=function(t){t.postMessage(null,this.options.targetOrigin?this.options.targetOrigin:"*",[this.channel.port2])},e.prototype.listenForHandshake=function(){var t=this;this.on(w.HANDSHAKE,(function(e,n){n(e),t.finishInit()}))},e.prototype.setupChannel=function(){this.channel=new MessageChannel,this.port=this.channel.port1}}(_),function(t){t.CONNECTION="waiting for connection.",t.HANDSHAKE="waiting for handshake."}(E||(E={}));var I,C=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.messageListener=function(t){return n.messageHandler(t)},n.options.window.addEventListener("message",n.messageListener),!1!==n.options.connectionTimeout&&(n.connectionStep=E.CONNECTION,n.setConnectionTimeout()),n}return y(e,t),e.prototype.init=function(){var t=new URL(this.options.window.location.toString());this.id=t.searchParams.get("mc-name"),this.options.debug&&console.log("Client: sent postMessage value:",this.id),this.options.window.parent.postMessage(this.id,this.options.targetOrigin)},e.prototype.messageHandler=function(t){t.ports[0]&&(this.port=t.ports[0],this.initPortEvents(),this.listenForHandshake(),this.options.window.removeEventListener("message",this.messageListener))},e.prototype.listenForHandshake=function(){var t=this;!1!==this.options.connectionTimeout&&(this.connectionStep=E.HANDSHAKE,this.setConnectionTimeout()),this.request(w.HANDSHAKE,null,{timeout:!1}).then((function(){t.addBeforeUnloadEvent(),t.finishInit()})).catch((function(e){t.handleError(e)}))},e.prototype.addBeforeUnloadEvent=function(){var t=this;this.options.window.addEventListener("beforeunload",(function(e){t.emit(w.DISCONNECTED),t.close()}))},e.prototype.isClient=function(){return!0},e}(_);!function(t){t.CONNECTION_TIMEOUT="Failed to establish connection to DC Application",t.NO_CONNECTION="Connection has not been made yet"}(I||(I={}));var A,T=function(){function t(t){void 0===t&&(t={}),this.DEFAULT_OPTIONS={connectionTimeout:!1,timeout:!1,debug:!1},this.connection=new C(Object.assign({},this.DEFAULT_OPTIONS,t))}return t.create=function(e){return void 0===e&&(e={}),new t(e)},t.prototype.init=function(){return e(this,void 0,void 0,(function(){var t=this;return n(this,(function(e){return this.connection.init(),[2,new Promise((function(e,n){t.connection.on(w.CONNECTED,(function(){return e(!0)})),t.connection.on(w.CONNECTION_TIMEOUT,(function(){return n(I.CONNECTION_TIMEOUT)}))}))]}))}))},t}();!function(t){t.GET="visualization-sdk:device:get",t.CHANGE="visualization-sdk:device:change"}(A||(A={}));var S,N=function(){function t(t){var e=this;this.connection=t;var n=a(t);this.changeHandlerContainer=n(),this.connection.on(A.CHANGE,(function(t){e.changeHandlerContainer.run(t)}))}return t.prototype.get=function(){return this.connection.request(A.GET)},t.prototype.changed=function(t){return this.changeHandlerContainer.add(t)},t}();!function(t){t.GET="visualization-sdk:context:get",t.CHANGE="visualization-sdk:context:change"}(S||(S={}));var L=function(){function t(t){var e=this;this.connection=t;var n=a(t);this.changeHandlerContainer=n(),this.connection.on(S.CHANGE,(function(t){e.changeHandlerContainer.run(t)}))}return t.prototype.get=function(){return this.connection.request(S.GET)},t.prototype.changed=function(t){return this.changeHandlerContainer.add(t)},t}(),O=function(t){return void 0===t&&(t={}),e(void 0,void 0,void 0,(function(){var e,r,o,i,s,a;return n(this,(function(n){switch(n.label){case 0:return e=T.create(t),r=new f(e.connection),o=new h(e.connection),i=new d(e.connection),s=new N(e.connection),a=new L(e.connection),[4,e.init()];case 1:return n.sent(),[2,{form:r,locale:o,settings:i,device:s,context:a}]}}))}))},U={init:O};t.default=U,t.init=O,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=/sm/67d60fdfe76db5b836f6243f8c3eea149ec23bbc381119267601e335eeb09b6c.map