From 0c7697f0aaa524ad5c8545bf4d588ec10ae7f7d1 Mon Sep 17 00:00:00 2001 From: silvester-pari Date: Mon, 19 Aug 2024 14:59:42 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20EOX-A/EO?= =?UTF-8?q?xElements@ec225990e2d49bbaccc51a56dd2742c83cdf9151=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...MAHA-Blzvso4Y.js => Color-KGDBMAHA-Gpl1Ymdw.js} | 2 +- ...Ml3-mS.js => DocsRenderer-PKQXORMH-DySwcl-A.js} | 2 +- assets/{iframe-CyVltN8V.js => iframe-BM56Rj-4.js} | 4 ++-- assets/{index-DhyC0JuC.js => index-C4nnFC4q.js} | 8 ++++---- assets/{index-BQ3BInS0.js => index-CajmrM5u.js} | 2 +- ...-f10HZydY.js => itemfilter.stories-CeTEqu4V.js} | 6 +++--- assets/{lerc-BICoda3J.js => lerc-CpoBLLMY.js} | 2 +- .../{preview-BLfJQMLJ.js => preview-CB0AiCd1.js} | 4 ++-- .../{preview-BFptM-L4.js => preview-zra5TLrG.js} | 14 +++++++------- iframe.html | 2 +- project.json | 2 +- 11 files changed, 24 insertions(+), 24 deletions(-) rename assets/{Color-KGDBMAHA-Blzvso4Y.js => Color-KGDBMAHA-Gpl1Ymdw.js} (99%) rename assets/{DocsRenderer-PKQXORMH-Q5Ml3-mS.js => DocsRenderer-PKQXORMH-DySwcl-A.js} (92%) rename assets/{iframe-CyVltN8V.js => iframe-BM56Rj-4.js} (91%) rename assets/{index-DhyC0JuC.js => index-C4nnFC4q.js} (99%) rename assets/{index-BQ3BInS0.js => index-CajmrM5u.js} (96%) rename assets/{itemfilter.stories-f10HZydY.js => itemfilter.stories-CeTEqu4V.js} (97%) rename assets/{lerc-BICoda3J.js => lerc-CpoBLLMY.js} (99%) rename assets/{preview-BLfJQMLJ.js => preview-CB0AiCd1.js} (66%) rename assets/{preview-BFptM-L4.js => preview-zra5TLrG.js} (99%) diff --git a/assets/Color-KGDBMAHA-Blzvso4Y.js b/assets/Color-KGDBMAHA-Gpl1Ymdw.js similarity index 99% rename from assets/Color-KGDBMAHA-Blzvso4Y.js rename to assets/Color-KGDBMAHA-Gpl1Ymdw.js index fa11abaac..87d7df684 100644 --- a/assets/Color-KGDBMAHA-Blzvso4Y.js +++ b/assets/Color-KGDBMAHA-Gpl1Ymdw.js @@ -1 +1 @@ -import{aj as Me,ak as ie,al as Ce,am as $,a2 as ue,a0 as $e,w as Oe,an as Ie,ao as Ne}from"./index-DhyC0JuC.js";import{R as h,r as b,g as fe}from"./index-RYns6xqu.js";import"./iframe-CyVltN8V.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(te(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var m=c.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(m?"touchmove":"mousemove",x),E(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(ne(m),!function(k,O){return O&&!F(k)}(m,c.current)&&w)){if(F(m)){c.current=!0;var E=m.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(te(w,m,l.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return b.useEffect(function(){return g},[g]),h.createElement("div",I({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},ze=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},He=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},Te=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},be=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),b.useEffect(function(){var i;ve(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=b.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},re=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!re.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,re.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Xe=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var c=ye(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",I({},s,{ref:l,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},De={defaultColor:"000",toHsva:Re,fromHsva:function(e){return He({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},We=function(e){return h.createElement(Xe,I({},e,{colorModel:De}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var c=ye(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",I({},s,{ref:l,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d}),h.createElement(Ke,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ze,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,I({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Te,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,I({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const H=Ye,ke={};for(const e of Object.keys(H))ke[H[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(H)){const a=H[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=_e;function Qe(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:U[e].channels}),Object.defineProperty(N[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=st(o),N[e][r].raw=at(o)})});var lt=N;const _=fe(lt);var ct=Me,it=function(){return ct.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,bt=/^\s+/;function mt(e){return e&&e.slice(0,gt(e)+1).replace(bt,"")}var vt=mt,pt=vt,oe=ie,yt=Ce,ae=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return ae;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?ae:+e}var Mt=Et,Ct=ie,W=ut,se=Mt,$t="Expected a function",Ot=Math.max,It=Math.min;function Nt(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(m,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?It(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function m(){var v=W();if(p(v))return w(v);l=setTimeout(m,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function O(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(m,t),x(c)}return l===void 0&&(l=setTimeout(m,t)),s}return O.cancel=E,O.flush=k,O}var St=Nt;const Rt=fe(St);var jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ft=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ht=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$(Oe.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Ie)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:We,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=b.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=b.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=b.useCallback(Rt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),m=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ft,null,h.createElement(m,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Ht,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},rn=Yt;export{Yt as ColorControl,rn as default}; +import{aj as Me,ak as ie,al as Ce,am as $,a2 as ue,a0 as $e,w as Oe,an as Ie,ao as Ne}from"./index-C4nnFC4q.js";import{R as h,r as b,g as fe}from"./index-RYns6xqu.js";import"./iframe-BM56Rj-4.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(te(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var m=c.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(m?"touchmove":"mousemove",x),E(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(ne(m),!function(k,O){return O&&!F(k)}(m,c.current)&&w)){if(F(m)){c.current=!0;var E=m.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(te(w,m,l.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return b.useEffect(function(){return g},[g]),h.createElement("div",I({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},ze=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},He=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},Te=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},be=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),b.useEffect(function(){var i;ve(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=b.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},re=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!re.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,re.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Xe=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var c=ye(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",I({},s,{ref:l,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},De={defaultColor:"000",toHsva:Re,fromHsva:function(e){return He({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},We=function(e){return h.createElement(Xe,I({},e,{colorModel:De}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var c=ye(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",I({},s,{ref:l,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d}),h.createElement(Ke,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ze,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,I({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Te,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,I({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const H=Ye,ke={};for(const e of Object.keys(H))ke[H[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(H)){const a=H[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=_e;function Qe(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:U[e].channels}),Object.defineProperty(N[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=st(o),N[e][r].raw=at(o)})});var lt=N;const _=fe(lt);var ct=Me,it=function(){return ct.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,bt=/^\s+/;function mt(e){return e&&e.slice(0,gt(e)+1).replace(bt,"")}var vt=mt,pt=vt,oe=ie,yt=Ce,ae=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return ae;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?ae:+e}var Mt=Et,Ct=ie,W=ut,se=Mt,$t="Expected a function",Ot=Math.max,It=Math.min;function Nt(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(m,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?It(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function m(){var v=W();if(p(v))return w(v);l=setTimeout(m,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function O(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(m,t),x(c)}return l===void 0&&(l=setTimeout(m,t)),s}return O.cancel=E,O.flush=k,O}var St=Nt;const Rt=fe(St);var jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ft=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ht=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$(Oe.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Ie)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:We,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=b.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=b.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=b.useCallback(Rt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),m=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ft,null,h.createElement(m,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Ht,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},rn=Yt;export{Yt as ColorControl,rn as default}; diff --git a/assets/DocsRenderer-PKQXORMH-Q5Ml3-mS.js b/assets/DocsRenderer-PKQXORMH-DySwcl-A.js similarity index 92% rename from assets/DocsRenderer-PKQXORMH-Q5Ml3-mS.js rename to assets/DocsRenderer-PKQXORMH-DySwcl-A.js index 6ea1ed59e..fec8254c4 100644 --- a/assets/DocsRenderer-PKQXORMH-Q5Ml3-mS.js +++ b/assets/DocsRenderer-PKQXORMH-DySwcl-A.js @@ -1,2 +1,2 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CcnH5Kt0.js","./index-RYns6xqu.js"])))=>i.map(i=>d[i]); -import{_ as h}from"./iframe-CyVltN8V.js";import{R as o,r as i}from"./index-RYns6xqu.js";import{ae as d,af as E,ag as R,ah as x,ai as y}from"./index-DhyC0JuC.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";var u={},m=d;u.createRoot=m.createRoot,u.hydrateRoot=m.hydrateRoot;var n=new Map,f=({callback:e,children:t})=>{let r=i.useRef();return i.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t},v=async(e,t,r)=>{let s=await D(t,r);return new Promise(a=>{s.render(o.createElement(f,{callback:()=>a(null)},e))})},w=(e,t)=>{let r=n.get(e);r&&(r.unmount(),n.delete(e))},D=async(e,t)=>{let r=n.get(e);return r||(r=u.createRoot(e,t),n.set(e,r)),r},_={code:E,a:R,...x},g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:o.createElement(o.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let s={..._,...t==null?void 0:t.components},a=y;return new Promise((p,l)=>{h(async()=>{const{MDXProvider:c}=await import("./index-CcnH5Kt0.js");return{MDXProvider:c}},__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:c})=>v(o.createElement(g,{showException:l,key:Math.random()},o.createElement(c,{components:s},o.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>p())})},this.unmount=e=>{w(e)}}};export{S as DocsRenderer,_ as defaultComponents}; +import{_ as h}from"./iframe-BM56Rj-4.js";import{R as o,r as i}from"./index-RYns6xqu.js";import{ae as d,af as E,ag as R,ah as x,ai as y}from"./index-C4nnFC4q.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";var u={},m=d;u.createRoot=m.createRoot,u.hydrateRoot=m.hydrateRoot;var n=new Map,f=({callback:e,children:t})=>{let r=i.useRef();return i.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t},v=async(e,t,r)=>{let s=await D(t,r);return new Promise(a=>{s.render(o.createElement(f,{callback:()=>a(null)},e))})},w=(e,t)=>{let r=n.get(e);r&&(r.unmount(),n.delete(e))},D=async(e,t)=>{let r=n.get(e);return r||(r=u.createRoot(e,t),n.set(e,r)),r},_={code:E,a:R,...x},g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:o.createElement(o.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let s={..._,...t==null?void 0:t.components},a=y;return new Promise((p,l)=>{h(async()=>{const{MDXProvider:c}=await import("./index-CcnH5Kt0.js");return{MDXProvider:c}},__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:c})=>v(o.createElement(g,{showException:l,key:Math.random()},o.createElement(c,{components:s},o.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>p())})},this.unmount=e=>{w(e)}}};export{S as DocsRenderer,_ as defaultComponents}; diff --git a/assets/iframe-CyVltN8V.js b/assets/iframe-BM56Rj-4.js similarity index 91% rename from assets/iframe-CyVltN8V.js rename to assets/iframe-BM56Rj-4.js index 57292fd4d..cdc4c69bc 100644 --- a/assets/iframe-CyVltN8V.js +++ b/assets/iframe-BM56Rj-4.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-BeKBFhL6.js","./jsx-runtime-DEdD30eg.js","./index-RYns6xqu.js","./index-CcnH5Kt0.js","./chart.stories-DiUCAWUR.js","./lit-element-CHc5qsYe.js","./drawtools.stories-Ol3q5WxA.js","./geosearch.stories-k1bTDeYr.js","./itemfilter.stories-f10HZydY.js","./index-DZLKizrv.js","./jsonform.stories-DlsetOfz.js","./layercontrol.stories-OpWIDS9x.js","./layout.stories-Dla_KBs_.js","./map.stories-Dz88GvaY.js","./stacinfo.stories-ct4OBscH.js","./storytelling.stories-BB-irUnK.js","./timecontrol.stories-DORzsTWU.js","./entry-preview-m3VPQc9J.js","./index-DrFu-skq.js","./directive-helpers-B-Rwybl1.js","./entry-preview-docs-Ci3mjUiw.js","./chunk-GKNNPQCW-BkHQSocK.js","./index-DxKRhftL.js","./tiny-invariant-BxWVcicq.js","./preview-9hFJSo5S.js","./preview-4hc1_nEH.js","./preview-DB9FwMii.js","./preview-DE7p7AzZ.js","./preview-BFptM-L4.js","./index-DhyC0JuC.js"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))m(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&m(s)}).observe(document,{childList:!0,subtree:!0});function l(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerPolicy&&(o.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?o.credentials="include":e.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function m(e){if(e.ep)return;e.ep=!0;const o=l(e);fetch(e.href,o)}})();const f="modulepreload",R=function(r,i){return new URL(r,i).href},O={},t=function(i,l,m){let e=Promise.resolve();if(l&&l.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),p=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));e=Promise.all(l.map(_=>{if(_=R(_,m),_ in O)return;O[_]=!0;const a=_.endsWith(".css"),d=a?'[rel="stylesheet"]':"";if(!!m)for(let c=o.length-1;c>=0;c--){const u=o[c];if(u.href===_&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${d}`))return;const n=document.createElement("link");if(n.rel=a?"stylesheet":f,a||(n.as="script",n.crossOrigin=""),n.href=_,p&&n.setAttribute("nonce",p),document.head.appendChild(n),a)return new Promise((c,u)=>{n.addEventListener("load",c),n.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})}))}return e.then(()=>i()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},{createBrowserChannel:y}=__STORYBOOK_MODULE_CHANNELS__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,E=y({page:"preview"});T.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const L={"./.storybook/About.mdx":async()=>t(()=>import("./About-BeKBFhL6.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),"./elements/chart/chart.stories.js":async()=>t(()=>import("./chart.stories-DiUCAWUR.js"),__vite__mapDeps([4,5]),import.meta.url),"./elements/drawtools/stories/drawtools.stories.js":async()=>t(()=>import("./drawtools.stories-Ol3q5WxA.js"),__vite__mapDeps([6,5]),import.meta.url),"./elements/geosearch/stories/geosearch.stories.js":async()=>t(()=>import("./geosearch.stories-k1bTDeYr.js"),__vite__mapDeps([7,5]),import.meta.url),"./elements/itemfilter/stories/itemfilter.stories.js":async()=>t(()=>import("./itemfilter.stories-f10HZydY.js"),__vite__mapDeps([8,9,5]),import.meta.url),"./elements/jsonform/stories/jsonform.stories.js":async()=>t(()=>import("./jsonform.stories-DlsetOfz.js"),__vite__mapDeps([10,5]),import.meta.url),"./elements/layercontrol/stories/layercontrol.stories.js":async()=>t(()=>import("./layercontrol.stories-OpWIDS9x.js"),__vite__mapDeps([11,5]),import.meta.url),"./elements/layout/stories/layout.stories.js":async()=>t(()=>import("./layout.stories-Dla_KBs_.js"),__vite__mapDeps([12,5]),import.meta.url),"./elements/map/map.stories.js":async()=>t(()=>import("./map.stories-Dz88GvaY.js"),__vite__mapDeps([13,5]),import.meta.url),"./elements/stacinfo/stories/stacinfo.stories.js":async()=>t(()=>import("./stacinfo.stories-ct4OBscH.js"),__vite__mapDeps([14,5]),import.meta.url),"./elements/storytelling/stories/storytelling.stories.js":async()=>t(()=>import("./storytelling.stories-BB-irUnK.js"),__vite__mapDeps([15,5]),import.meta.url),"./elements/timecontrol/stories/timecontrol.stories.js":async()=>t(()=>import("./timecontrol.stories-DORzsTWU.js"),__vite__mapDeps([16,5]),import.meta.url)};async function P(r){return L[r]()}const{composeConfigs:I,PreviewWeb:V,ClientApi:S}=__STORYBOOK_MODULE_PREVIEW_API__,D=async(r=[])=>{const i=await Promise.all([r.at(0)??t(()=>import("./entry-preview-m3VPQc9J.js"),__vite__mapDeps([17,18,5,19]),import.meta.url),r.at(1)??t(()=>import("./entry-preview-docs-Ci3mjUiw.js"),__vite__mapDeps([20,21,22,23,5]),import.meta.url),r.at(2)??t(()=>import("./preview-BLfJQMLJ.js"),[],import.meta.url),r.at(3)??t(()=>import("./preview-Ct5NkTJf.js"),[],import.meta.url),r.at(4)??t(()=>import("./preview-9hFJSo5S.js"),__vite__mapDeps([24,18]),import.meta.url),r.at(5)??t(()=>import("./preview-BnWGZYux.js"),[],import.meta.url),r.at(6)??t(()=>import("./preview-4hc1_nEH.js"),__vite__mapDeps([25,23]),import.meta.url),r.at(7)??t(()=>import("./preview-DB9FwMii.js"),__vite__mapDeps([26,18]),import.meta.url),r.at(8)??t(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),r.at(9)??t(()=>import("./preview-DE7p7AzZ.js"),__vite__mapDeps([27,9]),import.meta.url),r.at(10)??t(()=>import("./preview-BFptM-L4.js").then(l=>l.p),__vite__mapDeps([28,21,1,2,3,29,22,18,5,19]),import.meta.url)]);return I(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(P,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-BeKBFhL6.js","./jsx-runtime-DEdD30eg.js","./index-RYns6xqu.js","./index-CcnH5Kt0.js","./chart.stories-DiUCAWUR.js","./lit-element-CHc5qsYe.js","./drawtools.stories-Ol3q5WxA.js","./geosearch.stories-k1bTDeYr.js","./itemfilter.stories-CeTEqu4V.js","./index-DZLKizrv.js","./jsonform.stories-DlsetOfz.js","./layercontrol.stories-OpWIDS9x.js","./layout.stories-Dla_KBs_.js","./map.stories-Dz88GvaY.js","./stacinfo.stories-ct4OBscH.js","./storytelling.stories-BB-irUnK.js","./timecontrol.stories-DORzsTWU.js","./entry-preview-m3VPQc9J.js","./index-DrFu-skq.js","./directive-helpers-B-Rwybl1.js","./entry-preview-docs-Ci3mjUiw.js","./chunk-GKNNPQCW-BkHQSocK.js","./index-DxKRhftL.js","./tiny-invariant-BxWVcicq.js","./preview-9hFJSo5S.js","./preview-4hc1_nEH.js","./preview-DB9FwMii.js","./preview-DE7p7AzZ.js","./preview-zra5TLrG.js","./index-C4nnFC4q.js"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))m(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&m(s)}).observe(document,{childList:!0,subtree:!0});function l(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerPolicy&&(o.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?o.credentials="include":e.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function m(e){if(e.ep)return;e.ep=!0;const o=l(e);fetch(e.href,o)}})();const f="modulepreload",R=function(r,i){return new URL(r,i).href},O={},t=function(i,l,m){let e=Promise.resolve();if(l&&l.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),p=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));e=Promise.all(l.map(_=>{if(_=R(_,m),_ in O)return;O[_]=!0;const a=_.endsWith(".css"),d=a?'[rel="stylesheet"]':"";if(!!m)for(let c=o.length-1;c>=0;c--){const u=o[c];if(u.href===_&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${d}`))return;const n=document.createElement("link");if(n.rel=a?"stylesheet":f,a||(n.as="script",n.crossOrigin=""),n.href=_,p&&n.setAttribute("nonce",p),document.head.appendChild(n),a)return new Promise((c,u)=>{n.addEventListener("load",c),n.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})}))}return e.then(()=>i()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},{createBrowserChannel:y}=__STORYBOOK_MODULE_CHANNELS__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,E=y({page:"preview"});T.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const L={"./.storybook/About.mdx":async()=>t(()=>import("./About-BeKBFhL6.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),"./elements/chart/chart.stories.js":async()=>t(()=>import("./chart.stories-DiUCAWUR.js"),__vite__mapDeps([4,5]),import.meta.url),"./elements/drawtools/stories/drawtools.stories.js":async()=>t(()=>import("./drawtools.stories-Ol3q5WxA.js"),__vite__mapDeps([6,5]),import.meta.url),"./elements/geosearch/stories/geosearch.stories.js":async()=>t(()=>import("./geosearch.stories-k1bTDeYr.js"),__vite__mapDeps([7,5]),import.meta.url),"./elements/itemfilter/stories/itemfilter.stories.js":async()=>t(()=>import("./itemfilter.stories-CeTEqu4V.js"),__vite__mapDeps([8,9,5]),import.meta.url),"./elements/jsonform/stories/jsonform.stories.js":async()=>t(()=>import("./jsonform.stories-DlsetOfz.js"),__vite__mapDeps([10,5]),import.meta.url),"./elements/layercontrol/stories/layercontrol.stories.js":async()=>t(()=>import("./layercontrol.stories-OpWIDS9x.js"),__vite__mapDeps([11,5]),import.meta.url),"./elements/layout/stories/layout.stories.js":async()=>t(()=>import("./layout.stories-Dla_KBs_.js"),__vite__mapDeps([12,5]),import.meta.url),"./elements/map/map.stories.js":async()=>t(()=>import("./map.stories-Dz88GvaY.js"),__vite__mapDeps([13,5]),import.meta.url),"./elements/stacinfo/stories/stacinfo.stories.js":async()=>t(()=>import("./stacinfo.stories-ct4OBscH.js"),__vite__mapDeps([14,5]),import.meta.url),"./elements/storytelling/stories/storytelling.stories.js":async()=>t(()=>import("./storytelling.stories-BB-irUnK.js"),__vite__mapDeps([15,5]),import.meta.url),"./elements/timecontrol/stories/timecontrol.stories.js":async()=>t(()=>import("./timecontrol.stories-DORzsTWU.js"),__vite__mapDeps([16,5]),import.meta.url)};async function P(r){return L[r]()}const{composeConfigs:I,PreviewWeb:V,ClientApi:S}=__STORYBOOK_MODULE_PREVIEW_API__,D=async(r=[])=>{const i=await Promise.all([r.at(0)??t(()=>import("./entry-preview-m3VPQc9J.js"),__vite__mapDeps([17,18,5,19]),import.meta.url),r.at(1)??t(()=>import("./entry-preview-docs-Ci3mjUiw.js"),__vite__mapDeps([20,21,22,23,5]),import.meta.url),r.at(2)??t(()=>import("./preview-CB0AiCd1.js"),[],import.meta.url),r.at(3)??t(()=>import("./preview-Ct5NkTJf.js"),[],import.meta.url),r.at(4)??t(()=>import("./preview-9hFJSo5S.js"),__vite__mapDeps([24,18]),import.meta.url),r.at(5)??t(()=>import("./preview-BnWGZYux.js"),[],import.meta.url),r.at(6)??t(()=>import("./preview-4hc1_nEH.js"),__vite__mapDeps([25,23]),import.meta.url),r.at(7)??t(()=>import("./preview-DB9FwMii.js"),__vite__mapDeps([26,18]),import.meta.url),r.at(8)??t(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),r.at(9)??t(()=>import("./preview-DE7p7AzZ.js"),__vite__mapDeps([27,9]),import.meta.url),r.at(10)??t(()=>import("./preview-zra5TLrG.js").then(l=>l.p),__vite__mapDeps([28,21,1,2,3,29,22,18,5,19]),import.meta.url)]);return I(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(P,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-DhyC0JuC.js b/assets/index-C4nnFC4q.js similarity index 99% rename from assets/index-DhyC0JuC.js rename to assets/index-C4nnFC4q.js index 05044db8e..206617ffd 100644 --- a/assets/index-DhyC0JuC.js +++ b/assets/index-C4nnFC4q.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BQ3BInS0.js","./iframe-CyVltN8V.js","./index-RYns6xqu.js","./index-DxKRhftL.js","./index-DrFu-skq.js","./Color-KGDBMAHA-Blzvso4Y.js"])))=>i.map(i=>d[i]); -var lz=Object.defineProperty;var sz=(e,t,r)=>t in e?lz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zn=(e,t,r)=>sz(e,typeof t!="symbol"?t+"":t,r);import{_ as Kx}from"./iframe-CyVltN8V.js";import{r as u,g as cu,R as b,c as Gu}from"./index-RYns6xqu.js";import{e as k4,s as ip}from"./index-DxKRhftL.js";import{d as uz}from"./index-DrFu-skq.js";var cz=Object.create,Yx=Object.defineProperty,dz=Object.getOwnPropertyDescriptor,Xx=Object.getOwnPropertyNames,pz=Object.getPrototypeOf,fz=Object.prototype.hasOwnProperty,Yi=(e,t)=>function(){return t||(0,e[Xx(e)[0]])((t={exports:{}}).exports,t),t.exports},hz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Xx(t))!fz.call(e,a)&&a!==r&&Yx(e,a,{get:()=>t[a],enumerable:!(n=dz(t,a))||n.enumerable});return e},mz=(e,t,r)=>(r=e!=null?cz(pz(e)):{},hz(!e||!e.__esModule?Yx(r,"default",{value:e,enumerable:!0}):r,e)),xr=e=>`control-${e.replace(/\s+/g,"-")}`,Bd=e=>`set-${e.replace(/\s+/g,"-")}`,gz=Object.create,K2=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,yz=Object.getOwnPropertyNames,wz=Object.getPrototypeOf,bz=Object.prototype.hasOwnProperty,T=(e,t)=>K2(e,"name",{value:t,configurable:!0}),Ku=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ld=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ez=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yz(t))!bz.call(e,a)&&a!==r&&K2(e,a,{get:()=>t[a],enumerable:!(n=vz(t,a))||n.enumerable});return e},Y2=(e,t,r)=>(r=e!=null?gz(wz(e)):{},Ez(t||!e||!e.__esModule?K2(r,"default",{value:e,enumerable:!0}):r,e)),xz=Ld(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,C=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===a||W===p||W===i||W===o||W===m||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===g||W.$$typeof===v||W.$$typeof===l||W.$$typeof===s||W.$$typeof===h||W.$$typeof===E||W.$$typeof===y||W.$$typeof===w||W.$$typeof===C)}T(x,"isValidElementType");function D(W){if(typeof W=="object"&&W!==null){var tr=W.$$typeof;switch(tr){case r:var Ar=W.type;switch(Ar){case d:case p:case a:case i:case o:case m:return Ar;default:var Da=Ar&&Ar.$$typeof;switch(Da){case s:case h:case g:case v:case l:return Da;default:return tr}}case n:return tr}}}T(D,"typeOf");var S=d,k=p,A=s,_=l,$=r,I=h,L=a,B=g,j=v,P=n,H=i,q=o,z=m,O=!1;function N(W){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),K(W)||D(W)===d}T(N,"isAsyncMode");function K(W){return D(W)===p}T(K,"isConcurrentMode");function J(W){return D(W)===s}T(J,"isContextConsumer");function te(W){return D(W)===l}T(te,"isContextProvider");function re(W){return typeof W=="object"&&W!==null&&W.$$typeof===r}T(re,"isElement");function U(W){return D(W)===h}T(U,"isForwardRef");function Z(W){return D(W)===a}T(Z,"isFragment");function ee(W){return D(W)===g}T(ee,"isLazy");function ke(W){return D(W)===v}T(ke,"isMemo");function qe(W){return D(W)===n}T(qe,"isPortal");function kr(W){return D(W)===i}T(kr,"isProfiler");function Dt(W){return D(W)===o}T(Dt,"isStrictMode");function er(W){return D(W)===m}T(er,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=$,e.ForwardRef=I,e.Fragment=L,e.Lazy=B,e.Memo=j,e.Portal=P,e.Profiler=H,e.StrictMode=q,e.Suspense=z,e.isAsyncMode=N,e.isConcurrentMode=K,e.isContextConsumer=J,e.isContextProvider=te,e.isElement=re,e.isForwardRef=U,e.isFragment=Z,e.isLazy=ee,e.isMemo=ke,e.isPortal=qe,e.isProfiler=kr,e.isStrictMode=Dt,e.isSuspense=er,e.isValidElementType=x,e.typeOf=D})()}),Cz=Ld((e,t)=>{t.exports=xz()}),Zx=Ld((e,t)=>{var r=Cz(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=o,l[r.Memo]=i;function s(C){return r.isMemo(C)?i:l[C.$$typeof]||n}T(s,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(C,E,y){if(typeof E!="string"){if(v){var w=f(E);w&&w!==v&&g(C,w,y)}var x=p(E);h&&(x=x.concat(h(E)));for(var D=s(C),S=s(E),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return T(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof Ku=="function"&&Ku;if(!p&&h)return h(d,!0);if(l)return l(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}T(i,"s");for(var l=typeof Ku=="function"&&Ku,s=0;s=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(i,l){var s;for(s=0;s0&&(y[E]={cacheItem:v,arg:arguments[E]},w?i(h,y):h.push(y),h.length>d&&l(h.shift())),f.wasMemoized=w,f.numArgs=E+1,C},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=h,f}};function i(d,p){var h=d.length,m=p.length,f,v,g;for(v=0;v=0&&(h=d[f],m=h.cacheItem.get(h.arg),!m||!m.size);f--)h.cacheItem.delete(h.arg)}T(l,"removeCachedResult");function s(d,p){return d===p||d!==d&&p!==p}T(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var lz=Object.defineProperty;var sz=(e,t,r)=>t in e?lz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zn=(e,t,r)=>sz(e,typeof t!="symbol"?t+"":t,r);import{_ as Kx}from"./iframe-BM56Rj-4.js";import{r as u,g as cu,R as b,c as Gu}from"./index-RYns6xqu.js";import{e as k4,s as ip}from"./index-DxKRhftL.js";import{d as uz}from"./index-DrFu-skq.js";var cz=Object.create,Yx=Object.defineProperty,dz=Object.getOwnPropertyDescriptor,Xx=Object.getOwnPropertyNames,pz=Object.getPrototypeOf,fz=Object.prototype.hasOwnProperty,Yi=(e,t)=>function(){return t||(0,e[Xx(e)[0]])((t={exports:{}}).exports,t),t.exports},hz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Xx(t))!fz.call(e,a)&&a!==r&&Yx(e,a,{get:()=>t[a],enumerable:!(n=dz(t,a))||n.enumerable});return e},mz=(e,t,r)=>(r=e!=null?cz(pz(e)):{},hz(!e||!e.__esModule?Yx(r,"default",{value:e,enumerable:!0}):r,e)),xr=e=>`control-${e.replace(/\s+/g,"-")}`,Bd=e=>`set-${e.replace(/\s+/g,"-")}`,gz=Object.create,K2=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,yz=Object.getOwnPropertyNames,wz=Object.getPrototypeOf,bz=Object.prototype.hasOwnProperty,T=(e,t)=>K2(e,"name",{value:t,configurable:!0}),Ku=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ld=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ez=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yz(t))!bz.call(e,a)&&a!==r&&K2(e,a,{get:()=>t[a],enumerable:!(n=vz(t,a))||n.enumerable});return e},Y2=(e,t,r)=>(r=e!=null?gz(wz(e)):{},Ez(t||!e||!e.__esModule?K2(r,"default",{value:e,enumerable:!0}):r,e)),xz=Ld(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,C=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===a||W===p||W===i||W===o||W===m||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===g||W.$$typeof===v||W.$$typeof===l||W.$$typeof===s||W.$$typeof===h||W.$$typeof===E||W.$$typeof===y||W.$$typeof===w||W.$$typeof===C)}T(x,"isValidElementType");function D(W){if(typeof W=="object"&&W!==null){var tr=W.$$typeof;switch(tr){case r:var Ar=W.type;switch(Ar){case d:case p:case a:case i:case o:case m:return Ar;default:var Da=Ar&&Ar.$$typeof;switch(Da){case s:case h:case g:case v:case l:return Da;default:return tr}}case n:return tr}}}T(D,"typeOf");var S=d,k=p,A=s,_=l,$=r,I=h,L=a,B=g,j=v,P=n,H=i,q=o,z=m,O=!1;function N(W){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),K(W)||D(W)===d}T(N,"isAsyncMode");function K(W){return D(W)===p}T(K,"isConcurrentMode");function J(W){return D(W)===s}T(J,"isContextConsumer");function te(W){return D(W)===l}T(te,"isContextProvider");function re(W){return typeof W=="object"&&W!==null&&W.$$typeof===r}T(re,"isElement");function U(W){return D(W)===h}T(U,"isForwardRef");function Z(W){return D(W)===a}T(Z,"isFragment");function ee(W){return D(W)===g}T(ee,"isLazy");function ke(W){return D(W)===v}T(ke,"isMemo");function qe(W){return D(W)===n}T(qe,"isPortal");function kr(W){return D(W)===i}T(kr,"isProfiler");function Dt(W){return D(W)===o}T(Dt,"isStrictMode");function er(W){return D(W)===m}T(er,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=$,e.ForwardRef=I,e.Fragment=L,e.Lazy=B,e.Memo=j,e.Portal=P,e.Profiler=H,e.StrictMode=q,e.Suspense=z,e.isAsyncMode=N,e.isConcurrentMode=K,e.isContextConsumer=J,e.isContextProvider=te,e.isElement=re,e.isForwardRef=U,e.isFragment=Z,e.isLazy=ee,e.isMemo=ke,e.isPortal=qe,e.isProfiler=kr,e.isStrictMode=Dt,e.isSuspense=er,e.isValidElementType=x,e.typeOf=D})()}),Cz=Ld((e,t)=>{t.exports=xz()}),Zx=Ld((e,t)=>{var r=Cz(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=o,l[r.Memo]=i;function s(C){return r.isMemo(C)?i:l[C.$$typeof]||n}T(s,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(C,E,y){if(typeof E!="string"){if(v){var w=f(E);w&&w!==v&&g(C,w,y)}var x=p(E);h&&(x=x.concat(h(E)));for(var D=s(C),S=s(E),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return T(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof Ku=="function"&&Ku;if(!p&&h)return h(d,!0);if(l)return l(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}T(i,"s");for(var l=typeof Ku=="function"&&Ku,s=0;s=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(i,l){var s;for(s=0;s0&&(y[E]={cacheItem:v,arg:arguments[E]},w?i(h,y):h.push(y),h.length>d&&l(h.shift())),f.wasMemoized=w,f.numArgs=E+1,C},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=h,f}};function i(d,p){var h=d.length,m=p.length,f,v,g;for(v=0;v=0&&(h=d[f],m=h.cacheItem.get(h.arg),!m||!m.size);f--)h.cacheItem.delete(h.arg)}T(l,"removeCachedResult");function s(d,p){return d===p||d!==d&&p!==p}T(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Le(Xi,--Et):0,Ci--,De===10&&(Ci=1,Pd--),De}T(iC,"prev");function mt(){return De=Et2||Di(De)>3?"":" "}T(lC,"whitespace");function sC(e,t){for(;--t&&mt()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return Zi(e,us()+(t<6&&fr()==32&&mt()==32))}T(sC,"escaping");function b0(e){for(;mt();)switch(De){case e:return Et;case 34:case 39:e!==34&&e!==39&&b0(De);break;case 40:e===41&&b0(e);break;case 92:mt();break}return Et}T(b0,"delimiter");function uC(e,t){for(;mt()&&e+De!==57&&!(e+De===84&&fr()===47););return"/*"+Zi(t,Et-1)+"*"+Od(e===47?e:mt())}T(uC,"commenter");function cC(e){for(;!Di(fr());)mt();return Zi(e,Et)}T(cC,"identifier");function dC(e){return n5(ds("",null,null,null,[""],e=r5(e),0,[0],e))}T(dC,"compile");function ds(e,t,r,n,a,o,i,l,s){for(var d=0,p=0,h=i,m=0,f=0,v=0,g=1,C=1,E=1,y=0,w="",x=a,D=o,S=n,k=w;C;)switch(v=y,y=mt()){case 40:if(v!=108&&Le(k,h-1)==58){w0(k+=oe(cs(y),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:k+=cs(y);break;case 9:case 10:case 13:case 32:k+=lC(v);break;case 92:k+=sC(us()-1,7);continue;case 47:switch(fr()){case 42:case 47:Kl(pC(uC(mt(),us()),t,r),s);break;default:k+="/"}break;case 123*g:l[d++]=sr(k)*E;case 125*g:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+p:E==-1&&(k=oe(k,/\f/g,"")),f>0&&sr(k)-h&&Kl(f>32?om(k+";",n,r,h-1):om(oe(k," ","")+";",n,r,h-2),s);break;case 59:k+=";";default:if(Kl(S=am(k,t,r,d,p,a,l,w,x=[],D=[],h),o),y===123)if(p===0)ds(k,t,S,S,x,o,h,l,D);else switch(m===99&&Le(k,3)===110?100:m){case 100:case 108:case 109:case 115:ds(e,S,S,n&&Kl(am(e,S,S,0,0,a,l,w,a,x=[],h),D),a,D,h,l,n?x:D);break;default:ds(k,S,S,S,[""],D,0,l,D)}}d=p=f=0,g=E=1,w=k="",h=i;break;case 58:h=1+sr(k),f=v;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&iC()==125)continue}switch(k+=Od(y),y*g){case 38:E=p>0?1:(k+="\f",-1);break;case 44:l[d++]=(sr(k)-1)*E,E=1;break;case 64:fr()===45&&(k+=cs(mt())),m=fr(),p=h=sr(w=k+=cC(us())),y++;break;case 45:v===45&&sr(k)==2&&(g=0)}}return o}T(ds,"parse");function am(e,t,r,n,a,o,i,l,s,d,p){for(var h=a-1,m=a===0?o:[""],f=Md(m),v=0,g=0,C=0;v0?m[E]+" "+y:oe(y,/&\f/g,m[E])))&&(s[C++]=w);return du(e,t,r,a===0?Q2:l,s,d,p)}T(am,"ruleset");function pC(e,t,r){return du(e,t,r,J2,Od(oC()),xi(e,2,-2),0)}T(pC,"comment");function om(e,t,r,n){return du(e,t,r,e5,xi(e,0,n),xi(e,n+1,-1),n)}T(om,"declaration");function Ka(e,t){for(var r="",n=Md(e),a=0;a-1},"isIgnoringComment"),Mz=T(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,l=i.length-1;l>=0;l--){var s=i[l];if(s.line=0;r--)if(!mC(t[r]))return!0;return!1},"isPrependedWithRegularRules"),F4=T(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),Nz=T(function(e,t,r){mC(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),F4(e)):Pz(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),F4(e)))},"incorrectImportAlarm");function a5(e,t){switch(tC(e,t)){case 5103:return ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+y0+e+Je+e+e;case 6828:case 4268:return ie+e+Je+e+e;case 6165:return ie+e+Je+"flex-"+e+e;case 5187:return ie+e+oe(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return ie+e+Je+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ie+e+Je+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+Je+oe(e,"shrink","negative")+e;case 5292:return ie+e+Je+oe(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+oe(e,"-grow","")+ie+e+Je+oe(e,"grow","positive")+e;case 4554:return ie+oe(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sr(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+y0+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~w0(e,"stretch")?a5(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,sr(e)-3-(~w0(e,"!important")&&10))){case 107:return oe(e,":",":"+ie)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Le(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return ie+e+Je+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+Je+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+Je+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+Je+e+e}return e}T(a5,"prefix");var jz=T(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case e5:e.return=a5(e.value,e.length);break;case eC:return Ka([No(e,{value:oe(e.value,"@","@"+ie)})],n);case Q2:if(e.length)return nC(e.props,function(a){switch(rC(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ka([No(e,{props:[oe(a,/:(read-\w+)/,":"+y0+"$1")]})],n);case"::placeholder":return Ka([No(e,{props:[oe(a,/:(plac\w+)/,":"+ie+"input-$1")]}),No(e,{props:[oe(a,/:(plac\w+)/,":"+y0+"$1")]}),No(e,{props:[oe(a,/:(plac\w+)/,Je+"input-$1")]})],n)}return""})}},"prefixer"),Hz=[jz],Vz=T(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||Hz;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),C=1;C=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}T(gC,"murmur2");var Gz={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$4=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -560,7 +560,7 @@ ${t}`);let r=t.match(Uq);if(!r)return b.createElement(u.Fragment,null,t);let[,n, * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */const{global:Gt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:i0e,once:l0e,logger:g4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:Ix,composeConfigs:ofe,Preview:ife,DocsContext:lfe}=__STORYBOOK_MODULE_PREVIEW_API__,{GLOBALS_UPDATED:Rx,STORY_ARGS_UPDATED:zx,UPDATE_STORY_ARGS:s0e,RESET_STORY_ARGS:u0e,NAVIGATE_URL:c0e}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var d0e=Yi({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),p0e=Yi({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,l=!0,s=" ";function d(x,D){var S=D.appendChild(h(x));if(x.children.length){var k=m(x.isCollapsed);x.children.forEach(function(A){d(A,k)}),S.appendChild(k)}}function p(x,D){var S=!1,k=m(S);if(D.forEach(function(A){d(A,k)}),i=x||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(k)}function h(x){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",x.textContent),r.includeHtml&&x.childNodes.length?n.call(x.childNodes,function(k){S.appendChild(k.cloneNode(!0))}):S.textContent=x.textContent,S.setAttribute("href",r.basePath+"#"+x.id),S.setAttribute("class",r.linkClass+s+"node-name--"+x.nodeName+s+r.extraLinkClasses),D.appendChild(S),D}function m(x){var D=r.orderedList?"ol":"ul",S=document.createElement(D),k=r.listClass+s+r.extraListClasses;return x&&(k=k+s+r.collapsibleClass,k=k+s+r.isCollapsedClass),S.setAttribute("class",k),S}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var x;x=document.querySelector(r.scrollContainer).scrollTop}else x=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),x>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=s+r.positionFixedClass):D.className=D.className.replace(s+r.positionFixedClass,"")}function v(x){var D=0;return x!==null&&(D=x.offsetTop,r.hasInnerContainers&&(D+=v(x.offsetParent))),D}function g(x,D){return x&&x.className!==D&&(x.className=D),x}function C(x){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&f();var S=x,k;if(l&&i!==null&&S.length>0){a.call(S,function(j,P){if(v(j)>D+r.headingsOffset+10){var H=P===0?P:P-1;return k=S[H],!0}else if(P===S.length-1)return k=S[S.length-1],!0});var A=i.querySelector("."+r.activeLinkClass),_=i.querySelector("."+r.linkClass+".node-name--"+k.nodeName+'[href="'+r.basePath+"#"+k.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(A===_)return;var $=i.querySelectorAll("."+r.linkClass);n.call($,function(j){g(j,j.className.replace(s+r.activeLinkClass,""))});var I=i.querySelectorAll("."+r.listItemClass);n.call(I,function(j){g(j,j.className.replace(s+r.activeListItemClass,""))}),_&&_.className.indexOf(r.activeLinkClass)===-1&&(_.className+=s+r.activeLinkClass);var L=_&&_.parentNode;L&&L.className.indexOf(r.activeListItemClass)===-1&&(L.className+=s+r.activeListItemClass);var B=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(B,function(j){j.className.indexOf(r.isCollapsedClass)===-1&&(j.className+=s+r.isCollapsedClass)}),_&&_.nextSibling&&_.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(_.nextSibling,_.nextSibling.className.replace(s+r.isCollapsedClass,"")),E(_&&_.parentNode.parentNode)}}function E(x){return x&&x.className.indexOf(r.collapsibleClass)!==-1&&x.className.indexOf(r.isCollapsedClass)!==-1?(g(x,x.className.replace(s+r.isCollapsedClass,"")),E(x.parentNode.parentNode)):x}function y(x){var D=x.target||x.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(l=!1)}function w(){l=!0}return{enableTocAnimation:w,disableTocAnimation:y,render:p,updateToc:C}}}}),f0e=Yi({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function l(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let m=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var f={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:m};return r.includeHtml&&(f.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,h):f}function s(h,m){for(var f=l(h),v=f.headingLevel,g=m,C=a(g),E=C?C.headingLevel:0,y=v-E;y>0&&(C=a(g),!(C&&v===C.headingLevel));)C&&C.children!==void 0&&(g=C.children),y--;return v>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function d(h,m){var f=m;r.ignoreSelector&&(f=m.split(",").map(function(v){return v.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function p(h){return n.call(h,function(m,f){var v=l(f);return v&&s(v,m.nest),m},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:d}}}}),h0e=Yi({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),m0e=Yi({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;l();function l(){document.body.addEventListener("click",h,!1);function h(m){!s(m.target)||m.target.className.indexOf("no-smooth-scroll")>-1||m.target.href.charAt(m.target.href.length-2)==="#"&&m.target.href.charAt(m.target.href.length-1)==="!"||m.target.className.indexOf(n.linkClass)===-1||r(m.target.hash,{duration:a,offset:o,callback:function(){p(m.target.hash)}})}}function s(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function p(h){var m=document.getElementById(h.substring(1));m&&(/^(?:a|select|input|button|textarea)$/i.test(m.tagName)||(m.tabIndex=-1),m.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||v},l=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),s=typeof n=="string"?i.offset+(n?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(s):i.duration,p,h;requestAnimationFrame(function(g){p=g,m(g)});function m(g){h=g-p,window.scrollTo(0,i.easing(h,o,s,d)),h"u"&&!h)return;var m,f=Object.prototype.hasOwnProperty;function v(){for(var y={},w=0;w({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:he(.3,e.color.defaultText),fontSize:e.typography.size.s2})),BR=e=>b.createElement(v0e,{...e,className:"docblock-emptyblock sb-unstyled"}),y0e=F(By)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),w0e=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Lc=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${um}`]:{margin:0}})),b0e=()=>b.createElement(w0e,null,b.createElement(Lc,null),b.createElement(Lc,{style:{width:"80%"}}),b.createElement(Lc,{style:{width:"30%"}}),b.createElement(Lc,{style:{width:"80%"}})),LR=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:l}=xC();if(e)return b.createElement(b0e,null);if(t)return b.createElement(BR,null,t);let s=b.createElement(y0e,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return s;let d=a?lm.dark:lm.light;return b.createElement(CC,{theme:sm({...d,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},Ae=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,v4=600,E0e=F.h1(Ee,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${v4}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),x0e=F.h2(Ee,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${v4}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:he(.25,e.color.defaultText)})),C0e=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?he(.1,e.color.defaultText):he(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[Ae("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Ae("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Ae("div")]:t,[Ae("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Ae("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Ae("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Ae("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Ae("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Ae("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Ae("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Ae("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Ae("img")]:{maxWidth:"100%"},[Ae("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Ae("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Ae("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Ae("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Ae("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Ae("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Ae("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),D0e=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${v4}px)`]:{}})),S0e=({children:e,toc:t})=>b.createElement(D0e,{className:"sbdocs sbdocs-wrapper"},b.createElement(C0e,{className:"sbdocs sbdocs-content"},e),t),rp=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),k0e=F(Uy)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),A0e=F.div({display:"flex",alignItems:"center",gap:4}),_0e=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),F0e=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>b.createElement(k0e,{...o},b.createElement(A0e,{key:"left"},e?[1,2,3].map(i=>b.createElement(_0e,{key:i})):b.createElement(b.Fragment,null,b.createElement(Qa,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},b.createElement(lY,null)),b.createElement(Qa,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},b.createElement(sY,null)),b.createElement(Qa,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},b.createElement(uY,null))))),OR=u.createContext({scale:1}),{window:$0e}=Gt,T0e=class extends u.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=$0e.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return b.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},{PREVIEW_URL:I0e}=Gt,R0e=I0e||"iframe.html",j2=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,z0e=e=>{let t=u.useRef(),[r,n]=u.useState(!0),[a,o]=u.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:d,renderStoryToElement:p}=e;return u.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,m=p(i,h,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:s,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>m())}},[s,p,i]),a?b.createElement("pre",null,b.createElement(Kq,{error:a})):b.createElement(b.Fragment,null,l?b.createElement("style",null,`#${j2(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&b.createElement(MR,null),b.createElement("div",{ref:t,id:`${j2(e)}-inner`,"data-name":i.name}))},B0e=({story:e,height:t="500px"})=>b.createElement("div",{style:{width:"100%",height:t}},b.createElement(OR.Consumer,null,({scale:r})=>b.createElement(T0e,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:vK(R0e,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),L0e=F.strong(({theme:e})=>({color:e.color.orange})),O0e=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?b.createElement(L0e,null,"This story mounts inside of play. Set"," ",b.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):b.createElement("div",{id:j2(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?b.createElement(z0e,{...e}):b.createElement(B0e,{...e}))},MR=()=>b.createElement(gK,null),M0e=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Bx=F(LR)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Mr(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Mr(.05,e.background.content)}})),P0e=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...rp(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),N0e=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:b.createElement(Bx,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:b.createElement(Bx,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function j0e(e){if(u.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var H0e=F(F0e)({position:"absolute",top:0,left:0,right:0,height:40}),V0e=F.div({overflow:"hidden",position:"relative"}),PR=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:d="padded",...p})=>{let[h,m]=u.useState(i),{source:f,actionItem:v}=N0e(a,h,m),[g,C]=u.useState(1),E=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),y=a?[v]:[],[w,x]=u.useState(l?[...l]:[]),D=[...y,...w],{window:S}=Gt,k=u.useCallback(async _=>{let{createCopyToClipboardFunction:$}=await Kx(()=>import("./index-BQ3BInS0.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url);$()},[]),A=_=>{let $=S.getSelection();$&&$.type==="Range"||(_.preventDefault(),w.filter(I=>I.title==="Copied").length===0&&k(f.props.code).then(()=>{x([...w,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>x(w.filter(I=>I.title!=="Copied")),1500)}))};return b.createElement(P0e,{withSource:a,withToolbar:o,...p,className:E.join(" ")},o&&b.createElement(H0e,{isLoading:e,border:!0,zoom:_=>C(g*_),resetZoom:()=>C(1),storyId:j0e(n),baseUrl:"./iframe.html"}),b.createElement(OR.Provider,{value:{scale:g}},b.createElement(V0e,{className:"docs-story",onCopyCapture:a&&A},b.createElement(M0e,{isColumn:t||!Array.isArray(n),columns:r,layout:d},b.createElement(Nq.Element,{scale:g},Array.isArray(n)?n.map((_,$)=>b.createElement("div",{key:$},_)):b.createElement("div",null,n))),b.createElement(pv,{actionItems:D}))),a&&h&&f)};F(PR)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var U0e=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Ea({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),W0e=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:b.createElement(b.Fragment,null,b.createElement(U0e,null,b.createElement("tbody",null,n&&b.createElement("tr",{key:"deprecated"},b.createElement("td",{colSpan:2},b.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>b.createElement("tr",{key:o.name},b.createElement("td",null,b.createElement("code",null,o.name)),b.createElement("td",null,o.description))),a&&b.createElement("tr",{key:"returns"},b.createElement("td",null,b.createElement("code",null,"Returns")),b.createElement("td",null,e.returns.description)))))},H2=8,Lx=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),q0e=F.span(Ea,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),G0e=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),K0e=F.div(Ea,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),Y0e=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),X0e=F(yY)({marginLeft:4}),Z0e=F(xI)({marginLeft:4}),J0e=()=>b.createElement("span",null,"-"),NR=({text:e,simple:t})=>b.createElement(q0e,{simple:t},e),Q0e=ER(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),ede=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return rie(t)},Ox=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,H2)),r.map(n=>b.createElement(NR,{key:n,text:n===""?'""':n}))},tde=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=u.useState(!1),[i,l]=u.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return b.createElement(NR,{text:s});let d=ede(s),p=d.length;return p>H2?b.createElement(Lx,{isExpanded:i},Ox(d,i),b.createElement(G0e,{onClick:()=>l(!i)},i?"Show less...":`Show ${p-H2} more...`)):b.createElement(Lx,null,Ox(d))}return b.createElement(bG,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:b.createElement(Y0e,{width:Q0e(n)},b.createElement(By,{language:"jsx",format:!1},n))},b.createElement(K0e,{className:"sbdocs-expandable"},b.createElement("span",null,s),a?b.createElement(X0e,null):b.createElement(Z0e,null)))},tm=({value:e,initialExpandedArgs:t})=>e==null?b.createElement(J0e,null):b.createElement(tde,{value:e,initialExpandedArgs:t}),rde=F.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:he(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Rc(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Rc(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Rc(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Rc(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),nde=e=>e==="true",ade=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var p;let i=u.useCallback(()=>r(!1),[r]),l=!!((p=o==null?void 0:o.table)!=null&&p.readonly);if(t===void 0)return b.createElement(xo,{variant:"outline",size:"medium",id:Bd(e),onClick:i,disabled:l},"Set boolean");let s=xr(e),d=typeof t=="string"?nde(t):t;return b.createElement(rde,{"aria-disabled":l,htmlFor:s,"aria-label":e},b.createElement("input",{id:s,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:l,name:e,onBlur:n,onFocus:a}),b.createElement("span",{"aria-hidden":"true"},"False"),b.createElement("span",{"aria-hidden":"true"},"True"))},ode=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},ide=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},lde=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},sde=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},Mx=F(Nu.Input)(({readOnly:e})=>({opacity:e?.5:1})),ude=F.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),cde=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var v;let[i,l]=u.useState(!0),s=u.useRef(),d=u.useRef(),p=!!((v=o==null?void 0:o.table)!=null&&v.readonly);u.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?lde(t):""),d&&d.current&&(d.current.value=t?sde(t):""))},[t]);let h=g=>{if(!g.target.value)return r();let C=ode(g.target.value),E=new Date(t);E.setFullYear(C.getFullYear(),C.getMonth(),C.getDate());let y=E.getTime();y&&r(y),l(!!y)},m=g=>{if(!g.target.value)return r();let C=ide(g.target.value),E=new Date(t);E.setHours(C.getHours()),E.setMinutes(C.getMinutes());let y=E.getTime();y&&r(y),l(!!y)},f=xr(e);return b.createElement(ude,null,b.createElement(Mx,{type:"date",max:"9999-12-31",ref:s,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),b.createElement(Mx,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:d,onChange:m,readOnly:p,onFocus:n,onBlur:a}),i?null:b.createElement("div",null,"invalid"))},dde=F.label({display:"flex"}),pde=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},fde=F(Nu.Input)(({readOnly:e})=>({opacity:e?.5:1})),hde=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:l,argType:s})=>{var w;let[d,p]=u.useState(typeof t=="number"?t:""),[h,m]=u.useState(!1),[f,v]=u.useState(null),g=!!((w=s==null?void 0:s.table)!=null&&w.readonly),C=u.useCallback(x=>{p(x.target.value);let D=parseFloat(x.target.value);Number.isNaN(D)?v(new Error(`'${x.target.value}' is not a number`)):(r(D),v(null))},[r,v]),E=u.useCallback(()=>{p("0"),r(0),m(!0)},[m]),y=u.useRef(null);return u.useEffect(()=>{h&&y.current&&y.current.select()},[h]),u.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?b.createElement(xo,{variant:"outline",size:"medium",id:Bd(e),onClick:E,disabled:g},"Set number"):b.createElement(dde,null,b.createElement(fde,{ref:y,id:xr(e),type:"number",onChange:C,size:"flex",placeholder:"Edit number...",value:d,valid:f?"error":null,autoFocus:h,readOnly:g,name:e,min:n,max:a,step:o,onFocus:l,onBlur:i}))},jR=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},V2=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],HR=(e,t)=>e&&t&&e.map(r=>t[r]),mde=F.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),gde=F.span({"[aria-readonly=true] &":{opacity:.5}}),vde=F.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Px=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var m;if(!t)return g4.warn(`Checkbox with no options: ${e}`),b.createElement(b.Fragment,null,"-");let i=V2(r,t),[l,s]=u.useState(i),d=!!((m=o==null?void 0:o.table)!=null&&m.readonly),p=f=>{let v=f.target.value,g=[...l];g.includes(v)?g.splice(g.indexOf(v),1):g.push(v),n(HR(g,t)),s(g)};u.useEffect(()=>{s(V2(r,t))},[r]);let h=xr(e);return b.createElement(mde,{"aria-readonly":d,isInline:a},Object.keys(t).map((f,v)=>{let g=`${h}-${v}`;return b.createElement(vde,{key:g,htmlFor:g},b.createElement("input",{type:"checkbox",disabled:d,id:g,name:g,value:f,onChange:p,checked:l==null?void 0:l.includes(f)}),b.createElement(gde,null,f))}))},yde=F.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),wde=F.span({"[aria-readonly=true] &":{opacity:.5}}),bde=F.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Nx=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return g4.warn(`Radio with no options: ${e}`),b.createElement(b.Fragment,null,"-");let i=jR(r,t),l=xr(e),s=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return b.createElement(yde,{"aria-readonly":s,isInline:a},Object.keys(t).map((p,h)=>{let m=`${l}-${h}`;return b.createElement(bde,{key:m,htmlFor:m},b.createElement("input",{type:"radio",id:m,name:l,disabled:s,value:p,onChange:f=>n(t[f.currentTarget.value]),checked:p===i}),b.createElement(wde,null,p))}))},Ede={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},VR=F.select(Ede,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),UR=F.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),jx="Choose option...",xde=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{n(r[p.currentTarget.value])},i=jR(t,r)||jx,l=xr(e),s=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return b.createElement(UR,null,b.createElement(xI,null),b.createElement(VR,{disabled:s,id:l,value:i,onChange:o},b.createElement("option",{key:"no-selection",disabled:!0},jx),Object.keys(r).map(p=>b.createElement("option",{key:p,value:p},p))))},Cde=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{let h=Array.from(p.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(HR(h,r))},i=V2(t,r),l=xr(e),s=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return b.createElement(UR,null,b.createElement(VR,{disabled:s,id:l,multiple:!0,value:i,onChange:o},Object.keys(r).map(p=>b.createElement("option",{key:p,value:p},p))))},Hx=e=>{let{name:t,options:r}=e;return r?e.isMulti?b.createElement(Cde,{...e}):b.createElement(xde,{...e}):(g4.warn(`Select with no options: ${t}`),b.createElement(b.Fragment,null,"-"))},Dde=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,Sde={check:Px,"inline-check":Px,radio:Nx,"inline-radio":Nx,select:Hx,"multi-select":Hx},Po=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?Dde(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=Sde[t];if(o)return b.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},y4="value",kde="key",Ade="Error",_de="Object",Fde="Array",$de="String",Tde="Number",Ide="Boolean",Rde="Date",zde="Null",Bde="Undefined",Lde="Function",Ode="Symbol",WR="ADD_DELTA_TYPE",qR="REMOVE_DELTA_TYPE",GR="UPDATE_DELTA_TYPE";function Ga(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function KR(e,t){let r=Ga(e),n=Ga(t);return(r==="Function"||n==="Function")&&n!==r}var w4=class extends u.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,l={};if(!t){if(!o.value)return;l.key=o.value}l.newValue=r(!1,n,a,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,l=u.cloneElement(r,{onClick:this.onSubmit}),s=u.cloneElement(n,{onClick:e}),d=a(y4,o,i),p=u.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(kde,o,i);h=u.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return b.createElement("span",{className:"rejt-add-value-node"},h,p,s,l)}};w4.defaultProps={onlyValue:!1,addButtonElement:b.createElement("button",null,"+"),cancelButtonElement:b.createElement("button",null,"c")};var YR=class extends u.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let l={keyPath:a,deep:o,key:e,oldValue:i,type:qR};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],i),s({type:WR,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:l}=this.state,s=o[e];a(e,i,l,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:GR,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:d,collapsed:p}=i(e,t,r,n,l),h=o(e,t,r,n,l),m=u.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return b.createElement("span",{className:"rejt-collapsed"},b.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}=this.props,{minus:A,plus:_,delimiter:$,ul:I,addForm:L}=p(e,t,r,n,h),B=d(e,t,r,n,h),j=u.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),P=u.cloneElement(E,{onClick:l,className:"rejt-minus-menu",style:A});return b.createElement("span",{className:"rejt-not-collapsed"},b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"["),!a&&j,b.createElement("ul",{className:"rejt-not-collapsed-list",style:I},t.map((H,q)=>b.createElement(np,{key:q,name:q.toString(),data:H,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(q),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}))),!B&&a&&b.createElement("div",{className:"rejt-add-form",style:L},b.createElement(w4,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:k})),b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"]"),!B&&P)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,a,o);return b.createElement("div",{className:"rejt-array-node"},b.createElement("span",{onClick:this.handleCollapseMode},b.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};YR.defaultProps={keyPath:[],deep:0,minusMenuElement:b.createElement("span",null," - "),plusMenuElement:b.createElement("span",null," + ")};var XR=class extends u.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,a,o,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:l}=this.state;if(!o)return;let s=n(!0,a,l,i,o.value);e({value:s,key:i}).then(()=>{KR(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:l,dataType:s,getStyle:d,editButtonElement:p,cancelButtonElement:h,textareaElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,s),C=null,E=null,y=l(e,i,n,a,s);if(r&&!y){let w=m(y4,v,a,e,i,s),x=u.cloneElement(p,{onClick:this.handleEdit}),D=u.cloneElement(h,{onClick:this.handleCancelEdit}),S=u.cloneElement(w,{ref:this.refInput,defaultValue:i});C=b.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,x),E=null}else{C=b.createElement("span",{className:"rejt-value",style:g.value,onClick:y?null:this.handleEditMode},t);let w=u.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});E=y?null:w}return b.createElement("li",{className:"rejt-function-value-node",style:g.li},b.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),C,E)}};XR.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:b.createElement("button",null,"e"),cancelButtonElement:b.createElement("button",null,"c"),minusMenuElement:b.createElement("span",null," - ")};var np=class extends u.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:d,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S}=this.props,k=()=>!0,A=Ga(e);switch(A){case Ade:return b.createElement(U2,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:k,dataType:A,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S});case _de:return b.createElement(U2,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:d,dataType:A,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S});case Fde:return b.createElement(YR,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:d,dataType:A,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S});case $de:return b.createElement(Pn,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Tde:return b.createElement(Pn,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Ide:return b.createElement(Pn,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Rde:return b.createElement(Pn,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:k,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case zde:return b.createElement(Pn,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Bde:return b.createElement(Pn,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Lde:return b.createElement(XR,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Ode:return b.createElement(Pn,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:k,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});default:return null}}};np.defaultProps={keyPath:[],deep:0};var U2=class extends u.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:WR,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let l={keyPath:a,deep:o,key:e,oldValue:i,type:qR};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:l}=this.state,s=o[e];a(e,i,l,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:GR,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:d,collapsed:p}=l(e,n,t,r,i),h=Object.getOwnPropertyNames(n),m=o(e,n,t,r,i),f=u.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return b.createElement("span",{className:"rejt-collapsed"},b.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}=this.props,{minus:A,plus:_,addForm:$,ul:I,delimiter:L}=p(e,t,r,n,h),B=Object.getOwnPropertyNames(t),j=d(e,t,r,n,h),P=u.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),H=u.cloneElement(E,{onClick:l,className:"rejt-minus-menu",style:A}),q=B.map(z=>b.createElement(np,{key:z,name:z,data:t[z],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(z),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}));return b.createElement("span",{className:"rejt-not-collapsed"},b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"{"),!j&&P,b.createElement("ul",{className:"rejt-not-collapsed-list",style:I},q),!j&&o&&b.createElement("div",{className:"rejt-add-form",style:$},b.createElement(w4,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:k})),b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"}"),!j&&H)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=o(e,r,n,a,i);return b.createElement("div",{className:"rejt-object-node"},b.createElement("span",{onClick:this.handleCollapseMode},b.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};U2.defaultProps={keyPath:[],deep:0,minusMenuElement:b.createElement("span",null," - "),plusMenuElement:b.createElement("span",null," + ")};var Pn=class extends u.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,a,o,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:l}=this.state;if(!o)return;let s=n(!0,a,l,i,o.value);e({value:s,key:i}).then(()=>{KR(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:l,dataType:s,getStyle:d,editButtonElement:p,cancelButtonElement:h,inputElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,s),C=l(e,i,n,a,s),E=r&&!C,y=m(y4,v,a,e,i,s),w=u.cloneElement(p,{onClick:this.handleEdit}),x=u.cloneElement(h,{onClick:this.handleCancelEdit}),D=u.cloneElement(y,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=u.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});return b.createElement("li",{className:"rejt-value-node",style:g.li},b.createElement("span",{className:"rejt-name",style:g.name},e," : "),E?b.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",x,w):b.createElement("span",{className:"rejt-value",style:g.value,onClick:C?null:this.handleEditMode},String(t)),!C&&!E&&S)}};Pn.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:b.createElement("button",null,"e"),cancelButtonElement:b.createElement("button",null,"c"),minusMenuElement:b.createElement("span",null," - ")};var Mde={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Pde={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Nde={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function jde(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var ZR=class extends u.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElement:d,textareaElement:p,minusMenuElement:h,plusMenuElement:m,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:C,onSubmitValueParser:E,fallback:y=null}=this.props,w=Ga(e),x=a;Ga(a)==="Boolean"&&(x=()=>a);let D=d;d&&Ga(d)!=="Function"&&(D=()=>d);let S=p;return p&&Ga(p)!=="Function"&&(S=()=>p),w==="Object"||w==="Array"?b.createElement("div",{className:"rejt-tree"},b.createElement(np,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:x,getStyle:o,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:C,onSubmitValueParser:E})):y}};ZR.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Mde;case"Array":return Pde;default:return Nde}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>jde(a),inputElement:()=>b.createElement("input",null),textareaElement:()=>b.createElement("textarea",null),fallback:null};var{window:Hde}=Gt,Vde=F.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),rm=F.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),Ude=F(fY)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),Wde=F(hY)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),Vx=F.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),qde=F(Qa)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),Gde=F(Nu.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Kde={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Yde=e=>{e.currentTarget.dispatchEvent(new Hde.KeyboardEvent("keydown",Kde))},Xde=e=>{e.currentTarget.select()},Zde=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Ux=({name:e,value:t,onChange:r,argType:n})=>{var w;let a=xC(),o=u.useMemo(()=>t&&jse(t),[t]),i=o!=null,[l,s]=u.useState(!i),[d,p]=u.useState(null),h=!!((w=n==null?void 0:n.table)!=null&&w.readonly),m=u.useCallback(x=>{try{x&&r(JSON.parse(x)),p(void 0)}catch(D){p(D)}},[r]),[f,v]=u.useState(!1),g=u.useCallback(()=>{r({}),v(!0)},[v]),C=u.useRef(null);if(u.useEffect(()=>{f&&C.current&&C.current.select()},[f]),!i)return b.createElement(xo,{disabled:h,id:Bd(e),onClick:g},"Set object");let E=b.createElement(Gde,{ref:C,id:xr(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:x=>m(x.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),y=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return b.createElement(Vde,{"aria-readonly":h},y&&b.createElement(qde,{onClick:x=>{x.preventDefault(),s(D=>!D)}},l?b.createElement(dY,null):b.createElement(cY,null),b.createElement("span",null,"RAW")),l?E:b.createElement(ZR,{readOnly:h||!y,isCollapsed:y?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:Zde(a),cancelButtonElement:b.createElement(rm,{type:"button"},"Cancel"),editButtonElement:b.createElement(rm,{type:"submit"},"Save"),addButtonElement:b.createElement(rm,{type:"submit",primary:!0},"Save"),plusMenuElement:b.createElement(Ude,null),minusMenuElement:b.createElement(Wde,null),inputElement:(x,D,S,k)=>k?b.createElement(Vx,{onFocus:Xde,onBlur:Yde}):b.createElement(Vx,null),fallback:E}))},Jde=F.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + */const{global:Gt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:i0e,once:l0e,logger:g4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:Ix,composeConfigs:ofe,Preview:ife,DocsContext:lfe}=__STORYBOOK_MODULE_PREVIEW_API__,{GLOBALS_UPDATED:Rx,STORY_ARGS_UPDATED:zx,UPDATE_STORY_ARGS:s0e,RESET_STORY_ARGS:u0e,NAVIGATE_URL:c0e}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var d0e=Yi({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),p0e=Yi({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,l=!0,s=" ";function d(x,D){var S=D.appendChild(h(x));if(x.children.length){var k=m(x.isCollapsed);x.children.forEach(function(A){d(A,k)}),S.appendChild(k)}}function p(x,D){var S=!1,k=m(S);if(D.forEach(function(A){d(A,k)}),i=x||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(k)}function h(x){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",x.textContent),r.includeHtml&&x.childNodes.length?n.call(x.childNodes,function(k){S.appendChild(k.cloneNode(!0))}):S.textContent=x.textContent,S.setAttribute("href",r.basePath+"#"+x.id),S.setAttribute("class",r.linkClass+s+"node-name--"+x.nodeName+s+r.extraLinkClasses),D.appendChild(S),D}function m(x){var D=r.orderedList?"ol":"ul",S=document.createElement(D),k=r.listClass+s+r.extraListClasses;return x&&(k=k+s+r.collapsibleClass,k=k+s+r.isCollapsedClass),S.setAttribute("class",k),S}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var x;x=document.querySelector(r.scrollContainer).scrollTop}else x=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),x>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=s+r.positionFixedClass):D.className=D.className.replace(s+r.positionFixedClass,"")}function v(x){var D=0;return x!==null&&(D=x.offsetTop,r.hasInnerContainers&&(D+=v(x.offsetParent))),D}function g(x,D){return x&&x.className!==D&&(x.className=D),x}function C(x){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&f();var S=x,k;if(l&&i!==null&&S.length>0){a.call(S,function(j,P){if(v(j)>D+r.headingsOffset+10){var H=P===0?P:P-1;return k=S[H],!0}else if(P===S.length-1)return k=S[S.length-1],!0});var A=i.querySelector("."+r.activeLinkClass),_=i.querySelector("."+r.linkClass+".node-name--"+k.nodeName+'[href="'+r.basePath+"#"+k.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(A===_)return;var $=i.querySelectorAll("."+r.linkClass);n.call($,function(j){g(j,j.className.replace(s+r.activeLinkClass,""))});var I=i.querySelectorAll("."+r.listItemClass);n.call(I,function(j){g(j,j.className.replace(s+r.activeListItemClass,""))}),_&&_.className.indexOf(r.activeLinkClass)===-1&&(_.className+=s+r.activeLinkClass);var L=_&&_.parentNode;L&&L.className.indexOf(r.activeListItemClass)===-1&&(L.className+=s+r.activeListItemClass);var B=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(B,function(j){j.className.indexOf(r.isCollapsedClass)===-1&&(j.className+=s+r.isCollapsedClass)}),_&&_.nextSibling&&_.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(_.nextSibling,_.nextSibling.className.replace(s+r.isCollapsedClass,"")),E(_&&_.parentNode.parentNode)}}function E(x){return x&&x.className.indexOf(r.collapsibleClass)!==-1&&x.className.indexOf(r.isCollapsedClass)!==-1?(g(x,x.className.replace(s+r.isCollapsedClass,"")),E(x.parentNode.parentNode)):x}function y(x){var D=x.target||x.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(l=!1)}function w(){l=!0}return{enableTocAnimation:w,disableTocAnimation:y,render:p,updateToc:C}}}}),f0e=Yi({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function l(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let m=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var f={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:m};return r.includeHtml&&(f.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,h):f}function s(h,m){for(var f=l(h),v=f.headingLevel,g=m,C=a(g),E=C?C.headingLevel:0,y=v-E;y>0&&(C=a(g),!(C&&v===C.headingLevel));)C&&C.children!==void 0&&(g=C.children),y--;return v>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function d(h,m){var f=m;r.ignoreSelector&&(f=m.split(",").map(function(v){return v.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function p(h){return n.call(h,function(m,f){var v=l(f);return v&&s(v,m.nest),m},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:d}}}}),h0e=Yi({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),m0e=Yi({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;l();function l(){document.body.addEventListener("click",h,!1);function h(m){!s(m.target)||m.target.className.indexOf("no-smooth-scroll")>-1||m.target.href.charAt(m.target.href.length-2)==="#"&&m.target.href.charAt(m.target.href.length-1)==="!"||m.target.className.indexOf(n.linkClass)===-1||r(m.target.hash,{duration:a,offset:o,callback:function(){p(m.target.hash)}})}}function s(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function p(h){var m=document.getElementById(h.substring(1));m&&(/^(?:a|select|input|button|textarea)$/i.test(m.tagName)||(m.tabIndex=-1),m.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||v},l=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),s=typeof n=="string"?i.offset+(n?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(s):i.duration,p,h;requestAnimationFrame(function(g){p=g,m(g)});function m(g){h=g-p,window.scrollTo(0,i.easing(h,o,s,d)),h"u"&&!h)return;var m,f=Object.prototype.hasOwnProperty;function v(){for(var y={},w=0;w({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:he(.3,e.color.defaultText),fontSize:e.typography.size.s2})),BR=e=>b.createElement(v0e,{...e,className:"docblock-emptyblock sb-unstyled"}),y0e=F(By)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),w0e=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Lc=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${um}`]:{margin:0}})),b0e=()=>b.createElement(w0e,null,b.createElement(Lc,null),b.createElement(Lc,{style:{width:"80%"}}),b.createElement(Lc,{style:{width:"30%"}}),b.createElement(Lc,{style:{width:"80%"}})),LR=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:l}=xC();if(e)return b.createElement(b0e,null);if(t)return b.createElement(BR,null,t);let s=b.createElement(y0e,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return s;let d=a?lm.dark:lm.light;return b.createElement(CC,{theme:sm({...d,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},Ae=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,v4=600,E0e=F.h1(Ee,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${v4}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),x0e=F.h2(Ee,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${v4}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:he(.25,e.color.defaultText)})),C0e=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?he(.1,e.color.defaultText):he(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[Ae("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Ae("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Ae("div")]:t,[Ae("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Ae("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Ae("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Ae("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Ae("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Ae("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Ae("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Ae("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Ae("img")]:{maxWidth:"100%"},[Ae("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Ae("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Ae("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Ae("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Ae("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Ae("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Ae("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),D0e=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${v4}px)`]:{}})),S0e=({children:e,toc:t})=>b.createElement(D0e,{className:"sbdocs sbdocs-wrapper"},b.createElement(C0e,{className:"sbdocs sbdocs-content"},e),t),rp=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),k0e=F(Uy)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),A0e=F.div({display:"flex",alignItems:"center",gap:4}),_0e=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),F0e=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>b.createElement(k0e,{...o},b.createElement(A0e,{key:"left"},e?[1,2,3].map(i=>b.createElement(_0e,{key:i})):b.createElement(b.Fragment,null,b.createElement(Qa,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},b.createElement(lY,null)),b.createElement(Qa,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},b.createElement(sY,null)),b.createElement(Qa,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},b.createElement(uY,null))))),OR=u.createContext({scale:1}),{window:$0e}=Gt,T0e=class extends u.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=$0e.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return b.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},{PREVIEW_URL:I0e}=Gt,R0e=I0e||"iframe.html",j2=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,z0e=e=>{let t=u.useRef(),[r,n]=u.useState(!0),[a,o]=u.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:d,renderStoryToElement:p}=e;return u.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,m=p(i,h,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:s,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>m())}},[s,p,i]),a?b.createElement("pre",null,b.createElement(Kq,{error:a})):b.createElement(b.Fragment,null,l?b.createElement("style",null,`#${j2(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&b.createElement(MR,null),b.createElement("div",{ref:t,id:`${j2(e)}-inner`,"data-name":i.name}))},B0e=({story:e,height:t="500px"})=>b.createElement("div",{style:{width:"100%",height:t}},b.createElement(OR.Consumer,null,({scale:r})=>b.createElement(T0e,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:vK(R0e,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),L0e=F.strong(({theme:e})=>({color:e.color.orange})),O0e=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?b.createElement(L0e,null,"This story mounts inside of play. Set"," ",b.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):b.createElement("div",{id:j2(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?b.createElement(z0e,{...e}):b.createElement(B0e,{...e}))},MR=()=>b.createElement(gK,null),M0e=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Bx=F(LR)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Mr(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Mr(.05,e.background.content)}})),P0e=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...rp(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),N0e=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:b.createElement(Bx,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:b.createElement(Bx,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function j0e(e){if(u.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var H0e=F(F0e)({position:"absolute",top:0,left:0,right:0,height:40}),V0e=F.div({overflow:"hidden",position:"relative"}),PR=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:d="padded",...p})=>{let[h,m]=u.useState(i),{source:f,actionItem:v}=N0e(a,h,m),[g,C]=u.useState(1),E=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),y=a?[v]:[],[w,x]=u.useState(l?[...l]:[]),D=[...y,...w],{window:S}=Gt,k=u.useCallback(async _=>{let{createCopyToClipboardFunction:$}=await Kx(()=>import("./index-CajmrM5u.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url);$()},[]),A=_=>{let $=S.getSelection();$&&$.type==="Range"||(_.preventDefault(),w.filter(I=>I.title==="Copied").length===0&&k(f.props.code).then(()=>{x([...w,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>x(w.filter(I=>I.title!=="Copied")),1500)}))};return b.createElement(P0e,{withSource:a,withToolbar:o,...p,className:E.join(" ")},o&&b.createElement(H0e,{isLoading:e,border:!0,zoom:_=>C(g*_),resetZoom:()=>C(1),storyId:j0e(n),baseUrl:"./iframe.html"}),b.createElement(OR.Provider,{value:{scale:g}},b.createElement(V0e,{className:"docs-story",onCopyCapture:a&&A},b.createElement(M0e,{isColumn:t||!Array.isArray(n),columns:r,layout:d},b.createElement(Nq.Element,{scale:g},Array.isArray(n)?n.map((_,$)=>b.createElement("div",{key:$},_)):b.createElement("div",null,n))),b.createElement(pv,{actionItems:D}))),a&&h&&f)};F(PR)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var U0e=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Ea({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),W0e=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:b.createElement(b.Fragment,null,b.createElement(U0e,null,b.createElement("tbody",null,n&&b.createElement("tr",{key:"deprecated"},b.createElement("td",{colSpan:2},b.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>b.createElement("tr",{key:o.name},b.createElement("td",null,b.createElement("code",null,o.name)),b.createElement("td",null,o.description))),a&&b.createElement("tr",{key:"returns"},b.createElement("td",null,b.createElement("code",null,"Returns")),b.createElement("td",null,e.returns.description)))))},H2=8,Lx=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),q0e=F.span(Ea,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),G0e=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),K0e=F.div(Ea,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),Y0e=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),X0e=F(yY)({marginLeft:4}),Z0e=F(xI)({marginLeft:4}),J0e=()=>b.createElement("span",null,"-"),NR=({text:e,simple:t})=>b.createElement(q0e,{simple:t},e),Q0e=ER(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),ede=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return rie(t)},Ox=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,H2)),r.map(n=>b.createElement(NR,{key:n,text:n===""?'""':n}))},tde=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=u.useState(!1),[i,l]=u.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return b.createElement(NR,{text:s});let d=ede(s),p=d.length;return p>H2?b.createElement(Lx,{isExpanded:i},Ox(d,i),b.createElement(G0e,{onClick:()=>l(!i)},i?"Show less...":`Show ${p-H2} more...`)):b.createElement(Lx,null,Ox(d))}return b.createElement(bG,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:b.createElement(Y0e,{width:Q0e(n)},b.createElement(By,{language:"jsx",format:!1},n))},b.createElement(K0e,{className:"sbdocs-expandable"},b.createElement("span",null,s),a?b.createElement(X0e,null):b.createElement(Z0e,null)))},tm=({value:e,initialExpandedArgs:t})=>e==null?b.createElement(J0e,null):b.createElement(tde,{value:e,initialExpandedArgs:t}),rde=F.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:he(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Rc(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Rc(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Rc(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Rc(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),nde=e=>e==="true",ade=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var p;let i=u.useCallback(()=>r(!1),[r]),l=!!((p=o==null?void 0:o.table)!=null&&p.readonly);if(t===void 0)return b.createElement(xo,{variant:"outline",size:"medium",id:Bd(e),onClick:i,disabled:l},"Set boolean");let s=xr(e),d=typeof t=="string"?nde(t):t;return b.createElement(rde,{"aria-disabled":l,htmlFor:s,"aria-label":e},b.createElement("input",{id:s,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:l,name:e,onBlur:n,onFocus:a}),b.createElement("span",{"aria-hidden":"true"},"False"),b.createElement("span",{"aria-hidden":"true"},"True"))},ode=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},ide=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},lde=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},sde=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},Mx=F(Nu.Input)(({readOnly:e})=>({opacity:e?.5:1})),ude=F.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),cde=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var v;let[i,l]=u.useState(!0),s=u.useRef(),d=u.useRef(),p=!!((v=o==null?void 0:o.table)!=null&&v.readonly);u.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?lde(t):""),d&&d.current&&(d.current.value=t?sde(t):""))},[t]);let h=g=>{if(!g.target.value)return r();let C=ode(g.target.value),E=new Date(t);E.setFullYear(C.getFullYear(),C.getMonth(),C.getDate());let y=E.getTime();y&&r(y),l(!!y)},m=g=>{if(!g.target.value)return r();let C=ide(g.target.value),E=new Date(t);E.setHours(C.getHours()),E.setMinutes(C.getMinutes());let y=E.getTime();y&&r(y),l(!!y)},f=xr(e);return b.createElement(ude,null,b.createElement(Mx,{type:"date",max:"9999-12-31",ref:s,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),b.createElement(Mx,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:d,onChange:m,readOnly:p,onFocus:n,onBlur:a}),i?null:b.createElement("div",null,"invalid"))},dde=F.label({display:"flex"}),pde=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},fde=F(Nu.Input)(({readOnly:e})=>({opacity:e?.5:1})),hde=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:l,argType:s})=>{var w;let[d,p]=u.useState(typeof t=="number"?t:""),[h,m]=u.useState(!1),[f,v]=u.useState(null),g=!!((w=s==null?void 0:s.table)!=null&&w.readonly),C=u.useCallback(x=>{p(x.target.value);let D=parseFloat(x.target.value);Number.isNaN(D)?v(new Error(`'${x.target.value}' is not a number`)):(r(D),v(null))},[r,v]),E=u.useCallback(()=>{p("0"),r(0),m(!0)},[m]),y=u.useRef(null);return u.useEffect(()=>{h&&y.current&&y.current.select()},[h]),u.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?b.createElement(xo,{variant:"outline",size:"medium",id:Bd(e),onClick:E,disabled:g},"Set number"):b.createElement(dde,null,b.createElement(fde,{ref:y,id:xr(e),type:"number",onChange:C,size:"flex",placeholder:"Edit number...",value:d,valid:f?"error":null,autoFocus:h,readOnly:g,name:e,min:n,max:a,step:o,onFocus:l,onBlur:i}))},jR=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},V2=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],HR=(e,t)=>e&&t&&e.map(r=>t[r]),mde=F.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),gde=F.span({"[aria-readonly=true] &":{opacity:.5}}),vde=F.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Px=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var m;if(!t)return g4.warn(`Checkbox with no options: ${e}`),b.createElement(b.Fragment,null,"-");let i=V2(r,t),[l,s]=u.useState(i),d=!!((m=o==null?void 0:o.table)!=null&&m.readonly),p=f=>{let v=f.target.value,g=[...l];g.includes(v)?g.splice(g.indexOf(v),1):g.push(v),n(HR(g,t)),s(g)};u.useEffect(()=>{s(V2(r,t))},[r]);let h=xr(e);return b.createElement(mde,{"aria-readonly":d,isInline:a},Object.keys(t).map((f,v)=>{let g=`${h}-${v}`;return b.createElement(vde,{key:g,htmlFor:g},b.createElement("input",{type:"checkbox",disabled:d,id:g,name:g,value:f,onChange:p,checked:l==null?void 0:l.includes(f)}),b.createElement(gde,null,f))}))},yde=F.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),wde=F.span({"[aria-readonly=true] &":{opacity:.5}}),bde=F.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Nx=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return g4.warn(`Radio with no options: ${e}`),b.createElement(b.Fragment,null,"-");let i=jR(r,t),l=xr(e),s=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return b.createElement(yde,{"aria-readonly":s,isInline:a},Object.keys(t).map((p,h)=>{let m=`${l}-${h}`;return b.createElement(bde,{key:m,htmlFor:m},b.createElement("input",{type:"radio",id:m,name:l,disabled:s,value:p,onChange:f=>n(t[f.currentTarget.value]),checked:p===i}),b.createElement(wde,null,p))}))},Ede={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},VR=F.select(Ede,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),UR=F.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),jx="Choose option...",xde=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{n(r[p.currentTarget.value])},i=jR(t,r)||jx,l=xr(e),s=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return b.createElement(UR,null,b.createElement(xI,null),b.createElement(VR,{disabled:s,id:l,value:i,onChange:o},b.createElement("option",{key:"no-selection",disabled:!0},jx),Object.keys(r).map(p=>b.createElement("option",{key:p,value:p},p))))},Cde=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{let h=Array.from(p.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(HR(h,r))},i=V2(t,r),l=xr(e),s=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return b.createElement(UR,null,b.createElement(VR,{disabled:s,id:l,multiple:!0,value:i,onChange:o},Object.keys(r).map(p=>b.createElement("option",{key:p,value:p},p))))},Hx=e=>{let{name:t,options:r}=e;return r?e.isMulti?b.createElement(Cde,{...e}):b.createElement(xde,{...e}):(g4.warn(`Select with no options: ${t}`),b.createElement(b.Fragment,null,"-"))},Dde=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,Sde={check:Px,"inline-check":Px,radio:Nx,"inline-radio":Nx,select:Hx,"multi-select":Hx},Po=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?Dde(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=Sde[t];if(o)return b.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},y4="value",kde="key",Ade="Error",_de="Object",Fde="Array",$de="String",Tde="Number",Ide="Boolean",Rde="Date",zde="Null",Bde="Undefined",Lde="Function",Ode="Symbol",WR="ADD_DELTA_TYPE",qR="REMOVE_DELTA_TYPE",GR="UPDATE_DELTA_TYPE";function Ga(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function KR(e,t){let r=Ga(e),n=Ga(t);return(r==="Function"||n==="Function")&&n!==r}var w4=class extends u.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,l={};if(!t){if(!o.value)return;l.key=o.value}l.newValue=r(!1,n,a,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,l=u.cloneElement(r,{onClick:this.onSubmit}),s=u.cloneElement(n,{onClick:e}),d=a(y4,o,i),p=u.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(kde,o,i);h=u.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return b.createElement("span",{className:"rejt-add-value-node"},h,p,s,l)}};w4.defaultProps={onlyValue:!1,addButtonElement:b.createElement("button",null,"+"),cancelButtonElement:b.createElement("button",null,"c")};var YR=class extends u.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let l={keyPath:a,deep:o,key:e,oldValue:i,type:qR};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],i),s({type:WR,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:l}=this.state,s=o[e];a(e,i,l,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:GR,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:d,collapsed:p}=i(e,t,r,n,l),h=o(e,t,r,n,l),m=u.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return b.createElement("span",{className:"rejt-collapsed"},b.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}=this.props,{minus:A,plus:_,delimiter:$,ul:I,addForm:L}=p(e,t,r,n,h),B=d(e,t,r,n,h),j=u.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),P=u.cloneElement(E,{onClick:l,className:"rejt-minus-menu",style:A});return b.createElement("span",{className:"rejt-not-collapsed"},b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"["),!a&&j,b.createElement("ul",{className:"rejt-not-collapsed-list",style:I},t.map((H,q)=>b.createElement(np,{key:q,name:q.toString(),data:H,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(q),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}))),!B&&a&&b.createElement("div",{className:"rejt-add-form",style:L},b.createElement(w4,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:k})),b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"]"),!B&&P)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,a,o);return b.createElement("div",{className:"rejt-array-node"},b.createElement("span",{onClick:this.handleCollapseMode},b.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};YR.defaultProps={keyPath:[],deep:0,minusMenuElement:b.createElement("span",null," - "),plusMenuElement:b.createElement("span",null," + ")};var XR=class extends u.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,a,o,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:l}=this.state;if(!o)return;let s=n(!0,a,l,i,o.value);e({value:s,key:i}).then(()=>{KR(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:l,dataType:s,getStyle:d,editButtonElement:p,cancelButtonElement:h,textareaElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,s),C=null,E=null,y=l(e,i,n,a,s);if(r&&!y){let w=m(y4,v,a,e,i,s),x=u.cloneElement(p,{onClick:this.handleEdit}),D=u.cloneElement(h,{onClick:this.handleCancelEdit}),S=u.cloneElement(w,{ref:this.refInput,defaultValue:i});C=b.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,x),E=null}else{C=b.createElement("span",{className:"rejt-value",style:g.value,onClick:y?null:this.handleEditMode},t);let w=u.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});E=y?null:w}return b.createElement("li",{className:"rejt-function-value-node",style:g.li},b.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),C,E)}};XR.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:b.createElement("button",null,"e"),cancelButtonElement:b.createElement("button",null,"c"),minusMenuElement:b.createElement("span",null," - ")};var np=class extends u.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:d,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S}=this.props,k=()=>!0,A=Ga(e);switch(A){case Ade:return b.createElement(U2,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:k,dataType:A,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S});case _de:return b.createElement(U2,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:d,dataType:A,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S});case Fde:return b.createElement(YR,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:d,dataType:A,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:y,beforeAddAction:w,beforeUpdateAction:x,logger:D,onSubmitValueParser:S});case $de:return b.createElement(Pn,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Tde:return b.createElement(Pn,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Ide:return b.createElement(Pn,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Rde:return b.createElement(Pn,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:k,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case zde:return b.createElement(Pn,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Bde:return b.createElement(Pn,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Lde:return b.createElement(XR,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:C,logger:D,onSubmitValueParser:S});case Ode:return b.createElement(Pn,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:k,dataType:A,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:C,logger:D,onSubmitValueParser:S});default:return null}}};np.defaultProps={keyPath:[],deep:0};var U2=class extends u.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:WR,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let l={keyPath:a,deep:o,key:e,oldValue:i,type:qR};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:l}=this.state,s=o[e];a(e,i,l,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:GR,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:d,collapsed:p}=l(e,n,t,r,i),h=Object.getOwnPropertyNames(n),m=o(e,n,t,r,i),f=u.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return b.createElement("span",{className:"rejt-collapsed"},b.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}=this.props,{minus:A,plus:_,addForm:$,ul:I,delimiter:L}=p(e,t,r,n,h),B=Object.getOwnPropertyNames(t),j=d(e,t,r,n,h),P=u.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),H=u.cloneElement(E,{onClick:l,className:"rejt-minus-menu",style:A}),q=B.map(z=>b.createElement(np,{key:z,name:z,data:t[z],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(z),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:E,plusMenuElement:y,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:D,logger:S,onSubmitValueParser:k}));return b.createElement("span",{className:"rejt-not-collapsed"},b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"{"),!j&&P,b.createElement("ul",{className:"rejt-not-collapsed-list",style:I},q),!j&&o&&b.createElement("div",{className:"rejt-add-form",style:$},b.createElement(w4,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:k})),b.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"}"),!j&&H)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=o(e,r,n,a,i);return b.createElement("div",{className:"rejt-object-node"},b.createElement("span",{onClick:this.handleCollapseMode},b.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};U2.defaultProps={keyPath:[],deep:0,minusMenuElement:b.createElement("span",null," - "),plusMenuElement:b.createElement("span",null," + ")};var Pn=class extends u.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,a,o,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:l}=this.state;if(!o)return;let s=n(!0,a,l,i,o.value);e({value:s,key:i}).then(()=>{KR(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:l,dataType:s,getStyle:d,editButtonElement:p,cancelButtonElement:h,inputElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,s),C=l(e,i,n,a,s),E=r&&!C,y=m(y4,v,a,e,i,s),w=u.cloneElement(p,{onClick:this.handleEdit}),x=u.cloneElement(h,{onClick:this.handleCancelEdit}),D=u.cloneElement(y,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=u.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});return b.createElement("li",{className:"rejt-value-node",style:g.li},b.createElement("span",{className:"rejt-name",style:g.name},e," : "),E?b.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",x,w):b.createElement("span",{className:"rejt-value",style:g.value,onClick:C?null:this.handleEditMode},String(t)),!C&&!E&&S)}};Pn.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:b.createElement("button",null,"e"),cancelButtonElement:b.createElement("button",null,"c"),minusMenuElement:b.createElement("span",null," - ")};var Mde={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Pde={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Nde={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function jde(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var ZR=class extends u.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElement:d,textareaElement:p,minusMenuElement:h,plusMenuElement:m,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:C,onSubmitValueParser:E,fallback:y=null}=this.props,w=Ga(e),x=a;Ga(a)==="Boolean"&&(x=()=>a);let D=d;d&&Ga(d)!=="Function"&&(D=()=>d);let S=p;return p&&Ga(p)!=="Function"&&(S=()=>p),w==="Object"||w==="Array"?b.createElement("div",{className:"rejt-tree"},b.createElement(np,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:x,getStyle:o,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:C,onSubmitValueParser:E})):y}};ZR.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Mde;case"Array":return Pde;default:return Nde}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>jde(a),inputElement:()=>b.createElement("input",null),textareaElement:()=>b.createElement("textarea",null),fallback:null};var{window:Hde}=Gt,Vde=F.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),rm=F.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),Ude=F(fY)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),Wde=F(hY)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),Vx=F.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),qde=F(Qa)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),Gde=F(Nu.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Kde={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Yde=e=>{e.currentTarget.dispatchEvent(new Hde.KeyboardEvent("keydown",Kde))},Xde=e=>{e.currentTarget.select()},Zde=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Ux=({name:e,value:t,onChange:r,argType:n})=>{var w;let a=xC(),o=u.useMemo(()=>t&&jse(t),[t]),i=o!=null,[l,s]=u.useState(!i),[d,p]=u.useState(null),h=!!((w=n==null?void 0:n.table)!=null&&w.readonly),m=u.useCallback(x=>{try{x&&r(JSON.parse(x)),p(void 0)}catch(D){p(D)}},[r]),[f,v]=u.useState(!1),g=u.useCallback(()=>{r({}),v(!0)},[v]),C=u.useRef(null);if(u.useEffect(()=>{f&&C.current&&C.current.select()},[f]),!i)return b.createElement(xo,{disabled:h,id:Bd(e),onClick:g},"Set object");let E=b.createElement(Gde,{ref:C,id:xr(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:x=>m(x.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),y=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return b.createElement(Vde,{"aria-readonly":h},y&&b.createElement(qde,{onClick:x=>{x.preventDefault(),s(D=>!D)}},l?b.createElement(dY,null):b.createElement(cY,null),b.createElement("span",null,"RAW")),l?E:b.createElement(ZR,{readOnly:h||!y,isCollapsed:y?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:Zde(a),cancelButtonElement:b.createElement(rm,{type:"button"},"Cancel"),editButtonElement:b.createElement(rm,{type:"submit"},"Save"),addButtonElement:b.createElement(rm,{type:"submit",primary:!0},"Save"),plusMenuElement:b.createElement(Ude,null),minusMenuElement:b.createElement(Wde,null),inputElement:(x,D,S,k)=>k?b.createElement(Vx,{onFocus:Xde,onBlur:Yde}):b.createElement(Vx,null),fallback:E}))},Jde=F.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Mr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Mr(.02,e.input.background)} 100%)`:`linear-gradient(to right, @@ -578,7 +578,7 @@ ${t}`);let r=t.match(Uq);if(!r)return b.createElement(u.Fragment,null,t);let[,n, ${Mr(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${La(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${La(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Nr(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),JR=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Qde=F(JR)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),e1e=F.div({display:"flex",alignItems:"center",width:"100%"});function t1e(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var r1e=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:l,argType:s})=>{var f;let d=v=>{r(pde(v.target.value))},p=t!==void 0,h=u.useMemo(()=>t1e(o),[o]),m=!!((f=s==null?void 0:s.table)!=null&&f.readonly);return b.createElement(e1e,{"aria-readonly":m},b.createElement(JR,null,n),b.createElement(Jde,{id:xr(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:l,onBlur:i}),b.createElement(Qde,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},n1e=F.label({display:"flex"}),a1e=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),o1e=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let l=v=>{r(v.target.value)},s=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=u.useState(!1),h=u.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return b.createElement(xo,{variant:"outline",size:"medium",disabled:s,id:Bd(e),onClick:h},"Set string");let m=typeof t=="string";return b.createElement(n1e,null,b.createElement(Nu.Textarea,{id:xr(e),maxLength:o,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),o&&b.createElement(a1e,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},i1e=F(Nu.Input)({padding:10});function l1e(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var s1e=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var s;let o=u.useRef(null),i=(s=a==null?void 0:a.control)==null?void 0:s.readOnly;function l(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(p),l1e(n)}return u.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),b.createElement(i1e,{ref:o,id:xr(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},u1e=u.lazy(()=>Kx(()=>import("./Color-KGDBMAHA-Blzvso4Y.js"),__vite__mapDeps([5,2,1,3,4]),import.meta.url)),c1e=e=>b.createElement(u.Suspense,{fallback:b.createElement("div",null)},b.createElement(u1e,{...e})),d1e={array:Ux,object:Ux,boolean:ade,color:c1e,date:cde,number:hde,check:Po,"inline-check":Po,radio:Po,"inline-radio":Po,select:Po,"multi-select":Po,range:r1e,text:o1e,file:s1e},Wx=()=>b.createElement(b.Fragment,null,"-"),p1e=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,l]=u.useState(!1),[s,d]=u.useState({value:t});u.useEffect(()=>{i||d({value:t})},[i,t]);let p=u.useCallback(C=>(d({value:C}),r({[a]:C}),C),[r,a]),h=u.useCallback(()=>l(!1),[]),m=u.useCallback(()=>l(!0),[]);if(!o||o.disable){let C=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&C?b.createElement(Ei,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):b.createElement(Wx,null)}let f={name:a,argType:e,value:s.value,onChange:p,onBlur:h,onFocus:m},v=d1e[o.type]||Wx;return b.createElement(v,{...f,...o,controlType:o.type})},f1e=F.span({fontWeight:"bold"}),h1e=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),m1e=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Ea({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),g1e=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?he(.1,e.color.defaultText):he(.2,e.color.defaultText),marginTop:t?4:0})),v1e=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?he(.1,e.color.defaultText):he(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),y1e=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),w1e=e=>e&&{summary:typeof e=="string"?e:e.name},Oc=e=>{var g;let[t,r]=u.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:l}=e,{name:s,description:d}=n,p=n.table||{},h=p.type||w1e(n.type),m=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return b.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},b.createElement(y1e,{expandable:i},b.createElement(f1e,null,s),f?b.createElement(h1e,{title:"Required"},"*"):null),o?null:b.createElement("td",null,v&&b.createElement(m1e,null,b.createElement(wR,null,d)),p.jsDocTags!=null?b.createElement(b.Fragment,null,b.createElement(v1e,{hasDescription:v},b.createElement(tm,{value:h,initialExpandedArgs:l})),b.createElement(W0e,{tags:p.jsDocTags})):b.createElement(g1e,{hasDescription:v},b.createElement(tm,{value:h,initialExpandedArgs:l}))),o?null:b.createElement("td",null,b.createElement(tm,{value:m,initialExpandedArgs:l})),a?b.createElement("td",null,b.createElement(p1e,{...e,isHovered:t})):null)},b1e=F(gY)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?he(.25,e.color.defaultText):he(.3,e.color.defaultText),border:"none",display:"inline-block"})),E1e=F(vY)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?he(.25,e.color.defaultText):he(.3,e.color.defaultText),border:"none",display:"inline-block"})),x1e=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),C1e=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),D1e=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),S1e=F.td(()=>({position:"relative"})),k1e=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${La(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),qx=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),nm=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=u.useState(n),l=e==="subsection"?D1e:C1e,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return b.createElement(b.Fragment,null,b.createElement(k1e,{title:p},b.createElement(l,{colSpan:1},b.createElement(qx,{onClick:h=>i(!o),tabIndex:0},p),b.createElement(x1e,null,o?b.createElement(b1e,null):b.createElement(E1e,null),t)),b.createElement(S1e,{colSpan:a-1},b.createElement(qx,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Mc=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Xe=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),_e=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Ze=[2,4,2,2],A1e=()=>b.createElement(b.Fragment,null,b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"}))),b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"80%"}),b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"}))),b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"80%"}),b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"}))),b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"80%"}),b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"})))),_1e=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),F1e=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),$1e=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),T1e=({inAddonPanel:e})=>{let[t,r]=u.useState(!0);return u.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:b.createElement(_1e,{inAddonPanel:e},b.createElement(hI,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:b.createElement(b.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:b.createElement(F1e,null,e&&b.createElement(b.Fragment,null,b.createElement(Ei,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},b.createElement(pY,null)," Watch 5m video"),b.createElement($1e,null),b.createElement(Ei,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(R2,null)," Read docs")),!e&&b.createElement(Ei,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(R2,null)," Learn how to set that up"))}))},I1e=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?he(.25,e.color.defaultText):he(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),R1e=F(Qa)(({theme:e})=>({margin:"-4px -12px -4px 0"})),z1e=F.span({display:"flex",justifyContent:"space-between"}),B1e={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},L1e=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:l,subcategory:s}=(i==null?void 0:i.table)||{};if(l){let d=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:o,...i});else{let p=d.subsections[s]||[];p.push({key:o,...i}),d.subsections[s]=p}r.sections[l]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:o,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:o,...i})});let n=B1e[t],a=o=>n?Object.keys(o).reduce((i,l)=>({...i,[l]:o[l].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},O1e=(e,t,r)=>{try{return DM(e,t,r)}catch(n){return l0e.warn(n.message),!1}},W2=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:l}=e;if("error"in e){let{error:y}=e;return b.createElement(BR,null,y," ",b.createElement(Ei,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},b.createElement(R2,null)," Read the docs"))}if(l)return b.createElement(A1e,null);let{rows:s,args:d,globals:p}="rows"in e&&e,h=L1e(vae(s,y=>{var w;return!((w=y==null?void 0:y.table)!=null&&w.disable)&&O1e(y,d||{},p||{})}),i),m=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(m&&f&&v)return b.createElement(T1e,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let C=Object.keys(h.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return b.createElement(U$,null,b.createElement(I1e,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},b.createElement("thead",{className:"docblock-argstable-head"},b.createElement("tr",null,b.createElement("th",null,b.createElement("span",null,"Name")),n?null:b.createElement("th",null,b.createElement("span",null,"Description")),n?null:b.createElement("th",null,b.createElement("span",null,"Default")),t?b.createElement("th",null,b.createElement(z1e,null,"Control"," ",!l&&r&&b.createElement(R1e,{onClick:()=>r(),title:"Reset controls"},b.createElement(wY,{"aria-hidden":!0})))):null)),b.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(y=>b.createElement(Oc,{key:y.key,row:y,arg:d&&d[y.key],...E})),Object.entries(h.ungroupedSubsections).map(([y,w])=>b.createElement(nm,{key:y,label:y,level:"subsection",colSpan:g},w.map(x=>b.createElement(Oc,{key:x.key,row:x,arg:d&&d[x.key],expandable:C,...E})))),Object.entries(h.sections).map(([y,w])=>b.createElement(nm,{key:y,label:y,level:"section",colSpan:g},w.ungrouped.map(x=>b.createElement(Oc,{key:x.key,row:x,arg:d&&d[x.key],...E})),Object.entries(w.subsections).map(([x,D])=>b.createElement(nm,{key:x,label:x,level:"subsection",colSpan:g},D.map(S=>b.createElement(Oc,{key:S.key,row:S,arg:d&&d[S.key],expandable:C,...E})))))))))},M1e=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?b.createElement(W2,{...r[0][1],...t}):b.createElement(rK,null,r.map((n,a)=>{let[o,i]=n,l=`prop_table_div_${o}`,s="div",d=a===0?t:{sort:t.sort};return b.createElement(s,{key:l,id:l,title:o},({active:p})=>p?b.createElement(W2,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ee,({theme:e})=>({...rp(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?he(.2,e.color.defaultText):he(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...rp(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...rp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var P1e=e=>`anchor--${e}`,QR=({storyId:e,children:t})=>b.createElement("div",{id:P1e(e),className:"sb-anchor"},t);Gt&&Gt.__DOCS_CONTEXT__===void 0&&(Gt.__DOCS_CONTEXT__=u.createContext(null),Gt.__DOCS_CONTEXT__.displayName="DocsContext");var Sr=Gt?Gt.__DOCS_CONTEXT__:u.createContext(null),ko=(e,t)=>u.useContext(Sr).resolveOf(e,t),N1e=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),j1e=e=>{if(e)return typeof e=="string"?e.includes("-")?N1e(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function H1e(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function ez(e){return o0e(e,{allowFunction:!1})}var tz=u.createContext({sources:{}}),rz="--unknown--",V1e=({children:e,channel:t})=>{let[r,n]=u.useState({});return u.useEffect(()=>{let a=(o,i=null,l=!1)=>{let{id:s,args:d=void 0,source:p,format:h}=typeof o=="string"?{id:o,source:i,format:l}:o,m=d?ez(d):rz;n(f=>({...f,[s]:{...f[s],[m]:{code:p,format:h}}}))};return t.on(k4,a),()=>t.off(k4,a)},[]),b.createElement(tz.Provider,{value:{sources:r}},e)},U1e=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[ez(t)])||(a==null?void 0:a[rz])||{code:""}},W1e=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:a}=t.parameters,o=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||o.type||ip.AUTO;if(o.code!==void 0)return o.code;let l=i===ip.DYNAMIC||i===ip.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(l,t))||l},q1e=(e,t,r)=>{var f,v,g,C;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,l=e.format??o.format,s=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:l,language:s,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,m=U1e(n.id,h,r);return l=m.format??((C=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:C.format)??!1,{code:W1e({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:l,language:s,dark:d}};function G1e(e,t){let r=K1e([e],t);return r&&r[0]}function K1e(e,t){let[r,n]=u.useState({});return u.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Y1e=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},X1e=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let l=e.height??o.height,s=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Z1e=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=u.useContext(Sr),r=Y1e(e,t),n=G1e(r,t);if(!n)return b.createElement(MR,null);let a=X1e(e,n,t);return a?b.createElement(O0e,{...a}):null},J1e=e=>{var m,f,v,g,C,E,y,w,x,D;let t=u.useContext(Sr),r=u.useContext(tz),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=ko(n||"story",["story"]),i=q1e({...a,...n&&{of:n}},t,r),l=e.layout??o.parameters.layout??((f=(m=o.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",s=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((E=(C=o.parameters.docs)==null?void 0:C.canvas)==null?void 0:E.additionalActions),p=e.sourceState??((w=(y=o.parameters.docs)==null?void 0:y.canvas)==null?void 0:w.sourceState)??"hidden",h=e.className??((D=(x=o.parameters.docs)==null?void 0:x.canvas)==null?void 0:D.className);return b.createElement(PR,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:s,additionalActions:d,className:h,layout:l},b.createElement(Z1e,{of:n||o.moduleExport,meta:e.meta,...e.story}))},Q1e=(e,t)=>{let r=t.getStoryContext(e),[n,a]=u.useState(r.globals);return u.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(Rx,o),()=>t.channel.off(Rx,o)},[t.channel]),[n]},epe=(e,t)=>{let r=tpe(e,t);if(!r)throw new Error("No result when story was defined");return r},tpe=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=u.useState(r.args);u.useEffect(()=>{let s=d=>{d.storyId===n&&o(d.args)};return t.channel.on(zx,s),()=>t.channel.off(zx,s)},[n,t.channel]);let i=u.useCallback(s=>t.channel.emit(s0e,{storyId:n,updatedArgs:s}),[n,t.channel]),l=u.useCallback(s=>t.channel.emit(u0e,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,l]};function rpe(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var npe=e=>{var x;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=u.useContext(Sr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:l}=n,s=((x=a.docs)==null?void 0:x.controls)||{},d=e.include??s.include,p=e.exclude??s.exclude,h=e.sort??s.sort,[m,f,v]=epe(n,r),[g]=Q1e(n,r),C=Ix(o,d,p);if(!(l&&Object.keys(l).length>0))return Object.keys(C).length>0||Object.keys(m).length>0?b.createElement(W2,{rows:C,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let E=j1e(i),y=Object.fromEntries(Object.entries(l).map(([D,S])=>[D,{rows:Ix(rpe(S,a),d,p),sort:h}])),w={[E]:{rows:C,sort:h},...y};return b.createElement(M1e,{tabs:w,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:nz}=Gt,ape=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return b.createElement(j$,null,t);let n=e&&e.split("-");return b.createElement(LR,{language:n&&n[1]||"text",format:!1,code:t,...r})};function b4(e,t){e.channel.emit(c0e,t)}var q2=wK.a,ope=({hash:e,children:t})=>{let r=u.useContext(Sr);return b.createElement(q2,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);nz.getElementById(a)&&b4(r,e)}},t)},ipe=e=>{let{href:t,target:r,children:n,...a}=e,o=u.useContext(Sr);return!t||r==="_blank"||/^https?:\/\//.test(t)?b.createElement(q2,{...e}):t.startsWith("#")?b.createElement(ope,{hash:t},n):b.createElement(q2,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),b4(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},az=["h1","h2","h3","h4","h5","h6"],lpe=az.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),spe=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),upe=({as:e,id:t,children:r,...n})=>{let a=u.useContext(Sr),o=lpe[e],i=`#${t}`;return b.createElement(o,{id:t,...n},b.createElement(spe,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{nz.getElementById(t)&&b4(a,i)}},b.createElement(mY,null)),r)},E4=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return b.createElement(upe,{as:t,id:r,...a},n);let o=t,{as:i,...l}=e;return b.createElement(o,{...ge(l,t)})},cpe=az.reduce((e,t)=>({...e,[t]:r=>b.createElement(E4,{as:t,...r})}),{}),dpe=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(uz`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${La(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Nr(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),JR=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Qde=F(JR)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),e1e=F.div({display:"flex",alignItems:"center",width:"100%"});function t1e(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var r1e=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:l,argType:s})=>{var f;let d=v=>{r(pde(v.target.value))},p=t!==void 0,h=u.useMemo(()=>t1e(o),[o]),m=!!((f=s==null?void 0:s.table)!=null&&f.readonly);return b.createElement(e1e,{"aria-readonly":m},b.createElement(JR,null,n),b.createElement(Jde,{id:xr(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:l,onBlur:i}),b.createElement(Qde,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},n1e=F.label({display:"flex"}),a1e=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),o1e=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let l=v=>{r(v.target.value)},s=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=u.useState(!1),h=u.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return b.createElement(xo,{variant:"outline",size:"medium",disabled:s,id:Bd(e),onClick:h},"Set string");let m=typeof t=="string";return b.createElement(n1e,null,b.createElement(Nu.Textarea,{id:xr(e),maxLength:o,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),o&&b.createElement(a1e,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},i1e=F(Nu.Input)({padding:10});function l1e(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var s1e=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var s;let o=u.useRef(null),i=(s=a==null?void 0:a.control)==null?void 0:s.readOnly;function l(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(p),l1e(n)}return u.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),b.createElement(i1e,{ref:o,id:xr(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},u1e=u.lazy(()=>Kx(()=>import("./Color-KGDBMAHA-Gpl1Ymdw.js"),__vite__mapDeps([5,2,1,3,4]),import.meta.url)),c1e=e=>b.createElement(u.Suspense,{fallback:b.createElement("div",null)},b.createElement(u1e,{...e})),d1e={array:Ux,object:Ux,boolean:ade,color:c1e,date:cde,number:hde,check:Po,"inline-check":Po,radio:Po,"inline-radio":Po,select:Po,"multi-select":Po,range:r1e,text:o1e,file:s1e},Wx=()=>b.createElement(b.Fragment,null,"-"),p1e=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,l]=u.useState(!1),[s,d]=u.useState({value:t});u.useEffect(()=>{i||d({value:t})},[i,t]);let p=u.useCallback(C=>(d({value:C}),r({[a]:C}),C),[r,a]),h=u.useCallback(()=>l(!1),[]),m=u.useCallback(()=>l(!0),[]);if(!o||o.disable){let C=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&C?b.createElement(Ei,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):b.createElement(Wx,null)}let f={name:a,argType:e,value:s.value,onChange:p,onBlur:h,onFocus:m},v=d1e[o.type]||Wx;return b.createElement(v,{...f,...o,controlType:o.type})},f1e=F.span({fontWeight:"bold"}),h1e=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),m1e=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Ea({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),g1e=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?he(.1,e.color.defaultText):he(.2,e.color.defaultText),marginTop:t?4:0})),v1e=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?he(.1,e.color.defaultText):he(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),y1e=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),w1e=e=>e&&{summary:typeof e=="string"?e:e.name},Oc=e=>{var g;let[t,r]=u.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:l}=e,{name:s,description:d}=n,p=n.table||{},h=p.type||w1e(n.type),m=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return b.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},b.createElement(y1e,{expandable:i},b.createElement(f1e,null,s),f?b.createElement(h1e,{title:"Required"},"*"):null),o?null:b.createElement("td",null,v&&b.createElement(m1e,null,b.createElement(wR,null,d)),p.jsDocTags!=null?b.createElement(b.Fragment,null,b.createElement(v1e,{hasDescription:v},b.createElement(tm,{value:h,initialExpandedArgs:l})),b.createElement(W0e,{tags:p.jsDocTags})):b.createElement(g1e,{hasDescription:v},b.createElement(tm,{value:h,initialExpandedArgs:l}))),o?null:b.createElement("td",null,b.createElement(tm,{value:m,initialExpandedArgs:l})),a?b.createElement("td",null,b.createElement(p1e,{...e,isHovered:t})):null)},b1e=F(gY)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?he(.25,e.color.defaultText):he(.3,e.color.defaultText),border:"none",display:"inline-block"})),E1e=F(vY)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?he(.25,e.color.defaultText):he(.3,e.color.defaultText),border:"none",display:"inline-block"})),x1e=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),C1e=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),D1e=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),S1e=F.td(()=>({position:"relative"})),k1e=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${La(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),qx=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),nm=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=u.useState(n),l=e==="subsection"?D1e:C1e,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return b.createElement(b.Fragment,null,b.createElement(k1e,{title:p},b.createElement(l,{colSpan:1},b.createElement(qx,{onClick:h=>i(!o),tabIndex:0},p),b.createElement(x1e,null,o?b.createElement(b1e,null):b.createElement(E1e,null),t)),b.createElement(S1e,{colSpan:a-1},b.createElement(qx,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Mc=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Xe=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),_e=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Ze=[2,4,2,2],A1e=()=>b.createElement(b.Fragment,null,b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"}))),b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"80%"}),b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"}))),b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"80%"}),b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"}))),b.createElement(Mc,null,b.createElement(Xe,{numColumn:Ze[0]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[1]},b.createElement(_e,{width:"80%"}),b.createElement(_e,{width:"30%"})),b.createElement(Xe,{numColumn:Ze[2]},b.createElement(_e,{width:"60%"})),b.createElement(Xe,{numColumn:Ze[3]},b.createElement(_e,{width:"60%"})))),_1e=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),F1e=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),$1e=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),T1e=({inAddonPanel:e})=>{let[t,r]=u.useState(!0);return u.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:b.createElement(_1e,{inAddonPanel:e},b.createElement(hI,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:b.createElement(b.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:b.createElement(F1e,null,e&&b.createElement(b.Fragment,null,b.createElement(Ei,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},b.createElement(pY,null)," Watch 5m video"),b.createElement($1e,null),b.createElement(Ei,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(R2,null)," Read docs")),!e&&b.createElement(Ei,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(R2,null)," Learn how to set that up"))}))},I1e=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?he(.25,e.color.defaultText):he(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),R1e=F(Qa)(({theme:e})=>({margin:"-4px -12px -4px 0"})),z1e=F.span({display:"flex",justifyContent:"space-between"}),B1e={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},L1e=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:l,subcategory:s}=(i==null?void 0:i.table)||{};if(l){let d=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:o,...i});else{let p=d.subsections[s]||[];p.push({key:o,...i}),d.subsections[s]=p}r.sections[l]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:o,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:o,...i})});let n=B1e[t],a=o=>n?Object.keys(o).reduce((i,l)=>({...i,[l]:o[l].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},O1e=(e,t,r)=>{try{return DM(e,t,r)}catch(n){return l0e.warn(n.message),!1}},W2=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:l}=e;if("error"in e){let{error:y}=e;return b.createElement(BR,null,y," ",b.createElement(Ei,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},b.createElement(R2,null)," Read the docs"))}if(l)return b.createElement(A1e,null);let{rows:s,args:d,globals:p}="rows"in e&&e,h=L1e(vae(s,y=>{var w;return!((w=y==null?void 0:y.table)!=null&&w.disable)&&O1e(y,d||{},p||{})}),i),m=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(m&&f&&v)return b.createElement(T1e,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let C=Object.keys(h.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return b.createElement(U$,null,b.createElement(I1e,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},b.createElement("thead",{className:"docblock-argstable-head"},b.createElement("tr",null,b.createElement("th",null,b.createElement("span",null,"Name")),n?null:b.createElement("th",null,b.createElement("span",null,"Description")),n?null:b.createElement("th",null,b.createElement("span",null,"Default")),t?b.createElement("th",null,b.createElement(z1e,null,"Control"," ",!l&&r&&b.createElement(R1e,{onClick:()=>r(),title:"Reset controls"},b.createElement(wY,{"aria-hidden":!0})))):null)),b.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(y=>b.createElement(Oc,{key:y.key,row:y,arg:d&&d[y.key],...E})),Object.entries(h.ungroupedSubsections).map(([y,w])=>b.createElement(nm,{key:y,label:y,level:"subsection",colSpan:g},w.map(x=>b.createElement(Oc,{key:x.key,row:x,arg:d&&d[x.key],expandable:C,...E})))),Object.entries(h.sections).map(([y,w])=>b.createElement(nm,{key:y,label:y,level:"section",colSpan:g},w.ungrouped.map(x=>b.createElement(Oc,{key:x.key,row:x,arg:d&&d[x.key],...E})),Object.entries(w.subsections).map(([x,D])=>b.createElement(nm,{key:x,label:x,level:"subsection",colSpan:g},D.map(S=>b.createElement(Oc,{key:S.key,row:S,arg:d&&d[S.key],expandable:C,...E})))))))))},M1e=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?b.createElement(W2,{...r[0][1],...t}):b.createElement(rK,null,r.map((n,a)=>{let[o,i]=n,l=`prop_table_div_${o}`,s="div",d=a===0?t:{sort:t.sort};return b.createElement(s,{key:l,id:l,title:o},({active:p})=>p?b.createElement(W2,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ee,({theme:e})=>({...rp(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?he(.2,e.color.defaultText):he(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...rp(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?he(.4,e.color.defaultText):he(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...rp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var P1e=e=>`anchor--${e}`,QR=({storyId:e,children:t})=>b.createElement("div",{id:P1e(e),className:"sb-anchor"},t);Gt&&Gt.__DOCS_CONTEXT__===void 0&&(Gt.__DOCS_CONTEXT__=u.createContext(null),Gt.__DOCS_CONTEXT__.displayName="DocsContext");var Sr=Gt?Gt.__DOCS_CONTEXT__:u.createContext(null),ko=(e,t)=>u.useContext(Sr).resolveOf(e,t),N1e=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),j1e=e=>{if(e)return typeof e=="string"?e.includes("-")?N1e(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function H1e(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function ez(e){return o0e(e,{allowFunction:!1})}var tz=u.createContext({sources:{}}),rz="--unknown--",V1e=({children:e,channel:t})=>{let[r,n]=u.useState({});return u.useEffect(()=>{let a=(o,i=null,l=!1)=>{let{id:s,args:d=void 0,source:p,format:h}=typeof o=="string"?{id:o,source:i,format:l}:o,m=d?ez(d):rz;n(f=>({...f,[s]:{...f[s],[m]:{code:p,format:h}}}))};return t.on(k4,a),()=>t.off(k4,a)},[]),b.createElement(tz.Provider,{value:{sources:r}},e)},U1e=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[ez(t)])||(a==null?void 0:a[rz])||{code:""}},W1e=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:a}=t.parameters,o=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||o.type||ip.AUTO;if(o.code!==void 0)return o.code;let l=i===ip.DYNAMIC||i===ip.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(l,t))||l},q1e=(e,t,r)=>{var f,v,g,C;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,l=e.format??o.format,s=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:l,language:s,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,m=U1e(n.id,h,r);return l=m.format??((C=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:C.format)??!1,{code:W1e({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:l,language:s,dark:d}};function G1e(e,t){let r=K1e([e],t);return r&&r[0]}function K1e(e,t){let[r,n]=u.useState({});return u.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Y1e=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},X1e=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let l=e.height??o.height,s=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Z1e=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=u.useContext(Sr),r=Y1e(e,t),n=G1e(r,t);if(!n)return b.createElement(MR,null);let a=X1e(e,n,t);return a?b.createElement(O0e,{...a}):null},J1e=e=>{var m,f,v,g,C,E,y,w,x,D;let t=u.useContext(Sr),r=u.useContext(tz),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=ko(n||"story",["story"]),i=q1e({...a,...n&&{of:n}},t,r),l=e.layout??o.parameters.layout??((f=(m=o.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",s=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((E=(C=o.parameters.docs)==null?void 0:C.canvas)==null?void 0:E.additionalActions),p=e.sourceState??((w=(y=o.parameters.docs)==null?void 0:y.canvas)==null?void 0:w.sourceState)??"hidden",h=e.className??((D=(x=o.parameters.docs)==null?void 0:x.canvas)==null?void 0:D.className);return b.createElement(PR,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:s,additionalActions:d,className:h,layout:l},b.createElement(Z1e,{of:n||o.moduleExport,meta:e.meta,...e.story}))},Q1e=(e,t)=>{let r=t.getStoryContext(e),[n,a]=u.useState(r.globals);return u.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(Rx,o),()=>t.channel.off(Rx,o)},[t.channel]),[n]},epe=(e,t)=>{let r=tpe(e,t);if(!r)throw new Error("No result when story was defined");return r},tpe=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=u.useState(r.args);u.useEffect(()=>{let s=d=>{d.storyId===n&&o(d.args)};return t.channel.on(zx,s),()=>t.channel.off(zx,s)},[n,t.channel]);let i=u.useCallback(s=>t.channel.emit(s0e,{storyId:n,updatedArgs:s}),[n,t.channel]),l=u.useCallback(s=>t.channel.emit(u0e,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,l]};function rpe(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var npe=e=>{var x;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=u.useContext(Sr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:l}=n,s=((x=a.docs)==null?void 0:x.controls)||{},d=e.include??s.include,p=e.exclude??s.exclude,h=e.sort??s.sort,[m,f,v]=epe(n,r),[g]=Q1e(n,r),C=Ix(o,d,p);if(!(l&&Object.keys(l).length>0))return Object.keys(C).length>0||Object.keys(m).length>0?b.createElement(W2,{rows:C,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let E=j1e(i),y=Object.fromEntries(Object.entries(l).map(([D,S])=>[D,{rows:Ix(rpe(S,a),d,p),sort:h}])),w={[E]:{rows:C,sort:h},...y};return b.createElement(M1e,{tabs:w,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:nz}=Gt,ape=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return b.createElement(j$,null,t);let n=e&&e.split("-");return b.createElement(LR,{language:n&&n[1]||"text",format:!1,code:t,...r})};function b4(e,t){e.channel.emit(c0e,t)}var q2=wK.a,ope=({hash:e,children:t})=>{let r=u.useContext(Sr);return b.createElement(q2,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);nz.getElementById(a)&&b4(r,e)}},t)},ipe=e=>{let{href:t,target:r,children:n,...a}=e,o=u.useContext(Sr);return!t||r==="_blank"||/^https?:\/\//.test(t)?b.createElement(q2,{...e}):t.startsWith("#")?b.createElement(ope,{hash:t},n):b.createElement(q2,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),b4(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},az=["h1","h2","h3","h4","h5","h6"],lpe=az.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),spe=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),upe=({as:e,id:t,children:r,...n})=>{let a=u.useContext(Sr),o=lpe[e],i=`#${t}`;return b.createElement(o,{id:t,...n},b.createElement(spe,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{nz.getElementById(t)&&b4(a,i)}},b.createElement(mY,null)),r)},E4=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return b.createElement(upe,{as:t,id:r,...a},n);let o=t,{as:i,...l}=e;return b.createElement(o,{...ge(l,t)})},cpe=az.reduce((e,t)=>({...e,[t]:r=>b.createElement(E4,{as:t,...r})}),{}),dpe=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(uz`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: diff --git a/assets/index-BQ3BInS0.js b/assets/index-CajmrM5u.js similarity index 96% rename from assets/index-BQ3BInS0.js rename to assets/index-CajmrM5u.js index b41e95e70..f063c15e4 100644 --- a/assets/index-BQ3BInS0.js +++ b/assets/index-CajmrM5u.js @@ -1 +1 @@ -import{o as p,X as i,S as l,D as m,m as c,a as T,A as b,Z as d,l as S,u as B,s as L,H as C,b as H,J as u,O as g,w as y,c as I,p as h,d as k,f as P,h as W,e as A,g as F,i as x,j as D,B as R,v as f,k as v,n as E,q as M,r as N,C as q,t as w,y as O,I as U,x as Z,z as j,E as z,F as G,G as J,K,_ as Q,M as V,L as X,N as Y,P as _,Q as $,R as aa,T as sa,U as oa,V as ta,W as ea,Y as ra,$ as na,a0 as pa,a1 as ia,a2 as la,a3 as ma,a4 as ca,a5 as Ta,a6 as ba,a7 as da,a8 as Sa,a9 as Ba,aa as La,ab as Ca,ac as Ha,ad as ua}from"./index-DhyC0JuC.js";import"./iframe-CyVltN8V.js";import"../sb-preview/runtime.js";import"./index-RYns6xqu.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";export{p as A,i as ActionBar,l as AddonPanel,m as Badge,c as Bar,T as Blockquote,b as Button,d as ClipboardCode,S as Code,B as DL,L as Div,C as DocumentWrapper,H as EmptyTabContent,u as ErrorFormatter,g as FlexBar,y as Form,I as H1,h as H2,k as H3,P as H4,W as H5,A as H6,F as HR,x as IconButton,D as IconButtonSkeleton,R as Icons,f as Img,v as LI,E as Link,M as ListItem,N as Loader,q as Modal,w as OL,O as P,U as Placeholder,Z as Pre,j as ResetWrapper,z as ScrollArea,G as Separator,J as Spaced,K as Span,Q as StorybookIcon,V as StorybookLogo,X as Symbols,Y as SyntaxHighlighter,_ as TT,$ as TabBar,aa as TabButton,sa as TabWrapper,oa as Table,ta as Tabs,ea as TabsState,ra as TooltipLinkList,na as TooltipMessage,pa as TooltipNote,ia as UL,la as WithTooltip,ma as WithTooltipPure,ca as Zoom,Ta as codeCommon,ba as components,da as createCopyToClipboardFunction,Sa as getStoryHref,Ba as icons,La as interleaveSeparators,Ca as nameSpaceClassNames,Ha as resetComponents,ua as withReset}; +import{o as p,X as i,S as l,D as m,m as c,a as T,A as b,Z as d,l as S,u as B,s as L,H as C,b as H,J as u,O as g,w as y,c as I,p as h,d as k,f as P,h as W,e as A,g as F,i as x,j as D,B as R,v as f,k as v,n as E,q as M,r as N,C as q,t as w,y as O,I as U,x as Z,z as j,E as z,F as G,G as J,K,_ as Q,M as V,L as X,N as Y,P as _,Q as $,R as aa,T as sa,U as oa,V as ta,W as ea,Y as ra,$ as na,a0 as pa,a1 as ia,a2 as la,a3 as ma,a4 as ca,a5 as Ta,a6 as ba,a7 as da,a8 as Sa,a9 as Ba,aa as La,ab as Ca,ac as Ha,ad as ua}from"./index-C4nnFC4q.js";import"./iframe-BM56Rj-4.js";import"../sb-preview/runtime.js";import"./index-RYns6xqu.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";export{p as A,i as ActionBar,l as AddonPanel,m as Badge,c as Bar,T as Blockquote,b as Button,d as ClipboardCode,S as Code,B as DL,L as Div,C as DocumentWrapper,H as EmptyTabContent,u as ErrorFormatter,g as FlexBar,y as Form,I as H1,h as H2,k as H3,P as H4,W as H5,A as H6,F as HR,x as IconButton,D as IconButtonSkeleton,R as Icons,f as Img,v as LI,E as Link,M as ListItem,N as Loader,q as Modal,w as OL,O as P,U as Placeholder,Z as Pre,j as ResetWrapper,z as ScrollArea,G as Separator,J as Spaced,K as Span,Q as StorybookIcon,V as StorybookLogo,X as Symbols,Y as SyntaxHighlighter,_ as TT,$ as TabBar,aa as TabButton,sa as TabWrapper,oa as Table,ta as Tabs,ea as TabsState,ra as TooltipLinkList,na as TooltipMessage,pa as TooltipNote,ia as UL,la as WithTooltip,ma as WithTooltipPure,ca as Zoom,Ta as codeCommon,ba as components,da as createCopyToClipboardFunction,Sa as getStoryHref,Ba as icons,La as interleaveSeparators,Ca as nameSpaceClassNames,Ha as resetComponents,ua as withReset}; diff --git a/assets/itemfilter.stories-f10HZydY.js b/assets/itemfilter.stories-CeTEqu4V.js similarity index 97% rename from assets/itemfilter.stories-f10HZydY.js rename to assets/itemfilter.stories-CeTEqu4V.js index 02d45aa63..719e399ef 100644 --- a/assets/itemfilter.stories-f10HZydY.js +++ b/assets/itemfilter.stories-CeTEqu4V.js @@ -1,4 +1,4 @@ -var Wd=Object.defineProperty;var Gd=(e,t,r)=>t in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wr=(e,t,r)=>Gd(e,typeof t!="symbol"?t+"":t,r);import{i as Xo}from"./index-DZLKizrv.js";import{k as pr}from"./lit-element-CHc5qsYe.js";const Xr=[{archived:!1,code:"E10a2",description:"Actively managed total area from Sentinel-2 data",indicator:"Actively managed total area from Sentinel-2 data",themes:["agriculture"],title:"White Asparagus area [%]",name:"Actively managed total area from Sentinel-2 data",year:2e3,likes:4,years:[2e3,2e3],timestamp:"2023-06-14T13:56:38+00:00",datetime:["2023-06-14T10:56:38+00:00","2023-06-14T22:56:38+00:00"],bbox:[-90,60,-20,82],geometry:{type:"Polygon",coordinates:[[[-90,60],[-20,60],[-20,82],[-90,82]]]},tags:["agriculture","Sentinel-2","asparagus"],status:{code:"active"}},{archived:!1,code:"E10a9",description:"Agricultural Workers",indicator:"Agricultural Workers",themes:["agriculture"],title:"Workers availability [nr]",name:"Agricultural Workers",year:2020,likes:46,years:[2007,2020],timestamp:"2023-06-13T13:56:38+00:00",datetime:["2023-06-13T10:56:38+00:00","2023-06-13T22:56:38+00:00"],bbox:[0,0,10,10],geometry:{type:"Polygon",coordinates:[[[0,0],[10,0],[10,10],[0,10]]]},tags:["agriculture","workers","availability"],status:{code:"inactive"}},{archived:!1,code:"N1",description:"Air Quality",indicator:"Air Quality",themes:["air"],title:"Sea ice freeboard",name:"Sea ice freeboard",year:2023,likes:34,years:[2008,2023],timestamp:"2023-06-12T13:56:38+00:00",datetime:["2023-06-12T10:56:38+00:00","2023-06-12T22:56:38+00:00"],bbox:[-180,-80,180,-61],geometry:{type:"Polygon",coordinates:[[[-180,-80],[180,-80],[180,-61],[-180,-61]]]},tags:["air quality","sea ice","freeboard"],status:{code:"active"}},{archived:!1,code:"E13o",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (all) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2022,likes:177,years:[2021,2022],timestamp:"2023-06-11T13:56:38+00:00",datetime:["2023-06-11T10:56:38+00:00","2023-06-11T22:56:38+00:00"],tags:["economy","vessel density","average"],status:{code:"inactive"}},{archived:!1,code:"E13p",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (cargo) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2016,likes:0,years:[2005,2016],timestamp:"2023-06-10T13:56:38+00:00",datetime:["2023-06-10T10:56:38+00:00","2023-06-10T22:56:38+00:00"],tags:["economy","vessel density","cargo"],status:{code:"active"}},{archived:!1,code:"E13q",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (tanker) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2017,likes:0,years:[2006,2017],timestamp:"2023-06-09T13:56:38+00:00",datetime:["2023-06-09T10:56:38+00:00","2023-06-09T22:56:38+00:00"],tags:["economy","vessel density","tanker"],status:{code:"inactive"}},{archived:!1,code:"E13r",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (others) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2003,likes:2,years:[2001,2003],timestamp:"2023-06-08T13:56:38+00:00",datetime:["2023-06-08T10:56:38+00:00","2023-06-08T22:56:38+00:00"],tags:["economy","vessel density","others"],status:{code:"active"}},{archived:!1,code:"C1",description:"Boat traffic - NO2 level",indicator:"Boat traffic - NO2 level",themes:["economy","air"],title:"Ships - NO2 Correlation",indicatorOverwrite:"Ports and Shipping - impact on air quality",name:"Boat traffic - NO2 level",year:2020,likes:65,years:[2015,2020],timestamp:"2023-06-07T13:56:38+00:00",datetime:["2023-06-07T10:56:38+00:00","2023-06-07T22:56:38+00:00"],tags:["economy","air","NO2","boat traffic"],status:{code:"inactive"}},{archived:!1,code:"CDS1",description:"C3S Data",indicator:"C3S Data",themes:["air"],title:"Temperature",name:"C3S Data",year:2021,likes:34,years:[2021,2021],timestamp:"2023-06-06T13:56:38+00:00",datetime:["2023-06-06T10:56:38+00:00","2023-06-06T22:56:38+00:00"],tags:["air","temperature","C3S Data"],status:{code:"active"}},{archived:!1,code:"N1a",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level PM2.5 (model)",name:"CAMS Air Quality",year:2023,likes:88,years:[2e3,2023],timestamp:"2023-06-05T13:56:38+00:00",datetime:["2023-06-05T10:56:38+00:00","2023-06-05T22:56:38+00:00"],tags:["air","PM2.5","city level"],status:{code:"inactive"}},{archived:!1,code:"N1b",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level NO2 (model)",name:"CAMS Air Quality",year:2022,likes:77,years:[2019,2022],timestamp:"2023-06-04T13:56:38+00:00",datetime:["2023-06-04T10:56:38+00:00","2023-06-04T22:56:38+00:00"],tags:["air","NO2","city level"],status:{code:"active"}},{archived:!1,code:"N1c",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level PM10 (model)",name:"CAMS Air Quality",year:2018,likes:23,years:[2014,2018],timestamp:"2023-06-03T13:56:38+00:00",datetime:["2023-06-03T10:56:38+00:00","2023-06-03T22:56:38+00:00"],tags:["air","PM10","city level"],status:{code:"inactive"}},{archived:!1,code:"N1d",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level O3 (model)",name:"CAMS Air Quality",year:2018,likes:56,years:[2017,2018],timestamp:"2023-06-02T13:56:38+00:00",datetime:["2023-06-02T10:56:38+00:00","2023-06-02T22:56:38+00:00"],tags:["air","O3","city level"],status:{code:"active"}},{archived:!1,code:"E13e",description:"Cargo ships in port based on AIS data",indicator:"Cargo ships in port based on AIS data",themes:["economy"],title:"Cargo Ships [nr]",name:"Cargo ships in port based on AIS data",year:2019,likes:11,years:[2018,2019],timestamp:"2023-06-01T13:56:38+00:00",datetime:["2023-06-01T10:56:38+00:00","2023-06-01T22:56:38+00:00"],tags:["economy","cargo ships","AIS data"],status:{code:"inactive"}},{archived:!1,code:"E13n",description:"Changes in traffic based on mobile data",indicator:"Changes in traffic based on mobile data",themes:["economy"],title:"Trucks transiting ports [%]",name:"Changes in traffic based on mobile data",year:2017,likes:8,years:[2015,2017],timestamp:"2023-05-29T13:56:38+00:00",datetime:["2023-05-29T10:56:38+00:00","2023-05-29T22:56:38+00:00"],tags:["economy","traffic","mobile data"],status:{code:"active"}},{archived:!1,code:"N3c",description:"CMEMS product",indicator:"CMEMS product",themes:["water"],title:"CHL-a concentration (map, 1km)",name:"CMEMS product",year:2015,likes:37,years:[2014,2015],timestamp:"2023-05-28T13:56:38+00:00",datetime:["2023-05-28T10:56:38+00:00","2023-05-28T22:56:38+00:00"],tags:["water","CHL-a","concentration"],status:{code:"inactive"}},{archived:!1,code:"CV",description:"Covid-19 cases",indicator:"Covid-19 cases",themes:["health"],title:"Covid-19 cases",name:"Covid-19 cases",year:2013,likes:4,years:[2001,2013],timestamp:"2023-05-27T13:56:38+00:00",datetime:["2023-05-27T10:56:38+00:00","2023-05-27T22:56:38+00:00"],tags:["health","Covid-19","cases"],status:{code:"active"}},{archived:!1,code:"OW",description:"Covid-19 vaccinations",indicator:"Covid-19 vaccinations",themes:["health"],title:"Covid-19 vaccinations",name:"Covid-19 vaccinations",year:2016,likes:39,years:[2015,2016],timestamp:"2023-05-26T13:56:38+00:00",datetime:["2023-05-26T10:56:38+00:00","2023-05-26T22:56:38+00:00"],tags:["health","Covid-19","vaccinations"],status:{code:"inactive"}},{archived:!1,code:"E3",description:"Crude Oil and other input materials",indicator:"Crude Oil and other input materials",themes:["economy"],title:"Raw Material Inventory",name:"Crude Oil and other input materials",year:2020,likes:28,years:[2014,2020],timestamp:"2023-05-25T13:56:38+00:00",datetime:["2023-05-25T10:56:38+00:00","2023-05-25T22:56:38+00:00"],tags:["economy","crude oil","input materials"],status:{code:"active"}},{archived:!1,code:"E13l",description:"Cruise ships in port based on AIS data",indicator:"Cruise ships in port based on AIS data",themes:["economy"],title:"Cruise Ships [nr]",name:"Cruise ships in port based on AIS data",year:1999,likes:17,years:[1998,1999],timestamp:"2023-05-24T13:56:38+00:00",datetime:["2023-05-24T10:56:38+00:00","2023-05-24T22:56:38+00:00"],tags:["economy","cruise ships","AIS data"],status:{code:"inactive"}}];var Kd={};const{once:Yd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Jd=Object.create,Qo=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,$l=Object.getOwnPropertyNames,Qd=Object.getPrototypeOf,Zd=Object.prototype.hasOwnProperty,ep=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),v=(e,t)=>function(){return t||(0,e[$l(e)[0]])((t={exports:{}}).exports,t),t.exports},Zo=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},tp=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $l(t))!Zd.call(e,n)&&n!==r&&Qo(e,n,{get:()=>t[n],enumerable:!(a=Xd(t,n))||a.enumerable});return e},qe=(e,t,r)=>(r=e!=null?Jd(Qd(e)):{},tp(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),Ll=v({"../../node_modules/assertion-error/index.js"(e,t){function r(){var n=[].slice.call(arguments);function u(o,i){Object.keys(i).forEach(function(l){~n.indexOf(l)||(o[l]=i[l])})}return function(){for(var o=[].slice.call(arguments),i=0,l={};i"u"||s===null?!1:p in Object(s)}function a(s){var p=s.replace(/([^\\])\[/g,"$1.["),c=p.match(/(\\\.|[^.]+?)+/g);return c.map(function(d){if(d==="constructor"||d==="__proto__"||d==="prototype")return{};var f=/^\[(\d+)\]$/,m=f.exec(d),b=null;return m?b={i:parseFloat(m[1])}:b={p:d.replace(/\\([.[\]])/g,"$1")},b})}function n(s,p,c){var d=s,f=null;c=typeof c>"u"?p.length:c;for(var m=0;m"u"?d=d[b.i]:d=d[b.p],m===c-1&&(f=d))}return f}function u(s,p,c){for(var d=s,f=c.length,m=null,b=0;b"u"?m.i:m.p,d[_]=p;else if(typeof m.p<"u"&&d[m.p])d=d[m.p];else if(typeof m.i<"u"&&d[m.i])d=d[m.i];else{var h=c[b+1];_=typeof m.p>"u"?m.i:m.p,y=typeof h.p>"u"?[]:{},d[_]=y,d=d[_]}}}function o(s,p){var c=a(p),d=c[c.length-1],f={parent:c.length>1?n(s,c,c.length-1):s,name:d.p||d.i,value:n(s,c)};return f.exists=r(f.parent,f.name),f}function i(s,p){var c=o(s,p);return c.value}function l(s,p,c){var d=a(p);return u(s,c,d),s}t.exports={hasProperty:r,getPathInfo:o,getPathValue:i,setPathValue:l}}}),et=v({"../../node_modules/chai/lib/chai/utils/flag.js"(e,t){t.exports=function(r,a,n){var u=r.__flags||(r.__flags=Object.create(null));if(arguments.length===3)u[a]=n;else return u[a]}}}),ap=v({"../../node_modules/chai/lib/chai/utils/test.js"(e,t){var r=et();t.exports=function(a,n){var u=r(a,"negate"),o=n[0];return u?!o:o}}}),Aa=v({"../../node_modules/type-detect/type-detect.js"(e,t){(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):r.typeDetect=a()})(e,function(){var r=typeof Promise=="function",a=typeof self=="object"?self:global,n=typeof Symbol<"u",u=typeof Map<"u",o=typeof Set<"u",i=typeof WeakMap<"u",l=typeof WeakSet<"u",s=typeof DataView<"u",p=n&&typeof Symbol.iterator<"u",c=n&&typeof Symbol.toStringTag<"u",d=o&&typeof Set.prototype.entries=="function",f=u&&typeof Map.prototype.entries=="function",m=d&&Object.getPrototypeOf(new Set().entries()),b=f&&Object.getPrototypeOf(new Map().entries()),_=p&&typeof Array.prototype[Symbol.iterator]=="function",y=_&&Object.getPrototypeOf([][Symbol.iterator]()),h=p&&typeof String.prototype[Symbol.iterator]=="function",q=h&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,O=-1;function P(C){var g=typeof C;if(g!=="object")return g;if(C===null)return"null";if(C===a)return"global";if(Array.isArray(C)&&(c===!1||!(Symbol.toStringTag in C)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&C===window.location)return"Location";if(typeof window.document=="object"&&C===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&C===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&C===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&C instanceof window.HTMLElement){if(C.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(C.tagName==="TD")return"HTMLTableDataCellElement";if(C.tagName==="TH")return"HTMLTableHeaderCellElement"}}var R=c&&C[Symbol.toStringTag];if(typeof R=="string")return R;var T=Object.getPrototypeOf(C);return T===RegExp.prototype?"RegExp":T===Date.prototype?"Date":r&&T===Promise.prototype?"Promise":o&&T===Set.prototype?"Set":u&&T===Map.prototype?"Map":l&&T===WeakSet.prototype?"WeakSet":i&&T===WeakMap.prototype?"WeakMap":s&&T===DataView.prototype?"DataView":u&&T===b?"Map Iterator":o&&T===m?"Set Iterator":_&&T===y?"Array Iterator":h&&T===q?"String Iterator":T===null?"Object":Object.prototype.toString.call(C).slice(w,O)}return P})}}),op=v({"../../node_modules/chai/lib/chai/utils/expectTypes.js"(e,t){var r=Ll(),a=et(),n=Aa();t.exports=function(u,o){var i=a(u,"message"),l=a(u,"ssfi");i=i?i+": ":"",u=a(u,"object"),o=o.map(function(c){return c.toLowerCase()}),o.sort();var s=o.map(function(c,d){var f=~["a","e","i","o","u"].indexOf(c.charAt(0))?"an":"a",m=o.length>1&&d===o.length-1?"or ":"";return m+f+" "+c}).join(", "),p=n(u).toLowerCase();if(!o.some(function(c){return p===c}))throw new r(i+"object tested must be "+s+", but "+p+" given",void 0,l)}}}),Fl=v({"../../node_modules/chai/lib/chai/utils/getActual.js"(e,t){t.exports=function(r,a){return a.length>4?a[4]:r._obj}}}),en=v({"../../node_modules/get-func-name/index.js"(e,t){var r=Function.prototype.toString,a=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,n=512;function u(o){if(typeof o!="function")return null;var i="";if(typeof Function.prototype.name>"u"&&typeof o.name>"u"){var l=r.call(o);if(l.indexOf("(")>n)return i;var s=l.match(a);s&&(i=s[1])}else i=o.name;return i}t.exports=u}}),ja=v({"../../node_modules/loupe/loupe.js"(e,t){(function(r,a){typeof e=="object"&&typeof t<"u"?a(e):typeof define=="function"&&define.amd?define(["exports"],a):(r=typeof globalThis<"u"?globalThis:r||self,a(r.loupe={}))})(e,function(r){function a(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(B){return typeof B}:a=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},a(A)}function n(A,B){return u(A)||o(A,B)||i(A,B)||s()}function u(A){if(Array.isArray(A))return A}function o(A,B){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(A)))){var K=[],oe=!0,se=!1,ce=void 0;try{for(var de=A[Symbol.iterator](),ye;!(oe=(ye=de.next()).done)&&(K.push(ye.value),!(B&&K.length===B));oe=!0);}catch(ve){se=!0,ce=ve}finally{try{!oe&&de.return!=null&&de.return()}finally{if(se)throw ce}}return K}}function i(A,B){if(A){if(typeof A=="string")return l(A,B);var K=Object.prototype.toString.call(A).slice(8,-1);if(K==="Object"&&A.constructor&&(K=A.constructor.name),K==="Map"||K==="Set")return Array.from(A);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return l(A,B)}}function l(A,B){(B==null||B>A.length)&&(B=A.length);for(var K=0,oe=new Array(B);Kt in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wr=(e,t,r)=>Gd(e,typeof t!="symbol"?t+"":t,r);import{i as Xo}from"./index-DZLKizrv.js";import{k as pr}from"./lit-element-CHc5qsYe.js";const Xr=[{archived:!1,code:"E10a2",description:"Actively managed total area from Sentinel-2 data",indicator:"Actively managed total area from Sentinel-2 data",themes:["agriculture"],title:"White Asparagus area [%]",name:"Actively managed total area from Sentinel-2 data",year:2e3,likes:4,years:[2e3,2e3],correlation:.3,rating:20,timestamp:"2023-06-14T13:56:38+00:00",datetime:["2023-06-14T10:56:38+00:00","2023-06-14T22:56:38+00:00"],bbox:[-90,60,-20,82],geometry:{type:"Polygon",coordinates:[[[-90,60],[-20,60],[-20,82],[-90,82]]]},tags:["agriculture","Sentinel-2","asparagus"],status:{code:"active"}},{archived:!1,code:"E10a9",description:"Agricultural Workers",indicator:"Agricultural Workers",themes:["agriculture"],title:"Workers availability [nr]",name:"Agricultural Workers",year:2020,likes:46,years:[2007,2020],correlation:.3,rating:10,timestamp:"2023-06-13T13:56:38+00:00",datetime:["2023-06-13T10:56:38+00:00","2023-06-13T22:56:38+00:00"],bbox:[0,0,10,10],geometry:{type:"Polygon",coordinates:[[[0,0],[10,0],[10,10],[0,10]]]},tags:["agriculture","workers","availability"],status:{code:"inactive"}},{archived:!1,code:"N1",description:"Air Quality",indicator:"Air Quality",themes:["air"],title:"Sea ice freeboard",name:"Sea ice freeboard",year:2023,likes:34,years:[2008,2023],correlation:-.4,rating:-30,timestamp:"2023-06-12T13:56:38+00:00",datetime:["2023-06-12T10:56:38+00:00","2023-06-12T22:56:38+00:00"],bbox:[-180,-80,180,-61],geometry:{type:"Polygon",coordinates:[[[-180,-80],[180,-80],[180,-61],[-180,-61]]]},tags:["air quality","sea ice","freeboard"],status:{code:"active"}},{archived:!1,code:"E13o",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (all) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2022,likes:177,years:[2021,2022],correlation:.3,rating:-50,timestamp:"2023-06-11T13:56:38+00:00",datetime:["2023-06-11T10:56:38+00:00","2023-06-11T22:56:38+00:00"],tags:["economy","vessel density","average"],status:{code:"inactive"}},{archived:!1,code:"E13p",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (cargo) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2016,likes:0,years:[2005,2016],correlation:.3,rating:-100,timestamp:"2023-06-10T13:56:38+00:00",datetime:["2023-06-10T10:56:38+00:00","2023-06-10T22:56:38+00:00"],tags:["economy","vessel density","cargo"],status:{code:"active"}},{archived:!1,code:"E13q",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (tanker) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2017,likes:0,years:[2006,2017],correlation:.7,rating:100,timestamp:"2023-06-09T13:56:38+00:00",datetime:["2023-06-09T10:56:38+00:00","2023-06-09T22:56:38+00:00"],tags:["economy","vessel density","tanker"],status:{code:"inactive"}},{archived:!1,code:"E13r",description:"Average number of vessels in a km2 cell in a given period",indicator:"Average number of vessels in a km2 cell in a given period",themes:["economy"],title:"Vessel density (others) [h/sqkm]",name:"Average number of vessels in a km2 cell in a given period",year:2003,likes:2,years:[2001,2003],correlation:1,rating:20,timestamp:"2023-06-08T13:56:38+00:00",datetime:["2023-06-08T10:56:38+00:00","2023-06-08T22:56:38+00:00"],tags:["economy","vessel density","others"],status:{code:"active"}},{archived:!1,code:"C1",description:"Boat traffic - NO2 level",indicator:"Boat traffic - NO2 level",themes:["economy","air"],title:"Ships - NO2 Correlation",indicatorOverwrite:"Ports and Shipping - impact on air quality",name:"Boat traffic - NO2 level",year:2020,likes:65,years:[2015,2020],correlation:.2,rating:50,timestamp:"2023-06-07T13:56:38+00:00",datetime:["2023-06-07T10:56:38+00:00","2023-06-07T22:56:38+00:00"],tags:["economy","air","NO2","boat traffic"],status:{code:"inactive"}},{archived:!1,code:"CDS1",description:"C3S Data",indicator:"C3S Data",themes:["air"],title:"Temperature",name:"C3S Data",year:2021,likes:34,years:[2021,2021],correlation:.1,rating:-10,timestamp:"2023-06-06T13:56:38+00:00",datetime:["2023-06-06T10:56:38+00:00","2023-06-06T22:56:38+00:00"],tags:["air","temperature","C3S Data"],status:{code:"active"}},{archived:!1,code:"N1a",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level PM2.5 (model)",name:"CAMS Air Quality",year:2023,likes:88,years:[2e3,2023],correlation:.1,rating:0,timestamp:"2023-06-05T13:56:38+00:00",datetime:["2023-06-05T10:56:38+00:00","2023-06-05T22:56:38+00:00"],tags:["air","PM2.5","city level"],status:{code:"inactive"}},{archived:!1,code:"N1b",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level NO2 (model)",name:"CAMS Air Quality",year:2022,likes:77,years:[2019,2022],correlation:-.2,rating:-90,timestamp:"2023-06-04T13:56:38+00:00",datetime:["2023-06-04T10:56:38+00:00","2023-06-04T22:56:38+00:00"],tags:["air","NO2","city level"],status:{code:"active"}},{archived:!1,code:"N1c",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level PM10 (model)",name:"CAMS Air Quality",year:2018,likes:23,years:[2014,2018],correlation:-.1,rating:-20,timestamp:"2023-06-03T13:56:38+00:00",datetime:["2023-06-03T10:56:38+00:00","2023-06-03T22:56:38+00:00"],tags:["air","PM10","city level"],status:{code:"inactive"}},{archived:!1,code:"N1d",description:"CAMS Air Quality",indicator:"CAMS Air Quality",themes:["air"],title:"City level O3 (model)",name:"CAMS Air Quality",year:2018,likes:56,years:[2017,2018],correlation:-.2,rating:-100,timestamp:"2023-06-02T13:56:38+00:00",datetime:["2023-06-02T10:56:38+00:00","2023-06-02T22:56:38+00:00"],tags:["air","O3","city level"],status:{code:"active"}},{archived:!1,code:"E13e",description:"Cargo ships in port based on AIS data",indicator:"Cargo ships in port based on AIS data",themes:["economy"],title:"Cargo Ships [nr]",name:"Cargo ships in port based on AIS data",year:2019,likes:11,years:[2018,2019],correlation:0,rating:10,timestamp:"2023-06-01T13:56:38+00:00",datetime:["2023-06-01T10:56:38+00:00","2023-06-01T22:56:38+00:00"],tags:["economy","cargo ships","AIS data"],status:{code:"inactive"}},{archived:!1,code:"E13n",description:"Changes in traffic based on mobile data",indicator:"Changes in traffic based on mobile data",themes:["economy"],title:"Trucks transiting ports [%]",name:"Changes in traffic based on mobile data",year:2017,likes:8,years:[2015,2017],correlation:.6,rating:90,timestamp:"2023-05-29T13:56:38+00:00",datetime:["2023-05-29T10:56:38+00:00","2023-05-29T22:56:38+00:00"],tags:["economy","traffic","mobile data"],status:{code:"active"}},{archived:!1,code:"N3c",description:"CMEMS product",indicator:"CMEMS product",themes:["water"],title:"CHL-a concentration (map, 1km)",name:"CMEMS product",year:2015,likes:37,years:[2014,2015],correlation:.4,rating:-40,timestamp:"2023-05-28T13:56:38+00:00",datetime:["2023-05-28T10:56:38+00:00","2023-05-28T22:56:38+00:00"],tags:["water","CHL-a","concentration"],status:{code:"inactive"}},{archived:!1,code:"CV",description:"Covid-19 cases",indicator:"Covid-19 cases",themes:["health"],title:"Covid-19 cases",name:"Covid-19 cases",year:2013,likes:4,years:[2001,2013],correlation:-.5,rating:-70,timestamp:"2023-05-27T13:56:38+00:00",datetime:["2023-05-27T10:56:38+00:00","2023-05-27T22:56:38+00:00"],tags:["health","Covid-19","cases"],status:{code:"active"}},{archived:!1,code:"OW",description:"Covid-19 vaccinations",indicator:"Covid-19 vaccinations",themes:["health"],title:"Covid-19 vaccinations",name:"Covid-19 vaccinations",year:2016,likes:39,years:[2015,2016],correlation:-.9,rating:70,timestamp:"2023-05-26T13:56:38+00:00",datetime:["2023-05-26T10:56:38+00:00","2023-05-26T22:56:38+00:00"],tags:["health","Covid-19","vaccinations"],status:{code:"inactive"}},{archived:!1,code:"E3",description:"Crude Oil and other input materials",indicator:"Crude Oil and other input materials",themes:["economy"],title:"Raw Material Inventory",name:"Crude Oil and other input materials",year:2020,likes:28,years:[2014,2020],correlation:-.9,rating:80,timestamp:"2023-05-25T13:56:38+00:00",datetime:["2023-05-25T10:56:38+00:00","2023-05-25T22:56:38+00:00"],tags:["economy","crude oil","input materials"],status:{code:"active"}},{archived:!1,code:"E13l",description:"Cruise ships in port based on AIS data",indicator:"Cruise ships in port based on AIS data",themes:["economy"],title:"Cruise Ships [nr]",name:"Cruise ships in port based on AIS data",year:1999,likes:17,years:[1998,1999],correlation:-1,rating:0,timestamp:"2023-05-24T13:56:38+00:00",datetime:["2023-05-24T10:56:38+00:00","2023-05-24T22:56:38+00:00"],tags:["economy","cruise ships","AIS data"],status:{code:"inactive"}}];var Kd={};const{once:Yd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Jd=Object.create,Qo=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,$l=Object.getOwnPropertyNames,Qd=Object.getPrototypeOf,Zd=Object.prototype.hasOwnProperty,ep=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),v=(e,t)=>function(){return t||(0,e[$l(e)[0]])((t={exports:{}}).exports,t),t.exports},Zo=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},tp=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $l(t))!Zd.call(e,n)&&n!==r&&Qo(e,n,{get:()=>t[n],enumerable:!(a=Xd(t,n))||a.enumerable});return e},qe=(e,t,r)=>(r=e!=null?Jd(Qd(e)):{},tp(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),Ll=v({"../../node_modules/assertion-error/index.js"(e,t){function r(){var n=[].slice.call(arguments);function u(o,i){Object.keys(i).forEach(function(l){~n.indexOf(l)||(o[l]=i[l])})}return function(){for(var o=[].slice.call(arguments),i=0,l={};i"u"||s===null?!1:p in Object(s)}function a(s){var p=s.replace(/([^\\])\[/g,"$1.["),c=p.match(/(\\\.|[^.]+?)+/g);return c.map(function(d){if(d==="constructor"||d==="__proto__"||d==="prototype")return{};var f=/^\[(\d+)\]$/,m=f.exec(d),b=null;return m?b={i:parseFloat(m[1])}:b={p:d.replace(/\\([.[\]])/g,"$1")},b})}function n(s,p,c){var d=s,f=null;c=typeof c>"u"?p.length:c;for(var m=0;m"u"?d=d[b.i]:d=d[b.p],m===c-1&&(f=d))}return f}function u(s,p,c){for(var d=s,f=c.length,m=null,b=0;b"u"?m.i:m.p,d[_]=p;else if(typeof m.p<"u"&&d[m.p])d=d[m.p];else if(typeof m.i<"u"&&d[m.i])d=d[m.i];else{var h=c[b+1];_=typeof m.p>"u"?m.i:m.p,y=typeof h.p>"u"?[]:{},d[_]=y,d=d[_]}}}function o(s,p){var c=a(p),d=c[c.length-1],f={parent:c.length>1?n(s,c,c.length-1):s,name:d.p||d.i,value:n(s,c)};return f.exists=r(f.parent,f.name),f}function i(s,p){var c=o(s,p);return c.value}function l(s,p,c){var d=a(p);return u(s,c,d),s}t.exports={hasProperty:r,getPathInfo:o,getPathValue:i,setPathValue:l}}}),et=v({"../../node_modules/chai/lib/chai/utils/flag.js"(e,t){t.exports=function(r,a,n){var u=r.__flags||(r.__flags=Object.create(null));if(arguments.length===3)u[a]=n;else return u[a]}}}),ap=v({"../../node_modules/chai/lib/chai/utils/test.js"(e,t){var r=et();t.exports=function(a,n){var u=r(a,"negate"),o=n[0];return u?!o:o}}}),Aa=v({"../../node_modules/type-detect/type-detect.js"(e,t){(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):r.typeDetect=a()})(e,function(){var r=typeof Promise=="function",a=typeof self=="object"?self:global,n=typeof Symbol<"u",u=typeof Map<"u",o=typeof Set<"u",i=typeof WeakMap<"u",l=typeof WeakSet<"u",s=typeof DataView<"u",p=n&&typeof Symbol.iterator<"u",c=n&&typeof Symbol.toStringTag<"u",d=o&&typeof Set.prototype.entries=="function",f=u&&typeof Map.prototype.entries=="function",m=d&&Object.getPrototypeOf(new Set().entries()),b=f&&Object.getPrototypeOf(new Map().entries()),_=p&&typeof Array.prototype[Symbol.iterator]=="function",y=_&&Object.getPrototypeOf([][Symbol.iterator]()),h=p&&typeof String.prototype[Symbol.iterator]=="function",q=h&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,O=-1;function P(C){var g=typeof C;if(g!=="object")return g;if(C===null)return"null";if(C===a)return"global";if(Array.isArray(C)&&(c===!1||!(Symbol.toStringTag in C)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&C===window.location)return"Location";if(typeof window.document=="object"&&C===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&C===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&C===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&C instanceof window.HTMLElement){if(C.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(C.tagName==="TD")return"HTMLTableDataCellElement";if(C.tagName==="TH")return"HTMLTableHeaderCellElement"}}var R=c&&C[Symbol.toStringTag];if(typeof R=="string")return R;var T=Object.getPrototypeOf(C);return T===RegExp.prototype?"RegExp":T===Date.prototype?"Date":r&&T===Promise.prototype?"Promise":o&&T===Set.prototype?"Set":u&&T===Map.prototype?"Map":l&&T===WeakSet.prototype?"WeakSet":i&&T===WeakMap.prototype?"WeakMap":s&&T===DataView.prototype?"DataView":u&&T===b?"Map Iterator":o&&T===m?"Set Iterator":_&&T===y?"Array Iterator":h&&T===q?"String Iterator":T===null?"Object":Object.prototype.toString.call(C).slice(w,O)}return P})}}),op=v({"../../node_modules/chai/lib/chai/utils/expectTypes.js"(e,t){var r=Ll(),a=et(),n=Aa();t.exports=function(u,o){var i=a(u,"message"),l=a(u,"ssfi");i=i?i+": ":"",u=a(u,"object"),o=o.map(function(c){return c.toLowerCase()}),o.sort();var s=o.map(function(c,d){var f=~["a","e","i","o","u"].indexOf(c.charAt(0))?"an":"a",m=o.length>1&&d===o.length-1?"or ":"";return m+f+" "+c}).join(", "),p=n(u).toLowerCase();if(!o.some(function(c){return p===c}))throw new r(i+"object tested must be "+s+", but "+p+" given",void 0,l)}}}),Fl=v({"../../node_modules/chai/lib/chai/utils/getActual.js"(e,t){t.exports=function(r,a){return a.length>4?a[4]:r._obj}}}),en=v({"../../node_modules/get-func-name/index.js"(e,t){var r=Function.prototype.toString,a=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,n=512;function u(o){if(typeof o!="function")return null;var i="";if(typeof Function.prototype.name>"u"&&typeof o.name>"u"){var l=r.call(o);if(l.indexOf("(")>n)return i;var s=l.match(a);s&&(i=s[1])}else i=o.name;return i}t.exports=u}}),ja=v({"../../node_modules/loupe/loupe.js"(e,t){(function(r,a){typeof e=="object"&&typeof t<"u"?a(e):typeof define=="function"&&define.amd?define(["exports"],a):(r=typeof globalThis<"u"?globalThis:r||self,a(r.loupe={}))})(e,function(r){function a(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(B){return typeof B}:a=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},a(A)}function n(A,B){return u(A)||o(A,B)||i(A,B)||s()}function u(A){if(Array.isArray(A))return A}function o(A,B){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(A)))){var K=[],oe=!0,se=!1,ce=void 0;try{for(var de=A[Symbol.iterator](),ye;!(oe=(ye=de.next()).done)&&(K.push(ye.value),!(B&&K.length===B));oe=!0);}catch(ve){se=!0,ce=ve}finally{try{!oe&&de.return!=null&&de.return()}finally{if(se)throw ce}}return K}}function i(A,B){if(A){if(typeof A=="string")return l(A,B);var K=Object.prototype.toString.call(A).slice(8,-1);if(K==="Object"&&A.constructor&&(K=A.constructor.name),K==="Map"||K==="Set")return Array.from(A);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return l(A,B)}}function l(A,B){(B==null||B>A.length)&&(B=A.length);for(var K=0,oe=new Array(B);K0&&arguments[0]!==void 0?arguments[0]:{},B=A.showHidden,K=B===void 0?!1:B,oe=A.depth,se=oe===void 0?2:oe,ce=A.colors,de=ce===void 0?!1:ce,ye=A.customInspect,ve=ye===void 0?!0:ye,Z=A.showProxy,te=Z===void 0?!1:Z,Be=A.maxArrayLength,Fe=Be===void 0?1/0:Be,xe=A.breakLength,ot=xe===void 0?1/0:xe,nt=A.seen,gr=nt===void 0?[]:nt,Wt=A.truncate,oa=Wt===void 0?1/0:Wt,vr=A.stylize,_r=vr===void 0?String:vr,Gt={showHidden:!!K,depth:Number(se),colors:!!de,customInspect:!!ve,showProxy:!!te,maxArrayLength:Number(Fe),breakLength:Number(ot),truncate:Number(oa),seen:gr,stylize:_r};return Gt.colors&&(Gt.stylize=f),Gt}function b(A,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d;A=String(A);var oe=K.length,se=A.length;return oe>B&&se>oe?K:se>B&&se>oe?"".concat(A.slice(0,B-oe)).concat(K):A}function _(A,B,K){var oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";K=K||B.inspect;var se=A.length;if(se===0)return"";for(var ce=B.truncate,de="",ye="",ve="",Z=0;Zce&&de.length+ve.length<=ce||!te&&!Be&&nt>ce||(ye=te?"":K(A[Z+1],B)+(Be?"":oe),!te&&Be&&nt>ce&&ot+ye.length>ce))break;if(de+=xe,!te&&!Be&&ot+ye.length>=ce){ve="".concat(d,"(").concat(A.length-Z-1,")");break}ve=""}return"".concat(de).concat(ve)}function y(A){return A.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?A:JSON.stringify(A).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function h(A,B){var K=n(A,2),oe=K[0],se=K[1];return B.truncate-=2,typeof oe=="string"?oe=y(oe):typeof oe!="number"&&(oe="[".concat(B.inspect(oe,B),"]")),B.truncate-=oe.length,se=B.inspect(se,B),"".concat(oe,": ").concat(se)}function q(A,B){var K=Object.keys(A).slice(A.length);if(!A.length&&!K.length)return"[]";B.truncate-=4;var oe=_(A,B);B.truncate-=oe.length;var se="";return K.length&&(se=_(K.map(function(ce){return[ce,A[ce]]}),B,h)),"[ ".concat(oe).concat(se?", ".concat(se):""," ]")}var w=Function.prototype.toString,O=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,P=512;function C(A){if(typeof A!="function")return null;var B="";if(typeof Function.prototype.name>"u"&&typeof A.name>"u"){var K=w.call(A);if(K.indexOf("(")>P)return B;var oe=K.match(O);oe&&(B=oe[1])}else B=A.name;return B}var g=C,R=function(A){return typeof Buffer=="function"&&A instanceof Buffer?"Buffer":A[Symbol.toStringTag]?A[Symbol.toStringTag]:g(A.constructor)};function T(A,B){var K=R(A);B.truncate-=K.length+4;var oe=Object.keys(A).slice(A.length);if(!A.length&&!oe.length)return"".concat(K,"[]");for(var se="",ce=0;ce ").concat(se)}function U(A){var B=[];return A.forEach(function(K,oe){B.push([oe,K])}),B}function Q(A,B){var K=A.size-1;return K<=0?"Map{}":(B.truncate-=7,"Map{ ".concat(_(U(A),B,L)," }"))}var ee=Number.isNaN||function(A){return A!==A};function re(A,B){return ee(A)?B.stylize("NaN","number"):A===1/0?B.stylize("Infinity","number"):A===-1/0?B.stylize("-Infinity","number"):A===0?B.stylize(1/A===1/0?"+0":"-0","number"):B.stylize(b(A,B.truncate),"number")}function ne(A,B){var K=b(A.toString(),B.truncate-1);return K!==d&&(K+="n"),B.stylize(K,"bigint")}function le(A,B){var K=A.toString().split("/")[2],oe=B.truncate-(2+K.length),se=A.source;return B.stylize("/".concat(b(se,oe),"/").concat(K),"regexp")}function ue(A){var B=[];return A.forEach(function(K){B.push(K)}),B}function S(A,B){return A.size===0?"Set{}":(B.truncate-=7,"Set{ ".concat(_(ue(A),B)," }"))}var x=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),k={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},j=16,z=4;function N(A){return k[A]||"\\u".concat("0000".concat(A.charCodeAt(0).toString(j)).slice(-z))}function I(A,B){return x.test(A)&&(A=A.replace(x,N)),B.stylize("'".concat(b(A,B.truncate-2),"'"),"string")}function H(A){return"description"in Symbol.prototype?A.description?"Symbol(".concat(A.description,")"):"Symbol()":A.toString()}var X=function(){return"Promise{…}"};try{var E=process.binding("util"),F=E.getPromiseDetails,D=E.kPending,J=E.kRejected;Array.isArray(F(Promise.resolve()))&&(X=function(A,B){var K=F(A),oe=n(K,2),se=oe[0],ce=oe[1];return se===D?"Promise{}":"Promise".concat(se===J?"!":"","{").concat(B.inspect(ce,B),"}")})}catch{}var G=X;function W(A,B){var K=Object.getOwnPropertyNames(A),oe=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(A):[];if(K.length===0&&oe.length===0)return"{}";if(B.truncate-=4,B.seen=B.seen||[],B.seen.indexOf(A)>=0)return"[Circular]";B.seen.push(A);var se=_(K.map(function(ye){return[ye,A[ye]]}),B,h),ce=_(oe.map(function(ye){return[ye,A[ye]]}),B,h);B.seen.pop();var de="";return se&&ce&&(de=", "),"{ ".concat(se).concat(de).concat(ce," }")}var ae=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ie(A,B){var K="";return ae&&ae in A&&(K=A[ae]),K=K||g(A.constructor),(!K||K==="_class")&&(K=""),B.truncate-=K.length,"".concat(K).concat(W(A,B))}function me(A,B){return A.length===0?"Arguments[]":(B.truncate-=13,"Arguments[ ".concat(_(A,B)," ]"))}var _e=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function Pe(A,B){var K=Object.getOwnPropertyNames(A).filter(function(de){return _e.indexOf(de)===-1}),oe=A.name;B.truncate-=oe.length;var se="";typeof A.message=="string"?se=b(A.message,B.truncate):K.unshift("message"),se=se?": ".concat(se):"",B.truncate-=se.length+5;var ce=_(K.map(function(de){return[de,A[de]]}),B,h);return"".concat(oe).concat(se).concat(ce?" { ".concat(ce," }"):"")}function rt(A,B){var K=n(A,2),oe=K[0],se=K[1];return B.truncate-=3,se?"".concat(B.stylize(oe,"yellow"),"=").concat(B.stylize('"'.concat(se,'"'),"string")):"".concat(B.stylize(oe,"yellow"))}function Ue(A,B){return _(A,B,Ke,` `)}function Ke(A,B){var K=A.getAttributeNames(),oe=A.tagName.toLowerCase(),se=B.stylize("<".concat(oe),"special"),ce=B.stylize(">","special"),de=B.stylize(""),"special");B.truncate-=oe.length*2+5;var ye="";K.length>0&&(ye+=" ",ye+=_(K.map(function(te){return[te,A.getAttribute(te)]}),B,rt," ")),B.truncate-=ye.length;var ve=B.truncate,Z=Ue(A.children,B);return Z&&Z.length>ve&&(Z="".concat(d,"(").concat(A.children.length,")")),"".concat(se).concat(ye).concat(ce).concat(Z).concat(de)}var at=typeof Symbol=="function"&&typeof Symbol.for=="function",$e=at?Symbol.for("chai/inspect"):"@@chai/inspect",Se=!1;try{var Ye=ep("util");Se=Ye.inspect?Ye.inspect.custom:!1}catch{Se=!1}function Ee(){this.key="chai/loupe__"+Math.random()+Date.now()}Ee.prototype={get:function(A){return A[this.key]},has:function(A){return this.key in A},set:function(A,B){Object.isExtensible(A)&&Object.defineProperty(A,this.key,{value:B,configurable:!0})}};var Te=new(typeof WeakMap=="function"?WeakMap:Ee),Ie={},Je={undefined:function(A,B){return B.stylize("undefined","undefined")},null:function(A,B){return B.stylize(null,"null")},boolean:function(A,B){return B.stylize(A,"boolean")},Boolean:function(A,B){return B.stylize(A,"boolean")},number:re,Number:re,bigint:ne,BigInt:ne,string:I,String:I,function:$,Function:$,symbol:H,Symbol:H,Array:q,Date:M,Map:Q,Set:S,RegExp:le,Promise:G,WeakSet:function(A,B){return B.stylize("WeakSet{…}","special")},WeakMap:function(A,B){return B.stylize("WeakMap{…}","special")},Arguments:me,Int8Array:T,Uint8Array:T,Uint8ClampedArray:T,Int16Array:T,Uint16Array:T,Int32Array:T,Uint32Array:T,Float32Array:T,Float64Array:T,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:Pe,HTMLCollection:Ue,NodeList:Ue},Mt=function(A,B,K){return $e in A&&typeof A[$e]=="function"?A[$e](B):Se&&Se in A&&typeof A[Se]=="function"?A[Se](B.depth,B):"inspect"in A&&typeof A.inspect=="function"?A.inspect(B.depth,B):"constructor"in A&&Te.has(A.constructor)?Te.get(A.constructor)(A,B):Ie[K]?Ie[K](A,B):""},dt=Object.prototype.toString;function Le(A,B){B=m(B),B.inspect=Le;var K=B,oe=K.customInspect,se=A===null?"null":a(A);if(se==="object"&&(se=dt.call(A).slice(8,-1)),Je[se])return Je[se](A,B);if(oe&&A){var ce=Mt(A,B,se);if(ce)return typeof ce=="string"?ce:Le(ce,B)}var de=A?Object.getPrototypeOf(A):!1;return de===Object.prototype||de===null?W(A,B):A&&typeof HTMLElement=="function"&&A instanceof HTMLElement?Ke(A,B):"constructor"in A?A.constructor!==Object?ie(A,B):W(A,B):A===Object(A)?W(A,B):B.stylize(String(A),se)}function V(A,B){return Te.has(A)?!1:(Te.set(A,B),!0)}function Y(A,B){return A in Ie?!1:(Ie[A]=B,!0)}var fe=$e;r.custom=fe,r.default=Le,r.inspect=Le,r.registerConstructor=V,r.registerStringTag=Y,Object.defineProperty(r,"__esModule",{value:!0})})}}),fr=v({"../../node_modules/chai/lib/chai/config.js"(e,t){t.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null}}}),tn=v({"../../node_modules/chai/lib/chai/utils/inspect.js"(e,t){en();var r=ja(),a=fr();t.exports=n;function n(u,o,i,l){var s={colors:l,depth:typeof i>"u"?2:i,showHidden:o,truncate:a.truncateThreshold?a.truncateThreshold:1/0};return r.inspect(u,s)}}}),Hl=v({"../../node_modules/chai/lib/chai/utils/objDisplay.js"(e,t){var r=tn(),a=fr();t.exports=function(n){var u=r(n),o=Object.prototype.toString.call(n);if(a.truncateThreshold&&u.length>=a.truncateThreshold){if(o==="[object Function]")return!n.name||n.name===""?"[Function]":"[Function: "+n.name+"]";if(o==="[object Array]")return"[ Array("+n.length+") ]";if(o==="[object Object]"){var i=Object.keys(n),l=i.length>2?i.splice(0,2).join(", ")+", ...":i.join(", ");return"{ Object ("+l+") }"}else return u}else return u}}}),np=v({"../../node_modules/chai/lib/chai/utils/getMessage.js"(e,t){var r=et(),a=Fl(),n=Hl();t.exports=function(u,o){var i=r(u,"negate"),l=r(u,"object"),s=o[3],p=a(u,o),c=i?o[2]:o[1],d=r(u,"message");return typeof c=="function"&&(c=c()),c=c||"",c=c.replace(/#\{this\}/g,function(){return n(l)}).replace(/#\{act\}/g,function(){return n(p)}).replace(/#\{exp\}/g,function(){return n(s)}),d?d+": "+c:c}}}),$t=v({"../../node_modules/chai/lib/chai/utils/transferFlags.js"(e,t){t.exports=function(r,a,n){var u=r.__flags||(r.__flags=Object.create(null));a.__flags||(a.__flags=Object.create(null)),n=arguments.length===3?n:!0;for(var o in u)(n||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(a.__flags[o]=u[o])}}}),ip=v({"../../node_modules/deep-eql/index.js"(e,t){var r=Aa();function a(){this._key="chai/deep-eql__"+Math.random()+Date.now()}a.prototype={get:function(g){return g[this._key]},set:function(g,R){Object.isExtensible(g)&&Object.defineProperty(g,this._key,{value:R,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:a;function u(g,R,T){if(!T||P(g)||P(R))return null;var M=T.get(g);if(M){var $=M.get(R);if(typeof $=="boolean")return $}return null}function o(g,R,T,M){if(!(!T||P(g)||P(R))){var $=T.get(g);$?$.set(R,M):($=new n,$.set(R,M),T.set(g,$))}}t.exports=i,t.exports.MemoizeMap=n;function i(g,R,T){if(T&&T.comparator)return s(g,R,T);var M=l(g,R);return M!==null?M:s(g,R,T)}function l(g,R){return g===R?g!==0||1/g===1/R:g!==g&&R!==R?!0:P(g)||P(R)?!1:null}function s(g,R,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new n;var M=T&&T.comparator,$=u(g,R,T.memoize);if($!==null)return $;var L=u(R,g,T.memoize);if(L!==null)return L;if(M){var U=M(g,R);if(U===!1||U===!0)return o(g,R,T.memoize,U),U;var Q=l(g,R);if(Q!==null)return Q}var ee=r(g);if(ee!==r(R))return o(g,R,T.memoize,!1),!1;o(g,R,T.memoize,!0);var re=p(g,R,ee,T);return o(g,R,T.memoize,re),re}function p(g,R,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return i(g.valueOf(),R.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return g===R;case"Error":return w(g,R,["name","message","code"],M);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return f(g,R,M);case"RegExp":return c(g,R);case"Generator":return m(g,R,M);case"DataView":return f(new Uint8Array(g.buffer),new Uint8Array(R.buffer),M);case"ArrayBuffer":return f(new Uint8Array(g),new Uint8Array(R),M);case"Set":return d(g,R,M);case"Map":return d(g,R,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return g.equals(R);case"Temporal.Duration":return g.total("nanoseconds")===R.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return g.toString()===R.toString();default:return O(g,R,M)}}function c(g,R){return g.toString()===R.toString()}function d(g,R,T){if(g.size!==R.size)return!1;if(g.size===0)return!0;var M=[],$=[];return g.forEach(function(L,U){M.push([L,U])}),R.forEach(function(L,U){$.push([L,U])}),f(M.sort(),$.sort(),T)}function f(g,R,T){var M=g.length;if(M!==R.length)return!1;if(M===0)return!0;for(var $=-1;++$=p)return p;for(var c=[],d=0;d<=l.length;d++)c[d]=Array(s.length+1).fill(0),c[d][0]=d;for(var f=0;f=p){c[d][f]=p;continue}c[d][f]=Math.min(c[d-1][f]+1,c[d][f-1]+1,c[d-1][f-1]+(m===s.charCodeAt(f-1)?0:1))}return c[l.length][s.length]}}}),up=v({"../../node_modules/chai/lib/chai/utils/addMethod.js"(e,t){var r=Na(),a=Lt(),n=et(),u=Ia(),o=$t();t.exports=function(i,l,s){var p=function(){n(this,"lockSsfi")||n(this,"ssfi",p);var c=s.apply(this,arguments);if(c!==void 0)return c;var d=new a.Assertion;return o(this,d),d};r(p,l,!1),i[l]=u(p,l)}}}),cp=v({"../../node_modules/chai/lib/chai/utils/overwriteProperty.js"(e,t){var r=Lt(),a=et(),n=Ma(),u=$t();t.exports=function(o,i,l){var s=Object.getOwnPropertyDescriptor(o,i),p=function(){};s&&typeof s.get=="function"&&(p=s.get),Object.defineProperty(o,i,{get:function c(){!n()&&!a(this,"lockSsfi")&&a(this,"ssfi",c);var d=a(this,"lockSsfi");a(this,"lockSsfi",!0);var f=l(p).call(this);if(a(this,"lockSsfi",d),f!==void 0)return f;var m=new r.Assertion;return u(this,m),m},configurable:!0})}}}),dp=v({"../../node_modules/chai/lib/chai/utils/overwriteMethod.js"(e,t){var r=Na(),a=Lt(),n=et(),u=Ia(),o=$t();t.exports=function(i,l,s){var p=i[l],c=function(){throw new Error(l+" is not a function")};p&&typeof p=="function"&&(c=p);var d=function(){n(this,"lockSsfi")||n(this,"ssfi",d);var f=n(this,"lockSsfi");n(this,"lockSsfi",!0);var m=s(c).apply(this,arguments);if(n(this,"lockSsfi",f),m!==void 0)return m;var b=new a.Assertion;return o(this,b),b};r(d,l,!1),i[l]=u(d,l)}}}),pp=v({"../../node_modules/chai/lib/chai/utils/addChainableMethod.js"(e,t){var r=Na(),a=Lt(),n=et(),u=Ia(),o=$t(),i=typeof Object.setPrototypeOf=="function",l=function(){},s=Object.getOwnPropertyNames(l).filter(function(d){var f=Object.getOwnPropertyDescriptor(l,d);return typeof f!="object"?!0:!f.configurable}),p=Function.prototype.call,c=Function.prototype.apply;t.exports=function(d,f,m,b){typeof b!="function"&&(b=function(){});var _={method:m,chainingBehavior:b};d.__methods||(d.__methods={}),d.__methods[f]=_,Object.defineProperty(d,f,{get:function(){_.chainingBehavior.call(this);var y=function(){n(this,"lockSsfi")||n(this,"ssfi",y);var w=_.method.apply(this,arguments);if(w!==void 0)return w;var O=new a.Assertion;return o(this,O),O};if(r(y,f,!0),i){var h=Object.create(this);h.call=p,h.apply=c,Object.setPrototypeOf(y,h)}else{var q=Object.getOwnPropertyNames(d);q.forEach(function(w){if(s.indexOf(w)===-1){var O=Object.getOwnPropertyDescriptor(d,w);Object.defineProperty(y,w,O)}})}return o(this,y),u(y)},configurable:!0})}}}),fp=v({"../../node_modules/chai/lib/chai/utils/overwriteChainableMethod.js"(e,t){var r=Lt(),a=$t();t.exports=function(n,u,o,i){var l=n.__methods[u],s=l.chainingBehavior;l.chainingBehavior=function(){var c=i(s).call(this);if(c!==void 0)return c;var d=new r.Assertion;return a(this,d),d};var p=l.method;l.method=function(){var c=o(p).apply(this,arguments);if(c!==void 0)return c;var d=new r.Assertion;return a(this,d),d}}}}),mp=v({"../../node_modules/chai/lib/chai/utils/compareByInspect.js"(e,t){var r=tn();t.exports=function(a,n){return r(a)1&&G===D.length)throw J;return}this.assert(F,"expected #{this} to "+X+"include "+a.inspect(S),"expected #{this} to not "+X+"include "+a.inspect(S))}n.addChainableMethod("include",p,s),n.addChainableMethod("contain",p,s),n.addChainableMethod("contains",p,s),n.addChainableMethod("includes",p,s),n.addProperty("ok",function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),n.addProperty("true",function(){this.assert(o(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"))}),n.addProperty("false",function(){this.assert(o(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"))}),n.addProperty("null",function(){this.assert(o(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")}),n.addProperty("undefined",function(){this.assert(o(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")}),n.addProperty("NaN",function(){this.assert(a.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function c(){var S=o(this,"object");this.assert(S!=null,"expected #{this} to exist","expected #{this} to not exist")}n.addProperty("exist",c),n.addProperty("exists",c),n.addProperty("empty",function(){var S=o(this,"object"),x=o(this,"ssfi"),k=o(this,"message"),j;switch(k=k?k+": ":"",a.type(S).toLowerCase()){case"array":case"string":j=S.length;break;case"map":case"set":j=S.size;break;case"weakmap":case"weakset":throw new u(k+".empty was passed a weak collection",void 0,x);case"function":var z=k+".empty was passed a function "+a.getName(S);throw new u(z.trim(),void 0,x);default:if(S!==Object(S))throw new u(k+".empty was passed non-string primitive "+a.inspect(S),void 0,x);j=Object.keys(S).length}this.assert(j===0,"expected #{this} to be empty","expected #{this} not to be empty")});function d(){var S=o(this,"object"),x=a.type(S);this.assert(x==="Arguments","expected #{this} to be arguments but got "+x,"expected #{this} to not be arguments")}n.addProperty("arguments",d),n.addProperty("Arguments",d);function f(S,x){x&&o(this,"message",x);var k=o(this,"object");if(o(this,"deep")){var j=o(this,"lockSsfi");o(this,"lockSsfi",!0),this.eql(S),o(this,"lockSsfi",j)}else this.assert(S===k,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",S,this._obj,!0)}n.addMethod("equal",f),n.addMethod("equals",f),n.addMethod("eq",f);function m(S,x){x&&o(this,"message",x);var k=o(this,"eql");this.assert(k(S,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",S,this._obj,!0)}n.addMethod("eql",m),n.addMethod("eqls",m);function b(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"doLength"),z=o(this,"message"),N=z?z+": ":"",I=o(this,"ssfi"),H=a.type(k).toLowerCase(),X=a.type(S).toLowerCase(),E,F=!0;if(j&&H!=="map"&&H!=="set"&&new n(k,z,I,!0).to.have.property("length"),!j&&H==="date"&&X!=="date")E=N+"the argument to above must be a date";else if(X!=="number"&&(j||H==="number"))E=N+"the argument to above must be a number";else if(!j&&H!=="date"&&H!=="number"){var D=H==="string"?"'"+k+"'":k;E=N+"expected "+D+" to be a number or a date"}else F=!1;if(F)throw new u(E,void 0,I);if(j){var J="length",G;H==="map"||H==="set"?(J="size",G=k.size):G=k.length,this.assert(G>S,"expected #{this} to have a "+J+" above #{exp} but got #{act}","expected #{this} to not have a "+J+" above #{exp}",S,G)}else this.assert(k>S,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",S)}n.addMethod("above",b),n.addMethod("gt",b),n.addMethod("greaterThan",b);function _(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"doLength"),z=o(this,"message"),N=z?z+": ":"",I=o(this,"ssfi"),H=a.type(k).toLowerCase(),X=a.type(S).toLowerCase(),E,F=!0;if(j&&H!=="map"&&H!=="set"&&new n(k,z,I,!0).to.have.property("length"),!j&&H==="date"&&X!=="date")E=N+"the argument to least must be a date";else if(X!=="number"&&(j||H==="number"))E=N+"the argument to least must be a number";else if(!j&&H!=="date"&&H!=="number"){var D=H==="string"?"'"+k+"'":k;E=N+"expected "+D+" to be a number or a date"}else F=!1;if(F)throw new u(E,void 0,I);if(j){var J="length",G;H==="map"||H==="set"?(J="size",G=k.size):G=k.length,this.assert(G>=S,"expected #{this} to have a "+J+" at least #{exp} but got #{act}","expected #{this} to have a "+J+" below #{exp}",S,G)}else this.assert(k>=S,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",S)}n.addMethod("least",_),n.addMethod("gte",_),n.addMethod("greaterThanOrEqual",_);function y(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"doLength"),z=o(this,"message"),N=z?z+": ":"",I=o(this,"ssfi"),H=a.type(k).toLowerCase(),X=a.type(S).toLowerCase(),E,F=!0;if(j&&H!=="map"&&H!=="set"&&new n(k,z,I,!0).to.have.property("length"),!j&&H==="date"&&X!=="date")E=N+"the argument to below must be a date";else if(X!=="number"&&(j||H==="number"))E=N+"the argument to below must be a number";else if(!j&&H!=="date"&&H!=="number"){var D=H==="string"?"'"+k+"'":k;E=N+"expected "+D+" to be a number or a date"}else F=!1;if(F)throw new u(E,void 0,I);if(j){var J="length",G;H==="map"||H==="set"?(J="size",G=k.size):G=k.length,this.assert(G=S&&ie<=x,"expected #{this} to have a "+ae+" within "+G,"expected #{this} to not have a "+ae+" within "+G)}else this.assert(j>=S&&j<=x,"expected #{this} to be within "+G,"expected #{this} to not be within "+G)});function q(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"ssfi"),z=o(this,"message");try{var N=k instanceof S}catch(H){throw H instanceof TypeError?(z=z?z+": ":"",new u(z+"The instanceof assertion needs a constructor but "+a.type(S)+" was given.",void 0,j)):H}var I=a.getName(S);I===null&&(I="an unnamed constructor"),this.assert(N,"expected #{this} to be an instance of "+I,"expected #{this} to not be an instance of "+I)}n.addMethod("instanceof",q),n.addMethod("instanceOf",q);function w(S,x,k){k&&o(this,"message",k);var j=o(this,"nested"),z=o(this,"own"),N=o(this,"message"),I=o(this,"object"),H=o(this,"ssfi"),X=typeof S;if(N=N?N+": ":"",j){if(X!=="string")throw new u(N+"the argument to property must be a string when using nested syntax",void 0,H)}else if(X!=="string"&&X!=="number"&&X!=="symbol")throw new u(N+"the argument to property must be a string, number, or symbol",void 0,H);if(j&&z)throw new u(N+'The "nested" and "own" flags cannot be combined.',void 0,H);if(I==null)throw new u(N+"Target cannot be null or undefined.",void 0,H);var E=o(this,"deep"),F=o(this,"negate"),D=j?a.getPathInfo(I,S):null,J=j?D.value:I[S],G=E?o(this,"eql"):(ie,me)=>ie===me,W="";E&&(W+="deep "),z&&(W+="own "),j&&(W+="nested "),W+="property ";var ae;z?ae=Object.prototype.hasOwnProperty.call(I,S):j?ae=D.exists:ae=a.hasProperty(I,S),(!F||arguments.length===1)&&this.assert(ae,"expected #{this} to have "+W+a.inspect(S),"expected #{this} to not have "+W+a.inspect(S)),arguments.length>1&&this.assert(ae&&G(x,J),"expected #{this} to have "+W+a.inspect(S)+" of #{exp}, but got #{act}","expected #{this} to not have "+W+a.inspect(S)+" of #{act}",x,J),o(this,"object",J)}n.addMethod("property",w);function O(S,x,k){o(this,"own",!0),w.apply(this,arguments)}n.addMethod("ownProperty",O),n.addMethod("haveOwnProperty",O);function P(S,x,k){typeof x=="string"&&(k=x,x=null),k&&o(this,"message",k);var j=o(this,"object"),z=Object.getOwnPropertyDescriptor(Object(j),S),N=o(this,"eql");z&&x?this.assert(N(x,z),"expected the own property descriptor for "+a.inspect(S)+" on #{this} to match "+a.inspect(x)+", got "+a.inspect(z),"expected the own property descriptor for "+a.inspect(S)+" on #{this} to not match "+a.inspect(x),x,z,!0):this.assert(z,"expected #{this} to have an own property descriptor for "+a.inspect(S),"expected #{this} to not have an own property descriptor for "+a.inspect(S)),o(this,"object",z)}n.addMethod("ownPropertyDescriptor",P),n.addMethod("haveOwnPropertyDescriptor",P);function C(){o(this,"doLength",!0)}function g(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=a.type(k).toLowerCase(),z=o(this,"message"),N=o(this,"ssfi"),I="length",H;switch(j){case"map":case"set":I="size",H=k.size;break;default:new n(k,z,N,!0).to.have.property("length"),H=k.length}this.assert(H==S,"expected #{this} to have a "+I+" of #{exp} but got #{act}","expected #{this} to not have a "+I+" of #{act}",S,H)}n.addChainableMethod("length",g,C),n.addChainableMethod("lengthOf",g,C);function R(S,x){x&&o(this,"message",x);var k=o(this,"object");this.assert(S.exec(k),"expected #{this} to match "+S,"expected #{this} not to match "+S)}n.addMethod("match",R),n.addMethod("matches",R),n.addMethod("string",function(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"message"),z=o(this,"ssfi");new n(k,j,z,!0).is.a("string"),this.assert(~k.indexOf(S),"expected #{this} to contain "+a.inspect(S),"expected #{this} to not contain "+a.inspect(S))});function T(S){var x=o(this,"object"),k=a.type(x),j=a.type(S),z=o(this,"ssfi"),N=o(this,"deep"),I,H="",X,E=!0,F=o(this,"message");F=F?F+": ":"";var D=F+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(k==="Map"||k==="Set")H=N?"deeply ":"",X=[],x.forEach(function(_e,Pe){X.push(Pe)}),j!=="Array"&&(S=Array.prototype.slice.call(arguments));else{switch(X=a.getOwnEnumerableProperties(x),j){case"Array":if(arguments.length>1)throw new u(D,void 0,z);break;case"Object":if(arguments.length>1)throw new u(D,void 0,z);S=Object.keys(S);break;default:S=Array.prototype.slice.call(arguments)}S=S.map(function(_e){return typeof _e=="symbol"?_e:String(_e)})}if(!S.length)throw new u(F+"keys required",void 0,z);var J=S.length,G=o(this,"any"),W=o(this,"all"),ae=S,ie=N?o(this,"eql"):(_e,Pe)=>_e===Pe;if(!G&&!W&&(W=!0),G&&(E=ae.some(function(_e){return X.some(function(Pe){return ie(_e,Pe)})})),W&&(E=ae.every(function(_e){return X.some(function(Pe){return ie(_e,Pe)})}),o(this,"contains")||(E=E&&S.length==X.length)),J>1){S=S.map(function(_e){return a.inspect(_e)});var me=S.pop();W&&(I=S.join(", ")+", and "+me),G&&(I=S.join(", ")+", or "+me)}else I=a.inspect(S[0]);I=(J>1?"keys ":"key ")+I,I=(o(this,"contains")?"contain ":"have ")+I,this.assert(E,"expected #{this} to "+H+I,"expected #{this} to not "+H+I,ae.slice(0).sort(a.compareByInspect),X.sort(a.compareByInspect),!0)}n.addMethod("keys",T),n.addMethod("key",T);function M(S,x,k){k&&o(this,"message",k);var j=o(this,"object"),z=o(this,"ssfi"),N=o(this,"message"),I=o(this,"negate")||!1;new n(j,N,z,!0).is.a("function"),(S instanceof RegExp||typeof S=="string")&&(x=S,S=null);var H;try{j()}catch(me){H=me}var X=S===void 0&&x===void 0,E=!!(S&&x),F=!1,D=!1;if(X||!X&&!I){var J="an error";S instanceof Error?J="#{exp}":S&&(J=a.checkError.getConstructorName(S)),this.assert(H,"expected #{this} to throw "+J,"expected #{this} to not throw an error but #{act} was thrown",S&&S.toString(),H instanceof Error?H.toString():typeof H=="string"?H:H&&a.checkError.getConstructorName(H))}if(S&&H){if(S instanceof Error){var G=a.checkError.compatibleInstance(H,S);G===I&&(E&&I?F=!0:this.assert(I,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(H&&!I?" but #{act} was thrown":""),S.toString(),H.toString()))}var W=a.checkError.compatibleConstructor(H,S);W===I&&(E&&I?F=!0:this.assert(I,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(H?" but #{act} was thrown":""),S instanceof Error?S.toString():S&&a.checkError.getConstructorName(S),H instanceof Error?H.toString():H&&a.checkError.getConstructorName(H)))}if(H&&x!==void 0&&x!==null){var ae="including";x instanceof RegExp&&(ae="matching");var ie=a.checkError.compatibleMessage(H,x);ie===I&&(E&&I?D=!0:this.assert(I,"expected #{this} to throw error "+ae+" #{exp} but got #{act}","expected #{this} to throw error not "+ae+" #{exp}",x,a.checkError.getMessage(H)))}F&&D&&this.assert(I,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(H?" but #{act} was thrown":""),S instanceof Error?S.toString():S&&a.checkError.getConstructorName(S),H instanceof Error?H.toString():H&&a.checkError.getConstructorName(H)),o(this,"object",H)}n.addMethod("throw",M),n.addMethod("throws",M),n.addMethod("Throw",M);function $(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"itself"),z=typeof k=="function"&&!j?k.prototype[S]:k[S];this.assert(typeof z=="function","expected #{this} to respond to "+a.inspect(S),"expected #{this} to not respond to "+a.inspect(S))}n.addMethod("respondTo",$),n.addMethod("respondsTo",$),n.addProperty("itself",function(){o(this,"itself",!0)});function L(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=S(k);this.assert(j,"expected #{this} to satisfy "+a.objDisplay(S),"expected #{this} to not satisfy"+a.objDisplay(S),!o(this,"negate"),j)}n.addMethod("satisfy",L),n.addMethod("satisfies",L);function U(S,x,k){k&&o(this,"message",k);var j=o(this,"object"),z=o(this,"message"),N=o(this,"ssfi");if(new n(j,z,N,!0).is.a("number"),typeof S!="number"||typeof x!="number"){z=z?z+": ":"";var I=x===void 0?", and a delta is required":"";throw new u(z+"the arguments to closeTo or approximately must be numbers"+I,void 0,N)}this.assert(Math.abs(j-S)<=x,"expected #{this} to be close to "+S+" +/- "+x,"expected #{this} not to be close to "+S+" +/- "+x)}n.addMethod("closeTo",U),n.addMethod("approximately",U);function Q(S,x,k,j,z){if(!j){if(S.length!==x.length)return!1;x=x.slice()}return S.every(function(N,I){if(z)return k?k(N,x[I]):N===x[I];if(!k){var H=x.indexOf(N);return H===-1?!1:(j||x.splice(H,1),!0)}return x.some(function(X,E){return k(N,X)?(j||x.splice(E,1),!0):!1})})}n.addMethod("members",function(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"message"),z=o(this,"ssfi");new n(k,j,z,!0).to.be.an("array"),new n(S,j,z,!0).to.be.an("array");var N=o(this,"contains"),I=o(this,"ordered"),H,X,E;N?(H=I?"an ordered superset":"a superset",X="expected #{this} to be "+H+" of #{exp}",E="expected #{this} to not be "+H+" of #{exp}"):(H=I?"ordered members":"members",X="expected #{this} to have the same "+H+" as #{exp}",E="expected #{this} to not have the same "+H+" as #{exp}");var F=o(this,"deep")?o(this,"eql"):void 0;this.assert(Q(S,k,F,N,I),X,E,S,k,!0)});function ee(S,x){x&&o(this,"message",x);var k=o(this,"object"),j=o(this,"message"),z=o(this,"ssfi"),N=o(this,"contains"),I=o(this,"deep"),H=o(this,"eql");new n(S,j,z,!0).to.be.an("array"),N?this.assert(S.some(function(X){return k.indexOf(X)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",S,k):I?this.assert(S.some(function(X){return H(k,X)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",S,k):this.assert(S.indexOf(k)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",S,k)}n.addMethod("oneOf",ee);function re(S,x,k){k&&o(this,"message",k);var j=o(this,"object"),z=o(this,"message"),N=o(this,"ssfi");new n(j,z,N,!0).is.a("function");var I;x?(new n(S,z,N,!0).to.have.property(x),I=S[x]):(new n(S,z,N,!0).is.a("function"),I=S()),j();var H=x==null?S():S[x],X=x==null?I:"."+x;o(this,"deltaMsgObj",X),o(this,"initialDeltaValue",I),o(this,"finalDeltaValue",H),o(this,"deltaBehavior","change"),o(this,"realDelta",H!==I),this.assert(I!==H,"expected "+X+" to change","expected "+X+" to not change")}n.addMethod("change",re),n.addMethod("changes",re);function ne(S,x,k){k&&o(this,"message",k);var j=o(this,"object"),z=o(this,"message"),N=o(this,"ssfi");new n(j,z,N,!0).is.a("function");var I;x?(new n(S,z,N,!0).to.have.property(x),I=S[x]):(new n(S,z,N,!0).is.a("function"),I=S()),new n(I,z,N,!0).is.a("number"),j();var H=x==null?S():S[x],X=x==null?I:"."+x;o(this,"deltaMsgObj",X),o(this,"initialDeltaValue",I),o(this,"finalDeltaValue",H),o(this,"deltaBehavior","increase"),o(this,"realDelta",H-I),this.assert(H-I>0,"expected "+X+" to increase","expected "+X+" to not increase")}n.addMethod("increase",ne),n.addMethod("increases",ne);function le(S,x,k){k&&o(this,"message",k);var j=o(this,"object"),z=o(this,"message"),N=o(this,"ssfi");new n(j,z,N,!0).is.a("function");var I;x?(new n(S,z,N,!0).to.have.property(x),I=S[x]):(new n(S,z,N,!0).is.a("function"),I=S()),new n(I,z,N,!0).is.a("number"),j();var H=x==null?S():S[x],X=x==null?I:"."+x;o(this,"deltaMsgObj",X),o(this,"initialDeltaValue",I),o(this,"finalDeltaValue",H),o(this,"deltaBehavior","decrease"),o(this,"realDelta",I-H),this.assert(H-I<0,"expected "+X+" to decrease","expected "+X+" to not decrease")}n.addMethod("decrease",le),n.addMethod("decreases",le);function ue(S,x){x&&o(this,"message",x);var k=o(this,"deltaMsgObj"),j=o(this,"initialDeltaValue"),z=o(this,"finalDeltaValue"),N=o(this,"deltaBehavior"),I=o(this,"realDelta"),H;N==="change"?H=Math.abs(z-j)===Math.abs(S):H=I===Math.abs(S),this.assert(H,"expected "+k+" to "+N+" by "+S,"expected "+k+" to not "+N+" by "+S)}n.addMethod("by",ue),n.addProperty("extensible",function(){var S=o(this,"object"),x=S===Object(S)&&Object.isExtensible(S);this.assert(x,"expected #{this} to be extensible","expected #{this} to not be extensible")}),n.addProperty("sealed",function(){var S=o(this,"object"),x=S===Object(S)?Object.isSealed(S):!0;this.assert(x,"expected #{this} to be sealed","expected #{this} to not be sealed")}),n.addProperty("frozen",function(){var S=o(this,"object"),x=S===Object(S)?Object.isFrozen(S):!0;this.assert(x,"expected #{this} to be frozen","expected #{this} to not be frozen")}),n.addProperty("finite",function(S){var x=o(this,"object");this.assert(typeof x=="number"&&isFinite(x),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})}}}),Rp=v({"../../node_modules/chai/lib/chai/interface/expect.js"(e,t){t.exports=function(r,a){r.expect=function(n,u){return new r.Assertion(n,u)},r.expect.fail=function(n,u,o,i){throw arguments.length<2&&(o=n,n=void 0),o=o||"expect.fail()",new r.AssertionError(o,{actual:n,expected:u,operator:i},r.expect.fail)}}}}),qp=v({"../../node_modules/chai/lib/chai/interface/should.js"(e,t){t.exports=function(r,a){var n=r.Assertion;function u(){function o(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new n(this.valueOf(),null,o):new n(this,null,o)}function i(s){Object.defineProperty(this,"should",{value:s,enumerable:!0,configurable:!0,writable:!0})}Object.defineProperty(Object.prototype,"should",{set:i,get:o,configurable:!0});var l={};return l.fail=function(s,p,c,d){throw arguments.length<2&&(c=s,s=void 0),c=c||"should.fail()",new r.AssertionError(c,{actual:s,expected:p,operator:d},l.fail)},l.equal=function(s,p,c){new n(s,c).to.equal(p)},l.Throw=function(s,p,c,d){new n(s,d).to.Throw(p,c)},l.exist=function(s,p){new n(s,p).to.exist},l.not={},l.not.equal=function(s,p,c){new n(s,c).to.not.equal(p)},l.not.Throw=function(s,p,c,d){new n(s,d).to.not.Throw(p,c)},l.not.exist=function(s,p){new n(s,p).to.not.exist},l.throw=l.Throw,l.not.throw=l.not.Throw,l}r.should=u,r.Should=u}}}),Ep=v({"../../node_modules/chai/lib/chai/interface/assert.js"(e,t){t.exports=function(r,a){var n=r.Assertion,u=a.flag,o=r.assert=function(i,l){var s=new n(null,null,r.assert,!0);s.assert(i,l,"[ negation message unavailable ]")};o.fail=function(i,l,s,p){throw arguments.length<2&&(s=i,i=void 0),s=s||"assert.fail()",new r.AssertionError(s,{actual:i,expected:l,operator:p},o.fail)},o.isOk=function(i,l){new n(i,l,o.isOk,!0).is.ok},o.isNotOk=function(i,l){new n(i,l,o.isNotOk,!0).is.not.ok},o.equal=function(i,l,s){var p=new n(i,s,o.equal,!0);p.assert(l==u(p,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",l,i,!0)},o.notEqual=function(i,l,s){var p=new n(i,s,o.notEqual,!0);p.assert(l!=u(p,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",l,i,!0)},o.strictEqual=function(i,l,s){new n(i,s,o.strictEqual,!0).to.equal(l)},o.notStrictEqual=function(i,l,s){new n(i,s,o.notStrictEqual,!0).to.not.equal(l)},o.deepEqual=o.deepStrictEqual=function(i,l,s){new n(i,s,o.deepEqual,!0).to.eql(l)},o.notDeepEqual=function(i,l,s){new n(i,s,o.notDeepEqual,!0).to.not.eql(l)},o.isAbove=function(i,l,s){new n(i,s,o.isAbove,!0).to.be.above(l)},o.isAtLeast=function(i,l,s){new n(i,s,o.isAtLeast,!0).to.be.least(l)},o.isBelow=function(i,l,s){new n(i,s,o.isBelow,!0).to.be.below(l)},o.isAtMost=function(i,l,s){new n(i,s,o.isAtMost,!0).to.be.most(l)},o.isTrue=function(i,l){new n(i,l,o.isTrue,!0).is.true},o.isNotTrue=function(i,l){new n(i,l,o.isNotTrue,!0).to.not.equal(!0)},o.isFalse=function(i,l){new n(i,l,o.isFalse,!0).is.false},o.isNotFalse=function(i,l){new n(i,l,o.isNotFalse,!0).to.not.equal(!1)},o.isNull=function(i,l){new n(i,l,o.isNull,!0).to.equal(null)},o.isNotNull=function(i,l){new n(i,l,o.isNotNull,!0).to.not.equal(null)},o.isNaN=function(i,l){new n(i,l,o.isNaN,!0).to.be.NaN},o.isNotNaN=function(i,l){new n(i,l,o.isNotNaN,!0).not.to.be.NaN},o.exists=function(i,l){new n(i,l,o.exists,!0).to.exist},o.notExists=function(i,l){new n(i,l,o.notExists,!0).to.not.exist},o.isUndefined=function(i,l){new n(i,l,o.isUndefined,!0).to.equal(void 0)},o.isDefined=function(i,l){new n(i,l,o.isDefined,!0).to.not.equal(void 0)},o.isFunction=function(i,l){new n(i,l,o.isFunction,!0).to.be.a("function")},o.isNotFunction=function(i,l){new n(i,l,o.isNotFunction,!0).to.not.be.a("function")},o.isObject=function(i,l){new n(i,l,o.isObject,!0).to.be.a("object")},o.isNotObject=function(i,l){new n(i,l,o.isNotObject,!0).to.not.be.a("object")},o.isArray=function(i,l){new n(i,l,o.isArray,!0).to.be.an("array")},o.isNotArray=function(i,l){new n(i,l,o.isNotArray,!0).to.not.be.an("array")},o.isString=function(i,l){new n(i,l,o.isString,!0).to.be.a("string")},o.isNotString=function(i,l){new n(i,l,o.isNotString,!0).to.not.be.a("string")},o.isNumber=function(i,l){new n(i,l,o.isNumber,!0).to.be.a("number")},o.isNotNumber=function(i,l){new n(i,l,o.isNotNumber,!0).to.not.be.a("number")},o.isFinite=function(i,l){new n(i,l,o.isFinite,!0).to.be.finite},o.isBoolean=function(i,l){new n(i,l,o.isBoolean,!0).to.be.a("boolean")},o.isNotBoolean=function(i,l){new n(i,l,o.isNotBoolean,!0).to.not.be.a("boolean")},o.typeOf=function(i,l,s){new n(i,s,o.typeOf,!0).to.be.a(l)},o.notTypeOf=function(i,l,s){new n(i,s,o.notTypeOf,!0).to.not.be.a(l)},o.instanceOf=function(i,l,s){new n(i,s,o.instanceOf,!0).to.be.instanceOf(l)},o.notInstanceOf=function(i,l,s){new n(i,s,o.notInstanceOf,!0).to.not.be.instanceOf(l)},o.include=function(i,l,s){new n(i,s,o.include,!0).include(l)},o.notInclude=function(i,l,s){new n(i,s,o.notInclude,!0).not.include(l)},o.deepInclude=function(i,l,s){new n(i,s,o.deepInclude,!0).deep.include(l)},o.notDeepInclude=function(i,l,s){new n(i,s,o.notDeepInclude,!0).not.deep.include(l)},o.nestedInclude=function(i,l,s){new n(i,s,o.nestedInclude,!0).nested.include(l)},o.notNestedInclude=function(i,l,s){new n(i,s,o.notNestedInclude,!0).not.nested.include(l)},o.deepNestedInclude=function(i,l,s){new n(i,s,o.deepNestedInclude,!0).deep.nested.include(l)},o.notDeepNestedInclude=function(i,l,s){new n(i,s,o.notDeepNestedInclude,!0).not.deep.nested.include(l)},o.ownInclude=function(i,l,s){new n(i,s,o.ownInclude,!0).own.include(l)},o.notOwnInclude=function(i,l,s){new n(i,s,o.notOwnInclude,!0).not.own.include(l)},o.deepOwnInclude=function(i,l,s){new n(i,s,o.deepOwnInclude,!0).deep.own.include(l)},o.notDeepOwnInclude=function(i,l,s){new n(i,s,o.notDeepOwnInclude,!0).not.deep.own.include(l)},o.match=function(i,l,s){new n(i,s,o.match,!0).to.match(l)},o.notMatch=function(i,l,s){new n(i,s,o.notMatch,!0).to.not.match(l)},o.property=function(i,l,s){new n(i,s,o.property,!0).to.have.property(l)},o.notProperty=function(i,l,s){new n(i,s,o.notProperty,!0).to.not.have.property(l)},o.propertyVal=function(i,l,s,p){new n(i,p,o.propertyVal,!0).to.have.property(l,s)},o.notPropertyVal=function(i,l,s,p){new n(i,p,o.notPropertyVal,!0).to.not.have.property(l,s)},o.deepPropertyVal=function(i,l,s,p){new n(i,p,o.deepPropertyVal,!0).to.have.deep.property(l,s)},o.notDeepPropertyVal=function(i,l,s,p){new n(i,p,o.notDeepPropertyVal,!0).to.not.have.deep.property(l,s)},o.ownProperty=function(i,l,s){new n(i,s,o.ownProperty,!0).to.have.own.property(l)},o.notOwnProperty=function(i,l,s){new n(i,s,o.notOwnProperty,!0).to.not.have.own.property(l)},o.ownPropertyVal=function(i,l,s,p){new n(i,p,o.ownPropertyVal,!0).to.have.own.property(l,s)},o.notOwnPropertyVal=function(i,l,s,p){new n(i,p,o.notOwnPropertyVal,!0).to.not.have.own.property(l,s)},o.deepOwnPropertyVal=function(i,l,s,p){new n(i,p,o.deepOwnPropertyVal,!0).to.have.deep.own.property(l,s)},o.notDeepOwnPropertyVal=function(i,l,s,p){new n(i,p,o.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(l,s)},o.nestedProperty=function(i,l,s){new n(i,s,o.nestedProperty,!0).to.have.nested.property(l)},o.notNestedProperty=function(i,l,s){new n(i,s,o.notNestedProperty,!0).to.not.have.nested.property(l)},o.nestedPropertyVal=function(i,l,s,p){new n(i,p,o.nestedPropertyVal,!0).to.have.nested.property(l,s)},o.notNestedPropertyVal=function(i,l,s,p){new n(i,p,o.notNestedPropertyVal,!0).to.not.have.nested.property(l,s)},o.deepNestedPropertyVal=function(i,l,s,p){new n(i,p,o.deepNestedPropertyVal,!0).to.have.deep.nested.property(l,s)},o.notDeepNestedPropertyVal=function(i,l,s,p){new n(i,p,o.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(l,s)},o.lengthOf=function(i,l,s){new n(i,s,o.lengthOf,!0).to.have.lengthOf(l)},o.hasAnyKeys=function(i,l,s){new n(i,s,o.hasAnyKeys,!0).to.have.any.keys(l)},o.hasAllKeys=function(i,l,s){new n(i,s,o.hasAllKeys,!0).to.have.all.keys(l)},o.containsAllKeys=function(i,l,s){new n(i,s,o.containsAllKeys,!0).to.contain.all.keys(l)},o.doesNotHaveAnyKeys=function(i,l,s){new n(i,s,o.doesNotHaveAnyKeys,!0).to.not.have.any.keys(l)},o.doesNotHaveAllKeys=function(i,l,s){new n(i,s,o.doesNotHaveAllKeys,!0).to.not.have.all.keys(l)},o.hasAnyDeepKeys=function(i,l,s){new n(i,s,o.hasAnyDeepKeys,!0).to.have.any.deep.keys(l)},o.hasAllDeepKeys=function(i,l,s){new n(i,s,o.hasAllDeepKeys,!0).to.have.all.deep.keys(l)},o.containsAllDeepKeys=function(i,l,s){new n(i,s,o.containsAllDeepKeys,!0).to.contain.all.deep.keys(l)},o.doesNotHaveAnyDeepKeys=function(i,l,s){new n(i,s,o.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(l)},o.doesNotHaveAllDeepKeys=function(i,l,s){new n(i,s,o.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(l)},o.throws=function(i,l,s,p){(typeof l=="string"||l instanceof RegExp)&&(s=l,l=null);var c=new n(i,p,o.throws,!0).to.throw(l,s);return u(c,"object")},o.doesNotThrow=function(i,l,s,p){(typeof l=="string"||l instanceof RegExp)&&(s=l,l=null),new n(i,p,o.doesNotThrow,!0).to.not.throw(l,s)},o.operator=function(i,l,s,p){var c;switch(l){case"==":c=i==s;break;case"===":c=i===s;break;case">":c=i>s;break;case">=":c=i>=s;break;case"<":c=io=>`\x1B[${38+u};5;${o}m`,a=(u=0)=>(o,i,l)=>`\x1B[${38+u};2;${o};${i};${l}m`;function n(){let u=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[i,l]of Object.entries(o)){for(let[s,p]of Object.entries(l))o[s]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},l[s]=o[s],u.set(p[0],p[1]);Object.defineProperty(o,i,{value:l,enumerable:!1})}return Object.defineProperty(o,"codes",{value:u,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi256=r(),o.color.ansi16m=a(),o.bgColor.ansi256=r(10),o.bgColor.ansi16m=a(10),Object.defineProperties(o,{rgbToAnsi256:{value:(i,l,s)=>i===l&&l===s?i<8?16:i>248?231:Math.round((i-8)/247*24)+232:16+36*Math.round(i/255*5)+6*Math.round(l/255*5)+Math.round(s/255*5),enumerable:!1},hexToRgb:{value:i=>{let l=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(i.toString(16));if(!l)return[0,0,0];let{colorString:s}=l.groups;s.length===3&&(s=s.split("").map(c=>c+c).join(""));let p=Number.parseInt(s,16);return[p>>16&255,p>>8&255,p&255]},enumerable:!1},hexToAnsi256:{value:i=>o.rgbToAnsi256(...o.hexToRgb(i)),enumerable:!1}}),o}Object.defineProperty(t,"exports",{enumerable:!0,get:n})}}),ka=v({"../../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=a,e.printListItems=n,e.printObjectProperties=u;var t=(o,i)=>{let l=Object.keys(o),s=i!==null?l.sort(i):l;return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(o).forEach(p=>{Object.getOwnPropertyDescriptor(o,p).enumerable&&s.push(p)}),s};function r(o,i,l,s,p,c,d=": "){let f="",m=0,b=o.next();if(!b.done){f+=i.spacingOuter;let _=l+i.indent;for(;!b.done;){if(f+=_,m++===i.maxWidth){f+="…";break}let y=c(b.value[0],i,_,s,p),h=c(b.value[1],i,_,s,p);f+=y+d+h,b=o.next(),b.done?i.min||(f+=","):f+=`,${i.spacingInner}`}f+=i.spacingOuter+l}return f}function a(o,i,l,s,p,c){let d="",f=0,m=o.next();if(!m.done){d+=i.spacingOuter;let b=l+i.indent;for(;!m.done;){if(d+=b,f++===i.maxWidth){d+="…";break}d+=c(m.value,i,b,s,p),m=o.next(),m.done?i.min||(d+=","):d+=`,${i.spacingInner}`}d+=i.spacingOuter+l}return d}function n(o,i,l,s,p,c){let d="";if(o.length){d+=i.spacingOuter;let f=l+i.indent;for(let m=0;m{let b=s.toString();if(b==="ArrayContaining"||b==="ArrayNotContaining")return++d>p.maxDepth?`[${b}]`:`${b+n}[${(0,t.printListItems)(s.sample,p,c,d,f,m)}]`;if(b==="ObjectContaining"||b==="ObjectNotContaining")return++d>p.maxDepth?`[${b}]`:`${b+n}{${(0,t.printObjectProperties)(s.sample,p,c,d,f,m)}}`;if(b==="StringMatching"||b==="StringNotMatching"||b==="StringContaining"||b==="StringNotContaining")return b+n+m(s.sample,p,c,d,f);if(typeof s.toAsymmetricMatcher!="function")throw new Error(`Asymmetric matcher ${s.constructor.name} does not implement toAsymmetricMatcher()`);return s.toAsymmetricMatcher()};e.serialize=u;var o=s=>s&&s.$$typeof===a;e.test=o;var i={serialize:u,test:o},l=i;e.default=l}}),Sp=v({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ka(),r=" ",a=["DOMStringMap","NamedNodeMap"],n=/^(HTML\w*Collection|NodeList)$/,u=c=>a.indexOf(c)!==-1||n.test(c),o=c=>c&&c.constructor&&!!c.constructor.name&&u(c.constructor.name);e.test=o;var i=c=>c.constructor.name==="NamedNodeMap",l=(c,d,f,m,b,_)=>{let y=c.constructor.name;return++m>d.maxDepth?`[${y}]`:(d.min?"":y+r)+(a.indexOf(y)!==-1?`{${(0,t.printObjectProperties)(i(c)?Array.from(c).reduce((h,q)=>(h[q.name]=q.value,h),{}):{...c},d,f,m,b,_)}}`:`[${(0,t.printListItems)(Array.from(c),d,f,m,b,_)}]`)};e.serialize=l;var s={serialize:l,test:o},p=s;e.default=p}}),Tp=v({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(//g,">")}}}),rn=v({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(Tp());function r(s){return s&&s.__esModule?s:{default:s}}var a=(s,p,c,d,f,m,b)=>{let _=d+c.indent,y=c.colors;return s.map(h=>{let q=p[h],w=b(q,c,_,f,m);return typeof q!="string"&&(w.indexOf(` `)!==-1&&(w=c.spacingOuter+_+w+c.spacingOuter+d),w=`{${w}}`),`${c.spacingInner+d+y.prop.open+h+y.prop.close}=${y.value.open}${w}${y.value.close}`}).join("")};e.printProps=a;var n=(s,p,c,d,f,m)=>s.map(b=>p.spacingOuter+c+(typeof b=="string"?u(b,p):m(b,p,c,d,f))).join("");e.printChildren=n;var u=(s,p)=>{let c=p.colors.content;return c.open+(0,t.default)(s)+c.close};e.printText=u;var o=(s,p)=>{let c=p.colors.comment;return`${c.open}${c.close}`};e.printComment=o;var i=(s,p,c,d,f)=>{let m=d.colors.tag;return`${m.open}<${s}${p&&m.close+p+d.spacingOuter+f+m.open}${c?`>${m.close}${c}${d.spacingOuter}${f}${m.open}${m.close}`};e.printElement=i;var l=(s,p)=>{let c=p.colors.tag;return`${c.open}<${s}${c.close} …${c.open} />${c.close}`};e.printElementAsLeaf=l}}),xp=v({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=rn(),r=1,a=3,n=8,u=11,o=/^((HTML|SVG)\w*)?Element$/,i=_=>{try{return typeof _.hasAttribute=="function"&&_.hasAttribute("is")}catch{return!1}},l=_=>{let y=_.constructor.name,{nodeType:h,tagName:q}=_,w=typeof q=="string"&&q.includes("-")||i(_);return h===r&&(o.test(y)||w)||h===a&&y==="Text"||h===n&&y==="Comment"||h===u&&y==="DocumentFragment"},s=_=>{var y;return((y=_==null?void 0:_.constructor)==null?void 0:y.name)&&l(_)};e.test=s;function p(_){return _.nodeType===a}function c(_){return _.nodeType===n}function d(_){return _.nodeType===u}var f=(_,y,h,q,w,O)=>{if(p(_))return(0,t.printText)(_.data,y);if(c(_))return(0,t.printComment)(_.data,y);let P=d(_)?"DocumentFragment":_.tagName.toLowerCase();return++q>y.maxDepth?(0,t.printElementAsLeaf)(P,y):(0,t.printElement)(P,(0,t.printProps)(d(_)?[]:Array.from(_.attributes,C=>C.name).sort(),d(_)?{}:Array.from(_.attributes).reduce((C,g)=>(C[g.name]=g.value,C),{}),y,h+y.indent,q,w,O),(0,t.printChildren)(Array.prototype.slice.call(_.childNodes||_.children),y,h+y.indent,q,w,O),y,h)};e.serialize=f;var m={serialize:f,test:s},b=m;e.default=b}}),Ap=v({"../../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ka(),r="@@__IMMUTABLE_ITERABLE__@@",a="@@__IMMUTABLE_LIST__@@",n="@@__IMMUTABLE_KEYED__@@",u="@@__IMMUTABLE_MAP__@@",o="@@__IMMUTABLE_ORDERED__@@",i="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",s="@@__IMMUTABLE_SET__@@",p="@@__IMMUTABLE_STACK__@@",c=g=>`Immutable.${g}`,d=g=>`[${g}]`,f=" ",m="…",b=(g,R,T,M,$,L,U)=>++M>R.maxDepth?d(c(U)):`${c(U)+f}{${(0,t.printIteratorEntries)(g.entries(),R,T,M,$,L)}}`;function _(g){let R=0;return{next(){if(R{let U=c(g._name||"Record");return++M>R.maxDepth?d(U):`${U+f}{${(0,t.printIteratorEntries)(_(g),R,T,M,$,L)}}`},h=(g,R,T,M,$,L)=>{let U=c("Seq");return++M>R.maxDepth?d(U):g[n]?`${U+f}{${g._iter||g._object?(0,t.printIteratorEntries)(g.entries(),R,T,M,$,L):m}}`:`${U+f}[${g._iter||g._array||g._collection||g._iterable?(0,t.printIteratorValues)(g.values(),R,T,M,$,L):m}]`},q=(g,R,T,M,$,L,U)=>++M>R.maxDepth?d(c(U)):`${c(U)+f}[${(0,t.printIteratorValues)(g.values(),R,T,M,$,L)}]`,w=(g,R,T,M,$,L)=>g[u]?b(g,R,T,M,$,L,g[o]?"OrderedMap":"Map"):g[a]?q(g,R,T,M,$,L,"List"):g[s]?q(g,R,T,M,$,L,g[o]?"OrderedSet":"Set"):g[p]?q(g,R,T,M,$,L,"Stack"):g[l]?h(g,R,T,M,$,L):y(g,R,T,M,$,L);e.serialize=w;var O=g=>g&&(g[r]===!0||g[i]===!0);e.test=O;var P={serialize:w,test:O},C=P;e.default=C}}),jp=v({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,_=!1,y=!1,h=!1,q=!1,w;w=Symbol.for("react.module.reference");function O(W){return!!(typeof W=="string"||typeof W=="function"||W===a||W===u||q||W===n||W===p||W===c||h||W===m||b||_||y||typeof W=="object"&&W!==null&&(W.$$typeof===f||W.$$typeof===d||W.$$typeof===o||W.$$typeof===i||W.$$typeof===s||W.$$typeof===w||W.getModuleId!==void 0))}function P(W){if(typeof W=="object"&&W!==null){var ae=W.$$typeof;switch(ae){case t:var ie=W.type;switch(ie){case a:case u:case n:case p:case c:return ie;default:var me=ie&&ie.$$typeof;switch(me){case l:case i:case s:case f:case d:case o:return me;default:return ae}}case r:return ae}}}var C=i,g=o,R=t,T=s,M=a,$=f,L=d,U=r,Q=u,ee=n,re=p,ne=c,le=!1,ue=!1;function S(W){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function x(W){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(W){return P(W)===i}function j(W){return P(W)===o}function z(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function N(W){return P(W)===s}function I(W){return P(W)===a}function H(W){return P(W)===f}function X(W){return P(W)===d}function E(W){return P(W)===r}function F(W){return P(W)===u}function D(W){return P(W)===n}function J(W){return P(W)===p}function G(W){return P(W)===c}e.ContextConsumer=C,e.ContextProvider=g,e.Element=R,e.ForwardRef=T,e.Fragment=M,e.Lazy=$,e.Memo=L,e.Portal=U,e.Profiler=Q,e.StrictMode=ee,e.Suspense=re,e.SuspenseList=ne,e.isAsyncMode=S,e.isConcurrentMode=x,e.isContextConsumer=k,e.isContextProvider=j,e.isElement=z,e.isForwardRef=N,e.isFragment=I,e.isLazy=H,e.isMemo=X,e.isPortal=E,e.isProfiler=F,e.isStrictMode=D,e.isSuspense=J,e.isSuspenseList=G,e.isValidElementType=O,e.typeOf=P})()}}),Mp=v({"../../node_modules/pretty-format/node_modules/react-is/index.js"(e,t){t.exports=jp()}}),Np=v({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(Mp()),r=rn();function a(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,m=new WeakMap;return(a=function(b){return b?m:f})(d)}function n(d,f){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var m=a(f);if(m&&m.has(d))return m.get(d);var b={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in d)if(y!=="default"&&Object.prototype.hasOwnProperty.call(d,y)){var h=_?Object.getOwnPropertyDescriptor(d,y):null;h&&(h.get||h.set)?Object.defineProperty(b,y,h):b[y]=d[y]}return b.default=d,m&&m.set(d,b),b}var u=(d,f=[])=>(Array.isArray(d)?d.forEach(m=>{u(m,f)}):d!=null&&d!==!1&&f.push(d),f),o=d=>{let f=d.type;if(typeof f=="string")return f;if(typeof f=="function")return f.displayName||f.name||"Unknown";if(t.isFragment(d))return"React.Fragment";if(t.isSuspense(d))return"React.Suspense";if(typeof f=="object"&&f!==null){if(t.isContextProvider(d))return"Context.Provider";if(t.isContextConsumer(d))return"Context.Consumer";if(t.isForwardRef(d)){if(f.displayName)return f.displayName;let m=f.render.displayName||f.render.name||"";return m!==""?`ForwardRef(${m})`:"ForwardRef"}if(t.isMemo(d)){let m=f.displayName||f.type.displayName||f.type.name||"";return m!==""?`Memo(${m})`:"Memo"}}return"UNDEFINED"},i=d=>{let{props:f}=d;return Object.keys(f).filter(m=>m!=="children"&&f[m]!==void 0).sort()},l=(d,f,m,b,_,y)=>++b>f.maxDepth?(0,r.printElementAsLeaf)(o(d),f):(0,r.printElement)(o(d),(0,r.printProps)(i(d),d.props,f,m+f.indent,b,_,y),(0,r.printChildren)(u(d.props.children),f,m+f.indent,b,_,y),f,m);e.serialize=l;var s=d=>d!=null&&t.isElement(d);e.test=s;var p={serialize:l,test:s},c=p;e.default=c}}),Ip=v({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=rn(),r=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol,a=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,n=s=>{let{props:p}=s;return p?Object.keys(p).filter(c=>p[c]!==void 0).sort():[]},u=(s,p,c,d,f,m)=>++d>p.maxDepth?(0,t.printElementAsLeaf)(s.type,p):(0,t.printElement)(s.type,s.props?(0,t.printProps)(n(s),s.props,p,c+p.indent,d,f,m):"",s.children?(0,t.printChildren)(s.children,p,c+p.indent,d,f,m):"",p,c);e.serialize=u;var o=s=>s&&s.$$typeof===a;e.test=o;var i={serialize:u,test:o},l=i;e.default=l}}),Ba=v({"../../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=I,e.plugins=void 0;var t=s(Pp()),r=ka(),a=s(Op()),n=s(Sp()),u=s(xp()),o=s(Ap()),i=s(Np()),l=s(Ip());function s(E){return E&&E.__esModule?E:{default:E}}var p=Object.prototype.toString,c=Date.prototype.toISOString,d=Error.prototype.toString,f=RegExp.prototype.toString,m=E=>typeof E.constructor=="function"&&E.constructor.name||"Object",b=E=>typeof window<"u"&&E===window,_=/^Symbol\((.*)\)(.*)$/,y=/\n/gi,h=class extends Error{constructor(E,F){super(E),this.stack=F,this.name=this.constructor.name}};function q(E){return E==="[object Array]"||E==="[object ArrayBuffer]"||E==="[object DataView]"||E==="[object Float32Array]"||E==="[object Float64Array]"||E==="[object Int8Array]"||E==="[object Int16Array]"||E==="[object Int32Array]"||E==="[object Uint8Array]"||E==="[object Uint8ClampedArray]"||E==="[object Uint16Array]"||E==="[object Uint32Array]"}function w(E){return Object.is(E,-0)?"-0":String(E)}function O(E){return`${E}n`}function P(E,F){return F?`[Function ${E.name||"anonymous"}]`:"[Function]"}function C(E){return String(E).replace(_,"Symbol($1)")}function g(E){return`[${d.call(E)}]`}function R(E,F,D,J){if(E===!0||E===!1)return`${E}`;if(E===void 0)return"undefined";if(E===null)return"null";let G=typeof E;if(G==="number")return w(E);if(G==="bigint")return O(E);if(G==="string")return J?`"${E.replace(/"|\\/g,"\\$&")}"`:`"${E}"`;if(G==="function")return P(E,F);if(G==="symbol")return C(E);let W=p.call(E);return W==="[object WeakMap]"?"WeakMap {}":W==="[object WeakSet]"?"WeakSet {}":W==="[object Function]"||W==="[object GeneratorFunction]"?P(E,F):W==="[object Symbol]"?C(E):W==="[object Date]"?isNaN(+E)?"Date { NaN }":c.call(E):W==="[object Error]"?g(E):W==="[object RegExp]"?D?f.call(E).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):f.call(E):E instanceof Error?g(E):null}function T(E,F,D,J,G,W){if(G.indexOf(E)!==-1)return"[Circular]";G=G.slice(),G.push(E);let ae=++J>F.maxDepth,ie=F.min;if(F.callToJSON&&!ae&&E.toJSON&&typeof E.toJSON=="function"&&!W)return U(E.toJSON(),F,D,J,G,!0);let me=p.call(E);return me==="[object Arguments]"?ae?"[Arguments]":`${ie?"":"Arguments "}[${(0,r.printListItems)(E,F,D,J,G,U)}]`:q(me)?ae?`[${E.constructor.name}]`:`${ie||!F.printBasicPrototype&&E.constructor.name==="Array"?"":`${E.constructor.name} `}[${(0,r.printListItems)(E,F,D,J,G,U)}]`:me==="[object Map]"?ae?"[Map]":`Map {${(0,r.printIteratorEntries)(E.entries(),F,D,J,G,U," => ")}}`:me==="[object Set]"?ae?"[Set]":`Set {${(0,r.printIteratorValues)(E.values(),F,D,J,G,U)}}`:ae||b(E)?`[${m(E)}]`:`${ie||!F.printBasicPrototype&&m(E)==="Object"?"":`${m(E)} `}{${(0,r.printObjectProperties)(E,F,D,J,G,U)}}`}function M(E){return E.serialize!=null}function $(E,F,D,J,G,W){let ae;try{ae=M(E)?E.serialize(F,D,J,G,W,U):E.print(F,ie=>U(ie,D,J,G,W),ie=>{let me=J+D.indent;return me+ie.replace(y,` @@ -183,14 +183,14 @@ Unable to find an `+(a===!1?"accessible ":"")+'element with the role "'+t+'"'+l+ .aggregateResults=${e.aggregateResults} .enableHighlighting=${e.enableHighlighting} .filterProperties=${e.filterProperties} - >`,args:{inlineMode:!1,titleProperty:"title",aggregateResults:"themes",subTitleProperty:"description",enableHighlighting:!0,filterProperties:[{keys:["title","themes"],title:"Search",type:"text",placeholder:"Type Something...",expanded:!0},{key:"code",title:"Codes",type:"multiselect",placeholder:"Search Codes"},{key:"themes",title:"Theme",type:"select",placeholder:"Select a theme",inline:!1},{key:"tags",title:"Tags",type:"multiselect",placeholder:"Select tags",inline:!1},{key:"timestamp",type:"range",format:"date"},{key:"geometry",type:"spatial"}],items:Xr},play:async({canvasElement:e,step:t})=>{await uO(()=>{const n=e.querySelector("eox-itemfilter");sl(n).toBeTruthy(),sl(n.shadowRoot).toBeTruthy()});const a=e.querySelector("eox-itemfilter").shadowRoot;await t("Searching for Asparagus",async()=>{const n=a.querySelector('input[placeholder="Type Something..."]');await dO.type(n,"Asparagus",{delay:100})})}}}function yO(){return{render:e=>pr``,args:{inlineMode:!1,titleProperty:"title",aggregateResults:"themes",subTitleProperty:"description",enableHighlighting:!0,filterProperties:[{keys:["title","themes"],title:"Search",type:"text",placeholder:"Type Something...",expanded:!0},{key:"code",title:"Codes",type:"multiselect",placeholder:"Search Codes"},{key:"themes",title:"Theme",type:"select",placeholder:"Select a theme",inline:!1},{key:"tags",title:"Tags",type:"multiselect",placeholder:"Select tags",inline:!1},{key:"timestamp",type:"range",format:"date"},{key:"correlation",title:"Correlation",type:"range",step:.1},{key:"geometry",type:"spatial"}],items:Xr},play:async({canvasElement:e,step:t})=>{await uO(()=>{const n=e.querySelector("eox-itemfilter");sl(n).toBeTruthy(),sl(n.shadowRoot).toBeTruthy()});const a=e.querySelector("eox-itemfilter").shadowRoot;await t("Searching for Asparagus",async()=>{const n=a.querySelector('input[placeholder="Type Something..."]');await dO.type(n,"Asparagus",{delay:100})})}}}function yO(){return{render:e=>pr``,args:{inlineMode:!0,titleProperty:"title",aggregateResults:"themes",showResults:!1,filterProperties:[{keys:["title","themes"],title:"Search",type:"text",placeholder:"Type Something...",expanded:!0},{key:"code",title:"Codes",type:"multiselect",placeholder:"Search codes",expanded:!0},{key:"themes",title:"Theme",type:"select",placeholder:"Select a theme",expanded:!0},{key:"timestamp",type:"range",title:"Timestamp",format:"date",expanded:!0}],items:Xr}}}function hO(){return{render:e=>pr``,args:{inlineMode:!0,titleProperty:"title",aggregateResults:"themes",showResults:!1,filterProperties:[{keys:["title","themes"],title:"Search",type:"text",placeholder:"Type Something...",expanded:!0},{key:"code",title:"Codes",type:"multiselect",placeholder:"Search codes",expanded:!0},{key:"themes",title:"Theme",type:"select",placeholder:"Select a theme",expanded:!0},{key:"timestamp",type:"range",title:"Timestamp",format:"date",expanded:!0},{key:"rating",title:"Rating",type:"range",expanded:!0,min:-100,max:100,step:10}],items:Xr}}}function hO(){return{render:e=>pr`>3],q<<=l&7),h=0;h>3]),q&128?(F&&(F[l]=1),i=k.encoding<2?M[c++]:N,e=e>i?i:e,t[l++]=i):(F&&(F[l]=0),t[l++]=g),q<<=1;l+=y}else if(k.encoding<2)for(U=0;Ui?i:e,t[l++]=i;l+=y}else for(e=e>N?N:e,U=0;U0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var o=B.getInt16(0,!0),r=2,s=0;do{if(o>0)for(;o--;)C[s++]=B.getUint8(r++);else{var f=B.getUint8(r++);for(o=-o;o--;)C[s++]=f}o=B.getInt16(r,!0),r+=2}while(r0?1:0),F=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(t*F);for(var S=0,h=0;h3)throw"Invalid block encoding ("+w.encoding+")";if(w.encoding===2){a++;continue}if(n!==0&&n!==2){if(n>>=6,w.offsetType=n,n===2)w.offset=B.getInt8(1),G++;else if(n===1)w.offset=B.getInt16(1,!0),G+=2;else if(n===0)w.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(w.encoding===1)if(n=B.getUint8(G),G++,w.bitsPerPixel=n&63,n>>=6,w.numValidPixelsType=n,n===2)w.numValidPixels=B.getUint8(G),G++;else if(n===1)w.numValidPixels=B.getUint16(G,!0),G+=2;else if(n===0)w.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,w.encoding!==3){var l,y;if(w.encoding===0){var k=(g.pixels.numBytes-1)/4;if(k!==Math.floor(k))throw"uncompressed block has invalid length";l=new ArrayBuffer(k*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,k*4));var M=new Float32Array(l);w.rawData=M,a+=k*4}else if(w.encoding===1){var c=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),N=Math.ceil(c/4);l=new ArrayBuffer(N*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,c)),w.stuffedData=new Uint32Array(l),a+=c}}}return g.eofOffset=a,g},A=function(I,a,Q,g,D,B,C){var o=(1<=a)e=i>>>f-a&o,f-=a;else{var S=a-f;e=(i&o)<>>f}B[s]=e=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=Q[f];else for(t=Math.ceil((B-g)/D),r=0;r=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=f=A?(s=f>>>r-A&D,r-=A):(o=A-r,s=(f&D)<>>r),e[C]=s=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=A?(s=e>>>f&D,r-=A,f+=A):(o=A-r,s=e>>>f&D,e=E[B++],r=32-o,s|=(e&(1<=I?(C=o>>>B-I&Q,B-=I):(r=I-B,C=(o&Q)<>>B),A[D]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(o=r>>>C&Q,B-=I,C+=I):(s=I-B,o=r>>>C&Q,r=E[g++],B=32-s,o|=(r&(1<=359?359:Q;Q-=D;do A+=E[g++]<<8,I+=A+=E[g++];while(--D);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),D=g.getInt32(0,!0);Q.fileVersion=D,I+=4,D>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,D>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(D>=3&&(C=D>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),D=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),D=new DataView(E,I,B.numBytes);var r=D.getInt16(0,!0),s=2,f=0,e=0;do{if(r>0)for(;r--;)C[f++]=D.getUint8(s++);else for(e=D.getUint8(s++),r=-r;r--;)C[f++]=e;r=D.getInt16(s,!0),s+=2}while(s>3],i<<=t&7):i=C[t>>3],i&128&&(o[t]=1);A.pixels.resultMask=o,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,D=g.numDims,B=g.width*g.height,C=g.imageType,o=g.numValidPixel*L.getDataTypeSize(C)*D,r,s=A.pixels.resultMask;if(I===Uint8Array)r=new Uint8Array(E,Q,o);else{var f=new ArrayBuffer(o),e=new Uint8Array(f);e.set(new Uint8Array(E,Q,o)),r=new I(f)}if(r.length===B*D)a?A.pixels.resultPixels=L.swapDimensionOrder(r,B,D,I,!0):A.pixels.resultPixels=r;else{A.pixels.resultPixels=new I(B*D);var i=0,t=0,F=0,S=0;if(D>1){if(a){for(t=0;t=B)return!1;var C=new Uint32Array(B-D);L.decodeBits(E,A,C);var o=[],r,s,f,e;for(r=D;r0&&(o[s].second=G<>>32-e,32-U>=e?(U+=e,U===32&&(U=0,R++,G=h[R])):(U+=e-32,R++,G=h[R],o[s].second|=G>>>32-U));var w=0,n=0,l=new d;for(r=0;r=I?n=I:n=w;var y=[],k,M,c,N,q,m;for(r=D;r0)if(k=[e,s],e<=n)for(M=o[s].second<=0;N--)q=M>>>N&1,q?(m.right||(m.right=new d),m=m.right):(m.left||(m.left=new d),m=m.left),N===0&&!m.val&&(m.val=k[1]);return{decodeLut:y,numBitsLUTQick:n,numBitsLUT:w,tree:l,stuffedData:h,srcPtr:R,bitPos:U}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,D=A.headerInfo.height,B=A.headerInfo.width,C=B*D,o=this.readHuffmanTree(E,A),r=o.decodeLut,s=o.tree,f=o.stuffedData,e=o.srcPtr,i=o.bitPos,t=o.numBitsLUTQick,F=o.numBitsLUT,S=A.headerInfo.imageType===0?128:0,h,U,G,R=A.pixels.resultMask,w,n,l,y,k,M,c,N=0;i>0&&(e++,i=0);var q=f[e],m=A.encodeMode===1,O=new I(C*g),v=O,Y;if(g<2||m){for(Y=0;Y1&&(v=new I(O.buffer,C*Y,C),N=0),A.headerInfo.numValidPixel===B*D)for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0?G+=N:y>0?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0&&R[M-1]?G+=N:y>0&&R[M-B]?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,v[M]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=O,g>1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(O,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,D=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,o=new DataView(E,A.ptr,C),r=o.getUint8(0);B++;var s=r>>6,f=s===0?4:3-s,e=(r&32)>0,i=r&31,t=0;if(f===1)t=o.getUint8(B),B++;else if(f===2)t=o.getUint16(B,!0),B+=2;else if(f===4)t=o.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var F=2*g.maxZError,S,h,U,G,R,w,n,l,y,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,l=o.getUint8(B),B++,G=Math.ceil((l-1)*i/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),A.ptr+=B,U.set(new Uint8Array(E,A.ptr,G)),n=new Uint32Array(h),A.ptr+=G,y=0;l-1>>>y;)y++;G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?w=u.unstuffLUT2(n,i,l-1,a,F,k):w=u.unstuffLUT(n,i,l-1,a,F,k),D>=3?u.unstuff2(S,I,y,t,w):u.unstuff(S,I,y,t,w)}else A.counter.bitstuffer++,y=i,A.ptr+=B,y>0&&(G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?a==null?u.originalUnstuff2(S,I,y,t):u.unstuff2(S,I,y,t,!1,a,F,k):a==null?u.originalUnstuff(S,I,y,t):u.unstuff(S,I,y,t,!1,a,F,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,D=Q.height,B=g*D,C=Q.microBlockSize,o=Q.imageType,r=L.getDataTypeSize(o),s=Math.ceil(g/C),f=Math.ceil(D/C);A.pixels.numBlocksY=f,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,t=0,F=0,S=0,h=0,U=0,G=0,R=0,w=0,n=0,l=0,y=0,k=0,M=0,c=0,N,q,m,O,v,Y,P=new I(C*C),eA=D%C||C,aA=g%C||C,AA,b,$=Q.numDims,W,K=A.pixels.resultMask,H=A.pixels.resultPixels,rA=Q.fileVersion,CA=rA>=5?14:15,p,IA=Q.zMax,V;for(t=0;t1?(V=H,n=t*g*C+F*C,H=new I(A.pixels.resultPixels.buffer,B*W*r,B),IA=Q.maxValues[W]):V=null,U=E.byteLength-A.ptr,N=new DataView(E,A.ptr,Math.min(10,U)),q={},c=0,G=N.getUint8(0),c++,p=Q.fileVersion>=5?G&4:0,R=G>>6&255,w=G>>2&CA,w!==(F*C>>3&CA)||p&&W===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=c,"Invalid block encoding ("+Y+")";if(Y===2){if(p)if(K)for(e=0;e1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(A.pixels.resultPixels,B,$,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:L.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,D=E.headerInfo.height*E.headerInfo.width,B=0,C=0,o=0,r=E.pixels.resultMask,s=E.pixels.resultPixels;if(r)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,D=0,B=0,C=0,o=E;if(I>1)if(o=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+D;L.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)L.constructConstantSurface(Q,o);else if(D>=4&&L.checkMinMaxRanges(E,Q))L.constructConstantSurface(Q,o);else{var r=new DataView(E,Q.ptr,2),s=r.getUint8(0);if(Q.ptr++,s)L.readDataOneSweep(E,Q,B,o);else if(D>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var f=r.getUint8(1);if(Q.ptr++,Q.encodeMode=f,f>2||D<4&&f>1)throw"Invalid Huffman flag "+f;f?L.readHuffman(E,Q,B,o):L.readTiles(E,Q,B,o)}else L.readTiles(E,Q,B,o)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&L.isValidPixelValue(g.imageType,I)){var t=Q.pixels.resultMask;for(a=0;a1&&(C&&D.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&r++),a++,o.pixels.push(s.pixelData),o.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var f,e,i;if(I>1&&r>1){for(i=o.width*o.height,o.bandMasks=D,C=new Uint8Array(i),C.set(D[0]),f=1;fJ.arrayBuffer()).then(J=>WebAssembly.instantiate(J,BA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(EA,"base64"),BA).then(this._init),_)}_init(J){x=J.instance,BA.env.emscripten_notify_memory_growth(0)}decode(J,T=0){if(!x)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Z=J.byteLength,X=x.exports.malloc(Z);QA.set(J,X),T=T||Number(x.exports.ZSTD_findDecompressedSize(X,Z));const u=x.exports.malloc(T),L=x.exports.ZSTD_decompress(u,T,X,Z),d=QA.slice(u,u+L);return x.exports.free(X),x.ex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gACABLQACQRB0IANyIgM2AgALIAAgAS0AAUEIdCADajYCAAsgASACakF/ai0AACIBRQRAIABBADYCBEFsDwsgAEEoIAEQFCACQQN0ams2AgQgAgsWACAAIAEpAAA3AAAgACABKQAINwAICy8BAX8gAUECdEGgHWooAgAgACgCAEEgIAEgACgCBGprQR9xdnEhAiAAIAEQASACCyEAIAFCz9bTvtLHq9lCfiAAfEIfiUKHla+vmLbem55/fgsdAQF/IAAoAgggACgCDEYEfyAAKAIEQSBGBUEACwuCBAEDfyACQYDAAE8EQCAAIAEgAhBnIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAkEBSARAIAAhAgwBCyAAQQNxRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADTw0BIAJBA3ENAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgAS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AEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA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IARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmohAgsgB0EoahAEGiAHIAcoAmggAmoiCSADajYCaCAKIAwgCCAJSxsoAgAhDSAHIAdBKGogHUIYiKdB/wF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jYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQC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AAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",hA=new wA;class qA extends DA{constructor(J){super(),this.planarConfiguration=typeof J.PlanarConfiguration<"u"?J.PlanarConfiguration:1,this.samplesPerPixel=typeof J.SamplesPerPixel<"u"?J.SamplesPerPixel:1,this.addCompression=J.LercParameters[nA.AddCompression]}decodeBlock(J){switch(this.addCompression){case gA.None:break;case gA.Deflate:J=oA(new Uint8Array(J)).buffer;break;case gA.Zstandard:J=hA.decode(new Uint8Array(J)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return tA.decode(J,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{qA as default,hA as zstd}; +import{i as oA}from"./pako.esm-CPws4d4z.js";import{g as sA}from"./index-RYns6xqu.js";import{B as DA}from"./basedecoder-DvumDe3Y.js";import{L as nA,a as gA}from"./preview-zra5TLrG.js";import"./chunk-GKNNPQCW-BkHQSocK.js";import"./jsx-runtime-DEdD30eg.js";import"./index-CcnH5Kt0.js";import"./index-C4nnFC4q.js";import"./iframe-BM56Rj-4.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./lit-element-CHc5qsYe.js";import"./directive-helpers-B-Rwybl1.js";var iA={exports:{}};(function(j){/* Copyright 2015-2021 Esri. 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 @preserve */(function(){var J=function(){var u={};u.defaultNoDataValue=-34027999387901484e22,u.decode=function(I,a){a=a||{};var Q=a.encodedMaskData||a.encodedMaskData===null,g=E(I,a.inputOffset||0,Q),D=a.noDataValue!==null?a.noDataValue:u.defaultNoDataValue,B=L(g,a.pixelType||Float32Array,a.encodedMaskData,D,a.returnMask),C={width:g.width,height:g.height,pixelData:B.resultPixels,minValue:B.minValue,maxValue:g.pixels.maxValue,noDataValue:D};return B.resultMask&&(C.maskData=B.resultMask),a.returnEncodedMask&&g.mask&&(C.encodedMaskData=g.mask.bitset?g.mask.bitset:null),a.returnFileInfo&&(C.fileInfo=d(g),a.computeUsedBitDepths&&(C.fileInfo.bitDepths=z(g))),C};var L=function(I,a,Q,g,D){var B=0,C=I.pixels.numBlocksX,o=I.pixels.numBlocksY,r=Math.floor(I.width/C),s=Math.floor(I.height/o),f=2*I.maxZError,e=Number.MAX_VALUE,i;Q=Q||(I.mask?I.mask.bitset:null);var t,F;t=new a(I.width*I.height),D&&Q&&(F=new Uint8Array(I.width*I.height));for(var S=new Float32Array(r*s),h,U,G=0;G<=o;G++){var R=G!==o?s:I.height%o;if(R!==0)for(var w=0;w<=C;w++){var n=w!==C?r:I.width%C;if(n!==0){var l=G*I.width*s+w*r,y=I.width-n,k=I.pixels.blocks[B],M,c,N;k.encoding<2?(k.encoding===0?M=k.rawData:(A(k.stuffedData,k.bitsPerPixel,k.numValidPixels,k.offset,f,S,I.pixels.maxValue),M=S),c=0):k.encoding===2?N=0:N=k.offset;var q;if(Q)for(U=0;U>3],q<<=l&7),h=0;h>3]),q&128?(F&&(F[l]=1),i=k.encoding<2?M[c++]:N,e=e>i?i:e,t[l++]=i):(F&&(F[l]=0),t[l++]=g),q<<=1;l+=y}else if(k.encoding<2)for(U=0;Ui?i:e,t[l++]=i;l+=y}else for(e=e>N?N:e,U=0;U0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var o=B.getInt16(0,!0),r=2,s=0;do{if(o>0)for(;o--;)C[s++]=B.getUint8(r++);else{var f=B.getUint8(r++);for(o=-o;o--;)C[s++]=f}o=B.getInt16(r,!0),r+=2}while(r0?1:0),F=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(t*F);for(var S=0,h=0;h3)throw"Invalid block encoding ("+w.encoding+")";if(w.encoding===2){a++;continue}if(n!==0&&n!==2){if(n>>=6,w.offsetType=n,n===2)w.offset=B.getInt8(1),G++;else if(n===1)w.offset=B.getInt16(1,!0),G+=2;else if(n===0)w.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(w.encoding===1)if(n=B.getUint8(G),G++,w.bitsPerPixel=n&63,n>>=6,w.numValidPixelsType=n,n===2)w.numValidPixels=B.getUint8(G),G++;else if(n===1)w.numValidPixels=B.getUint16(G,!0),G+=2;else if(n===0)w.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,w.encoding!==3){var l,y;if(w.encoding===0){var k=(g.pixels.numBytes-1)/4;if(k!==Math.floor(k))throw"uncompressed block has invalid length";l=new ArrayBuffer(k*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,k*4));var M=new Float32Array(l);w.rawData=M,a+=k*4}else if(w.encoding===1){var c=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),N=Math.ceil(c/4);l=new ArrayBuffer(N*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,c)),w.stuffedData=new Uint32Array(l),a+=c}}}return g.eofOffset=a,g},A=function(I,a,Q,g,D,B,C){var o=(1<=a)e=i>>>f-a&o,f-=a;else{var S=a-f;e=(i&o)<>>f}B[s]=e=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=Q[f];else for(t=Math.ceil((B-g)/D),r=0;r=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=f=A?(s=f>>>r-A&D,r-=A):(o=A-r,s=(f&D)<>>r),e[C]=s=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=A?(s=e>>>f&D,r-=A,f+=A):(o=A-r,s=e>>>f&D,e=E[B++],r=32-o,s|=(e&(1<=I?(C=o>>>B-I&Q,B-=I):(r=I-B,C=(o&Q)<>>B),A[D]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(o=r>>>C&Q,B-=I,C+=I):(s=I-B,o=r>>>C&Q,r=E[g++],B=32-s,o|=(r&(1<=359?359:Q;Q-=D;do A+=E[g++]<<8,I+=A+=E[g++];while(--D);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),D=g.getInt32(0,!0);Q.fileVersion=D,I+=4,D>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,D>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(D>=3&&(C=D>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),D=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),D=new DataView(E,I,B.numBytes);var r=D.getInt16(0,!0),s=2,f=0,e=0;do{if(r>0)for(;r--;)C[f++]=D.getUint8(s++);else for(e=D.getUint8(s++),r=-r;r--;)C[f++]=e;r=D.getInt16(s,!0),s+=2}while(s>3],i<<=t&7):i=C[t>>3],i&128&&(o[t]=1);A.pixels.resultMask=o,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,D=g.numDims,B=g.width*g.height,C=g.imageType,o=g.numValidPixel*L.getDataTypeSize(C)*D,r,s=A.pixels.resultMask;if(I===Uint8Array)r=new Uint8Array(E,Q,o);else{var f=new ArrayBuffer(o),e=new Uint8Array(f);e.set(new Uint8Array(E,Q,o)),r=new I(f)}if(r.length===B*D)a?A.pixels.resultPixels=L.swapDimensionOrder(r,B,D,I,!0):A.pixels.resultPixels=r;else{A.pixels.resultPixels=new I(B*D);var i=0,t=0,F=0,S=0;if(D>1){if(a){for(t=0;t=B)return!1;var C=new Uint32Array(B-D);L.decodeBits(E,A,C);var o=[],r,s,f,e;for(r=D;r0&&(o[s].second=G<>>32-e,32-U>=e?(U+=e,U===32&&(U=0,R++,G=h[R])):(U+=e-32,R++,G=h[R],o[s].second|=G>>>32-U));var w=0,n=0,l=new d;for(r=0;r=I?n=I:n=w;var y=[],k,M,c,N,q,m;for(r=D;r0)if(k=[e,s],e<=n)for(M=o[s].second<=0;N--)q=M>>>N&1,q?(m.right||(m.right=new d),m=m.right):(m.left||(m.left=new d),m=m.left),N===0&&!m.val&&(m.val=k[1]);return{decodeLut:y,numBitsLUTQick:n,numBitsLUT:w,tree:l,stuffedData:h,srcPtr:R,bitPos:U}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,D=A.headerInfo.height,B=A.headerInfo.width,C=B*D,o=this.readHuffmanTree(E,A),r=o.decodeLut,s=o.tree,f=o.stuffedData,e=o.srcPtr,i=o.bitPos,t=o.numBitsLUTQick,F=o.numBitsLUT,S=A.headerInfo.imageType===0?128:0,h,U,G,R=A.pixels.resultMask,w,n,l,y,k,M,c,N=0;i>0&&(e++,i=0);var q=f[e],m=A.encodeMode===1,O=new I(C*g),v=O,Y;if(g<2||m){for(Y=0;Y1&&(v=new I(O.buffer,C*Y,C),N=0),A.headerInfo.numValidPixel===B*D)for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0?G+=N:y>0?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0&&R[M-1]?G+=N:y>0&&R[M-B]?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,v[M]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=O,g>1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(O,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,D=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,o=new DataView(E,A.ptr,C),r=o.getUint8(0);B++;var s=r>>6,f=s===0?4:3-s,e=(r&32)>0,i=r&31,t=0;if(f===1)t=o.getUint8(B),B++;else if(f===2)t=o.getUint16(B,!0),B+=2;else if(f===4)t=o.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var F=2*g.maxZError,S,h,U,G,R,w,n,l,y,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,l=o.getUint8(B),B++,G=Math.ceil((l-1)*i/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),A.ptr+=B,U.set(new Uint8Array(E,A.ptr,G)),n=new Uint32Array(h),A.ptr+=G,y=0;l-1>>>y;)y++;G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?w=u.unstuffLUT2(n,i,l-1,a,F,k):w=u.unstuffLUT(n,i,l-1,a,F,k),D>=3?u.unstuff2(S,I,y,t,w):u.unstuff(S,I,y,t,w)}else A.counter.bitstuffer++,y=i,A.ptr+=B,y>0&&(G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?a==null?u.originalUnstuff2(S,I,y,t):u.unstuff2(S,I,y,t,!1,a,F,k):a==null?u.originalUnstuff(S,I,y,t):u.unstuff(S,I,y,t,!1,a,F,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,D=Q.height,B=g*D,C=Q.microBlockSize,o=Q.imageType,r=L.getDataTypeSize(o),s=Math.ceil(g/C),f=Math.ceil(D/C);A.pixels.numBlocksY=f,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,t=0,F=0,S=0,h=0,U=0,G=0,R=0,w=0,n=0,l=0,y=0,k=0,M=0,c=0,N,q,m,O,v,Y,P=new I(C*C),eA=D%C||C,aA=g%C||C,AA,b,$=Q.numDims,W,K=A.pixels.resultMask,H=A.pixels.resultPixels,rA=Q.fileVersion,CA=rA>=5?14:15,p,IA=Q.zMax,V;for(t=0;t1?(V=H,n=t*g*C+F*C,H=new I(A.pixels.resultPixels.buffer,B*W*r,B),IA=Q.maxValues[W]):V=null,U=E.byteLength-A.ptr,N=new DataView(E,A.ptr,Math.min(10,U)),q={},c=0,G=N.getUint8(0),c++,p=Q.fileVersion>=5?G&4:0,R=G>>6&255,w=G>>2&CA,w!==(F*C>>3&CA)||p&&W===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=c,"Invalid block encoding ("+Y+")";if(Y===2){if(p)if(K)for(e=0;e1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(A.pixels.resultPixels,B,$,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:L.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,D=E.headerInfo.height*E.headerInfo.width,B=0,C=0,o=0,r=E.pixels.resultMask,s=E.pixels.resultPixels;if(r)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,D=0,B=0,C=0,o=E;if(I>1)if(o=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+D;L.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)L.constructConstantSurface(Q,o);else if(D>=4&&L.checkMinMaxRanges(E,Q))L.constructConstantSurface(Q,o);else{var r=new DataView(E,Q.ptr,2),s=r.getUint8(0);if(Q.ptr++,s)L.readDataOneSweep(E,Q,B,o);else if(D>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var f=r.getUint8(1);if(Q.ptr++,Q.encodeMode=f,f>2||D<4&&f>1)throw"Invalid Huffman flag "+f;f?L.readHuffman(E,Q,B,o):L.readTiles(E,Q,B,o)}else L.readTiles(E,Q,B,o)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&L.isValidPixelValue(g.imageType,I)){var t=Q.pixels.resultMask;for(a=0;a1&&(C&&D.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&r++),a++,o.pixels.push(s.pixelData),o.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var f,e,i;if(I>1&&r>1){for(i=o.width*o.height,o.bandMasks=D,C=new Uint8Array(i),C.set(D[0]),f=1;fJ.arrayBuffer()).then(J=>WebAssembly.instantiate(J,BA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(EA,"base64"),BA).then(this._init),_)}_init(J){x=J.instance,BA.env.emscripten_notify_memory_growth(0)}decode(J,T=0){if(!x)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Z=J.byteLength,X=x.exports.malloc(Z);QA.set(J,X),T=T||Number(x.exports.ZSTD_findDecompressedSize(X,Z));const u=x.exports.malloc(T),L=x.exports.ZSTD_decompress(u,T,X,Z),d=QA.slice(u,u+L);return x.exports.free(X),x.exports.free(u),d}}const EA="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38A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NACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBC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EaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJB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EBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEEdCAAbiECC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AAAAAYDAAAAAAAABAQAAAAgAAAFBQAAAAAAAAUGAAAAAAAABQgAAAAAAAAFCQAAAAAAAAULAAAAAAAABg0AAAAAAAAGEAAAAAAAAAYTAAAAAAAABhYAAAAAAAAGGQAAAAAAAAYcAAAAAAAABh8AAAAAAAAGIgAAAAAAAQYlAAAAAAABBikAAAAAAAIGLwAAAAAAAwY7AAAAAAAEBlMAAAAAAAcGgwAAAAAACQYDAgAAEAAABAQAAAAAAAAEBQAAACAAAAUGAAAAAAAABQcAAAAgAAAFCQAAAAAAAAUKAAAAAAAABgwAAAAAAAAGDwAAAAAAAAYSAAAAAAAABhUAAAAAAAAGGAAAAAAAAAYbAAAAAAAABh4AAAAAAAAGIQAAAAAAAQYjAAAAAAABBicAAAAAAAIGKwAAAAAAAwYzAAAAAAAEBkMAAAAAAAUGYwAAAAAACAYDAQAAIAAABAQAAAAwAAAEBAAAABAAAAQFAAAAIAAABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",hA=new wA;class qA extends DA{constructor(J){super(),this.planarConfiguration=typeof J.PlanarConfiguration<"u"?J.PlanarConfiguration:1,this.samplesPerPixel=typeof J.SamplesPerPixel<"u"?J.SamplesPerPixel:1,this.addCompression=J.LercParameters[nA.AddCompression]}decodeBlock(J){switch(this.addCompression){case gA.None:break;case gA.Deflate:J=oA(new Uint8Array(J)).buffer;break;case gA.Zstandard:J=hA.decode(new Uint8Array(J)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return tA.decode(J,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{qA as default,hA as zstd}; diff --git a/assets/preview-BLfJQMLJ.js b/assets/preview-CB0AiCd1.js similarity index 66% rename from assets/preview-BLfJQMLJ.js rename to assets/preview-CB0AiCd1.js index 8e4dc097c..c02b9d39c 100644 --- a/assets/preview-BLfJQMLJ.js +++ b/assets/preview-CB0AiCd1.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-Q5Ml3-mS.js","./iframe-CyVltN8V.js","./index-RYns6xqu.js","./index-DhyC0JuC.js","./index-DxKRhftL.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-CyVltN8V.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-Q5Ml3-mS.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-DySwcl-A.js","./iframe-BM56Rj-4.js","./index-RYns6xqu.js","./index-C4nnFC4q.js","./index-DxKRhftL.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-BM56Rj-4.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-DySwcl-A.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; diff --git a/assets/preview-BFptM-L4.js b/assets/preview-zra5TLrG.js similarity index 99% rename from assets/preview-BFptM-L4.js rename to assets/preview-zra5TLrG.js index 24322f02f..337f42f01 100644 --- a/assets/preview-BFptM-L4.js +++ b/assets/preview-zra5TLrG.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./raw-Dt1HMqYc.js","./basedecoder-DvumDe3Y.js","./lzw-DpvbRwG5.js","./jpeg-CdeCw_eT.js","./deflate-CUkHh1nh.js","./pako.esm-CPws4d4z.js","./packbits-DQnG8s9w.js","./lerc-BICoda3J.js","./index-RYns6xqu.js","./chunk-GKNNPQCW-BkHQSocK.js","./jsx-runtime-DEdD30eg.js","./index-CcnH5Kt0.js","./index-DhyC0JuC.js","./iframe-CyVltN8V.js","./index-DxKRhftL.js","./index-DrFu-skq.js","./lit-element-CHc5qsYe.js","./directive-helpers-B-Rwybl1.js","./webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); -var GSe=Object.defineProperty;var Qoe=i=>{throw TypeError(i)};var qSe=(i,e,t)=>e in i?GSe(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ze=(i,e,t)=>qSe(i,typeof e!="symbol"?e+"":e,t),wT=(i,e,t)=>e.has(i)||Qoe("Cannot "+t);var ti=(i,e,t)=>(wT(i,e,"read from private field"),t?t.call(i):e.get(i)),_i=(i,e,t)=>e.has(i)?Qoe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),zs=(i,e,t,n)=>(wT(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t),xi=(i,e,t)=>(wT(i,e,"access private method"),t);import{s as HSe}from"./chunk-GKNNPQCW-BkHQSocK.js";import{j as Wl}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as Mpe}from"./index-CcnH5Kt0.js";import{ap as VSe,aq as WSe,ar as YSe,as as XSe,at as ZSe,au as KSe,av as JSe,aw as cw}from"./index-DhyC0JuC.js";import{g as Jo,c as rr,a as Lpe}from"./index-RYns6xqu.js";import{D as vr,h as cr,k as nt,R as Hm,i as QSe,u as eTe,f as tTe,Q as iTe,O as eae}from"./lit-element-CHc5qsYe.js";import{d as dM,u as nTe,c as cp,a as Sv,p as ET,r as rTe}from"./directive-helpers-B-Rwybl1.js";import{_ as xf}from"./iframe-CyVltN8V.js";const tae={duration:750},iae={type:"FeatureCollection",features:[]},sTe="1.0.0",oTe="",aTe=[{kind:"javascript-module",path:"elements/drawtools/src/main.js",declarations:[{kind:"class",description:"Manage drawn features on a map",name:"EOxDrawTools",members:[{kind:"field",name:"#eoxMap",privacy:"private",type:{text:"EOxMap"}},{kind:"field",name:"#olMap",privacy:"private",type:{text:"Map"}},{kind:"field",name:"#geoJSON",privacy:"private",type:{text:"string"}},{kind:"method",name:"handleStartDrawing"},{kind:"method",name:"handleDiscardDrawing"},{kind:"method",name:"handleFeatureChange",parameters:[{name:"text",description:"The string representation of the features to be parsed.",type:{text:"string"}},{name:"replaceFeatures",default:"false",description:"A boolean flag indicating whether to replace the existing features.",type:{text:"boolean"}}]},{kind:"method",name:"handleFilesChange",parameters:[{name:"evt",description:"The event object from the file input interaction.",type:{text:"DragEvent | Event"}}]},{kind:"method",name:"onModifyEnd"},{kind:"method",name:"updateGeoJSON",description:"Update #geoJSON with stringify feature."},{kind:"method",name:"emitDrawnFeatures",description:"Triggers different events when the drawing of a shape is completed."},{kind:"field",name:"eoxMap"},{kind:"field",name:"allowModify",privacy:"public",type:{text:"boolean"},description:"Allow modifying the drawn feature(s)",default:"false",attribute:"allow-modify"},{kind:"field",name:"for",privacy:"public",type:{text:"String|HTMLElement"},description:"Query selector of an `eox-map` (`String`, passed as an attribute or property)\nor an `eox-map` DOM element (`HTMLElement`, passed as property)",default:'"eox-map"',attribute:"for"},{kind:"field",name:"currentlyDrawing",privacy:"public",type:{text:"boolean"},description:"Whether the user is currently in the process of drawing or not",default:"false"},{kind:"field",name:"draw",privacy:"public",type:{text:"Draw"},description:"The current native OpenLayers `draw` interaction",default:"null"},{kind:"field",name:"drawLayer",privacy:"public",type:{text:"default"},description:"The current native OpenLayers draw `layer`",default:"null"},{kind:"field",name:"drawnFeatures",privacy:"public",type:{text:"Array"},description:"The array of drawn native OpenLayers features. Normally includes only one feature, until multiple feature drawing is enabled.",default:"[]"},{kind:"field",name:"modify",privacy:"public",type:{text:"Modify"},description:"The current native OpenLayers `modify` interaction",default:"null"},{kind:"field",name:"multipleFeatures",privacy:"public",type:{text:"boolean"},description:"Allow adding more than one feature at a time",default:"false",attribute:"multiple-features"},{kind:"field",name:"importFeatures",privacy:"public",type:{text:"boolean"},description:"Allow import features using drag-drop and upload button",default:"false",attribute:"import-features"},{kind:"field",name:"showEditor",privacy:"public",type:{text:"boolean"},description:"Show geo-json editor for draw tool",default:"false",attribute:"show-editor"},{kind:"field",name:"showList",privacy:"public",type:{text:"boolean"},description:"Show list of features",default:"false",attribute:"show-list"},{kind:"field",name:"type",privacy:"public",type:{text:'"Polygon" | "Point" | "LineString" | "Circle" | "Box"'},description:"Type of the drawn feature",default:'"Polygon"',attribute:"type"},{kind:"field",name:"unstyled",privacy:"public",type:{text:"boolean"},description:"Render the element without additional styles",default:"false",attribute:"unstyled"},{kind:"field",name:"noShadow",privacy:"public",type:{text:"Boolean"},description:"Renders the element without a shadow root",default:"false",attribute:"noShadow"}],events:[{name:"drawupdate",type:{text:"Array"},description:"Fires whenever features are added, modified or discarded, where the event detail\nis the `drawnFeatures` array"}],attributes:[{name:"allow-modify",type:{text:"boolean"},description:"Allow modifying the drawn feature(s)",default:"false",fieldName:"allowModify"},{name:"for",type:{text:"String|HTMLElement"},description:"Query selector of an `eox-map` (`String`, passed as an attribute or property)\nor an `eox-map` DOM element (`HTMLElement`, passed as property)",default:'"eox-map"',fieldName:"for"},{name:"multiple-features",type:{text:"boolean"},description:"Allow adding more than one feature at a time",default:"false",fieldName:"multipleFeatures"},{name:"import-features",type:{text:"boolean"},description:"Allow import features using drag-drop and upload button",default:"false",fieldName:"importFeatures"},{name:"show-editor",type:{text:"boolean"},description:"Show geo-json editor for draw tool",default:"false",fieldName:"showEditor"},{name:"show-list",type:{text:"boolean"},description:"Show list of features",default:"false",fieldName:"showList"},{name:"noShadow",type:{text:"Boolean"},description:"Renders the element without a shadow root",default:"false",fieldName:"noShadow"},{name:"type",type:{text:'"Polygon" | "Point" | "LineString" | "Circle" | "Box"'},description:"Type of the drawn feature",default:'"Polygon"',fieldName:"type"},{name:"unstyled",type:{text:"boolean"},description:"Render the element without additional styles",default:"false",fieldName:"unstyled"}],superclass:{name:"LitElement",package:"lit"},tagName:"eox-drawtools",customElement:!0}],exports:[{kind:"js",name:"EOxDrawTools",declaration:{name:"EOxDrawTools",module:"elements/drawtools/src/main.js"}},{kind:"custom-element-definition",name:"eox-drawtools",declaration:{name:"EOxDrawTools",module:"elements/drawtools/src/main.js"}}]},{kind:"javascript-module",path:"elements/geosearch/src/main.js",declarations:[{kind:"class",description:"",name:"EOxGeoSearch",members:[{kind:"field",name:"#eoxMap",privacy:"private",type:{text:"EOxMap"}},{kind:"method",name:"onInput",parameters:[{name:"e"}]},{kind:"method",name:"onInputBlur"},{kind:"method",name:"onButtonClick"},{kind:"method",name:"getFlexDirection"},{kind:"method",name:"getResultsDirection"},{kind:"method",name:"getVerticalAlign"},{kind:"method",name:"getMarginDirection",parameters:[{name:"direction"}]},{kind:"method",name:"handleSelect",parameters:[{name:"event"}]},{kind:"method",name:"updateMap"},{kind:"field",name:"eoxMap"},{kind:"field",name:"_data",privacy:"private",description:"Internal storage of OpenCage API data after a successful API request.",type:{text:"array"},default:"[]"},{kind:"field",name:"_isListVisible",privacy:"private",description:"Whether or not the list dropdown is visible.",type:{text:"boolean"},default:"false"},{kind:"field",name:"_isInputVisible",privacy:"private",description:"Whether or not the input field is visible.",type:{text:"boolean"},default:"false"},{kind:"field",name:"_query",privacy:"private",description:"The search query, which is bound to the input field.",type:{text:"string"},default:'""'},{kind:"field",name:"_isLoading",privacy:"private",description:"Returns true if the element is currently loading data from the API.",type:{text:"boolean"},default:"false"},{kind:"field",name:"for",privacy:"public",type:{text:"String|HTMLElement"},description:"Query selector of an `eox-map` (`String`, passed as an attribute or property)\nor an `eox-map` DOM element (`HTMLElement`, passed as property)",default:'"eox-map"',attribute:"for"},{kind:"field",name:"listDirection",type:{text:"string"},default:'"right"'},{kind:"field",name:"resultsDirection",privacy:"public",type:{text:"string"},description:"The direction of the results box relative to the input, with the following options:\n\n- `left`\n- `top`\n- `right`\n- `bottom`",default:'"down"',attribute:"results-direction"},{kind:"field",name:"interval",privacy:"public",type:{text:"number"},description:"Set a custom interval for the debounce function.",default:"800",attribute:"interval"},{kind:"field",name:"loaderSvg",privacy:"public",type:{text:"string"},default:'` `',attribute:"loader-svg"},{kind:"field",name:"fetchDebounced"},{kind:"field",name:"endpoint",privacy:"public",type:{text:"string"},description:"The OpenCage API endpoint to use for the search, including the key but without the query parameter.",attribute:"endpoint"},{kind:"field",name:"queryParameter",privacy:"public",type:{text:"string"},description:"The name of the query parameter to use for the search query in the endpoint URI.",attribute:"queryParameter"},{kind:"field",name:"button",privacy:"public",type:{text:"boolean"},description:`Whether or not to enable button mode, which hides and shows the input field +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./raw-Dt1HMqYc.js","./basedecoder-DvumDe3Y.js","./lzw-DpvbRwG5.js","./jpeg-CdeCw_eT.js","./deflate-CUkHh1nh.js","./pako.esm-CPws4d4z.js","./packbits-DQnG8s9w.js","./lerc-CpoBLLMY.js","./index-RYns6xqu.js","./chunk-GKNNPQCW-BkHQSocK.js","./jsx-runtime-DEdD30eg.js","./index-CcnH5Kt0.js","./index-C4nnFC4q.js","./iframe-BM56Rj-4.js","./index-DxKRhftL.js","./index-DrFu-skq.js","./lit-element-CHc5qsYe.js","./directive-helpers-B-Rwybl1.js","./webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); +var GSe=Object.defineProperty;var Qoe=i=>{throw TypeError(i)};var qSe=(i,e,t)=>e in i?GSe(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ze=(i,e,t)=>qSe(i,typeof e!="symbol"?e+"":e,t),wT=(i,e,t)=>e.has(i)||Qoe("Cannot "+t);var ti=(i,e,t)=>(wT(i,e,"read from private field"),t?t.call(i):e.get(i)),_i=(i,e,t)=>e.has(i)?Qoe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),zs=(i,e,t,n)=>(wT(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t),xi=(i,e,t)=>(wT(i,e,"access private method"),t);import{s as HSe}from"./chunk-GKNNPQCW-BkHQSocK.js";import{j as Wl}from"./jsx-runtime-DEdD30eg.js";import{useMDXComponents as Mpe}from"./index-CcnH5Kt0.js";import{ap as VSe,aq as WSe,ar as YSe,as as XSe,at as ZSe,au as KSe,av as JSe,aw as cw}from"./index-C4nnFC4q.js";import{g as Jo,c as rr,a as Lpe}from"./index-RYns6xqu.js";import{D as vr,h as cr,k as nt,R as Hm,i as QSe,u as eTe,f as tTe,Q as iTe,O as eae}from"./lit-element-CHc5qsYe.js";import{d as dM,u as nTe,c as cp,a as Sv,p as ET,r as rTe}from"./directive-helpers-B-Rwybl1.js";import{_ as xf}from"./iframe-BM56Rj-4.js";const tae={duration:750},iae={type:"FeatureCollection",features:[]},sTe="1.0.0",oTe="",aTe=[{kind:"javascript-module",path:"elements/drawtools/src/main.js",declarations:[{kind:"class",description:"Manage drawn features on a map",name:"EOxDrawTools",members:[{kind:"field",name:"#eoxMap",privacy:"private",type:{text:"EOxMap"}},{kind:"field",name:"#olMap",privacy:"private",type:{text:"Map"}},{kind:"field",name:"#geoJSON",privacy:"private",type:{text:"string"}},{kind:"method",name:"handleStartDrawing"},{kind:"method",name:"handleDiscardDrawing"},{kind:"method",name:"handleFeatureChange",parameters:[{name:"text",description:"The string representation of the features to be parsed.",type:{text:"string"}},{name:"replaceFeatures",default:"false",description:"A boolean flag indicating whether to replace the existing features.",type:{text:"boolean"}}]},{kind:"method",name:"handleFilesChange",parameters:[{name:"evt",description:"The event object from the file input interaction.",type:{text:"DragEvent | Event"}}]},{kind:"method",name:"onModifyEnd"},{kind:"method",name:"updateGeoJSON",description:"Update #geoJSON with stringify feature."},{kind:"method",name:"emitDrawnFeatures",description:"Triggers different events when the drawing of a shape is completed."},{kind:"field",name:"eoxMap"},{kind:"field",name:"allowModify",privacy:"public",type:{text:"boolean"},description:"Allow modifying the drawn feature(s)",default:"false",attribute:"allow-modify"},{kind:"field",name:"for",privacy:"public",type:{text:"String|HTMLElement"},description:"Query selector of an `eox-map` (`String`, passed as an attribute or property)\nor an `eox-map` DOM element (`HTMLElement`, passed as property)",default:'"eox-map"',attribute:"for"},{kind:"field",name:"currentlyDrawing",privacy:"public",type:{text:"boolean"},description:"Whether the user is currently in the process of drawing or not",default:"false"},{kind:"field",name:"draw",privacy:"public",type:{text:"Draw"},description:"The current native OpenLayers `draw` interaction",default:"null"},{kind:"field",name:"drawLayer",privacy:"public",type:{text:"default"},description:"The current native OpenLayers draw `layer`",default:"null"},{kind:"field",name:"drawnFeatures",privacy:"public",type:{text:"Array"},description:"The array of drawn native OpenLayers features. Normally includes only one feature, until multiple feature drawing is enabled.",default:"[]"},{kind:"field",name:"modify",privacy:"public",type:{text:"Modify"},description:"The current native OpenLayers `modify` interaction",default:"null"},{kind:"field",name:"multipleFeatures",privacy:"public",type:{text:"boolean"},description:"Allow adding more than one feature at a time",default:"false",attribute:"multiple-features"},{kind:"field",name:"importFeatures",privacy:"public",type:{text:"boolean"},description:"Allow import features using drag-drop and upload button",default:"false",attribute:"import-features"},{kind:"field",name:"showEditor",privacy:"public",type:{text:"boolean"},description:"Show geo-json editor for draw tool",default:"false",attribute:"show-editor"},{kind:"field",name:"showList",privacy:"public",type:{text:"boolean"},description:"Show list of features",default:"false",attribute:"show-list"},{kind:"field",name:"type",privacy:"public",type:{text:'"Polygon" | "Point" | "LineString" | "Circle" | "Box"'},description:"Type of the drawn feature",default:'"Polygon"',attribute:"type"},{kind:"field",name:"unstyled",privacy:"public",type:{text:"boolean"},description:"Render the element without additional styles",default:"false",attribute:"unstyled"},{kind:"field",name:"noShadow",privacy:"public",type:{text:"Boolean"},description:"Renders the element without a shadow root",default:"false",attribute:"noShadow"}],events:[{name:"drawupdate",type:{text:"Array"},description:"Fires whenever features are added, modified or discarded, where the event detail\nis the `drawnFeatures` array"}],attributes:[{name:"allow-modify",type:{text:"boolean"},description:"Allow modifying the drawn feature(s)",default:"false",fieldName:"allowModify"},{name:"for",type:{text:"String|HTMLElement"},description:"Query selector of an `eox-map` (`String`, passed as an attribute or property)\nor an `eox-map` DOM element (`HTMLElement`, passed as property)",default:'"eox-map"',fieldName:"for"},{name:"multiple-features",type:{text:"boolean"},description:"Allow adding more than one feature at a time",default:"false",fieldName:"multipleFeatures"},{name:"import-features",type:{text:"boolean"},description:"Allow import features using drag-drop and upload button",default:"false",fieldName:"importFeatures"},{name:"show-editor",type:{text:"boolean"},description:"Show geo-json editor for draw tool",default:"false",fieldName:"showEditor"},{name:"show-list",type:{text:"boolean"},description:"Show list of features",default:"false",fieldName:"showList"},{name:"noShadow",type:{text:"Boolean"},description:"Renders the element without a shadow root",default:"false",fieldName:"noShadow"},{name:"type",type:{text:'"Polygon" | "Point" | "LineString" | "Circle" | "Box"'},description:"Type of the drawn feature",default:'"Polygon"',fieldName:"type"},{name:"unstyled",type:{text:"boolean"},description:"Render the element without additional styles",default:"false",fieldName:"unstyled"}],superclass:{name:"LitElement",package:"lit"},tagName:"eox-drawtools",customElement:!0}],exports:[{kind:"js",name:"EOxDrawTools",declaration:{name:"EOxDrawTools",module:"elements/drawtools/src/main.js"}},{kind:"custom-element-definition",name:"eox-drawtools",declaration:{name:"EOxDrawTools",module:"elements/drawtools/src/main.js"}}]},{kind:"javascript-module",path:"elements/geosearch/src/main.js",declarations:[{kind:"class",description:"",name:"EOxGeoSearch",members:[{kind:"field",name:"#eoxMap",privacy:"private",type:{text:"EOxMap"}},{kind:"method",name:"onInput",parameters:[{name:"e"}]},{kind:"method",name:"onInputBlur"},{kind:"method",name:"onButtonClick"},{kind:"method",name:"getFlexDirection"},{kind:"method",name:"getResultsDirection"},{kind:"method",name:"getVerticalAlign"},{kind:"method",name:"getMarginDirection",parameters:[{name:"direction"}]},{kind:"method",name:"handleSelect",parameters:[{name:"event"}]},{kind:"method",name:"updateMap"},{kind:"field",name:"eoxMap"},{kind:"field",name:"_data",privacy:"private",description:"Internal storage of OpenCage API data after a successful API request.",type:{text:"array"},default:"[]"},{kind:"field",name:"_isListVisible",privacy:"private",description:"Whether or not the list dropdown is visible.",type:{text:"boolean"},default:"false"},{kind:"field",name:"_isInputVisible",privacy:"private",description:"Whether or not the input field is visible.",type:{text:"boolean"},default:"false"},{kind:"field",name:"_query",privacy:"private",description:"The search query, which is bound to the input field.",type:{text:"string"},default:'""'},{kind:"field",name:"_isLoading",privacy:"private",description:"Returns true if the element is currently loading data from the API.",type:{text:"boolean"},default:"false"},{kind:"field",name:"for",privacy:"public",type:{text:"String|HTMLElement"},description:"Query selector of an `eox-map` (`String`, passed as an attribute or property)\nor an `eox-map` DOM element (`HTMLElement`, passed as property)",default:'"eox-map"',attribute:"for"},{kind:"field",name:"listDirection",type:{text:"string"},default:'"right"'},{kind:"field",name:"resultsDirection",privacy:"public",type:{text:"string"},description:"The direction of the results box relative to the input, with the following options:\n\n- `left`\n- `top`\n- `right`\n- `bottom`",default:'"down"',attribute:"results-direction"},{kind:"field",name:"interval",privacy:"public",type:{text:"number"},description:"Set a custom interval for the debounce function.",default:"800",attribute:"interval"},{kind:"field",name:"loaderSvg",privacy:"public",type:{text:"string"},default:'` `',attribute:"loader-svg"},{kind:"field",name:"fetchDebounced"},{kind:"field",name:"endpoint",privacy:"public",type:{text:"string"},description:"The OpenCage API endpoint to use for the search, including the key but without the query parameter.",attribute:"endpoint"},{kind:"field",name:"queryParameter",privacy:"public",type:{text:"string"},description:"The name of the query parameter to use for the search query in the endpoint URI.",attribute:"queryParameter"},{kind:"field",name:"button",privacy:"public",type:{text:"boolean"},description:`Whether or not to enable button mode, which hides and shows the input field similar to how a modal works.`,attribute:"button"},{kind:"field",name:"small",privacy:"public",type:{text:"boolean"},description:"Enables a smaller version of the button for use in map controls.",attribute:"small"},{kind:"field",name:"label",privacy:"public",type:{text:"string"},description:"Which text to use for the button if it is enabled.",attribute:"label"},{kind:"field",name:"direction",privacy:"public",type:{text:"string"},description:"The direction of the search input relative to the button, with the following options:\n\n- `left`\n- `top`\n- `right`\n- `bottom`",attribute:"list-direction"},{kind:"field",name:"unstyled",privacy:"public",type:{text:"boolean"},attribute:"unstyled"}],events:[{name:"geosearchSelect",type:{text:"CustomEvent"},description:"The select event, including the details of the selected item"}],attributes:[{name:"endpoint",type:{text:"string"},description:"The OpenCage API endpoint to use for the search, including the key but without the query parameter.",fieldName:"endpoint"},{name:"for",type:{text:"String|HTMLElement"},description:"Query selector of an `eox-map` (`String`, passed as an attribute or property)\nor an `eox-map` DOM element (`HTMLElement`, passed as property)",default:'"eox-map"',fieldName:"for"},{name:"queryParameter",type:{text:"string"},description:"The name of the query parameter to use for the search query in the endpoint URI.",fieldName:"queryParameter"},{name:"button",type:{text:"boolean"},description:`Whether or not to enable button mode, which hides and shows the input field similar to how a modal works.`,fieldName:"button"},{name:"interval",type:{text:"number"},description:"Set a custom interval for the debounce function.",default:"800",fieldName:"interval"},{name:"small",type:{text:"boolean"},description:"Enables a smaller version of the button for use in map controls.",fieldName:"small"},{name:"label",type:{text:"string"},description:"Which text to use for the button if it is enabled.",fieldName:"label"},{name:"list-direction",type:{text:"string"},description:"The direction of the search input relative to the button, with the following options:\n\n- `left`\n- `top`\n- `right`\n- `bottom`",fieldName:"direction"},{name:"results-direction",type:{text:"string"},description:"The direction of the results box relative to the input, with the following options:\n\n- `left`\n- `top`\n- `right`\n- `bottom`",default:'"down"',fieldName:"resultsDirection"},{name:"unstyled",type:{text:"boolean"},fieldName:"unstyled"},{name:"loader-svg",type:{text:"string"},default:"loaderSvg",fieldName:"loaderSvg"}],superclass:{name:"LitElement",package:"lit"},tagName:"eox-geosearch",customElement:!0},{kind:"class",description:"",name:"EOxGeoSearchItem",members:[{kind:"field",name:"item",privacy:"public",type:{text:"object"},attribute:"item"},{kind:"field",name:"onClick",privacy:"public",type:{text:"function"},attribute:"onClick"},{kind:"field",name:"unstyled",privacy:"public",type:{text:"boolean"},attribute:"unstyled"}],attributes:[{name:"item",type:{text:"object"},fieldName:"item"},{name:"onClick",type:{text:"function"},fieldName:"onClick"},{name:"unstyled",type:{text:"boolean"},fieldName:"unstyled"}],superclass:{name:"LitElement",package:"lit"},tagName:"eox-geosearch-item",customElement:!0}],exports:[{kind:"custom-element-definition",name:"eox-geosearch",declaration:{name:"EOxGeoSearch",module:"elements/geosearch/src/main.js"}},{kind:"custom-element-definition",name:"eox-geosearch-item",declaration:{name:"EOxGeoSearchItem",module:"elements/geosearch/src/main.js"}},{kind:"js",name:"EOxGeoSearch",declaration:{name:"EOxGeoSearch",module:"elements/geosearch/src/main.js"}}]},{kind:"javascript-module",path:"elements/itemfilter/src/main.js",declarations:[{kind:"class",description:`EOxItemFilter is a custom web component that provides a comprehensive item filtering system. It includes methods for applying filters, searching, sorting results, and resetting filters. @@ -1343,9 +1343,9 @@ eox-itemfilter-results li.highlighted { ${xi(this,gg,pD).call(this,"max","after")} @@ -1387,7 +1387,7 @@ eox-itemfilter-results li.highlighted { `)} - `}}mg=new WeakSet,gD=function(t){Z6e(t,this)},uye=function(t){X6e(t,this)};customElements.define("eox-itemfilter-chips",J6e);const Q6e=Object.freeze({aggregateResults:void 0,autoSpreadSingle:!1,enableHighlighting:!1,externalFilter:()=>{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,idProperty:"id",titleProperty:"title",subTitleProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0}),Hue=["aggregateResults","autoSpreadSingle","enableHighlighting","externalFilter","filterProperties","fuseConfig","inlineMode","matchAllWhenEmpty","showResults","titleProperty","subTitleProperty","idProperty","expandMultipleFilters","expandResults","expandMultipleResults","items"];var e8e=200,iL="__lodash_hash_undefined__",t8e=1/0,i8e="[object Function]",n8e="[object GeneratorFunction]",r8e=/[\\^$.*+?()[\]{}|]/g,s8e=/^\[object .+?Constructor\]$/,o8e=typeof rr=="object"&&rr&&rr.Object===Object&&rr,a8e=typeof self=="object"&&self&&self.Object===Object&&self,nL=o8e||a8e||Function("return this")();function l8e(i,e){var t=i?i.length:0;return!!t&&c8e(i,e,0)>-1}function u8e(i,e,t,n){for(var r=i.length,s=t+-1;++s-1}function M8e(i,e){var t=this.__data__,n=pS(t,i);return n<0?t.push([i,e]):t[n][1]=e,this}Ey.prototype.clear=T8e;Ey.prototype.delete=A8e;Ey.prototype.get=k8e;Ey.prototype.has=D8e;Ey.prototype.set=M8e;function Cy(i){var e=-1,t=i?i.length:0;for(this.clear();++e=e8e){var u=j8e(i);if(u)return cye(u);o=!1,r=d8e,l=new vE}else l=a;e:for(;++n-1}function ii(te,we){var qe=this.__data__,wt=gn(qe,te);return wt<0?qe.push([te,we]):qe[wt][1]=we,this}ye.prototype.clear=Me,ye.prototype.delete=ot,ye.prototype.get=Qe,ye.prototype.has=Tt,ye.prototype.set=ii;function ai(te){var we=-1,qe=te?te.length:0;for(this.clear();++weEn))return!1;var Xr=zt.get(te);if(Xr&&zt.get(we))return Xr==we;var xs=-1,_r=!0,Lr=ei&s?new Ot:void 0;for(zt.set(te,we),zt.set(we,te);++xs-1&&te%1==0&&te-1&&te%1==0&&te<=l}function Fr(te){var we=typeof te;return!!te&&(we=="object"||we=="function")}function Nr(te){return!!te&&typeof te=="object"}function Eo(te){return typeof te=="symbol"||Nr(te)&&Ee.call(te)==M}var Vn=Ni?L(Ni):lo;function sa(te){return te==null?"":co(te)}function pu(te,we,qe){var wt=te==null?void 0:cs(te,we);return wt===void 0?qe:wt}function za(te,we){return te!=null&&vs(te,we,so)}function Ua(te){return tn(te)?Fn(te):uo(te)}function Ku(te){return te}function gu(te){return fo(te)?ae(Xt(te)):Ns(te)}i.exports=Ai})(_E,_E.exports);var X8e=_E.exports;const gye=Jo(X8e);function Z8e(i,e,t){let n=[];i.filterProperties.length&&i.filterProperties.forEach(s=>{const o={},a=u=>s.format==="date"?ff(u).unix():parseInt(u,10);e.forEach(u=>{var c;if(s.type==="range"){if(Array.isArray(u[s.key])){const h=[a(u[s.key][0]),a(u[s.key][1])];o.min=o.min!==void 0?Math.min(o.min,h[0]):h[0],o.max=o.max!==void 0?Math.max(o.max,h[1]):h[1]}else{const h=a(u[s.key]);o.min=o.min!==void 0?Math.min(o.min,h):h,o.max=o.max!==void 0?Math.max(o.max,h):h}return}Array.isArray(u[s.key])?u[s.key].forEach(h=>{o[h]=void 0}):s.type==="spatial"?(o.geometry=void 0,o.mode=s.mode||"intersects"):(c=s.key)!=null&&c.includes(".")?pye(gye(t.items,s.key)).filter(h=>h).forEach(h=>{o[h]=void 0}):o[u[s.key]]=void 0});const l=s.key||s.keys.join("|");t.filters[l]=Object.assign({type:s.type||"multiselect",dirty:s.state?!1:void 0,key:l},s.type==="range"?{min:o.min,max:o.max,format:s.format}:{},s),t.filters[l].state=Object.assign({},o,s.state)}),i.matchAllWhenEmpty!==!1&&(t.results=t.sortResults(e),t.requestUpdate()),i.aggregateResults&&(n=Array.from(new Set(e.reduce((s,o)=>s.concat(o[i.aggregateResults]),[]))).sort((s,o)=>s.localeCompare(o)));const r=[];return Object.values(t.filters).forEach(s=>{s.type==="text"?s.keys.forEach(o=>{r.includes(o)||r.push(o)}):(s.type==="select"||s.type==="multiselect")&&(r.includes(s.key)||r.push(s.key))}),_6e(e,Object.assign({keys:r},i.fuseConfig)),n}async function K8e(i,e,t){let n;t.externalFilter?n=await C6e(e,t.filters,i):n=await x6e(e,t.filters,i),t.results=t.sortResults(n)}function J8e(i,e,t){const n=`filter-${i.key}`.replace("|","-");switch(i.type){case"text":return nt`{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,idProperty:"id",titleProperty:"title",subTitleProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0}),Hue=["aggregateResults","autoSpreadSingle","enableHighlighting","externalFilter","filterProperties","fuseConfig","inlineMode","matchAllWhenEmpty","showResults","titleProperty","subTitleProperty","idProperty","expandMultipleFilters","expandResults","expandMultipleResults","items"];var e8e=200,iL="__lodash_hash_undefined__",t8e=1/0,i8e="[object Function]",n8e="[object GeneratorFunction]",r8e=/[\\^$.*+?()[\]{}|]/g,s8e=/^\[object .+?Constructor\]$/,o8e=typeof rr=="object"&&rr&&rr.Object===Object&&rr,a8e=typeof self=="object"&&self&&self.Object===Object&&self,nL=o8e||a8e||Function("return this")();function l8e(i,e){var t=i?i.length:0;return!!t&&c8e(i,e,0)>-1}function u8e(i,e,t,n){for(var r=i.length,s=t+-1;++s-1}function M8e(i,e){var t=this.__data__,n=pS(t,i);return n<0?t.push([i,e]):t[n][1]=e,this}Ey.prototype.clear=T8e;Ey.prototype.delete=A8e;Ey.prototype.get=k8e;Ey.prototype.has=D8e;Ey.prototype.set=M8e;function Cy(i){var e=-1,t=i?i.length:0;for(this.clear();++e=e8e){var u=j8e(i);if(u)return cye(u);o=!1,r=d8e,l=new vE}else l=a;e:for(;++n-1}function ii(te,we){var qe=this.__data__,wt=gn(qe,te);return wt<0?qe.push([te,we]):qe[wt][1]=we,this}ye.prototype.clear=Me,ye.prototype.delete=ot,ye.prototype.get=Qe,ye.prototype.has=Tt,ye.prototype.set=ii;function ai(te){var we=-1,qe=te?te.length:0;for(this.clear();++weEn))return!1;var Xr=zt.get(te);if(Xr&&zt.get(we))return Xr==we;var xs=-1,_r=!0,Lr=ei&s?new Ot:void 0;for(zt.set(te,we),zt.set(we,te);++xs-1&&te%1==0&&te-1&&te%1==0&&te<=l}function Fr(te){var we=typeof te;return!!te&&(we=="object"||we=="function")}function Nr(te){return!!te&&typeof te=="object"}function Eo(te){return typeof te=="symbol"||Nr(te)&&Ee.call(te)==M}var Vn=Ni?L(Ni):lo;function sa(te){return te==null?"":co(te)}function pu(te,we,qe){var wt=te==null?void 0:cs(te,we);return wt===void 0?qe:wt}function za(te,we){return te!=null&&vs(te,we,so)}function Ua(te){return tn(te)?Fn(te):uo(te)}function Ku(te){return te}function gu(te){return fo(te)?ae(Xt(te)):Ns(te)}i.exports=Ai})(_E,_E.exports);var X8e=_E.exports;const gye=Jo(X8e);function Z8e(i,e,t){let n=[];i.filterProperties.length&&i.filterProperties.forEach(s=>{const o={},a=u=>s.format==="date"?ff(u).unix():parseFloat(u);e.forEach(u=>{var c;if(s.type==="range"){if(Array.isArray(u[s.key])){const h=[a(u[s.key][0]),a(u[s.key][1])];o.min=o.min!==void 0?Math.min(o.min,h[0]):h[0],o.max=o.max!==void 0?Math.max(o.max,h[1]):h[1]}else{const h=a(u[s.key]);o.min=o.min!==void 0?Math.min(o.min,h):h,o.max=o.max!==void 0?Math.max(o.max,h):h}return}Array.isArray(u[s.key])?u[s.key].forEach(h=>{o[h]=void 0}):s.type==="spatial"?(o.geometry=void 0,o.mode=s.mode||"intersects"):(c=s.key)!=null&&c.includes(".")?pye(gye(t.items,s.key)).filter(h=>h).forEach(h=>{o[h]=void 0}):o[u[s.key]]=void 0});const l=s.key||s.keys.join("|");t.filters[l]=Object.assign({type:s.type||"multiselect",dirty:s.state?!1:void 0,key:l},s.type==="range"?{min:o.min,max:o.max,format:s.format}:{},s),t.filters[l].state=Object.assign({},o,s.state)}),i.matchAllWhenEmpty!==!1&&(t.results=t.sortResults(e),t.requestUpdate()),i.aggregateResults&&(n=Array.from(new Set(e.reduce((s,o)=>s.concat(o[i.aggregateResults]),[]))).sort((s,o)=>s.localeCompare(o)));const r=[];return Object.values(t.filters).forEach(s=>{s.type==="text"?s.keys.forEach(o=>{r.includes(o)||r.push(o)}):(s.type==="select"||s.type==="multiselect")&&(r.includes(s.key)||r.push(s.key))}),_6e(e,Object.assign({keys:r},i.fuseConfig)),n}async function K8e(i,e,t){let n;t.externalFilter?n=await C6e(e,t.filters,i):n=await x6e(e,t.filters,i),t.results=t.sortResults(n)}function J8e(i,e,t){const n=`filter-${i.key}`.replace("|","-");switch(i.type){case"text":return nt`{u.getState()=="ready"&&(u.removeEventListener("change",h),this.changed())};u.addEventListener("change",h)}s=s&&c=="ready"}const o=this.renderSources(e,r);if(this.getRenderer().renderComplete&&s)return this.renderedResolution_=n.resolution,o;if(this.renderedResolution_>.5*n.resolution){const a=this.getSources(e.extent,this.renderedResolution_).filter(l=>!r.includes(l));if(a.length>0)return this.renderSources(e,a)}return o}setStyle(e){if(this.styleVariables_=e.variables||{},this.style_=e,this.hasRenderer()){const t=Vhe(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,paletteTextures:t.paletteTextures}),this.changed()}}updateStyleVariables(e){Object.assign(this.styleVariables_,e),this.changed()}}oC.prototype.dispose;const pJe=Object.freeze(Object.defineProperty({__proto__:null,Graticule:iKe,Group:$l,Heatmap:KKe,Image:KS,Layer:Sg,Tile:v_,Vector:Xh,VectorImage:iJe,VectorTile:NR,WebGLPoints:fJe,WebGLTile:oC},Symbol.toStringTag,{value:"Module"}));class JS extends YS{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const e=this.peekFirstKey(),n=IKe(e)[0];this.forEach(r=>{r.tileCoord[0]!==n&&(this.remove(Bd(r.tileCoord)),r.release())})}}const x0={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Am=[0,0,0],Dd=5;class Df{constructor(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,sn($ze(this.resolutions_,(r,s)=>s-r),"`resolutions` must be sorted in descending order");let t;if(!e.origins){for(let r=0,s=this.resolutions_.length-1;r{const o=new XS(Math.min(0,r[0]),Math.max(r[0]-1,-1),Math.min(0,r[1]),Math.max(r[1]-1,-1));if(n){const a=this.getTileRangeForExtentAndZ(n,s);o.minX=Math.max(a.minX,o.minX),o.maxX=Math.min(a.maxX,o.maxX),o.minY=Math.max(a.minY,o.minY),o.maxY=Math.min(a.maxY,o.maxY)}return o}):n&&this.calculateTileRanges_(n)}forEachTileCoord(e,t,n){const r=this.getTileRangeForExtentAndZ(e,t);for(let s=r.minX,o=r.maxX;s<=o;++s)for(let a=r.minY,l=r.maxY;a<=l;++a)n([t,s,a])}forEachTileCoordParentTileRange(e,t,n,r){let s,o,a,l=null,u=e[0]-1;for(this.zoomFactor_===2?(o=e[1],a=e[2]):l=this.getTileCoordExtent(e,r);u>=this.minZoom;){if(o!==void 0&&a!==void 0?(o=Math.floor(o/2),a=Math.floor(a/2),s=Cm(o,o,a,a,n)):s=this.getTileRangeForExtentAndZ(l,u,n),t(u,s))return!0;--u}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,n){if(e[0]this.maxZoom||t0?S=t.find(function(T){return E[c]==T[u]?!0:E[c].includes(":")?!1:i[c]+":"+E[c]===T[u]}):S=!0,S){r.push(E[c]);const T=E[h]*28e-5/v,D=E[p],M=E[g];_?s.push([E[d][1],E[d][0]]):s.push(E[d]),n.push(T),o.push(D==M?D:[D,M]),a.push([E.MatrixWidth,E.MatrixHeight])}}),new p_e({extent:e,origins:s,resolutions:n,matrixIds:r,tileSizes:o,sizes:a})}function zR(i){let e=i.getDefaultTileGrid();return e||(e=bJe(i),i.setDefaultTileGrid(e)),e}function mJe(i,e,t){const n=e[0],r=i.getTileCoordCenter(e),s=Zh(t);if(!Ml(s,r)){const o=Mi(s),a=Math.ceil((s[0]-r[0])/o);return r[0]+=o*a,i.getTileCoordForCoordAndZ(r,n)}return e}function yJe(i,e,t,n){n=n!==void 0?n:"top-left";const r=g_e(i,e,t);return new Df({extent:i,origin:e7e(i,n),resolutions:r,tileSize:t})}function Mf(i){const e=i||{},t=e.extent||Mt("EPSG:3857").getExtent(),n={extent:t,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:g_e(t,e.maxZoom,e.tileSize,e.maxResolution)};return new Df(n)}function g_e(i,e,t,n){e=e!==void 0?e:jbe,t=jr(t!==void 0?t:H0);const r=Ir(i),s=Mi(i);n=n>0?n:Math.max(s/t[0],r/t[1]);const o=e+1,a=new Array(o);for(let l=0;lthis.getTileInternal(b,v,_,E,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return m.key=h,u?a.replace(c,m):a.set(c,m),m}getTileInternal(e,t,n,r,s){const o=Nh(e,t,n),a=this.getKey();if(!this.tileCache.containsKey(o)){const u=this.createTile_(e,t,n,r,s,a);return this.tileCache.set(o,u),u}let l=this.tileCache.get(o);return l.key!=a&&(l=this.createTile_(e,t,n,r,s,a),this.tileCache.replace(o,l)),l}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(e,t){const n=Mt(e);if(n){const r=Kt(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}}function TJe(i,e){i.getImage().src=e}function AJe(i){const e=i[0],t=new Array(e);let n=1<>=1;return t.join("")}const kJe='Terms of Use';class DJe extends fu{constructor(e){const t=e.hidpi!==void 0?e.hidpi:!1;super({cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:e.interpolate,projection:Mt("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:t?2:1,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.hidpi_=t,this.culture_=e.culture!==void 0?e.culture:"en-us",this.maxZoom_=e.maxZoom!==void 0?e.maxZoom:-1,this.apiKey_=e.key,this.imagerySet_=e.imagerySet,this.placeholderTiles_=e.placeholderTiles;const n="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+this.apiKey_+"&c="+this.culture_;fetch(n).then(r=>r.json()).then(r=>this.handleImageryMetadataResponse(r))}getApiKey(){return this.apiKey_}getImagerySet(){return this.imagerySet_}handleImageryMetadataResponse(e){if(e.statusCode!=200||e.statusDescription!="OK"||e.authenticationResultCode!="ValidCredentials"||e.resourceSets.length!=1||e.resourceSets[0].resources.length!=1){this.setState("error");return}const t=e.resourceSets[0].resources[0],n=this.maxZoom_==-1?t.zoomMax:this.maxZoom_,r=this.getProjection(),s=Zh(r),o=this.hidpi_?2:1,a=t.imageWidth==t.imageHeight?t.imageWidth/o:[t.imageWidth/o,t.imageHeight/o],l=Mf({extent:s,minZoom:t.zoomMin,maxZoom:n,tileSize:a});this.tileGrid=l;const u=this.culture_,c=this.hidpi_,h=this.placeholderTiles_;if(this.tileUrlFunction=ny(t.imageUrlSubdomains.map(function(d){const p=[0,0,0],g=t.imageUrl.replace("{subdomain}",d).replace("{culture}",u);return function(m,b,v){if(!m)return;dg(m[0],m[1],m[2],p);const _=new URL(g.replace("{quadkey}",AJe(p))),E=_.searchParams;return c&&(E.set("dpi","d1"),E.set("device","mobile")),h===!0?E.delete("n"):h===!1&&E.set("n","z"),_.toString()}})),t.imageryProviders){const d=Vh(Mt("EPSG:4326"),this.getProjection());this.setAttributions(p=>{const g=[],m=p.viewState,b=this.getTileGrid(),v=b.getZForResolution(m.resolution,this.zDirection),E=b.getTileCoordForCoordAndZ(m.center,v)[0];return t.imageryProviders.map(function(S){let T=!1;const D=S.coverageAreas;for(let M=0,A=D.length;M=I.zoomMin&&E<=I.zoomMax){const P=I.bbox,U=[P[1],P[0],P[3],P[2]],Z=X0(U,d);if(Or(Z,p.extent)){T=!0;break}}}T&&g.push(S.attribution)}),g.push(kJe),g})}this.setState("ready")}}const MJe=DJe;class yf extends fu{constructor(e){e=e||{};const t=e.projection!==void 0?e.projection:"EPSG:3857",n=e.tileGrid!==void 0?e.tileGrid:Mf({extent:Zh(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter!==void 0?e.gutter:0}getGutter(){return this.gutter_}}class LJe extends yf{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,maxZoom:e.maxZoom!==void 0?e.maxZoom:18,minZoom:e.minZoom,projection:e.projection,transition:e.transition,wrapX:e.wrapX,zDirection:e.zDirection}),this.account_=e.account,this.mapId_=e.map||"",this.config_=e.config||{},this.templateCache_={},this.initializeMap_()}getConfig(){return this.config_}updateConfig(e){Object.assign(this.config_,e),this.initializeMap_()}setConfig(e){this.config_=e||{},this.initializeMap_()}initializeMap_(){const e=JSON.stringify(this.config_);if(this.templateCache_[e]){this.applyTemplate_(this.templateCache_[e]);return}let t="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(t+="/named/"+this.mapId_);const n=new XMLHttpRequest;n.addEventListener("load",this.handleInitResponse_.bind(this,e)),n.addEventListener("error",this.handleInitError_.bind(this)),n.open("POST",t),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(this.config_))}handleInitResponse_(e,t){const n=t.target;if(!n.status||n.status>=200&&n.status<300){let r;try{r=JSON.parse(n.responseText)}catch{this.setState("error");return}this.applyTemplate_(r),this.templateCache_[e]=r,this.setState("ready")}else this.setState("error")}handleInitError_(e){this.setState("error")}applyTemplate_(e){const t="https://"+e.cdn_url.https+"/"+this.account_+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(t)}}const RJe=LJe;class IJe extends kf{constructor(e){e=e||{},super({attributions:e.attributions,wrapX:e.wrapX}),this.resolution=void 0,this.distance=e.distance!==void 0?e.distance:20,this.minDistance=e.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=e.geometryFunction||function(t){const n=t.getGeometry();return sn(!n||n.getType()==="Point","The default `geometryFunction` can only handle `Point` or null geometries"),n},this.createCustomCluster_=e.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(e.source||null)}clear(e){this.features.length=0,super.clear(e)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(e,t,n){var r;(r=this.source)==null||r.loadFeatures(e,t,n),t!==this.resolution&&(this.resolution=t,this.refresh())}setDistance(e){this.updateDistance(e,this.minDistance)}setMinDistance(e){this.updateDistance(this.distance,e)}getMinDistance(){return this.minDistance}setSource(e){this.source&&this.source.removeEventListener(Wt.CHANGE,this.boundRefresh_),this.source=e,e&&e.addEventListener(Wt.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(e,t){const n=e===0?0:Math.min(t,e)/e,r=e!==this.distance||this.interpolationRatio!==n;this.distance=e,this.minDistance=t,this.interpolationRatio=n,r&&this.refresh()}cluster(){if(this.resolution===void 0||!this.source)return;const e=Ko(),t=this.distance*this.resolution,n=this.source.getFeatures(),r={};for(let s=0,o=n.length;s=0;--a){const l=this.geometryFunction(e[a]);l?qbe(n,l.getCoordinates()):e.splice(a,1)}Vbe(n,1/e.length);const r=Oo(t),s=this.interpolationRatio,o=new Hr([n[0]*(1-s)+r[0]*s,n[1]*(1-s)+r[1]*s]);return this.createCustomCluster_?this.createCustomCluster_(o,e):new Dr({geometry:o,features:e})}}const OJe=IJe;class eT extends Gy{constructor(e){const t=e.projection===void 0?"EPSG:3857":e.projection;let n=e.tileGrid;n===void 0&&t&&(n=Mf({extent:Zh(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),super({cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:t,tileGrid:n,state:e.state,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key}),this.gutter_=e.gutter!==void 0?e.gutter:0,this.tileSize_=e.tileSize?jr(e.tileSize):null,this.tileSizes_=null,this.tileLoadingKeys_={},this.loader_=e.loader,this.handleTileChange_=this.handleTileChange_.bind(this),this.bandCount=e.bandCount===void 0?4:e.bandCount,this.tileGridForProjection_={},this.tileCacheForProjection_={},this.crossOrigin_=e.crossOrigin||"anonymous"}setTileSizes(e){this.tileSizes_=e}getTileSize(e){if(this.tileSizes_)return this.tileSizes_[e];if(this.tileSize_)return this.tileSize_;const t=this.getTileGrid();return t?jr(t.getTileSize(e)):[256,256]}getGutterForProjection(e){const t=this.getProjection();return!t||va(t,e)?this.gutter_:0}setLoader(e){this.loader_=e}getReprojTile_(e,t,n,r,s){const o=this.getTileCacheForProjection(r),a=Nh(e,t,n);if(o.containsKey(a)){const b=o.get(a);if(b&&b.key==this.getKey())return b}const l=this.getTileGrid(),u=Math.max.apply(null,l.getResolutions().map((b,v)=>{const _=jr(l.getTileSize(v)),E=this.getTileSize(v);return Math.max(E[0]/_[0],E[1]/_[1])})),c=this.getTileGridForProjection(s),h=this.getTileGridForProjection(r),d=[e,t,n],p=this.getTileCoordForTileUrlFunction(d,r),g=Object.assign({sourceProj:s,sourceTileGrid:c,targetProj:r,targetTileGrid:h,tileCoord:d,wrappedTileCoord:p,pixelRatio:u,gutter:this.getGutterForProjection(s),getTileFunction:(b,v,_,E)=>this.getTile(b,v,_,E,s)},this.tileOptions),m=new WS(g);return m.key=this.getKey(),m}getTile(e,t,n,r,s){const o=this.getProjection();if(o&&s&&!va(o,s))return this.getReprojTile_(e,t,n,s,o);const a=this.getTileSize(e),l=Nh(e,t,n);if(this.tileCache.containsKey(l))return this.tileCache.get(l);const u=this.loader_,c=new AbortController,h={signal:c.signal,crossOrigin:this.crossOrigin_},d=this.getTileCoordForTileUrlFunction([e,t,n]);if(!d)return null;const p=d[0],g=d[1],m=d[2];function b(){return mL(function(){return u(p,g,m,h)})}const v=Object.assign({tileCoord:[e,t,n],loader:b,size:a,controller:c},this.tileOptions),_=new y_(v);return _.key=this.getKey(),_.addEventListener(Wt.CHANGE,this.handleTileChange_),this.tileCache.set(l,_),_}handleTileChange_(e){const t=e.target,n=Kt(t),r=t.getState();let s;r==dt.LOADING?(this.tileLoadingKeys_[n]=!0,s=x0.TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],s=r==dt.ERROR?x0.TILELOADERROR:r==dt.LOADED?x0.TILELOADEND:void 0),s&&this.dispatchEvent(new m_e(s,t))}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||va(t,e)))return this.tileGrid;const n=Kt(e);return n in this.tileGridForProjection_||(this.tileGridForProjection_[n]=zR(e)),this.tileGridForProjection_[n]}setTileGridForProjection(e,t){const n=Mt(e);if(n){const r=Kt(n);r in this.tileGridForProjection_||(this.tileGridForProjection_[r]=t)}}getTileCacheForProjection(e){const t=this.getProjection();if(!t||va(t,e))return this.tileCache;const n=Kt(e);return n in this.tileCacheForProjection_||(this.tileCacheForProjection_[n]=new JS(.1)),this.tileCacheForProjection_[n]}expireCache(e,t){const n=this.getTileCacheForProjection(e);this.tileCache.expireCache(this.tileCache==n?t:{});for(const r in this.tileCacheForProjection_){const s=this.tileCacheForProjection_[r];s.expireCache(s==n?t:{})}}clear(){super.clear();for(const e in this.tileCacheForProjection_)this.tileCacheForProjection_[e].clear()}}function ia(i){return(e,...t)=>PJe(i,e,t)}function qy(i,e){return ia(b_e(i,e).get)}const{apply:PJe,construct:Dyt,defineProperty:Myt,get:Lyt,getOwnPropertyDescriptor:b_e,getPrototypeOf:HR,has:Ryt,ownKeys:FJe,set:Iyt,setPrototypeOf:Oyt}=Reflect,{iterator:xx,species:Pyt,toStringTag:NJe,for:Fyt}=Symbol,$Je=Object,{create:VR,defineProperty:BJe,freeze:Nyt,is:$yt}=$Je,jJe=Array,zJe=jJe.prototype,v_e=zJe[xx],UJe=ia(v_e),__e=ArrayBuffer,GJe=__e.prototype;qy(GJe,"byteLength");const Whe=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:null;Whe&&qy(Whe.prototype,"byteLength");const x_e=HR(Uint8Array);x_e.from;const ja=x_e.prototype;ja[xx];ia(ja.keys);ia(ja.values);ia(ja.entries);ia(ja.set);ia(ja.reverse);ia(ja.fill);ia(ja.copyWithin);ia(ja.sort);ia(ja.slice);ia(ja.subarray);qy(ja,"buffer");qy(ja,"byteOffset");qy(ja,"length");qy(ja,NJe);const qJe=Uint8Array,w_e=Uint16Array,WR=Uint32Array,HJe=Float32Array,__=HR([][xx]()),E_e=ia(__.next),VJe=ia(function*(){}().next),WJe=HR(__),YJe=DataView.prototype,XJe=ia(YJe.getUint16),YR=WeakMap,C_e=YR.prototype,S_e=ia(C_e.get),ZJe=ia(C_e.set),T_e=new YR,KJe=VR(null,{next:{value:function(){const e=S_e(T_e,this);return E_e(e)}},[xx]:{value:function(){return this}}});function JJe(i){if(i[xx]===v_e&&__.next===E_e)return i;const e=VR(KJe);return ZJe(T_e,e,UJe(i)),e}const QJe=new YR,eQe=VR(WJe,{next:{value:function(){const e=S_e(QJe,this);return VJe(e)},writable:!0,configurable:!0}});for(const i of FJe(__))i!=="next"&&BJe(eQe,i,b_e(__,i));const A_e=new __e(4),tQe=new HJe(A_e),iQe=new WR(A_e),lc=new w_e(512),uc=new qJe(512);for(let i=0;i<256;++i){const e=i-127;e<-24?(lc[i]=0,lc[i|256]=32768,uc[i]=24,uc[i|256]=24):e<-14?(lc[i]=1024>>-e-14,lc[i|256]=1024>>-e-14|32768,uc[i]=-e-1,uc[i|256]=-e-1):e<=15?(lc[i]=e+15<<10,lc[i|256]=e+15<<10|32768,uc[i]=13,uc[i|256]=13):e<128?(lc[i]=31744,lc[i|256]=64512,uc[i]=24,uc[i|256]=24):(lc[i]=31744,lc[i|256]=64512,uc[i]=13,uc[i|256]=13)}const XR=new WR(2048);for(let i=1;i<1024;++i){let e=i<<13,t=0;for(;!(e&8388608);)e<<=1,t-=8388608;e&=-8388609,t+=947912704,XR[i]=e|t}for(let i=1024;i<2048;++i)XR[i]=939524096+(i-1024<<13);const Hy=new WR(64);for(let i=1;i<31;++i)Hy[i]=i<<23;Hy[31]=1199570944;Hy[32]=2147483648;for(let i=33;i<63;++i)Hy[i]=2147483648+(i-32<<23);Hy[63]=3347054592;const k_e=new w_e(64);for(let i=1;i<64;++i)i!==32&&(k_e[i]=1024);function nQe(i){const e=i>>10;return iQe[0]=XR[k_e[e]+(i&1023)]+Hy[e],tQe[0]}function D_e(i,e,...t){return nQe(XJe(i,e,...JJe(t)))}var ZR={exports:{}};function M_e(i,e,t){const n=t&&t.debug||!1;n&&console.log("[xml-utils] getting "+e+" in "+i);const r=typeof i=="object"?i.outer:i,s=r.slice(0,r.indexOf(">")+1),o=['"',"'"];for(let a=0;a/]`,s);if(n&&console.log("[xml-utils] start:",o),o===-1)return;const a=i.slice(o+e.length);let l=jA(a,"^[^<]*[ /]>",0);const u=l!==-1&&a[l-1]==="/";if(n&&console.log("[xml-utils] selfClosing:",u),u===!1)if(r){let p=0,g=1,m=0;for(;(l=jA(a,"[ /]"+e+">",p))!==-1;){const b=a.substring(p,l+1);if(g+=Yhe(b,"<"+e+`[ - >]`),m+=Yhe(b,""),m>=g)break;p=l}}else l=jA(a,"[ /]"+e+">",0);const c=o+e.length+l+1;if(n&&console.log("[xml-utils] end:",c),c===-1)return;const h=i.slice(o,c);let d;return u?d=null:d=h.slice(h.indexOf(">")+1,h.lastIndexOf("<")),{inner:d,outer:h,start:o,end:c}}JR.exports=O_e;JR.exports.default=O_e;var uQe=JR.exports;const cQe=uQe;function P_e(i,e,t){const n=[],r=t&&t.debug||!1,s=t&&typeof t.nested=="boolean"?t.nested:!0;let o=t&&t.startIndex||0,a;for(;a=cQe(i,e,{debug:r,startIndex:o});)s?o=a.start+1+e.length:o=a.end,n.push(a);return r&&console.log("findTagsByName found",n.length,"tags"),n}KR.exports=P_e;KR.exports.default=P_e;var hQe=KR.exports;const dQe=Jo(hQe),F1={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},hc={};for(const i in F1)F1.hasOwnProperty(i)&&(hc[F1[i]]=parseInt(i,10));const fQe=[hc.BitsPerSample,hc.ExtraSamples,hc.SampleFormat,hc.StripByteCounts,hc.StripOffsets,hc.StripRowCounts,hc.TileByteCounts,hc.TileOffsets,hc.SubIFDs],zA={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},vn={};for(const i in zA)zA.hasOwnProperty(i)&&(vn[zA[i]]=parseInt(i,10));const Xa={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},pQe={Unspecified:0,Assocalpha:1,Unassalpha:2},Byt={Version:0,AddCompression:1},jyt={None:0,Deflate:1,Zstandard:2},gQe={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function mQe(i,e){const{width:t,height:n}=i,r=new Uint8Array(t*n*3);let s;for(let o=0,a=0;o>24,l=i[r+2]<<24>>24;let u=(o+16)/116,c=a/500+u,h=u-l/200,d,p,g;c=xQe*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),u=wQe*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),h=EQe*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),d=c*3.2406+u*-1.5372+h*-.4986,p=c*-.9689+u*1.8758+h*.0415,g=c*.0557+u*-.204+h*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:12.92*d,p=p>.0031308?1.055*p**(1/2.4)-.055:12.92*p,g=g>.0031308?1.055*g**(1/2.4)-.055:12.92*g,n[s]=Math.max(0,Math.min(1,d))*255,n[s+1]=Math.max(0,Math.min(1,p))*255,n[s+2]=Math.max(0,Math.min(1,g))*255}return n}const F_e=new Map;function Lf(i,e){Array.isArray(i)||(i=[i]),i.forEach(t=>F_e.set(t,e))}async function N_e(i){const e=F_e.get(i.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${i.Compression}`);const t=await e();return new t(i)}Lf([void 0,1],()=>xf(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1]),import.meta.url).then(i=>i.default));Lf(5,()=>xf(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1]),import.meta.url).then(i=>i.default));Lf(6,()=>{throw new Error("old style JPEG compression is not supported.")});Lf(7,()=>xf(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1]),import.meta.url).then(i=>i.default));Lf([8,32946],()=>xf(()=>import("./deflate-CUkHh1nh.js"),__vite__mapDeps([4,5,1]),import.meta.url).then(i=>i.default));Lf(32773,()=>xf(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([6,1]),import.meta.url).then(i=>i.default));Lf(34887,()=>xf(()=>import("./lerc-BICoda3J.js"),__vite__mapDeps([7,5,8,1,9,10,11,12,13,14,15,16,17]),import.meta.url).then(async i=>(await i.zstd.init(),i)).then(i=>i.default));Lf(50001,()=>xf(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([18,1]),import.meta.url).then(i=>i.default));function tT(i,e,t,n=1){return new(Object.getPrototypeOf(i)).constructor(e*t*n)}function SQe(i,e,t,n,r){const s=e/n,o=t/r;return i.map(a=>{const l=tT(a,n,r);for(let u=0;u{const l=tT(a,n,r);for(let u=0;u>8-r-D&h;else if(D+r<=16)c[S]=a.getUint16(T)>>16-r-D&h;else if(D+r<=24){const M=a.getUint16(T)<<8|a.getUint8(T+2);c[S]=M>>24-r-D&h}else c[S]=a.getUint32(T)>>32-r-D&h}}}}return c.buffer}class $_e{constructor(e,t,n,r,s,o){this.fileDirectory=e,this.geoKeys=t,this.dataView=n,this.littleEndian=r,this.tiles=s?{}:null,this.isTiled=!e.StripOffsets;const a=e.PlanarConfiguration;if(this.planarConfiguration=typeof a>"u"?1:a,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel<"u"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip<"u"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}getBytesPerPixel(){let e=0;for(let t=0;t=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${e} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}getReaderForSample(e){const t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,n=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(n<=8)return DataView.prototype.getUint8;if(n<=16)return DataView.prototype.getUint16;if(n<=32)return DataView.prototype.getUint32;break;case 2:if(n<=8)return DataView.prototype.getInt8;if(n<=16)return DataView.prototype.getInt16;if(n<=32)return DataView.prototype.getInt32;break;case 3:switch(n){case 16:return function(r,s){return D_e(this,r,s)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(e=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}getBitsPerSample(e=0){return this.fileDirectory.BitsPerSample[e]}getArrayForSample(e,t){const n=this.getSampleFormat(e),r=this.getBitsPerSample(e);return XD(n,r,t)}async getTileOrStrip(e,t,n,r,s){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:u}=this;this.planarConfiguration===1?l=t*o+e:this.planarConfiguration===2&&(l=n*o*a+t*o+e);let c,h;this.isTiled?(c=this.fileDirectory.TileOffsets[l],h=this.fileDirectory.TileByteCounts[l]):(c=this.fileDirectory.StripOffsets[l],h=this.fileDirectory.StripByteCounts[l]);const d=(await this.source.fetch([{offset:c,length:h}],s))[0];let p;return u===null||!u[l]?(p=(async()=>{let g=await r.decode(this.fileDirectory,d);const m=this.getSampleFormat(),b=this.getBitsPerSample();return RQe(m,b)&&(g=IQe(g,m,this.planarConfiguration,this.getSamplesPerPixel(),b,this.getTileWidth(),this.getBlockHeight(t))),g})(),u!==null&&(u[l]=p)):p=u[l],{x:e,y:t,sample:n,data:await p}}async _readRaster(e,t,n,r,s,o,a,l,u){const c=this.getTileWidth(),h=this.getTileHeight(),d=this.getWidth(),p=this.getHeight(),g=Math.max(Math.floor(e[0]/c),0),m=Math.min(Math.ceil(e[2]/c),Math.ceil(d/c)),b=Math.max(Math.floor(e[1]/h),0),v=Math.min(Math.ceil(e[3]/h),Math.ceil(p/h)),_=e[2]-e[0];let E=this.getBytesPerPixel();const S=[],T=[];for(let A=0;A{const H=$.data,V=new DataView(H),K=this.getBlockHeight($.y),J=$.y*h,Q=$.x*c,fe=J+K,ee=($.x+1)*c,z=T[Z],re=Math.min(K,K-(fe-e[3]),p-J),ve=Math.min(c,c-(ee-e[2]),d-Q);for(let ze=Math.max(0,e[1]-J);zec[2]||c[1]>c[3])throw new Error("Invalid subsets");const h=c[2]-c[0],d=c[3]-c[1],p=h*d,g=this.getSamplesPerPixel();if(!t||!t.length)for(let _=0;_=g)return Promise.reject(new RangeError(`Invalid sample index '${t[_]}'.`));let m;if(n){const _=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,E=Math.max.apply(null,this.fileDirectory.BitsPerSample);m=XD(_,E,p*t.length),l&&m.fill(l)}else{m=[];for(let _=0;_u[2]||u[1]>u[3])throw new Error("Invalid subsets");const c=this.fileDirectory.PhotometricInterpretation;if(c===Xa.RGB){let v=[0,1,2];if(this.fileDirectory.ExtraSamples!==pQe.Unspecified&&a){v=[];for(let _=0;_BA(s,"sample")===void 0):r=r.filter(s=>Number(BA(s,"sample"))===e);for(let s=0;s[a+r*b+s*v,h+l*b+u*v]),g=p.map(b=>b[0]),m=p.map(b=>b[1]);return[Math.min(...g),Math.min(...m),Math.max(...g),Math.max(...m)]}else{const r=this.getOrigin(),s=this.getResolution(),o=r[0],a=r[1],l=o+s[0]*n,u=a+s[1]*t;return[Math.min(o,l),Math.min(a,u),Math.max(o,l),Math.max(a,u)]}}}class OQe{constructor(e){this._dataView=new DataView(e)}get buffer(){return this._dataView.buffer}getUint64(e,t){const n=this.getUint32(e,t),r=this.getUint32(e+4,t);let s;if(t){if(s=n+2**32*r,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}if(s=2**32*n+r,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}getInt64(e,t){let n=0;const r=(this._dataView.getUint8(e+(t?7:0))&128)>0;let s=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(e+(t?o:7-o));r&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),n+=a*256**o}return r&&(n=-n),n}getUint8(e,t){return this._dataView.getUint8(e,t)}getInt8(e,t){return this._dataView.getInt8(e,t)}getUint16(e,t){return this._dataView.getUint16(e,t)}getInt16(e,t){return this._dataView.getInt16(e,t)}getUint32(e,t){return this._dataView.getUint32(e,t)}getInt32(e,t){return this._dataView.getInt32(e,t)}getFloat16(e,t){return D_e(this._dataView,e,t)}getFloat32(e,t){return this._dataView.getFloat32(e,t)}getFloat64(e,t){return this._dataView.getFloat64(e,t)}}class PQe{constructor(e,t,n,r){this._dataView=new DataView(e),this._sliceOffset=t,this._littleEndian=n,this._bigTiff=r}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}readUint8(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}readInt8(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}readUint16(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}readInt16(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}readUint32(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}readInt32(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}readFloat32(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}readFloat64(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}readUint64(e){const t=this.readUint32(e),n=this.readUint32(e+4);let r;if(this._littleEndian){if(r=t+2**32*n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}if(r=2**32*t+n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}readInt64(e){let t=0;const n=(this._dataView.getUint8(e+(this._littleEndian?7:0))&128)>0;let r=!0;for(let s=0;s<8;s++){let o=this._dataView.getUint8(e+(this._littleEndian?s:7-s));n&&(r?o!==0&&(o=~(o-1)&255,r=!1):o=~o&255),t+=o*256**s}return n&&(t=-t),t}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}const FQe=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class NQe{constructor(e=FQe,t){this.workers=null,this._awaitingDecoder=null,this.size=e,this.messageId=0,e&&(this._awaitingDecoder=t?Promise.resolve(t):new Promise(n=>{xf(()=>import("./decoder-CaSv2t6h.js"),[],import.meta.url).then(r=>{n(r.create)})}),this._awaitingDecoder.then(n=>{this._awaitingDecoder=null,this.workers=[];for(let r=0;rn.decode(e,t)):new Promise(n=>{const r=this.workers.find(a=>a.idle)||this.workers[Math.floor(Math.random()*this.size)];r.idle=!1;const s=this.messageId++,o=a=>{a.data.id===s&&(r.idle=!0,n(a.data.decoded),r.worker.removeEventListener("message",o))};r.worker.addEventListener("message",o),r.worker.postMessage({fileDirectory:e,buffer:t,id:s},[t])})}destroy(){this.workers&&(this.workers.forEach(e=>{e.worker.terminate()}),this.workers=null)}}const Xhe=`\r + >]`),m+=Yhe(b,""),m>=g)break;p=l}}else l=jA(a,"[ /]"+e+">",0);const c=o+e.length+l+1;if(n&&console.log("[xml-utils] end:",c),c===-1)return;const h=i.slice(o,c);let d;return u?d=null:d=h.slice(h.indexOf(">")+1,h.lastIndexOf("<")),{inner:d,outer:h,start:o,end:c}}JR.exports=O_e;JR.exports.default=O_e;var uQe=JR.exports;const cQe=uQe;function P_e(i,e,t){const n=[],r=t&&t.debug||!1,s=t&&typeof t.nested=="boolean"?t.nested:!0;let o=t&&t.startIndex||0,a;for(;a=cQe(i,e,{debug:r,startIndex:o});)s?o=a.start+1+e.length:o=a.end,n.push(a);return r&&console.log("findTagsByName found",n.length,"tags"),n}KR.exports=P_e;KR.exports.default=P_e;var hQe=KR.exports;const dQe=Jo(hQe),F1={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},hc={};for(const i in F1)F1.hasOwnProperty(i)&&(hc[F1[i]]=parseInt(i,10));const fQe=[hc.BitsPerSample,hc.ExtraSamples,hc.SampleFormat,hc.StripByteCounts,hc.StripOffsets,hc.StripRowCounts,hc.TileByteCounts,hc.TileOffsets,hc.SubIFDs],zA={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},vn={};for(const i in zA)zA.hasOwnProperty(i)&&(vn[zA[i]]=parseInt(i,10));const Xa={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},pQe={Unspecified:0,Assocalpha:1,Unassalpha:2},Byt={Version:0,AddCompression:1},jyt={None:0,Deflate:1,Zstandard:2},gQe={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function mQe(i,e){const{width:t,height:n}=i,r=new Uint8Array(t*n*3);let s;for(let o=0,a=0;o>24,l=i[r+2]<<24>>24;let u=(o+16)/116,c=a/500+u,h=u-l/200,d,p,g;c=xQe*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),u=wQe*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),h=EQe*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),d=c*3.2406+u*-1.5372+h*-.4986,p=c*-.9689+u*1.8758+h*.0415,g=c*.0557+u*-.204+h*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:12.92*d,p=p>.0031308?1.055*p**(1/2.4)-.055:12.92*p,g=g>.0031308?1.055*g**(1/2.4)-.055:12.92*g,n[s]=Math.max(0,Math.min(1,d))*255,n[s+1]=Math.max(0,Math.min(1,p))*255,n[s+2]=Math.max(0,Math.min(1,g))*255}return n}const F_e=new Map;function Lf(i,e){Array.isArray(i)||(i=[i]),i.forEach(t=>F_e.set(t,e))}async function N_e(i){const e=F_e.get(i.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${i.Compression}`);const t=await e();return new t(i)}Lf([void 0,1],()=>xf(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1]),import.meta.url).then(i=>i.default));Lf(5,()=>xf(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1]),import.meta.url).then(i=>i.default));Lf(6,()=>{throw new Error("old style JPEG compression is not supported.")});Lf(7,()=>xf(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1]),import.meta.url).then(i=>i.default));Lf([8,32946],()=>xf(()=>import("./deflate-CUkHh1nh.js"),__vite__mapDeps([4,5,1]),import.meta.url).then(i=>i.default));Lf(32773,()=>xf(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([6,1]),import.meta.url).then(i=>i.default));Lf(34887,()=>xf(()=>import("./lerc-CpoBLLMY.js"),__vite__mapDeps([7,5,8,1,9,10,11,12,13,14,15,16,17]),import.meta.url).then(async i=>(await i.zstd.init(),i)).then(i=>i.default));Lf(50001,()=>xf(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([18,1]),import.meta.url).then(i=>i.default));function tT(i,e,t,n=1){return new(Object.getPrototypeOf(i)).constructor(e*t*n)}function SQe(i,e,t,n,r){const s=e/n,o=t/r;return i.map(a=>{const l=tT(a,n,r);for(let u=0;u{const l=tT(a,n,r);for(let u=0;u>8-r-D&h;else if(D+r<=16)c[S]=a.getUint16(T)>>16-r-D&h;else if(D+r<=24){const M=a.getUint16(T)<<8|a.getUint8(T+2);c[S]=M>>24-r-D&h}else c[S]=a.getUint32(T)>>32-r-D&h}}}}return c.buffer}class $_e{constructor(e,t,n,r,s,o){this.fileDirectory=e,this.geoKeys=t,this.dataView=n,this.littleEndian=r,this.tiles=s?{}:null,this.isTiled=!e.StripOffsets;const a=e.PlanarConfiguration;if(this.planarConfiguration=typeof a>"u"?1:a,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel<"u"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip<"u"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}getBytesPerPixel(){let e=0;for(let t=0;t=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${e} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}getReaderForSample(e){const t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,n=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(n<=8)return DataView.prototype.getUint8;if(n<=16)return DataView.prototype.getUint16;if(n<=32)return DataView.prototype.getUint32;break;case 2:if(n<=8)return DataView.prototype.getInt8;if(n<=16)return DataView.prototype.getInt16;if(n<=32)return DataView.prototype.getInt32;break;case 3:switch(n){case 16:return function(r,s){return D_e(this,r,s)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(e=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}getBitsPerSample(e=0){return this.fileDirectory.BitsPerSample[e]}getArrayForSample(e,t){const n=this.getSampleFormat(e),r=this.getBitsPerSample(e);return XD(n,r,t)}async getTileOrStrip(e,t,n,r,s){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:u}=this;this.planarConfiguration===1?l=t*o+e:this.planarConfiguration===2&&(l=n*o*a+t*o+e);let c,h;this.isTiled?(c=this.fileDirectory.TileOffsets[l],h=this.fileDirectory.TileByteCounts[l]):(c=this.fileDirectory.StripOffsets[l],h=this.fileDirectory.StripByteCounts[l]);const d=(await this.source.fetch([{offset:c,length:h}],s))[0];let p;return u===null||!u[l]?(p=(async()=>{let g=await r.decode(this.fileDirectory,d);const m=this.getSampleFormat(),b=this.getBitsPerSample();return RQe(m,b)&&(g=IQe(g,m,this.planarConfiguration,this.getSamplesPerPixel(),b,this.getTileWidth(),this.getBlockHeight(t))),g})(),u!==null&&(u[l]=p)):p=u[l],{x:e,y:t,sample:n,data:await p}}async _readRaster(e,t,n,r,s,o,a,l,u){const c=this.getTileWidth(),h=this.getTileHeight(),d=this.getWidth(),p=this.getHeight(),g=Math.max(Math.floor(e[0]/c),0),m=Math.min(Math.ceil(e[2]/c),Math.ceil(d/c)),b=Math.max(Math.floor(e[1]/h),0),v=Math.min(Math.ceil(e[3]/h),Math.ceil(p/h)),_=e[2]-e[0];let E=this.getBytesPerPixel();const S=[],T=[];for(let A=0;A{const H=$.data,V=new DataView(H),K=this.getBlockHeight($.y),J=$.y*h,Q=$.x*c,fe=J+K,ee=($.x+1)*c,z=T[Z],re=Math.min(K,K-(fe-e[3]),p-J),ve=Math.min(c,c-(ee-e[2]),d-Q);for(let ze=Math.max(0,e[1]-J);zec[2]||c[1]>c[3])throw new Error("Invalid subsets");const h=c[2]-c[0],d=c[3]-c[1],p=h*d,g=this.getSamplesPerPixel();if(!t||!t.length)for(let _=0;_=g)return Promise.reject(new RangeError(`Invalid sample index '${t[_]}'.`));let m;if(n){const _=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,E=Math.max.apply(null,this.fileDirectory.BitsPerSample);m=XD(_,E,p*t.length),l&&m.fill(l)}else{m=[];for(let _=0;_u[2]||u[1]>u[3])throw new Error("Invalid subsets");const c=this.fileDirectory.PhotometricInterpretation;if(c===Xa.RGB){let v=[0,1,2];if(this.fileDirectory.ExtraSamples!==pQe.Unspecified&&a){v=[];for(let _=0;_BA(s,"sample")===void 0):r=r.filter(s=>Number(BA(s,"sample"))===e);for(let s=0;s[a+r*b+s*v,h+l*b+u*v]),g=p.map(b=>b[0]),m=p.map(b=>b[1]);return[Math.min(...g),Math.min(...m),Math.max(...g),Math.max(...m)]}else{const r=this.getOrigin(),s=this.getResolution(),o=r[0],a=r[1],l=o+s[0]*n,u=a+s[1]*t;return[Math.min(o,l),Math.min(a,u),Math.max(o,l),Math.max(a,u)]}}}class OQe{constructor(e){this._dataView=new DataView(e)}get buffer(){return this._dataView.buffer}getUint64(e,t){const n=this.getUint32(e,t),r=this.getUint32(e+4,t);let s;if(t){if(s=n+2**32*r,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}if(s=2**32*n+r,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}getInt64(e,t){let n=0;const r=(this._dataView.getUint8(e+(t?7:0))&128)>0;let s=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(e+(t?o:7-o));r&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),n+=a*256**o}return r&&(n=-n),n}getUint8(e,t){return this._dataView.getUint8(e,t)}getInt8(e,t){return this._dataView.getInt8(e,t)}getUint16(e,t){return this._dataView.getUint16(e,t)}getInt16(e,t){return this._dataView.getInt16(e,t)}getUint32(e,t){return this._dataView.getUint32(e,t)}getInt32(e,t){return this._dataView.getInt32(e,t)}getFloat16(e,t){return D_e(this._dataView,e,t)}getFloat32(e,t){return this._dataView.getFloat32(e,t)}getFloat64(e,t){return this._dataView.getFloat64(e,t)}}class PQe{constructor(e,t,n,r){this._dataView=new DataView(e),this._sliceOffset=t,this._littleEndian=n,this._bigTiff=r}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}readUint8(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}readInt8(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}readUint16(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}readInt16(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}readUint32(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}readInt32(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}readFloat32(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}readFloat64(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}readUint64(e){const t=this.readUint32(e),n=this.readUint32(e+4);let r;if(this._littleEndian){if(r=t+2**32*n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}if(r=2**32*t+n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}readInt64(e){let t=0;const n=(this._dataView.getUint8(e+(this._littleEndian?7:0))&128)>0;let r=!0;for(let s=0;s<8;s++){let o=this._dataView.getUint8(e+(this._littleEndian?s:7-s));n&&(r?o!==0&&(o=~(o-1)&255,r=!1):o=~o&255),t+=o*256**s}return n&&(t=-t),t}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}const FQe=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class NQe{constructor(e=FQe,t){this.workers=null,this._awaitingDecoder=null,this.size=e,this.messageId=0,e&&(this._awaitingDecoder=t?Promise.resolve(t):new Promise(n=>{xf(()=>import("./decoder-CaSv2t6h.js"),[],import.meta.url).then(r=>{n(r.create)})}),this._awaitingDecoder.then(n=>{this._awaitingDecoder=null,this.workers=[];for(let r=0;rn.decode(e,t)):new Promise(n=>{const r=this.workers.find(a=>a.idle)||this.workers[Math.floor(Math.random()*this.size)];r.idle=!1;const s=this.messageId++,o=a=>{a.data.id===s&&(r.idle=!0,n(a.data.decoded),r.worker.removeEventListener("message",o))};r.worker.addEventListener("message",o),r.worker.postMessage({fileDirectory:e,buffer:t,id:s},[t])})}destroy(){this.workers&&(this.workers.forEach(e=>{e.worker.terminate()}),this.workers=null)}}const Xhe=`\r \r `;function B_e(i){if(typeof Object.fromEntries<"u")return Object.fromEntries(i);const e={};for(const[t,n]of i)e[t.toLowerCase()]=n;return e}function $Qe(i){const e=i.split(`\r `).map(t=>{const n=t.split(":").map(r=>r.trim());return n[0]=n[0].toLowerCase(),n});return B_e(e)}function BQe(i){const[e,...t]=i.split(";").map(r=>r.trim()),n=t.map(r=>r.split("="));return{type:e,params:B_e(n)}}function ZD(i){let e,t,n;return i&&([,e,t,n]=i.match(/bytes (\d+)-(\d+)\/(\d+)/),e=parseInt(e,10),t=parseInt(t,10),n=parseInt(n,10)),{start:e,end:t,total:n}}function jQe(i,e){let t=null;const n=new TextDecoder("ascii"),r=[],s=`--${e}`,o=`${s}--`;for(let a=0;a<10;++a)n.decode(new Uint8Array(i,a,s.length))===s&&(t=a);if(t===null)throw new Error("Could not find initial boundary");for(;tthis.fetchSlice(n,t)))}async fetchSlice(e){throw new Error(`fetching of slice ${e} not possible, not implemented`)}get fileSize(){return null}async close(){}}class zQe extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return typeof t.expiry=="number"&&t.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,t.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,t){if(this._deleteIfExpired(e,t)===!1)return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;this.cache.has(t)||this._deleteIfExpired(t,n)===!1&&(yield e)}for(const e of this.cache){const[t,n]=e;this._deleteIfExpired(t,n)===!1&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(this._deleteIfExpired(e,t)===!1)return this._moveToRecent(e,t),t.value}}set(e,t,{maxAge:n=this.maxAge}={}){const r=typeof n=="number"&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;this._deleteIfExpired(t,n)===!1&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;this.cache.has(t)||this._deleteIfExpired(t,n)===!1&&(yield[t,n.value])}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,s]=n;this._deleteIfExpired(r,s)===!1&&(yield[r,s.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,s]=n;this.cache.has(r)||this._deleteIfExpired(r,s)===!1&&(yield[r,s.value])}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function UQe(i){return new Promise(e=>setTimeout(e,i))}function GQe(i,e){const t=Array.isArray(i)?i:Array.from(i),n=Array.isArray(e)?e:Array.from(e);return t.map((r,s)=>[r,n[s]])}class ry extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,ry),this.name="AbortError"}}class qQe extends Error{constructor(e,t){super(t),this.errors=e,this.message=t,this.name="AggregateError"}}const HQe=qQe;class VQe{constructor(e,t,n=null){this.offset=e,this.length=t,this.data=n}get top(){return this.offset+this.length}}class Zhe{constructor(e,t,n){this.offset=e,this.length=t,this.blockIds=n}}class WQe extends iI{constructor(e,{blockSize:t=65536,cacheSize:n=100}={}){super(),this.source=e,this.blockSize=t,this.blockCache=new zQe({maxSize:n,onEviction:(r,s)=>{this.evictedBlocks.set(r,s)}}),this.evictedBlocks=new Map,this.blockRequests=new Map,this.blockIdsToFetch=new Set,this.abortedBlockIds=new Set}get fileSize(){return this.source.fileSize}async fetch(e,t){const n=[],r=[],s=[];this.evictedBlocks.clear();for(const{offset:d,length:p}of e){let g=d+p;const{fileSize:m}=this;m!==null&&(g=Math.min(g,m));const b=Math.floor(d/this.blockSize)*this.blockSize;for(let v=b;vthis.abortedBlockIds.has(d)||!this.blockCache.has(d));if(l.forEach(d=>this.blockIdsToFetch.add(d)),l.length>0&&t&&!t.aborted){this.fetchBlocks(null);for(const d of l){const p=this.blockRequests.get(d);if(!p)throw new Error(`Block ${d} is not in the block requests`);a.push(p)}await Promise.allSettled(a)}if(t&&t.aborted)throw new ry("Request was aborted");const u=s.map(d=>this.blockCache.get(d)||this.evictedBlocks.get(d)),c=u.filter(d=>!d);if(c.length)throw new HQe(c,"Request failed");const h=new Map(GQe(s,u));return this.readSliceData(e,h)}fetchBlocks(e){if(this.blockIdsToFetch.size>0){const t=this.groupBlocks(this.blockIdsToFetch),n=this.source.fetch(t,e);for(let r=0;r{try{const a=(await n)[r],l=o*this.blockSize,u=l-a.offset,c=Math.min(u+this.blockSize,a.data.byteLength),h=a.data.slice(u,c),d=new VQe(l,h.byteLength,h,o);this.blockCache.set(o,d),this.abortedBlockIds.delete(o)}catch(a){if(a.name==="AbortError")a.signal=e,this.blockCache.delete(o),this.abortedBlockIds.add(o);else throw a}finally{this.blockRequests.delete(o)}})())}this.blockIdsToFetch.clear()}}groupBlocks(e){const t=Array.from(e).sort((o,a)=>o-a);if(t.length===0)return[];let n=[],r=null;const s=[];for(const o of t)r===null||r+1===o?(n.push(o),r=o):(s.push(new Zhe(n[0]*this.blockSize,n.length*this.blockSize,n)),n=[o],r=o);return s.push(new Zhe(n[0]*this.blockSize,n.length*this.blockSize,n)),s}readSliceData(e,t){return e.map(n=>{let r=n.offset+n.length;this.fileSize!==null&&(r=Math.min(this.fileSize,r));const s=Math.floor(n.offset/this.blockSize),o=Math.floor(r/this.blockSize),a=new ArrayBuffer(n.length),l=new Uint8Array(a);for(let u=s;u<=o;++u){const c=t.get(u),h=c.offset-n.offset,d=c.top-r;let p=0,g=0,m;h<0?p=-h:h>0&&(g=h),d<0?m=c.length-p:m=r-c.offset-p;const b=new Uint8Array(c.data,p,m);l.set(b,g)}return a})}}class nI{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(e){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class rI{constructor(e){this.url=e}async request({headers:e,signal:t}={}){throw new Error("request is not implemented")}}class YQe extends nI{constructor(e){super(),this.response=e}get status(){return this.response.status}getHeader(e){return this.response.headers.get(e)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class XQe extends rI{constructor(e,t){super(e),this.credentials=t}async request({headers:e,signal:t}={}){const n=await fetch(this.url,{headers:e,credentials:this.credentials,signal:t});return new YQe(n)}}class ZQe extends nI{constructor(e,t){super(),this.xhr=e,this.data=t}get status(){return this.xhr.status}getHeader(e){return this.xhr.getResponseHeader(e)}async getData(){return this.data}}class KQe extends rI{constructRequest(e,t){return new Promise((n,r)=>{const s=new XMLHttpRequest;s.open("GET",this.url),s.responseType="arraybuffer";for(const[o,a]of Object.entries(e))s.setRequestHeader(o,a);s.onload=()=>{const o=s.response;n(new ZQe(s,o))},s.onerror=r,s.onabort=()=>r(new ry("Request aborted")),s.send(),t&&(t.aborted&&s.abort(),t.addEventListener("abort",()=>s.abort()))})}async request({headers:e,signal:t}={}){return await this.constructRequest(e,t)}}const UA={};class JQe extends nI{constructor(e,t){super(),this.response=e,this.dataPromise=t}get status(){return this.response.statusCode}getHeader(e){return this.response.headers[e]}async getData(){return await this.dataPromise}}class QQe extends rI{constructor(e){super(e),this.parsedUrl=UA.parse(this.url),this.httpApi=(this.parsedUrl.protocol==="http:",UA)}constructRequest(e,t){return new Promise((n,r)=>{const s=this.httpApi.get({...this.parsedUrl,headers:e},o=>{const a=new Promise(l=>{const u=[];o.on("data",c=>{u.push(c)}),o.on("end",()=>{const c=Buffer.concat(u).buffer;l(c)}),o.on("error",r)});n(new JQe(o,a))});s.on("error",r),t&&(t.aborted&&s.destroy(new ry("Request aborted")),t.addEventListener("abort",()=>s.destroy(new ry("Request aborted"))))})}async request({headers:e,signal:t}={}){return await this.constructRequest(e,t)}}class sI extends iI{constructor(e,t,n,r){super(),this.client=e,this.headers=t,this.maxRanges=n,this.allowFullFile=r,this._fileSize=null}async fetch(e,t){return this.maxRanges>=e.length?this.fetchSlices(e,t):(this.maxRanges>0&&e.length>1,Promise.all(e.map(n=>this.fetchSlice(n,t))))}async fetchSlices(e,t){const n=await this.client.request({headers:{...this.headers,Range:`bytes=${e.map(({offset:r,length:s})=>`${r}-${r+s}`).join(",")}`},signal:t});if(n.ok)if(n.status===206){const{type:r,params:s}=BQe(n.getHeader("content-type"));if(r==="multipart/byteranges"){const h=jQe(await n.getData(),s.boundary);return this._fileSize=h[0].fileSize||null,h}const o=await n.getData(),{start:a,end:l,total:u}=ZD(n.getHeader("content-range"));this._fileSize=u||null;const c=[{data:o,offset:a,length:l-a}];if(e.length>1){const h=await Promise.all(e.slice(1).map(d=>this.fetchSlice(d,t)));return c.concat(h)}return c}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const r=await n.getData();return this._fileSize=r.byteLength,[{data:r,offset:0,length:r.byteLength}]}else throw new Error("Error fetching data.")}async fetchSlice(e,t){const{offset:n,length:r}=e,s=await this.client.request({headers:{...this.headers,Range:`bytes=${n}-${n+r}`},signal:t});if(s.ok)if(s.status===206){const o=await s.getData(),{total:a}=ZD(s.getHeader("content-range"));return this._fileSize=a||null,{data:o,offset:n,length:r}}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const o=await s.getData();return this._fileSize=o.byteLength,{data:o,offset:0,length:o.byteLength}}else throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function oI(i,{blockSize:e,cacheSize:t}){return e===null?i:new WQe(i,{blockSize:e,cacheSize:t})}function eet(i,{headers:e={},credentials:t,maxRanges:n=0,allowFullFile:r=!1,...s}={}){const o=new XQe(i,t),a=new sI(o,e,n,r);return oI(a,s)}function tet(i,{headers:e={},maxRanges:t=0,allowFullFile:n=!1,...r}={}){const s=new KQe(i),o=new sI(s,e,t,n);return oI(o,r)}function iet(i,{headers:e={},maxRanges:t=0,allowFullFile:n=!1,...r}={}){const s=new QQe(i),o=new sI(s,e,t,n);return oI(o,r)}function KD(i,{forceXHR:e=!1,...t}={}){return typeof fetch=="function"&&!e?eet(i,t):typeof XMLHttpRequest<"u"?tet(i,t):iet(i,t)}class net extends iI{constructor(e){super(),this.file=e}async fetchSlice(e,t){return new Promise((n,r)=>{const s=this.file.slice(e.offset,e.offset+e.length),o=new FileReader;o.onload=a=>n(a.target.result),o.onerror=r,o.onabort=r,o.readAsArrayBuffer(s),t&&t.addEventListener("abort",()=>o.abort())})}}function ret(i){return new net(i)}function JD(i){switch(i){case vn.BYTE:case vn.ASCII:case vn.SBYTE:case vn.UNDEFINED:return 1;case vn.SHORT:case vn.SSHORT:return 2;case vn.LONG:case vn.SLONG:case vn.FLOAT:case vn.IFD:return 4;case vn.RATIONAL:case vn.SRATIONAL:case vn.DOUBLE:case vn.LONG8:case vn.SLONG8:case vn.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${i}`)}}function set(i){const e=i.GeoKeyDirectory;if(!e)return null;const t={};for(let n=4;n<=e[3]*4;n+=4){const r=gQe[e[n]],s=e[n+1]?F1[e[n+1]]:null,o=e[n+2],a=e[n+3];let l=null;if(!s)l=a;else{if(l=i[s],typeof l>"u"||l===null)throw new Error(`Could not get value of geoKey '${r}'.`);typeof l=="string"?l=l.substring(a,a+o-1):l.subarray&&(l=l.subarray(a,a+o),o===1&&(l=l[0]))}t[r]=l}return t}function km(i,e,t,n){let r=null,s=null;const o=JD(e);switch(e){case vn.BYTE:case vn.ASCII:case vn.UNDEFINED:r=new Uint8Array(t),s=i.readUint8;break;case vn.SBYTE:r=new Int8Array(t),s=i.readInt8;break;case vn.SHORT:r=new Uint16Array(t),s=i.readUint16;break;case vn.SSHORT:r=new Int16Array(t),s=i.readInt16;break;case vn.LONG:case vn.IFD:r=new Uint32Array(t),s=i.readUint32;break;case vn.SLONG:r=new Int32Array(t),s=i.readInt32;break;case vn.LONG8:case vn.IFD8:r=new Array(t),s=i.readUint64;break;case vn.SLONG8:r=new Array(t),s=i.readInt64;break;case vn.RATIONAL:r=new Uint32Array(t*2),s=i.readUint32;break;case vn.SRATIONAL:r=new Int32Array(t*2),s=i.readInt32;break;case vn.FLOAT:r=new Float32Array(t),s=i.readFloat32;break;case vn.DOUBLE:r=new Float64Array(t),s=i.readFloat64;break;default:throw new RangeError(`Invalid field type: ${e}`)}if(e===vn.RATIONAL||e===vn.SRATIONAL)for(let a=0;ag.getWidth()-m.getWidth());for(let g=0;gb||o&&o>v)break}}let d=t;if(a){const[p,g]=l.getOrigin(),[m,b]=u.getResolution(l);d=[Math.round((a[0]-p)/m),Math.round((a[1]-g)/b),Math.round((a[2]-p)/m),Math.round((a[3]-g)/b)],d=[Math.min(d[0],d[2]),Math.min(d[1],d[3]),Math.max(d[0],d[2]),Math.max(d[1],d[3])]}return u.readRasters({...e,window:d})}}class sy extends j_e{constructor(e,t,n,r,s={}){super(),this.source=e,this.littleEndian=t,this.bigTiff=n,this.firstIFDOffset=r,this.cache=s.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(e,t){const n=this.bigTiff?4048:1024;return new PQe((await this.source.fetch([{offset:e,length:typeof t<"u"?t:n}]))[0],e,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(e){const t=this.bigTiff?20:12,n=this.bigTiff?8:2;let r=await this.getSlice(e);const s=this.bigTiff?r.readUint64(e):r.readUint16(e),o=s*t+(this.bigTiff?16:6);r.covers(e,o)||(r=await this.getSlice(e,o));const a={};let l=e+(this.bigTiff?8:2);for(let h=0;h{const t=await this.ifdRequests[e-1];if(t.nextIFDByteOffset===0)throw new o2(e);return this.parseFileDirectoryAt(t.nextIFDByteOffset)})(),this.ifdRequests[e]}async getImage(e=0){const t=await this.requestIFD(e);return new $_e(t.fileDirectory,t.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let e=0,t=!0;for(;t;)try{await this.requestIFD(e),++e}catch(n){if(n instanceof o2)t=!1;else throw n}return e}async getGhostValues(){const e=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const t="GDAL_STRUCTURAL_METADATA_SIZE=",n=t.length+100;let r=await this.getSlice(e,n);if(t===km(r,vn.ASCII,t.length,e)){const o=km(r,vn.ASCII,n,e).split(` diff --git a/iframe.html b/iframe.html index 861c2ea13..64f488524 100644 --- a/iframe.html +++ b/iframe.html @@ -515,7 +515,7 @@ } - + diff --git a/project.json b/project.json index a8262335f..853e07f23 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1724059554991,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"eslint-plugin-cypress":null,"@cypress/mount-utils":"4.1.1","cypress":"13.13.2","cypress-fail-on-console-error":"5.1.1","cypress-lit":null,"cypress-network-idle":"1.14.2"},"monorepo":"Workspaces","packageManager":{"type":"npm","version":"10.8.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","storybookVersion":"8.2.8","storybookVersionSpecifier":"^8.0.0","language":"javascript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.2.8"},"@storybook/addon-interactions":{"version":"8.2.8"},"@storybook/blocks":{"version":"8.2.8"},"@storybook/csf-tools":{"version":"8.2.8"},"@storybook/test":{"version":"8.2.8"},"@storybook/theming":{"version":"8.2.8"},"@storybook/web-components":{"version":"8.2.8"},"@storybook/web-components-vite":{"version":"8.2.8"},"storybook":{"version":"8.2.8"}},"addons":{"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null}}} +{"generatedAt":1724079563493,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"eslint-plugin-cypress":null,"@cypress/mount-utils":"4.1.1","cypress":"13.13.2","cypress-fail-on-console-error":"5.1.1","cypress-lit":null,"cypress-network-idle":"1.14.2"},"monorepo":"Workspaces","packageManager":{"type":"npm","version":"10.8.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","storybookVersion":"8.2.8","storybookVersionSpecifier":"^8.0.0","language":"javascript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.2.8"},"@storybook/addon-interactions":{"version":"8.2.8"},"@storybook/blocks":{"version":"8.2.8"},"@storybook/csf-tools":{"version":"8.2.8"},"@storybook/test":{"version":"8.2.8"},"@storybook/theming":{"version":"8.2.8"},"@storybook/web-components":{"version":"8.2.8"},"@storybook/web-components-vite":{"version":"8.2.8"},"storybook":{"version":"8.2.8"}},"addons":{"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null}}}