billboard.js
Version:
Re-usable easy interface JavaScript chart library, based on D3 v4+
38 lines • 239 kB
JavaScript
/*!
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 4.0.3
* @requires billboard.js
* @summary billboard.js plugin
*/(function(sr,_t){typeof exports=="object"&&typeof module=="object"?module.exports=_t():typeof define=="function"&&define.amd?define("bb",[],_t):typeof exports=="object"?exports.bb=_t():(sr.bb=sr.bb||{},sr.bb.plugin=sr.bb.plugin||{},sr.bb.plugin["tableview.pkgd"]=_t())})(this,function(){return(function(){"use strict";var Sr={43579:(function(u,c,t){t.d(c,{default:function(){return nr}});const r=new Set(["span","div","p","br","b","i","em","small","strong","mark","u","s","sub","sup","h1","h2","h3","h4","h5","h6","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col","hr","pre","code","blockquote","abbr","ins","del","a","img","figure","figcaption","svg","g","path","circle","ellipse","rect","line","polyline","polygon","text","tspan","textPath","use","defs","symbol","clipPath","mask","linearGradient","radialGradient","stop","pattern","marker","title","desc"]),n=new Set(["class","id","style","title","lang","dir","href","src","alt","width","height","colspan","rowspan","scope","headers","d","points","x","y","x1","x2","y1","y2","cx","cy","r","rx","ry","dx","dy","viewBox","preserveAspectRatio","transform","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","opacity","clip-path","clip-rule","mask","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternTransform","marker-start","marker-mid","marker-end","markerWidth","markerHeight","refX","refY","xlink:href"]),e=new Map;r.forEach($=>e.set($.toLowerCase(),$));const a=new Map;n.forEach($=>a.set($.toLowerCase(),$));const o=new Set(["http:","https:","mailto:"]),s=new Set(["href","src","xlink:href"]),i=/^<\/?([a-zA-Z][a-zA-Z0-9]*)/,v=/^<\/([a-zA-Z][a-zA-Z0-9]*)\s*>$/,f=/^<([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)(\/?)>$/,l=/([a-zA-Z][\w:-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,d=/url\s*\(\s*["']?([^"')]+)["']?\s*\)/gi,g=["expression(","behavior:","binding:","@import","@charset","-moz-binding:"];function h($){return $.replace(/:/gi,":").replace(/&newline;/gi,`
`).replace(/&tab;/gi," ").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&#(\d+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,10))).replace(/&#x([0-9a-f]+);?/gi,(H,G)=>String.fromCharCode(parseInt(G,16)))}function p($){const G=h($).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!G||G.startsWith("#"))return!0;const it=G.match(/^[^/?#]*:/);return it?o.has(it[0]):!0}function y($){const G=h($).replace(/[\u0000-\u001f]/g,"");d.lastIndex=0;let it;for(;(it=d.exec(G))!==null;)if(!p(it[1]))return null;const It=G.toLowerCase().replace(/\s/g,"");for(const Wt of g)if(It.includes(Wt))return null;return $}const S={'"':""","'":"'","`":"`"},E=/["'`]/g;function m($){return $.replace(E,H=>S[H])}function x($,H,G=!1){if(s.has($))return p(H)?G?m(H):H:null;if($==="style"){const It=y(H);return It===null?null:G?m(It):It}const it=h(H).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(it)?null:G?m(H):H}function I($){const H=$.match(i);return H?H[1].toLowerCase():null}function O($){const H=I($);return H!==null&&e.has(H)}function T($){var H,G,it;const It=$.match(v);if(It){const zt=It[1].toLowerCase();return`</${(H=e.get(zt))!=null?H:zt}>`}const Wt=$.match(f);if(!Wt)return"";const[,W,tt,Y]=Wt,j=W.toLowerCase(),rt=(G=e.get(j))!=null?G:j,Ft=[];l.lastIndex=0;let Ot;for(;(Ot=l.exec(tt))!==null;){const zt=Ot[1].toLowerCase(),qt=Ot[2],lt=Ot[3],Qt=Ot[4];if(zt.startsWith("on"))continue;const rr=(it=a.get(zt))!=null?it:zt;let ur,ir;if(qt!==void 0)ur=qt,ir='"';else if(lt!==void 0)ur=lt,ir="'";else if(Qt!==void 0)ur=Qt,ir='"';else{a.has(zt)&&Ft.push(rr);continue}if(a.has(zt)){const fr=x(zt,ur,Qt!==void 0);fr!==null&&Ft.push(`${rr}=${ir}${fr}${ir}`)}}const Zt=Ft.length>0?` ${Ft.join(" ")}`:"";return`<${rt}${Zt}${Y?"/>":">"}`}function A($){return typeof $!="string"||!$||$.indexOf("<")===-1?$:$.replace(/<\/?[^>]*>|[^<>\s]+>/g,H=>H.startsWith("<!--")?"":H.startsWith("<")?O(H)?T(H):H.replace(/</g,"<"):H.slice(0,-1)+">")}var P,R,C,N,M,D,F,L,U=Object.defineProperty,B=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,K=($,H,G)=>H in $?U($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,_=($,H)=>{for(var G in H||(H={}))b.call(H,G)&&K($,G,H[G]);if(B)for(var G of B(H))X.call(H,G)&&K($,G,H[G]);return $};function Q($,H){for(let G=0;G<$.length;G++){const it=$[G];it!==null&&R(it)&&H(it,G)}}function w($,H,G){return R($[H])?$[H]:G}function V($,H){for(const G in $)if($[G]===H)return!0;return!1}function z($,H,...G){const it=C($);return it&&$.call(H,...G),it}function Z($,H){let G=0;const it=function(...It){!--G&&H.apply(this,It)};"duration"in $?$.each(()=>++G).on("end",it):(++G,$.call(it))}const at=$=>$.charAt(0).toUpperCase()+$.slice(1);function gt($,H="-"){return $.split(H).map((G,it)=>it?G.charAt(0).toUpperCase()+G.slice(1).toLowerCase():G.toLowerCase()).join("")}const q=$=>[].slice.call($);function vt(...$){const H=G=>{if(N(G))return G.map(H);if(M(G)&&G.constructor){const it=new G.constructor;for(const It in G)it[It]=H(G[It]);return it}return G};return $.map(G=>H(G)).reduce((G,it)=>_(_({},G),it))}function St($={},H){N(H)&&H.forEach(G=>St($,G));for(const G in H)/^\d+$/.test(G)||G in $||($[G]=H[G]);return $}function Pt($){const H=$[0]instanceof Date,G=Array.from(new Set(H?$.map(Number):$));return H?G.map(it=>new Date(it)):G}function Et($){return $&&$.length?$.reduce((H,G)=>H.concat(G)):[]}function Tt($,...H){if(!H.length||H.length===1&&!H[0])return $;const G=H.shift();return M($)&&M(G)&&Object.keys(G).forEach(it=>{if(!/^(__proto__|constructor|prototype)$/i.test(it)){const It=G[it];It instanceof Date?$[it]=new Date(It.getTime()):M(It)?(!$[it]&&($[it]={}),$[it]=Tt($[it],It)):$[it]=N(It)?It.concat():It}}),Tt($,...H)}function Lt($,H=!0){let G;return $[0]instanceof Date?G=H?(it,It)=>it-It:(it,It)=>It-it:H&&!$.every(isNaN)?G=(it,It)=>it-It:H||(G=(it,It)=>it>It&&-1||it<It&&1||it===It&&0),$.concat().sort(G)}function Bt($,H){let G=H.filter(it=>D(it));if(G.length)if(F(G[0])){let it=$==="min"?1/0:-1/0;for(const It of G)($==="min"?It<it:It>it)&&(it=It);G=it}else G[0]instanceof Date&&(G=Lt(G,$==="min")[0]);else G=void 0;return G}const $t=($,H,G=1)=>{const it=[],It=Math.max(0,Math.ceil((H-$)/G))|0;for(let Wt=0;Wt<It;Wt++)it.push($+Wt*G);return it};let At=0;function Mt($=!0){const H=++At;return $?String(H):H}function Gt($,H,G,it,It){if(G>it)return-1;const Wt=Math.floor((G+it)/2);let{x:W,w:tt=0}=$[Wt];return It&&(W=$[Wt].y,tt=$[Wt].h),H>=W&&H<=W+tt?Wt:H<W?Gt($,H,G,Wt-1,It):Gt($,H,Wt+1,it,It)}function ot($,H){return A($.replace(/\{=([^}]+)\}/g,(G,it)=>{var It;return(It=H[it])!=null?It:""}))}function mt($){var H;let G;if($ instanceof Date)G=$;else if(L($)){const{config:it,format:It}=this;G=(H=It.dataTime(it.data_xFormat)($))!=null?H:new Date($)}else F($)&&!isNaN($)&&(G=new Date(+$));return(!G||isNaN(+G))&&console&&console.error&&console.error(`Failed to parse x '${$}' to Date object`),G}function pt($){if(M($)&&!L($)){const W=$;return{top:W.top||0,right:W.right||0,bottom:W.bottom||0,left:W.left||0}}const H=(L($)?$.trim().split(/\s+/):[$]).map(W=>+W||0),[G,it=G,It=G,Wt=it]=H;return{top:G,right:it,bottom:It,left:Wt}}function Vt($,H){H()===!1?P(()=>Vt($,H)):$()}function ft($,H=(G=>G)){const G=new Set;return Q($,(it,It)=>{G.add(H(it,It))}),G}function yt($,H,G=(it=>it)){const it=new Map;return Q($,(It,Wt)=>{it.set(H(It,Wt),G(It,Wt))}),it}const Ct=$=>$||$===0,Rt=$=>typeof $=="function",Ut=$=>typeof $=="string",Kt=$=>typeof $=="number",J=$=>typeof $=="undefined",st=$=>typeof $!="undefined",k=$=>typeof $=="boolean",et=$=>Math.ceil($/10)*10,dt=$=>Math.ceil($)+.5,nt=$=>$[1]-$[0],Nt=$=>typeof $=="object",Ht=$=>{for(const H in $)return!1;return!0},ut=$=>J($)||$===null||Ut($)&&$.length===0||Nt($)&&!($ instanceof Date)&&Ht($)||Kt($)&&isNaN($),ct=$=>!ut($),ht=$=>Array.isArray($),xt=$=>$&&!($!=null&&$.nodeType)&&Nt($)&&!ht($);function Dt($){const H=this.config;let G,it,It;const Wt=()=>{const W=it.shift();if(W&&G&&Nt(G)&&W in G)return G=G[W],Wt();if(!W)return G};Object.keys(H).forEach(W=>{G=$,it=W.split("_"),It=Wt(),st(It)&&(H[W]=It)}),this.api&&(this.state.orgConfig=$)}var jt=Object.defineProperty,Yt=($,H,G)=>H in $?jt($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,bt=($,H,G)=>Yt($,typeof H!="symbol"?H+"":H,G);class Jt{constructor(H={}){bt(this,"$$"),bt(this,"options"),bt(this,"config"),this.options=H}loadConfig(){Dt.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(H=>{this[H]=null,delete this[H]})}}bt(Jt,"version","4.0.3");const Xt={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
border-collapse:collapse;
border-spacing:0;
background:#fff;
min-width:100%;
margin-top:10px;
font-family:sans-serif;
font-size:.9em;
}
.bb-tableview tr:hover {
background:#eef7ff;
}
.bb-tableview thead tr {
background:#f8f8f8;
}
.bb-tableview caption,.bb-tableview td,.bb-tableview th {
text-align: center;
border:1px solid silver;
padding:.5em;
}
.bb-tableview caption {
font-size:1.1em;
font-weight:700;
margin-bottom: -1px;
}`},kt={body:`<caption>{=title}</caption>
<thead><tr>{=thead}</tr></thead>
<tbody>{=tbody}</tbody>`,thead:'<th scope="col">{=title}</th>',tbodyHeader:'<th scope="row">{=value}</th>',tbody:"<td>{=value}</td>"};class ar{constructor(){return{selector:void 0,categoryTitle:"Category",categoryFormat:function(H){let G=H;return this.$$.axis.isCategorized()?G=this.$$.categoryName(H):this.$$.axis.isTimeSeries()&&(G=H.toLocaleDateString()),G},class:void 0,style:!0,title:void 0,updateOnToggle:!0,nullString:"-",numberFormat:function(H){return H.toLocaleString()}}}}var lr=Object.defineProperty,cr=Object.defineProperties,dr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,er=($,H,G)=>H in $?lr($,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):$[H]=G,tr=($,H)=>{for(var G in H||(H={}))gr.call(H,G)&&er($,G,H[G]);if(vr)for(var G of vr(H))hr.call(H,G)&&er($,G,H[G]);return $},yr=($,H)=>cr($,dr(H)),or=($,H,G)=>er($,typeof H!="symbol"?H+"":H,G);class nr extends Jt{constructor(H){return super(H),or(this,"element"),this.config=new ar,this}$beforeInit(){this.loadConfig()}$init(){const{class:H,selector:G,style:it}=this.config;let It=document.querySelector(G||`.${H||Xt.class}`);if(!It){const Wt=this.$$.$el.chart.node();It=document.createElement("table"),Wt.parentNode.insertBefore(It,Wt.nextSibling)}if(It.tagName!=="TABLE"){const Wt=document.createElement("table");It.appendChild(Wt),It=Wt}if(it&&!document.getElementById(Xt.id)){const Wt=document.createElement("style");Wt.id=Xt.id,Wt.innerHTML=Xt.rule,(document.head||document.getElementsByTagName("head")[0]).appendChild(Wt)}It.classList.add(...[it&&Xt.class,H].filter(Boolean)),this.element=It}generateTable(){const{$$:H,config:G,element:it}=this,It=H.filterTargetsToShow(H.data.targets);let Wt=ot(kt.thead,{title:It.length?this.config.categoryTitle:""}),W="";const tt=[];It.forEach(Y=>{Wt+=ot(kt.thead,{title:Y.id}),Y.values.forEach((j,rt)=>{tt[rt]||(tt[rt]=[j.x]),tt[rt].push(j.value)})}),tt.forEach(Y=>{W+=`<tr>${Y.map((j,rt)=>ot(rt?kt.tbody:kt.tbodyHeader,{value:rt===0?G.categoryFormat.bind(this)(j):Kt(j)?G.numberFormat.bind(this)(j):G.nullString})).join("")}</tr>`}),it.innerHTML=ot(kt.body,yr(tr({},G),{title:G.title||H.config.title_text||"",thead:Wt,tbody:W}))}$redraw(){const{state:H}=this.$$;!(H.resizing||!this.config.updateOnToggle&&H.toggling)&&this.generateTable()}$willDestroy(){var H,G;if((H=this.element.parentNode)==null||H.removeChild(this.element),this.$$.charts.length===1){const it=document.getElementById(Xt.id);(G=it==null?void 0:it.parentNode)==null||G.removeChild(it)}}}}),2663:(function(u,c,t){var r=t(94626),n=t(71016),e=TypeError;u.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a function")}}),29283:(function(u,c,t){var r=t(99908),n=t(71016),e=TypeError;u.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a constructor")}}),82053:(function(u,c,t){var r=t(70404),n=TypeError;u.exports=function(e){if(r(e)==="DataView")return e;throw new n("Argument is not a DataView")}}),26195:(function(u,c,t){var r=t(91450),n=String,e=TypeError;u.exports=function(a){if(r(a))return a;throw new e("Can't set "+n(a)+" as a prototype")}}),99895:(function(u,c,t){var r=t(53233).has;u.exports=function(n){return r(n),n}}),76314:(function(u){var c=TypeError;u.exports=function(t){if(typeof t=="string")return t;throw new c("Argument is not a string")}}),90065:(function(u,c,t){var r=t(90594),n=new r.WeakMap,e=r.set,a=r.remove;u.exports=function(o){return e(n,o,1),a(n,o),o}}),11980:(function(u,c,t){var r=t(90594).has;u.exports=function(n){return r(n),n}}),65678:(function(u,c,t){var r=t(73350),n=t(50402),e=t(56827),a=t(68175),o=t(46840),s=t(2663),i=t(32808),v=t(98575),f=t(69520),l=f("asyncDispose"),d=f("dispose"),g=e([].push),h=function(y,S){if(S==="async-dispose"){var E=v(y,l);return E!==void 0||(E=v(y,d),E===void 0)?E:function(){var m=this,x=r("Promise");return new x(function(I){n(E,m),I(void 0)})}}return v(y,d)},p=function(y,S,E){return arguments.length<3&&!i(y)&&(E=s(h(o(y),S))),E===void 0?function(){}:a(E,y)};u.exports=function(y,S,E,m){var x;if(arguments.length<4){if(i(S)&&E==="sync-dispose")return;x=p(S,E)}else x=p(void 0,E,m);g(y.stack,x)}}),90596:(function(u,c,t){var r=t(69520),n=t(31667),e=t(61188).f,a=r("unscopables"),o=Array.prototype;o[a]===void 0&&e(o,a,{configurable:!0,value:n(null)}),u.exports=function(s){o[a][s]=!0}}),60496:(function(u,c,t){var r=t(27510).charAt;u.exports=function(n,e,a){return e+(a&&r(n,e).length||1)}}),79652:(function(u,c,t){var r=t(90832),n=TypeError;u.exports=function(e,a){if(r(a,e))return e;throw new n("Incorrect invocation")}}),42253:(function(u,c,t){var r=t(12053),n=String,e=TypeError;u.exports=function(a){if(a===void 0||r(a))return a;throw new e(n(a)+" is not an object or undefined")}}),46840:(function(u,c,t){var r=t(12053),n=String,e=TypeError;u.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not an object")}}),24391:(function(u,c,t){var r=t(70404),n=TypeError;u.exports=function(e){if(r(e)==="Uint8Array")return e;throw new n("Argument is not an Uint8Array")}}),25786:(function(u){u.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"}),45515:(function(u,c,t){var r=t(84743),n=t(13111),e=t(69255),a=r.ArrayBuffer,o=r.TypeError;u.exports=a&&n(a.prototype,"byteLength","get")||function(s){if(e(s)!=="ArrayBuffer")throw new o("ArrayBuffer expected");return s.byteLength}}),87827:(function(u,c,t){var r=t(84743),n=t(25786),e=t(45515),a=r.DataView;u.exports=function(o){if(!n||e(o)!==0)return!1;try{return new a(o),!1}catch(s){return!0}}}),19423:(function(u,c,t){var r=t(20116);u.exports=r(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})}),79450:(function(u,c,t){var r=t(87827),n=TypeError;u.exports=function(e){if(r(e))throw new n("ArrayBuffer is detached");return e}}),71131:(function(u,c,t){var r=t(84743),n=t(56827),e=t(13111),a=t(29681),o=t(79450),s=t(45515),i=t(50960),v=t(70109),f=r.structuredClone,l=r.ArrayBuffer,d=r.DataView,g=Math.max,h=Math.min,p=l.prototype,y=d.prototype,S=n(p.slice),E=e(p,"resizable","get"),m=e(p,"maxByteLength","get"),x=n(y.getInt8),I=n(y.setInt8);u.exports=(v||i)&&function(O,T,A){var P=s(O),R=T===void 0?P:a(T),C=!E||!E(O),N;if(o(O),v&&(O=f(O,{transfer:[O]}),P===R&&(A||C)))return O;if(P>=R&&(!A||C))N=S(O,0,R);else{var M=A&&!C&&m?{maxByteLength:g(R,m(O))}:void 0;N=new l(R,M);for(var D=new d(O),F=new d(N),L=h(R,P),U=0;U<L;U++)I(F,U,x(D,U))}return v||i(O),N}}),6881:(function(u,c,t){var r=t(25786),n=t(13087),e=t(84743),a=t(94626),o=t(12053),s=t(46276),i=t(70404),v=t(71016),f=t(12258),l=t(45503),d=t(89339),g=t(90832),h=t(27900),p=t(41744),y=t(69520),S=t(8955),E=t(97676),m=E.enforce,x=E.get,I=e.Int8Array,O=I&&I.prototype,T=e.Uint8ClampedArray,A=T&&T.prototype,P=I&&h(I),R=O&&h(O),C=Object.prototype,N=e.TypeError,M=y("toStringTag"),D=S("TYPED_ARRAY_TAG"),F="TypedArrayConstructor",L=r&&!!p&&i(e.opera)!=="Opera",U=!1,B,b,X,K={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},Q=function(vt){if(!o(vt))return!1;var St=i(vt);return St==="DataView"||s(K,St)||s(_,St)},w=function(q){var vt=h(q);if(o(vt)){var St=x(vt);return St&&s(St,F)?St[F]:w(vt)}},V=function(q){if(!o(q))return!1;var vt=i(q);return s(K,vt)||s(_,vt)},z=function(q){if(V(q))return q;throw new N("Target is not a typed array")},Z=function(q){if(a(q)&&(!p||g(P,q)))return q;throw new N(v(q)+" is not a typed array constructor")},at=function(q,vt,St,Pt){if(n){if(St)for(var Et in K){var Tt=e[Et];if(Tt&&s(Tt.prototype,q))try{delete Tt.prototype[q]}catch(Lt){try{Tt.prototype[q]=vt}catch(Bt){}}}(!R[q]||St)&&l(R,q,St?vt:L&&O[q]||vt,Pt)}},gt=function(q,vt,St){var Pt,Et;if(n){if(p){if(St){for(Pt in K)if(Et=e[Pt],Et&&s(Et,q))try{delete Et[q]}catch(Tt){}}if(!P[q]||St)try{return l(P,q,St?vt:L&&P[q]||vt)}catch(Tt){}else return}for(Pt in K)Et=e[Pt],Et&&(!Et[q]||St)&&l(Et,q,vt)}};for(B in K)b=e[B],X=b&&b.prototype,X?m(X)[F]=b:L=!1;for(B in _)b=e[B],X=b&&b.prototype,X&&(m(X)[F]=b);if((!L||!a(P)||P===Function.prototype)&&(P=function(){throw new N("Incorrect invocation")},L))for(B in K)e[B]&&p(e[B],P);if((!L||!R||R===C)&&(R=P.prototype,L))for(B in K)e[B]&&p(e[B].prototype,R);if(L&&h(A)!==R&&p(A,R),n&&!s(R,M)){U=!0,d(R,M,{configurable:!0,get:function(){return o(this)?this[D]:void 0}});for(B in K)e[B]&&f(e[B].prototype,D,B)}u.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:U&&D,aTypedArray:z,aTypedArrayConstructor:Z,exportTypedArrayMethod:at,exportTypedArrayStaticMethod:gt,getTypedArrayConstructor:w,isView:Q,isTypedArray:V,TypedArray:P,TypedArrayPrototype:R}}),31063:(function(u,c,t){var r=t(84743),n=t(56827),e=t(13087),a=t(25786),o=t(27897),s=t(12258),i=t(89339),v=t(26394),f=t(20116),l=t(79652),d=t(28082),g=t(29681),h=t(65398),p=t(65373),y=t(27900),S=t(41744),E=t(62992),m=t(11579),x=t(17996),I=t(65859),O=t(13696),T=t(97676),A=o.PROPER,P=o.CONFIGURABLE,R="ArrayBuffer",C="DataView",N="prototype",M="Wrong length",D="Wrong index",F=T.getterFor(R),L=T.getterFor(C),U=T.set,B=r[R],b=B,X=b&&b[N],K=r[C],_=K&&K[N],Q=Object.prototype,w=r.Array,V=r.RangeError,z=n(E),Z=n([].reverse),at=p.pack,gt=p.unpack,q=function(ot){return[ot&255]},vt=function(ot){return[ot&255,ot>>8&255]},St=function(ot){return[ot&255,ot>>8&255,ot>>16&255,ot>>24&255]},Pt=function(ot){return ot[3]<<24|ot[2]<<16|ot[1]<<8|ot[0]},Et=function(ot){return at(h(ot),23,4)},Tt=function(ot){return at(ot,52,8)},Lt=function(ot,mt,pt){i(ot[N],mt,{configurable:!0,get:function(){return pt(this)[mt]}})},Bt=function(ot,mt,pt,Vt){var ft=L(ot),yt=g(pt),Ct=!!Vt;if(yt+mt>ft.byteLength)throw new V(D);var Rt=ft.bytes,Ut=yt+ft.byteOffset,Kt=m(Rt,Ut,Ut+mt);return Ct?Kt:Z(Kt)},$t=function(ot,mt,pt,Vt,ft,yt){var Ct=L(ot),Rt=g(pt),Ut=Vt(+ft),Kt=!!yt;if(Rt+mt>Ct.byteLength)throw new V(D);for(var J=Ct.bytes,st=Rt+Ct.byteOffset,k=0;k<mt;k++)J[st+k]=Ut[Kt?k:mt-k-1]};if(!a)b=function(mt){l(this,X);var pt=g(mt);U(this,{type:R,bytes:z(w(pt),0),byteLength:pt}),e||(this.byteLength=pt,this.detached=!1)},X=b[N],K=function(mt,pt,Vt){l(this,_),l(mt,X);var ft=F(mt),yt=ft.byteLength,Ct=d(pt);if(Ct<0||Ct>yt)throw new V("Wrong offset");if(Vt=Vt===void 0?yt-Ct:g(Vt),Ct+Vt>yt)throw new V(M);U(this,{type:C,buffer:mt,byteLength:Vt,byteOffset:Ct,bytes:ft.bytes}),e||(this.buffer=mt,this.byteLength=Vt,this.byteOffset=Ct)},_=K[N],e&&(Lt(b,"byteLength",F),Lt(K,"buffer",L),Lt(K,"byteLength",L),Lt(K,"byteOffset",L)),v(_,{getInt8:function(mt){return Bt(this,1,mt)[0]<<24>>24},getUint8:function(mt){return Bt(this,1,mt)[0]},getInt16:function(mt){var pt=Bt(this,2,mt,arguments.length>1?arguments[1]:!1);return(pt[1]<<8|pt[0])<<16>>16},getUint16:function(mt){var pt=Bt(this,2,mt,arguments.length>1?arguments[1]:!1);return pt[1]<<8|pt[0]},getInt32:function(mt){return Pt(Bt(this,4,mt,arguments.length>1?arguments[1]:!1))},getUint32:function(mt){return Pt(Bt(this,4,mt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(mt){return gt(Bt(this,4,mt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(mt){return gt(Bt(this,8,mt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(mt,pt){$t(this,1,mt,q,pt)},setUint8:function(mt,pt){$t(this,1,mt,q,pt)},setInt16:function(mt,pt){$t(this,2,mt,vt,pt,arguments.length>2?arguments[2]:!1)},setUint16:function(mt,pt){$t(this,2,mt,vt,pt,arguments.length>2?arguments[2]:!1)},setInt32:function(mt,pt){$t(this,4,mt,St,pt,arguments.length>2?arguments[2]:!1)},setUint32:function(mt,pt){$t(this,4,mt,St,pt,arguments.length>2?arguments[2]:!1)},setFloat32:function(mt,pt){$t(this,4,mt,Et,pt,arguments.length>2?arguments[2]:!1)},setFloat64:function(mt,pt){$t(this,8,mt,Tt,pt,arguments.length>2?arguments[2]:!1)}});else{var At=A&&B.name!==R;!f(function(){B(1)})||!f(function(){new B(-1)})||f(function(){return new B,new B(1.5),new B(NaN),B.length!==1||At&&!P})?(b=function(mt){return l(this,X),x(new B(g(mt)),this,b)},b[N]=X,X.constructor=b,I(b,B)):At&&P&&s(B,"name",R),S&&y(_)!==Q&&S(_,Q);var Mt=new K(new b(2)),Gt=n(_.setInt8);Mt.setInt8(0,2147483648),Mt.setInt8(1,2147483649),(Mt.getInt8(0)||!Mt.getInt8(1))&&v(_,{setInt8:function(mt,pt){Gt(this,mt,pt<<24>>24)},setUint8:function(mt,pt){Gt(this,mt,pt<<24>>24)}},{unsafe:!0})}O(b,R),O(K,C),u.exports={ArrayBuffer:b,DataView:K}}),74354:(function(u,c,t){var r=t(7754),n=t(51017),e=t(71207),a=t(18895),o=Math.min;u.exports=[].copyWithin||function(i,v){var f=r(this),l=e(f),d=n(i,l),g=n(v,l),h=arguments.length>2?arguments[2]:void 0,p=o((h===void 0?l:n(h,l))-g,l-d),y=1;for(g<d&&d<g+p&&(y=-1,g+=p-1,d+=p-1);p-- >0;)g in f?f[d]=f[g]:a(f,d),d+=y,g+=y;return f}}),62992:(function(u,c,t){var r=t(7754),n=t(51017),e=t(71207);u.exports=function(o){for(var s=r(this),i=e(s),v=arguments.length,f=n(v>1?arguments[1]:void 0,i),l=v>2?arguments[2]:void 0,d=l===void 0?i:n(l,i);d>f;)s[f++]=o;return s}}),62986:(function(u,c,t){var r=t(67566).forEach,n=t(35967),e=n("forEach");u.exports=e?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),57524:(function(u,c,t){var r=t(68175),n=t(56827),e=t(99908),a=t(35451),o=t(20644),s=t(56924),i=t(25472),v=t(98575),f=t(73350),l=t(64987),d=t(69520),g=t(88015),h=t(43990).toArray,p=d("asyncIterator"),y=n(l("Array","values")),S=n(y([]).next),E=function(){return new m(this)},m=function(x){this.iterator=y(x)};m.prototype.next=function(){return S(this.iterator)},u.exports=function(I){var O=this,T=arguments.length,A=T>1?arguments[1]:void 0,P=T>2?arguments[2]:void 0;return new(f("Promise"))(function(R){A!==void 0&&(A=r(A,P));var C=v(I,p),N=C?void 0:i(I)||E,M=e(O)?new O:[],D=C?a(I,C):new g(s(o(I,N)));R(h(D,A,M))})}}),85037:(function(u,c,t){var r=t(71207);u.exports=function(n,e,a){for(var o=0,s=arguments.length>2?a:r(e),i=new n(s);s>o;)i[o]=e[o++];return i}}),7093:(function(u,c,t){var r=t(68175),n=t(50402),e=t(7754),a=t(22138),o=t(99564),s=t(99908),i=t(71207),v=t(74591),f=t(46738),l=t(20644),d=t(25472),g=t(39106),h=Array;u.exports=function(y){var S=s(this),E=arguments.length,m=E>1?arguments[1]:void 0,x=m!==void 0;x&&(m=r(m,E>2?arguments[2]:void 0));var I=e(y),O=d(I),T=0,A,P,R,C,N,M;if(O&&!(this===h&&o(O)))for(P=S?new this:[],C=l(I,O),N=C.next;!(R=n(N,C)).done;T++){M=x?a(C,m,[R.value,T],!0):R.value;try{v(P,T,M)}catch(D){g(C,"throw",D)}}else for(A=i(I),P=S?new this(A):h(A);A>T;T++)M=x?m(I[T],T):I[T],v(P,T,M);return f(P,T),P}}),69868:(function(u,c,t){var r=t(25590),n=t(51017),e=t(71207),a=function(o){return function(s,i,v){var f=r(s),l=e(f);if(l===0)return!o&&-1;var d=n(v,l),g;if(o&&i!==i){for(;l>d;)if(g=f[d++],g!==g)return!0}else for(;l>d;d++)if((o||d in f)&&f[d]===i)return o||d||0;return!o&&-1}};u.exports={includes:a(!0),indexOf:a(!1)}}),22252:(function(u,c,t){var r=t(68175),n=t(74),e=t(7754),a=t(71207),o=function(s){var i=s===1;return function(v,f,l){for(var d=e(v),g=n(d),h=a(g),p=r(f,l),y,S;h-- >0;)if(y=g[h],S=p(y,h,d),S)switch(s){case 0:return y;case 1:return h}return i?-1:void 0}};u.exports={findLast:o(0),findLastIndex:o(1)}}),67566:(function(u,c,t){var r=t(68175),n=t(74),e=t(7754),a=t(71207),o=t(44800),s=t(74591),i=function(v){var f=v===1,l=v===2,d=v===3,g=v===4,h=v===6,p=v===7,y=v===5||h;return function(S,E,m){for(var x=e(S),I=n(x),O=a(I),T=r(E,m),A=0,P=0,R=f?o(S,O):l||p?o(S,0):void 0,C,N;O>A;A++)if((y||A in I)&&(C=I[A],N=T(C,A,x),v))if(f)s(R,A,N);else if(N)switch(v){case 3:return!0;case 5:return C;case 6:return A;case 2:s(R,P++,C)}else switch(v){case 4:return!1;case 7:s(R,P++,C)}return h?-1:d||g?g:R}};u.exports={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6),filterReject:i(7)}}),84944:(function(u,c,t){var r=t(15360),n=t(25590),e=t(28082),a=t(71207),o=t(35967),s=Math.min,i=[].lastIndexOf,v=!!i&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),l=v||!f;u.exports=l?function(g){if(v)return r(i,this,arguments)||0;var h=n(this),p=a(h);if(p===0)return-1;var y=p-1;for(arguments.length>1&&(y=s(y,e(arguments[1]))),y<0&&(y=p+y);y>=0;y--)if(y in h&&h[y]===g)return y||0;return-1}:i}),74024:(function(u,c,t){var r=t(20116),n=t(69520),e=t(14134),a=n("species");u.exports=function(o){return e>=51||!r(function(){var s=[],i=s.constructor={};return i[a]=function(){return{foo:1}},s[o](Boolean).foo!==1})}}),35967:(function(u,c,t){var r=t(20116);u.exports=function(n,e){var a=[][n];return!!a&&r(function(){a.call(null,e||function(){return 1},1)})}}),19579:(function(u,c,t){var r=t(2663),n=t(7754),e=t(74),a=t(71207),o=TypeError,s="Reduce of empty array with no initial value",i=function(v){return function(f,l,d,g){var h=n(f),p=e(h),y=a(h);if(r(l),y===0&&d<2)throw new o(s);var S=v?y-1:0,E=v?-1:1;if(d<2)for(;;){if(S in p){g=p[S],S+=E;break}if(S+=E,v?S<0:y<=S)throw new o(s)}for(;v?S>=0:y>S;S+=E)S in p&&(g=l(g,p[S],S,h));return g}};u.exports={left:i(!1),right:i(!0)}}),46738:(function(u,c,t){var r=t(13087),n=t(11129),e=TypeError,a=Object.getOwnPropertyDescriptor,o=r&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}})();u.exports=o?function(s,i){if(n(s)&&!a(s,"length").writable)throw new e("Cannot set read only .length");return s.length=i}:function(s,i){return s.length=i}}),11579:(function(u,c,t){var r=t(56827);u.exports=r([].slice)}),50489:(function(u,c,t){var r=t(11579),n=Math.floor,e=function(a,o){var s=a.length;if(s<8)for(var i=1,v,f;i<s;){for(f=i,v=a[i];f&&o(a[f-1],v)>0;)a[f]=a[--f];f!==i++&&(a[f]=v)}else for(var l=n(s/2),d=e(r(a,0,l),o),g=e(r(a,l),o),h=d.length,p=g.length,y=0,S=0;y<h||S<p;)a[y+S]=y<h&&S<p?o(d[y],g[S])<=0?d[y++]:g[S++]:y<h?d[y++]:g[S++];return a};u.exports=e}),60226:(function(u,c,t){var r=t(11129),n=t(99908),e=t(12053),a=t(69520),o=a("species"),s=Array;u.exports=function(i){var v;return r(i)&&(v=i.constructor,n(v)&&(v===s||r(v.prototype))?v=void 0:e(v)&&(v=v[o],v===null&&(v=void 0))),v===void 0?s:v}}),44800:(function(u,c,t){var r=t(60226);u.exports=function(n,e){return new(r(n))(e===0?0:e)}}),88015:(function(u,c,t){var r=t(50402),n=t(46840),e=t(31667),a=t(98575),o=t(26394),s=t(97676),i=t(39106),v=t(73350),f=t(80843),l=t(89526),d=v("Promise"),g="AsyncFromSyncIterator",h=s.set,p=s.getterFor(g),y=function(E,m,x,I,O){var T=E.done;d.resolve(E.value).then(function(A){m(l(A,T))},function(A){if(!T&&O)try{i(I,"throw",A)}catch(P){A=P}x(A)})},S=function(m){m.type=g,h(this,m)};S.prototype=o(e(f),{next:function(){var m=p(this),x=arguments.length>0,I=x?arguments[0]:void 0;return new d(function(O,T){var A=n(x?r(m.next,m.iterator,I):r(m.next,m.iterator));y(A,O,T,m.iterator,!0)})},return:function(){var E=p(this),m=E.iterator,x=arguments.length>0,I=x?arguments[0]:void 0;return new d(function(O,T){var A=a(m,"return");if(A===void 0)return O(l(I,!0));var P=n(x?r(A,m,I):r(A,m));y(P,O,T,m)})},throw:function(){var E=p(this),m=E.iterator,x=arguments.length>0,I=x?arguments[0]:void 0;return new d(function(O,T){var A=a(m,"throw");if(A===void 0){try{i(m,"normal")}catch(R){return T(R)}return T(new TypeError("The iterator does not provide a throw method"))}var P=n(x?r(A,m,I):r(A,m));y(P,O,T,m,!0)})}}),u.exports=S}),37029:(function(u,c,t){var r=t(50402),n=t(46840),e=t(73350),a=t(98575);u.exports=function(o,s,i,v){try{var f=a(o,"return");if(f)return e("Promise").resolve(r(f,o)).then(function(l){try{s!==v&&n(l)}catch(d){v(d);return}s(i)},function(l){s===v?s(i):v(l)})}catch(l){return v(s===v?i:l)}s(i)}}),43990:(function(u,c,t){var r=t(50402),n=t(2663),e=t(46840),a=t(12053),o=t(4720),s=t(73350),i=t(74591),v=t(46738),f=t(56924),l=t(37029),d=function(g){var h=g===0,p=g===1,y=g===2,S=g===3;return function(E,m,x){e(E);var I=m!==void 0;(I||!h)&&n(m);var O=f(E),T=s("Promise"),A=O.iterator,P=O.next,R=0;return new T(function(C,N){var M=function(F){l(A,N,F,N)},D=function(){try{try{o(R)}catch(F){return M(F)}T.resolve(e(r(P,A))).then(function(F){try{if(e(F).done)h?(v(x,R),C(x)):C(S?!1:y||void 0);else{var L=F.value;try{if(I){var U=R++,B=m(L,U),b=function(X){if(p)D();else if(y)X?D():l(A,C,!1,N);else if(h)try{i(x,U,X),D()}catch(K){M(K)}else X?l(A,C,S||L,N):D()};a(B)?T.resolve(B).then(b,M):b(B)}else i(x,R++,L),D()}catch(X){M(X)}}}catch(X){N(X)}},N)}catch(F){N(F)}};D()})}};u.exports={toArray:d(0),forEach:d(1),every:d(2),some:d(3),find:d(4)}}),80843:(function(u,c,t){var r=t(84743),n=t(81864),e=t(94626),a=t(31667),o=t(27900),s=t(45503),i=t(69520),v=t(24),f="USE_FUNCTION_CONSTRUCTOR",l=i("asyncIterator"),d=r.AsyncIterator,g=n.AsyncIteratorPrototype,h,p;if(g)h=g;else if(e(d))h=d.prototype;else if(n[f]||r[f])try{p=o(o(o(Function("return async function*(){}()")()))),o(p)===Object.prototype&&(h=p)}catch(y){}h?v&&(h=a(h)):h={},e(h[l])||s(h,l,function(){return this}),u.exports=h}),18045:(function(u){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=c+"+/",r=c+"-_",n=function(e){for(var a={},o=0;o<64;o++)a[e.charAt(o)]=o;return a};u.exports={i2c:t,c2i:n(t),i2cUrl:r,c2iUrl:n(r)}}),22138:(function(u,c,t){var r=t(46840),n=t(39106);u.exports=function(e,a,o,s){try{return s?a(r(o)[0],o[1]):a(o)}catch(i){n(e,"throw",i)}}}),95617:(function(u,c,t){var r=t(69520),n=r("iterator"),e=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){e=!0}};o[n]=function(){return this},Array.from(o,function(){throw 2})}catch(s){}u.exports=function(s,i){try{if(!i&&!e)return!1}catch(l){return!1}var v=!1;try{var f={};f[n]=function(){return{next:function(){return{done:v=!0}}}},s(f)}catch(l){}return v}}),69255:(function(u,c,t){var r=t(56827),n=r({}.toString),e=r("".slice);u.exports=function(a){return e(n(a),8,-1)}}),70404:(function(u,c,t){var r=t(30535),n=t(94626),e=t(69255),a=t(69520),o=a("toStringTag"),s=Object,i=e((function(){return arguments})())==="Arguments",v=function(f,l){try{return f[l]}catch(d){}};u.exports=r?e:function(f){var l,d,g;return f===void 0?"Undefined":f===null?"Null":typeof(d=v(l=s(f),o))=="string"?d:i?e(l):(g=e(l))==="Object"&&n(l.callee)?"Arguments":g}}),16577:(function(u,c,t){var r=t(31667),n=t(89339),e=t(26394),a=t(68175),o=t(79652),s=t(32808),i=t(13615),v=t(44367),f=t(89526),l=t(74614),d=t(13087),g=t(43668).fastKey,h=t(97676),p=h.set,y=h.getterFor;u.exports={getConstructor:function(S,E,m,x){var I=S(function(R,C){o(R,O),p(R,{type:E,index:r(null),first:null,last:null,size:0}),d||(R.size=0),s(C)||i(C,R[x],{that:R,AS_ENTRIES:m})}),O=I.prototype,T=y(E),A=function(R,C,N){var M=T(R),D=P(R,C),F,L;return D?D.value=N:(M.last=D={index:L=g(C,!0),key:C,value:N,previous:F=M.last,next:null,removed:!1},M.first||(M.first=D),F&&(F.next=D),d?M.size++:R.size++,L!=="F"&&(M.index[L]=D)),R},P=function(R,C){var N=T(R),M=g(C),D;if(M!=="F")return N.index[M];for(D=N.first;D;D=D.next)if(D.key===C)return D};return e(O,{clear:function(){for(var C=this,N=T(C),M=N.first;M;)M.removed=!0,M.previous&&(M.previous=M.previous.next=null),M=M.next;N.first=N.last=null,N.index=r(null),d?N.size=0:C.size=0},delete:function(R){var C=this,N=T(C),M=P(C,R);if(M){var D=M.next,F=M.previous;delete N.index[M.index],M.removed=!0,F&&(F.next=D),D&&(D.previous=F),N.first===M&&(N.first=D),N.last===M&&(N.last=F),d?N.size--:C.size--}return!!M},forEach:function(C){for(var N=T(this),M=a(C,arguments.length>1?arguments[1]:void 0),D;D=D?D.next:N.first;)for(M(D.value,D.key,this);D&&D.removed;)D=D.previous},has:function(C){return!!P(this,C)}}),e(O,m?{get:function(C){var N=P(this,C);return N&&N.value},set:function(C,N){return A(this,C===0?0:C,N)}}:{add:function(C){return A(this,C=C===0?0:C,C)}}),d&&n(O,"size",{configurable:!0,get:function(){return T(this).size}}),I},setStrong:function(S,E,m){var x=E+" Iterator",I=y(E),O=y(x);v(S,E,function(T,A){p(this,{type:x,target:T,state:I(T),kind:A,last:null})},function(){for(var T=O(this),A=T.kind,P=T.last;P&&P.removed;)P=P.previous;return!T.target||!(T.last=P=P?P.next:T.state.first)?(T.target=null,f(void 0,!0)):f(A==="keys"?P.key:A==="values"?P.value:[P.key,P.value],!1)},m?"entries":"values",!m,!0),l(E)}}}),18902:(function(u,c,t){var r=t(56827),n=t(26394),e=t(43668).getWeakData,a=t(79652),o=t(46840),s=t(32808),i=t(12053),v=t(13615),f=t(67566),l=t(46276),d=t(97676),g=d.set,h=d.getterFor,p=f.find,y=f.findIndex,S=r([].splice),E=0,m=function(O){return O.frozen||(O.frozen=new x)},x=function(){this.entries=[]},I=function(O,T){return p(O.entries,function(A){return A[0]===T})};x.prototype={get:function(O){var T=I(this,O);if(T)return T[1]},has:function(O){return!!I(this,O)},set:function(O,T){var A=I(this,O);A?A[1]=T:this.entries.push([O,T])},delete:function(O){var T=y(this.entries,function(A){return A[0]===O});return~T&&S(this.entries,T,1),!!~T}},u.exports={getConstructor:function(O,T,A,P){var R=O(function(D,F){a(D,C),g(D,{type:T,id:E++,frozen:null}),s(F)||v(F,D[P],{that:D,AS_ENTRIES:A})}),C=R.prototype,N=h(T),M=function(D,F,L){var U=N(D),B=e(o(F),!0);return B===!0?m(U).set(F,L):B[U.id]=L,D};return n(C,{delete:function(D){var F=N(this);if(!i(D))return!1;var L=e(D);return L===!0?m(F).delete(D):L&&l(L,F.id)&&delete L[F.id]},has:function(F){var L=N(this);if(!i(F))return!1;var U=e(F);return U===!0?m(L).has(F):U&&l(U,L.id)}}),n(C,A?{get:function(F){var L=N(this);if(i(F)){var U=e(F);if(U===!0)return m(L).get(F);if(U)return U[L.id]}},set:function(F,L){return M(this,F,L)}}:{add:function(F){return M(this,F,!0)}}),R}}}),38993:(function(u,c,t){var r=t(6987),n=t(84743),e=t(56827),a=t(81311),o=t(45503),s=t(43668),i=t(13615),v=t(79652),f=t(94626),l=t(32808),d=t(12053),g=t(20116),h=t(95617),p=t(13696),y=t(17996);u.exports=function(S,E,m){var x=S.indexOf("Map")!==-1,I=S.indexOf("Weak")!==-1,O=x?"set":"add",T=n[S],A=T&&T.prototype,P=T,R={},C=function(B){var b=e(A[B]);o(A,B,B==="add"?function(K){return b(this,K===0?0:K),this}:B==="delete"?function(X){return I&&!d(X)?!1:b(this,X===0?0:X)}:B==="get"?function(K){return I&&!d(K)?void 0:b(this,K===0?0:K)}:B==="has"?function(K){return I&&!d(K)?!1:b(this,K===0?0:K)}:function(K,_){return b(this,K===0?0:K,_),this})},N=a(S,!f(T)||!(I||A.forEach&&!g(function(){new T().entries().next()})));if(N)P=m.getConstructor(E,S,x,O),s.enable();else if(a(S,!0)){var M=new P,D=M[O](I?{}:-0,1)!==M,F=g(function(){M.has(1)}),L=h(function(B){new T(B)}),U=!I&&g(function(){for(var B=new T,b=5;b--;)B[O](b,b);return!B.has(-0)});L||(P=E(function(B,b){v(B,A);var X=y(new T,B,P);return l(b)||i(b,X[O],{that:X,AS_ENTRIES:x}),X}),P.prototype=A,A.constructor=P),(F||U)&&(C("delete"),C("has"),x&&C("get")),(U||D)&&C(O),I&&A.clear&&delete A.clear}return R[S]=P,r({global:!0,constructor:!0,forced:P!==T},R),p(P,S),I||m.setStrong(P,S,x),P}}),65859:(function(u,c,t){var r=t(46276),n=t(49258),e=t(66574),a=t(61188);u.exports=function(o,s,i){for(var v=n(s),f=a.f,l=e.f,d=0;d<v.length;d++){var g=v[d];!r(o,g)&&!(i&&r(i,g))&&f(o,g,l(s,g))}}}),14175:(function(u,c,t){var r=t(69520),n=r("match");u.exports=function(e){var a=/./;try{"/./"[e](a)}catch(o){try{return a[n]=!1,"/./"[e](a)}catch(s){}}return!1}}),670:(function(u,c,t){var r=t(20116);u.exports=!r(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})}),22599:(function(u,c,t){var r=t(56827),n=t(56535),e=t(6360),a=/"/g,o=r("".replace);u.exports=function(s,i,v,f){var l=e(n(s)),d="<"+i;return v!==""&&(d+=" "+v+'="'+o(e(f),a,""")+'"'),d+">"+l+"</"+i+">"}}),89526:(function(u){u.exports=function(c,t){return{value:c,done:t}}}),12258:(function(u,c,t){var r=t(13087),n=t(61188),e=t(34369);u.exports=r?function(a,o,s){return n.f(a,o,e(1,s))}:function(a,o,s){return a[o]=s,a}}),34369:(function(u){u.exports=function(c,t){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:t}}}),74591:(function(u,c,t){var r=t(13087),n=t(61188),e=t(34369);u.exports=function(a,o,s){r?n.f(a,o,e(0,s)):a[o]=s}}),56077:(function(u,c,t){var r=t(56827),n=t(20116),e=t(73364).start,a=RangeError,o=isFinite,s=Math.abs,i=Date.prototype,v=i.toISOString,f=r(i.getTime),l=r(i.getUTCDate),d=r(i.getUTCFullYear),g=r(i.getUTCHours),h=r(i.getUTCMilliseconds),p=r(i.getUTCMinutes),y=r(i.getUTCMonth),S=r(i.getUTCSeconds);u.exports=n(function(){return v.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!n(function(){v.call(new Date(NaN))})?function(){if(!o(f(this)))throw new a("Invalid time value");var m=this,x=d(m),I=h(m),O=x<0?"-":x>9999?"+":"";return O+e(s(x),O?6:4,0)+"-"+e(y(m)+1,2,0)+"-"+e(l(m),2,0)+"T"+e(g(m),2,0)+":"+e(p(m),2,0)+":"+e(S(m),2,0)+"."+e(I,3,0)+"Z"}:v}),7631:(function(u,c,t){var r=t(46840),n=t(45277),e=TypeError;u.exports=function(a){if(r(this),a==="string"||a==="default")a="string";else if(a!=="number")throw new e("Incorrect hint");return n(this,a)}}),89339:(function(u,c,t){var r=t(79968),n=t(61188);u.exports=function(e,a,o){return o.get&&r(o.get,a,{getter:!0}),o.set&&r(o.set,a,{setter:!0}),n.f(e,a,o)}}),45503:(function(u,c,t){var r=t(94626),n=t(61188),e=t(79968),a=t(97004);u.exports=function(o,s,i,v){v||(v={});var f=v.enumerable,l=v.name!==void 0?v.name:s;if(r(i)&&e(i,l,v),v.global)f?o[s]=i:a(s,i);else{try{v.unsafe?o[s]&&(f=!0):delete o[s]}catch(d){}f?o[s]=i:n.f(o,s,{value:i,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return o}}),26394:(function(u,c,t){var r=t(45503);u.exports=function(n,e,a){for(var o in e)r(n,o,e[o],a);return n}}),97004:(function(u,c,t){var r=t(84743),n=Object.defineProperty;u.exports=function(e,a){try{n(r,e,{value:a,configurable:!0,writable:!0})}catch(o){r[e]=a}return a}}),18895:(function(u,c,t){var r=t(71016),n=TypeError;u.exports=function(e,a){if(!delete e[a])throw new n("Cannot delete property "+r(a)+" of "+r(e))}}),13087:(function(u,c,t){var r=t(20116);u.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),50960:(function(u,c,t){var r=t(84743),n=t(8692),e=t(70109),a=r.structuredClone,o=r.ArrayBuffer,s=r.MessageChannel,i=!1,v,f,l,d;if(e)i=function(g){a(g,{transfer:[g]})};else if(o)try{s||(v=n("worker_threads"),v&&(s=v.MessageChannel)),s&&(f=new s,l=new o(2),d=function(g){f.port1.postMessage(null,[g])},l.byteLength===2&&(d(l),l.byteLength===0&&(i=d)))}catch(g){}u.exports=i}),74040:(function(u,c,t){var r=t(84743),n=t(12053),e=r.document,a=n(e)&&n(e.createElement);u.exports=function(o){return a?e.createElement(o):{}}}),4720:(function(u){var c=TypeError,t=9007199254740991;u.exports=function(r){if(r>t)throw new c("Maximum allowed index exceeded");return r}}),65601:(function(u){u.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),91439:(function(u){u.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),28613:(function(u,c,t){var r=t(74040),n=r("span").classList,e=n&&n.constructor&&n.constructor.prototype;u.exports=e===Object.prototype?void 0:e}),95872:(function(u){u.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),61672:(function(u,c,t){var r=t(18114),n=r.match(/firefox\/(\d+)/i);u.exports=!!n&&+n[1]}),21376:(function(u,c,t){var r=t(18114);u.exports=/MSIE|Trident/.test(r)}),3750:(function(u,c,t){var r=t(18114);u.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble!="undefined"}),79869:(function(u,c,t){var r=t(18114);u.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)}),64474:(function(u,c,t){var r=t(60760);u.exports=r==="NODE"}),38483:(function(u,c,t){var r=t(18114);u.exports=/web0s(?!.*chrome)/i.test(r)}),18114:(function(u,c,t){var r=t(84743),n=r.navigator,e=n&&n.userAgent;u.exports=e?String(e):""}),14134:(function(u,c,t){var r=t(84743),n=t(18114),e=r.process,a=r.Deno,o=e&&e.versions||a&&a.version,s=o&&o.v8,i,v;s&&(i=s.split("."),v=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!v&&n&&(i=n.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=n.match(/Chrome\/(\d+)/),i&&(v=+i[1]))),u.exports=v}),61362:(function(u,c,t){var r=t(18114),n=r.match(/AppleWebKit\/(\d+)\./);u.exports=!!n&&+n[1]}),60760:(function(u,c,t){var r=t(84743),n=t(18114),e=t(69255),a=function(o){return n.slice(0,o.length)===o};u.exports=(function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":e(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"})()}),54106:(function(u,c,t){var r=t(56827),n=Error,e=r("".replace),a=(function(i){return String(new n(i).stack)})("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);u.exports=function(i,v){if(s&&typeof i=="string"&&!n.prepareStackTrace)for(;v--;)i=e(i,o,"");return i}}),62212:(function(u,c,t){var r=t(12258),n=t(54106),e=t(23464),a=Error.captureStackTrace;u.exports=function(o,s,i,v){e&&(a?a(o,s):r(o,"stack",n(i,v)))}}),23464:(function(u,c,t){var r=t(20116),n=t(34369);u.exports=!r(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",n(1,7)),e.stack!==7):!0})}),8975:(function(u,c,t){var r=t(13087),n=t(20116),e=t(46840),a=t(76520),o=Error.prototype.toString,s=n(function(){if(r){var i=Object.create(Object.defineProperty({},"name",{get:function(){return this===i}}));if(o.call(i)!=="true")return!0}return o.call({message:1,name:2})!=="2: 1"||o.call({})!=="Error"});u.exports=s?function(){var v=e(this),f=a(v.name,"Error"),l=a(v.message);return f?l?f+": "+l:f:l}:o}),6987:(function(u,c,t){var r=t(84743),n=t(66574).f,e=t(12258),a=t(45503),o=t(97004),s=t(65859),i=t(81311);u.exports=function(v,f){var l=v.target,d=v.global,g=v.stat,h,p,y,S,E,m;if(d?p=r:g?p=r[l]||o(l,{}):p=r[l]&&r[l].prototype,p)for(y in f){if(E=f[y],v.dontCallGetSet?(m=n(p,y),S=m&&m.value):S=p[y],h=i(d?y:l+(g?".":"#")+y,v.forced),!h&&S!==void 0){if(typeof E==typeof S)continue;s(E,S)}(v.sham||S&&S.sham)&&e(E,"sham",!0),a(p,y,E,v)}}}),20116:(function(u){u.exports=function(c){try{return!!c()}catch(t){return!0}}}),21301:(function(u,c,t){t(90862);var r=t(50402),n=t(45503),e=t(41100),a=t(20116),o=t(69520),s=t(12258),i=o("species"),v=RegExp.prototype;u.exports=function(f,l,d,g){var h=o(f),p=!a(function(){var m={};return m[h]=function(){return 7},""[f](m)!==7}),y=p&&!a(function(){var m=!1,x=/a/;if(f==="split"){var I={};I[i]=function(){return x},x={constructor:I,flags:""},x[h]=/./[h]}return x.exec=function(){return m=!0,null},x[h](""),!m});if(!p||!y||d){var S=/./[h],E=l(h,""[f],function(m,x,I,O,T){var A=x.exec;return A===e||A===v.exec?p&&!T?{done:!0,value:r(S,x,I,O)}:{done:!0,value:r(m,I,x,O)}:{done:!1}});n(String.prototype,f,E[0]),n(v,h,E[1])}g&&s(v[h],"sham",!0)}}),302:(function(u,c,t){var r=t(11129),n=t(71207),e=t(4720),a=t(68175),o=t(74591),s=function(i,v,f,l,d,g,h,p){for(var y=d,S=0,E=h?a(h,p):!1,m,x;S<l;)S in f&&(m=E?E(f[S],S,v):f[S],g>0&&r(m)?(x=n(m),y=s(i,v,m,x,y,g-1)-1):(e(y+1),o(i,y,m)),y++),S++;return y};u.exports=s}),53993:(function(u,c,t){var r=t(20116);u.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}),15360:(function(u,c,t){var r=t(11865),n=Function.prototype,e=n.apply,a=n.call;u.exports=typeof Reflect=="object"&&Reflect.apply||(r?a.bind(e):function(){return a.apply(e,arguments)})}),68175:(function(u,c,t){var r=t(34945),n=t(2663),e=t(11865),a=r(r.bind);u.exports=function(o,s){return n(o),s===void 0?o:e?a(o,s):function(){return o.apply(s,arguments)}}}),11865:(function(u,c,t){var r=t(20116);u.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})}),22457:(function(u,c,t){var r=t(56827),n=t(2663),e=t(12053),a=t(46276),o=t(11579),s=t(11865),i=Function,v=r([].concat),f=r([].join),l={},d=function(g,h,p){if(!a(l,h)){for(var y=[],S=0;S<h;S++)y[S]="a["+S+"]";l[h]=i("C,a","return new C("+f(y,",")+")")}return l[h](g,p)};u.exports=s?i.bind:function(h){var p=n(this),y=p.prototype,S=o(arguments,1),E=function(){var x=v(S,o(arguments));return this instanceof E?d(p,x.length,x):p.apply(h,x)};return e(y)&&(E.prototype=y),E}}),50402:(function(u,c,t){var r=t(11865),n=Function.prototype.call;u.exports=r?n.bind(n):function(){return n.apply(n,arguments)}}),27897:(function(u,c,t){var r=t(13087),n=t(46276),e=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,o=n(e,"name"),s=o&&function(){}.name==="something",i=o&&(!r||r&&a(e,"name").configurable);u.exports={EXISTS:o,PROPER:s,CONFIGURABLE:i}}),13111:(function(u,c,t){var r=t(56827),n=t(2663);u.exports=function(e,a,o){try{return r(n(Object.getOwnPropertyDescriptor(e,a)[o]))}catch(s){}}}),34945:(function(u,c,t){var r=t(69255),n=t(56827);u.exports=function(e){if(r(e)==="Function")return n(e)}}),56827:(function(u,c,t){var r=t(11865),n=Function.prototype,e=n.call,a=r&&n.bind.bind(e,e);u.exports=r?a:function(o){return function(){return e.apply(o,arguments)}}}),55851:(function(u){var c=TypeError;u.exports=function(t){var r=t&&t.alphabet;if(r===void 0||r==="base64"||r==="base64url")return r||"base64";throw new c("Incorrect `alphabet` option")}}),35451:(function(u,c,t){var r=t(50402),n=t(88015),e=t(46840),a=t(20644),o=t(56924),s=t(98575),i=t(69520),v=i("asyncIterator");u.exports=function(f,l){var d=arguments.length<2?s(f,v):l;return d?e(r(d,f)):new n(o(a(f)))}}),8692:(function(u,c,t){var r=t(84743),n=t(64474);u.exports=function(e){if(n){try{return r.process.getBuiltinModule(e)}catch(a){}try{return Function('return require("'+e+'")')()}catch(a){}}}}),64987:(function(u,c,t){var r=t(84743);u.exports=function(n,e){var a=r[n],o=a&&a.prototype;return o&&o[e]}}),73350:(function(u,c,t){var r=t(84743),n=t(94626),e=function(a){return n(a)?a:void 0};u.exports=function(a,o){return arguments.length<2?e(r[a]):r[a]&&r[a][o]}}),56924:(function(u){u.exports=function(c){return{iterator:c,next:c.next,done:!1}}}),42535:(function(u,c,t){var r=t(50402),n=t(46840),e=t(56924),a=t(25472);u.exports=function(o,s){(!s||typeof o!="string")&&n(o);var i=a(o);return e(n(i!==void 0?r(i,o):o))}}),25472:(function(u,c,t){var r=t(70404),n=t(98575),e=t(32808),a=t(29846),o=t(69520),s=o("iterator");u.exports=function(i){if(!e(i))return n(i,s)||n(i,"@@iterator")||a[r(i)]}}),20644:(function(u,c,t){var r=t(50402),n=t(2663),e=t(46840),a=t(71016),o=t(25472),s=TypeError;u.exports=function(i,v){var f=arguments.length<2?o(i):v;if(n(f))return e(r(f,i));throw new s(a(i)+" is not iterable")}}),98575:(function(u,c,t){var r=t(2663),n=t(32808);u.exports=function(e,a){var o=e[a];return n(o)?void 0:r(o)}}),40916:(function(u,c,t){var r=t(2663),n=t(46840),e=t(50402),a=t(28082),o=t(56924),s="Invalid size",i=RangeError,v=TypeError,f=Math.max,l=function(d,g){this.set=d,this.size=f(g,0),this.has=r(d.has),this.keys=r(d.keys)};l.prototype={getIterator:function(){return o(n(e(this.keys,this.set)))},includes:function(d){return e(this.has,this.set,d)}},u.exports=function(d){n(d);var g=+d.size;if(g!==g)throw new v(s);var h=a(g);if(h<0)throw new i(s);return new l(d,h)}}),39967:(function(u,c,t){var r=t(56827),n=t(7754),e=Math.floor,a=r("".charAt),o=r("".replace),s=r("".slice),i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,v=/\$([$&'`]|\d{1,2})/g;u.exports=function(f,l,d,g,h,p){var y=d+f.length,S=g.length,E=v;return h!==void 0&&(h=n(h),E=i),o(p,E,function(m,x)