Socket
Socket
Sign inDemoInstall

@govflanders/vl-widget-client

Package Overview
Dependencies
Maintainers
13
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govflanders/vl-widget-client - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

dist/index.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).vl=t.vl||{},t.vl.widget=t.vl.widget||{},t.vl.widget.client={}))}(this,function(t){"use strict";function e(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})}function n(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}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,u])}}}var r=Object.freeze({isMounted:function(t){return!!t.parentNode},mount:function(t,e){t.parentNode!==e&&e.appendChild(t)},unmount:function(t){t.parentNode&&t.parentNode.removeChild(t)},replaceWith:function(t,e){var n=t.parentNode||null;return null!==n&&n.replaceChild(e,t),t},loadCss:function(t,e){return new Promise(function(n,r){var o=e.createElement("link");o.onload=function(){n(o)},o.onerror=function(){r(new Error('Failed import stylesheet "'+t+'"'))},o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("href",t),e.getElementsByTagName("head")[0].appendChild(o)})},loadScript:function(t,e){return new Promise(function(n,r){var o=e.createElement("script");o.onload=function(){n(o)},o.onerror=function(){r(new Error('Failed import script "'+t+'"'))},o.setAttribute("src",t),o.setAttribute("async",""),e.getElementsByTagName("head")[0].appendChild(o)})}}),o=Object.freeze({dispatchCustomEvent:function(t,e,n,r,o){void 0===n&&(n=null),void 0===r&&(r=!1),void 0===o&&(o=!1);var i=window.document.createEvent("CustomEvent");return i.initCustomEvent(e,r,o,n),t.dispatchEvent(i)}}),i=(Object.freeze({DOM:r,Event:o}),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])});function a(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o.innerError=r,o}return a(e,t),e}(Error),s=function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return a(e,t),e}(u),c=function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return a(e,t),e}(s),f=function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return a(e,t),e}(u),h=(Object.freeze({InvalidArgumentError:c,LogicError:s,RuntimeError:u,UnexpectedValueError:f}),Object.freeze({isBrowser:function(){return"undefined"!=typeof window&&"undefined"!=typeof document},isServer:function(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)},isWebWorker:function(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}}));function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l,p,d,y=Object.freeze({nextTick:function(t){"undefined"!=typeof process?process.nextTick(t):setTimeout(t,0)},get:function(t,e,n){return("string"==typeof e?e.split("."):e).reduce(function(t,e){return t&&t[e]?t[e]:n},t)},set:function(t,e,n){var r="string"==typeof e?e.split("."):e,o=r.length-1;r.reduce(function(t,e,r){switch(r){case o:return t[e]=n;default:var i=t[e];return null==i&&(i=t[e]={}),i}},t)},merge:function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={};return e.forEach(function(e){Object.keys(e).forEach(function(n){var o=e[n];"object"===v(r[n])&&"object"===v(o)?r[n]=t(r[n],o):r[n]=o})}),r},deepMerge:function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={};return e.forEach(function(e){Object.keys(e).forEach(function(n){var o=e[n];"object"===v(r[n])&&"object"===v(o)?r[n]=t(r[n],o):"object"===v(o)?r[n]=t({},o):r[n]=o})}),r}}),b=(function(t){t.exports=function(){var t=function(t,e,n,r,o,i){for(var a=function(t,e){var n=t.toString(16);return n.length<2&&(n="0"+n),e&&(n=n.toUpperCase()),n},u=e;u<=n;u++)o[i++]=a(t[u],r);return o},e=function(t,e,n,r,o){for(var i=e;i<=n;i+=2)r[o++]=parseInt(t.substr(i,2),16)},n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split(""),r=[0,68,0,84,83,82,72,0,75,76,70,65,0,63,62,69,0,1,2,3,4,5,6,7,8,9,64,0,73,66,74,71,81,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,0,78,67,0,0,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,79,0,80,0,0],o=function(t,e){var n={ibits:8,obits:8,obigendian:!0};for(var r in e)void 0!==n[r]&&(n[r]=e[r]);for(var o,i,a,u=[],s=0,c=0,f=0,h=t.length;0===c&&(i=t.charCodeAt(s++)),o=i>>n.ibits-(c+8)&255,c=(c+8)%n.ibits,n.obigendian?0===f?a=o<<n.obits-8:a|=o<<n.obits-8-f:0===f?a=o:a|=o<<f,!(0==(f=(f+8)%n.obits)&&(u.push(a),s>=h)););return u},i=function(t,e){var n={ibits:32,ibigendian:!0};for(var r in e)void 0!==n[r]&&(n[r]=e[r]);var o="",i=4294967295;n.ibits<32&&(i=(1<<n.ibits)-1);for(var a=t.length,u=0;u<a;u++)for(var s=t[u]&i,c=0;c<n.ibits;c+=8)n.ibigendian?o+=String.fromCharCode(s>>n.ibits-8-c&255):o+=String.fromCharCode(s>>c&255);return o},a=function(t,e,n,r,o,i,a,u){return[u,a,i,o,r,n,e,t]},u=function(){return a(0,0,0,0,0,0,0,0)},s=function(t){return t.slice(0)},c=function(t){for(var e=u(),n=0;n<8;n++)e[n]=Math.floor(t%256),t/=256;return e},f=function(t){for(var e=0,n=7;n>=0;n--)e*=256,e+=t[n];return Math.floor(e)},h=function(t,e){for(var n=0,r=0;r<8;r++)n+=t[r]+e[r],t[r]=Math.floor(n%256),n=Math.floor(n/256);return n},v=function(t,e){for(var n=0;n<8;n++)t[n]&=e[n];return t},l=function(t,e){var n=u();if(e%8!=0)throw new Error("ui64_rorn: only bit rotations supported with a multiple of digit bits");for(var r=Math.floor(e/8),o=0;o<r;o++){for(var i=6;i>=0;i--)n[i+1]=n[i];for(n[0]=t[0],i=0;i<7;i++)t[i]=t[i+1];t[i]=0}return f(n)},p=function(t,e){if(e>64)throw new Error("ui64_ror: invalid number of bits to shift");var n,r=new Array(16);for(n=0;n<8;n++)r[n+8]=t[n],r[n]=0;var o=Math.floor(e/8),i=e%8;for(n=o;n<15;n++)r[n-o]=255&(r[n]>>>i|r[n+1]<<8-i);for(r[15-o]=r[15]>>>i&255,n=15-o+1;n<16;n++)r[n]=0;for(n=0;n<8;n++)t[n]=r[n+8];return r.slice(0,8)},d=function(t,e){for(var n=0;n<8;n++)t[n]^=e[n]},y=function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n},b=function(t,e){return t<<e&4294967295|t>>>32-e&4294967295},m=function(t){this.mul=a(88,81,244,45,76,149,127,45),this.inc=a(20,5,123,126,247,103,129,79),this.mask=a(0,0,0,0,255,255,255,255),this.state=s(this.inc),this.next(),v(this.state,this.mask),t=c(void 0!==t?t>>>0:4294967295*Math.random()>>>0),function(t,e){for(var n=0;n<8;n++)t[n]|=e[n]}(this.state,t),this.next()};m.prototype.next=function(){var t=s(this.state);!function(t,e){var n,r,o,i=new Array(16);for(n=0;n<16;n++)i[n]=0;for(n=0;n<8;n++){for(o=0,r=0;r<8;r++)o+=t[n]*e[r]+i[n+r],i[n+r]=o%256,o/=256;for(;r<16-n;r++)o+=i[n+r],i[n+r]=o%256,o/=256}for(n=0;n<8;n++)t[n]=i[n];i.slice(8,8)}(this.state,this.mul),h(this.state,this.inc);var e=s(t);p(e,18),d(e,t),p(e,27);var n=s(t);p(n,59),v(e,this.mask);var r=f(n),o=s(e);return function(t,e){if(e>64)throw new Error("ui64_rol: invalid number of bits to shift");var n,r=new Array(16);for(n=0;n<8;n++)r[n+8]=0,r[n]=t[n];var o=Math.floor(e/8),i=e%8;for(n=7-o;n>0;n--)r[n+o]=255&(r[n]<<i|r[n-1]>>>8-i);for(r[0+o]=r[0]<<i&255,n=0+o-1;n>=0;n--)r[n]=0;for(n=0;n<8;n++)t[n]=r[n];r.slice(8,8)}(o,32-r),p(e,r),d(e,o),f(e)};var g=new m,w=function(t,e){for(var n=[],r=0;r<t;r++)n[r]=g.next()%e;return n},E=0,x=0,B=function(){if(1===arguments.length&&"string"==typeof arguments[0])this.parse.apply(this,arguments);else if(arguments.length>=1&&"number"==typeof arguments[0])this.make.apply(this,arguments);else{if(arguments.length>=1)throw new Error("UUID: constructor: invalid arguments");for(var t=0;t<16;t++)this[t]=0}};return(B.prototype="undefined"!=typeof Uint8Array?new Uint8Array(16):Buffer?new Buffer(16):new Array(16)).constructor=B,B.prototype.make=function(t){var e;if(1===t){var n=(new Date).getTime();n!==E?x=0:x++,E=n;var r,u=c(n);!function(t,e){for(var n=0,r=0;r<8;r++)n+=1e4*t[r],t[r]=Math.floor(n%256),n=Math.floor(n/256)}(u),h(u,a(1,178,29,210,19,129,64,0)),x>0&&h(u,c(x)),r=l(u,8),this[3]=255&r,r=l(u,8),this[2]=255&r,r=l(u,8),this[1]=255&r,r=l(u,8),this[0]=255&r,r=l(u,8),this[5]=255&r,r=l(u,8),this[4]=255&r,r=l(u,8),this[7]=255&r,r=l(u,8),this[6]=15&r;var s=w(2,255);this[8]=s[0],this[9]=s[1];var f=w(6,255);for(f[0]|=1,f[0]|=2,e=0;e<6;e++)this[10+e]=f[e]}else if(4===t){var v=w(16,255);for(e=0;e<16;e++)this[e]=v[e]}else{if(3!==t&&5!==t)throw new Error("UUID: make: invalid version");var p="",d="object"==typeof arguments[1]&&arguments[1]instanceof B?arguments[1]:(new B).parse(arguments[1]);for(e=0;e<16;e++)p+=String.fromCharCode(d[e]);p+=arguments[2];var m=3===t?function(t){return i(function(t,e){function n(t,e,n,r,o,i){return y(b(y(y(e,t),y(r,i)),o),n)}function r(t,e,r,o,i,a,u){return n(e&r|~e&o,t,e,i,a,u)}function o(t,e,r,o,i,a,u){return n(e&o|r&~o,t,e,i,a,u)}function i(t,e,r,o,i,a,u){return n(e^r^o,t,e,i,a,u)}function a(t,e,r,o,i,a,u){return n(r^(e|~o),t,e,i,a,u)}t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var u=1732584193,s=-271733879,c=-1732584194,f=271733878,h=0;h<t.length;h+=16){var v=u,l=s,p=c,d=f;u=r(u,s,c,f,t[h+0],7,-680876936),f=r(f,u,s,c,t[h+1],12,-389564586),c=r(c,f,u,s,t[h+2],17,606105819),s=r(s,c,f,u,t[h+3],22,-1044525330),u=r(u,s,c,f,t[h+4],7,-176418897),f=r(f,u,s,c,t[h+5],12,1200080426),c=r(c,f,u,s,t[h+6],17,-1473231341),s=r(s,c,f,u,t[h+7],22,-45705983),u=r(u,s,c,f,t[h+8],7,1770035416),f=r(f,u,s,c,t[h+9],12,-1958414417),c=r(c,f,u,s,t[h+10],17,-42063),s=r(s,c,f,u,t[h+11],22,-1990404162),u=r(u,s,c,f,t[h+12],7,1804603682),f=r(f,u,s,c,t[h+13],12,-40341101),c=r(c,f,u,s,t[h+14],17,-1502002290),u=o(u,s=r(s,c,f,u,t[h+15],22,1236535329),c,f,t[h+1],5,-165796510),f=o(f,u,s,c,t[h+6],9,-1069501632),c=o(c,f,u,s,t[h+11],14,643717713),s=o(s,c,f,u,t[h+0],20,-373897302),u=o(u,s,c,f,t[h+5],5,-701558691),f=o(f,u,s,c,t[h+10],9,38016083),c=o(c,f,u,s,t[h+15],14,-660478335),s=o(s,c,f,u,t[h+4],20,-405537848),u=o(u,s,c,f,t[h+9],5,568446438),f=o(f,u,s,c,t[h+14],9,-1019803690),c=o(c,f,u,s,t[h+3],14,-187363961),s=o(s,c,f,u,t[h+8],20,1163531501),u=o(u,s,c,f,t[h+13],5,-1444681467),f=o(f,u,s,c,t[h+2],9,-51403784),c=o(c,f,u,s,t[h+7],14,1735328473),u=i(u,s=o(s,c,f,u,t[h+12],20,-1926607734),c,f,t[h+5],4,-378558),f=i(f,u,s,c,t[h+8],11,-2022574463),c=i(c,f,u,s,t[h+11],16,1839030562),s=i(s,c,f,u,t[h+14],23,-35309556),u=i(u,s,c,f,t[h+1],4,-1530992060),f=i(f,u,s,c,t[h+4],11,1272893353),c=i(c,f,u,s,t[h+7],16,-155497632),s=i(s,c,f,u,t[h+10],23,-1094730640),u=i(u,s,c,f,t[h+13],4,681279174),f=i(f,u,s,c,t[h+0],11,-358537222),c=i(c,f,u,s,t[h+3],16,-722521979),s=i(s,c,f,u,t[h+6],23,76029189),u=i(u,s,c,f,t[h+9],4,-640364487),f=i(f,u,s,c,t[h+12],11,-421815835),c=i(c,f,u,s,t[h+15],16,530742520),u=a(u,s=i(s,c,f,u,t[h+2],23,-995338651),c,f,t[h+0],6,-198630844),f=a(f,u,s,c,t[h+7],10,1126891415),c=a(c,f,u,s,t[h+14],15,-1416354905),s=a(s,c,f,u,t[h+5],21,-57434055),u=a(u,s,c,f,t[h+12],6,1700485571),f=a(f,u,s,c,t[h+3],10,-1894986606),c=a(c,f,u,s,t[h+10],15,-1051523),s=a(s,c,f,u,t[h+1],21,-2054922799),u=a(u,s,c,f,t[h+8],6,1873313359),f=a(f,u,s,c,t[h+15],10,-30611744),c=a(c,f,u,s,t[h+6],15,-1560198380),s=a(s,c,f,u,t[h+13],21,1309151649),u=a(u,s,c,f,t[h+4],6,-145523070),f=a(f,u,s,c,t[h+11],10,-1120210379),c=a(c,f,u,s,t[h+2],15,718787259),s=a(s,c,f,u,t[h+9],21,-343485551),u=y(u,v),s=y(s,l),c=y(c,p),f=y(f,d)}return[u,s,c,f]}(o(t,{ibits:8,obits:32,obigendian:!1}),8*t.length),{ibits:32,ibigendian:!1})}(p):function(t){return i(function(t,e){function n(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function r(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var o=Array(80),i=1732584193,a=-271733879,u=-1732584194,s=271733878,c=-1009589776,f=0;f<t.length;f+=16){for(var h=i,v=a,l=u,p=s,d=c,m=0;m<80;m++){o[m]=m<16?t[f+m]:b(o[m-3]^o[m-8]^o[m-14]^o[m-16],1);var g=y(y(b(i,5),n(m,a,u,s)),y(y(c,o[m]),r(m)));c=s,s=u,u=b(a,30),a=i,i=g}i=y(i,h),a=y(a,v),u=y(u,l),s=y(s,p),c=y(c,d)}return[i,a,u,s,c]}(o(t,{ibits:8,obits:32,obigendian:!0}),8*t.length),{ibits:32,ibigendian:!0})}(p);for(e=0;e<16;e++)this[e]=m.charCodeAt(e)}return this[6]&=15,this[6]|=t<<4,this[8]&=63,this[8]|=128,this},B.prototype.format=function(e){var r,o;return"z85"===e?r=function(t,e){for(var r="",o=0,i=0;o<16;)if(i=256*i+t[o++],o%4==0){for(var a=52200625;a>=1;){var u=Math.floor(i/a)%85;r+=n[u],a/=85}i=0}return r}(this):"b16"===e?(o=Array(32),t(this,0,15,!0,o,0),r=o.join("")):void 0!==e&&"std"!==e||(o=new Array(36),t(this,0,3,!1,o,0),o[8]="-",t(this,4,5,!1,o,9),o[13]="-",t(this,6,7,!1,o,14),o[18]="-",t(this,8,9,!1,o,19),o[23]="-",t(this,10,15,!1,o,24),r=o.join("")),r},B.prototype.toString=function(t){return this.format(t)},B.prototype.parse=function(t,n){if("string"!=typeof t)throw new Error("UUID: parse: invalid argument (type string expected)");if("z85"===n)!function(t,e){var n=t.length;if(n%5!=0)throw new Error("z85_decode: invalid input length (multiple of 5 expected)");void 0===e&&(e=new Array(4*n/5));for(var o=0,i=0,a=0;o<n;){var u=t.charCodeAt(o++)-32;if(u<0||u>=r.length)break;if(a=85*a+r[u],o%5==0){for(var s=16777216;s>=1;)e[i++]=Math.trunc(a/s%256),s/=256;a=0}}}(t,this);else if("b16"===n)e(t,0,35,this,0);else if(void 0===n||"std"===n){var o={nil:"00000000-0000-0000-0000-000000000000","ns:DNS":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","ns:URL":"6ba7b811-9dad-11d1-80b4-00c04fd430c8","ns:OID":"6ba7b812-9dad-11d1-80b4-00c04fd430c8","ns:X500":"6ba7b814-9dad-11d1-80b4-00c04fd430c8"};if(void 0!==o[t])t=o[t];else if(!t.match(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/))throw new Error('UUID: parse: invalid string representation (expected "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")');e(t,0,7,this,0),e(t,9,12,this,4),e(t,14,17,this,6),e(t,19,22,this,8),e(t,24,35,this,10)}return this},B.prototype.export=function(){for(var t=Array(16),e=0;e<16;e++)t[e]=this[e];return t},B.prototype.import=function(t){if(!("object"==typeof t&&t instanceof Array))throw new Error("UUID: import: invalid argument (type Array expected)");if(16!==t.length)throw new Error("UUID: import: invalid argument (Array of length 16 expected)");for(var e=0;e<16;e++){if("number"!=typeof t[e])throw new Error("UUID: import: invalid array element #"+e+" (type Number expected)");if(!isFinite(t[e])||Math.floor(t[e])!==t[e])throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value expected)");if(!(t[e]>=0&&t[e]<=255))throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value in range 0...255 expected)");this[e]=t[e]}return this},B.prototype.compare=function(t){if("object"!=typeof t)throw new Error("UUID: compare: invalid argument (type UUID expected)");if(!(t instanceof B))throw new Error("UUID: compare: invalid argument (type UUID expected)");for(var e=0;e<16;e++){if(this[e]<t[e])return-1;if(this[e]>t[e])return 1}return 0},B.prototype.fold=function(t){if(void 0===t)throw new Error("UUID: fold: invalid argument (number of fold operations expected)");if(t<1||t>4)throw new Error("UUID: fold: invalid argument (1-4 fold operations expected)");for(var e=16/Math.pow(2,t),n=new Array(e),r=0;r<e;r++){for(var o=0,i=0;r+i<16;i+=e)o^=this[r+i];n[r]=o}return n},B.PCG=m,B}(),t.exports.default=t.exports}(l={exports:{}}),l.exports);function m(t,e,n){return e&&n?new b(t,e,n):new b(t)}!function(t){t[t.V1=1]="V1",t[t.V3=3]="V3",t[t.V4=4]="V4",t[t.V5=5]="V5"}(p||(p={})),function(t){t.Standard="std",t.Base16="b16",t.ZeroMQBase85="z85"}(d||(d={}));var g=Object.freeze({get Version(){return p},get Format(){return d},namespace:function(t,e,n,r){return void 0===n&&(n=p.V5),void 0===r&&(r=d.Standard),m(n,t,e).format(r)},generate:function(t,e){return void 0===t&&(t=p.V4),void 0===e&&(e=d.Standard),m(t).format(e)}}),w=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])};function E(t,e){function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function x(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})}function B(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}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,u])}}}var L,A=function(){function t(){this.eventListeners={}}return t.prototype.add=function(t,e){this.eventListeners[t]?-1===this.eventListeners[t].indexOf(e)&&this.eventListeners[t].push(e):this.eventListeners[t]=[e]},t.prototype.remove=function(t,e){var n=(this.eventListeners[t]||[]).indexOf(e);n>-1&&(this.eventListeners[t].splice(n,1),0===this.eventListeners[t].length&&delete this.eventListeners[t])},t.prototype.emit=function(t){return x(this,void 0,void 0,function(){var e,n,r,o,i;return B(this,function(a){switch(a.label){case 0:if(!(e=this.eventListeners[t.getEventName()]||[]))return[3,2];for(n=[],r=0,o=e;r<o.length;r++)i=o[r],n.push(i(t));return[4,Promise.all(n)];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t}();!function(t){t.Self="self",t.Broadcast="broadcast"}(L||(L={}));var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e}(function(){function t(){this.eventListenerManager=new A,this.eventLocks={},this.subscribedEventBroadcasts=[]}return t.prototype.hasEventLock=function(t){return!!this.eventLocks[t.getEventId()]},t.prototype.acquireEventLock=function(t){return this.eventLocks[t.getEventId()]=!0,this},t.prototype.releaseEventLock=function(t){return delete this.eventLocks[t.getEventId()],this},t.prototype.resolveEventBroadcast=function(t){var e=null;return"function"==typeof t.getEventBroadcast?e=t.getEventBroadcast():"function"==typeof t&&(e=t),e},t.prototype.createEventBroadcast=function(){var t=this;return function(e){return t.emit(e)}},t.prototype.getEventBroadcast=function(){return void 0===this.eventBroadcast&&(this.eventBroadcast=this.createEventBroadcast()),this.eventBroadcast},t.prototype.on=function(t,e){return this.addEventListener(t,e)},t.prototype.off=function(t,e){return this.removeEventListener(t,e)},t.prototype.once=function(t,e){for(var n=this,r=Array.isArray(t)?t:[t],o=function(t){i.addEventListener(t,function r(o){return x(n,void 0,void 0,function(){return B(this,function(n){switch(n.label){case 0:return this.removeEventListener(t,r),[4,e(o)];case 1:return n.sent(),[2]}})})})},i=this,a=0,u=r;a<u.length;a++)o(u[a]);return this},t.prototype.addEventListener=function(t,e){for(var n=0,r=Array.isArray(t)?t:[t];n<r.length;n++){var o=r[n];this.eventListenerManager.add(o,e)}return this},t.prototype.removeEventListener=function(t,e){for(var n=0,r=Array.isArray(t)?t:[t];n<r.length;n++){var o=r[n];this.eventListenerManager.remove(o,e)}return this},t.prototype.addEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);return null!==e&&-1===this.subscribedEventBroadcasts.indexOf(e)&&this.subscribedEventBroadcasts.push(e),this},t.prototype.removeEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);if(null!==e){var n=this.subscribedEventBroadcasts.indexOf(e);n>-1&&this.subscribedEventBroadcasts.slice(n,1)}return this},t.prototype.emit=function(t){return x(this,void 0,void 0,function(){var e,n;return B(this,function(r){switch(r.label){case 0:if(this.hasEventLock(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.acquireEventLock(t),e=[this.eventListenerManager.emit(t)],t.getEventScope()===L.Broadcast&&this.subscribedEventBroadcasts.forEach(function(n){e.push(n(t))}),[4,Promise.all(e)];case 2:return r.sent(),this.releaseEventLock(t),[3,4];case 3:throw n=r.sent(),this.releaseEventLock(t),n;case 4:return[2]}})})},t}()),U=(function(t){function e(e,n,r,o){void 0===o&&(o=L.Broadcast);var i=t.call(this,e,n,o)||this;return i.eventData=r,i}E(e,t),e.prototype.getEventData=function(){return this.eventData}}(function(){function t(t,e,n){void 0===n&&(n=L.Broadcast),this.eventId=g.generate(),this.eventName=t,this.sender=e,this.eventScope=n}return t.prototype.getEventId=function(){return this.eventId},t.prototype.getEventScope=function(){return this.eventScope},t.prototype.getEventName=function(){return this.eventName},t.prototype.getSender=function(){return this.sender},t.prototype.rename=function(t){var e=Object.create(this);return e.eventName=t,e},t.prototype.prefix=function(t){var e=this.getEventName();return t.length>0&&(e=t+"."+e),this.rename(e)},t.prototype.suffix=function(t){var e=this.getEventName();return t.length>0&&(e=e+"."+t),this.rename(e)},t.prototype.toString=function(){return this.getEventName()},t}()),new k);function O(t){return e(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,U.emit(t)];case 1:return e.sent(),[2]}})})}function j(t,e){return U.on(t,e)}function S(t,e){return U.off(t,e)}function M(t,e){return U.once(t,e)}function I(t,e){return U.addEventListener(t,e)}function D(t,e){return U.removeEventListener(t,e)}function _(t){return U.addEventBroadcast(t)}function C(t){return U.removeEventBroadcast(t)}function N(){return U.getEventBroadcast()}var P=Object.freeze({emit:O,on:j,off:S,once:M,addEventListener:I,removeEventListener:D,addEventBroadcast:_,removeEventBroadcast:C,getEventBroadcast:N});var V=[];function z(t){t.addEventBroadcast(P),_(t),V.forEach(function(e){t.capture(e.callback,e.filter)})}function F(){return h.isBrowser()?y.get(window,"vl.widget.runtime.instances",[]):[]}h.isBrowser()&&(F().forEach(z),window.addEventListener("vl.widget.runtime",function(t){z(t.detail)}));var W=function(){function t(){}return t.prototype.list=function(t){var e=[];return F().forEach(function(n){e=e.concat(n.getWidgetManager().list(t))}),e},t.prototype.each=function(t){return new Promise(function(e,n){var r=[];F().forEach(function(e){r.push(e.getWidgetManager().each(t))}),Promise.all(r).then(function(t){return[].concat.apply([],t)}).then(e).catch(n)})},t.prototype.has=function(t){return null!==this.get(t)},t.prototype.get=function(t){for(var e=null,n=F(),r=0;r<n.length&&null===e;r+=1)e=n[r].getWidgetManager().get(t);return e},t.prototype.mount=function(t){return e(this,void 0,void 0,function(){var r=this;return n(this,function(o){return[2,this.each(function(o){return e(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return t&&!t(o)?[3,2]:[4,o.mount()];case 1:e.sent(),e.label=2;case 2:return[2,o]}})})})]})})},t.prototype.unmount=function(t){return e(this,void 0,void 0,function(){var r=this;return n(this,function(o){return[2,this.each(function(o){return e(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return t&&!t(o)?[3,2]:[4,o.unmount()];case 1:e.sent(),e.label=2;case 2:return[2,o]}})})})]})})},t.prototype.remount=function(t){return e(this,void 0,void 0,function(){var r=this;return n(this,function(o){return[2,this.each(function(o){return e(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return t&&!t(o)?[3,2]:[4,o.remount()];case 1:e.sent(),e.label=2;case 2:return[2,o]}})})})]})})},t}(),T=new W;t.DefaultWidgetManagerFacade=W,t.addEventBroadcast=_,t.addEventListener=I,t.capture=function(t,e){V.push({callback:t,filter:e}),F().forEach(function(n){n.capture(t,e)})},t.emit=O,t.getEventBroadcast=N,t.getVersion=function(){return"1.3.2"},t.getWidgetManager=function(){return T},t.off=S,t.on=j,t.once=M,t.removeEventBroadcast=C,t.removeEventListener=D,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).vl=t.vl||{},t.vl.widget=t.vl.widget||{},t.vl.widget.client={}))}(this,function(t){"use strict";function e(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})}function n(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}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,u])}}}var r=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])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o.innerError=r,o}return o(e,t),e}(Error);(function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return Object.setPrototypeOf(o,e.prototype),o}o(e,t)})(function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return o(e,t),e}(i)),function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return Object.setPrototypeOf(o,e.prototype),o}o(e,t)}(i);var a=Object.freeze({isBrowser:function(){return"undefined"!=typeof window&&"undefined"!=typeof document},isServer:function(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)},isWebWorker:function(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}});function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=Object.freeze({nextTick:function(t){"undefined"!=typeof process?process.nextTick(t):setTimeout(t,0)},get:function(t,e,n){return("string"==typeof e?e.split("."):e).reduce(function(t,e){return t&&t[e]?t[e]:n},t)},set:function(t,e,n){var r="string"==typeof e?e.split("."):e,o=r.length-1;r.reduce(function(t,e,r){switch(r){case o:return t[e]=n;default:var i=t[e];return null==i&&(i=t[e]={}),i}},t)},merge:function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={};return e.forEach(function(e){Object.keys(e).forEach(function(n){var o=e[n];"object"===u(r[n])&&"object"===u(o)?r[n]=t(r[n],o):r[n]=o})}),r},deepMerge:function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={};return e.forEach(function(e){Object.keys(e).forEach(function(n){var o=e[n];"object"===u(r[n])&&"object"===u(o)?r[n]=t(r[n],o):"object"===u(o)?r[n]=t({},o):r[n]=o})}),r}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var c,f,h=function(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t){t.exports=function(){var t=function(t,e,n,r,o,i){for(var a=function(t,e){var n=t.toString(16);return n.length<2&&(n="0"+n),e&&(n=n.toUpperCase()),n},u=e;u<=n;u++)o[i++]=a(t[u],r);return o},e=function(t,e,n,r,o){for(var i=e;i<=n;i+=2)r[o++]=parseInt(t.substr(i,2),16)},n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split(""),r=[0,68,0,84,83,82,72,0,75,76,70,65,0,63,62,69,0,1,2,3,4,5,6,7,8,9,64,0,73,66,74,71,81,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,0,78,67,0,0,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,79,0,80,0,0],o=function(t,e){var n={ibits:8,obits:8,obigendian:!0};for(var r in e)void 0!==n[r]&&(n[r]=e[r]);for(var o,i,a,u=[],s=0,c=0,f=0,h=t.length;0===c&&(i=t.charCodeAt(s++)),o=i>>n.ibits-(c+8)&255,c=(c+8)%n.ibits,n.obigendian?0===f?a=o<<n.obits-8:a|=o<<n.obits-8-f:0===f?a=o:a|=o<<f,!(0==(f=(f+8)%n.obits)&&(u.push(a),s>=h)););return u},i=function(t,e){var n={ibits:32,ibigendian:!0};for(var r in e)void 0!==n[r]&&(n[r]=e[r]);var o="",i=4294967295;n.ibits<32&&(i=(1<<n.ibits)-1);for(var a=t.length,u=0;u<a;u++)for(var s=t[u]&i,c=0;c<n.ibits;c+=8)n.ibigendian?o+=String.fromCharCode(s>>n.ibits-8-c&255):o+=String.fromCharCode(s>>c&255);return o},a=function(t,e,n,r,o,i,a,u){return[u,a,i,o,r,n,e,t]},u=function(){return a(0,0,0,0,0,0,0,0)},s=function(t){return t.slice(0)},c=function(t){for(var e=u(),n=0;n<8;n++)e[n]=Math.floor(t%256),t/=256;return e},f=function(t){for(var e=0,n=7;n>=0;n--)e*=256,e+=t[n];return Math.floor(e)},h=function(t,e){for(var n=0,r=0;r<8;r++)n+=t[r]+e[r],t[r]=Math.floor(n%256),n=Math.floor(n/256);return n},v=function(t,e){for(var n=0;n<8;n++)t[n]&=e[n];return t},l=function(t,e){var n=u();if(e%8!=0)throw new Error("ui64_rorn: only bit rotations supported with a multiple of digit bits");for(var r=Math.floor(e/8),o=0;o<r;o++){for(var i=6;i>=0;i--)n[i+1]=n[i];for(n[0]=t[0],i=0;i<7;i++)t[i]=t[i+1];t[i]=0}return f(n)},p=function(t,e){if(e>64)throw new Error("ui64_ror: invalid number of bits to shift");var n,r=new Array(16);for(n=0;n<8;n++)r[n+8]=t[n],r[n]=0;var o=Math.floor(e/8),i=e%8;for(n=o;n<15;n++)r[n-o]=255&(r[n]>>>i|r[n+1]<<8-i);for(r[15-o]=r[15]>>>i&255,n=15-o+1;n<16;n++)r[n]=0;for(n=0;n<8;n++)t[n]=r[n+8];return r.slice(0,8)},d=function(t,e){for(var n=0;n<8;n++)t[n]^=e[n]},y=function(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n},b=function(t,e){return t<<e&4294967295|t>>>32-e&4294967295},g=function(t){this.mul=a(88,81,244,45,76,149,127,45),this.inc=a(20,5,123,126,247,103,129,79),this.mask=a(0,0,0,0,255,255,255,255),this.state=s(this.inc),this.next(),v(this.state,this.mask),t=c(void 0!==t?t>>>0:4294967295*Math.random()>>>0),function(t,e){for(var n=0;n<8;n++)t[n]|=e[n]}(this.state,t),this.next()};g.prototype.next=function(){var t=s(this.state);!function(t,e){var n,r,o,i=new Array(16);for(n=0;n<16;n++)i[n]=0;for(n=0;n<8;n++){for(o=0,r=0;r<8;r++)o+=t[n]*e[r]+i[n+r],i[n+r]=o%256,o/=256;for(;r<16-n;r++)o+=i[n+r],i[n+r]=o%256,o/=256}for(n=0;n<8;n++)t[n]=i[n];i.slice(8,8)}(this.state,this.mul),h(this.state,this.inc);var e=s(t);p(e,18),d(e,t),p(e,27);var n=s(t);p(n,59),v(e,this.mask);var r=f(n),o=s(e);return function(t,e){if(e>64)throw new Error("ui64_rol: invalid number of bits to shift");var n,r=new Array(16);for(n=0;n<8;n++)r[n+8]=0,r[n]=t[n];var o=Math.floor(e/8),i=e%8;for(n=7-o;n>0;n--)r[n+o]=255&(r[n]<<i|r[n-1]>>>8-i);for(r[0+o]=r[0]<<i&255,n=0+o-1;n>=0;n--)r[n]=0;for(n=0;n<8;n++)t[n]=r[n];r.slice(8,8)}(o,32-r),p(e,r),d(e,o),f(e)};var m=new g,w=function(t,e){for(var n=[],r=0;r<t;r++)n[r]=m.next()%e;return n},E=0,x=0,B=function(){if(1===arguments.length&&"string"==typeof arguments[0])this.parse.apply(this,arguments);else if(arguments.length>=1&&"number"==typeof arguments[0])this.make.apply(this,arguments);else{if(arguments.length>=1)throw new Error("UUID: constructor: invalid arguments");for(var t=0;t<16;t++)this[t]=0}};return(B.prototype="undefined"!=typeof Uint8Array?new Uint8Array(16):Buffer?new Buffer(16):new Array(16)).constructor=B,B.prototype.make=function(t){var e;if(1===t){var n=(new Date).getTime();n!==E?x=0:x++,E=n;var r,u=c(n);!function(t,e){for(var n=0,r=0;r<8;r++)n+=t[r]*e,t[r]=Math.floor(n%256),n=Math.floor(n/256)}(u,1e4),h(u,a(1,178,29,210,19,129,64,0)),x>0&&h(u,c(x)),r=l(u,8),this[3]=255&r,r=l(u,8),this[2]=255&r,r=l(u,8),this[1]=255&r,r=l(u,8),this[0]=255&r,r=l(u,8),this[5]=255&r,r=l(u,8),this[4]=255&r,r=l(u,8),this[7]=255&r,r=l(u,8),this[6]=15&r;var s=w(2,255);this[8]=s[0],this[9]=s[1];var f=w(6,255);for(f[0]|=1,f[0]|=2,e=0;e<6;e++)this[10+e]=f[e]}else if(4===t){var v=w(16,255);for(e=0;e<16;e++)this[e]=v[e]}else{if(3!==t&&5!==t)throw new Error("UUID: make: invalid version");var p="",d="object"==typeof arguments[1]&&arguments[1]instanceof B?arguments[1]:(new B).parse(arguments[1]);for(e=0;e<16;e++)p+=String.fromCharCode(d[e]);p+=arguments[2];var g=3===t?function(t){return i(function(t,e){function n(t,e,n,r,o,i){return y(b(y(y(e,t),y(r,i)),o),n)}function r(t,e,r,o,i,a,u){return n(e&r|~e&o,t,e,i,a,u)}function o(t,e,r,o,i,a,u){return n(e&o|r&~o,t,e,i,a,u)}function i(t,e,r,o,i,a,u){return n(e^r^o,t,e,i,a,u)}function a(t,e,r,o,i,a,u){return n(r^(e|~o),t,e,i,a,u)}t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var u=1732584193,s=-271733879,c=-1732584194,f=271733878,h=0;h<t.length;h+=16){var v=u,l=s,p=c,d=f;u=r(u,s,c,f,t[h+0],7,-680876936),f=r(f,u,s,c,t[h+1],12,-389564586),c=r(c,f,u,s,t[h+2],17,606105819),s=r(s,c,f,u,t[h+3],22,-1044525330),u=r(u,s,c,f,t[h+4],7,-176418897),f=r(f,u,s,c,t[h+5],12,1200080426),c=r(c,f,u,s,t[h+6],17,-1473231341),s=r(s,c,f,u,t[h+7],22,-45705983),u=r(u,s,c,f,t[h+8],7,1770035416),f=r(f,u,s,c,t[h+9],12,-1958414417),c=r(c,f,u,s,t[h+10],17,-42063),s=r(s,c,f,u,t[h+11],22,-1990404162),u=r(u,s,c,f,t[h+12],7,1804603682),f=r(f,u,s,c,t[h+13],12,-40341101),c=r(c,f,u,s,t[h+14],17,-1502002290),s=r(s,c,f,u,t[h+15],22,1236535329),u=o(u,s,c,f,t[h+1],5,-165796510),f=o(f,u,s,c,t[h+6],9,-1069501632),c=o(c,f,u,s,t[h+11],14,643717713),s=o(s,c,f,u,t[h+0],20,-373897302),u=o(u,s,c,f,t[h+5],5,-701558691),f=o(f,u,s,c,t[h+10],9,38016083),c=o(c,f,u,s,t[h+15],14,-660478335),s=o(s,c,f,u,t[h+4],20,-405537848),u=o(u,s,c,f,t[h+9],5,568446438),f=o(f,u,s,c,t[h+14],9,-1019803690),c=o(c,f,u,s,t[h+3],14,-187363961),s=o(s,c,f,u,t[h+8],20,1163531501),u=o(u,s,c,f,t[h+13],5,-1444681467),f=o(f,u,s,c,t[h+2],9,-51403784),c=o(c,f,u,s,t[h+7],14,1735328473),s=o(s,c,f,u,t[h+12],20,-1926607734),u=i(u,s,c,f,t[h+5],4,-378558),f=i(f,u,s,c,t[h+8],11,-2022574463),c=i(c,f,u,s,t[h+11],16,1839030562),s=i(s,c,f,u,t[h+14],23,-35309556),u=i(u,s,c,f,t[h+1],4,-1530992060),f=i(f,u,s,c,t[h+4],11,1272893353),c=i(c,f,u,s,t[h+7],16,-155497632),s=i(s,c,f,u,t[h+10],23,-1094730640),u=i(u,s,c,f,t[h+13],4,681279174),f=i(f,u,s,c,t[h+0],11,-358537222),c=i(c,f,u,s,t[h+3],16,-722521979),s=i(s,c,f,u,t[h+6],23,76029189),u=i(u,s,c,f,t[h+9],4,-640364487),f=i(f,u,s,c,t[h+12],11,-421815835),c=i(c,f,u,s,t[h+15],16,530742520),s=i(s,c,f,u,t[h+2],23,-995338651),u=a(u,s,c,f,t[h+0],6,-198630844),f=a(f,u,s,c,t[h+7],10,1126891415),c=a(c,f,u,s,t[h+14],15,-1416354905),s=a(s,c,f,u,t[h+5],21,-57434055),u=a(u,s,c,f,t[h+12],6,1700485571),f=a(f,u,s,c,t[h+3],10,-1894986606),c=a(c,f,u,s,t[h+10],15,-1051523),s=a(s,c,f,u,t[h+1],21,-2054922799),u=a(u,s,c,f,t[h+8],6,1873313359),f=a(f,u,s,c,t[h+15],10,-30611744),c=a(c,f,u,s,t[h+6],15,-1560198380),s=a(s,c,f,u,t[h+13],21,1309151649),u=a(u,s,c,f,t[h+4],6,-145523070),f=a(f,u,s,c,t[h+11],10,-1120210379),c=a(c,f,u,s,t[h+2],15,718787259),s=a(s,c,f,u,t[h+9],21,-343485551),u=y(u,v),s=y(s,l),c=y(c,p),f=y(f,d)}return[u,s,c,f]}(o(t,{ibits:8,obits:32,obigendian:!1}),8*t.length),{ibits:32,ibigendian:!1})}(p):function(t){return i(function(t,e){function n(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function r(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var o=Array(80),i=1732584193,a=-271733879,u=-1732584194,s=271733878,c=-1009589776,f=0;f<t.length;f+=16){for(var h=i,v=a,l=u,p=s,d=c,g=0;g<80;g++){o[g]=g<16?t[f+g]:b(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var m=y(y(b(i,5),n(g,a,u,s)),y(y(c,o[g]),r(g)));c=s,s=u,u=b(a,30),a=i,i=m}i=y(i,h),a=y(a,v),u=y(u,l),s=y(s,p),c=y(c,d)}return[i,a,u,s,c]}(o(t,{ibits:8,obits:32,obigendian:!0}),8*t.length),{ibits:32,ibigendian:!0})}(p);for(e=0;e<16;e++)this[e]=g.charCodeAt(e)}return this[6]&=15,this[6]|=t<<4,this[8]&=63,this[8]|=128,this},B.prototype.format=function(e){var r,o;return"z85"===e?r=function(t,e){if(e%4!=0)throw new Error("z85_encode: invalid input length (multiple of 4 expected)");for(var r="",o=0,i=0;o<e;)if(i=256*i+t[o++],o%4==0){for(var a=52200625;a>=1;){var u=Math.floor(i/a)%85;r+=n[u],a/=85}i=0}return r}(this,16):"b16"===e?(o=Array(32),t(this,0,15,!0,o,0),r=o.join("")):void 0!==e&&"std"!==e||(o=new Array(36),t(this,0,3,!1,o,0),o[8]="-",t(this,4,5,!1,o,9),o[13]="-",t(this,6,7,!1,o,14),o[18]="-",t(this,8,9,!1,o,19),o[23]="-",t(this,10,15,!1,o,24),r=o.join("")),r},B.prototype.toString=function(t){return this.format(t)},B.prototype.parse=function(t,n){if("string"!=typeof t)throw new Error("UUID: parse: invalid argument (type string expected)");if("z85"===n)!function(t,e){var n=t.length;if(n%5!=0)throw new Error("z85_decode: invalid input length (multiple of 5 expected)");void 0===e&&(e=new Array(4*n/5));for(var o=0,i=0,a=0;o<n;){var u=t.charCodeAt(o++)-32;if(u<0||u>=r.length)break;if(a=85*a+r[u],o%5==0){for(var s=16777216;s>=1;)e[i++]=Math.trunc(a/s%256),s/=256;a=0}}}(t,this);else if("b16"===n)e(t,0,35,this,0);else if(void 0===n||"std"===n){var o={nil:"00000000-0000-0000-0000-000000000000","ns:DNS":"6ba7b810-9dad-11d1-80b4-00c04fd430c8","ns:URL":"6ba7b811-9dad-11d1-80b4-00c04fd430c8","ns:OID":"6ba7b812-9dad-11d1-80b4-00c04fd430c8","ns:X500":"6ba7b814-9dad-11d1-80b4-00c04fd430c8"};if(void 0!==o[t])t=o[t];else if(!t.match(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/))throw new Error('UUID: parse: invalid string representation (expected "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")');e(t,0,7,this,0),e(t,9,12,this,4),e(t,14,17,this,6),e(t,19,22,this,8),e(t,24,35,this,10)}return this},B.prototype.export=function(){for(var t=Array(16),e=0;e<16;e++)t[e]=this[e];return t},B.prototype.import=function(t){if(!("object"==typeof t&&t instanceof Array))throw new Error("UUID: import: invalid argument (type Array expected)");if(16!==t.length)throw new Error("UUID: import: invalid argument (Array of length 16 expected)");for(var e=0;e<16;e++){if("number"!=typeof t[e])throw new Error("UUID: import: invalid array element #"+e+" (type Number expected)");if(!isFinite(t[e])||Math.floor(t[e])!==t[e])throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value expected)");if(!(t[e]>=0&&t[e]<=255))throw new Error("UUID: import: invalid array element #"+e+" (Number with integer value in range 0...255 expected)");this[e]=t[e]}return this},B.prototype.compare=function(t){if("object"!=typeof t)throw new Error("UUID: compare: invalid argument (type UUID expected)");if(!(t instanceof B))throw new Error("UUID: compare: invalid argument (type UUID expected)");for(var e=0;e<16;e++){if(this[e]<t[e])return-1;if(this[e]>t[e])return 1}return 0},B.prototype.fold=function(t){if(void 0===t)throw new Error("UUID: fold: invalid argument (number of fold operations expected)");if(t<1||t>4)throw new Error("UUID: fold: invalid argument (1-4 fold operations expected)");for(var e=16/Math.pow(2,t),n=new Array(e),r=0;r<e;r++){for(var o=0,i=0;r+i<16;i+=e)o^=this[r+i];n[r]=o}return n},B.PCG=g,B}(),t.exports.default=t.exports});function v(t,e,n){return e&&n?new h(t,e,n):new h(t)}!function(t){t[t.V1=1]="V1",t[t.V3=3]="V3",t[t.V4=4]="V4",t[t.V5=5]="V5"}(c||(c={})),function(t){t.Standard="std",t.Base16="b16",t.ZeroMQBase85="z85"}(f||(f={}));var l=Object.freeze({get Version(){return c},get Format(){return f},namespace:function(t,e,n,r){return void 0===n&&(n=c.V5),void 0===r&&(r=f.Standard),v(n,t,e).format(r)},generate:function(t,e){return void 0===t&&(t=c.V4),void 0===e&&(e=f.Standard),v(t).format(e)}}),p=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])};function d(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function y(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})}function b(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}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,u])}}}var g,m=function(){function t(){this.eventListeners={}}return t.prototype.add=function(t,e){this.eventListeners[t]?-1===this.eventListeners[t].indexOf(e)&&this.eventListeners[t].push(e):this.eventListeners[t]=[e]},t.prototype.remove=function(t,e){var n=(this.eventListeners[t]||[]).indexOf(e);n>-1&&(this.eventListeners[t].splice(n,1),0===this.eventListeners[t].length&&delete this.eventListeners[t])},t.prototype.emit=function(t){return y(this,void 0,void 0,function(){var e,n,r,o,i,a;return b(this,function(u){switch(u.label){case 0:if(!(e=this.eventListeners[t.getEventName()]||[]))return[3,2];for(n=[],r=0,o=e;r<o.length;r++){i=o[r];try{a=Promise.resolve(i(t)).catch(function(t){console.error(t)}),n.push(a)}catch(t){console.error(t)}}return[4,Promise.all(n)];case 1:u.sent(),u.label=2;case 2:return[2]}})})},t}();!function(t){t.Self="self",t.Broadcast="broadcast"}(g||(g={}));var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e}(function(){function t(){this.eventListenerManager=new m,this.eventLocks={},this.subscribedEventBroadcasts=[]}return t.prototype.hasEventLock=function(t){return!!this.eventLocks[t.getEventId()]},t.prototype.acquireEventLock=function(t){return this.eventLocks[t.getEventId()]=!0,this},t.prototype.releaseEventLock=function(t){return delete this.eventLocks[t.getEventId()],this},t.prototype.resolveEventBroadcast=function(t){var e=null;"function"==typeof t.getEventBroadcast?e=t.getEventBroadcast():"function"==typeof t&&(e=t);return e},t.prototype.createEventBroadcast=function(){var t=this;return function(e){return t.emit(e)}},t.prototype.getEventBroadcast=function(){return void 0===this.eventBroadcast&&(this.eventBroadcast=this.createEventBroadcast()),this.eventBroadcast},t.prototype.on=function(t,e){return this.addEventListener(t,e)},t.prototype.off=function(t,e){return this.removeEventListener(t,e)},t.prototype.once=function(t,e){for(var n=this,r=Array.isArray(t)?t:[t],o=function(t){i.addEventListener(t,function r(o){return y(n,void 0,void 0,function(){return b(this,function(n){switch(n.label){case 0:return this.removeEventListener(t,r),[4,e(o)];case 1:return n.sent(),[2]}})})})},i=this,a=0,u=r;a<u.length;a++){o(u[a])}return this},t.prototype.addEventListener=function(t,e){for(var n=0,r=Array.isArray(t)?t:[t];n<r.length;n++){var o=r[n];this.eventListenerManager.add(o,e)}return this},t.prototype.removeEventListener=function(t,e){for(var n=0,r=Array.isArray(t)?t:[t];n<r.length;n++){var o=r[n];this.eventListenerManager.remove(o,e)}return this},t.prototype.addEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);return null!==e&&-1===this.subscribedEventBroadcasts.indexOf(e)&&this.subscribedEventBroadcasts.push(e),this},t.prototype.removeEventBroadcast=function(t){var e=this.resolveEventBroadcast(t);if(null!==e){var n=this.subscribedEventBroadcasts.indexOf(e);n>-1&&this.subscribedEventBroadcasts.slice(n,1)}return this},t.prototype.emit=function(t){return y(this,void 0,void 0,function(){var e,n;return b(this,function(r){switch(r.label){case 0:if(this.hasEventLock(t))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.acquireEventLock(t),e=[this.eventListenerManager.emit(t)],t.getEventScope()===g.Broadcast&&this.subscribedEventBroadcasts.forEach(function(n){try{var r=Promise.resolve(n(t)).catch(function(t){console.error(t)});e.push(r)}catch(t){console.error(t)}}),[4,Promise.all(e)];case 2:return r.sent(),this.releaseEventLock(t),[3,4];case 3:throw n=r.sent(),this.releaseEventLock(t),n;case 4:return[2]}})})},t}()),E=(function(t){function e(e,n,r,o){void 0===o&&(o=g.Broadcast);var i=t.call(this,e,n,o)||this;return i.eventData=r,i}d(e,t),e.prototype.getEventData=function(){return this.eventData}}(function(){function t(t,e,n){void 0===n&&(n=g.Broadcast),this.eventId=l.generate(),this.eventName=t,this.sender=e,this.eventScope=n}return t.prototype.getEventId=function(){return this.eventId},t.prototype.getEventScope=function(){return this.eventScope},t.prototype.getEventName=function(){return this.eventName},t.prototype.getSender=function(){return this.sender},t.prototype.rename=function(t){var e=Object.create(this);return e.eventName=t,e},t.prototype.prefix=function(t){var e=this.getEventName();return t.length>0&&(e=t+"."+e),this.rename(e)},t.prototype.suffix=function(t){var e=this.getEventName();return t.length>0&&(e=e+"."+t),this.rename(e)},t.prototype.toString=function(){return this.getEventName()},t}()),new w);function x(t){return e(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return[4,E.emit(t)];case 1:return e.sent(),[2]}})})}function B(t,e){return E.on(t,e)}function L(t,e){return E.off(t,e)}function k(t,e){return E.once(t,e)}function U(t,e){return E.addEventListener(t,e)}function A(t,e){return E.removeEventListener(t,e)}function O(t){return E.addEventBroadcast(t)}function S(t){return E.removeEventBroadcast(t)}function j(){return E.getEventBroadcast()}var M=Object.freeze({emit:x,on:B,off:L,once:k,addEventListener:U,removeEventListener:A,addEventBroadcast:O,removeEventBroadcast:S,getEventBroadcast:j});var I=[];function D(t){t.addEventBroadcast(M),O(t),I.forEach(function(e){t.capture(e.callback,e.filter)})}function _(){return a.isBrowser()?s.get(window,"vl.widget.runtime.instances",[]):[]}a.isBrowser()&&(_().forEach(D),window.addEventListener("vl.widget.runtime",function(t){D(t.detail)}));var P=function(){function t(){}return t.prototype.list=function(t){var e=[];return _().forEach(function(n){e=e.concat(n.getWidgetManager().list(t))}),e},t.prototype.each=function(t){return new Promise(function(e,n){var r=[];_().forEach(function(e){r.push(e.getWidgetManager().each(t))}),Promise.all(r).then(function(t){return[].concat.apply([],t)}).then(e).catch(n)})},t.prototype.has=function(t){return null!==this.get(t)},t.prototype.get=function(t){for(var e=null,n=_(),r=0;r<n.length&&null===e;r+=1)e=n[r].getWidgetManager().get(t);return e},t.prototype.mount=function(t){return e(this,void 0,void 0,function(){var r=this;return n(this,function(o){return[2,this.each(function(o){return e(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return t&&!t(o)?[3,2]:[4,o.mount()];case 1:e.sent(),e.label=2;case 2:return[2,o]}})})})]})})},t.prototype.unmount=function(t){return e(this,void 0,void 0,function(){var r=this;return n(this,function(o){return[2,this.each(function(o){return e(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return t&&!t(o)?[3,2]:[4,o.unmount()];case 1:e.sent(),e.label=2;case 2:return[2,o]}})})})]})})},t.prototype.remount=function(t){return e(this,void 0,void 0,function(){var r=this;return n(this,function(o){return[2,this.each(function(o){return e(r,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return t&&!t(o)?[3,2]:[4,o.remount()];case 1:e.sent(),e.label=2;case 2:return[2,o]}})})})]})})},t}(),N=new P;t.DefaultWidgetManagerFacade=P,t.addEventBroadcast=O,t.addEventListener=U,t.capture=function(t,e){I.push({callback:t,filter:e}),_().forEach(function(n){n.capture(t,e)})},t.emit=x,t.getEventBroadcast=j,t.getVersion=function(){return"1.3.3"},t.getWidgetManager=function(){return N},t.off=L,t.on=B,t.once=k,t.removeEventBroadcast=S,t.removeEventListener=A,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "@govflanders/vl-widget-client",
"version": "1.3.2",
"version": "1.3.3",
"license": "MIT",

@@ -27,10 +27,10 @@ "contributors": [

"@govflanders/vl-common-types": "^0.0.3",
"@govflanders/vl-widget-common-types": "^1.3.2",
"@govflanders/vl-widget-core": "^1.3.2",
"@govflanders/vl-widget-event": "^1.3.2",
"@govflanders/vl-widget-module": "^1.3.2",
"@govflanders/vl-widget-plugin": "^1.3.2",
"@govflanders/vl-widget-runtime": "^1.3.2",
"@govflanders/vl-widget-utility": "^1.3.2"
"@govflanders/vl-widget-common-types": "^1.3.3",
"@govflanders/vl-widget-core": "^1.3.3",
"@govflanders/vl-widget-event": "^1.3.3",
"@govflanders/vl-widget-module": "^1.3.3",
"@govflanders/vl-widget-plugin": "^1.3.3",
"@govflanders/vl-widget-runtime": "^1.3.3",
"@govflanders/vl-widget-utility": "^1.3.3"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc