1 line
8.0 KiB
JavaScript
1 line
8.0 KiB
JavaScript
|
"use strict";(self.webpackChunk_npwd_nui=self.webpackChunk_npwd_nui||[]).push([[3916],{3916:function(r,n,t){var e;t.r(n),t.d(n,{NIL:function(){return V},parse:function(){return y},stringify:function(){return l},v1:function(){return h},v3:function(){return R},v4:function(){return k},v5:function(){return M},validate:function(){return i},version:function(){return S}});var o=new Uint8Array(16);function a(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}for(var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,i=function(r){return"string"==typeof r&&u.test(r)},c=[],f=0;f<256;++f)c.push((f+256).toString(16).substr(1));var s,v,l=function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(c[r[n+0]]+c[r[n+1]]+c[r[n+2]]+c[r[n+3]]+"-"+c[r[n+4]]+c[r[n+5]]+"-"+c[r[n+6]]+c[r[n+7]]+"-"+c[r[n+8]]+c[r[n+9]]+"-"+c[r[n+10]]+c[r[n+11]]+c[r[n+12]]+c[r[n+13]]+c[r[n+14]]+c[r[n+15]]).toLowerCase();if(!i(t))throw TypeError("Stringified UUID is invalid");return t},p=0,d=0,h=function(r,n,t){var e=n&&t||0,o=n||new Array(16),u=(r=r||{}).node||s,i=void 0!==r.clockseq?r.clockseq:v;if(null==u||null==i){var c=r.random||(r.rng||a)();null==u&&(u=s=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==i&&(i=v=16383&(c[6]<<8|c[7]))}var f=void 0!==r.msecs?r.msecs:Date.now(),h=void 0!==r.nsecs?r.nsecs:d+1,y=f-p+(h-d)/1e4;if(y<0&&void 0===r.clockseq&&(i=i+1&16383),(y<0||f>p)&&void 0===r.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=f,d=h,v=i;var g=(1e4*(268435455&(f+=122192928e5))+h)%4294967296;o[e++]=g>>>24&255,o[e++]=g>>>16&255,o[e++]=g>>>8&255,o[e++]=255&g;var w=f/4294967296*1e4&268435455;o[e++]=w>>>8&255,o[e++]=255&w,o[e++]=w>>>24&15|16,o[e++]=w>>>16&255,o[e++]=i>>>8|128,o[e++]=255&i;for(var m=0;m<6;++m)o[e+m]=u[m];return n||l(o)},y=function(r){if(!i(r))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(r.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=255&n,t[4]=(n=parseInt(r.slice(9,13),16))>>>8,t[5]=255&n,t[6]=(n=parseInt(r.slice(14,18),16))>>>8,t[7]=255&n,t[8]=(n=parseInt(r.slice(19,23),16))>>>8,t[9]=255&n,t[10]=(n=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=255&n,t};function g(r,n,t){function e(r,e,o,a){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var n=[],t=0;t<r.length;++t)n.push(r.charCodeAt(t));return n}(r)),"string"==typeof e&&(e=y(e)),16!==e.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+r.length);if(u.set(e),u.set(r,e.length),(u=t(u))[6]=15&u[6]|n,u[8]=63&u[8]|128,o){a=a||0;for(var i=0;i<16;++i)o[a+i]=u[i];return o}return l(u)}try{e.name=r}catch(r){}return e.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",e.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",e}function w(r){return 14+(r+64>>>9<<4)+1}function m(r,n){var t=(65535&r)+(65535&n);return(r>>16)+(n>>16)+(t>>16)<<16|65535&t}function b(r,n,t,e,o,a){return m((u=m(m(n,r),m(e,a)))<<(i=o)|u>>>32-i,t);var u,i}function A(r,n,t,e,o,a,u){return b(n&t|~n&e,r,n,o,a,u)}function U(r,n,t,e,o,a,u){return b(n&e|t&~e,r,n,o,a,u)}function I(r,n,t,e,o,a,u){return b(n^t^e,r,n,o,a,u)}function C(r,n,t,e,o,a,u){return b(t^(n|~e),r,n,o,a,u)}var R=g("v3",48,(function(r){if("string"==typeof r){var n=unescape(encodeURIComponent(r));r=new Uint8Array(n.length);for(var t=0;t<n.length;++t)r[t]=n.charCodeAt(t)}return function(r){for(var n=[],t=32*r.length,e="0123456789abcdef",o=0;o<t;o+=8){var a=r[o>>5]>>>o%32&255,u=parseInt(e.charAt(a>>>4&15)+e.charAt(15&a),16);n.push(u)}return n}(function(r,n){r[n>>5]|=128<<n%32,r[w(n)-1]=n;for(var t=1732584193,e=-271733879,o=-1732584194,a=271733878,u=0;u<r.length
|