Files
prestashop/modules/psshipping/views/templates/dist/assets/index-BcVH2fIx.js
2026-04-09 18:31:51 +02:00

1491 lines
76 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{aG as Ti}from"./globals-BVeJWRKG.js";var E={},U={};for(var Li=[],w=0;w<64;)Li[w]=0|4294967296*Math.sin(++w%Math.PI);function Fi(r){var n,i,t,f=[n=1732584193,i=4023233417,~n,~i],u=[],o=unescape(encodeURI(r))+"€",l=o.length;for(r=--l/4+2|15,u[--r]=8*l;~l;)u[l>>2]|=o.charCodeAt(l)<<8*l--;for(w=o=0;w<r;w+=16){for(l=f;o<64;l=[t=l[3],n+((t=l[0]+[n&i|~n&t,t&n|~t&i,n^i^t,i^(n|~t)][l=o>>4]+Li[o]+~~u[w|15&[o,5*o+1,3*o+5,7*o][l]])<<(l=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*l+o++%4])|t>>>-l),n,i])n=0|l[1],i=l[2];for(o=4;o;)f[--o]+=l[o]}for(r="";o<32;)r+=(f[o>>3]>>4*(1^o++)&15).toString(16);return r}const Hi=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),Wi=Ti(Hi);var H={exports:{}},Me;function ge(){return Me||(Me=1,function(r,n){(function(i,t){r.exports=function(f,u,o,l,d){for(u=u.split?u.split("."):u,l=0;l<u.length;l++)f=f?f[u[l]]:d;return f===d?o:f}})()}(H)),H.exports}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var W,Ne;function mi(){if(Ne)return W;Ne=1;var r=Number.POSITIVE_INFINITY;return W=r,W}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var D,Ue;function Di(){return Ue||(Ue=1,D=Number),D}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var G,Ie;function Gi(){if(Ie)return G;Ie=1;var r=Di();return G=r,G}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var j,Ee;function Ri(){if(Ee)return j;Ee=1;var r=Gi(),n=r.NEGATIVE_INFINITY;return j=n,j}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var C,Pe;function gi(){if(Pe)return C;Pe=1;var r=1023;return C=r,C}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var X,Te;function ji(){if(Te)return X;Te=1;var r=1023;return X=r,X}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var B,Fe;function Ci(){if(Fe)return B;Fe=1;var r=-1023;return B=r,B}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var x,He;function Xi(){if(He)return x;He=1;var r=-1074;return x=r,x}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var V,We;function Bi(){if(We)return V;We=1;function r(n){return n!==n}return V=r,V}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var J,De;function Si(){if(De)return J;De=1;var r=Bi();return J=r,J}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var z,Ge;function xi(){if(Ge)return z;Ge=1;var r=mi(),n=Ri();function i(t){return t===r||t===n}return z=i,z}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var K,je;function Oi(){if(je)return K;je=1;var r=xi();return K=r,K}/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Q,Ce;function Vi(){if(Ce)return Q;Ce=1;var r=2147483648;return Q=r,Q}/**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Y,Xe;function Ji(){if(Xe)return Y;Xe=1;var r=2147483647;return Y=r,Y}/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Z,Be;function zi(){if(Be)return Z;Be=1;var r=typeof Object.defineProperty=="function"?Object.defineProperty:null;return Z=r,Z}/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var k,xe;function Ki(){if(xe)return k;xe=1;var r=zi();function n(){try{return r({},"x",{}),!0}catch{return!1}}return k=n,k}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var rr,Ve;function Qi(){if(Ve)return rr;Ve=1;var r=Object.defineProperty;return rr=r,rr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var er,Je;function Yi(){if(Je)return er;Je=1;var r=Object.prototype,n=r.toString,i=r.__defineGetter__,t=r.__defineSetter__,f=r.__lookupGetter__,u=r.__lookupSetter__;function o(l,d,c){var p,_,m,A;if(typeof l!="object"||l===null||n.call(l)==="[object Array]")throw new TypeError("invalid argument. First argument must be an object. Value: `"+l+"`.");if(typeof c!="object"||c===null||n.call(c)==="[object Array]")throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+c+"`.");if(_="value"in c,_&&(f.call(l,d)||u.call(l,d)?(p=l.__proto__,l.__proto__=r,delete l[d],l[d]=c.value,l.__proto__=p):l[d]=c.value),m="get"in c,A="set"in c,_&&(m||A))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return m&&i&&i.call(l,d,c.get),A&&t&&t.call(l,d,c.set),l}return er=o,er}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var nr,ze;function Zi(){if(ze)return nr;ze=1;var r=Ki(),n=Qi(),i=Yi(),t;return r()?t=n:t=i,nr=t,nr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ir,Ke;function ki(){if(Ke)return ir;Ke=1;var r=Zi();function n(i,t,f){r(i,t,{configurable:!1,enumerable:!1,writable:!1,value:f})}return ir=n,ir}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ar,Qe;function wi(){if(Qe)return ar;Qe=1;var r=ki();return ar=r,ar}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var tr,Ye;function ra(){if(Ye)return tr;Ye=1;function r(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}return tr=r,tr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ur,Ze;function ea(){if(Ze)return ur;Ze=1;var r=ra();return ur=r,ur}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var fr,ke;function na(){if(ke)return fr;ke=1;var r=ea(),n=r();function i(){return n&&typeof Symbol.toStringTag=="symbol"}return fr=i,fr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var or,rn;function ia(){if(rn)return or;rn=1;var r=na();return or=r,or}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var lr,en;function Mi(){if(en)return lr;en=1;var r=Object.prototype.toString;return lr=r,lr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var vr,nn;function aa(){if(nn)return vr;nn=1;var r=Mi();function n(i){return r.call(i)}return vr=n,vr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var sr,an;function ta(){if(an)return sr;an=1;var r=Object.prototype.hasOwnProperty;function n(i,t){return i==null?!1:r.call(i,t)}return sr=n,sr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var cr,tn;function ua(){if(tn)return cr;tn=1;var r=ta();return cr=r,cr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var dr,un;function fa(){if(un)return dr;un=1;var r=typeof Symbol=="function"?Symbol.toStringTag:"";return dr=r,dr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var hr,fn;function oa(){if(fn)return hr;fn=1;var r=ua(),n=fa(),i=Mi();function t(f){var u,o,l;if(f==null)return i.call(f);o=f[n],u=r(f,n);try{f[n]=void 0}catch{return i.call(f)}return l=i.call(f),u?f[n]=o:delete f[n],l}return hr=t,hr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yr,on;function F(){if(on)return yr;on=1;var r=ia(),n=aa(),i=oa(),t;return r()?t=i:t=n,yr=t,yr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var br,ln;function la(){if(ln)return br;ln=1;var r=F(),n=typeof Uint32Array=="function";function i(t){return n&&t instanceof Uint32Array||r(t)==="[object Uint32Array]"}return br=i,br}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $r,vn;function va(){if(vn)return $r;vn=1;var r=la();return $r=r,$r}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pr,sn;function sa(){if(sn)return pr;sn=1;var r=4294967295;return pr=r,pr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qr,cn;function ca(){if(cn)return qr;cn=1;var r=typeof Uint32Array=="function"?Uint32Array:null;return qr=r,qr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _r,dn;function da(){if(dn)return _r;dn=1;var r=va(),n=sa(),i=ca();function t(){var f,u;if(typeof i!="function")return!1;try{u=[1,3.14,-3.14,n+1,n+2],u=new i(u),f=r(u)&&u[0]===1&&u[1]===3&&u[2]===n-2&&u[3]===0&&u[4]===1}catch{f=!1}return f}return _r=t,_r}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ar,hn;function ha(){if(hn)return Ar;hn=1;var r=da();return Ar=r,Ar}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Lr,yn;function ya(){if(yn)return Lr;yn=1;var r=typeof Uint32Array=="function"?Uint32Array:void 0;return Lr=r,Lr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var mr,bn;function ba(){if(bn)return mr;bn=1;function r(){throw new Error("not implemented")}return mr=r,mr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Rr,$n;function Se(){if($n)return Rr;$n=1;var r=ha(),n=ya(),i=ba(),t;return r()?t=n:t=i,Rr=t,Rr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var gr,pn;function $a(){if(pn)return gr;pn=1;var r=F(),n=typeof Float64Array=="function";function i(t){return n&&t instanceof Float64Array||r(t)==="[object Float64Array]"}return gr=i,gr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Sr,qn;function pa(){if(qn)return Sr;qn=1;var r=$a();return Sr=r,Sr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Or,_n;function qa(){if(_n)return Or;_n=1;var r=typeof Float64Array=="function"?Float64Array:null;return Or=r,Or}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var wr,An;function _a(){if(An)return wr;An=1;var r=pa(),n=qa();function i(){var t,f;if(typeof n!="function")return!1;try{f=new n([1,3.14,-3.14,NaN]),t=r(f)&&f[0]===1&&f[1]===3.14&&f[2]===-3.14&&f[3]!==f[3]}catch{t=!1}return t}return wr=i,wr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Mr,Ln;function Aa(){if(Ln)return Mr;Ln=1;var r=_a();return Mr=r,Mr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Nr,mn;function La(){if(mn)return Nr;mn=1;var r=typeof Float64Array=="function"?Float64Array:void 0;return Nr=r,Nr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ur,Rn;function ma(){if(Rn)return Ur;Rn=1;function r(){throw new Error("not implemented")}return Ur=r,Ur}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ir,gn;function Oe(){if(gn)return Ir;gn=1;var r=Aa(),n=La(),i=ma(),t;return r()?t=n:t=i,Ir=t,Ir}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Er,Sn;function Ra(){if(Sn)return Er;Sn=1;var r=F(),n=typeof Uint8Array=="function";function i(t){return n&&t instanceof Uint8Array||r(t)==="[object Uint8Array]"}return Er=i,Er}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Pr,On;function ga(){if(On)return Pr;On=1;var r=Ra();return Pr=r,Pr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Tr,wn;function Sa(){if(wn)return Tr;wn=1;var r=255;return Tr=r,Tr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Fr,Mn;function Oa(){if(Mn)return Fr;Mn=1;var r=typeof Uint8Array=="function"?Uint8Array:null;return Fr=r,Fr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Hr,Nn;function wa(){if(Nn)return Hr;Nn=1;var r=ga(),n=Sa(),i=Oa();function t(){var f,u;if(typeof i!="function")return!1;try{u=[1,3.14,-3.14,n+1,n+2],u=new i(u),f=r(u)&&u[0]===1&&u[1]===3&&u[2]===n-2&&u[3]===0&&u[4]===1}catch{f=!1}return f}return Hr=t,Hr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Wr,Un;function Ma(){if(Un)return Wr;Un=1;var r=wa();return Wr=r,Wr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Dr,In;function Na(){if(In)return Dr;In=1;var r=typeof Uint8Array=="function"?Uint8Array:void 0;return Dr=r,Dr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Gr,En;function Ua(){if(En)return Gr;En=1;function r(){throw new Error("not implemented")}return Gr=r,Gr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var jr,Pn;function Ia(){if(Pn)return jr;Pn=1;var r=Ma(),n=Na(),i=Ua(),t;return r()?t=n:t=i,jr=t,jr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Cr,Tn;function Ea(){if(Tn)return Cr;Tn=1;var r=F(),n=typeof Uint16Array=="function";function i(t){return n&&t instanceof Uint16Array||r(t)==="[object Uint16Array]"}return Cr=i,Cr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Xr,Fn;function Pa(){if(Fn)return Xr;Fn=1;var r=Ea();return Xr=r,Xr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Br,Hn;function Ta(){if(Hn)return Br;Hn=1;var r=65535;return Br=r,Br}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var xr,Wn;function Fa(){if(Wn)return xr;Wn=1;var r=typeof Uint16Array=="function"?Uint16Array:null;return xr=r,xr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Vr,Dn;function Ha(){if(Dn)return Vr;Dn=1;var r=Pa(),n=Ta(),i=Fa();function t(){var f,u;if(typeof i!="function")return!1;try{u=[1,3.14,-3.14,n+1,n+2],u=new i(u),f=r(u)&&u[0]===1&&u[1]===3&&u[2]===n-2&&u[3]===0&&u[4]===1}catch{f=!1}return f}return Vr=t,Vr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Jr,Gn;function Wa(){if(Gn)return Jr;Gn=1;var r=Ha();return Jr=r,Jr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var zr,jn;function Da(){if(jn)return zr;jn=1;var r=typeof Uint16Array=="function"?Uint16Array:void 0;return zr=r,zr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Kr,Cn;function Ga(){if(Cn)return Kr;Cn=1;function r(){throw new Error("not implemented")}return Kr=r,Kr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Qr,Xn;function ja(){if(Xn)return Qr;Xn=1;var r=Wa(),n=Da(),i=Ga(),t;return r()?t=n:t=i,Qr=t,Qr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Yr,Bn;function Ca(){if(Bn)return Yr;Bn=1;var r=Ia(),n=ja(),i={uint16:n,uint8:r};return Yr=i,Yr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Zr,xn;function Xa(){if(xn)return Zr;xn=1;var r=Ca(),n;function i(){var t,f;return t=new r.uint16(1),t[0]=4660,f=new r.uint8(t.buffer),f[0]===52}return n=i(),Zr=n,Zr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var kr,Vn;function we(){if(Vn)return kr;Vn=1;var r=Xa();return kr=r,kr}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var re,Jn;function Ba(){if(Jn)return re;Jn=1;var r=we(),n,i,t;return r===!0?(i=1,t=0):(i=0,t=1),n={HIGH:i,LOW:t},re=n,re}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ee,zn;function Ni(){if(zn)return ee;zn=1;var r=Se(),n=Oe(),i=Ba(),t=new n(1),f=new r(t.buffer),u=i.HIGH,o=i.LOW;function l(d,c,p,_){return t[0]=d,c[_]=f[u],c[_+p]=f[o],c}return ee=l,ee}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ne,Kn;function xa(){if(Kn)return ne;Kn=1;var r=Ni();function n(i){return r(i,[0,0],1,0)}return ne=n,ne}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ie,Qn;function Ui(){if(Qn)return ie;Qn=1;var r=wi(),n=xa(),i=Ni();return r(n,"assign",i),ie=n,ie}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ae,Yn;function Va(){if(Yn)return ae;Yn=1;var r=we(),n;return r===!0?n=1:n=0,ae=n,ae}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var te,Zn;function Ja(){if(Zn)return te;Zn=1;var r=Se(),n=Oe(),i=Va(),t=new n(1),f=new r(t.buffer);function u(o){return t[0]=o,f[i]}return te=u,te}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ue,kn;function Ii(){if(kn)return ue;kn=1;var r=Ja();return ue=r,ue}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var fe,ri;function za(){if(ri)return fe;ri=1;var r=we(),n,i,t;return r===!0?(i=1,t=0):(i=0,t=1),n={HIGH:i,LOW:t},fe=n,fe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var oe,ei;function Ka(){if(ei)return oe;ei=1;var r=Se(),n=Oe(),i=za(),t=new n(1),f=new r(t.buffer),u=i.HIGH,o=i.LOW;function l(d,c){return f[u]=d,f[o]=c,t[0]}return oe=l,oe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var le,ni;function Ei(){if(ni)return le;ni=1;var r=Ka();return le=r,le}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ve,ii;function Qa(){if(ii)return ve;ii=1;var r=Vi(),n=Ji(),i=Ui(),t=Ii(),f=Ei(),u=[0,0];function o(l,d){var c,p;return i.assign(l,u,1,0),c=u[0],c&=n,p=t(d),p&=r,c|=p,f(c,u[1])}return ve=o,ve}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var se,ai;function Ya(){if(ai)return se;ai=1;var r=Qa();return se=r,se}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ce,ti;function Za(){if(ti)return ce;ti=1;var r=22250738585072014e-324;return ce=r,ce}/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var de,ui;function ka(){if(ui)return de;ui=1;function r(n){return Math.abs(n)}return de=r,de}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var he,fi;function rt(){if(fi)return he;fi=1;var r=ka();return he=r,he}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ye,oi;function Pi(){if(oi)return ye;oi=1;var r=Za(),n=Oi(),i=Si(),t=rt(),f=4503599627370496;function u(o,l,d,c){return i(o)||n(o)?(l[c]=o,l[c+d]=0,l):o!==0&&t(o)<r?(l[c]=o*f,l[c+d]=-52,l):(l[c]=o,l[c+d]=0,l)}return ye=u,ye}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var be,li;function et(){if(li)return be;li=1;var r=Pi();function n(i){return r(i,[0,0],1,0)}return be=n,be}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var $e,vi;function nt(){if(vi)return $e;vi=1;var r=wi(),n=et(),i=Pi();return r(n,"assign",i),$e=n,$e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var pe,si;function it(){if(si)return pe;si=1;var r=2146435072;return pe=r,pe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var qe,ci;function at(){if(ci)return qe;ci=1;var r=Ii(),n=it(),i=gi();function t(f){var u=r(f);return u=(u&n)>>>20,u-i|0}return qe=t,qe}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var _e,di;function tt(){if(di)return _e;di=1;var r=at();return _e=r,_e}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Ae,hi;function ut(){if(hi)return Ae;hi=1;var r=mi(),n=Ri(),i=gi(),t=ji(),f=Ci(),u=Xi(),o=Si(),l=Oi(),d=Ya(),c=nt(),p=tt(),_=Ui(),m=Ei(),A=2220446049250313e-31,M=2148532223,h=[0,0],y=[0,0];function $(e,a){var v,s;return e===0||o(e)||l(e)?e:(c(h,e),e=h[0],a+=h[1],a+=p(e),a<u?d(0,e):a>t?e<0?n:r:(a<=f?(a+=52,s=A):s=1,_(y,e),v=y[0],v&=M,v|=a+i<<20,s*m(v,y[1])))}return Ae=$,Ae}/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Le,yi;function ft(){if(yi)return Le;yi=1;var r=ut();return Le=r,Le}var me={},bi;function ot(){if(bi)return me;bi=1;function r(n,i,t){i.split&&(i=i.split("."));for(var f=0,u=i.length,o=n,l,d;f<u&&(d=i[f++],!(d==="__proto__"||d==="constructor"||d==="prototype"));)o=o[d]=f===u?t:typeof(l=o[d])==typeof i?l:i[f]*0!==0||~(""+i[f]).indexOf(".")?{}:[]}return me.dset=r,me}var O={},$i;function lt(){if($i)return O;$i=1;var r=O&&O.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(O,"__esModule",{value:!0}),O.unset=void 0;var n=r(ge());function i(t,f){if((0,n.default)(t,f)){for(var u=f.split("."),o=u.pop();u.length&&u[u.length-1].slice(-1)==="\\";)o=u.pop().slice(0,-1)+"."+o;for(;u.length;)t=t[f=u.shift()];return delete t[o]}return!0}return O.unset=i,O}var pi;function vt(){if(pi)return U;pi=1;var r=U&&U.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(U,"__esModule",{value:!0});var n=r(Wi),i=r(ge()),t=r(ft()),f=ot(),u=lt();function o(h,y){for(var $=h,e=0,a=y;e<a.length;e++){var v=a[e];switch(v.type){case"drop":return null;case"drop_properties":l($,v.config);break;case"allow_properties":d($,v.config);break;case"sample_event":if(_($,v.config))break;return null;case"map_properties":p($,v.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(v.type,'" is unsupported.'))}}return $}U.default=o;function l(h,y){c(h,y.drop,function($,e){e.forEach(function(a){return delete $[a]})})}function d(h,y){c(h,y.allow,function($,e){Object.keys($).forEach(function(a){e.includes(a)||delete $[a]})})}function c(h,y,$){Object.entries(y).forEach(function(e){var a=e[0],v=e[1],s=function(q){typeof q!="object"||q===null||$(q,v)},b=a===""?h:(0,i.default)(h,a);Array.isArray(b)?b.forEach(s):s(b)})}function p(h,y){var $=JSON.parse(JSON.stringify(h));for(var e in y.map)if(y.map.hasOwnProperty(e)){var a=y.map[e],v=e.split("."),s=void 0;if(v.length>1?(v.pop(),s=(0,i.default)($,v.join("."))):s=h,typeof s=="object"){if(a.copy){var b=(0,i.default)($,a.copy);b!==void 0&&(0,f.dset)(h,e,b)}else if(a.move){var q=(0,i.default)($,a.move);q!==void 0&&(0,f.dset)(h,e,q),(0,u.unset)(h,a.move)}else a.hasOwnProperty("set")&&(0,f.dset)(h,e,a.set);if(a.to_string){var L=(0,i.default)(h,e);if(typeof L=="string"||typeof L=="object"&&L!==null)continue;L!==void 0?(0,f.dset)(h,e,JSON.stringify(L)):(0,f.dset)(h,e,"undefined")}}}}function _(h,y){return y.sample.percent<=0?!1:y.sample.percent>=1?!0:y.sample.path?A(h,y):m(y.sample.percent)}function m(h){return Math.random()<=h}function A(h,y){var $=(0,i.default)(h,y.sample.path),e=(0,n.default)(JSON.stringify($)),a=-64,v=[];M(e.slice(0,8),v);for(var s=0,b=0;b<64&&v[b]!==1;b++)s++;if(s!==0){var q=[];M(e.slice(9,16),q),a-=s,v.splice(0,s),q.splice(64-s),v=v.concat(q)}return v[63]=v[63]===0?1:0,(0,t.default)(parseInt(v.join(""),2),a)<y.sample.percent}function M(h,y){for(var $=0;$<8;$++)for(var e=h[$],a=128;a>=1;a/=2)e-a>=0?(e-=a,y.push(1)):y.push(0)}return U}var I={},qi;function st(){if(qi)return I;qi=1;var r=I&&I.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I,"__esModule",{value:!0});var n=r(ge());function i(e,a){if(!a)throw new Error("No matcher supplied!");switch(a.type){case"all":return t();case"fql":return f(a.ir,e);default:throw new Error("Matcher of type ".concat(a.type," unsupported."))}}I.default=i;function t(){return!0}function f(e,a){if(!e)return!1;try{e=JSON.parse(e)}catch(s){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(e,'": ').concat(s))}var v=u(e,a);return typeof v!="boolean"?!1:v}function u(e,a){if(!Array.isArray(e))return o(e,a)===!0;var v=e[0];switch(v){case"!":return!u(e[1],a);case"or":for(var s=1;s<e.length;s++)if(u(e[s],a))return!0;return!1;case"and":for(var s=1;s<e.length;s++)if(!u(e[s],a))return!1;return!0;case"=":case"!=":return c(o(e[1],a),o(e[2],a),v,a);case"<=":case"<":case">":case">=":return d(o(e[1],a),o(e[2],a),v,a);case"in":return l(o(e[1],a),o(e[2],a),a);case"contains":return p(o(e[1],a),o(e[2],a));case"match":return _(o(e[1],a),o(e[2],a));case"lowercase":var b=o(e[1],a);return typeof b!="string"?null:b.toLowerCase();case"typeof":return typeof o(e[1],a);case"length":return m(o(e[1],a));default:throw new Error("FQL IR could not evaluate for token: ".concat(v))}}function o(e,a){return Array.isArray(e)?e:typeof e=="object"?e.value:(0,n.default)(a,e)}function l(e,a,v){return a.find(function(s){return o(s,v)===e})!==void 0}function d(e,a,v,s){if(A(e)&&(e=u(e,s)),A(a)&&(a=u(a,s)),typeof e!="number"||typeof a!="number")return!1;switch(v){case"<=":return e<=a;case">=":return e>=a;case"<":return e<a;case">":return e>a;default:throw new Error("Invalid operator in compareNumbers: ".concat(v))}}function c(e,a,v,s){switch(A(e)&&(e=u(e,s)),A(a)&&(a=u(a,s)),typeof e=="object"&&typeof a=="object"&&(e=JSON.stringify(e),a=JSON.stringify(a)),v){case"=":return e===a;case"!=":return e!==a;default:throw new Error("Invalid operator in compareItems: ".concat(v))}}function p(e,a){return typeof e!="string"||typeof a!="string"?!1:e.indexOf(a)!==-1}function _(e,a){return typeof e!="string"||typeof a!="string"?!1:M(a,e)}function m(e){return e===null?0:!Array.isArray(e)&&typeof e!="string"?NaN:e.length}function A(e){return Array.isArray(e)?(e[0]==="lowercase"||e[0]==="length"||e[0]==="typeof")&&e.length===2||(e[0]==="contains"||e[0]==="match")&&e.length===3:!1}function M(e,a){var v,s;r:for(;e.length>0;){var b=void 0,q=void 0;if(v=h(e),b=v.star,q=v.chunk,e=v.pattern,b&&q==="")return!0;var L=y(q,a),R=L.t,N=L.ok,g=L.err;if(g)return!1;if(N&&(R.length===0||e.length>0)){a=R;continue}if(b)for(var S=0;S<a.length;S++){if(s=y(q,a.slice(S+1)),R=s.t,N=s.ok,g=s.err,N){if(e.length===0&&R.length>0)continue;a=R;continue r}if(g)return!1}return!1}return a.length===0}function h(e){for(var a={star:!1,chunk:"",pattern:""};e.length>0&&e[0]==="*";)e=e.slice(1),a.star=!0;var v=!1,s;r:for(s=0;s<e.length;s++)switch(e[s]){case"\\":s+1<e.length&&s++;break;case"[":v=!0;break;case"]":v=!1;break;case"*":if(!v)break r}return a.chunk=e.slice(0,s),a.pattern=e.slice(s),a}function y(e,a){for(var v,s,b={t:"",ok:!1,err:!1};e.length>0;){if(a.length===0)return b;switch(e[0]){case"[":var q=a[0];a=a.slice(1),e=e.slice(1);var L=!0;e.length>0&&e[0]==="^"&&(L=!1,e=e.slice(1));for(var R=!1,N=0;;){if(e.length>0&&e[0]==="]"&&N>0){e=e.slice(1);break}var g="",S="",P=void 0;if(v=$(e),g=v.char,e=v.newChunk,P=v.err,P||(S=g,e[0]==="-"&&(s=$(e.slice(1)),S=s.char,e=s.newChunk,P=s.err,P)))return b;g<=q&&q<=S&&(R=!0),N++}if(R!==L)return b;break;case"?":a=a.slice(1),e=e.slice(1);break;case"\\":if(e=e.slice(1),e.length===0)return b.err=!0,b;default:if(e[0]!==a[0])return b;a=a.slice(1),e=e.slice(1)}}return b.t=a,b.ok=!0,b.err=!1,b}function $(e){var a={char:"",newChunk:"",err:!1};return e.length===0||e[0]==="-"||e[0]==="]"||e[0]==="\\"&&(e=e.slice(1),e.length===0)?(a.err=!0,a):(a.char=e[0],a.newChunk=e.slice(1),a.newChunk.length===0&&(a.err=!0),a)}return I}var T={},_i;function ct(){if(_i)return T;_i=1,Object.defineProperty(T,"__esModule",{value:!0});var r=function(){function n(i){this.rules=[],this.rules=i||[]}return n.prototype.getRulesByDestinationName=function(i){for(var t=[],f=0,u=this.rules;f<u.length;f++){var o=u[f];(o.destinationName===i||o.destinationName===void 0)&&t.push(o)}return t},n}();return T.default=r,T}var Ai;function dt(){return Ai||(Ai=1,function(r){var n=E&&E.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var i=vt();Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return n(i).default}});var t=st();Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return n(t).default}});var f=ct();Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return n(f).default}})}(E)),E}var Re=dt(),yt=function(r){return function(n){var i=n.payload,t=n.integration,f=n.next,u=new Re.Store(r),o=u.getRulesByDestinationName(t);o.forEach(function(l){for(var d=l.matchers,c=l.transformers,p=0;p<d.length;p++)if(Re.matches(i.obj,d[p])&&(i.obj=Re.transform(i.obj,c[p]),i.obj===null))return f(null)}),f(i)}};export{yt as tsubMiddleware};
//# sourceMappingURL=index-BcVH2fIx.js.map